platform/upstream/gcc.git
12 years agoi386.md (*addsi_2_zext): Remove wrong assert.
Uros Bizjak [Tue, 24 Apr 2012 15:23:22 +0000 (17:23 +0200)]
i386.md (*addsi_2_zext): Remove wrong assert.

* config/i386.md (*addsi_2_zext): Remove wrong assert.
(*addsi_3_zext): Ditto.

From-SVN: r186769

12 years agore PR target/53065 (ICE replace_reg_with_saved_mem, at caller-save.c:1125)
Georg-Johann Lay [Tue, 24 Apr 2012 15:21:29 +0000 (15:21 +0000)]
re PR target/53065 (ICE replace_reg_with_saved_mem, at caller-save.c:1125)

PR target/53065
* config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.

From-SVN: r186768

12 years agocompiler: Reject invalid composite literals.
Ian Lance Taylor [Tue, 24 Apr 2012 14:54:17 +0000 (14:54 +0000)]
compiler: Reject invalid composite literals.

From-SVN: r186766

12 years agore PR tree-optimization/53085 (writes to volatile struct members is missing)
Richard Guenther [Tue, 24 Apr 2012 14:41:49 +0000 (14:41 +0000)]
re PR tree-optimization/53085 (writes to volatile struct members is missing)

2012-04-24  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53085
* tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
stores.

* g++.dg/torture/pr53085.C: New testcase.

From-SVN: r186764

12 years agotree-if-conv.c (main_tree_if_conversion): Move bb under ENABLE_CHECKING.
Richard Biener [Tue, 24 Apr 2012 14:18:40 +0000 (14:18 +0000)]
tree-if-conv.c (main_tree_if_conversion): Move bb under ENABLE_CHECKING.

2012-04-24  Richard Guenther  <rguenther@suse.de>

* tree-if-conv.c (main_tree_if_conversion): Move bb under
ENABLE_CHECKING.

From-SVN: r186763

12 years agogenattrtab: avoid NULL-deref on error
Jim Meyering [Tue, 24 Apr 2012 12:07:30 +0000 (12:07 +0000)]
genattrtab: avoid NULL-deref on error

* genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
absence of an define_enum call.

From-SVN: r186761

12 years agotree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If the epilogue loop is...
Richard Guenther [Tue, 24 Apr 2012 11:25:21 +0000 (11:25 +0000)]
tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If the epilogue loop is not re-used as unvectorized version record the its...

2012-04-24  Richard Guenther  <rguenther@suse.de>

* tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
the epilogue loop is not re-used as unvectorized version
record the its maximum number of iterations.

From-SVN: r186760

12 years agofixincl.c (fix_with_system): Add missing specifier.
Tristan Gingold [Tue, 24 Apr 2012 09:24:55 +0000 (09:24 +0000)]
fixincl.c (fix_with_system): Add missing specifier.

2012-04-24  Tristan Gingold  <gingold@adacore.com>

        * fixincl.c (fix_with_system): Add missing specifier.
        * configure.ac: Default to twoprocess on vms.
        * configure: Regenerate.

From-SVN: r186759

12 years agotree-ssa-forwprop.c (simplify_bitwise_binary): Don't directly use def1/def2.
Andrew Pinski [Tue, 24 Apr 2012 08:43:33 +0000 (08:43 +0000)]
tree-ssa-forwprop.c (simplify_bitwise_binary): Don't directly use def1/def2.

2012-04-24  Andrew Pinski  <apinski@cavium.com>

* tree-ssa-forwprop.c (simplify_bitwise_binary):
Don't directly use def1/def2.

From-SVN: r186757

12 years agore PR tree-optimization/53098 (tree-vect-loop.c:1414:19: error: comparison between...
Richard Guenther [Tue, 24 Apr 2012 08:06:20 +0000 (08:06 +0000)]
re PR tree-optimization/53098 (tree-vect-loop.c:1414:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare])

2012-04-24  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53098
* tree-vect-loop.c (vect_analyze_loop_operations): Fixup
comparison sign.

From-SVN: r186754

12 years agoAdd myself in Write After Approval list in MAINTAINERS file.
Naveen H.S [Tue, 24 Apr 2012 07:49:14 +0000 (07:49 +0000)]
Add myself in Write After Approval list in MAINTAINERS file.

From-SVN: r186753

12 years agocompare_tests: Append '/' to make 'find' traverse symlinked directories.
Manuel López-Ibáñez [Tue, 24 Apr 2012 07:22:41 +0000 (07:22 +0000)]
compare_tests: Append '/' to make 'find' traverse symlinked directories.

2012-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>

contrib/
* compare_tests: Append '/' to make 'find' traverse
symlinked directories.

From-SVN: r186750

12 years agore PR tree-optimization/33512 (Simple bitwise simplification missed)
Andrew Pinski [Tue, 24 Apr 2012 07:05:09 +0000 (07:05 +0000)]
re PR tree-optimization/33512 (Simple bitwise simplification missed)

2012-04-24  Andrew Pinski  <apinski@cavium.com>

PR tree-opt/33512
* tree-ssa-forwprop.c (defcodefor_name): New function.
(simplify_bitwise_binary): Use defcodefor_name instead of manually
Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
Simplify "(~X | Y) & X" to "X & Y" and
"(~X & Y) | X" to "X | Y".

2012-04-24  Andrew Pinski  <apinski@cavium.com>

PR tree-opt/33512
* gcc.dg/tree-ssa/andor-3.c: New testcase.
* gcc.dg/tree-ssa/andor-4.c: New testcase.
* gcc.dg/tree-ssa/andor-5.c: New testcase.

From-SVN: r186749

12 years agorecog.c (insn_invalid_p): Add IN_GROUP parameter and use validate_change to add clobb...
Andreas Krebbel [Tue, 24 Apr 2012 07:01:52 +0000 (07:01 +0000)]
recog.c (insn_invalid_p): Add IN_GROUP parameter and use validate_change to add clobbers if...

2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* recog.c (insn_invalid_p): Add IN_GROUP parameter and use
validate_change to add clobbers if IN_GROUP is nonzero.
(verify_changes): Call insn_invalid_p with IN_GROUP set to true.
* recog.h (insn_invalid_p): Add IN_GROUP parameter to function
prototype.
* gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
set to false.
* config/s390/s390.c (insn_invalid_p): Likewise.

From-SVN: r186748

12 years agoUse braced string notation where applicable for v850.md
Naveen H.S [Tue, 24 Apr 2012 06:59:57 +0000 (06:59 +0000)]
Use braced string notation where applicable for v850.md

From-SVN: r186747

12 years agoUse braced string notation where applicable for h8300.md
Naveen H.S [Tue, 24 Apr 2012 06:10:14 +0000 (06:10 +0000)]
Use braced string notation where applicable for h8300.md

From-SVN: r186744

12 years agore PR middle-end/53084 (GCC cannot handle array initialization of string constant...
Jakub Jelinek [Tue, 24 Apr 2012 06:07:30 +0000 (08:07 +0200)]
re PR middle-end/53084 (GCC cannot handle array initialization of string constant with point arithmetic properly)

PR middle-end/53084
* varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR
of MEM_REF.
(output_addressed_constants): Likewise.

* gcc.c-torture/execute/pr53084.c: New test.

From-SVN: r186742

12 years agore PR target/52999 (ICE, segmentation fault in c_tree_printer)
Jakub Jelinek [Tue, 24 Apr 2012 06:03:43 +0000 (08:03 +0200)]
re PR target/52999 (ICE, segmentation fault in c_tree_printer)

PR middle-end/52999
* varasm.c (get_section): Don't ICE for section conflicts with
built-in section kinds.

From-SVN: r186741

12 years agocompiler: Error for invalid use of ... in call.
Ian Lance Taylor [Tue, 24 Apr 2012 05:55:27 +0000 (05:55 +0000)]
compiler: Error for invalid use of ... in call.

From-SVN: r186739

12 years agos390.h (LINK_SPEC): Remove, no longer needed.
DJ Delorie [Tue, 24 Apr 2012 01:53:20 +0000 (21:53 -0400)]
s390.h (LINK_SPEC): Remove, no longer needed.

* config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
(LIBSTDCXX): Change to CPP2.

From-SVN: r186737

12 years agoDaily bump.
GCC Administrator [Tue, 24 Apr 2012 00:17:57 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r186734

12 years agonoexcept15.C: Adjust for Rev 186726 library changes.
Paolo Carlini [Mon, 23 Apr 2012 23:55:42 +0000 (23:55 +0000)]
noexcept15.C: Adjust for Rev 186726 library changes.

2012-04-23  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/noexcept15.C: Adjust for Rev 186726 library changes.

From-SVN: r186730

12 years agoCheck if MASK_/TARGET_ macros defined for extra_masks
H.J. Lu [Mon, 23 Apr 2012 23:32:54 +0000 (23:32 +0000)]
Check if MASK_/TARGET_ macros defined for extra_masks

2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>

PR bootstrap/52878
* opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
extra_masks.

From-SVN: r186729

12 years agogo-lang.c (go_langhook_init): Set MPFR precision to 256.
Ian Lance Taylor [Mon, 23 Apr 2012 21:39:12 +0000 (21:39 +0000)]
go-lang.c (go_langhook_init): Set MPFR precision to 256.

* go-lang.c (go_langhook_init): Set MPFR precision to 256.

time: Adjust float expression so that it first integer context.

From-SVN: r186727

12 years agotype_traits (is_nothrow_destructible): Implement.
Daniel Krugler [Mon, 23 Apr 2012 21:34:06 +0000 (21:34 +0000)]
type_traits (is_nothrow_destructible): Implement.

2012-04-23  Daniel Krugler  <daniel.kruegler@googlemail.com>

* include/std/type_traits (is_nothrow_destructible): Implement.
(is_destructible): Implement LWG 2049.
* testsuite/util/testsuite_tr1.h: Add tests.
* testsuite/20_util/is_nothrow_destructible/value.cc: New.
* testsuite/20_util/is_nothrow_destructible/requirements/typedefs.cc:
* testsuite/20_util/is_nothrow_destructible/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_destructible/value.cc: Adjust and extend.
* testsuite/20_util/is_default_constructible/value.cc: Tweak.
* testsuite/20_util/is_constructible/value-2.cc: Likewise.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
dg-error line numbers.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.
* testsuite/20_util/declval/requirements/1_neg.cc: Likewise.

From-SVN: r186726

12 years agoi386.md (*add<mode>_2): Add r/r/0 alternative.
Uros Bizjak [Mon, 23 Apr 2012 21:24:56 +0000 (23:24 +0200)]
i386.md (*add<mode>_2): Add r/r/0 alternative.

* config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
(*addsi_2_zext): Ditto.
(*add<mode>_3): Ditto.
(*addsi_3_zext): Ditto.
(*add<mode>_5): Ditto.

From-SVN: r186725

12 years agocompiler: Correct handling of negative zero floating constant.
Ian Lance Taylor [Mon, 23 Apr 2012 20:49:33 +0000 (20:49 +0000)]
compiler: Correct handling of negative zero floating constant.

From-SVN: r186722

12 years agotree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0 (C & B) to (A...
Andrew Pinski [Mon, 23 Apr 2012 19:37:59 +0000 (19:37 +0000)]
tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0 (C & B) to (A OP0) & B.

2012-04-23  Andrew Pinski  <apinski@cavium.com>

* tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
(C & B) to (A OP0) & B.

2012-04-23  Andrew Pinski  <apinski@cavium.com>

* gcc.dg/tree-ssa/forwprop-17.c: New testcase.

From-SVN: r186721

12 years agoexpr.c (expand_expr_real_1): Remove setting parent's alias set for temporaries create...
Martin Jambor [Mon, 23 Apr 2012 17:17:48 +0000 (19:17 +0200)]
expr.c (expand_expr_real_1): Remove setting parent's alias set for temporaries created for a bitfield...

2012-04-23  Martin Jambor  <mjambor@suse.cz>

* expr.c (expand_expr_real_1): Remove setting parent's alias set for
temporaries created for a bitfield (reverting revision 122014).

From-SVN: r186718

12 years agolibgo: Make sure log/syslog subdirectory exists before using it.
Ian Lance Taylor [Mon, 23 Apr 2012 17:02:54 +0000 (17:02 +0000)]
libgo: Make sure log/syslog subdirectory exists before using it.

From-SVN: r186715

12 years agotree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify the condition using is_gimpl...
Richard Guenther [Mon, 23 Apr 2012 14:38:16 +0000 (14:38 +0000)]
tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify the condition using is_gimple_condexpr and avoid the not necessary...

2012-04-23  Richard Guenther  <rguenther@suse.de>

* tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
the condition using is_gimple_condexpr and avoid the not necessary
boolification.
(set_prologue_iterations): Likewise.
(vect_loop_versioning): Likewise.

From-SVN: r186710

12 years agore PR regression/53076 (gcc.dg/torture/builtin-explog-1.c, gcc.dg/torture/builtin...
Bill Schmidt [Mon, 23 Apr 2012 14:06:11 +0000 (14:06 +0000)]
re PR regression/53076 (gcc.dg/torture/builtin-explog-1.c, gcc.dg/torture/builtin-power-1.c at -O0)

gcc-testsuite:

2012-04-23  Bill Schmidt  <wschmidt@linux.ibm.com>

PR regression/53076
* gcc.dg/torture/builtin-explog-1.c: Skip if -O0.
* gcc.dg/torture/builtin-power-1.c: Likewise.

From-SVN: r186709

12 years agodefineclass.cc (MAJOR_1_7, MINOR_1_7): New.
Andrew Haley [Mon, 23 Apr 2012 13:33:32 +0000 (13:33 +0000)]
defineclass.cc (MAJOR_1_7, MINOR_1_7): New.

2012-04-23  Andrew Haley  <aph@redhat.com>

* defineclass.cc (MAJOR_1_7,  MINOR_1_7): New.
(parse): Allow MAJOR_1_7 classfile version.

From-SVN: r186707

12 years agore PR tree-optimization/53070 (ICE: in execute_cse_reciprocals, at tree-ssa-math...
Richard Guenther [Mon, 23 Apr 2012 12:47:02 +0000 (12:47 +0000)]
re PR tree-optimization/53070 (ICE: in execute_cse_reciprocals, at tree-ssa-math-opts.c:513 with -O -ffast-math -ftree-loop-if-convert -fno-tree-loop-im)

2012-04-23  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53070
* tree-if-conv.c (combine_blocks): Free predicates in all blocks.
(main_tree_if_conversion): Verify we succeeded in that.

* gcc.dg/torture/pr53070.c: New testcase.

From-SVN: r186704

12 years agore PR libstdc++/53080 (tuple interface to std::array doesn't check bounds)
Paolo Carlini [Mon, 23 Apr 2012 12:26:43 +0000 (12:26 +0000)]
re PR libstdc++/53080 (tuple interface to std::array doesn't check bounds)

2012-04-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/53080
* include/std/array (tuple_element, get): static_assert I < N.
* testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
New.
* testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
* testsuite/23_containers/array/tuple_interface/tuple_element.cc: Fix.

From-SVN: r186702

12 years agore PR testsuite/53046 (New libstdc++ test failures)
Chris Jefferson [Mon, 23 Apr 2012 11:17:28 +0000 (11:17 +0000)]
re PR testsuite/53046 (New libstdc++ test failures)

2012-04-23  Chris Jefferson  <chris@bubblescope.net>

PR testsuite/53046
* testsuite/25_algorithms/stable_partition/mem_check.cc: Fix size
of array A.
* testsuite/25_algorithms/stable_sort/mem_check.cc: Likewise.

From-SVN: r186701

12 years agolto-symtab.c (lto_cgraph_replace_node): Do not call mark_reahcable_node.
Jan Hubicka [Mon, 23 Apr 2012 11:13:46 +0000 (13:13 +0200)]
lto-symtab.c (lto_cgraph_replace_node): Do not call mark_reahcable_node.

* lto-symtab.c (lto_cgraph_replace_node): Do not call
mark_reahcable_node.
* cgraph.c (cgraph_remove_node): Do not clear reachable.
(cgraph_mark_reachable_node): Remove.
(cgraph_mark_force_output_node): Do not set reachable.
(dump_cgraph_node): Do not dump reachable.
(cgraph_create_virtual_clone): Do not set reachable.
* cgraph.h (cgraph_node): Remove reachable flag.
(varpool_node): Remove reachable flag.
(cgraph_mark_if_needed): Remove.
(cgraph_mark_reachable_node): Remove.
* tree-emutls.c (ipa_lower_emutls): Do not check
reachable.
* cgraphunit.c (cgraph_finalize_function): Do not mark node as
reachable.
(cgraph_add_new_function): Likewise.
(cgraph_mark_if_needed): Remove.
(cgraph_analyze_function): Do not set target as reachable.
(process_function_and_variable_attributes): Do not care about dllexport.
(cgraph_analyze_functions): Do not set reachable flags.
(cgraph_mark_functions_to_output): Do not check reachability.
(cgraph_copy_node_for_versioning): Do not set reachable flag.
(dbxout_expand_expr): Update.
* c-decl.c (merge_decls): Do not track changed externs.
* ipa.c: Include pointer-set.h
(enqueue_cgraph_node): Use reachable pointer set.
(process_references): Likewise.
(cgraph_remove_unreachable_nodes): Likewise.
(whole_program_function_and_variable_visibility): Do not recompute reachable.
* trans-mem.c (ipa_tm_execute): Do not check reachable flag.

From-SVN: r186700

12 years agoextend.texi (AVR Named Address Spaces): Fix typos.
Georg-Johann Lay [Mon, 23 Apr 2012 10:23:04 +0000 (10:23 +0000)]
extend.texi (AVR Named Address Spaces): Fix typos.

* doc/extend.texi (AVR Named Address Spaces): Fix typos.

From-SVN: r186697

12 years agore PR c/53060 (Typo in build_binary_op for scalar-vector ops)
Richard Biener [Mon, 23 Apr 2012 10:20:05 +0000 (10:20 +0000)]
re PR c/53060 (Typo in build_binary_op for scalar-vector ops)

2012-04-23  Richard Guenther  <rguenther@suse.de>

PR c/53060
* c-typeck.c (build_binary_op): Fix typo.

* gcc.dg/pr53060.c: New testcase.

From-SVN: r186696

12 years agore PR tree-optimization/52891 (ICE in adjust_bool_pattern)
Jakub Jelinek [Mon, 23 Apr 2012 10:13:39 +0000 (12:13 +0200)]
re PR tree-optimization/52891 (ICE in adjust_bool_pattern)

PR tree-optimizations/52891
* tree-vect-patterns.c (adjust_bool_pattern): Use
build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
but with non-standard precision.

* gcc.c-torture/compile/pr52891-1.c: New test.
* gcc.c-torture/compile/pr52891-2.c: New test.

From-SVN: r186694

12 years ago* tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL tree refs.
Jan Hubicka [Mon, 23 Apr 2012 10:04:48 +0000 (12:04 +0200)]
* tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL tree refs.

From-SVN: r186693

12 years agoDaily bump.
GCC Administrator [Mon, 23 Apr 2012 00:18:11 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r186692

12 years agolto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
Jan Hubicka [Sun, 22 Apr 2012 21:28:07 +0000 (23:28 +0200)]
lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.

* lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
* cgraphbuild.c (record_reference, record_type_list, mark_address,
mark_load, mark_store): Do not mark varpool nodes as needed.
* cgraph.c (cgraph_new_nodes): Remove.
(cgraph_create_function_alias): Do not mark nodes as reachable.
(cgraph_add_thunk): Likewise.
(cgraph_mark_reachable_node): Do not manage the queue.
* cgraph.h (cgraph_node): Remove next_needed.
(varpool_nodes_queue): Remove next_needed and prev_needed.
(x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
(cgraph_new_nodes): Declare.
(x_varpool_nodes_queue, varpool_nodes_queue); Remove.
(varpool_analyze_pending_decls): Remove.
(varpool_analyze_node): New.
(varpool_mark_needed_node): Remove.
(varpool_first_variable, varpool_next_variable): New inlines.
(varpool_first_static_initializer, varpool_next_static_initializer): Update.
(FOR_EACH_STATIC_VARIABLE): Remove unused walker.
(varpool_first_defined_variable): New inline.
(varpool_next_defined_variable): New inline
(FOR_EACH_VARIABLE): Reimplement.
(FOR_EACH_DEFINED_VARIABLE): Reimplement.
* toplev.c (wrapup_global_declaration_2): Use analyzed instead of
needed flag.
* cgraphunit.c (cgraph_new_nodes): Declare here.
(enqueue_node): New function.
(cgraph_process_new_functions): update for new
node set; when constructing cgraph enqueue node for processing.
(cgraph_add_new_function): Use new node set.
(process_function_and_variable_attributes): Do not set varpool needed
flags.
(referred_to_p): New function.
(varpool_finalize_decl): Move here from varpool.c; enqueue needed node
when varpool is in construction.
(cgraph_analyze_functions): Rewrite.
(cgraph_expand_all_functions): Update.
(cgraph_output_in_order): Do not analyze pending decls; do not set needed flags.
(cgraph_optimize): Do not analyze pending decls.
* lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects in other
partition; do not mark node as needed.
* dwarf2out.c (reference_to_unused): Use analyzed flag.
(premark_types_used_by_global_vars_helper): Likewise.
* ipa.c (process_references): Do not call varpool_mark_needed_node.
(cgraph_remove_unreachable_nodes): Do not rely on varpool and
cgrpah queues.
(function_and_variable_visibility): Do not mark node as needed.
(whole_program_function_and_variable_visibility): Likewise.
* Makefile.in (gt-varpool.h): No longer needed.
* passes.c (execute_one_pass, execute_ipa_pass_list): Update.
(ipa_write_summaries): Do not use needed flag.
* varpool.c: Do not include gt-varpool.h
(x_varpool_nodes_queue, x_varpool_last_needed_node,
x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
Remove.
(varpool_remove_node): Do not update the lists.
(dump_varpool_node): Do not dump needed flag.
(varpool_enqueue_needed_node): Remove.
(varpool_mark_needed_node): Remove.
(varpool_reset_queue): Remove.
(varpool_finalize_decl): Move to cgraphunit.c
(varpool_analyze_node): New functions based on former
varpool_analyze_pending_decls.
(varpool_analyze_pending_decls): Remove.
(varpool_assemble_decl): Do not update the lists.
(enqueue_node): New function.
(varpool_remove_unreferenced_decls): Rewrite.
(varpool_empty_needed_queue): Remove.
(add_new_static_var): Do not mark node as needed.
(varpool_create_variable_alias): Handle expansion state
creation.
* except.c (output_ttype): Do not mark node as needed.
* varasm.c (mark_decl_referenced): Do not use mark_needed_node.
* tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
Likewise.
* tree-switch-conversion.c (build_one_array): Likewise.

* class.c (build_utf8_ref): Do not mark varpool node as needed.

* gcc-interface/utils.c (gnat_write_global_declarations): Do not mark
needed node.

* lto-partition.c (partition_varpool_node_p): Do not use needed flag.

* decl2.c (maybe_make_one_only): Mark keyed COMDATs as USED so they
gets finalized.

From-SVN: r186687

12 years agomksysinfo: More fixes to emulate master Go library.
Ian Lance Taylor [Sun, 22 Apr 2012 20:07:23 +0000 (20:07 +0000)]
mksysinfo: More fixes to emulate master Go library.

From-SVN: r186685

12 years agomksysinfo: Define more structs.
Ian Lance Taylor [Sun, 22 Apr 2012 19:26:01 +0000 (19:26 +0000)]
mksysinfo: Define more structs.

From-SVN: r186683

12 years agore PR c/44774 (-Werror=edantic)
Manuel López-Ibáñez [Sun, 22 Apr 2012 19:17:47 +0000 (19:17 +0000)]
re PR c/44774 (-Werror=edantic)

2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR c/44774
gcc/
* doc/invoke.texi (pedantic): Rename to Wpedantic.
* common.opt (Wpedantic): New.
(pedantic): Alias Wpedantic.
* diagnostic.c (warning_at): Likewise.
* c-decl.c (diagnose_mismatched_decls): Likewise.
(build_array_declarator): Likewise.
(mark_forward_parm_decls):
(check_bitfield_type_and_width): Likewise.
(grokdeclarator): Likewise.
(grokfield): Likewise.
(finish_struct): Likewise.
(build_enumerator): Likewise.
(store_parm_decls_oldstyle): Likewise.
(declspecs_add_qual): Likewise.
(declspecs_add_type): Likewise.
(finish_declspecs): Likewise.
* c-typeck.c (composite_type): Likewise.
(comp_target_types): Likewise.
(build_array_ref): Likewise.
(pointer_diff): Likewise.
(build_unary_op): Likewise.
(build_conditional_expr): Likewise.
(build_c_cast): Likewise.
(convert_for_assignment): Likewise.
(maybe_warn_string_init): Likewise.
(digest_init): Likewise.
(pop_init_level): Likewise.
(set_init_index): Likewise.
(c_finish_goto_label): Likewise.
(c_finish_return): Likewise.
(do_case): Likewise.
(build_binary_op): Likewise.
* c-parser.c (static): Likewise.
(c_parser_external_declaration): Likewise.
(c_parser_declaration_or_fndef): Likewise.
(c_parser_static_assert_declaration_no_se): Likewise.
(c_parser_enum_specifier): Likewise.
(c_parser_struct_or_union_specifier): Likewise.
(c_parser_struct_declaration): Likewise.
(c_parser_alignas_specifier): Likewise.
(c_parser_braced_init): Likewise.
(c_parser_initelt): Likewise.
(c_parser_compound_statement_nostart): Likewise.
(c_parser_conditional_expression): Likewise.
(c_parser_alignof_expression): Likewise.
(c_parser_postfix_expression): Likewise.
(c_parser_postfix_expression_after_paren_): Likewise.
(c_parser_objc_class_instance_variables): Likewise.
(c_parser_objc_method_definition): Likewise.
(c_parser_objc_methodprotolist): Likewise.

c-family/
* c.opt (Wpedantic): New.
(pedantic): Alias Wpedantic.
* c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
(c_common_post_options): Likewise.
(sanitize_cpp_opts): Likewise.
* c-lex.c (interpret_float): Likewise.
* c-format.c (check_format_types): Likewise.
* c-common.c (pointer_int_sum): Likewise.
(c_sizeof_or_alignof_type): Likewise.
(c_add_case_label): Likewise.
(c_do_switch_warnings): Likewise.
* c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
cp/
* typeck.c (composite_pointer_type): Likewise.
(cxx_sizeof_or_alignof_type): Likewise.
(cp_build_array_ref): Likewise.
(cp_build_function_call_vec): Likewise.
(cp_build_addr_expr_1): Likewise.
(convert_member_func_to_ptr): Likewise.
* decl.c (check_tag_decl): Likewise.
(check_static_variable_definition): Likewise.
(compute_array_index_type): Likewise.
(create_array_type_for_decl): Likewise.
(grokdeclarator): Likewise.
(grok_op_properties): Likewise.
* error.c (maybe_warn_cpp0x): Likewise.
* pt.c (maybe_process_partial_specialization): Likewise.
(convert_template_argument): Likewise.
(do_decl_instantiation): Likewise.
(do_type_instantiation): Likewise.
* parser.c (cp_parser_primary_expression): Likewise.
(cp_parser_postfix_expression): Likewise.
(cp_parser_unary_expression): Likewise.
(cp_parser_question_colon_clause): Likewise.
(cp_parser_lambda_introducer): Likewise.
(cp_parser_lambda_declarator_opt): Likewise.
(cp_parser_compound_statement): Likewise.
(cp_parser_jump_statement): Likewise.
(cp_parser_declaration_seq_opt): Likewise.
(cp_parser_enum_specifier): Likewise.
(cp_parser_enumerator_list): Likewise.
(cp_parser_initializer_list): Likewise.
(cp_parser_member_declaration): Likewise.
* call.c (build_conditional_expr_1): Likewise.
* friend.c (make_friend_class): Likewise.
* name-lookup.c (pushdecl_maybe_friend_1): Likewise.

From-SVN: r186681

12 years agogodump.c (go_output_typedef): Dump size of structs.
Ian Lance Taylor [Sun, 22 Apr 2012 18:51:44 +0000 (18:51 +0000)]
godump.c (go_output_typedef): Dump size of structs.

* godump.c (go_output_typedef): Dump size of structs.

mksysinfo, syscall: Change Sizeof names from var to const.

From-SVN: r186678

12 years agore PR c++/53067 (c++0x GCC 4.7.0 Regression std::ref with unordered sets)
Paolo Carlini [Sun, 22 Apr 2012 17:37:57 +0000 (17:37 +0000)]
re PR c++/53067 (c++0x GCC 4.7.0 Regression std::ref with unordered sets)

2012-04-22  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/53067
* include/bits/hashtable_policy.h: Change inheritances to public.
* testsuite/23_containers/unordered_map/requirements/53067.cc: New.
* testsuite/23_containers/unordered_set/requirements/53067.cc: Likewise.

From-SVN: r186676

12 years agore PR libfortran/53051 (I/O: Support reading floating-point numbers which use "Q...
Tobias Burnus [Sun, 22 Apr 2012 17:28:34 +0000 (19:28 +0200)]
re PR libfortran/53051 (I/O: Support reading floating-point numbers which use "Q" for the exponent)

2012-04-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53051
        * io/list_read.c (parse_real): Support "q" for the
        exponential.
        * io/read.c (read_f): Ditto.

2012-04-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53051
        * gfortran.dg/read_float_4.f90: New.

From-SVN: r186675

12 years agoalloc_traits.h (__alloc_traits::difference_type): Define.
Jonathan Wakely [Sun, 22 Apr 2012 14:38:33 +0000 (14:38 +0000)]
alloc_traits.h (__alloc_traits::difference_type): Define.

* include/ext/alloc_traits.h (__alloc_traits::difference_type):
Define.

From-SVN: r186673

12 years agoAdd PR number to ChangeLog entry.
Jonathan Wakely [Sun, 22 Apr 2012 14:15:51 +0000 (15:15 +0100)]
Add PR number to ChangeLog entry.

From-SVN: r186672

12 years agoptr_traits.h (pointer_traits::rebind): Make public.
Jonathan Wakely [Sun, 22 Apr 2012 13:42:38 +0000 (13:42 +0000)]
ptr_traits.h (pointer_traits::rebind): Make public.

* include/bits/ptr_traits.h (pointer_traits::rebind): Make public.
* testsuite/20_util/pointer_traits/requirements/typedefs.cc: Check
rebind works.

From-SVN: r186670

12 years agoforward_list (forward_list::splice_after): Check allocators are equal.
Jonathan Wakely [Sun, 22 Apr 2012 13:27:16 +0000 (13:27 +0000)]
forward_list (forward_list::splice_after): Check allocators are equal.

* include/debug/forward_list (forward_list::splice_after): Check
allocators are equal.
* src/c++11/debug.cc: Fix spelling.
* testsuite/23_containers/forward_list/debug/splice_after5_neg.cc:
New.
* testsuite/23_containers/forward_list/debug/splice_after6_neg.cc:
Likewise.
* testsuite/23_containers/forward_list/debug/splice_after7_neg.cc:
Likewise.

From-SVN: r186669

12 years agoChangeLog: Fix.
Uros Bizjak [Sun, 22 Apr 2012 12:58:59 +0000 (14:58 +0200)]
ChangeLog: Fix.

* ChangeLog: Fix.
* testsuite/ChangeLog: Ditto.

From-SVN: r186668

12 years agoCorrecting transform_to_exit_first_loop + fix to PR tree-optimization/46886
Razya Ladelsky [Sun, 22 Apr 2012 10:36:13 +0000 (10:36 +0000)]
Correcting transform_to_exit_first_loop + fix to PR tree-optimization/46886

2012-04-20  Razya Ladelsky  <razya@il.ibm.com>
                 Correcting transform_to_exit_first_loop + fix to
                 PR tree-optimization/46886
                 * tree-parloops.c (transform_to_exit_first_loop):
                 * Remove setting of number of iterations according to
                 * the loop pattern.
                 Duplicate from entry to exit->src instead of
loop->latch.
                 (pallelize_loops): Remove the condition preventing
do-while loops.
                 * tree-cfg.c (bool bb_in_region_p): New.
                 (gimple_duplicate_sese_tail): Adjust duplication of the
the subloops.
                 Adjust redirection of the duplicated iteration.

From-SVN: r186667

12 years agoDaily bump.
GCC Administrator [Sun, 22 Apr 2012 00:18:29 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r186662

12 years agomethod.c (make_alias_for): Do not set TREE_SYMBOL_REFERENCED.
Jan Hubicka [Sat, 21 Apr 2012 23:59:25 +0000 (01:59 +0200)]
method.c (make_alias_for): Do not set TREE_SYMBOL_REFERENCED.

* method.c (make_alias_for): Do not set TREE_SYMBOL_REFERENCED.
* decl2.c (mark_needed): Likewise.
(decl_needed_p): Do not test TREE_SYMBOL_REFERENCED.

* decl2.c (cxx_callgraph_analyze_expr): Remove.
* cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
* cp-tree.h (cxx_callgraph_analyze_expr): Remove.

From-SVN: r186658

12 years agore PR bootstrap/53021 (bootstrap failure on Linux/ia32)
Richard Sandiford [Sat, 21 Apr 2012 18:55:18 +0000 (18:55 +0000)]
re PR bootstrap/53021 (bootstrap failure on Linux/ia32)

gcc/
PR bootstrap/53021
* rtl.def (ADDRESS): Use "i" rather than "w".
* rtl.h (find_base_term): Delete.
(may_be_sp_based_p): Declare.
* rtl.c (rtx_code_size): Remove ADDRESS special case.
* alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
(UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
* alias.c: ...here.
(find_base_term): Make static.
(may_be_sp_based_p): New function.
* dse.c (record_store): Use it.
* store-motion.c (store_killed_in_insn): Likewise.

From-SVN: r186657

12 years agosyscall: Additional constants, some type corrections.
Ian Lance Taylor [Sat, 21 Apr 2012 18:49:58 +0000 (18:49 +0000)]
syscall: Additional constants, some type corrections.

From-SVN: r186655

12 years agoInstall right version, sigh.
Richard Sandiford [Sat, 21 Apr 2012 18:29:23 +0000 (18:29 +0000)]
Install right version, sigh.

From-SVN: r186654

12 years agofold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
Richard Sandiford [Sat, 21 Apr 2012 18:09:16 +0000 (18:09 +0000)]
fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.

gcc/
* fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.

From-SVN: r186653

12 years agore PR c/35441 (pretty-printer cannot handle some expressions)
Manuel López-Ibáñez [Sat, 21 Apr 2012 14:53:21 +0000 (14:53 +0000)]
re PR c/35441 (pretty-printer cannot handle some expressions)

2012-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>

PR 35441
* c-typeck.c (inform_declaration): New.
(build_function_call_vec):  Do not pretty-print
expressions when caret is enabled.
(convert_arguments): Use inform_declaration.
cp/
* typeck.c (cp_build_function_call_vec): Do not pretty-print
expressions when caret is enabled.
testsuite/
* c-c++-common/pr35441.C: New.

From-SVN: r186652

12 years agoDaily bump.
GCC Administrator [Sat, 21 Apr 2012 00:18:52 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r186649

12 years agocompiler: Don't call cgraph_mark_needed_node.
Ian Lance Taylor [Fri, 20 Apr 2012 21:20:36 +0000 (21:20 +0000)]
compiler: Don't call cgraph_mark_needed_node.

From-SVN: r186644

12 years agogo-test.exp (go-set-goarch): Recognize powerpc*-*-*.
Ian Lance Taylor [Fri, 20 Apr 2012 20:18:49 +0000 (20:18 +0000)]
go-test.exp (go-set-goarch): Recognize powerpc*-*-*.

* go.test/go-test.exp (go-set-goarch): Recognize powerpc*-*-*.
(go-gc-tests): Skip nilptr.go on powerpc*-*-*.

From-SVN: r186642

12 years agonet, syscall: Use native endianness for GNU/Linux netlink code.
Ian Lance Taylor [Fri, 20 Apr 2012 20:11:28 +0000 (20:11 +0000)]
net, syscall: Use native endianness for GNU/Linux netlink code.

From-SVN: r186640

12 years agocompiler, runtime: Add explicit checks for zero and overflow division.
Ian Lance Taylor [Fri, 20 Apr 2012 19:21:39 +0000 (19:21 +0000)]
compiler, runtime: Add explicit checks for zero and overflow division.

* lang.opt: Add -fgo-check-divide-zero and
-fgo-check-divide-overflow.
* gccgo.texi (Invoking gccgo): Document new options.

From-SVN: r186637

12 years agonet/http: Ignore sigaltstack when running strace in test.
Ian Lance Taylor [Fri, 20 Apr 2012 18:51:05 +0000 (18:51 +0000)]
net/http: Ignore sigaltstack when running strace in test.

Avoids bug in strace 4.5.20 on powerpc-unknown-linux-gnu.

From-SVN: r186635

12 years agodebug/dwarf: Fix address lookups for different types of lines.
Ian Lance Taylor [Fri, 20 Apr 2012 18:44:09 +0000 (18:44 +0000)]
debug/dwarf: Fix address lookups for different types of lines.

This fixes the lookup when, e.g., discriminators force adding
new line arrays.

From-SVN: r186633

12 years agoruntime: Disable memory profiling in gc_test.
Ian Lance Taylor [Fri, 20 Apr 2012 18:40:14 +0000 (18:40 +0000)]
runtime: Disable memory profiling in gc_test.

From-SVN: r186631

12 years agotest_passing_unions.c: Avoid undefined array access.
Uros Bizjak [Fri, 20 Apr 2012 16:12:55 +0000 (18:12 +0200)]
test_passing_unions.c: Avoid undefined array access.

* gcc.target/x86_64/abi/avx/test_passing_unions.c: Avoid undefined
array access.
* gcc.target/x86_64/abi/avx/test_passing_structs.c: Likewise.

From-SVN: r186629

12 years agogenmodes: don't truncate a mode name of length >= 7
Jim Meyering [Fri, 20 Apr 2012 15:38:35 +0000 (15:38 +0000)]
genmodes: don't truncate a mode name of length >= 7

* genmodes.c (make_complex_modes): Don't truncate a mode name of
length 7 or more when prepending a "C".  Suggested by Richard Guenther.

From-SVN: r186628

12 years agore PR bootstrap/53042 (AIX bootstrap: cgraph symbol table error)
Jan Hubicka [Fri, 20 Apr 2012 15:18:39 +0000 (17:18 +0200)]
re PR bootstrap/53042 (AIX bootstrap: cgraph symbol table error)

PR target/53042
* decl2.c (maybe_emit_vtables): Do not initialize same_comdat_group
list when target has no support for it.

From-SVN: r186627

12 years agoerror.c (pedwarn_cxx98): Move va_end call after user of the va_list.
Michael Matz [Fri, 20 Apr 2012 14:40:09 +0000 (14:40 +0000)]
error.c (pedwarn_cxx98): Move va_end call after user of the va_list.

* error.c (pedwarn_cxx98): Move va_end call after user
of the va_list.

From-SVN: r186626

12 years agore PR rtl-optimization/44214 (Compiler does not optimize vector divide with -frecipro...
Bill Schmidt [Fri, 20 Apr 2012 14:19:13 +0000 (14:19 +0000)]
re PR rtl-optimization/44214 (Compiler does not optimize vector divide with -freciprocal-math (or -ffast-math))

gcc:

2012-04-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR rtl-optimization/44214
* fold-const.c (exact_inverse): New function.
(fold_binary_loc): Fold vector and complex division by constant into
multiply by recripocal with flag_reciprocal_math; fold vector division
by constant into multiply by reciprocal with exact inverse.

gcc/testsuite:

2012-04-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR rtl-optimization/44214
* gcc.dg/pr44214-1.c: New test.
* gcc.dg/pr44214-2.c: Likewise.
* gcc.dg/pr44214-3.c: Likewise.

From-SVN: r186625

12 years agolto-symtab.c (lto_cgraph_replace_node): Merge needed instead of force flags.
Jan Hubicka [Fri, 20 Apr 2012 14:09:11 +0000 (16:09 +0200)]
lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of force flags.

* lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of force flags.
* cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
(cgraph_remove_node): Update.
(cgraph_mark_needed_node): Remove.
(cgraph_mark_force_output_node): New.
(dump_cgraph_node): Do not dump needed flag.
(cgraph_node_cannot_be_local_p_1): Update.
(cgraph_can_remove_if_no_direct_calls_and_refs): Update.
* cgraph.h (symtab_node_base): Add force_output flag.
(cgraph_node): Remove needed flag.
(varpool_node): Remove force_output flag.
(cgraph_mark_needed_node): Remove.
(cgraph_mark_force_output_node): New.
(cgraph_only_called_directly_or_aliased_p,
varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
* ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
* cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
(cgraph_add_new_function); Update.
(cgraph_mark_if_needed); Update.
(verify_cgraph_node): Update.
(cgraph_analyze_function): Alias target is reachable.
(process_function_and_variable_attributes): Update: externally_visible
flag makes function reachable.
(cgraph_analyze_functions): Update dumping.
* lto-cgraph.c (lto_output_node, lto_output_varpool_node,
input_overwrite_node, input_varpool_node): Update streaming.
* lto-streamer-out.c (produce_symtab): Use force_output.
* ipa.c (process_references): Weakrefs must be processed.
(cgraph_remove_unreachable_nodes): Likewise; update for new
force_output flag.
(varpool_externally_visible_p); Weakrefs are externally visible
even if they are not.
(function_and_variable_visibility): Update; when processing alias
pair force the targets to be output.
(whole_program_function_and_variable_visility): Use mark_reachable_node.
* trans-mem.c (ipa_tm_mark_needed_node): Remove
(ipa_tm_mark_force_output_node): New function.
(ipa_tm_create_version_alias, ipa_tm_create_version): Update.
* gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about aliases.
* varasm.c (mark_decl_referenced): Update.
(find_decl_and_mark_needed): Remove.
(find_decl): New function.
(weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
alias targets as needed.
(dump_tm_clone_pairs): Update.
* tree-inline.c (copy_bb): Update check.
* symtab.c (dump_symtab_base): Dump force_output.
* tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
* passes.c (execute_todo): Fix dumping.
* varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
(varpool_analyze_pending_decls): Alias target is reachable.
(varpool_create_variable_alias): Finalize weakrefs.

* class.c (make_local_function_alias): Do not mark symbol referenced.

* objc-acct.c (mark_referenced_methods); Use
cgraph_mark_force_output_node.

* gcc-interface/utils.c (gnat_write_global_declarations): Update for new
force_output placement.

* lto/lto-partition.c (partition_cgraph_node_p): Use force_output.

From-SVN: r186624

12 years agore PR bootstrap/53021 (bootstrap failure on Linux/ia32)
Jakub Jelinek [Fri, 20 Apr 2012 12:19:51 +0000 (14:19 +0200)]
re PR bootstrap/53021 (bootstrap failure on Linux/ia32)

PR bootstrap/53021
* alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
* alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
macros instead of constants.
* dse.c (record_store): Check for SP ADDRESS by comparing
XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
XEXP to be stack_pointer_rtx.

From-SVN: r186623

12 years agotree-ssa-copy.c (propagate_tree_value_into_stmt): Use update_call_from_tree when...
Richard Guenther [Fri, 20 Apr 2012 11:56:33 +0000 (11:56 +0000)]
tree-ssa-copy.c (propagate_tree_value_into_stmt): Use update_call_from_tree when propagating into a call.

2012-04-20  Richard Guenther  <rguenther@suse.de>

* tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
update_call_from_tree when propagating into a call.

* g++.dg/torture/20120420-1.C: New testcase.

From-SVN: r186622

12 years agors6000.c (rs6000_emit_savres_rtx): Formatting.
Alan Modra [Fri, 20 Apr 2012 11:46:58 +0000 (21:16 +0930)]
rs6000.c (rs6000_emit_savres_rtx): Formatting.

* config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
(rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.  Rename
sp_offset to frame_off.  Move world save code earlier.

From-SVN: r186621

12 years agore PR c++/53050 (ssa_forward_propagate_and_combine: segmentation fault)
Richard Guenther [Fri, 20 Apr 2012 10:17:46 +0000 (10:17 +0000)]
re PR c++/53050 (ssa_forward_propagate_and_combine: segmentation fault)

2012-04-20  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53050
* tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
Do only one transform on COND_EXPRs at the same time.

From-SVN: r186620

12 years ago* symtab.c (dump_symtab_base): Revert accidental checkin.
Jan Hubicka [Fri, 20 Apr 2012 09:46:25 +0000 (11:46 +0200)]
* symtab.c (dump_symtab_base): Revert accidental checkin.

From-SVN: r186619

12 years agore PR libstdc++/53052 ([C++11] is_explicitly_convertible still part of <type_traits...
Paolo Carlini [Fri, 20 Apr 2012 09:39:29 +0000 (09:39 +0000)]
re PR libstdc++/53052 ([C++11] is_explicitly_convertible still part of <type_traits> header)

2012-04-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/53052
* include/std/type_traits (is_explicitly_convertible): Remove.
* testsuite/20_util/is_explicitly_convertible: Likewise.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
Adjust dg-error line numbers.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.
* testsuite/20_util/declval/requirements/1_neg.cc: Likewise.

From-SVN: r186618

12 years agore PR libstdc++/53052 ([C++11] is_explicitly_convertible still part of <type_traits...
Paolo Carlini [Fri, 20 Apr 2012 09:39:17 +0000 (09:39 +0000)]
re PR libstdc++/53052 ([C++11] is_explicitly_convertible still part of <type_traits> header)

2012-04-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/53052
* include/std/type_traits (is_explicitly_convertible): Remove.
* testsuite/20_util/is_explicitly_convertible: Likewise.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc:
Adjust dg-error line numbers.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.
* testsuite/20_util/declval/requirements/1_neg.cc: Likewise.

From-SVN: r186617

12 years agore PR target/53040 (nested functions may trash floating point registers)
Alan Modra [Fri, 20 Apr 2012 09:33:19 +0000 (19:03 +0930)]
re PR target/53040 (nested functions may trash floating point registers)

PR target/53040
* config/rs6000/rs6000.c (rs6000_savres_strategy): When using
static chain, set REST_INLINE_FPRS too.

From-SVN: r186616

12 years agotree-dump.c (dequeue_and_dump): Dump the three child nodes.
Thomas Schwinge [Fri, 20 Apr 2012 08:56:29 +0000 (10:56 +0200)]
tree-dump.c (dequeue_and_dump): Dump the three child nodes.

gcc/
* tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
nodes.

From-SVN: r186615

12 years agotree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize loops that can...
Richard Guenther [Fri, 20 Apr 2012 08:19:49 +0000 (08:19 +0000)]
tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize loops that can never run more often than the vectorization factor.

2012-04-20  Richard Guenther  <rguenther@suse.de>

* tree-vect-loop.c (vect_analyze_loop_operations): Do not
vectorize loops that can never run more often than the
vectorization factor.

From-SVN: r186614

12 years agostruct siginfo vs. siginfo_t
Thomas Schwinge [Fri, 20 Apr 2012 07:44:50 +0000 (09:44 +0200)]
struct siginfo vs. siginfo_t

libgcc/
* config/alpha/linux-unwind.h (alpha_fallback_frame_state): Use
siginfo_t instead of struct siginfo.
* config/bfin/linux-unwind.h (bfin_fallback_frame_state): Likewise.
* config/i386/linux-unwind.h (x86_fallback_frame_state): Likewise.
* config/ia64/linux-unwind.h (ia64_fallback_frame_state)
(ia64_handle_unwabi): Likewise.
* config/mips/linux-unwind.h (mips_fallback_frame_state): Likewise.
* config/pa/linux-unwind.h (pa32_fallback_frame_state): Likewise.
* config/sh/linux-unwind.h (shmedia_fallback_frame_state)
(sh_fallback_frame_state): Likewise.
* config/tilepro/linux-unwind.h (tile_fallback_frame_state): Likewise.
* config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Likewise.

From-SVN: r186610

12 years ago* symtab.c (dump_symtab_base): Fix dumping of asm lists.
Jan Hubicka [Fri, 20 Apr 2012 07:10:20 +0000 (09:10 +0200)]
* symtab.c (dump_symtab_base): Fix dumping of asm lists.

From-SVN: r186609

12 years agoruntime: Ignore stack sizes when deciding when to GC.
Ian Lance Taylor [Fri, 20 Apr 2012 04:58:26 +0000 (04:58 +0000)]
runtime: Ignore stack sizes when deciding when to GC.

Also allocate heap bitmaps bit in page size units and clear
context when putting G structures on free list.

From-SVN: r186607

12 years agogotest: Don't get confused by data tables named Test on PPC.
Ian Lance Taylor [Fri, 20 Apr 2012 04:49:19 +0000 (04:49 +0000)]
gotest: Don't get confused by data tables named Test on PPC.

From-SVN: r186605

12 years agoDaily bump.
GCC Administrator [Fri, 20 Apr 2012 00:19:38 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r186604

12 years agoChangeLog: remove summary from my entry, on request from David Edelsohn
Jim Meyering [Thu, 19 Apr 2012 17:15:46 +0000 (17:15 +0000)]
ChangeLog: remove summary from my entry, on request from David Edelsohn

From-SVN: r186600

12 years ago* config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
David Edelsohn [Thu, 19 Apr 2012 16:59:17 +0000 (16:59 +0000)]
* config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".

From-SVN: r186599

12 years ago* gcc.target/i386/pr45830.c: Update scan-tree-dump.
Steven Bosscher [Thu, 19 Apr 2012 15:13:26 +0000 (15:13 +0000)]
* gcc.target/i386/pr45830.c: Update scan-tree-dump.

From-SVN: r186597

12 years agogenmodes: remove misleading use of strncpy
Jim Meyering [Thu, 19 Apr 2012 13:51:17 +0000 (13:51 +0000)]
genmodes: remove misleading use of strncpy

* genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
We verified above that the string(including trailing NUL) fits in buf,
so just use memcpy.

From-SVN: r186596

12 years agosymtab.c (dump_symtab_base): Use TREE_STRING_POINTER for dumping DECL_SECTION_NAME.
Richard Guenther [Thu, 19 Apr 2012 13:35:10 +0000 (13:35 +0000)]
symtab.c (dump_symtab_base): Use TREE_STRING_POINTER for dumping DECL_SECTION_NAME.

2012-04-19  Richard Guenther  <rguenther@suse.de>

* symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
for dumping DECL_SECTION_NAME.

From-SVN: r186594

12 years agore PR c/52977 (internal compiler error: Segmentation fault with `-x c-header' or...
Michael Matz [Thu, 19 Apr 2012 13:29:29 +0000 (13:29 +0000)]
re PR c/52977 (internal compiler error: Segmentation fault with `-x c-header' or `-x cxx-header' option)

PR middle-end/52977
* tree.h (VECTOR_CST_NELTS): Use part number of types again.
(struct tree_vector): Adjust GTY length.
* tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.

* gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
members.
(walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
caller emitted the length calulation already.
(walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations

From-SVN: r186593

12 years agore PR middle-end/53031 (gcc.dg/tree-ssa/vrp54.c scan-tree-dump-not vrp1 "link_error")
Richard Guenther [Thu, 19 Apr 2012 13:21:44 +0000 (13:21 +0000)]
re PR middle-end/53031 (gcc.dg/tree-ssa/vrp54.c scan-tree-dump-not vrp1 "link_error")

2012-04-19  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53031
* tree-vrp.c (adjust_range_with_scev): Revert back to
using max_loop_iterations.

From-SVN: r186592

12 years agodiagnostic.c (emit_diagnostic): Move va_end call after user of the va_list.
Michael Matz [Thu, 19 Apr 2012 12:51:25 +0000 (12:51 +0000)]
diagnostic.c (emit_diagnostic): Move va_end call after user of the va_list.

* diagnostic.c (emit_diagnostic): Move va_end call after user
of the va_list.
(warning, warning_at, pedwarn, permerror): Ditto.

From-SVN: r186591

12 years agoira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound array access.
Richard Guenther [Thu, 19 Apr 2012 12:44:07 +0000 (12:44 +0000)]
ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound array access.

2012-04-19  Richard Guenther  <rguenther@suse.de>

* ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
array access.

From-SVN: r186590