1. 10 May, 2011 10 commits
    • config.gcc (i[34567]86-*-darwin*, [...]): Add i386/darwin-lib.h to $libgcc_tm_file. · 4a68b4ca
      gcc:
      	* config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
      	i386/darwin-lib.h to $libgcc_tm_file.
      	* config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
      
      libgcc:
      	* config/i386/darwin-lib.h: New file.
      
      From-SVN: r173622
      Joseph Myers committed
    • gcc_update (gcc/config/rs6000/rs6000-tables.opt): New dependencies. · f10d3ac9
      contrib:
      	* gcc_update (gcc/config/rs6000/rs6000-tables.opt): New
      	dependencies.
      
      gcc:
      	* config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New
      	files.
      	* config/rs6000/rs6000-tables.opt: New file (generated).
      	* config.gcc (powerpc*-*-*, rs6000*-*-*): Add
      	rs6000/rs6000-tables.opt to extra_options.
      	* config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
      	* config/rs6000/rs6000.c (rs6000_select): Remove.
      	(processor_target_table): Move contents to rs6000-cpus.def.
      	(darwin_rs6000_override_options): Check
      	global_options_set.x_rs6000_cpu_index instead of
      	rs6000_select[1].string.
      	(rs6000_option_override_internal): Likewise.
      	(rs6000_handle_option): Don't assert that global structures are in
      	use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
      	(rs6000_default_cpu): New variable.
      	(rs6000_file_start): Set it instead of local default_cpu.  Check
      	rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
      	global_options_set.x_rs6000_tune_index instead of rs6000_select.
      	(rs6000_darwin_file_start): Check rs6000_default_cpu and
      	global_options_set.x_rs6000_cpu_index instead of rs6000_select.
      	* config/rs6000/rs6000.h (struct rs6000_cpu_select,
      	rs6000_select): Remove.
      	* config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
      	Remove.
      	(mcpu=, mtune=): Use Var, Init, Enum and Save.
      	* config/rs6000/t-rs6000
      	($(srcdir)/config/rs6000/rs6000-tables.opt): New.
      	* config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
      	global_options_set.x_rs6000_cpu_index instead of
      	rs6000_select[1].string.
      	* config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
      	global_options_set.x_rs6000_cpu_index instead of
      	rs6000_select[1].string.
      
      From-SVN: r173620
      Joseph Myers committed
    • config.gcc (libgcc_tm_file): Define instead of including files from… · 80cf2e08
      config.gcc (libgcc_tm_file): Define instead of including files from ../../libgcc/config/ in tm_file.
      
      gcc:
      	* config.gcc (libgcc_tm_file): Define instead of including files
      	from ../../libgcc/config/ in tm_file.
      	* configure.ac (libgcc_tm_file_list, libgcc_tm_include_list):
      	Define.
      	* configure: Regenerate.
      	* Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
      	libgcc_tm.h, cs-libgcc_tm.h): New.
      	(TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
      	(clean): Remove libgcc_tm.h.
      	* config/arm/symbian.h (RENAME_LIBRARY): Remove.
      	* mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
      	* system.h (DECLARE_LIBRARY_RENAMES): Poison.
      
      libgcc:
      	* config/arm/symbian-lib.h: New.
      
      From-SVN: r173619
      Joseph Myers committed
    • re PR target/48896 (avr.o warnings) · fd01a351
      	PR target/48896
      	* config/avr/avr.c (avr_ret_register): Return unsigned int
      	instead of int.
      	(avr_function_value): Mark fn_decl_or_type as unused, don't pass
      	it to avr_libcall_value.
      	avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
      	expand_expr.
      	(avr_expand_binop_builtin): Ditto.
      	(avr_expand_unop_builtin): Ditto.
      
      From-SVN: r173617
      Georg-Johann Lay committed
    • rx.h (JUMP_ALIGN, [...]): Define. · 34cc3c86
      	* config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
      	(LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
      	* config/rx/rx.c (rx_align_for_label): Add label and
      	uses_threshold parameters.  Do not align when the label is not
      	used enough.
      	* config/rx/rx-protos.h (rx_align_for_label): Update prototype.
      
      From-SVN: r173615
      DJ Delorie committed
    • tree-ssa-forwprop.c (combine_conversions): Pattern-match a series of conversions… · be173289
      tree-ssa-forwprop.c (combine_conversions): Pattern-match a series of conversions and apply foldings similar to what...
      
      2011-05-10  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-forwprop.c (combine_conversions): Pattern-match
      	a series of conversions and apply foldings similar to what
      	fold-const does.
      	(tree_ssa_forward_propagate_single_use_vars): Call it.
      
      	* gcc.dg/tree-ssa/ssa-fre-2.c: Disable forwprop.
      	* gcc.dg/tree-ssa/ssa-fre-3.c: Likewise.
      	* gcc.dg/tree-ssa/ssa-fre-4.c: Likewise.
      	* gcc.dg/tree-ssa/ssa-fre-5.c: Likewise.
      	* gcc.dg/tree-ssa/scev-cast.c: Adjust.  Note what transformation
      	applies.
      
      From-SVN: r173612
      Richard Guenther committed
    • re PR tree-optimization/48611 (ICE: SIGSEGV in remap_eh_region_nr… · 6ae70ea2
      re PR tree-optimization/48611 (ICE: SIGSEGV in remap_eh_region_nr (tree-inline.c:1194) with -Os -fopenmp -fexceptions -fno-tree-ccp -fno-tree-copy-prop on basic code)
      
      	PR tree-optimization/48611
      	PR tree-optimization/48794
      	* tree-eh.c (remove_unreachable_handlers): Don't remove regions
      	referenced from RESX or EH_DISPATCH arguments.
      
      	* gfortran.dg/gomp/pr48611.f90: New test.
      	* gfortran.dg/gomp/pr48794.f90: New test.
      
      From-SVN: r173607
      Jakub Jelinek committed
    • re PR debug/48928 (ICE: in decimal_to_decnumber, at dfp.c:113 with -O -g and decimal float) · e7f78021
      	PR debug/48928
      	* dfp.c (decimal_to_decnumber): Handle conversion from
      	dconst{1,2,m1,half}.
      
      	* gcc.dg/dfp/pr48928.c: New test.
      
      From-SVN: r173606
      Jakub Jelinek committed
    • Daily bump. · 321f4ead
      From-SVN: r173604
      GCC Administrator committed
  2. 09 May, 2011 27 commits
  3. 08 May, 2011 3 commits
    • combine.c (simplify_comparison): Abstract out parts into... · 4f82319d
      2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
      
      	* combine.c (simplify_comparison): Abstract out parts into...
      	(simplify_compare_const): ... new function.
      	(try_combine): Generalize parallel arithmetic/compare combining
      	to call simplify_compare_const() and CANONICALIZE_COMPARE().
      
      From-SVN: r173552
      Chung-Lin Tang committed
    • cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter. · 74605a11
      
      	* cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
      	(cgraph_create_virtual_clone): Call hooks once virtual clone is finished.
      	* cgraph.h (cgraph_clone_node): Update prototype.
      	* ipa-cp.c (ipcp_estimate_growth): Use estimate_ipcp_clone_size_and_time.
      	* ipa-inline-transform.c (clone_inlined_nodes): Update.
      	* lto-cgraph.c (input_node): Update.
      	* ipa-inline.c (recursive_inlining): Update.
      	* ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
      	(evaluate_conditions_for_known_args): Break out from ...
      	(evaluate_conditions_for_edge): ... here.
      	(evaluate_conditions_for_ipcp_clone): New function.
      	(inline_node_duplication_hook): Update clone summary based
      	on parameter map.
      	(estimate_callee_size_and_time): Rename to ...
      	(estimate_node_size_and_time): take NODE instead of EDGE;
      	take POSSIBLE_TRUTHS as argument.
      	(estimate_callee_size_and_time): Update.
      	(estimate_ipcp_clone_size_and_time): New function.
      	(do_estimate_edge_time): Update.
      
      From-SVN: r173551
      Jan Hubicka committed
    • re PR middle-end/48908 (build fails on cris-elf in libiberty:md5.c, shift-related) · 5c049507
      2011-05-08  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/48908
      	PR middle-end/48905
      	* expmed.c (expand_shift_1): Compute adjusted constant shift
      	amount manually.
      
      From-SVN: r173550
      Richard Guenther committed