]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
13 years agore PR ada/41929 (64-bit null_pointer_deref1 gnat.dg test consumes all available memory)
Eric Botcazou [Mon, 9 Jan 2012 09:50:42 +0000 (09:50 +0000)] 
re PR ada/41929 (64-bit null_pointer_deref1 gnat.dg test consumes all available memory)

PR ada/41929
* config/sparc/sol2-unwind.h (sparc64_is_sighandler): Remove SAVPC and
add CFA.  Revert back to old code for Solaris 8+ multi-threaded.
(sparc_is_sighandler): Likewise.
(MD_FALLBACK_FRAME_STATE_FOR): Adjust call to IS_SIGHANDLER.

From-SVN: r183006

13 years agoDaily bump.
GCC Administrator [Mon, 9 Jan 2012 00:18:32 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182998

13 years agoDaily bump.
GCC Administrator [Sun, 8 Jan 2012 00:19:04 +0000 (00:19 +0000)] 
Daily bump.

From-SVN: r182987

13 years agoDaily bump.
GCC Administrator [Sat, 7 Jan 2012 00:18:43 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182978

13 years agobackport: c-decl.c (ext_block): Moved up.
Eric Botcazou [Fri, 6 Jan 2012 18:03:30 +0000 (18:03 +0000)] 
backport: c-decl.c (ext_block): Moved up.

Backport from mainline
2012-01-06  Arnaud Charlet  <charlet@adacore.com>

* c-decl.c (ext_block): Moved up.
(collect_all_refs, for_each_global_decl): Take ext_block into account.

From-SVN: r182960

13 years agore PR middle-end/48660 (ARM ICE in expand_expr_real_1)
Richard Sandiford [Fri, 6 Jan 2012 14:56:46 +0000 (14:56 +0000)] 
re PR middle-end/48660 (ARM ICE in expand_expr_real_1)

gcc/
PR middle-end/48660
* expr.h (copy_blkmode_to_reg): Declare.
* expr.c (copy_blkmode_to_reg): New function.
(expand_assignment): Don't expand register RESULT_DECLs before
the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
RESULT_DECL register.
(expand_expr_real_1): Handle BLKmode decls when looking for promotion.

gcc/testsuite/
PR middle-end/48660
* g++.dg/pr48660.C: New test.

From-SVN: r182955

13 years ago* ada/acats/overflow.lst: Add cb20004.
Eric Botcazou [Fri, 6 Jan 2012 10:50:38 +0000 (10:50 +0000)] 
* ada/acats/overflow.lst: Add cb20004.

From-SVN: r182948

13 years agoDaily bump.
GCC Administrator [Fri, 6 Jan 2012 00:18:40 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182941

13 years agore PR tree-optimization/51315 (unaligned memory accesses generated with -ftree-sra)
Eric Botcazou [Thu, 5 Jan 2012 22:24:45 +0000 (22:24 +0000)] 
re PR tree-optimization/51315 (unaligned memory accesses generated with -ftree-sra)

PR tree-optimization/51315
* tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
(build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.

From-SVN: r182933

13 years agoDaily bump.
GCC Administrator [Thu, 5 Jan 2012 00:18:13 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182894

13 years agore PR tree-optimization/51624 (Assert_Failure atree.adb:808 during stage 3)
Eric Botcazou [Wed, 4 Jan 2012 21:37:11 +0000 (21:37 +0000)] 
re PR tree-optimization/51624 (Assert_Failure atree.adb:808 during stage 3)

PR tree-optimization/51624
* tree-sra.c (build_ref_for_model): When replicating a chain of
COMPONENT_REFs, stop as soon as the offset would become negative.

From-SVN: r182890

13 years agore PR tree-optimization/49651 (nested lambdas and -O3 produced incorrect integer...
Richard Guenther [Wed, 4 Jan 2012 09:50:13 +0000 (09:50 +0000)] 
re PR tree-optimization/49651 (nested lambdas and -O3 produced incorrect integer variable increments)

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

PR tree-optimization/49651
* tree-ssa-structalias.c (type_can_have_subvars): New function.
(var_can_have_subvars): Use it.
(get_constraint_for_1): Only consider subfields if there
can be any.

* gcc.dg/tree-ssa/pta-ptrarith-1.c: Adjust.
* gcc.dg/tree-ssa/pta-ptrarith-2.c: Likewise.

From-SVN: r182866

13 years agoDaily bump.
GCC Administrator [Wed, 4 Jan 2012 00:18:27 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182863

13 years agoshared_ptr.h: Default copy ctor and assignment.
Chase Douglas [Tue, 3 Jan 2012 21:37:41 +0000 (21:37 +0000)] 
shared_ptr.h: Default copy ctor and assignment.

2012-01-03  Chase Douglas  <chase.douglas@canonical.com>
    Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/bits/shared_ptr.h: Default copy ctor and assignment.
* include/bits/shared_ptr_base.h: Likewise.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
line numbers.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Likewise.

Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com>
From-SVN: r182859

13 years agobackport: invoke.texi (-flto and related options): Copy-edit.
Sandra Loosemore [Tue, 3 Jan 2012 16:43:38 +0000 (11:43 -0500)] 
backport: invoke.texi (-flto and related options): Copy-edit.

2012-01-03  Sandra Loosemore  <sandra@codesourcery.com>

gcc/

Backport from mainline:
2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>

* doc/invoke.texi (-flto and related options): Copy-edit.

From-SVN: r182853

13 years agobackport: re PR tree-optimization/51042 (endless recursion in phi_translate)
Richard Guenther [Tue, 3 Jan 2012 14:46:03 +0000 (14:46 +0000)] 
backport: re PR tree-optimization/51042 (endless recursion in phi_translate)

2012-01-03  Richard Guenther  <rguenther@suse.de>

Backport from mainline
2011-11-10  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/51042
* tree-ssa-pre.c (phi_translate_1): Avoid recursing on
self-referential expressions.  Refactor code to avoid duplication.

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

From-SVN: r182848

13 years agobackport: re PR bootstrap/49907 (lto-plugin -Wall in stage1)
Richard Guenther [Tue, 3 Jan 2012 13:15:21 +0000 (13:15 +0000)] 
backport: re PR bootstrap/49907 (lto-plugin -Wall in stage1)

2012-01-03  Richard Guenther  <rguenther@suse.de>

        Backport from mainline
        2011-08-10  Richard Guenther  <rguenther@suse.de>

        PR bootstrap/49907
        lto-plugin/
        * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
        * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
        * configure: Regenerate.
        * Makefile.in: Likewise.
        * aclocal.m4: Likewise.

From-SVN: r182842

13 years agore PR tree-optimization/51070 (ICE verify_gimple failed)
Richard Guenther [Tue, 3 Jan 2012 12:11:41 +0000 (12:11 +0000)] 
re PR tree-optimization/51070 (ICE verify_gimple failed)

2012-01-03  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/51070
        * tree-loop-distribution.c (generate_builtin): Do not replace
        the loop with a builtin if the partition contains statements which
        results are used outside of the loop.
        (stmt_has_scalar_dependences_outside_loop): Properly handle calls.

        * gcc.dg/torture/pr51070.c: New testcase.
        * gcc.dg/torture/pr51070-2.c: Likewise.

From-SVN: r182840

13 years agoDaily bump.
GCC Administrator [Tue, 3 Jan 2012 00:18:02 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182824

13 years agoPR debug/49951 - jumpy stepping at end of scope in C++
Dodji Seketeli [Mon, 2 Jan 2012 17:08:45 +0000 (17:08 +0000)] 
PR debug/49951 - jumpy stepping at end of scope in C++

gcc/cp/

PR debug/49951
* decl.c (cxx_maybe_build_cleanup): Don't set location of the call
to the destructor.

gcc/testsuite/

PR debug/49951
* g++.dg/gcov/gcov-2.C: Adjust.

From-SVN: r182807

13 years agore PR bootstrap/51686 ("make install-strip-gcc" didn't install liblto-plugin* files)
Richard Guenther [Mon, 2 Jan 2012 11:02:10 +0000 (11:02 +0000)] 
re PR bootstrap/51686 ("make install-strip-gcc" didn't install liblto-plugin* files)

2012-01-02  Richard Guenther  <rguenther@suse.de>

PR bootstrap/51686
* Makefile.def (install-strip-gcc): Depend on install-strip-lto-plugin.
* Makefile.in: Regenerate.

From-SVN: r182790

13 years ago* gnatvsn.ads (Current_Year): Bump to 2011.
Eric Botcazou [Mon, 2 Jan 2012 10:32:36 +0000 (10:32 +0000)] 
* gnatvsn.ads (Current_Year): Bump to 2011.

From-SVN: r182784

13 years agoDaily bump.
GCC Administrator [Mon, 2 Jan 2012 00:18:04 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182779

13 years agobackport: re PR fortran/51502 (Potentially wrong code generation due to wrong implict...
Thomas Koenig [Sun, 1 Jan 2012 16:12:39 +0000 (16:12 +0000)] 
backport: re PR fortran/51502 (Potentially wrong code generation due to wrong implict_pure check)

2012-01-01  Thomas König  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/51502
* expr.c (gfc_check_vardef_context):  When determining
implicit pure status, also check for variable definition
context.  Walk up namespaces until a procedure is
found to reset the implict pure attribute.
* resolve.c (gfc_implicit_pure):  Walk up namespaces
until a procedure is found.

2012-01-01  Thomas König  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/51502
* lib/gcc-dg.exp (scan-module-absence):  New function.
* gfortran.dg/implicit_pure_2.f90:  New test.

From-SVN: r182770

13 years agoDaily bump.
GCC Administrator [Sun, 1 Jan 2012 00:17:58 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r182764

13 years agoFix thinko in setting target options
Michael Meissner [Sat, 31 Dec 2011 00:29:44 +0000 (00:29 +0000)] 
Fix thinko in setting target options

From-SVN: r182752

13 years agoDaily bump.
GCC Administrator [Sat, 31 Dec 2011 00:18:02 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182750

13 years agore PR libstdc++/51711 (regex.h contains incorrect code)
Paolo Carlini [Fri, 30 Dec 2011 11:40:48 +0000 (11:40 +0000)] 
re PR libstdc++/51711 (regex.h contains incorrect code)

2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/51711
* include/bits/regex.h (regex_replace): Fix thinko.
* testsuite/28_regex/algorithms/regex_replace/char/51711.cc: New.
* testsuite/28_regex/algorithms/regex_replace/wchar_t/51711.cc:
Likewise.

From-SVN: r182741

13 years agoDaily bump.
GCC Administrator [Fri, 30 Dec 2011 00:18:10 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182737

13 years agoDaily bump.
GCC Administrator [Thu, 29 Dec 2011 00:18:19 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182718

13 years agoBackport PR 51623 change
Michael Meissner [Wed, 28 Dec 2011 20:53:30 +0000 (20:53 +0000)] 
Backport PR 51623 change

From-SVN: r182712

13 years agopr50396.c: Use dg-add-options ieee.
Uros Bizjak [Wed, 28 Dec 2011 09:30:16 +0000 (10:30 +0100)] 
pr50396.c: Use dg-add-options ieee.

* gcc.dg/torture/pr50396.c: Use dg-add-options ieee.

From-SVN: r182707

13 years agoDaily bump.
GCC Administrator [Wed, 28 Dec 2011 00:18:33 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182701

13 years agoDaily bump.
GCC Administrator [Tue, 27 Dec 2011 00:18:13 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182689

13 years agoDaily bump.
GCC Administrator [Mon, 26 Dec 2011 00:18:23 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182683

13 years agoDaily bump.
GCC Administrator [Sun, 25 Dec 2011 00:18:05 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182679

13 years agoDaily bump.
GCC Administrator [Sat, 24 Dec 2011 00:18:28 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182672

13 years agore PR rtl-optimization/50396 (SSE division by zero generates incorrect code with...
Richard Guenther [Fri, 23 Dec 2011 09:16:08 +0000 (09:16 +0000)] 
re PR rtl-optimization/50396 (SSE division by zero generates incorrect code with optimizations enabled)

2011-12-23  Richard Guenther  <rguenther@suse.de>

PR rtl-optimization/50396
* simplify-rtx.c (simplify_binary_operation_1): Properly
guard code that only works for integers.

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

From-SVN: r182654

13 years agoDaily bump.
GCC Administrator [Fri, 23 Dec 2011 00:18:14 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182643

13 years agobackport: [multiple changes]
Doug Kwan [Thu, 22 Dec 2011 19:36:46 +0000 (19:36 +0000)] 
backport: [multiple changes]

2011-12-22  Doug Kwan  <dougkwan@google.com>

Backport from mainline
2011-03-23  Julian Brown  <julian@codesourcery.com>

* expr.c (expand_expr_real_1): Only use BLKmode for volatile
accesses which are not naturally aligned.

2011-11-20  Joey Ye  <joey.ye@arm.com>

* expr.c (expand_expr_real_1): Correctly handle strict volatile
bitfield loads smaller than mode size.

2011-12-22  Doug Kwan  <dougkwan@google.com>

Backport from mainline
2011-11-20  Joey Ye  <joey.ye@arm.com>

* gcc.dg/volatile-bitfields-1.c: New.

From-SVN: r182635

13 years agore PR fortran/51310 (-finit-bla doesn't initialize *all* items of type bla to the...
Toon Moene [Thu, 22 Dec 2011 19:23:26 +0000 (19:23 +0000)] 
re PR fortran/51310 (-finit-bla doesn't initialize *all* items of type bla to the requested constant.)

2011-12-22  Toon Moene  <toon@moene.org>

PR fortran/51310
* resolve.c (build_default_init_expr): Allow non-allocatable,
non-compile-time-constant-shape arrays to have a default
initializer.
* invoke.texi: Delete the restriction on automatic arrays not
being initialized by -finit-<type>=<constant>.

From-SVN: r182634

13 years agore PR target/51643 (Incorrect code produced for tail-call of weak function with ...
Richard Earnshaw [Thu, 22 Dec 2011 17:32:58 +0000 (17:32 +0000)] 
re PR target/51643 (Incorrect code produced for tail-call of weak function with -O2/-O3 option)

PR target/51643
* arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
change.

From-SVN: r182629

13 years agore PR target/51643 (Incorrect code produced for tail-call of weak function with ...
Richard Earnshaw [Thu, 22 Dec 2011 14:28:39 +0000 (14:28 +0000)] 
re PR target/51643 (Incorrect code produced for tail-call of weak function with -O2/-O3 option)

PR target/51643
* arm.c (arm_function_ok_for_sibcall): Don't try to tailcall a
weak function on bare-metal EABI targets.

* gcc.target/arm/sibcall-2.c: New test.

From-SVN: r182622

13 years agoDaily bump.
GCC Administrator [Thu, 22 Dec 2011 00:18:33 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182612

13 years agore PR libstdc++/51626 ([C++0x] can't use C++98 allocators with -std=c++0x)
Jonathan Wakely [Wed, 21 Dec 2011 18:35:40 +0000 (18:35 +0000)] 
re PR libstdc++/51626 ([C++0x] can't use C++98 allocators with -std=c++0x)

PR libstdc++/51626
* include/bits/stl_uninitialized.h (_Construct_default_a_impl): Define
overloaded functions to conditionally use allocator::construct.
(_Construct_default_a): Define to dispatch to appropriate
_Construct_default_a_impl overload.
(__uninitialized_default_a, __uninitialized_default_n_a): Use
_Construct_default_a.
* testsuite/20_util/allocator/51626.cc: New.

From-SVN: r182600

13 years agobackport: re PR lto/41159 ([LTO] ICE in insert_value_copy_on_edge, at tree-outof...
Uros Bizjak [Wed, 21 Dec 2011 12:26:04 +0000 (13:26 +0100)] 
backport: re PR lto/41159 ([LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225)

Backport from mainline
2011-12-21  Richard Guenther  <rguenther@suse.de>

PR lto/41159
* tree-outof-ssa.c (insert_value_copy_on_edge): Use the
mode of the pseudo as destination mode.  Only assert that
is equal to the promoted mode of the decl if it is a REG.

From-SVN: r182580

13 years agolinux-unwind.h: Update copyright years.
Uros Bizjak [Wed, 21 Dec 2011 12:22:48 +0000 (13:22 +0100)] 
linux-unwind.h: Update copyright years.

* config/alpha/linux-unwind.h: Update copyright years.
(MD_FROB_UPDATE_CONTEXT): New define.
(alpha_frob_update_context): New function.

From-SVN: r182579

13 years agoDaily bump.
GCC Administrator [Wed, 21 Dec 2011 00:18:40 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182559

13 years agoDaily bump.
GCC Administrator [Tue, 20 Dec 2011 00:18:24 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182515

13 years agoremove_unsigned_integer_neg.cc: Adjust dg-error line numbers.
Jonathan Wakely [Mon, 19 Dec 2011 22:24:24 +0000 (22:24 +0000)] 
remove_unsigned_integer_neg.cc: Adjust dg-error line numbers.

* testsuite/ext/type_traits/remove_unsigned_integer_neg.cc: Adjust
dg-error line numbers.
* testsuite/ext/type_traits/add_unsigned_floating_neg.cc: Likewise.
* testsuite/ext/type_traits/remove_unsigned_floating_neg.cc: Likewise.
* testsuite/ext/type_traits/add_unsigned_integer_neg.cc: Likewise.

From-SVN: r182507

13 years agore PR tree-optimization/51583 (One more missing force_gimple_operand in SRA)
Martin Jambor [Mon, 19 Dec 2011 16:47:28 +0000 (17:47 +0100)] 
re PR tree-optimization/51583 (One more missing force_gimple_operand in SRA)

2011-12-19  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/51583
* tree-sra.c (load_assign_lhs_subreplacements): Call
force_gimple_operand_gsi when necessary also in case of no
corresponding replacement on the RHS.

* testsuite/gcc.dg/tree-ssa/pr51583.c: New test.

From-SVN: r182488

13 years agocmath: Update copyright years.
Jonathan Wakely [Mon, 19 Dec 2011 01:57:20 +0000 (01:57 +0000)] 
cmath: Update copyright years.

* include/c_global/cmath: Update copyright years.
* include/ext/type_traits.h: Likewise.

From-SVN: r182469

13 years agobackport: re PR libstdc++/51083 (TR1 [tr.c99.cmath.over] and C++11 [cmplx.over] overl...
Jonathan Wakely [Mon, 19 Dec 2011 01:49:08 +0000 (01:49 +0000)] 
backport: re PR libstdc++/51083 (TR1 [tr.c99.cmath.over] and C++11 [cmplx.over] overloads not constrained)

Backport from mainline
2011-11-13  Paolo Carlini  <paolo.carlini@oracle.com>

* include/c_global/cmath (atan2, pow): Simplify constraining on the
return type.

Backport from mainline
2011-11-12  Jonathan Wakely  <jwakely.gcc@gmail.com>

PR libstdc++/51083
* include/ext/type_traits.h (__promote): Only define __type member
for integral and floating point types, to prevent math functions
participating in overload resolution for other types.
(__promote_2, __promote_3, __promote_4): Use __promote in default
template argument values, so deduction only succeeds for integral and
floating point types.
* testsuite/26_numerics/cmath/51083.cc: New.
* testsuite/26_numerics/complex/51083.cc: New.
* testsuite/tr1/8_c_compatibility/cmath/51083.cc: New.
* testsuite/tr1/8_c_compatibility/complex/51083.cc: New.

From-SVN: r182468

13 years agore PR libstdc++/50862 (deadlock in std::condition_variable_any)
Jonathan Wakely [Mon, 19 Dec 2011 00:34:29 +0000 (00:34 +0000)] 
re PR libstdc++/50862 (deadlock in std::condition_variable_any)

PR libstdc++/50862
* include/std/condition_variable (condition_variable_any::wait): Fix
deadlock and ensure _Lock::lock() is called on exit.
* testsuite/30_threads/condition_variable_any/50862.cc: New.

From-SVN: r182467

13 years agoDaily bump.
GCC Administrator [Mon, 19 Dec 2011 00:18:06 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182465

13 years agore PR libstdc++/51540 (doxygen documentation for partial_sum misleading)
Jonathan Wakely [Sun, 18 Dec 2011 22:33:15 +0000 (22:33 +0000)] 
re PR libstdc++/51540 (doxygen documentation for partial_sum misleading)

PR libstdc++/51540
* include/bits/stl_numeric.h (partial_sum): Adjust doxygen comments.

From-SVN: r182461

13 years agoconfigure: Regenerate.
Eric Botcazou [Sun, 18 Dec 2011 10:03:44 +0000 (10:03 +0000)] 
configure: Regenerate.

* configure: Regenerate.
config/
* acx.m4 (Test for GNAT): Update comment and add quotes in final test.

From-SVN: r182458

13 years agoDaily bump.
GCC Administrator [Sun, 18 Dec 2011 00:18:09 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182450

13 years agofix rv-cast[34].C
Jason Merrill [Sat, 17 Dec 2011 13:52:10 +0000 (08:52 -0500)] 
fix rv-cast[34].C

From-SVN: r182437

13 years agore PR c++/51416 ([c++0x] [4.6/4.7 Regression] ICE with invalid use of auto)
Jason Merrill [Sat, 17 Dec 2011 13:52:02 +0000 (08:52 -0500)] 
re PR c++/51416 ([c++0x] [4.6/4.7 Regression] ICE with invalid use of auto)

PR c++/51416
* init.c (build_value_init_noctor): Check for incomplete type.

From-SVN: r182436

13 years agoDaily bump.
GCC Administrator [Sat, 17 Dec 2011 00:18:37 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182427

13 years agosparc.md (UNSPEC_FRAME_BLOCKAGE): New constant.
Eric Botcazou [Fri, 16 Dec 2011 23:38:34 +0000 (23:38 +0000)] 
sparc.md (UNSPEC_FRAME_BLOCKAGE): New constant.

* config/sparc/sparc.md (UNSPEC_FRAME_BLOCKAGE): New constant.
(frame_blockage): New expander.
(frame_blockage<P:mode>): New instruction.
* config/sparc/sparc.c (sparc_expand_prologue): When the sequence of
instructions establishing the frame isn't atomic, emit frame blockage.

From-SVN: r182421

13 years agore PR c++/51331 (bad code generated when explicitly calling auto-generated constructo...
Jason Merrill [Fri, 16 Dec 2011 22:59:27 +0000 (17:59 -0500)] 
re PR c++/51331 (bad code generated when explicitly calling auto-generated constructor of virtual base)

PR c++/51331
* class.c (convert_to_base_statically): Just call
build_simple_base_path.
(build_simple_base_path): Check field offset.

From-SVN: r182418

13 years agoDaily bump.
GCC Administrator [Fri, 16 Dec 2011 00:18:30 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182397

13 years agoDetect infinite recursion condition
H.J. Lu [Thu, 15 Dec 2011 23:50:32 +0000 (23:50 +0000)] 
Detect infinite recursion condition

gcc/

2011-12-15  H.J. Lu  <hongjiu.lu@intel.com>

Backport from mainline.
2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>

PR rtl-optimization/49720
* simplify-rtx.c (simplify_relational_operation_1): Detect
infinite recursion condition in "(eq/ne (plus x cst1) cst2)
simplifies to (eq/ne x (cst2 - cst1))" case.

gcc/testsuite/

2011-12-15  H.J. Lu  <hongjiu.lu@intel.com>

Backport from mainline.
2011-10-28  Chung-Lin Tang  <cltang@codesourcery.com>

PR rtl-optimization/49720
* g++.dg/torture/pr49720.C: New test.

From-SVN: r182394

13 years agoCheck __GLIBC__ when using __SIGRTMIN
H.J. Lu [Thu, 15 Dec 2011 22:20:41 +0000 (22:20 +0000)] 
Check __GLIBC__ when using __SIGRTMIN

2011-12-15  H.J. Lu  <hongjiu.lu@intel.com>

Backport from mainline
2011-12-14  H.J. Lu  <hongjiu.lu@intel.com>

* generic-morestack.c (__generic_morestack_set_initial_sp): Check
__GLIBC__ instead of __linux__ when using __SIGRTMIN.

From-SVN: r182393

13 years agobackport: freebsd.h (TARGET_ASM_FILE_END): Define.
Andreas Tobler [Thu, 15 Dec 2011 17:55:59 +0000 (18:55 +0100)] 
backport: freebsd.h (TARGET_ASM_FILE_END): Define.

2011-12-15  Andreas Tobler  <andreast@fgznet.ch>

Backport from mainline.
2011-12-15  Andreas Tobler  <andreast@fgznet.ch>

* config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.

From-SVN: r182383

13 years agore PR fortran/51550 (ICE in gfc_get_derived_type, at fortran/trans-types.c:2401)
Tobias Burnus [Thu, 15 Dec 2011 15:25:32 +0000 (16:25 +0100)] 
re PR fortran/51550 (ICE in gfc_get_derived_type, at fortran/trans-types.c:2401)

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

        PR fortran/51550
        PR fortran/47545
        PR fortran/49050
        PR fortran/51075
        * resolve.c (resolve_fl_derived0): Print not-implemented error
        for deferred-length character components.

From-SVN: r182373

13 years agoDaily bump.
GCC Administrator [Thu, 15 Dec 2011 00:18:10 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182351

13 years agore PR c++/51248 (ICE with pointer to enum)
Jason Merrill [Wed, 14 Dec 2011 22:33:39 +0000 (17:33 -0500)] 
re PR c++/51248 (ICE with pointer to enum)

PR c++/51248
* decl.c (copy_type_enum): Also update variants.
(finish_enum): Allow variants of complete enums.

From-SVN: r182348

13 years agore PR c++/51406 ([c++0x] Incorrect result of static_cast to rvalue reference to base...
Jason Merrill [Wed, 14 Dec 2011 16:03:07 +0000 (11:03 -0500)] 
re PR c++/51406 ([c++0x] Incorrect result of static_cast to rvalue reference to base class.)

PR c++/51406
PR c++/51161
* typeck.c (build_static_cast_1): Fix cast of lvalue to
base rvalue reference.

From-SVN: r182339

13 years agoDaily bump.
GCC Administrator [Wed, 14 Dec 2011 00:18:41 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182318

13 years agolto-streamer-out.c (write_symbol): Use proper 64-bit host type.
Eric Botcazou [Tue, 13 Dec 2011 22:03:05 +0000 (22:03 +0000)] 
lto-streamer-out.c (write_symbol): Use proper 64-bit host type.

* lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
* lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
* lto-streamer-in.c (lto_read_body): Likewise.
(lto_input_toplevel_asms): Likewise.
* lto-section-in.c (lto_create_simple_input_block): Likewise.
* lto-opts.c (lto_read_file_options): Likewise.
* ipa-prop.c (ipa_prop_read_section): Likewise.

* df.h (DF_NOTE): Fix typo in comment.
lto/
* lto.h (lto_parse_hex): Delete.
* lto.c (lto_read_decls): Use 'int' for offsets.
(lto_parse_hex): Make static and return proper 64-bit host type.
(lto_resolution_read): Use proper 64-bit host type.

From-SVN: r182311

13 years agoregmove.c (fixup_match_2): Only access call_used_regs with hard regs.
Andreas Krebbel [Tue, 13 Dec 2011 20:19:34 +0000 (20:19 +0000)] 
regmove.c (fixup_match_2): Only access call_used_regs with hard regs.

2011-12-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* regmove.c (fixup_match_2): Only access call_used_regs with hard
regs.

From-SVN: r182305

13 years agoDaily bump.
GCC Administrator [Tue, 13 Dec 2011 00:18:18 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182269

13 years agore PR testsuite/51511 (gcc.dg/pr45819.c fails on arm-linux-gnueabi due to PR50078...
Jakub Jelinek [Mon, 12 Dec 2011 19:44:22 +0000 (20:44 +0100)] 
re PR testsuite/51511 (gcc.dg/pr45819.c fails on arm-linux-gnueabi due to PR50078+PR51466 fix)

PR testsuite/51511
* gcc.dg/pr45819.c: Add -w to dg-options.

From-SVN: r182261

13 years agore PR middle-end/51510 (gcc for arm-linux-gnueabi ICEs on gcc.c-torture/execute/20050...
Jakub Jelinek [Mon, 12 Dec 2011 19:43:49 +0000 (20:43 +0100)] 
re PR middle-end/51510 (gcc for arm-linux-gnueabi ICEs on gcc.c-torture/execute/20050713-1.c due to PR50074+PR51323 fix)

PR middle-end/51510
* calls.c (internal_arg_pointer_based_exp_scan): Don't use
VEC_safe_grow_cleared if idx is smaller than VEC_length.

From-SVN: r182260

13 years agobackport: re PR tree-optimization/51485 (ICE in vectorizable_assignment)
Jakub Jelinek [Mon, 12 Dec 2011 19:43:06 +0000 (20:43 +0100)] 
backport: re PR tree-optimization/51485 (ICE in vectorizable_assignment)

Backported from mainline
2011-12-11  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/51485
* tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
DRs in call stmts.

* g++.dg/vect/pr51485.cc: New test.

From-SVN: r182259

13 years agore PR tree-optimization/50569 (unaligned memory accesses generated for memcpy)
Eric Botcazou [Mon, 12 Dec 2011 18:24:31 +0000 (18:24 +0000)] 
re PR tree-optimization/50569 (unaligned memory accesses generated for memcpy)

PR tree-optimization/50569
* tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
in the expression of MODEL instead of just the last one.

From-SVN: r182253

13 years agoDaily bump.
GCC Administrator [Mon, 12 Dec 2011 00:17:41 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r182216

13 years agore PR fortran/50923 (No warning if function return value is not set)
Tobias Burnus [Sun, 11 Dec 2011 21:37:55 +0000 (22:37 +0100)] 
re PR fortran/50923 (No warning if function return value is not set)

2011-12-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/50923
        * trans-decl.c (generate_local_decl): Set TREE_NO_WARNING only
        if the front end has printed a warning.
        (gfc_generate_function_code): Fix unset-result warning.

2011-12-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/50923
        * gfortran.dg/warn_function_without_result_2.f90: New.

From-SVN: r182213

13 years agore PR fortran/51338 (seg fault in gfc_dep_compare_expr with -O2)
Thomas Koenig [Sun, 11 Dec 2011 20:03:43 +0000 (20:03 +0000)] 
re PR fortran/51338 (seg fault in gfc_dep_compare_expr with -O2)

2011-12-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/51338
Backport from trunk
* dependency.c (are_identical_variables):  Handle case where
end fields of substring references are NULL.

2011-12-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/51338
Backport from trunk
* gfortran.dg/assumed_charlen_substring_1.f90:  New test.

From-SVN: r182209

13 years agoDaily bump.
GCC Administrator [Sun, 11 Dec 2011 00:18:19 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182197

13 years agoDaily bump.
GCC Administrator [Sat, 10 Dec 2011 00:18:13 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182182

13 years agoBackport 51469
Michael Meissner [Fri, 9 Dec 2011 19:11:01 +0000 (19:11 +0000)] 
Backport 51469

From-SVN: r182172

13 years agobackport: re PR tree-optimization/51466 (ICE in gimple_rhs_has_side_effects,)
Jakub Jelinek [Fri, 9 Dec 2011 11:32:35 +0000 (12:32 +0100)] 
backport: re PR tree-optimization/51466 (ICE in gimple_rhs_has_side_effects,)

Backport from mainline
2011-12-08  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/51466
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
TREE_SIDE_EFFECTS.

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

2011-11-28  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/50078
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.

* gcc.dg/pr50078.c: New test.

From-SVN: r182157

13 years agobackport: re PR target/51408 (Miscompilation in arm.md:*minmax_arithsi)
Kazu Hirata [Fri, 9 Dec 2011 01:27:01 +0000 (01:27 +0000)] 
backport: re PR target/51408 (Miscompilation in arm.md:*minmax_arithsi)

gcc/
Backport from mainline:

2011-12-05  Kazu Hirata  <kazu@codesourcery.com>

PR target/51408
* config/arm/arm.md (*minmax_arithsi): Always require the else
clause in the MINUS case.

testsuite/
Backport from mainline:

2011-12-05  Kazu Hirata  <kazu@codesourcery.com>

PR target/51408
* gcc.dg/pr51408.c: New.

From-SVN: r182149

13 years agoDaily bump.
GCC Administrator [Fri, 9 Dec 2011 00:18:03 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182147

13 years agore PR fortran/51310 (-finit-bla doesn't initialize *all* items of type bla to the...
Toon Moene [Thu, 8 Dec 2011 20:58:23 +0000 (20:58 +0000)] 
re PR fortran/51310 (-finit-bla doesn't initialize *all* items of type bla to the requested constant.)

2011-12-08  Toon Moene  <toon@moene.org>

PR fortran/51310
* invoke.texi: Itemize the cases for which
-finit-<type>=<constant> doesn't work.

From-SVN: r182138

13 years agore PR fortran/51448 (Compiler crash when assigning floating point values of different...
Tobias Burnus [Thu, 8 Dec 2011 20:54:57 +0000 (21:54 +0100)] 
re PR fortran/51448 (Compiler crash when assigning floating point values of different kinds)

2011-12-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51448
        * fortran/trans-array.c (get_std_lbound): Fix handling of
        conversion functions.

2011-12-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51448
        * gfortran.dg/realloc_on_assign_8.f90: New.

From-SVN: r182137

13 years agomovdi-rex64.c: Remove unnecessary unused label.
Teresa Johnson [Thu, 8 Dec 2011 17:01:49 +0000 (17:01 +0000)] 
movdi-rex64.c: Remove unnecessary unused label.

        * gcc.target/i386/movdi-rex64.c: Remove unnecessary
        unused label.

From-SVN: r182124

13 years agomovdi-rex64.c: Remove unnecessary -Wwrite-strings option.
Teresa Johnson [Thu, 8 Dec 2011 16:45:58 +0000 (16:45 +0000)] 
movdi-rex64.c: Remove unnecessary -Wwrite-strings option.

        * gcc.target/i386/movdi-rex64.c: Remove unnecessary
        -Wwrite-strings option.

From-SVN: r182122

13 years agobackport: i386.md (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for...
Teresa Johnson [Thu, 8 Dec 2011 15:44:14 +0000 (15:44 +0000)] 
backport: i386.md (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for operand 0, alternative 4.

        Backport from mainline:

        2011-08-05  Uros Bizjak  <ubizjak@gmail.com>

        * config/i386/i386.md (*movdi_internal_rex64): Use "!o" constraint
        instead of "!m" for operand 0, alternative 4.
        (*movdf_internal_rex64): Ditto for operand 0, alernative 6.

        * gcc.target/i386/movdi-rex64.c: New.

From-SVN: r182120

13 years agobackport: re PR debug/51410 (duplicate variable DIE)
Jakub Jelinek [Thu, 8 Dec 2011 13:39:34 +0000 (14:39 +0100)] 
backport: re PR debug/51410 (duplicate variable DIE)

Backport from mainline
2011-12-05  Jakub Jelinek  <jakub@redhat.com>

PR debug/51410
* c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
for debug info if scope is file_scope.

* gcc.dg/debug/dwarf2/pr51410.c: New test.

From-SVN: r182114

13 years agobackport: re PR c/51339 (ICE: in convert_move, at expr.c:326 with -fopenmp and parall...
Jakub Jelinek [Thu, 8 Dec 2011 13:37:44 +0000 (14:37 +0100)] 
backport: re PR c/51339 (ICE: in convert_move, at expr.c:326 with -fopenmp and parallel for)

Backport from mainline
2011-12-05  Jakub Jelinek  <jakub@redhat.com>

PR c/51339
* c-decl.c (c_finish_incomplete_decl, finish_decl): Call
relayout_decl instead of layout_decl.

* gcc.dg/gomp/pr51339.c: New test.

From-SVN: r182113

13 years agobackport: re PR middle-end/51323 (g++ confuses this with function argument in optimiz...
Jakub Jelinek [Thu, 8 Dec 2011 13:36:40 +0000 (14:36 +0100)] 
backport: re PR middle-end/51323 (g++ confuses this with function argument in optimized call)

Backport from mainline
2011-12-05  Jakub Jelinek  <jakub@redhat.com>
    Eric Botcazou  <ebotcazou@adacore.com>

PR middle-end/51323
PR middle-end/50074
* calls.c (internal_arg_pointer_exp_state): New variable.
(internal_arg_pointer_based_exp_1,
internal_arg_pointer_exp_scan): New functions.
(internal_arg_pointer_based_exp): New function.
(mem_overlaps_already_clobbered_arg_p): Use it.
(expand_call): Free internal_arg_pointer_exp_state.cache vector
and clear internal_arg_pointer_exp_state.scan_start.

2011-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>

PR middle-end/50074
* calls.c (mem_overlaps_already_clobbered_arg_p):
Return false if no outgoing arguments have been stored so far.

2011-12-05  Jakub Jelinek  <jakub@redhat.com>
    Eric Botcazou  <ebotcazou@adacore.com>

PR middle-end/51323
PR middle-end/50074
* gcc.c-torture/execute/pr51323.c: New test.

From-SVN: r182112

13 years agobackport: re PR rtl-optimization/48721 (ICE: verify_flow_info failed: missing barrier...
Jakub Jelinek [Thu, 8 Dec 2011 13:33:58 +0000 (14:33 +0100)] 
backport: re PR rtl-optimization/48721 (ICE: verify_flow_info failed: missing barrier after block 6 with -foptimize-sibling-calls -fsched2-use-superblocks)

Backport from mainline
2011-11-30  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/48721
* sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
reg_pending_barrier to TRUE_BARRIER.

* gcc.target/i386/pr48721.c: New test.

From-SVN: r182111

13 years agoFix date
Eric Botcazou [Thu, 8 Dec 2011 09:13:04 +0000 (09:13 +0000)] 
Fix date

From-SVN: r182104

13 years agore PR tree-optimization/51315 (unaligned memory accesses generated with -ftree-sra)
Eric Botcazou [Thu, 8 Dec 2011 09:12:12 +0000 (09:12 +0000)] 
re PR tree-optimization/51315 (unaligned memory accesses generated with -ftree-sra)

PR tree-optimization/51315
* tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
(tree_non_aligned_mem_p): ...this.  Add ALIGN parameter.  Look into
MEM_REFs and use get_object_or_type_alignment for them.
(build_accesses_from_assign): Adjust for above change.
(access_precludes_ipa_sra_p): Likewise.
ada/
Backport from mainline
2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>

* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not promote
the alignment if this doesn't prevent BLKmode access to the object.

From-SVN: r182103

13 years agoDaily bump.
GCC Administrator [Thu, 8 Dec 2011 00:18:31 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r182095