platform/upstream/gcc.git
14 years agotm.texi (ARG_POINTER_CFA_OFFSET): Document new default.
Paul Brook [Tue, 22 Dec 2009 12:24:32 +0000 (12:24 +0000)]
tm.texi (ARG_POINTER_CFA_OFFSET): Document new default.

2009-12-22  Paul Brook <paul@codesourcery.com>

gcc/
* doc/tm.texi (ARG_POINTER_CFA_OFFSET): Document new default.
* defaults.h (ARG_POINTER_CFA_OFFSET): Add pretend_args_size.
* config/spu/spu.h (ARG_POINTER_CFA_OFFSET): Add pretend_args_size.

From-SVN: r155396

14 years agore PR libstdc++/42456 (Revision 155377 failed some C++ atomic tests)
Benjamin Kosnik [Tue, 22 Dec 2009 08:23:08 +0000 (08:23 +0000)]
re PR libstdc++/42456 (Revision 155377 failed some C++ atomic tests)

2009-12-21  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/42456
* src/atomic.cc: Move _GLIBCXX_ASM_SYMVER define within guard.
* config/abi/pre/gnu.ver: Add non-volatile exports.

From-SVN: r155393

14 years agoDaily bump.
GCC Administrator [Tue, 22 Dec 2009 00:17:14 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r155386

14 years agopr36901.h: AVR must support address zero.
Andy Hutchinson [Tue, 22 Dec 2009 00:08:34 +0000 (00:08 +0000)]
pr36901.h: AVR must support address zero.

2009-12-21  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>

* gcc.dg/pr36901.h: AVR must support address zero.

From-SVN: r155383

14 years agore PR testsuite/36903 (Generic vectorizarion test failures)
Andy Hutchinson [Tue, 22 Dec 2009 00:00:50 +0000 (00:00 +0000)]
re PR testsuite/36903 (Generic vectorizarion test failures)

2009-12-21  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>

PR testsuite/36903
* gcc.dg/tree-ssa/gen-vect-11.c : Disable for avr target. It will not vectorize.
* gcc.dg/tree-ssa/gen-vect-11a.c: Ditto.
* gcc.dg/tree-ssa/gen-vect-2.c: Ditto.
* gcc.dg/tree-ssa/gen-vect-25.c: Ditto.
* gcc.dg/tree-ssa/gen-vect-26.c: Ditto.
* gcc.dg/tree-ssa/gen-vect-28.c: Ditto.
* gcc.dg/tree-ssa/gen-vect-32.c: Ditto.
* gcc.dg/tree-ssa/pr23455.c: Test for 4 eliminations on avr target.
* gcc.dg/tree-ssa/ssa-fre-26.c: XFAIL test for avr.
* gcc.dg/tree-ssa/vrp47.c: Skip test for avr target due to low branch cost.

From-SVN: r155382

14 years agorun_doxygen: Update nested namespace exceptions.
Benjamin Kosnik [Mon, 21 Dec 2009 21:26:45 +0000 (21:26 +0000)]
run_doxygen: Update nested namespace exceptions.

2009-12-21  Benjamin Kosnik  <bkoz@redhat.com>

* scripts/run_doxygen: Update nested namespace exceptions.

From-SVN: r155380

14 years agodecl.c (finish_function): Rename pre-genericize event.
Brian Hackett [Mon, 21 Dec 2009 20:37:49 +0000 (20:37 +0000)]
decl.c (finish_function): Rename pre-genericize event.

2009-12-21  Brian Hackett  <bhackett1024@gmail.com>

* decl.c (finish_function): Rename pre-genericize event.

2009-12-21  Brian Hackett  <bhackett1024@gmail.com>

* plugin.def: Rename pre-genericize event.
* plugin.c (register_callback, invoke_plugin_callbacks): Same.
* c-decl.c (finish_function): Invoke callbacks on above event.

From-SVN: r155379

14 years agoPR libfortran/PR42422
Thomas Koenig [Mon, 21 Dec 2009 20:14:39 +0000 (20:14 +0000)]
PR libfortran/PR42422

2009-12-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/PR42422
* gfortran.dg/list_read_10.f90:  New test.

From-SVN: r155378

14 years agoatomic: Update to N3000.
Benjamin Kosnik [Mon, 21 Dec 2009 19:00:34 +0000 (19:00 +0000)]
atomic: Update to N3000.

2009-12-20  Benjamin Kosnik  <bkoz@redhat.com>

* include/std/atomic: Update to N3000.
* include/bits/atomic_0.h: Same.
* include/bits/atomic_2.h: Same.
* include/c_global/cstdatomic: Move...
* include/bits/atomic_base.h: ...here.
* include/c_compatibility/stdatomic.h: Just include atomic_base.h.
* include/precompiled/stdc++.h: Adjust includes.
* include/Makefile.am: Adjust files.
* include/Makefile.in: Regenerate.
* include/std/future: Adjust.
* src/atomic.cc: Adjust, adjust exports for compatibility.
* src/compatibility.cc: Move C++0x stuff...
* src/compatibility-c++0x.cc: ...here.

* doc/xml/manual/using.xml: Update.
* doc/xml/manual/status_cxx200x.xml: Update.
* doc/doxygen/user.cfg.in: Update.

* testsuite/29_atomics/atomic_address/cons/assign_neg.cc: Same.
* testsuite/29_atomics/atomic_address/cons/single_value.cc: Same.
* testsuite/29_atomics/atomic_address/cons/copy_neg.cc: Same.
* testsuite/29_atomics/atomic_address/cons/default.cc: Same.
* testsuite/29_atomics/atomic_address/cons/aggregate.cc: Same.
* testsuite/29_atomics/atomic_address/requirements/
standard_layout.cc: Same.
* testsuite/29_atomics/atomic_address/requirements/trivial.cc: Same.
* testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Same.
* testsuite/29_atomics/atomic_integral/cons/single_value.cc: Same.
* testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Same.
* testsuite/29_atomics/atomic_integral/cons/default.cc: Same.
* testsuite/29_atomics/atomic_integral/cons/copy_list.cc: Same.
* testsuite/29_atomics/atomic_integral/cons/direct_list.cc: Same.
* testsuite/29_atomics/atomic_integral/requirements/
standard_layout.cc: Same.
* testsuite/29_atomics/atomic_integral/requirements/trivial.cc: Same.
* testsuite/29_atomics/atomic_integral/operators/increment_neg.cc: Same.
* testsuite/29_atomics/atomic_integral/operators/
integral_assignment.cc: Same.
* testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc: Same.
* testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc: Same.
* testsuite/29_atomics/atomic_integral/operators/increment.cc: Same.
* testsuite/29_atomics/atomic_integral/operators/bitwise.cc: Same.
* testsuite/29_atomics/atomic_integral/operators/decrement.cc: Same.
* testsuite/29_atomics/atomic_integral/operators/
integral_conversion.cc: Same.
* testsuite/29_atomics/atomic_flag/cons/assign_neg.cc: Same.
* testsuite/29_atomics/atomic_flag/cons/copy_neg.cc: Same.
* testsuite/29_atomics/atomic_flag/cons/default.cc: Same.
* testsuite/29_atomics/atomic_flag/cons/aggregate.cc: Same.
* testsuite/29_atomics/atomic_flag/requirements/
standard_layout.cc: Same.
* testsuite/29_atomics/atomic_flag/requirements/trivial.cc: Same.
* testsuite/29_atomics/atomic_flag/clear/1.cc: Same.
* testsuite/29_atomics/atomic_flag/test_and_set/explicit.c
* testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc: Same.
* testsuite/29_atomics/atomic_flag/test_and_set/implicit.c
* testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc: Same.
* testsuite/29_atomics/headers/stdatomic.h/functions.c
* testsuite/29_atomics/atomic/cons/assign_neg.cc: Same.
* testsuite/29_atomics/atomic/cons/single_value.cc: Same.
* testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
* testsuite/29_atomics/atomic/cons/default.cc: Same.
* testsuite/29_atomics/atomic/cons/copy_list.cc: Same.
* testsuite/29_atomics/atomic/cons/direct_list.cc: Same.
* testsuite/29_atomics/atomic/requirements/explicit_instantiation/
1.cc: Same.
* testsuite/29_atomics/atomic/requirements/base_classes.cc: Same.
* testsuite/29_atomics/atomic/operators/integral_assignment.cc: Same.
* testsuite/29_atomics/atomic/operators/integral_conversion.cc: Same.
* testsuite/util/testsuite_common_types.h: Adjust.

* testsuite/29_atomics/headers/cstdatomic: Move and adjust...
* testsuite/29_atomics/headers/atomic: ...here.
* testsuite/29_atomics/headers/atomic/types_std_c++0x.cc: Same.
* testsuite/29_atomics/headers/atomic/functions_std_c++0x.cc: Same.
* testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc: Same.
* testsuite/29_atomics/headers/atomic/macros.cc: Same.

* testsuite/29_atomics/headers/atomic/types_std_c++0x_neg.cc: Add.
* testsuite/29_atomics/atomic/cons/user_pod.cc: Add.

From-SVN: r155377

14 years agore PR rtl-optimization/42429 (Miscompilation of 2fish on s390)
Jakub Jelinek [Mon, 21 Dec 2009 16:32:44 +0000 (17:32 +0100)]
re PR rtl-optimization/42429 (Miscompilation of 2fish on s390)

PR rtl-optimization/42429
* reload.c (find_reloads_subreg_address): When adjusting mode of
MEM, update also MEM_SIZE if it is set.

From-SVN: r155374

14 years agoconfigure.ac: Make i?86 build on FreeBSD and OpenBSD.
Andreas Tobler [Mon, 21 Dec 2009 16:31:31 +0000 (16:31 +0000)]
configure.ac: Make i?86 build on FreeBSD and OpenBSD.

2009-12-21  Andreas Tobler  <a.tobler@schweiz.org>

* configure.ac: Make i?86 build on FreeBSD and OpenBSD.
* configure: Regenerate.

From-SVN: r155373

14 years agoAlways pass --32 to ia32 Linux assembler.
H.J. Lu [Mon, 21 Dec 2009 15:31:49 +0000 (15:31 +0000)]
Always pass --32 to ia32 Linux assembler.

2009-12-21  H.J. Lu  <hongjiu.lu@intel.com>

PR bootstrap/42345
* acinclude.m4 (gcc_GAS_FLAGS): New.
(gcc_GAS_CHECK_FEATURE): Use gcc_GAS_FLAGS.
* configure: Regenerated.

From-SVN: r155372

14 years agoDaily bump.
GCC Administrator [Mon, 21 Dec 2009 00:17:04 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r155371

14 years ago* sv.po: Update.
Joseph Myers [Sun, 20 Dec 2009 17:16:13 +0000 (17:16 +0000)]
* sv.po: Update.

From-SVN: r155368

14 years agore PR tree-optimization/42027 (Performance regression in convolution loop optimization)
Michael Matz [Sun, 20 Dec 2009 01:15:46 +0000 (01:15 +0000)]
re PR tree-optimization/42027 (Performance regression in convolution loop optimization)

PR tree-optimization/42027
* cfgexpand.c (expand_gimple_cond): Use jumpy sequence for &, &&, |
and || if jumps are cheap.

From-SVN: r155367

14 years agoDaily bump.
GCC Administrator [Sun, 20 Dec 2009 00:16:58 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r155366

14 years agoFix PR c++/42225, take 2
Dodji Seketeli [Sat, 19 Dec 2009 22:40:37 +0000 (22:40 +0000)]
Fix PR c++/42225, take 2

gcc/cp/ChangeLog:
PR c++/42225
* pt.c (push_template_decl_real): Set DECL_CONTEXT of template type
parms to their containing template decl.
* typeck.c (comp_template_parms_position): Split this from
structural_comptypes.
(incompatible_template_type_parms_p): Renamed
incompatible_dependent_typedefs_p into this. Change the function to
handle comparison between TEMPLATE_TYPE_PARMs only.
(structural_comptypes): Use comp_template_parms_position in
TEMPLATE_TEMPLATE_PARM and BOUND_TEMPLATE_TEMPLATE_PARM cases.
Use incompatible_template_type_parms_p in TEMPLATE_TYPE_PARM case.
* mangle.c (decl_mangling_context): Template type parms don't have
a mangling context.
* tree.c (cp_set_underlying_type): Set type structural equality
only for TEMPLATE_TYPE_PARMs.

gcc/testsuite/ChangeLog:
PR c++/42225
* g++.dg/template/typedef26.C: New test.

From-SVN: r155363

14 years agore PR lto/42401 (wrong-code with -flto)
Richard Guenther [Sat, 19 Dec 2009 11:41:14 +0000 (11:41 +0000)]
re PR lto/42401 (wrong-code with -flto)

2009-12-19  Richard Guenther  <rguenther@suse.de>

PR lto/42401
* lto-streamer-out.c (tree_is_indexable): Local statics
are indexable.
(lto_output_tree_ref): Adjust assert.

* g++.dg/lto/20091219_0.C: New testcase.

From-SVN: r155361

14 years agore PR tree-optimization/42108 (50% performance regression)
Richard Guenther [Sat, 19 Dec 2009 11:24:49 +0000 (11:24 +0000)]
re PR tree-optimization/42108 (50% performance regression)

2009-12-19  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/42108
* tree-ssa-sccvn.c (last_vuse_ptr): New variable.
(vn_reference_lookup_2): Update last seen VUSE.
(vn_reference_lookup_3): Avoid updating last seen VUSE after
translating.
(visit_reference_op_load): Use last seen VUSE from the first
lookup when entering into the table.

* gfortran.dg/pr42108.f90: New testcase.

From-SVN: r155360

14 years agoIncrease clock resolution for system_clock_8.
Janne Blomqvist [Sat, 19 Dec 2009 10:43:11 +0000 (12:43 +0200)]
Increase clock resolution for system_clock_8.

From-SVN: r155359

14 years agoMakefile.in (PLUGIN_HEADERS): Add more headers.
Joern Rennecke [Sat, 19 Dec 2009 02:33:03 +0000 (02:33 +0000)]
Makefile.in (PLUGIN_HEADERS): Add more headers.

        * Makefile.in (PLUGIN_HEADERS): Add more headers.

        * tree-pass.h (GCC_PASS_LISTS): Define.
        (PASS_LIST_NO_all_lowering_passes): New enumeration value.
        (PASS_LIST_NO_all_small_ipa_passes): Likewise.
        (PASS_LIST_NO_all_regular_ipa_passes): Likewise.
        (PASS_LIST_NO_all_lto_gen_passes): Likewise.
        (PASS_LIST_NO_all_passes): Likewise.
        (PASS_LIST_NUM): Likewise.
        (gcc_pass_lists): Declare.
        * passes.c (gcc_pass_lists): Define.

From-SVN: r155354

14 years agoDaily bump.
GCC Administrator [Sat, 19 Dec 2009 00:16:42 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r155353

14 years agore PR c++/42415 (Bad assembly generated for constructor call)
Jason Merrill [Fri, 18 Dec 2009 20:50:08 +0000 (15:50 -0500)]
re PR c++/42415 (Bad assembly generated for constructor call)

PR c++/42415
* g++.old-deja/g++.jason/temporary5.C: Adjust.

From-SVN: r155350

14 years agore PR c++/28300 (In-class partial specialization of class accepted)
Jason Merrill [Fri, 18 Dec 2009 20:49:58 +0000 (15:49 -0500)]
re PR c++/28300 (In-class partial specialization of class accepted)

PR c++/28300
PR c++/42062
* pt.c (check_specialization_namespace): Complain about
specialization at non-namespace scope.

From-SVN: r155349

14 years agore PR c++/42415 (Bad assembly generated for constructor call)
Jason Merrill [Fri, 18 Dec 2009 16:12:50 +0000 (11:12 -0500)]
re PR c++/42415 (Bad assembly generated for constructor call)

PR c++/42415
* call.c (build_new_method_call): Complain about calling the
constructor directly.

From-SVN: r155347

14 years agotree-ssa-sccvn.c (copy_nary): New function.
Richard Guenther [Fri, 18 Dec 2009 15:31:38 +0000 (15:31 +0000)]
tree-ssa-sccvn.c (copy_nary): New function.

2009-12-18  Richard Guenther  <rguenther@suse.de>

* tree-ssa-sccvn.c (copy_nary): New function.
(copy_phis): Likewise.
(copy_references): Likewise.
(process_scc): Avoid last iteration by copying the
optimistic table to the valid table.

From-SVN: r155346

14 years ago* zh_CN.po: Update.
Joseph Myers [Fri, 18 Dec 2009 13:10:35 +0000 (13:10 +0000)]
* zh_CN.po: Update.

From-SVN: r155344

14 years agocondition_variable: Revert inadvertent changes.
Paolo Carlini [Fri, 18 Dec 2009 09:44:54 +0000 (09:44 +0000)]
condition_variable: Revert inadvertent changes.

2009-12-18  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/condition_variable: Revert inadvertent changes.
* testsuite/30_threads/condition_variable/cons/assign_neg.cc: Ditto.
* testsuite/30_threads/condition_variable/cons/copy_neg.cc: Ditto.
* testsuite/30_threads/condition_variable/members/1.cc: Ditto.
* testsuite/30_threads/condition_variable/members/2.cc: Ditto.
* testsuite/30_threads/condition_variable_any/cons/assign_neg.cc: Ditto.
* testsuite/30_threads/condition_variable_any/cons/copy_neg.cc: Ditto.

From-SVN: r155343

14 years agore PR libstdc++/40088 (Creating a std::ostringstream object locks a global mutex)
Jimmy Guo [Fri, 18 Dec 2009 09:41:03 +0000 (09:41 +0000)]
re PR libstdc++/40088 (Creating a std::ostringstream object locks a global mutex)

2009-12-18  Jimmy Guo  <jguo@yahoo-inc.com>

PR libstdc++/40088
* src/locale_init.cc (locale::locale()): Optimize the common case
where _S_global still points to _S_classic.

From-SVN: r155342

14 years agore PR c++/31665 (%s substituted with "built-in"/"library" can't be properly translated)
Shujing Zhao [Fri, 18 Dec 2009 08:50:24 +0000 (08:50 +0000)]
re PR c++/31665 (%s substituted with "built-in"/"library" can't be properly translated)

cp/
2009-12-16  Shujing Zhao  <pearly.zhao@oracle.com>

        PR c++/31665
        * decl.c (duplicate_decls, grokdeclarator): Put the
        diagnostics in full sentences for easy translation and wrapped into
        G_().
        * typeck.c (build_x_unary_op): Likewise.

testsuite/
2009-12-16  Shujing Zhao  <pearly.zhao@oracle.com>

        * g++.old-deja/g++.brendan/misc6.C: Make expected dg-error strings
        explicit.

From-SVN: r155340

14 years agore PR testsuite/42135 (FAIL: libgomp.graphite/force-parallel-2.c execution test)
Jack Howarth [Fri, 18 Dec 2009 07:38:06 +0000 (07:38 +0000)]
re PR testsuite/42135 (FAIL: libgomp.graphite/force-parallel-2.c execution test)

Fix PR42135.

2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>

PR testsuite/42135
* libgomp.graphite/force-parallel-2.c: Reduce array size.

From-SVN: r155337

14 years ago* config.sub, config.guess: Update from upstream sources.
Ben Elliston [Fri, 18 Dec 2009 03:35:42 +0000 (03:35 +0000)]
* config.sub, config.guess: Update from upstream sources.

From-SVN: r155332

14 years agoDaily bump.
GCC Administrator [Fri, 18 Dec 2009 00:16:51 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r155331

14 years agodwarf2out.c (loc_descriptor): For SYMBOL_REFs and LABEL_REFs use DW_OP_addr+DW_OP_sta...
Jakub Jelinek [Thu, 17 Dec 2009 22:07:13 +0000 (23:07 +0100)]
dwarf2out.c (loc_descriptor): For SYMBOL_REFs and LABEL_REFs use DW_OP_addr+DW_OP_stack_value instead of...

* dwarf2out.c (loc_descriptor): For SYMBOL_REFs and LABEL_REFs
use DW_OP_addr+DW_OP_stack_value instead of DW_OP_implicit_value.
(add_const_value_attribute): For CONST_STRING, SYMBOL_REFs and
LABEL_REFs use DW_OP_addr+DW_OP_stack_value DW_AT_location instead of
DW_AT_const_value.

* gcc.dg/debug/dwarf2/const-1.c: Don't expect DW_AT_const_value,
but instead DW_AT_location with DW_OP_addr+DW_OP_stack_value.  Add
-gno-strict-dwarf -fno-merge-debug-strings to dg-options.
* g++.dg/debug/dwarf2/const1.C: Likewise.
* g++.dg/debug/dwarf2/template-params-3.C: Likewise.
* g++.dg/debug/dwarf2/template-func-params-3.C: Likewise.

From-SVN: r155327

14 years agore PR debug/41679 (internal compiler error: in loc_cmp, at var-tracking.c:2433)
Alexandre Oliva [Thu, 17 Dec 2009 19:32:32 +0000 (19:32 +0000)]
re PR debug/41679 (internal compiler error: in loc_cmp, at var-tracking.c:2433)

PR debug/41679
* var-tracking.c (count_uses): Count MO_VAL_USE of original
MO_VAL_SET value for COND_EXEC.
(add_stores): Handle conditional stores.

From-SVN: r155324

14 years agore PR debug/41679 (internal compiler error: in loc_cmp, at var-tracking.c:2433)
Alexandre Oliva [Thu, 17 Dec 2009 19:31:52 +0000 (19:31 +0000)]
re PR debug/41679 (internal compiler error: in loc_cmp, at var-tracking.c:2433)

PR debug/41679
* var-tracking.c (use_type): Remove indirection from loc.
(count_uses): Dereference incoming loc early.
(add_uses): Dereference incoming loc early.

From-SVN: r155323

14 years agore PR debug/41679 (internal compiler error: in loc_cmp, at var-tracking.c:2433)
Alexandre Oliva [Thu, 17 Dec 2009 19:30:58 +0000 (19:30 +0000)]
re PR debug/41679 (internal compiler error: in loc_cmp, at var-tracking.c:2433)

PR debug/41679
* var-tracking.c (add_stores): Avoid value mode mismatch for
promoted declarations.

* gcc.target/arm/pr41679.c: New.

From-SVN: r155322

14 years agore PR tree-optimization/42386 (ICE in ipcp_iterate_stage, at ipa-cp.c:766)
Jakub Jelinek [Thu, 17 Dec 2009 19:29:48 +0000 (20:29 +0100)]
re PR tree-optimization/42386 (ICE in ipcp_iterate_stage, at ipa-cp.c:766)

PR c++/42386
* ipa.c (function_and_variable_visibility): Clear same_comdat_group
links of DECL_EXTERNAL nodes.

* g++.dg/opt/dtor3.C: New test.

From-SVN: r155321

14 years agortl.texi (Vector Operations): Clarify vec_select result mode.
Sandra Loosemore [Thu, 17 Dec 2009 15:43:23 +0000 (10:43 -0500)]
rtl.texi (Vector Operations): Clarify vec_select result mode.

2009-12-17  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/rtl.texi (Vector Operations): Clarify vec_select result mode.

From-SVN: r155320

14 years agobpabi-v6m.S (test_div_by_zero): New macro.
Julian Brown [Thu, 17 Dec 2009 15:37:23 +0000 (15:37 +0000)]
bpabi-v6m.S (test_div_by_zero): New macro.

gcc/
* config/arm/bpabi-v6m.S (test_div_by_zero): New macro.
(aeabi_ldivmod, aeabi_uldivmod): Use above macro.
* config/arm/bpabi.S (test_div_by_zero): New macro.
(aeabi_ldivmod, aeabi_uldivmod): Use above macro.
* config/arm/lib1funcs.asm (ARM_LDIV0): Tail-call int div-by-zero
handler for EABI. Add signed/unsigned argument, pass correct value
to that handler.
(THUMB_LDIV0): Same, for Thumb.
(DIV_FUNC_END): Add signed argument.
(WEAK): New macro (for EABI).
(__udivsi3, __umodsi3): Add unsigned argument to DIV_FUNC_END. For
__udivsi3, add entry point which skips division-by-zero test.
(__divsi3, __modsi3): Add signed argument to DIV_FUNC_END.
(__aeabi_uidivmod, __aeabi_idivmod): Check for division by zero.
Call __udivsi3 or __divsi3 via entry points which skip
division-by-zero tests.
(__div0): Rename to __aeabi_idiv0, __aeabi_ldiv0 for EABI, and
declare those names weak.

From-SVN: r155319

14 years agore PR target/42377 (libstdc++.dll.a misses a definition of std::string::reserve)
Dave Korn [Thu, 17 Dec 2009 15:25:36 +0000 (15:25 +0000)]
re PR target/42377 (libstdc++.dll.a misses a definition of std::string::reserve)

PR target/42377
* config/abi/pre/gnu.ver: Adjust mangled function signatures to permit
LLP64 sizetypes throughout.

From-SVN: r155318

14 years agore PR middle-end/42397 (FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_2...
Richard Guenther [Thu, 17 Dec 2009 14:36:43 +0000 (14:36 +0000)]
re PR middle-end/42397 (FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error)

2009-12-17  Richard Guenther  <rguenther@suse.de>

PR middle-end/42397
* builtins.c (get_object_alignment): Properly deal with
a CONST_DECL base.
* expr.c (emit_block_move_hints): Assert the alignment makes
sense.

From-SVN: r155316

14 years ago* ada/acats/run_all.sh: Strip comments from norun.lst
Arnaud Charlet [Thu, 17 Dec 2009 13:32:05 +0000 (13:32 +0000)]
* ada/acats/run_all.sh: Strip comments from norun.lst

From-SVN: r155314

14 years agore PR target/32280 (_mm_srli_si128, heinous code for some shifts)
Uros Bizjak [Thu, 17 Dec 2009 12:33:09 +0000 (13:33 +0100)]
re PR target/32280 (_mm_srli_si128, heinous code for some shifts)

PR target/32280
* config/i386/i386-modes.def (V1TI): New vector mode.
* config/i386/i386.h (VALID_SSE_REG_MODE): Add V1TImode.
(SSE_REG_MODE_P): Ditto.
* config/i386/sse.md (SSEMODE16): New mode iterator.
(AVXMODE16): Ditto.
(avxvecmode): Handle V1TI mode.
(*avx_mov<mode>_internal): Use AVXMODE16 instead of AVXMODE.
(mov<mode>): Use SSEMODE16 instead of SSEMODE.
(*mov<mode>_internal): Ditto.
(push<mode>1): Ditto.
(movmisalign<mode>): Ditto.
(sse2_ashlv1ti): Rename from sse2_ashlti.
(sse2_lshrv1ti): Rename from sse2_lshrti.
(*avx_ashlv1ti): Rename from *avx_ashlti and move from i386.md.
(*avx_lshrv1ti): Rename from *avx_lshrti and move from i386.md.
(vec_shl_<mode>): Convert operands to V1TImode and use V1TI shift.
(vec_shr_<mode>): Ditto.
(*sse2_mulv4si3): Update for renamed sse2_ashlv1ti3.
(udot_prodv4si): Ditto.
* config/i386/i386.c (classify_argument): Handle V1TImode.
(function_arg_advance_32): Ditto.
(function_arg_32): Ditto.
(ix86_expand_sse4_unpack): Convert operands to V1TImode and update
for renamed gen_sse2_lshrv1ti3.
(ix86_expand_args_builtin) <V2DI_FTYPE_V2DI_INT_CONVERT>: Set rmode
to V1TImode.
(struct builtin_description) <__builtin_ia32_pslldqi128>: Update
for renamed sse2_ashlv1ti3.
<__builtin_ia32_psrldqi128>: Update for renamed sse2_lshrv1ti3.

Revert:
2007-06-11  Uros Bizjak  <ubizjak@gmail.com>

PR target/32280
* config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
* config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.

testsuite/ChangeLog:

PR target/32280
* gcc.target/i386/pr32280-1.c: New test.

From-SVN: r155312

14 years agoobjc-act.c (objc_substitute_decl, [...]): Update build_indirect_ref calls.
Shujing Zhao [Thu, 17 Dec 2009 11:57:10 +0000 (11:57 +0000)]
objc-act.c (objc_substitute_decl, [...]): Update build_indirect_ref calls.

2009-12-17  Shujing Zhao  <pearly.zhao@oracle.com>

* objc-act.c (objc_substitute_decl, build_ivar_reference,
get_super_receiver): Update build_indirect_ref calls.

From-SVN: r155311

14 years agore PR target/42372 (Regrename reuses non-dead register)
Richard Earnshaw [Thu, 17 Dec 2009 11:50:06 +0000 (11:50 +0000)]
re PR target/42372 (Regrename reuses non-dead register)

PR target/42372
* arm.md (pic_add_dot_plus_eight): Change output constraint from
update to write.

From-SVN: r155310

14 years agors6000-c.c (altivec_resolve_overloaded_builtin): Update build_indirect_ref calls.
Shujing Zhao [Thu, 17 Dec 2009 11:39:40 +0000 (11:39 +0000)]
rs6000-c.c (altivec_resolve_overloaded_builtin): Update build_indirect_ref calls.

2009-12-17  Shujing Zhao  <pearly.zhao@oracle.com>

* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
Update build_indirect_ref calls.

From-SVN: r155309

14 years agore PR libstdc++/42198 ([C++0x] Using std::thread without -pthread causes immediate...
Paolo Carlini [Thu, 17 Dec 2009 11:09:05 +0000 (11:09 +0000)]
re PR libstdc++/42198 ([C++0x] Using std::thread without -pthread causes immediate crash)

2009-12-17  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/42198
* src/thread.cc (thread::_M_start_thread): Throw system_error
immediately if the thread system is inactive.

From-SVN: r155308

14 years agoforward-1.x: XFAIL for -fgnu-runtime on x86_64-*-darwin*...
Uros Bizjak [Thu, 17 Dec 2009 10:02:33 +0000 (11:02 +0100)]
forward-1.x: XFAIL for -fgnu-runtime on x86_64-*-darwin*...

    * objc/execute/forward-1.x: XFAIL for -fgnu-runtime on
    x86_64-*-darwin*, powerpc*-*-darwin* and alpha*-*-linux* targets.

From-SVN: r155307

14 years agoPR libstdc++/21772 part 2
Benjamin Kosnik [Thu, 17 Dec 2009 09:37:16 +0000 (09:37 +0000)]
PR libstdc++/21772 part 2

2009-12-16  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/21772 part 2
* doc/xml/manual/test.xml: Add documentation about testing details.
* testsuite/util/exception/safety.h: New. Functor objects for
testing C++0x container classes.
* testsuite/util/testsuite_container_traits.h: Add traits.

* testsuite/23_containers/list/requirements/exception/
basic.cc: New.
generation_prohibited.cc: New.
propagation_consistent.cc: New.

From-SVN: r155306

14 years agore PR fortran/42144 ([OOP] deferred TBPs do not work)
Janus Weil [Thu, 17 Dec 2009 09:28:25 +0000 (10:28 +0100)]
re PR fortran/42144 ([OOP] deferred TBPs do not work)

gcc/fortran/
2009-12-17 Janus Weil  <janus@gcc.gnu.org>

PR fortran/42144
* trans-expr.c (select_class_proc): Skip abstract base types.

gcc/testsuite/
2009-12-17  Janus Weil  <janus@gcc.gnu.org>

PR fortran/42144
* gfortran.dg/dynamic_dispatch_6.f03: New test.

From-SVN: r155305

14 years agosync.md (IMODE): Remove mode iterator.
Uros Bizjak [Thu, 17 Dec 2009 08:34:27 +0000 (09:34 +0100)]
sync.md (IMODE): Remove mode iterator.

* config/i386/sync.md (IMODE): Remove mode iterator.
(modesuffix): Remove mode attribute.
(modeconstraint): Ditto.
(immconstraint): Ditto.
(*sync_compare_and_swap<mode>): Use SWI mode iterator instead of
IMODE mode iterator, imodesuffix mode attribute instead of modesuffix,
<r> mode attribute instead of modeconstraint and <i> mode attribute
instead of immconstraint.
(sync_double_compare_and_swap<mode>): Ditto.
(sync_old_add<mode>): Ditto.
(sync_lock_test_and_set<mode>): Ditto.
(sync_add<mode>): Ditto.
(sync_sub<mode>): Ditto.
(sync_and<mode>): Ditto.
(sync_ior<mode>): Ditto.
(sync_xor<mode>): Ditto.
(sync_<code><mode>): Macroize insn pattern from
sync_{and,ior,xor}<mode> using any_logic code iterator.

From-SVN: r155304

14 years agocall.c (build_over_call, [...]): Update cp_build_indirect_ref calls.
Shujing Zhao [Thu, 17 Dec 2009 08:25:06 +0000 (08:25 +0000)]
call.c (build_over_call, [...]): Update cp_build_indirect_ref calls.

2009-12-17  Shujing Zhao  <pearly.zhao@oracle.com>

* call.c (build_over_call, build_java_interface_fn_ref): Update
cp_build_indirect_ref calls.
* typeck2.c (build_m_component_ref): Likewise.

From-SVN: r155303

14 years agore PR c/40885 (build_indirect_ref i18n problems)
Shujing Zhao [Thu, 17 Dec 2009 03:22:22 +0000 (03:22 +0000)]
re PR c/40885 (build_indirect_ref i18n problems)

2009-12-17  Shujing Zhao  <pearly.zhao@oracle.com>

PR c/40885
* c-common.h (ref_operator): New type.
(build_indirect_ref): Adjust prototype with new argument.
* c-typeck.c (build_indirect_ref): Accept ref_operator as argument and
emit the diagnostics for easy translation.
(build_array_ref): Update calls to build_indirect_ref.
* c-omp.c (c_finish_omp_atomic): Likewise.
* c-parser.c (c_parser_unary_expression,
c_parser_postfix_expression_after_primary): Likewise.

cp/
2009-12-17  Shujing Zhao  <pearly.zhao@oracle.com>

* typeck.c (build_indirect_ref): Update the argument.
(build_x_indirect_ref): Likewise.
(cp_build_indirect_ref): Update the argument and emit the diagnostics
for easy translation.
(build_class_member_access_expr, build_array_ref,
get_member_function_from_ptrfunc): Update calls.
* cp-tree.h (build_x_indirect_ref, cp_build_indirect_ref): Update
prototypes.
* call.c (build_new_op, convert_like_real, build_x_va_arg,
build_over_call): Update calls.
* class.c (build_base_path, build_simple_base_path, build_vfn_ref):
Likewise.
* decl.c (start_preparsed_function): Likewise.
* except.c (expand_start_catch_block, build_throw): Likewise.
* init.c (emit_mem_initializers, expand_virtual_init,
expand_virtual_init, build_new_1, build_vec_init, build_delete,
build_vec_delete): Likewise.
* parser.c (cp_parser_unary_expression): Likewise.
* pt.c (tsubst_copy_and_build): Likewise.
* rtti.c (build_headof, get_tinfo_decl_dynamic, get_typeid): Likewise.
* semantics.c (finish_non_static_data_member, thisify_lambda_field):
Likewise.
* tree.c (build_dummy_object, stabilize_expr): Likewise.
* typeck2.c (build_x_arrow): Likewise.

testsuite/
2009-12-17  Shujing Zhao  <pearly.zhao@oracle.com>

* g++.old-deja/g++.mike/net31.C: Make expected dg-error strings
explicit.
* g++.old-deja/g++.bugs/900213_02.C: Likewise.
* g++.old-deja/g++.bugs/900215_02.C: Likewise.

From-SVN: r155302

14 years agoDaily bump.
GCC Administrator [Thu, 17 Dec 2009 00:17:02 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r155301

14 years agore PR lto/42392 ([LTO] ICE with top level asm)
Richard Guenther [Wed, 16 Dec 2009 23:07:10 +0000 (23:07 +0000)]
re PR lto/42392 ([LTO] ICE with top level asm)

2009-12-16  Richard Guenther  <rguenther@suse.de>

PR lto/42392
* langhooks.c (lhd_begin_section): Make sure to switch back
to the text section, not some random one.

* gcc.dg/lto/20091216-1_0.c: New testcase.

From-SVN: r155298

14 years agore PR c++/42387 (ICE with new expression in class template)
Jason Merrill [Wed, 16 Dec 2009 17:36:05 +0000 (12:36 -0500)]
re PR c++/42387 (ICE with new expression in class template)

PR c++/42387
* decl.c (compute_array_index_type): Mark a VLA as dependent.

From-SVN: r155292

14 years ago* zh_CN.po: Update.
Joseph Myers [Wed, 16 Dec 2009 14:52:44 +0000 (14:52 +0000)]
* zh_CN.po: Update.

From-SVN: r155290

14 years agotree-chrec.c (chrec_convert_1): Only fold (T2)(t +- x) to (T2)t +- (T2)x if only...
Jakub Jelinek [Wed, 16 Dec 2009 12:47:40 +0000 (13:47 +0100)]
tree-chrec.c (chrec_convert_1): Only fold (T2)(t +- x) to (T2)t +- (T2)x if only integer types are involved.

* tree-chrec.c (chrec_convert_1): Only fold (T2)(t +- x) to
(T2)t +- (T2)x if only integer types are involved.

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

From-SVN: r155288

14 years agotree-data-ref.h (dot_rdg): Remove prototype.
Ben Elliston [Wed, 16 Dec 2009 12:32:14 +0000 (12:32 +0000)]
tree-data-ref.h (dot_rdg): Remove prototype.

* tree-data-ref.h (dot_rdg): Remove prototype.
* tree-data-ref.c (dog_rdg_1, dot_rdg): Remove.

From-SVN: r155287

14 years ago* gcc.dg/debug/tls-1.c: New test.
Jakub Jelinek [Wed, 16 Dec 2009 09:16:44 +0000 (10:16 +0100)]
* gcc.dg/debug/tls-1.c: New test.

From-SVN: r155286

14 years agoPR libstdc++/21772 part 1
Benjamin Kosnik [Wed, 16 Dec 2009 05:16:46 +0000 (05:16 +0000)]
PR libstdc++/21772 part 1

2009-12-15  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/21772 part 1
* include/ext/throw_allocator.h: Rework.
(__gnu_cxx::throw_allocator): To...
(__gnu_cxx::throw_allocator_limit): ...this.
(__gnu_cxx::throw_allocator_random): ...and this.
(throw_value_base, throw_value_limit, throw_value_random): Add.
(condition_base, random_condition, limit_condition): Add.
(forced_exception_error): To...
(forced_error): ...this.
* testsuite/ext/throw_value: New.
* testsuite/ext/throw_value/cons.cc: New.
* testsuite/ext/throw_allocator/deallocate_global.cc: Adjust for
throw_allocator, forced_exception_error changes.
* testsuite/ext/throw_allocator/check_delete.cc: Same.
* testsuite/ext/throw_allocator/check_allocate_max_size.cc: Same.
* testsuite/ext/throw_allocator/check_deallocate_null.cc: Same.
* testsuite/ext/throw_allocator/explicit_instantiation.cc: Same.
* testsuite/ext/throw_allocator/check_new.cc: Same.
* testsuite/ext/throw_allocator/variadic_construct.cc: Same.
* testsuite/ext/throw_allocator/deallocate_local.cc: Same.
* testsuite/23_containers/list/modifiers/insert/25288.cc: Same.
* testsuite/23_containers/list/modifiers/insert/25288.h: Same.
* testsuite/util/regression/common_type.hpp: Same.
* testsuite/util/regression/rand/priority_queue/
container_rand_regression_test.tcc: Same.
* testsuite/util/regression/rand/assoc/
container_rand_regression_test.h: Same.
* testsuite/util/regression/rand/assoc/
container_rand_regression_test.tcc: Same.
* testsuite/util/regression/basic_type.hpp: Same.

* testsuite/ext/forced_exception_error/cons_virtual_derivation.cc: To...
* testsuite/ext/forced_error/cons_virtual_derivation.cc: ...this, same.

From-SVN: r155283

14 years agogfc-internals.texi, [...]: Fix typos.
Kazu Hirata [Wed, 16 Dec 2009 00:54:44 +0000 (00:54 +0000)]
gfc-internals.texi, [...]: Fix typos.

* gfc-internals.texi, gfortran.texi, invoke.texi: Fix typos.
Follow spelling conventions.

From-SVN: r155282

14 years agoinvoke.texi, [...]: Fix typos.
Kazu Hirata [Wed, 16 Dec 2009 00:49:41 +0000 (00:49 +0000)]
invoke.texi, [...]: Fix typos.

* doc/invoke.texi, doc/options.texi, doc/plugins.texi,
doc/tm.texi: Fix typos.

From-SVN: r155281

14 years agoDaily bump.
GCC Administrator [Wed, 16 Dec 2009 00:16:44 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r155280

14 years agoffitest.h: Define PRIuPTR on PA HP-UX.
John David Anglin [Tue, 15 Dec 2009 23:55:56 +0000 (23:55 +0000)]
ffitest.h: Define PRIuPTR on PA HP-UX.

* testsuite/libffi.call/ffitest.h: Define PRIuPTR on PA HP-UX.

From-SVN: r155277

14 years ago2009-12-15 Paolo Carlini <paolo.carlini@oracle.com>
Paolo Carlini [Tue, 15 Dec 2009 21:01:00 +0000 (21:01 +0000)]
2009-12-15  Paolo Carlini  <paolo.carlini@oracle.com>

* Fix typo in last ChangeLog entry.

From-SVN: r155272

14 years agore PR libstdc++/42381 (deque shouldn't reserve that much memory)
Paolo Carlini [Tue, 15 Dec 2009 20:58:29 +0000 (20:58 +0000)]
re PR libstdc++/42381 (deque shouldn't reserve that much memory)

2009-12-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR libsdtc++/42381
* include/bits/stl_deque.h (_GLIBCXX_DEQUE_BUF_SIZE): Add.
(__deque_buf_size(size_t)): Use it.
* testsuite/23_containers/deque/requirements/dr438/
assign_neg.cc: Adjust dg-error line numbers.
* testsuite/23_containers/deque/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_2_neg.cc: Likewise.

From-SVN: r155271

14 years agofuture (unique_future::get, [...]): Remove workaround for c++/34022.
Jonathan Wakely [Tue, 15 Dec 2009 20:17:27 +0000 (20:17 +0000)]
future (unique_future::get, [...]): Remove workaround for c++/34022.

2009-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/std/future (unique_future::get, promise::set_value): Remove
workaround for c++/34022.
(packaged_task::get_future, packaged_task::operator()): Use
__throw_bad_function_call.
* testsuite/30_threads/packaged_task/cons/assign_neg.cc: Adjust.
* testsuite/30_threads/packaged_task/cons/copy_neg.cc: Likewise.
* testsuite/30_threads/promise/cons/assign_neg.cc: Likewise.
* testsuite/30_threads/promise/cons/copy_neg.cc: Likewise.
* testsuite/30_threads/shared_future/cons/assign_neg.cc: Likewise.
* testsuite/30_threads/unique_future/cons/assign_neg.cc: Likewise.
* testsuite/30_threads/unique_future/cons/copy_neg.cc: Likewise.

From-SVN: r155269

14 years agore PR c++/42358 ([C++0x] Assembler failure on libstdc++-v3/testsuite/23_containers...
Jason Merrill [Tue, 15 Dec 2009 18:57:39 +0000 (13:57 -0500)]
re PR c++/42358 ([C++0x] Assembler failure on libstdc++-v3/testsuite/23_containers/multimap/init-list.cc with -O0)

PR c++/42358
* pt.c (iterative_hash_template_arg): Completely ignore
ARGUMENT_PACK_SELECT.

From-SVN: r155267

14 years agore PR c++/42373 (g++.dg/cpp0x/lambda/lambda-mangle.C scan-assembler weak[ \t]*_?_ZN1R...
Jason Merrill [Tue, 15 Dec 2009 18:57:30 +0000 (13:57 -0500)]
re PR c++/42373 (g++.dg/cpp0x/lambda/lambda-mangle.C scan-assembler weak[ \t]*_?_ZN1RIiE1xMUlvE_clEv fails on x86_64-apple-darwin)

PR c++/42373
* g++.dg/cpp0x/lambda/lambda-mangle.C: Adjust regexps for darwin.

From-SVN: r155266

14 years agoReplace tabs with spaces in .texi files.
Ralf Wildenhues [Tue, 15 Dec 2009 18:36:44 +0000 (18:36 +0000)]
Replace tabs with spaces in .texi files.

gcc/:
* doc/extend.texi (Function Attributes, Extended Asm):
Replace TABs with spaces.
* doc/md.texi (Standard Names): Likewise.
* doc/plugins.texi (Plugins): Likewise.

From-SVN: r155264

14 years agoFix @itemx vs. @itemx
Ralf Wildenhues [Tue, 15 Dec 2009 18:33:16 +0000 (18:33 +0000)]
Fix @itemx vs. @itemx

gcc/:
* doc/c-tree.texi (Expression trees): Use @itemx for all but
the first item for merged items.
* doc/extend.texi (Variable Attributes): Likewise.
* doc/install.texi (Configuration): Likewise.
* doc/invoke.texi (RS/6000 and PowerPC Options, RX Options):
Likewise.

From-SVN: r155263

14 years agofunctional (function::function): Move construct target.
Jonathan Wakely [Tue, 15 Dec 2009 17:42:47 +0000 (17:42 +0000)]
functional (function::function): Move construct target.

2009-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/std/functional (function::function): Move construct target.
(function::operator=): Use perfect forwarding for argument.
(function::operator()): Use new __throw_bad_function_call.
* include/bits/functexcept.h (__throw_bad_function_call): Declare.
* src/functexcept.cc (__throw_bad_function_call): Define.
* config/abi/pre/gnu.ver: Add new symbol.
* testsuite/20_util/function/cons/move_target.cc: New.
* testsuite/20_util/function/assign/move_target.cc: New.

From-SVN: r155261

14 years agotree.c (free_lang_data_in_binfo): Do not free BINFO_OFFSET and BINFO_VPTR_FIELD.
Richard Guenther [Tue, 15 Dec 2009 16:30:22 +0000 (16:30 +0000)]
tree.c (free_lang_data_in_binfo): Do not free BINFO_OFFSET and BINFO_VPTR_FIELD.

2009-12-15  Richard Guenther  <rguenther@suse.de>

* tree.c (free_lang_data_in_binfo): Do not free BINFO_OFFSET
and BINFO_VPTR_FIELD.
(free_lang_data_in_type): Do not free TYPE_STUB_DECL if we
generate debug information.
(free_lang_data_in_decl): Do not free DECL_SIZE_UNIT,
DECL_SIZE, DECL_FIELD_OFFSET and DECL_FCONTEXT.
(free_lang_data): Do not disable debuginfo.
* lto-streamer-out.c (write_symbol_vec): Deal with
non-constant DECL_SIZE.
(pack_ts_base_value_fields): Write types with false
TREE_ASM_WRITTEN.
(lto_output_ts_type_tree_pointers): Stream TYPE_STUB_DECL.
* lto-streamer-in.c (lto_input_ts_type_tree_pointers): Stream
TYPE_STUB_DECL.
* dwarf2out.c (add_pure_or_virtual_attribute): Check for
DECL_CONTEXT.
(gen_type_die_for_member): Test for TYPE_STUB_DECL.
* opts.c (decode_options): Do not disable var-tracking for lto.
* doc/invoke.texi (-flto): Document -flto vs. -g experimental
status.
(-fwhopr): Document experimental status.

lto/
* lto.c (lto_fixup_field_decl): Fixup DECL_FIELD_OFFSET.
(lto_post_options): Do not disable debuginfo.

From-SVN: r155259

14 years agore PR c++/42379 (Revision 155245 failed 1_neg.cc)
Paolo Carlini [Tue, 15 Dec 2009 16:11:32 +0000 (16:11 +0000)]
re PR c++/42379 (Revision 155245 failed 1_neg.cc)

2009-12-15  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/42379
* testsuite/23_containers/set/operators/1_neg.cc: Fix dg-error strings.
* testsuite/23_containers/map/operators/1_neg.cc: Likewise.

From-SVN: r155258

14 years ago* ada/acats/norun.lst: Sort.
Rainer Orth [Tue, 15 Dec 2009 16:02:38 +0000 (16:02 +0000)]
* ada/acats/norun.lst: Sort.

From-SVN: r155257

14 years agore PR tree-optimization/42185 ([graphite] expected gimple_assign(error_mark), have...
Aldy Hernandez [Tue, 15 Dec 2009 15:17:46 +0000 (15:17 +0000)]
re PR tree-optimization/42185 ([graphite] expected gimple_assign(error_mark), have gimple_call() in gimple_assign_rhs_code, at gimple.h:1820)

       PR graphite/42185
        * graphite-sese-to-poly.c (is_reduction_operation_p): Assert that
        we are a GIMPLE_ASSIGN.  Do not calculate rhs code twice.
        (follow_ssa_with_commutative_ops): Return NULL on non assignment.

From-SVN: r155256

14 years agore PR c++/41183 (ICE compiling chromium)
Jakub Jelinek [Tue, 15 Dec 2009 15:13:08 +0000 (16:13 +0100)]
re PR c++/41183 (ICE compiling chromium)

PR c++/41183
* cp-tree.h (current_class_ptr): Give NULL even when cfun
has NULL cfun->language.

* g++.dg/torture/pr41183.C: New test.

From-SVN: r155254

14 years ago* config/rs6000/rs6000.md (probe_stack): Use an enclosing SET.
Eric Botcazou [Tue, 15 Dec 2009 11:58:07 +0000 (11:58 +0000)]
* config/rs6000/rs6000.md (probe_stack): Use an enclosing SET.

From-SVN: r155251

14 years agogimple.h (compare_field_offset): Declare.
Richard Guenther [Tue, 15 Dec 2009 11:32:49 +0000 (11:32 +0000)]
gimple.h (compare_field_offset): Declare.

2009-12-15  Richard Guenther  <rguenther@suse.de>

* gimple.h (compare_field_offset): Declare.
* gimple.c (compare_field_offset): Export.
* lto-streamer-in.c (input_gimple_stmt): Use compare_field_offset.

From-SVN: r155250

14 years agolto-cgraph.c (lto_output_node): Also stream the alias for regular aliases.
Richard Guenther [Tue, 15 Dec 2009 11:28:10 +0000 (11:28 +0000)]
lto-cgraph.c (lto_output_node): Also stream the alias for regular aliases.

2009-12-15  Richard Guenther  <rguenther@suse.de>

* lto-cgraph.c (lto_output_node): Also stream the alias
for regular aliases.
(input_node): Likewise.

From-SVN: r155249

14 years agore PR fortran/41235 (Missing explicit interface for variable-length character functions)
Tobias Burnus [Tue, 15 Dec 2009 08:37:41 +0000 (09:37 +0100)]
re PR fortran/41235 (Missing explicit interface for variable-length character functions)

2009-12-15  Tobias Burnus  <burnus@net-b.de>
            Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/41235
        * resolve.c (resolve_global_procedure): Add check for
        presence of an explicit interface for nonconstant,
        nonassumed character-length functions.
        (resolve_fl_procedure): Remove check for nonconstant
        character-length functions.

2009-12-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41235
        * auto_char_len_1.f90: New test.
        * auto_char_len_2.f90: New test.
        * auto_char_len_4.f90: Correct test.

From-SVN: r155247

14 years agore PR c++/42364 (C++ testsuite fails with -g)
Jason Merrill [Tue, 15 Dec 2009 02:11:54 +0000 (21:11 -0500)]
re PR c++/42364 (C++ testsuite fails with -g)

PR c++/42364
* pt.c (function_parameter_expanded_from_pack_p): Don't require
a pack to have a name.
(tsubst_decl): Do typedef magic after applying attributes.

From-SVN: r155246

14 years ago[multiple changes]
Paolo Bonzini [Tue, 15 Dec 2009 00:20:03 +0000 (00:20 +0000)]
[multiple changes]

2009-12-15  Paolo Bonzini  <bonzini@gnu.org>
    Shujing Zhao  <pearly.zhao@oracle.com>

* intl.c (get_spaces): New.
* intl.h (get_spaces): New.

cp:
2009-12-15  Paolo Bonzini  <bonzini@gnu.org>
    Shujing Zhao  <pearly.zhao@oracle.com>

* Makefile.in (cp/pt.o): Depend on intl.h
* call.c (print_z_candidates): Make loop more compact,
choose head string depending on number of candidates,
extract creation of spaces string to intl.c.
* pt.c (print_overloaded_functions): Replace with...
(print_candidates_1): ... this rewrite.
(print_candidates): Rewrite to call print_candidates_1.
(most_specialized_class): Make loop more compact,
choose head string depending on number of candidates,
and size indents depending on translations.

testsuite:
2009-12-15  Shujing Zhao  <pearly.zhao@oracle.com>

* g++.dg/other/error20.C: Adjust dg-message strings.
* g++.dg/other/error31.C: Likewise.
* g++.dg/rtti/typeid6.C: Likewise.
* g++.dg/ext/ms-1.C: Likewise.
* g++.dg/parse/error19.C: Likewise.
* g++.dg/parse/crash5.C: Likewise.
* g++.dg/cpp0x/explicit4.C: Likewise.
* g++.dg/template/ptrmem4.C: Likewise.
* g++.dg/template/crash37.C: Likewise.
* g++.dg/template/qualttp5.C: Likewise.
* g++.dg/template/local6.C: Likewise.
* g++.dg/template/instantiate5.C: Likewise.
* g++.old-deja/g++.brendan/overload1.C: Likewise.
* g++.old-deja/g++.brendan/cvt3.C: Likewise.
* g++.old-deja/g++.brendan/overload4.C: Likewise.
* g++.old-deja/g++.jason/conversion11.C: Likewise.
* g++.old-deja/g++.jason/scoping10.C: Likewise.
* g++.old-deja/g++.other/expr1.C: Likewise.
* g++.old-deja/g++.other/pmf3.C: Likewise.
* g++.old-deja/g++.other/crash24.C: Likewise.
* g++.old-deja/g++.niklas/t120.C: Likewise.
* g++.old-deja/g++.niklas/t121.C: Likewise.
* g++.old-deja/g++.law/operators9.C: Likewise.
* g++.old-deja/g++.law/arm9.C: Likewise.
* g++.old-deja/g++.law/enum4.C: Likewise.
* g++.old-deja/g++.law/arg11.C: Likewise.
* g++.old-deja/g++.benjamin/15800-1.C: Likewise.
* g++.old-deja/g++.mike/p2431.C: Likewise.
* g++.old-deja/g++.mike/p438.C: Likewise.
* g++.old-deja/g++.mike/p9068.C: Likewise.
* g++.old-deja/g++.mike/p11110.C: Likewise.
* g++.old-deja/g++.bugs/900330_02.C: Likewise.

From-SVN: r155245

14 years agoDaily bump.
GCC Administrator [Tue, 15 Dec 2009 00:16:51 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r155244

14 years agoPR libstdc++/25304, DR 865 [Ready]
Paolo Carlini [Tue, 15 Dec 2009 00:07:52 +0000 (00:07 +0000)]
PR libstdc++/25304, DR 865 [Ready]

2009-12-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/25304, DR 865 [Ready]
* include/bits/stl_algobase.h (fill_n): Add comment about DR 865.
* include/bits/stl_algo.h (generate_n): Likewise.
* include/bits/algorithmfwd.h: Remove obsolete comment.
* doc/xml/manual/intro.xml: Add an entry for DR 865.

From-SVN: r155241

14 years agoRemove code to un-precious-ize CC, CXX in libjava and v3.
Ralf Wildenhues [Mon, 14 Dec 2009 21:44:48 +0000 (21:44 +0000)]
Remove code to un-precious-ize CC, CXX in libjava and v3.

libjava/:
* configure.ac: Remove code to un-precious-ize CC, CXX,
CXXFLAGS, CFLAGS, LDFLAGS.
* configure: Regenerate.

libstdc++-v3/:
* configure.ac: Remove code to un-precious-ize CC, CXX,
CXXFLAGS, CFLAGS, LDFLAGS.
* configure: Regenerate.

From-SVN: r155240

14 years agoi386-2.C: Add -mpopcnt -mabm -mlwp to dg-options.
Uros Bizjak [Mon, 14 Dec 2009 20:14:49 +0000 (21:14 +0100)]
i386-2.C: Add -mpopcnt -mabm -mlwp to dg-options.

* g++.dg/other/i386-2.C: Add -mpopcnt -mabm -mlwp to dg-options.
* g++.dg/other/i386-3.C: Ditto.
* g++.dg/other/i386-5.C: Remove duplicated test.
* g++.dg/other/i386-6.C: Ditto.

From-SVN: r155238

14 years agore PR bootstrap/42369 (Revision 155217 failed to bootstrap)
Jakub Jelinek [Mon, 14 Dec 2009 19:59:00 +0000 (20:59 +0100)]
re PR bootstrap/42369 (Revision 155217 failed to bootstrap)

PR bootstrap/42369
* config/i386/i386.c (ix86_expand_special_args_builtin): Avoid
using switch with CODE_FOR_lwp_lwp* cases.

From-SVN: r155237

14 years agoi386-builtin-types.def (PVOID_FTYPE_VOID): Use DEF_FUNCTION_TYPE (PVOID) instead...
Jakub Jelinek [Mon, 14 Dec 2009 19:53:01 +0000 (20:53 +0100)]
i386-builtin-types.def (PVOID_FTYPE_VOID): Use DEF_FUNCTION_TYPE (PVOID) instead of DEF_FUNCTION_TYPE (PVOID, VOID).

* config/i386/i386-builtin-types.def (PVOID_FTYPE_VOID): Use
DEF_FUNCTION_TYPE (PVOID) instead of DEF_FUNCTION_TYPE (PVOID, VOID).

From-SVN: r155236

14 years agore PR fortran/42354 (Invalidly accepts C_LOC in init expressions)
Daniel Franke [Mon, 14 Dec 2009 19:10:56 +0000 (14:10 -0500)]
re PR fortran/42354 (Invalidly accepts C_LOC in init expressions)

gcc/fortran/:
2009-12-14  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/42354
* expr.c (check_init_expr): Do not check for specification functions.

gcc/testsuite/:
2009-12-14  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/42354
* gfortran.dg/iso_c_binding_init_expr.f03: New.
* gfortran.dg/intrinsic_std_1.f90: Fixed expected error message.
* gfortran.dg/function_kinds_5.f90: Likewise.
* gfortran.dg/selected_char_kind_3.f90: Likewise.

From-SVN: r155234

14 years agocfgexpand.c (expand_debug_expr): Remove overzealous assertion and useless code.
Eric Botcazou [Mon, 14 Dec 2009 18:27:58 +0000 (18:27 +0000)]
cfgexpand.c (expand_debug_expr): Remove overzealous assertion and useless code.

* cfgexpand.c (expand_debug_expr) <INDIRECT_REF>: Remove overzealous
assertion and useless code.
<TARGET_MEM_REF>: Likewise.

From-SVN: r155229

14 years agoboz_15.f90: Fix typos.
Dominique d'Humieres [Mon, 14 Dec 2009 17:56:12 +0000 (18:56 +0100)]
boz_15.f90: Fix typos.

* gfortran.dg/boz_15.f90: Fix typos.

From-SVN: r155225

14 years agoFix up ChangeLog entry.
Jakub Jelinek [Mon, 14 Dec 2009 17:30:48 +0000 (18:30 +0100)]
Fix up ChangeLog entry.

From-SVN: r155223

14 years agore PR target/41473 (dsymutil "Assertion failed ...")
Alexandre Oliva [Mon, 14 Dec 2009 16:55:52 +0000 (16:55 +0000)]
re PR target/41473 (dsymutil "Assertion failed ...")

PR debug/41473
* dwarf2out.c (AT_loc_list_ptr): New.
(resolve_addr): Remove unresolved attributes and loc_list entries.

From-SVN: r155222

14 years agore PR target/41473 (dsymutil "Assertion failed ...")
Alexandre Oliva [Mon, 14 Dec 2009 16:55:12 +0000 (16:55 +0000)]
re PR target/41473 (dsymutil "Assertion failed ...")

PR debug/41473
* dwarf2out.c (add_var_loc_to_decl): Don't drop initial empty
locations.
(new_loc_list): Drop gensym arg.  Move generation of ll_symbol...
(gen_llsym): ... here.  New function.
(add_loc_descr_to_loc_list): Removed.
(loc_descriptor): Infer mode from CONST_DOUBLEs and CONST_VECTORs.
(single_element_loc_list): Removed.
(dw_loc_list): Don't create entries without a location.  Don't
special-case the first node of the list, only single nodes.
(single_element_loc_list_p): Simplify.
(loc_list_from_tree): Don't use DECL_RTL if loc_list is nonempty.
(add_location_or_const_value_attribute): Test var loc for NULL.
(convert_cfa_to_fb_loc_list): Adjust calls to new new_loc_list,
call gen_llsym if needed.

From-SVN: r155221

14 years agocgraph.h (cgraph_set_nothrow_flag, [...]): New prototypes.
Jakub Jelinek [Mon, 14 Dec 2009 16:53:57 +0000 (17:53 +0100)]
cgraph.h (cgraph_set_nothrow_flag, [...]): New prototypes.

* cgraph.h (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
prototypes.
* cgraph.c (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
functions.
* except.h (set_nothrow_function_flags): Remove prototype.
* except.c (set_nothrow_function_flags): Use cgraph_set_nothrow_flag.
Make static.
* ipa-pure-const.c (propagate): Use cgraph_set_nothrow_flag,
cgraph_set_readonly_flag, cgraph_set_pure_flag
and cgraph_set_looping_const_or_pure_flag.
(local_pure_const): Likewise.

From-SVN: r155220

14 years agore PR tree-optimization/42284 (failing tree check in graphite-sese-to-poly.c for...
Sebastian Pop [Mon, 14 Dec 2009 16:51:43 +0000 (16:51 +0000)]
re PR tree-optimization/42284 (failing tree check in  graphite-sese-to-poly.c for 164.gzip)

PR middle-end/42284
* testsuite/gcc.dg/graphite/pr42284.c: New.

From-SVN: r155219

14 years agore PR tree-optimization/42284 (failing tree check in graphite-sese-to-poly.c for...
Sebastian Pop [Mon, 14 Dec 2009 16:49:47 +0000 (16:49 +0000)]
re PR tree-optimization/42284 (failing tree check in  graphite-sese-to-poly.c for 164.gzip)

Fix PR42284.

2009-12-12  Sebastian Pop  <sebpop@gmail.com>

PR middle-end/42284
* graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
(detect_commutative_reduction_arg): Simplified.
(detect_commutative_reduction): Early return when the argument of
the close phi is not of an SSA_NAME.

* testsuite/gcc.dg/graphite/pr42284.c: New.

From-SVN: r155218