1. 14 Apr, 2010 25 commits
  2. 13 Apr, 2010 15 commits
    • configure: Regenerate after change to elf.m4. · 3591b8e2
      2010-04-13  Steve Ellcey  <sje@cup.hp.com>
      
      	* configure: Regenerate after change to elf.m4.
      
      In config subdir:
      
      2010-04-13  Steve Ellcey  <sje@cup.hp.com>
      
      	* elf.m4: Add hppa[12]*-*-hpux* to list of non-elf platforms.
      
      From-SVN: r158285
      Steve Ellcey committed
    • hash_map: Don't #include "backward_warning.h" if _GLIBCXX_PERMIT_BACKWARD_HASH is defined. · 896e7917
      	* include/backward/hash_map: Don't #include "backward_warning.h"
      	if _GLIBCXX_PERMIT_BACKWARD_HASH is defined.
      	* include/backward/hash_set: Likewise.
      
      From-SVN: r158281
      Ian Lance Taylor committed
    • gsocket.h: Run-time can no longer be built without network OS headers available. · 014edf49
      2010-04-13  Joel Sherrill <joel.sherrill@oarcorp.com>
      
      	* gsocket.h: Run-time can no longer be built without network
      	OS headers available.  Changing RTEMS GNAT build procedure to
      	reflect this and letting run-time build use network .h files.
      
      From-SVN: r158279
      Joel Sherrill committed
    • ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting of optimized out static functions. · 1ce18dc8
      
      	* ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
      	of optimized out static functions.
      	(cgraph_edge_badness): Add DUMP parameter and dump reasons for the
      	cost computation.  Also sanity check for overflows.
      	(update_caller_keys): Update cgraph_edge_badness call; properly
      	update fibheap and sanity check that it is up to date.
      	(add_new_edges_to_heap): Update cgraph_edge_badness.
      	(cgraph_decide_inlining_of_small_function): Likewise;
      	add sanity checking that badness in heap is up to date;
      	improve dumping of reason; Update badness of calls to the
      	offline copy of function currently inlined; dump badness
      	of functions not inlined because of unit growth limits.
      
      From-SVN: r158278
      Jan Hubicka committed
    • call.c (type_decays_to): Check MAYBE_CLASS_TYPE_P instead of CLASS_TYPE_P. · 44b2dc6c
      	* call.c (type_decays_to): Check MAYBE_CLASS_TYPE_P instead of
      	CLASS_TYPE_P.
      	* parser.c (cp_parser_lambda_expression): Complain about lambda in
      	unevaluated context.
      	* pt.c (iterative_hash_template_arg): Don't crash on lambda.
      
      From-SVN: r158277
      Jason Merrill committed
    • Commit gcc/testsuite/ChangeLog for revision 158275. · 4867a0c6
      	
      2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	* gcc.dg/cpp/cpp.exp: Test also c-c++-common/cpp.
      	* g++.dg/dg.exp: Likewise.
      	* gcc.dg/cpp/warning-directive-1.c: Move to ...
      	* c-c++-common/cpp/warning-directive-1.c: ... here.
      	* gcc.dg/cpp/warning-directive-2.c: Move to ...
      	* c-c++-common/cpp/warning-directive-2.c: ... here.
      	* gcc.dg/cpp/warning-directive-3.c: Move to ...
      	* c-c++-common/cpp/warning-directive-3.c: ... here.
      	* gcc.dg/cpp/warning-directive-4.c: Move to ...
      	* c-c++-common/cpp/warning-directive-4.c: ... here.
      	* g++.dg/cpp/warning-directive-1.C: Delete.
      	* g++.dg/cpp/warning-directive-2.C: Delete.
      	* g++.dg/cpp/warning-directive-3.C: Delete.
      	* g++.dg/cpp/warning-directive-4.C: Delete.
      	* gcc.dg/cpp/normalised-3.c: Delete.
      	* g++.dg/cpp/normalised-1.C: Rename as ...
      	* c-c++-common/cpp/normalised-3.c: ... this.
      
      From-SVN: r158276
      Manuel López-Ibáñez committed
    • cpp.exp: Test also c-c++-common/cpp. · 97a3f2bd
      2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	* gcc.dg/cpp/cpp.exp: Test also c-c++-common/cpp.
      	* g++.dg/dg.exp: Likewise.
      	* gcc.dg/cpp/warning-directive-1.c: Move to ...
      	* c-c++-common/cpp/warning-directive-1.c: ... here.
      	* gcc.dg/cpp/warning-directive-2.c: Move to ...
      	* c-c++-common/cpp/warning-directive-2.c: ... here.
      	* gcc.dg/cpp/warning-directive-3.c: Move to ...
      	* c-c++-common/cpp/warning-directive-3.c: ... here.
      	* gcc.dg/cpp/warning-directive-4.c: Move to ...
      	* c-c++-common/cpp/warning-directive-4.c: ... here.
      	* g++.dg/cpp/warning-directive-1.C: Delete.
      	* g++.dg/cpp/warning-directive-2.C: Delete.
      	* g++.dg/cpp/warning-directive-3.C: Delete.
      	* g++.dg/cpp/warning-directive-4.C: Delete.
      	* gcc.dg/cpp/normalised-3.c: Delete.
      	* g++.dg/cpp/normalised-1.C: Rename as ...
      	* c-c++-common/cpp/normalised-3.c: ... this.
      
      From-SVN: r158275
      Manuel López-Ibáñez committed
    • re PR middle-end/32628 (bogus integer overflow warning) · 9e9ef331
      	PR middle-end/32628
      	* c-common.c (pointer_int_sum): Disregard overflow that occured only
      	because of sign-extension change when converting to sizetype here...
      	* fold-const.c (fold_convert_const_int_from_int): ...and not here.
      
      	* fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
      	the folding to constants.  Remove redundant final conversion.
      	(fold_binary) <associate>: Do not associate if the re-association of
      	constants alone overflows.
      	(fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
      	to the end of the list.
      	(multiple_of_p) <COND_EXPR>: New case.
      
      From-SVN: r158274
      Eric Botcazou committed
    • opt-functions.awk (opt_sanitized_name): New. · 9db94baa
      2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	* opt-functions.awk (opt_sanitized_name): New.
      	(opt_enum): New.
      	* optc-gen.awk: Use it
      	* opth-gen.awk: Use it.
      
      From-SVN: r158272
      Manuel López-Ibáñez committed
    • tree-sra.c (replace_uses_with_default_def_ssa_name): New function. · 0f2ffb9a
      2010-04-13  Martin Jambor  <mjambor@suse.cz>
      
      	* tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
      	(sra_modify_assign): Delete stmts loading dead data even if racc has no
      	children.  Call replace_uses_with_default_def_ssa_name to handle
      	SSA_NAES on lhs.
      
      	* testsuite/gcc.dg/tree-ssa/sra-9.c: New test.
      
      From-SVN: r158271
      Martin Jambor committed
    • re PR middle-end/43730 (internal compiler error: in… · f78b86c0
      re PR middle-end/43730 (internal compiler error: in expand_builtin_interclass_mathfn, at builtins.c:2313)
      
      	PR middle-end/43730
      	* builtins.c (expand_builtin_interclass_mathfn): Also create
      	a register if the predicate doesn't match.
      
      testsuite/
      	* gcc.dg/pr43730.c: New test.
      
      From-SVN: r158268
      Michael Matz committed
    • Add CL entry · 0e6229c2
      From-SVN: r158267
      Diego Novillo committed
    • Makefile.in (c-pch.o, [...]): Depend on timevar.h. · 10d43c2d
      2010-04-12  Diego Novillo  <dnovillo@google.com>
      
      	* Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
      	* c-pch.c: Include timevar.h.
      	(c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
      	(c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE
      	timers.
      	* ggc-common.c: Include timevar.h.
      	(gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT
      	timers.
      	* timevar.def (TV_PCH_SAVE): Define.
      	(TV_PCH_CPP_SAVE): Define.
      	(TV_PCH_PTR_REALLOC): Define.
      	(TV_PCH_PTR_SORT): Define.
      	(TV_PCH_RESTORE): Define.
      	(TV_PCH_CPP_RESTORE): Define.
      
      From-SVN: r158266
      Diego Novillo committed
    • tree-ssa-reassoc.c (repropagate_negates): Merge negates also into MINUS_EXPRs. · 143597ff
      	* tree-ssa-reassoc.c (repropagate_negates): Merge negates also
      	into MINUS_EXPRs.
      	(can_reassociate_p): New function.
      	(break_up_subtract_bb, reassociate_bb): Use it.
      
      testsuite/
      	* gcc.dg/tree-ssa/negate.c: New testcase.
      
      From-SVN: r158265
      Michael Matz committed
    • re PR bootstrap/43737 (Bootstrap broken at -O3) · 54c5ec4f
      2010-04-13  Richard Guenther  <rguenther@suse.de>
      
      	PR bootstrap/43737
      	* builtins.c (c_readstr): Fix assert.
      
      From-SVN: r158264
      Richard Guenther committed