1. 29 Aug, 2011 2 commits
  2. 25 Aug, 2011 1 commit
  3. 24 Aug, 2011 2 commits
    • gccgo... · 706cd57f
      gccgo: 	fixes to ast-dump, refactoring of export and ast-dump
              to implement a common interface for writing basic
              type literals and added flags for optimization.
      
      	* lang.opt: Add fgo-optimize-.
      	* go-lang.c (go_langhook_handle_option): Handle OPT_fgo_optimize.
      	* go-c.h (go_enable_optimize): Declare.
      	* Make-lang.in (GO_OBJS): Add go/go-optimize.o.
      	(GO_EXPORT_H): Define.
      	(GO_IMPORT_H): Add $(GO_EXPORT_H).
      	(GO_AST_DUMP_H): Define.
      	(go/ast-dump.o, go/statements.o): Use GO_AST_DUMP_H.
      	(go/export.o, go/gogo.o, go/import.o): Use GO_EXPORT_H.
      	(go/types.o): Likewise.
      	(go/expressions.o): Use GO_AST_DUMP_H and GO_EXPORT_H.
      	(go/go-optimize.o): New target.
      
      From-SVN: r178046
      Roberto Lublinerman committed
    • * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o) · c5bc3df6
      	(CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
      	(CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
      	(CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
      	(collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
      	(c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
      	(intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
      	rules.
      	(lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
      
      ada:
      	* gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
      	(CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
      	(CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
      	(ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
      	(ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
      
      fortran:
      	* Make-lang.in (fortran/cpp.o): Remove explicit compilation rule.
      
      go:
      	* Make-lang.in (CFLAGS-go/go-lang.o): New.
      	(go/go-lang.o): Remove explicit compilation rule.
      
      java:
      	* Make-lang.in (CFLAGS-java/jcf-io.o, CFLAGS-java/jcf-path.o):
      	New.
      	(java/jcf-io.o, java/jcf-path.o): Remove explicit compilation
      	rules.
      
      From-SVN: r178030
      Joseph Myers committed
  4. 16 Aug, 2011 1 commit
  5. 15 Aug, 2011 1 commit
  6. 08 Aug, 2011 1 commit
    • driver-sparc.c: New file. · e3b3fa45
      	gcc:
      	* config/sparc/driver-sparc.c: New file.
      	* config/sparc/x-sparc: New file.
      	* config.host: Use driver-sparc.o, sparc/x-sparc on
      	sparc*-*-solaris2*.
      	* config/sparc/sparc.opt (native): New value for enum
      	processor_type.
      	* config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
      	* config/sparc/sparc.c (sparc_option_override): Abort if
      	PROCESSOR_NATIVE gets here.
      	* config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
      	(EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
      	DRIVER_SELF_SPECS): Define.
      	* doc/invoke.texi (SPARC Options, -mcpu): Document native.
      	(SPARC Options, -mtune): Likewise.
      	* configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
      	Substitute result.
      	* configure: Regenerate.
      	* Makefile.in (EXTRA_GCC_LIBS): Set.
      	(xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
      	(cpp$(exeext)): Likewise.
      
      	gcc/cp:
      	* Make-lang.in (g++$(exeext)): Add $(EXTRA_GCC_LIBS).
      
      	gcc/fortran:
      	* Make-lang.in (gfortran$(exeext)): Add $(EXTRA_GCC_LIBS).
      
      	gcc/go:
      	* Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
      
      	gcc/java:
      	* Make-lang.in ($(XGCJ)$(exeext)): Add $(EXTRA_GCC_LIBS).
      
      From-SVN: r177559
      Rainer Orth committed
  7. 04 Aug, 2011 1 commit
  8. 03 Aug, 2011 1 commit
    • gccgo: Added code to dump the AST tree. · 16c57fe2
      gccgo:	Added code to dump the AST tree. The AST dump is
      	activated with -fgo-dump-ast.
      	Initial version, it only dumps (most) constructs that
      	are expected after the lowering transformation.
      
      	* Make-lang.in (GO_OBJS): Add go/ast-dump.o.
      	(go/ast-dump.o): New target.
      	(go/expressions.o): Depend on go/gofrontend/ast-dump.h.
      	(go/statements.o): Likewise.
      
      From-SVN: r177225
      Roberto Lublinerman committed
  9. 01 Aug, 2011 1 commit
  10. 06 Jul, 2011 1 commit
    • tree.c (build_common_tree_nodes_2): Merge with build_common_tree_nodes. · 1a072294
      2011-07-06  Richard Guenther  <rguenther@suse.de>
      
      	* tree.c (build_common_tree_nodes_2): Merge with
      	build_common_tree_nodes.
      	* tree.h (build_common_tree_nodes): Adjust prototype.
      	(build_common_tree_nodes_2): Remove.
      	* doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
      	* doc/tm.texi (lang_hooks.builtin_function): Regenerate.
      
      	c-family/
      	* c-common.c (c_common_nodes_and_builtins):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	fortran/
      	* f95-lang.c (gfc_init_decl_processing):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	go/
      	* go-lang.c (go_langhook_init):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	java/
      	* decl.c (java_init_decl_processing):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	lto/
      	* lto-lang.c (lto_init):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	ada/
      	* gcc-interface/misc.c (gnat_init):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      	Re-initialize boolean_false_node.
      
      From-SVN: r175906
      Richard Guenther committed
  11. 24 Jun, 2011 1 commit
  12. 21 Jun, 2011 1 commit
  13. 14 Jun, 2011 2 commits
    • target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to common/common-target-def.h. · 677f3fa8
      	* target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
      	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.
      
      From-SVN: r175064
      Joseph Myers committed
    • Change builtin make to runtime call at lowering time. · 3b8dffe7
      Use kindNoPointers as 6g does.
      
      	* Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
      
      From-SVN: r175008
      Ian Lance Taylor committed
  14. 11 Jun, 2011 2 commits
  15. 09 Jun, 2011 1 commit
  16. 08 Jun, 2011 1 commit
  17. 07 Jun, 2011 1 commit
    • tree.c (build_common_tree_nodes): Also initialize size_type_node. · 009db074
      2011-06-07  Richard Guenther  <rguenther@suse.de>
      
      	* tree.c (build_common_tree_nodes): Also initialize size_type_node.
      	Call set_sizetype from here.
      
      	c-family/
      	* c-common.c (c_common_nodes_and_builtins): Do not set
      	size_type_node or call set_sizetype.
      
      	go/
      	* go-lang.c (go_langhook_init): Do not set
      	size_type_node or call set_sizetype.
      
      	fortran/
      	* f95-lang.c (gfc_init_decl_processing): Do not set
      	size_type_node or call set_sizetype.
      
      	java/
      	* decl.c (java_init_decl_processing): Properly initialize
      	size_type_node.
      
      	lto/
      	* lto-lang.c (lto_init): Do not set
      	size_type_node or call set_sizetype.
      
      	ada/
      	* gcc-interface/misc.c (gnat_init): Do not set
      	size_type_node or call set_sizetype.
      
      From-SVN: r174743
      Richard Guenther committed
  18. 05 Jun, 2011 2 commits
  19. 27 May, 2011 1 commit
  20. 24 May, 2011 1 commit
    • Makefile.in (GCC_OBJS): Remove opts-common.o and options.o. · 1ed1641d
      	* Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
      	(OBJS): Remove options.o, opts-common.o and prefix.o.
      	(OBJS-libcommon-target): New.
      	(ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
      	(BACKEND): Include libcommon-target.a.
      	(MOSTLYCLEANFILES): Include libcommon-target.a.
      	(libcommon-target.a): New.
      	(xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
      	prefix.o.
      
      ada:
      	* gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
      	$(EXTRA_GNAT1_OBJS).
      	(GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
      	(EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
      	(gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
      	* gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
      	libcommon-target.a instead of prefix.o.
      
      cp:
      	* Make-lang.in (GXX_OBJS): Remove prefix.o.
      	(g++$(exeext)): Use libcommon-target.a.
      	(CXX_C_OBJS): Remove prefix.o.
      
      fortran:
      	* Make-lang.in (GFORTRAN_D_OBJS): Remove prefix.o.
      	(gfortran$(exeext)): Use libcommon-target.a.
      
      go:
      	* Make-lang.in (GCCGO_OBJS): Remove prefix.o.
      	(gccgo$(exeext)): Use libcommon-target.a.
      
      java:
      	* Make-lang.in ($(XGCJ)$(exeext)): Use libcommon-target.a instead
      	of prefix.o.
      
      From-SVN: r174109
      Joseph Myers committed
  21. 20 May, 2011 2 commits
    • Makefile.in (LIBDEPS): Add libcommon.a. · 2691e6d7
      	* Makefile.in (LIBDEPS): Add libcommon.a.
      	(LIBS): Likewise.
      	(GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
      	(OBJS-common): Remove diagnostic.o, input.o, intl.o,
      	pretty-print.o and version.o.
      	(OBJS-libcommon): New.
      	(ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
      	(BACKEND): Add libcommon.a.
      	(MOSTLYCLEANFILES): Likewise.
      	(libcommon.a): New.
      	(xgcc$(exeext)): Don't explicitly use version.o and intl.o.
      	(cpp$(exeext)): Likewise.
      	(COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
      	pretty-print.o and input.o.
      	(lto-wrapper$(exeext)): Don't explicitly use intl.o.
      	(lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
      	(errors.o): Remove.
      	(mips-tfile): Don't explicitly use version.o.
      	(mips-tdump): Likewise.
      	(gcov.o): Depend on $(DIAGNOSTIC_H).
      	(gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
      	(GCOV_OBJS): Remove intl.o, version.o and errors.o.
      	(GCOV_DUMP_OBJS): Remove version.o and errors.o.
      	* gcov-dump.c: Include intl.h and diagnostic.h.
      	(main): Initialize diagnostics.
      	* gcov.c: Include diagnostic.h.
      	(fnotice): Remove.
      	(main): Initialize diagnostics.
      	* lto-wrapper.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      
      ada:
      	* gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove
      	version.o.
      	* gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
      	libcommon.a instead of version.o.
      
      cp:
      	* Make-lang.in (GXX_OBJS): Remove intl.o and version.o.
      
      fortran:
      	* Make-lang.in (GFORTRAN_D_OBJS): Remove version.o and intl.o.
      
      go:
      	* Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
      
      java:
      	* Make-lang.in ($(XGCJ)$(exeext)): Don't explicitly use intl.o and
      	version.o.
      	(JCFDUMP_OBJS): Remove errors.o, version.o and intl.o.
      	(JVGENMAIN_OBJS): Remove errors.o and intl.o.
      	(java/jcf-dump.o, java/jvgenmain.o): Depend in $(DIAGNOSTIC_H).
      	* jcf-dump.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      	* jvgenmain.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      
      From-SVN: r173958
      Joseph Myers committed
    • Update to current version of Go library. · 9ff56c95
      From-SVN: r173931
      Ian Lance Taylor committed
  22. 13 May, 2011 1 commit
  23. 12 May, 2011 1 commit
  24. 11 May, 2011 2 commits
  25. 07 May, 2011 2 commits
    • langhooks.h (lang_hooks_for_types): Change global_bindings_p's return type to… · c99c0026
      langhooks.h (lang_hooks_for_types): Change global_bindings_p's return type to bool and adjust comment.
      
      2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
      	type to bool and adjust comment.
      	* fold-const.c (fold_range_test): Adjust call to global_bindings_p.
      	(fold_mathfn_compare): Remove calls to global_bindings_p.
      	(fold_inf_compare): Likewise.
      	* stor-layout.c (variable_size): Adjust call to global_bindings_p.
      	* c-tree.h (global_bindings_p): Adjust prototype.
      	* c-decl.c (global_bindings_p): Return bool and simplify.
      ada/
      	* gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
      	* gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
      cp/
      	* name-lookup.h (global_bindings_p): Adjust prototype.
      	* name-lookup.c (global_bindings_p): Return bool.
      fortran/
      	* f95-lang.c (global_bindings_p): Return bool and simplify.
      go/
      	* go-lang.c (global_bindings_p): Return bool and simplify.
      java/
      	* java-tree.h (global_bindings_p): Adjust prototype.
      	* decl.c (global_bindings_p): Return bool.
      lto/
      	* lto-lang.c (global_bindings_p): Return bool.
      
      From-SVN: r173535
      Eric Botcazou committed
    • Use backend types for all type conversions. · 5b735706
      From-SVN: r173520
      Ian Lance Taylor committed
  26. 06 May, 2011 4 commits
    • More uses of backend interface for types. · 4e7e7a49
      From-SVN: r173507
      Ian Lance Taylor committed
    • Use backend interface for string types. · 1f94e0c6
      From-SVN: r173502
      Ian Lance Taylor committed
    • Use backend interface for interface types. · da9e0b98
      From-SVN: r173469
      Ian Lance Taylor committed
    • generalize build_case_label to the rest of the compiler · 3d528853
      generalize build_case_label to the rest of the compiler
      gcc/ada/
      	* gcc-interface/trans.c (Case_Statement_to_gnu): Call
      	build_case_label.
      
      gcc/
      	* except.c (sjlj_emit_dispatch_table): Call build_case_label.
      	* gimplify.c (gimplify_switch_expr): Likewise.
      	* omp-low.c (expand_omp_sections): Likewise.
      	* tree-eh.c (lower_try_finally_switch): Likewise.
      	(lower_eh_dispatch): Likewise.
      	* tree.h (build_case_label): Declare.
      	* tree.c (build_case_label): Define.
      
      gcc/c-family/
      	* c-common.c (c_add_case_label): Omit the loc argument to
      	build_case_label.
      	* c-common.h (build_case_label): Remove.
      	* c-semantics.c (build_case_label): Remove.
      
      gcc/cp/
      	* decl.c (finish_case_label): Omit the loc argument to
      	build_case_label.
      
      gcc/fortran/
      	* trans-decl.c (gfc_trans_entry_master_switch): Call build_case_label.
      	* trans-io.c (add_case): Likewise.
      	* trans-stmt.c (gfc_trans_integer_select): Likewise.
      	(gfc_trans_character_select): Likewise.
      
      gcc/go/
      	* go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
      
      gcc/java/
      	* expr.c (expand_java_switch): Call build_case_label.
      	(expand_java_add_case): Likewise.
      
      From-SVN: r173467
      Nathan Froyd committed
  27. 05 May, 2011 1 commit
  28. 04 May, 2011 1 commit
    • Use backend interface for named types and array types. · 7fc2f86b
      	* go-gcc.cc (Gcc_backend::struct_type): Call fill_in_struct.
      	(Gcc_backend::fill_in_struct): New function.
      	(Gcc_backend::array_type): Implement.
      	(Gcc_backend::fill_in_array): New function.
      	(Gcc_backend::placeholder_pointer_type): New function.
      	(Gcc_backend::set_placeholder_pointer_type): New function.
      	(Gcc_backend::set_placeholder_function_type): New function.
      	(Gcc_backend::placeholder_struct_type): New function.
      	(Gcc_backend::set_placeholder_struct_type): New function.
      	(Gcc_backend::placeholder_array_type): New function.
      	(Gcc_backend::set_placeholder_array_type): New function.
      	(Gcc_backend::named_type): New function.
      	(Gcc_backend::circular_pointer_type): New function.
      	(Gcc_backend::is_circular_pointer_type): New function.
      
      From-SVN: r173380
      Ian Lance Taylor committed
  29. 27 Apr, 2011 1 commit