1. 09 Jun, 2009 14 commits
  2. 08 Jun, 2009 21 commits
    • sh-protos.h (sh_optimization_options): Declare. · bd9a3465
      	* config/sh/sh-protos.h (sh_optimization_options): Declare.
      	(sh_override_options): Likewise.
      	* config/sh/sh.c: Include params.h.
      	(sh_optimization_options): New.
      	(sh_override_options): Likewise.
      	* config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
      	(OVERRIDE_OPTIONS): Use sh_override_options.
      
      From-SVN: r148299
      Kaz Kojima committed
    • dwarf2out.c (emit_cfa_remember): New variable. · 8845deab
      	* dwarf2out.c (emit_cfa_remember): New variable.
      	(add_fde_cfi): If emit_cfa_remember, recurse to add
      	DW_CFA_remember_state first.
      	(dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
      	instead just set emit_cfa_remember.
      
      From-SVN: r148298
      Jakub Jelinek committed
    • Update ChangeLog for commit Rev. 148290 · d7f26adf
      From-SVN: r148296
      Paul Thomas committed
    • re PR debug/40126 (-O2 -g results in: can't resolve `.LFE95' {*UND* section} -… · 9ea81b0c
      re PR debug/40126 (-O2 -g results in: can't resolve `.LFE95' {*UND* section} - `.Ltext0' {.text section})
      
      	PR debug/40126
      	* dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
      
      From-SVN: r148293
      Jan Hubicka committed
    • re PR middle-end/39834 (verify_cgraph_node failed with -O3 -Winline) · 21ecdec5
      
      	PR debug/39834
      	* gcc.dg/torture/pr39834.c
      	PR middle-end/39834
      	* cgraphunit.c (save_inline_function_body): Do not copy transform hooks
      	for saved inline bodies.
      	* ipa-passes.c (do_per_function): Do not add the hoks multiple times
      	for given function.
      
      From-SVN: r148292
      Jan Hubicka committed
    • trans-array.h: Replace prototypes for gfc_conv_descriptor_offset... · 568e8e1e
      2009-06-08  Paul Thomas  <pault@gcc.gnu.org>
      
      	* trans-array.h : Replace prototypes for
      	gfc_conv_descriptor_offset, gfc_conv_descriptor_stride,
      	gfc_conv_descriptor_lbound, gfc_conv_descriptor_ubound with new
      	prototypes of the same names with _get or _set appended.
      	* trans-array.c : Make the originals of the above static and
      	new functions for the _get and _set functions. Update all the
      	references to these descriptor access functions.
      	* trans-expr.c : Update references to the above descriptor
      	access functions.
      	* trans-intrinsic.c : The same.
      	* trans-openmp.c : The same.
      	* trans-stmt.c : The same.
      
      From-SVN: r148290
      Paul Thomas committed
    • jump.c (returnjump_p): Handle delayed branches. · 72e48218
      	* jump.c (returnjump_p): Handle delayed branches.  Add missing
      	function comment.
      
      From-SVN: r148289
      Adam Nemet committed
    • re PR middle-end/40102 (Revision 147294 caused ICE: verify_cgraph_node) · 6ce2002b
      	PR middle-end/40102
      	* cgraph.c (cgraph_create_edge_including_clones): Also asume that the
      	original node might've been modified.
      	* tree-inline.c (copy_bb): Do not assume that all clones are the same.
      
      	PR middle-end/40102
      	* g++.dg/torture/pr40102.C: New testcase.
      
      From-SVN: r148287
      Jan Hubicka committed
    • README: Import from libffi 3.0.8. · 491e6ad1
      2009-06-08  Andrew Haley  <aph@redhat.com>
      
      	* README: Import from libffi 3.0.8.
      
      From-SVN: r148286
      Andrew Haley committed
    • [multiple changes] · 3b5b1a73
      2009-06-08  Andrew Haley  <aph@redhat.com>
      
      	* testsuite/libffi.call/err_bad_abi.c: Add xfails.
      	* testsuite/libffi.call/cls_longdouble_va.c: Add xfails.
      	* testsuite/libffi.call/cls_dbls_struct.c: Add xfail x86_64-*-linux-*.
      	* testsuite/libffi.call/err_bad_typedef.c: Add xfails.
      
      	* testsuite/libffi.call/stret_medium2.c: Add __UNUSED__ to args.
      	* testsuite/libffi.call/stret_medium.c: Likewise.
      	* testsuite/libffi.call/stret_large2.c: Likewise.
      	* testsuite/libffi.call/stret_large.c:  Likewise.
      
      2008-12-26  Timothy Wall  <twall@users.sf.net>
      
              * testsuite/libffi.call/cls_longdouble.c,
              testsuite/libffi.call/cls_longdouble_va.c,
              testsuite/libffi.call/cls_align_longdouble.c,
              testsuite/libffi.call/cls_align_longdouble_split.c,
              testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
              failures on x86_64 cygwin/mingw.
      
      2008-12-22  Timothy Wall  <twall@users.sf.net>
      
              * testsuite/libffi.call/closure_fn0.c,
              testsuite/libffi.call/closure_fn1.c,
              testsuite/libffi.call/closure_fn2.c,
              testsuite/libffi.call/closure_fn3.c,
              testsuite/libffi.call/closure_fn4.c,
              testsuite/libffi.call/closure_fn5.c,
              testsuite/libffi.call/closure_fn6.c,
              testsuite/libffi.call/closure_loc_fn0.c,
              testsuite/libffi.call/closure_stdcall.c,
              testsuite/libffi.call/cls_align_pointer.c,
              testsuite/libffi.call/cls_pointer.c,
              testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
              pointer to integer (intptr_t).
              * testsuite/libffi.call/cls_longdouble.c: disable for win64.
      
      2008-07-24  Anthony Green  <green@redhat.com>
      
              * testsuite/libffi.call/cls_dbls_struct.c,
              testsuite/libffi.call/cls_double_va.c,
              testsuite/libffi.call/cls_longdouble.c,
              testsuite/libffi.call/cls_longdouble_va.c,
              testsuite/libffi.call/cls_pointer.c,
              testsuite/libffi.call/cls_pointer_stack.c,
              testsuite/libffi.call/err_bad_abi.c: Clean up failures from
              compiler warnings.
      
      2008-03-04  Anthony Green  <green@redhat.com>
                  Blake Chaffin
                  hos@tamanegi.org
      
              * testsuite/libffi.call/cls_align_longdouble_split2.c
                testsuite/libffi.call/cls_align_longdouble_split.c
                testsuite/libffi.call/cls_dbls_struct.c
                testsuite/libffi.call/cls_double_va.c
                testsuite/libffi.call/cls_longdouble.c
                testsuite/libffi.call/cls_longdouble_va.c
                testsuite/libffi.call/cls_pointer.c
                testsuite/libffi.call/cls_pointer_stack.c
                testsuite/libffi.call/err_bad_abi.c
                testsuite/libffi.call/err_bad_typedef.c
                testsuite/libffi.call/stret_large2.c
                testsuite/libffi.call/stret_large.c
                testsuite/libffi.call/stret_medium2.c
                testsuite/libffi.call/stret_medium.c: New tests from Apple.
      
      From-SVN: r148285
      Andrew Haley committed
    • re PR c++/40373 (ICE with invalid destructor call) · b792a33c
      	PR c++/40373
      	* call.c (check_dtor_name): Return false even if
      	get_type_value (name) is error_mark_node.
      
      	* g++.dg/template/dtor7.C: New test.
      
      From-SVN: r148282
      Jakub Jelinek committed
    • configure.ac: Detect MPC in default directory. · 5f4a82c0
      	* configure.ac: Detect MPC in default directory.
      	* configure: Regenerate.
      
      From-SVN: r148280
      Kaveh R. Ghazi committed
    • tree-object-size.c (addr_object_size): Add OSI argument. · eb9ed98a
      	* tree-object-size.c (addr_object_size): Add OSI argument.
      	Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
      	(compute_builtin_object_size, expr_object_size): Adjust callers.
      	(plus_stmt_object_size): Call addr_object_size instead of
      	compute_builtin_object_size.
      
      	* gcc.dg/builtin-object-size-2.c (test1): Adjust expected results.
      	* gcc.dg/builtin-object-size-4.c (test1): Adjust expected results.
      	* gcc.dg/builtin-object-size-6.c: New test.
      
      From-SVN: r148279
      Jakub Jelinek committed
    • re PR c++/40370 (ICE with invalid array bound in template class) · 85a988d1
      	PR c++/40370
      	PR c++/40372
      	* parser.c (cp_parser_direct_declarator): Don't set TREE_SIDE_EFFECTS
      	on error_mark_node.  Check for VLAs outside of function context
      	before check whether to wrap bounds into a NOP_EXPR with
      	TREE_SIDE_EFFECTS.
      
      	* g++.dg/template/error41.C: New test.
      	* g++.dg/template/error42.C: New test.
      
      From-SVN: r148278
      Jakub Jelinek committed
    • 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com> · db34470d
                  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
              
              * tree-ssa-loop-prefetch.c 
              (gather_memory_references): Introduced a counter for the number of 
              memory references.
              (anything_to_prefetch_p): Introduced a counter for the number of 
              prefetches.
              (is_loop_prefetching_profitable): New function with a cost model 
              for prefetching.
              (loop_prefetch_arrays): Use the new cost model to determine if 
              prefetching is profitable.
              * params.def (MIN_INSN_TO_PREFETCH_RATIO, 
              PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
              * params.h (MIN_INSN_TO_PREFETCH_RATIO, 
              PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
              * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO, 
              PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
      
      
      Co-Authored-By: Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
      
      From-SVN: r148277
      Ghassan Shobaki committed
    • random.tcc (gamma_distribution<>::operator() (_UniformRandomNumberGenerator&,… · b01630bb
      random.tcc (gamma_distribution<>::operator() (_UniformRandomNumberGenerator&, const param_type&): Redo, using the Marsaglia/Tsang algorithm.
      
      2009-06-08  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/random.tcc (gamma_distribution<>::operator()
      	(_UniformRandomNumberGenerator&, const param_type&): Redo, using
      	the Marsaglia/Tsang algorithm.
      	(gamma_distribution<>::param_type::_M_initialize): Adjust.
      	(operator<<(basic_ostream<>&, gamma_distribution<>),
      	operator>>(basic_ostream<>&, gamma_distribution<>): Likewise.
      
      	* include/bits/random.tcc(student_t_distribution<>::_M_gaussian):
      	Remove, just use normal_distribution.
      	(operator<<(basic_ostream<>&, student_t_distribution<>),
      	operator>>(basic_ostream<>&, student_t_distribution<>): Adjust.
      	(linear_congruential_engine<>::operator()()): Move inline.
      	(lognormal_distribution<>::operator()(_UniformRandomNumberGenerator&,
      	const param_type&)): Move inline, just use normal_distribution.
      	(operator<<(basic_ostream<>&, lognormal_distribution<>),
      	operator>>(basic_ostream<>&, lognormal_distribution<>): Adjust.
      	(weibull_distribution<>::operator()(_UniformRandomNumberGenerator&,
      	const param_type&)): Move here, out of line.
      	(piecewise_constant_distribution<>::param_type::param_type()): Move
      	inline.
      	* include/bits/random.h: Adjust, minor tweaks.
      
      From-SVN: r148276
      Paolo Carlini committed
    • re PR debug/40012 (Revision 146817 generated bad debug info for local variables) · eb7adebc
              PR debug/40012
      
              * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
              partitions use the same.
              (expand_one_var): Deal with DECL_RTL sometimes begin set also
              for basevars of SSA_NAMEs.
              (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
              to not expand them twice.
              (gimple_expand_cfg): Clear DECL_RTL for those decls that have
              multiple places.
      
      From-SVN: r148273
      Michael Matz committed
    • common.opt (fcompare-debug=, [...]): New. · 2153915d
      gcc/ChangeLog:
      * common.opt (fcompare-debug=, fcompare-debug-second): New.
      (fdump-final-insns=, gtoggle): New.
      * doc/invoke.texi: Document them.
      * final.c (rest_of_clean_state): Dump final insn stream.
      * gcc.c (invoke_as): Hook in -fcompare-debug.
      (static_spec_functions): Add compare-debug-dump-opt,
      compare-debug-self-opt and compare-debug-auxbase-opt.
      (compare_debug, compare_debug_second, compare_debug_opt): New.
      (switches_debug_check, n_switches_debug_check): New.
      (debug_auxbase_opt, debug_check_temp_file): New.
      (process_command): Handle -fno-compare-debug, -fcompare-debug and
      -fcompare-debug=*.
      (do_self_spec): Handle arguments after switches.
      (do_spec_1): Add .gk extension to temp file basenames for compare.
      (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
      (cc1_options): Use it instead of normal auxbase computation for
      the second compare-debug compilation.
      (compare_files): New.
      (main): Set up and implement compare debug mode.
      (compare_debug_dump_opt_spec_function): New.
      (compare_debug_self_opt_spec_function): New.
      (compare_debug_auxbase_opt_spec_function): New.
      * toplev.c (process_options): Handle flag_gtoggle,
      flag_dump_final_insns.
      * coverage.c (coverage_begin_output): Don't overwrite .gcno file
      during -fcompare-debug-second compilation.
      gcc/cp/ChangeLog:
      * repo.c (get_base_filename): Use aux_base_name rather than
      alternate temporary file during second compare debug compilation.
      (finish_repo): Skip during -fcompare-debug-second.
      gcc/ada/ChangeLog:
      * lib-writ.adb (flag_compare_debug): Import.
      (Write_ALI): Skip during -fcompare-debug-second.
      gcc/fortran/ChangeLog:
      * options.c (gfc_post_options): Disable dump_parse_tree
      during -fcompare-debug-second.
      gcc/objc/ChangeLog:
      * objc-act.c (objc_init): Skip print_struct_values during
      -fcompare-debug-second.
      
      From-SVN: r148271
      Alexandre Oliva committed
    • dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr. · cdb88468
      ./:	* dwarf2.h (enum dwarf_location_atom): Add
      	INTERNAL_DW_OP_tls_addr.
      	* dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
      
      	* c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
      	with no default node.  Change warning with %H to warning_at.
      	Don't clear warn_switch around case checking.
      	* doc/invoke.texi (Warning Options): Clarify distinction between
      	-Wswitch and -Wswitch-enum.
      java/:
      	* jcf-parse.c (handle_constant): Change local variable 'kind' to
      	unsigned int.
      testsuite/:
      	* g++.dg/warn/Wswitch-3.C: New testcase.
      	* gcc.dg/Wswitch.c: Adjust for -Wswitch change.
      	* gcc.dg/Wswitch-enum-error.c: Likewise.
      	* gcc.dg/Wswitch-error.c: Likewise.
      
      From-SVN: r148270
      Ian Lance Taylor committed
    • Daily bump. · 36b31e07
      From-SVN: r148269
      GCC Administrator committed
  3. 07 Jun, 2009 5 commits