1. 14 Jun, 2011 1 commit
    • jsm28's avatar
      * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to · 218e3e4e
      jsm28 authored
      	common/common-target-def.h.
      	* target.def (default_target_flags, handle_option,
      	supports_split_stack, optimization_table, init_struct,
      	except_unwind_info, unwind_tables_default, have_named_sections):
      	Move to common/common-target.def.
      	* target.h (enum opt_levels, struct default_options): Move to
      	common/common-target.h.
      	* targhooks.c (default_except_unwind_info,
      	dwarf2_except_unwind_info, sjlj_except_unwind_info,
      	default_target_handle_option, empty_optimization_table): Move to
      	common/common-targhooks.c.
      	* targhooks.h (default_except_unwind_info,
      	dwarf2_except_unwind_info, sjlj_except_unwind_info,
      	default_target_handle_option, empty_optimization_table): Move to
      	common/common-targhooks.h.
      	* common/common-target-def.h: Include common/common-targhooks.h.
      	(TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
      	defined.
      	* common/common-target.def (handle_option, option_init_struct,
      	option_optimization_table, default_target_flags,
      	except_unwind_info, supports_split_stack, unwind_tables_default,
      	have_named_sections): Move from target.def.
      	(HOOK_PREFIX): Undefine at end of file.
      	* common/common-target.h: Include input.h.
      	(enum opt_levels, struct default_options): Move from target.h.
      	* common/common-targhooks.c, common/common-targhooks.h: New.
      	* config.gcc (target_has_targetm_common): Default to yes.
      	(moxie*): Set target_has_targetm_common=no.
      	(hppa*-*-*): Don't set target_has_targetm_common=yes.
      	* doc/tm.texi: Regenerate.
      	* Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
      	(C_TARGET_DEF_H): Add common/common-targhooks.h.
      	(GCC_OBJS): Remove vec.o.
      	(OBJS): Remove hooks.o and vec.o.
      	(OBJS-libcommon-target): Add vec.o, hooks.o and
      	common/common-targhooks.o.
      	(c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
      	tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
      	expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
      	cfglayout.o, $(out_object_file), $(common_out_object_file)):
      	Update dependencies.
      	(common/common-targhooks.o): New.
      	* common/config/default-common.c: Include tm.h.  Add FIXME
      	comment.
      	* common/config/pa/pa-common.c: Include more headers.  Take
      	copyright dates from pa.c.
      	(pa_option_optimization_table, pa_handle_option,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_HANDLE_OPTION): Move from pa.c.
      	* common/config/alpha/alpha-common.c,
      	common/config/arm/arm-common.c, common/config/avr/avr-common.c,
      	common/config/bfin/bfin-common.c,
      	common/config/cris/cris-common.c,
      	common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
      	common/config/h8300/h8300-common.c,
      	common/config/i386/i386-common.c,
      	common/config/ia64/ia64-common.c,
      	common/config/iq2000/iq2000-common.c,
      	common/config/lm32/lm32-common.c,
      	common/config/m32c/m32c-common.c,
      	common/config/m32r/m32r-common.c,
      	common/config/m68k/m68k-common.c,
      	common/config/mcore/mcore-common.c,
      	common/config/mep/mep-common.c,
      	common/config/microblaze/microblaze-common.c,
      	common/config/mips/mips-common.c,
      	common/config/mmix/mmix-common.c,
      	common/config/mn10300/mn10300-common.c,
      	common/config/pdp11/pdp11-common.c,
      	common/config/picochip/picochip-common.c,
      	common/config/rs6000/rs6000-common.c,
      	common/config/rx/rx-common.c, common/config/s390/s390-common.c,
      	common/config/score/score-common.c, common/config/sh/sh-common.c,
      	common/config/sparc/sparc-common.c,
      	common/config/spu/spu-common.c, common/config/v850/v850-common.c,
      	common/config/vax/vax-common.c,
      	common/config/xstormy16/xstormy16-common.c,
      	common/config/xtensa/xtensa-common.c: New.
      	* config/alpha/alpha.c: Include common/common-target.h.
      	(alpha_option_optimization_table, alpha_handle_option,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
      	* config/arm/arm-protos.h (arm_except_unwind_info): Declare.
      	* config/arm/arm.c (arm_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
      	arm-common.c.
      	* config/avr/avr.c (avr_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
      	to avr-common.c.
      	* config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
      	(bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
      	TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
      	* config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
      	* config/cris/cris.c (cris_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
      	cris-common.c.
      	* config/fr30/fr30.c (fr30_option_optimization_table,
      	TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
      	to fr30-common.c.
      	* config/frv/frv.c (frv_option_optimization_table,
      	MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
      	* config/h8300/h8300.c (h8300_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
      	* config/i386/i386-protos.h (ix86_handle_option): Declare.
      	* config/i386/i386.c: Include common/common-target.h.
      	(OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
      	OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
      	OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
      	OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
      	OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
      	OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
      	OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
      	OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
      	OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
      	OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
      	OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
      	OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
      	OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
      	OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
      	OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
      	OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
      	OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
      	OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
      	OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
      	OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
      	OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
      	OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
      	OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
      	OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
      	OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
      	OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
      	OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
      	OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
      	OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
      	ix86_option_optimization_table, ix86_option_init_struct,
      	ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
      	i386-common.c.
      	* config/i386/t-i386 (i386.o): Update dependencies.
      	* config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
      	* config/ia64/ia64.c (ia64_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	ia64_handle_option): Move to ia64-common.c.
      	* config/iq2000/iq2000.c (iq2000_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
      	* config/lm32/lm32.c (lm32_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
      	to lm32-common.c.
      	* config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
      	m32c-common.c.
      	* config/m32r/m32r.c (m32r_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
      	m32r_handle_option): Move to m32r-common.c.
      	(m32r_memory_move_cost): Remove comment referring to
      	TARGET_HANDLE_OPTION.
      	* config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
      	Move to m68k-common.c.
      	* config/mcore/mcore.c (mcore_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
      	* config/mep/mep.c (mep_option_optimization_table,
      	mep_handle_option, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
      	Move to mep-common.c.
      	* config/microblaze/microblaze.c
      	(microblaze_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
      	* config/mips/mips.c (mips_handle_option,
      	mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
      	mips-common.c.
      	* config/mmix/mmix.c (mmix_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
      	Move to mmix-common.c.
      	* config/mn10300/mn10300.c (mn10300_option_optimization_table,
      	mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
      	* config/pa/pa.c: Include common/common-target.h.
      	(pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	pa_handle_option): Move to pa-common.c.
      	(pa_option_override): Use targetm_common.except_unwind_info.
      	(pa_asm_output_mi_thunk, pa_function_section): Use
      	targetm_common.have_named_sections.
      	* config/pdp11/pdp11.c (pdp11_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
      	pdp11_handle_option, pdp11_option_init_struct): Move to
      	pdp11-common.c.
      	* config/picochip/picochip.c (picochip_option_optimization_table,
      	TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
      	* config/rs6000/rs6000.c: Include common/common-target.h.
      	(rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
      	rs6000_handle_option): Move to rs6000-common.c.
      	* config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
      	* config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
      	TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
      	* config/s390/s390.c (processor_flags_table,
      	s390_option_optimization_table, s390_option_init_struct,
      	s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
      	* config/s390/s390.h (processor_flags_table): Declare.
      	* config/score/score.c (score_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
      	score_handle_option): Move to score-common.c.
      	* config/sh/sh.c (sh_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	sh_handle_option, sh_option_init_struct): Move to sh-common.c.
      	* config/sparc/sparc.c: Include common/common-target.h.
      	(sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
      	* config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
      	spu_option_init_struct): Move to spu-common.c.
      	* config/stormy16/stormy16.c (xstorym16_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
      	* config/v850/v850.c (small_memory_physical_max,
      	v850_handle_memory_optionn v850_handle_option,
      	v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
      	v850-common.c.
      	* config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
      	vax-common.c.
      	* config/xtensa/xtensa.c (xtensa_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
      	Move to xtensa-common.c.
      	* cfglayout.c: Include common/common-target.h.
      	(fixup_reorder_chain): Use targetm_common.have_named_sections.
      	* cfgrtl.c: Include common/common-target.h.
      	(force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
      	targetm_common.have_named_sections.
      	* dbxout.c: Include common/common-target.h.
      	(dbxout_function_end): Use targetm_common.have_named_sections.
      	* defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
      	targetm_common.except_unwind_info.
      	* dwarf2out.c: Include common/common-target.h.
      	(dwarf2out_do_frame, dwarf2out_do_cfi_asm,
      	dwarf2out_begin_prologue, dwarf2out_frame_init,
      	dwarf2out_frame_finish, dwarf2out_assembly_start): Use
      	targetm_common.except_unwind_info.
      	* except.c: Include common/common-target.h.
      	(init_eh, finish_eh_generation,
      	output_one_function_exception_table): Use
      	targetm_common.except_unwind_info.
      	(switch_to_exception_section): Use
      	targetm_common.have_named_sections.
      	* explow.c: Include common/common-target.h.
      	* expr.c: Include common/common-target.h.
      	(build_personality_function): Use
      	targetm_common.except_unwind_info.
      	* function.c: Include common/common-target.h.
      	(expand_function_end): Use targetm_common.except_unwind_info.
      	* haifa-sched.c: Include common/common-target.h.
      	(sched_create_recovery_edges): Use
      	targetm_common.have_named_sections.
      	* lto-opts.c: Include common/common-target.h instead of target.h.
      	(lto_reissue_options): Use targetm_common.handle_option.
      	* opts.c: Include common/common-target.h.
      	(target_handle_option): Use targetm_common.handle_option.
      	(init_options_struct): Update comment referring to
      	targetm.target_option.optimization.  Use
      	targetm_common.default_target_flags,
      	targetm_common.unwind_tables_default and
      	targetm_common.option_init_struct.
      	(default_options_optimization): Use
      	targetm_common.option_optimization_table.
      	(finish_options): Use targetm_common.except_unwind_info,
      	targetm_common.unwind_tables_default,
      	targetm_common.have_named_sections and
      	targetm_common.supports_split_stack.
      	* toplev.c: Include common/common-target.h.
      	(process_options): Use targetm_common.have_named_sections.
      	* tree-tailcall.c: Include common/common-target.h.
      	(suitable_for_tail_call_opt_p): Use
      	targetm_common.except_unwind_info.
      	* tree.c: Include common/common-target.h.
      	(build_common_builtin_nodes): Use
      	targetm_common.except_unwind_info.
      	* varasm.c: Include common/common-target.h.
      	(resolve_unique_section, hot_function_section,
      	default_function_section): Use targetm_common.have_named_sections.
      
      ada:
      	* gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
      	(ada/utils.o): Update dependencies.
      	* gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
      	../../../libcpp/libcpp.a.
      	* gcc-interface/utils.c: Include common/common-target.h.
      	(process_attributes): Use targetm_common.have_named_sections.
      
      c-family:
      	* c-common.c: Include common/common-target.h.
      	(handle_section_attribute): Use
      	targetm_common.have_named_sections.
      	* c-cppbuiltin.c: Include common/common-target.h.
      	(c_cpp_builtins): Use targetm_common.except_unwind_info.
      
      cp:
      	* Make-lang.in (cp/method.o): Update dependencies.
      	* method.c: Include common/common-target.h.
      	(use_thunk): Use targetm_common.have_named_sections.
      
      go:
      	* Make-lang.in (go/go-lang.o, go/go-backend.o): Update
      	dependencies.
      	* go-backend.c: Include common/common-target.h.
      	(go_write_export_data): Use targetm_common.have_named_sections.
      	* go-lang.c: Include common/common-target.h.
      	(go_langhook_init_options_struct): Use
      	targetm_common.supports_split_stack.
      
      po:
      	* exgettext: Handle common/ directory and subdirectories.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175064 138bc75d-0d04-0410-961f-82ee72b054a4
      218e3e4e
  2. 26 Nov, 2010 1 commit
    • jsm28's avatar
      * doc/options.texi (Enum, EnumValue): Document new record types. · d62a5950
      jsm28 authored
      	(Enum): Document new option flag.
      	* opt-functions.awk
      	* optc-gen.awk: Handle enumerated option arguments.
      	* opth-gen.awk: Handle enumerated option arguments.
      	* opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
      	enum_value_to_arg): New.
      	(decode_cmdline_option): Handle enumerated arguments.
      	(read_cmdline_option): Handle CL_ERR_ENUM_ARG.
      	(set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
      	* opts.c (print_filtered_help, print_specific_help): Take
      	lang_mask arguments.
      	(print_filtered_help): Handle printing values of enumerated
      	options.  Print possible arguments for enumerated options.
      	(print_specific_help): Update call to print_filtered_help.
      	(common_handle_option): Update calls to print_specific_help.  Use
      	value rather than arg for OPT_fdiagnostics_show_location_.  Don't
      	handle OPT_ffp_contract_, OPT_fexcess_precision_,
      	OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
      	OPT_fira_region_ here.
      	* opts.h (enum cl_var_type): Add CLVC_ENUM.
      	(struct cl_option): Add var_enum.
      	(CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
      	struct cl_enum, cl_enums, cl_enums_count): New.
      	(CL_ERR_ENUM_ARG): Define.
      	(CL_ERR_NEGATIVE): Update value.
      	(enum_value_to_arg): Declare.
      	* common.opt (flag_ira_algorithm, flag_ira_region,
      	flag_fp_contract_mode, flag_excess_precision_cmdline,
      	default_visibility, flag_tls_default): Remove Variable entries.
      	(help_enum_printed): New Variable.
      	(fdiagnostics-show-location=): Use Enum.  Add associated
      	SourceInclude, Enum and EnumValue entries.
      	(fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
      	ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
      	associated Enum and EnumValue entries.
      
      po:
      	* exgettext: Handle UnknownError.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167190 138bc75d-0d04-0410-961f-82ee72b054a4
      d62a5950
  3. 10 Nov, 2010 1 commit
  4. 22 Oct, 2010 1 commit
  5. 02 Sep, 2010 1 commit
    • jsm28's avatar
      * opts.h (struct cl_option): Add warn_message field. · 3b0273a1
      jsm28 authored
      	(struct cl_decoded_option): Add warn_message field.
      	* doc/options.texi (Ignore, Warn): Document.
      	* opt-functions.awk (needs_state_p): Don't consider aliases or
      	ignored options to need state saved.
      	* optc-gen.awk: Handle Warn and Ignore.
      	* opth-gen.awk: Output OPT_SPECIAL_ignore.
      	* opts-common.c (decode_cmdline_option): Set warn_message field.
      	Handle ignored options.
      	(decode_cmdline_options_to_array, generate_option,
      	generate_option_input_file): Set warn_message field.
      	(read_cmdline_option): Generate warnings from warn_message field.
      	Handle ignored options.
      	* common.opt (Wunreachable-code, fargument-alias,
      	fargument-noalias, fargument-noalias-global,
      	fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
      	floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
      	fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
      	ftree-salias): Mark Ignore.
      	* config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
      	-mintel-syntax and -mno-intel-syntax here.
      	* config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
      	using Warn.
      	* opts.c (common_handle_option): Don't handle options marked as
      	ignored.
      	(enable_warning_as_error): Handle ignored options.
      
      c-family:
      	* c.opt (Wimport, fall-virtual, falt-external-templates,
      	fdefault-inline, fenum-int-equiv, fexternal-templates,
      	fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
      	fname-mangling-version-, fnew-abi, fnonnull-objects,
      	foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
      	fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
      	applicable.
      	(fhandle-exceptions): Mark with Alias and Warn.
      	* c-opts.c (c_common_handle_option): Don't handle options marked
      	as ignored.
      
      po:
      	* exgettext: Handle {} in operand of MissingArgError.  Handle
      	Warn.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163771 138bc75d-0d04-0410-961f-82ee72b054a4
      3b0273a1
  6. 27 Jul, 2010 1 commit
    • jsm28's avatar
      * common.opt (o): Add MissingArgError. · fecf9011
      jsm28 authored
      	* doc/options.texi (MissingArgError): Document.
      	* hooks.c (hook_bool_constcharptr_size_t_false): Remove.
      	* hooks.h (hook_bool_constcharptr_size_t_false): Remove.
      	* langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
      	(LANG_HOOKS_INITIALIZER): Remove missing_argument hook
      	initializer.
      	* langhooks.h (struct lang_hooks): Remove missing_argument.
      	* optc-gen.awk: Handle MissingArgError and output new structure
      	field initializers.
      	* opts.c (read_cmdline_option): Use missing_argument_error field
      	instead of missing_argument langhook.
      	* opts.h (struct cl_option): Add missing_argument_error field.
      	* system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
      
      c-family:
      	* c-common.h (c_common_missing_argument): Remove.
      	* c-opts.c (c_common_missing_argument): Remove.
      	* c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
      	idirafter, imacros, include, isysroot, isystem, iquote): Add
      	MissingArgError.
      	* c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
      
      cp:
      	* cp-objcp-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
      
      po:
      	* exgettext: Also extract MissingArgError texts from .opt files.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162571 138bc75d-0d04-0410-961f-82ee72b054a4
      fecf9011
  7. 05 Jun, 2010 1 commit
    • steven's avatar
      gcc/ChangeLog: · 7bedc3a0
      steven authored
      	* c-common.c: Move to c-family/.
      	* c-common.def: Likewise.
      	* c-common.h: Likewise.
      	* c-cppbuiltin.c: Likewise.
      	* c-dump.c: Likewise.
      	* c-format.c: Likewise.
      	* c-format.h : Likewise.
      	* c-gimplify.c: Likewise.
      	* c-lex.c: Likewise.
      	* c-omp.c: Likewise.
      	* c.opt: Likewise.
      	* c-opts.c: Likewise.
      	* c-pch.c: Likewise.
      	* c-ppoutput.c: Likewise.
      	* c-pragma.c: Likewise.
      	* c-pragma.h: Likewise.
      	* c-pretty-print.c: Likewise.
      	* c-pretty-print.h: Likewise.
      	* c-semantics.c: Likewise.
      	* stub-objc.c: Likewise.
      
      	* gengtype.c (get_file_langdir): Special-case files in c-family/.
      	(get_output_file_with_visibility): Fix name for c-common.h.
      	* c-config-lang.in: Update paths in gtfiles for files in c-family/.
      
      	* c-tree.h: Update include path for moved files.
      	* c-lang.c: Likewise.
      	* c-lang.h: Likewise.
      	* c-parser.c: Likewise.
      	* c-convert.c: Likewise.
      	* c-decl.c: Likewise.
      	* c-objc-common.c: Likewise.
      	* configure.ac: Make sure c-family/ exists in the build directory.
      	* configure: Regenerate.
      	* Makefile.in: Update paths for moved files.  Regroup files per
      	location and update dependencies.  Move generated_files down after
      	ALL_GTFILES_H.
      
      	* config/spu/spu-c.c: Update paths for moved files.
      	* config/mep/mep-pragma.c: Likewise.
      	* config/darwin-c.c: Likewise.
      	* config/i386/msformat-c.c: Likewise.
      	* config/i386/i386-c.c: Likewise.
      	* config/avr/avr-c.c: Likewise.
      	* config/sol2-c.c: Likewise.
      	* config/ia64/ia64-c.c: Likewise.
      	* config/rs6000/rs6000-c.c: Likewise.
      	* config/arm/arm.c: Likewise.
      	* config/arm/arm-c.c: Likewise.
      	* config/h8300/h8300.c: Likewise.
      	* config/v850/v850-c.c: Likewise.
      
      	* config/t-darwin: Fix dependencies for moved files.
      	* config/t-sol2: Fix dependencies for moved files.
      	* config/mep/t-mep: Fix dependencies for moved files.
      	* config/ia64/t-ia64: Fix dependencies for moved files.
      	* config/rs6000/t-rs6000: Fix dependencies for moved files.
      	* config/v850/t-v850: Fix dependencies for moved files.
      	* config/v850/t-v850e: Fix dependencies for moved files.
      
      	* config/m32c/m32c-pragma.c
      
      	* po/exgettext: Look in c-family/ also.
      
      c-family/ChangeLog:
      	* c-common.c: Include gt-c-family-c-common.h.
      	* c-pragma.c: Include gt-c-family-c-pragma.h.
      
      objc/ChangeLog:
      	* objc-act.c: Update include path for moved files.
      	* objc-lang.c: Likewise.
      	* config-lang.in: Update paths in gtfiles for files in c-family/.
      
      objcp/ChangeLog:
      	* objcp-lang.c: Update include path for moved files.
      	* config-lang.in: Update paths in gtfiles for files in c-family/.
      
      cp/ChangeLog:
      	* typeck.c: Update include path for moved files.
      	* decl.c: Likewise.
      	* rtti.c: Likewise.
      	* cp-gimplify.c: Likewise.
      	* cp-lang.c: Likewise.
      	* pt.c: Likewise.
      	* semantics.c: Likewise.
      	* cxx-pretty-print.h: Likewise.
      	* decl2.c: Likewise.
      	* parser.c: Likewise.
      	* cp-objcp-common.c: Likewise.
      	* cp-tree.h: Likewise.
      	* name-lookup.c: Likewise.
      	* lex.c: Likewise.
      	* name-lookup.h: Likewise.
      	* config-lang.in: Update paths in gtfiles for files in c-family/.
      	* Make-lang.in: Likewise.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160330 138bc75d-0d04-0410-961f-82ee72b054a4
      7bedc3a0
  8. 01 Mar, 2010 1 commit
    • pzhao's avatar
      gcc/ · c0ddc4f8
      pzhao authored
      2010-03-01  Marco Poletti  <poletti.marco@gmail.com> 
      
              * toplev.h (inform_n, error_n): Declare.
              * diagnostic.c (inform_n, error_n): New function.
      
      gcc/cp/
      2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
      
              * pt.c (redeclare_class_template): Use error_n and inform_n.
      
      gcc/po
      2010-03-01  Shujing Zhao  <pearly.zhao@oracle.com>
      
              * exgettext: Handle the functions that end with _n.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157134 138bc75d-0d04-0410-961f-82ee72b054a4
      c0ddc4f8
  9. 22 Jan, 2010 1 commit
  10. 14 Jan, 2010 1 commit
    • pzhao's avatar
      po/ · 5a3530cb
      pzhao authored
      2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
      
              PR translation/39521
              * exgettext: Extracted all specs %n strings and the %e strings that %e
              is at the start of a line.
      
      2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
      
              PR translation/39521
              * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
              strings with _().
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155878 138bc75d-0d04-0410-961f-82ee72b054a4
      5a3530cb
  11. 11 Jan, 2010 1 commit
    • pzhao's avatar
      gcc/po/ · cf210371
      pzhao authored
      2010-01-11  Joseph Myers  <joseph@codesourcery.com>
                  Shujing Zhao  <pearly.zhao@oracle.com>
      
              PR translation/42467
              * exgettext: Keep the text before tab character in the option help
              string at *.opt file.
      
      gcc/
      2010-01-11  Joseph Myers  <joseph@codesourcery.com>
                  Shujing Zhao  <pearly.zhao@oracle.com>
      
              PR translation/42469
              * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
              fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
              character between option name and help text.
              * c.opt (imultilib): Likewise.
      
      gcc/fortran
      2010-01-11  Joseph Myers  <joseph@codesourcery.com>
                  Shujing Zhao  <pearly.zhao@oracle.com>
              
              PR translation/42469
              * lang.opt (fblas-matmul-limit=, finit-character=, finit-integer=,
              finit-logical=, finit-real=, fmax-array-constructor=): Use tab
              character between option name and help text.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155801 138bc75d-0d04-0410-961f-82ee72b054a4
      cf210371
  12. 22 Apr, 2009 1 commit
  13. 09 Apr, 2009 1 commit
  14. 17 Sep, 2005 1 commit
    • fxcoudert's avatar
      PR fortran/15586 · 41481754
      fxcoudert authored
      	* arith.c (gfc_arith_error): Add translation support
      	for error messages.
      	* array.c (gfc_match_array_ref): Likewise.
      	(gfc_match_array_spec): Likewise.
      	* check.c (must_be): Add msgid convention to third argument.
      	(same_type_check): Add translation support for error message.
      	(rank_check): Likewise.
      	(kind_value_check): Likewise.
      	(gfc_check_associated): Correct typo.
      	(gfc_check_reshape): Add translation support for error message.
      	(gfc_check_spread): Likewise.
      	* error.c (error_printf): Add nocmsgid convention to argument.
      	(gfc_warning, gfc_notify_std, gfc_warning_now, gfc_warning_check)
      	(gfc_error, gfc_error_now): Likewise.
      	(gfc_status): Add cmsgid convention to argument.
      	* expr.c (gfc_extract_int): Add translation support
              for error messages.
      	(gfc_check_conformance): Add msgid convention to argument.
      	(gfc_check_pointer_assign): Correct tabbing.
      	* gfortran.h: Include intl.h header. Remove prototype
      	for gfc_article.
      	* gfortranspec.c: Include intl.h header.
      	(lang_specific_driver): Add translation support for --version.
      	* io.c (check_format): Add translation support for
      	error message.
      	(format_item_1): Likewise.
      	(data_desc): Likewise.
      	* matchexp.c: Likewise.
      	* misc.c (gfc_article): Remove function.
      	* module.c (bad_module): Use msgid convention. Add
      	translation support for error messages.
      	(require_atom): Add translation support for error messages.
      	* parse.c (gfc_ascii_statement): Likewise.
      	(gfc_state_name): Likewise.
      	* primary.c (match_boz_constant): Reorganise error
      	messages for translations.
      	* resolve.c (resolve_entries): Likewise.
      	(resolve_operator): Add translation support for error messages.
      	(gfc_resolve_expr): Use msgid convention. Reorganise error
              messages for translations.
      	(resolve_symbol): Add translation support for error messages.
      	* symbol.c (gfc_add_procedure): Remove use of gfc_article function.
      	* trans-const.c (gfc_build_string_const): Use msgid convention.
      
      	* exgettext: Add a new nocmsgid convention for arguments
      	that should be marked as no-c-format.
      	* gcc.pot: Regenerate.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104372 138bc75d-0d04-0410-961f-82ee72b054a4
      41481754
  15. 25 Jun, 2005 1 commit
  16. 06 Jun, 2005 1 commit
    • jakub's avatar
      gcc/po/ · 380c6697
      jakub authored
      	* exgettext: Handle gmsgid and cmsgid arguments specially,
      	as gcc-internal-format and c-format.  Because of xgettext
      	bug, invoke xgettext once with --language=c, once with
      	--language=GCC-source and then merge together.  Fail if
      	xgettext is not 0.14.5 or later.
      gcc/
      	* intl.h (G_): New macro.
      	* rtl-error.c (error_for_asm, warning_for_asm): Use gmsgid
      	instead of msgid for argument name.
      	* tree-ssa.c (warn_uninit): Likewise.
      	* c-parser.c (c_parser_error): Likewise.
      	* config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
      	* config/darwin-c.c (BAD): Likewise.
      	* config/c4x/c4x-c.c (BAD): Likewise.
      	* c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
      	* c-errors.c (pedwarn_c99, pedwarn_c90): Likewise.
      	* c-common.c (c_parse_error): Likewise.
      	* diagnostic.c (diagnostic_set_info, verbatim, inform, warning,
      	warning0, pedwarn, error, sorry, fatal_error, internal_error):
      	Likewise.
      	(fnotice): Use cmsgid instead of msgid for argument name.
      	* gcov.c (fnotice): Likewise.
      	* protoize.c (notice): Likewise.
      	* final.c (output_operand_lossage): Likewise.
      	* gcc.c (fatal, notice): Likewise.
      	(error): Use gmsgid instead of msgid for argument name.
      	* collect2.c (notice, fatal_perror, fatal): Use cmsgid instead
      	of msgid for argument name.
      	(error): Use gmsgid instead of msgid for argument name.
      	* c-decl.c (locate_old_decl, implicit_decl_warning): Use G_()
      	instead of N_().
      	* c-typeck.c (readonly_error, convert_for_assignment): Likewise.
      	* tree-inline.c (inline_forbidden_p_1): Likewise.
      	* ABOUT-GCC-NLS: Require gettext 0.14.5 or later.  Mention the new
      	conventions for marking translations.
      	* doc/install.texi: Mention gettext 0.14.5 or later requirement.
      gcc/cp/
      	* error.c (locate_error): Use gmsgid instead of msgid for argument
      	name.
      	(cp_error_at, cp_warning_at, cp_pedwarn_at): Likewise.
      gcc/java/
      	* jv-scan.c (fatal_error, warning, warning0): Use gmsgid instead of
      	msgid for argument name.
      	* gjavah.c (error): Likewise.
      	* java-tree.h (parse_error_context): Likewise.
      	* parse.y (parse_error_context, parse_warning_context,
      	issue_warning_error_from_context): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100676 138bc75d-0d04-0410-961f-82ee72b054a4
      380c6697
  17. 06 Apr, 2005 1 commit
    • rsandifo's avatar
      gcc/ · b1fcce27
      rsandifo authored
      	PR other/20792
      	* Makefile.in (gcc.pot): Remove options.c dependency.
      	* optc-gen.awk: Don't quote help strings with N_().
      
      gcc/po/
      	PR other/20792
      	* exgettext: Don't scan options.c.  Scan .opt files for help strings.
      	* gcc.pot: Regenerate.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97759 138bc75d-0d04-0410-961f-82ee72b054a4
      b1fcce27
  18. 09 Nov, 2004 1 commit
  19. 18 May, 2004 1 commit
    • zack's avatar
      top: · 49fbf4b9
      zack authored
      	* Makefile.def, Makefile.tpl, configure.in: Remove all mention
      	of libf2c.
      	* configure, Makefile.in: Regenerate.
      contrib:
      	* gcc_update: Remove gcc/f/intdoc.texi and all libf2c files
      	from list of files to be touched.
      	* convert_to_f2c, convert_to_g2c, download_f2c: Delete.
      gcc:
      	* f: Entire directory removed
      
      	* c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
      	(CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
      	(g77_integer_type_node, g77_uinteger_type_node)
      	(g77_longint_type_node, or g77_ulongint_type_node): Delete.
      	* c-common.c (c_common_nodes_and_builtins): Do not initialize
      	the above set of variables.
      
      	* config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
      	* doc/invoke.texi, doc/standards.texi: Remove cross-references
      	to g77 manual.
      gcc/po:
      	* exgettext (spec_error_string): Do not scan beyond the end of
      	the string for a close brace.  Do not bail out at the first
      	incidence of %%e.
      	* gcc.pot: Regenerate.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81967 138bc75d-0d04-0410-961f-82ee72b054a4
      49fbf4b9
  20. 20 Nov, 2003 1 commit
  21. 17 Jul, 2003 1 commit
  22. 23 May, 2003 2 commits
  23. 16 May, 2002 1 commit
    • ro's avatar
      * Makefile.in: Allow for PWDCMD to override hardcoded pwd. · 3354d061
      ro authored
      	* config-ml.in: Likewise.
      	* configure: Likewise.
      	* configure.in: Likewise.
      
      	boehm-gc:
      	* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      	config:
      	* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
      
      	contrib:
      	* test_installed: Allow for PWDCMD to override hardcoded pwd.
      	* test_summary: Likewise.
      
      	gcc:
      	* Makefile.in: Allow for PWDCMD to override hardcoded pwd.
      	* configure.in: Likewise.
      	* fixinc/check.tpl: Likewise.
      	* fixinc/fixinc.dgux: Likewise.
      	* fixinc/fixinc.svr4: Likewise.
      	* fixinc/fixinc.winnt: Likewise.
      	* fixinc/fixincl.sh: Likewise.
      	* fixproto: Likewise.
      	* configure: Regenerate.
      
      	gcc/ada:
      	* Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
      	* Makefile.in: Likewise.
      
      	gcc/f:
      	* Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
      
      	gcc/java:
      	* Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
      
      	gcc/po:
      	* exgettext: Allow for PWDCMD to override hardcoded pwd.
      
      	gcc/treelang:
      	* Make-lang.in: Allow for PWDCMD to override hardcoded pwd.
      
      	libf2c:
      	* Makefile.in: Allow for PWDCMD to override hardcoded pwd.
      	* aclocal.m4: Likewise.
      	* configure: Regenerate.
      
      	libjava:
      	* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
      	* configure.in: Likewise.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      	libobjc:
      	* aclocal.m4: Allow for PWDCMD to override hardcoded pwd.
      	* configure: Regenerate.
      
      	libstdc++-v3:
      	* Makefile.am: Allow for PWDCMD to override hardcoded pwd.
      	* acinclude.m4: Likewise.
      	* docs/html/Makefile: Likewise.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* Makefile.in: Regenerate.
      
      	zlib:
      	* configure.in: Allow for PWDCMD to override hardcoded pwd.
      	* configure: Regenerate.
      
      	* ChangeLog: Move entries to ChangeLog.gcj.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53523 138bc75d-0d04-0410-961f-82ee72b054a4
      3354d061
  24. 23 Jan, 2002 1 commit
  25. 09 Nov, 2001 1 commit
  26. 31 Oct, 2001 1 commit
    • zack's avatar
      * Makefile.in (INTL_TARGETS, POSUB): Delete all references. · 67881e18
      zack authored
      	(INTL_SUBDIRS): Just intl.
      	(.SUFFIXES): Add .gmo .po .pox.
      	(native): Also depend on build-@POSUB@.
      	(intl.all, intl.install): Depend on config.h and things it includes.
      	(po-generated): New target; depend on c-parse.c and tradcif.c.
      	(install-normal): Also depend on install-@POSUB@.
      	(XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
      	(build-, install-, build-po, update-po, install-po,
      	.po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
      
      	* aclocal.m4: Prefix each entry in CATALOGS with "po/"
      	* configure.in: Don't munge XGETTEXT.  Don't generate
      	po/Makefile.in.
      	* configure: Regenerate.
      
      	* exgettext: Delete.
      	* config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
      	* cp/Make-lang.in, java/Make-lang.in, objc/Make-lang.in: Replace
      	$(INTL_TARGETS) with po-generated.
      
      po:
      	* EXCLUDES: New file.
      	* exgettext: New helper script; completely rewritten.
      	* Makefile.in.in, POTFILES.in: Delete.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46680 138bc75d-0d04-0410-961f-82ee72b054a4
      67881e18