]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
13 years agors6000.md (call_value_indirect_aix32): Fix typo in mode of operand[4].
David Edelsohn [Wed, 18 Jan 2012 19:14:48 +0000 (19:14 +0000)] 
rs6000.md (call_value_indirect_aix32): Fix typo in mode of operand[4].

        * config/rs6000/rs6000.md (call_value_indirect_aix32): Fix typo
        in mode of operand[4].

From-SVN: r183282

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

From-SVN: r183267

13 years ago* gcc.dg/pr51821.c (dg-options): Add -std=c99.
Uros Bizjak [Tue, 17 Jan 2012 07:31:18 +0000 (08:31 +0100)] 
* gcc.dg/pr51821.c (dg-options): Add -std=c99.

From-SVN: r183234

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

From-SVN: r183227

13 years agore PR c++/51854 (ICE in mangle.c with literal of complex floating type)
Jakub Jelinek [Mon, 16 Jan 2012 21:49:58 +0000 (16:49 -0500)] 
re PR c++/51854 (ICE in mangle.c with literal of complex floating type)

PR c++/51854
* mangle.c (write_template_arg_literal): Sorry instead of aborting.

From-SVN: r183224

13 years agore PR c++/51868 (Crash when generating the move constructor for a class with a bit...
Jason Merrill [Mon, 16 Jan 2012 21:34:26 +0000 (16:34 -0500)] 
re PR c++/51868 (Crash when generating the move constructor for a class with a bit field)

PR c++/51868
* typeck.c (build_static_cast_1): Handle bit-fields properly.

From-SVN: r183223

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

From-SVN: r183203

13 years agore PR rtl-optimization/51821 (64bit > 32bit conversion produces incorrect results...
Uros Bizjak [Sun, 15 Jan 2012 19:35:15 +0000 (20:35 +0100)] 
re PR rtl-optimization/51821 (64bit > 32bit conversion produces incorrect results with optimizations)

PR rtl-optimization/51821
* recog.c (peep2_find_free_register): Determine clobbered registers
from insn pattern.

testsuite/ChangeLog:

PR rtl-optimization/51821
* gcc.dg/pr51821.c: New test.

From-SVN: r183198

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

From-SVN: r183189

13 years agore PR fortran/51800 (Error: Automatic array 'dummy' at (1) cannot have an initializer)
Tobias Burnus [Sat, 14 Jan 2012 13:28:05 +0000 (14:28 +0100)] 
re PR fortran/51800 (Error: Automatic array 'dummy' at (1) cannot have an initializer)

2012-01-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51800
        * resolve.c (build_default_init_expr): Also initialize
        nonconstant-length strings with -finit-character=<n>.

2012-01-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51800
        * gfortran.dg/init_flag_8.f90: New.
        * gfortran.dg/init_flag_9.f90: New.

From-SVN: r183181

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

From-SVN: r183176

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

From-SVN: r183147

13 years agobackport: re PR target/51756 (wrong warning: uninitialized variable put into program...
Georg-Johann Lay [Thu, 12 Jan 2012 17:23:32 +0000 (17:23 +0000)] 
backport: re PR target/51756 (wrong warning: uninitialized variable put into program memory area)

Backport from mainline r183129
PR target/51756
* config/avr/avr.c (avr_encode_section_info): Test for absence of
DECL_EXTERNAL when checking for initializers of progmem variables.

From-SVN: r183131

13 years agobackport: arm.md (mov_notscc): Use MVN for false condition.
Matthew Gretton-Dann [Thu, 12 Jan 2012 14:45:00 +0000 (14:45 +0000)] 
backport: arm.md (mov_notscc): Use MVN for false condition.

Backport from mainline
2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>

* gcc/config/arm/arm.md (mov_notscc): Use MVN for false condition.
* gcc/testsuite/testsuite/gcc.c-torture/execute/20120110-1.c: New testcase.

From-SVN: r183127

13 years agoi386.md (*zero_extendsidi2_rex64): Correct movl template.
Uros Bizjak [Thu, 12 Jan 2012 10:33:42 +0000 (11:33 +0100)] 
i386.md (*zero_extendsidi2_rex64): Correct movl template.

* config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
(x86_shift<mode>_adj_1): Remove operand constraint from operand 3.

From-SVN: r183125

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

From-SVN: r183116

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

From-SVN: r183084

13 years agoRevert:
Joseph Myers [Tue, 10 Jan 2012 16:55:40 +0000 (16:55 +0000)] 
Revert:

2008-09-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>

PR rtl-opt/37451
* loop-doloop.c (doloop_modify): New argument zero_extend_p and
zero extend count after the correction to it is done.
(doloop_optimize): Update call to doloop_modify, don't zero extend
count before call.

2008-11-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>

PR rtl-opt/37782
* loop-doloop.c (doloop_modify): Add from_mode argument that says what
mode count is in.
(doloop_optimize): Update call to doloop_modify.

testsuite:
* gcc.c-torture/execute/doloop-1.c,
gcc.c-torture/execute/doloop-2.c: New tests.

From-SVN: r183071

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

From-SVN: r183046

13 years agomips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
Richard Sandiford [Mon, 9 Jan 2012 22:09:53 +0000 (22:09 +0000)] 
mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.

gcc/
* config/mips/mips.md (loadgp_newabi_<mode>): Add missing
earlyclobber.

From-SVN: r183035

13 years agore PR tree-optimization/51759 (miscompile writes past end of bitfield)
Martin Jambor [Mon, 9 Jan 2012 20:03:08 +0000 (21:03 +0100)] 
re PR tree-optimization/51759 (miscompile writes past end of bitfield)

2012-01-09  Martin Jambor  <mjambor@suse.cz>

        PR tree-optimization/51759
* g++.dg/ipa/pr51759.C: New test.

From-SVN: r183031

13 years ago* gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
Eric Botcazou [Mon, 9 Jan 2012 19:31:14 +0000 (19:31 +0000)] 
* gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.

From-SVN: r183026

13 years agosol2-unwind.h (sparc64_is_sighandler): Check that the purported sigacthandler address...
Eric Botcazou [Mon, 9 Jan 2012 18:21:52 +0000 (18:21 +0000)] 
sol2-unwind.h (sparc64_is_sighandler): Check that the purported sigacthandler address isn't null before dereferencing it.

* config/sparc/sol2-unwind.h (sparc64_is_sighandler): Check that the
purported sigacthandler address isn't null before dereferencing it.
(sparc_is_sighandler): Likewise.

From-SVN: r183021

13 years agobackport: re PR rtl-optimization/38644 (Optimization flag -O1 -fschedule-insns2 cause...
Ramana Radhakrishnan [Mon, 9 Jan 2012 16:55:16 +0000 (16:55 +0000)] 
backport: re PR rtl-optimization/38644 (Optimization flag -O1 -fschedule-insns2 causes wrong code)

2012-01-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

Backport from mainline
2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>

PR rtl-optimization/38644
* config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
for epilogue having stack adjustment.

2012-01-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

Backport from mainline:
2011-11-04  Jiangning Liu  <jiangning.liu@arm.com>

PR rtl-optimization/38644
* gcc.target/arm/stack-red-zone.c: New.

From-SVN: r183019

13 years agobackport: headmerge-2.c: Adjust scan pattern.
Andrew Stubbs [Mon, 9 Jan 2012 11:44:22 +0000 (11:44 +0000)] 
backport: headmerge-2.c: Adjust scan pattern.

2012-01-09  Andrew Stubbs  <ams@codesourcery.com>

Backport from mainline:

2012-01-06  Andrew Stubbs  <ams@codesourcery.com>

* gcc.target/arm/headmerge-2.c: Adjust scan pattern.

From-SVN: r183009

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