]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
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

13 years agoDaily bump.
GCC Administrator [Wed, 7 Dec 2011 00:17:58 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r182071

13 years agore PR fortran/51435 (Bad association status after null() of derived type component)
Tobias Burnus [Tue, 6 Dec 2011 19:26:44 +0000 (20:26 +0100)] 
re PR fortran/51435 (Bad association status after null() of derived type component)

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

        PR fortran/51435
        * expr.c (gfc_has_default_initializer): Fix handling of
        DT with initialized pointer components.

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

        PR fortran/51435
        * gfortran.dg/default_initialization_5.f90: New.

From-SVN: r182062

13 years agore PR tree-optimization/50622 (ICE: verify_gimple failed for std::complex<double>)
Martin Jambor [Tue, 6 Dec 2011 17:16:19 +0000 (18:16 +0100)] 
re PR tree-optimization/50622 (ICE: verify_gimple failed for std::complex<double>)

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

PR tree-optimization/50622
* tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
if both lacc and racc are grp_partial_lhs.

* testsuite/g++.dg/tree-ssa/pr50622.C: New test.

From-SVN: r182057

13 years agors6000.c (darwin_rs6000_override_options): Initialize rs6000_current_abi.
Iain Sandoe [Tue, 6 Dec 2011 12:25:51 +0000 (12:25 +0000)] 
rs6000.c (darwin_rs6000_override_options): Initialize rs6000_current_abi.

gcc:

* config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
rs6000_current_abi.

From-SVN: r182046

13 years agore PR target/50906 (e500 exception unwinding under "-Os" causes SIGSEGV)
Alan Modra [Tue, 6 Dec 2011 03:47:37 +0000 (14:17 +1030)] 
re PR target/50906 (e500 exception unwinding under "-Os" causes SIGSEGV)

PR target/50906
* config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
Do not mark r11 setup as frame-related.  Pass correct offset to
rs6000_emit_savres_rtx.  Correct out-of-line rs6000_frame_related
arguments.  Correct sp_offset.  Remove "offset" fudge from
in-line rs6000_frame_related call.  Rename misleading variable.
Fix comments and whitespace.  Tidy some expressions.
(rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
to r11 in out-of-line case.  Correct sp_offset.  Pass correct
offset to rs6000_emit_savres_rtx.  Rename misleading variable.
Fix comments and whitespace.  Tidy some expressions.
(rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
adjustment when !saving_GPRs_inline.  Correct register mode
used in address calcs.
(rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
!restoring_GPRs_inline.

From-SVN: r182040

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

From-SVN: r182036

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

From-SVN: r181998

13 years agore PR target/51393 (Wrong parameter type for _mm256_insert_epi64 in avxintrin.h)
Uros Bizjak [Sun, 4 Dec 2011 13:23:48 +0000 (14:23 +0100)] 
re PR target/51393 (Wrong parameter type for _mm256_insert_epi64 in avxintrin.h)

PR target/51393
* config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
parameter as long long.

testsuite/ChangeLog:

PR target/51393
* gcc.target/i386/pr51393.c: New test.

From-SVN: r181988

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

From-SVN: r181978

13 years agore PR fortran/50684 (Incorrect error for move_alloc on element inside intent(in)...
Tobias Burnus [Sat, 3 Dec 2011 12:57:38 +0000 (13:57 +0100)] 
re PR fortran/50684 (Incorrect error for move_alloc on element inside intent(in) pointer)

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

        PR fortran/50684
        * check.c (variable_check): Fix intent(in) check.

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

        PR fortran/50684
        * gfortran.dg/move_alloc_8.f90: New.

From-SVN: r181969

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

From-SVN: r181958

13 years agore PR target/51002 (SP_H register is used even on targets that do not have it (eg...
Georg-Johann Lay [Fri, 2 Dec 2011 19:14:15 +0000 (19:14 +0000)] 
re PR target/51002 (SP_H register is used even on targets that do not have it (eg attiny26))

PR target/51002
PR target/51345
* config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
Enclose parts using __SP_H__ in !defined (__AVR_HAVE_8BIT_SP__).
Add FIXME comments.
* config/avr/avr.md (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Set
insn condition to !AVR_HAVE_8BIT_SP.
* config/avr/avr.c (output_movhi): "clr%B0" instead of "in
%B0,__SP_H__" if AVR_HAVE_8BIT_SP.
(avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
* config/avr/avr-devices.c (avr_mcu_types): ATtiny4313 and
AT86RF401 have a 16-bit SP (their manual is bogus).

From-SVN: r181936

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

From-SVN: r181900

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

From-SVN: r181866

13 years agoDaily bump.
GCC Administrator [Wed, 30 Nov 2011 00:18:45 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r181828

13 years agoconfig.rpath (ld_shlibs): Fix detection of FreeBSD-10 and up.
Andreas Tobler [Tue, 29 Nov 2011 20:13:15 +0000 (21:13 +0100)] 
config.rpath (ld_shlibs): Fix detection of FreeBSD-10 and up.

2011-11-29  Andreas Tobler  <andreast@fgznet.ch>

* config.rpath (ld_shlibs): Fix detection of FreeBSD-10 and up.
(libname_spec): Likewise.
* configure: Regenerate with autoconf -I ../../.

From-SVN: r181817

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

From-SVN: r181792

13 years agoDaily bump.
GCC Administrator [Mon, 28 Nov 2011 00:18:50 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r181769

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

From-SVN: r181753

13 years agoDaily bump.
GCC Administrator [Sat, 26 Nov 2011 00:17:49 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r181734

13 years agore PR fortran/50408 (ICE in transfer_expr)
Tobias Burnus [Fri, 25 Nov 2011 17:18:05 +0000 (18:18 +0100)] 
re PR fortran/50408 (ICE in transfer_expr)

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

        PR fortran/50408
        * trans-decl.c (gfc_get_module_backend_decl): Also copy
        ts.u.derived from the gsym if the ts.type is BT_CLASS.
        (gfc_get_extern_function_decl): Copy also the backend_decl
        for the symbol's ts.u.{derived,cl} from the gsym.
        * trans-types.c (gfc_copy_dt_decls_ifequal): Directly
        return if "from" and "to" are the same.

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

        PR fortran/50408
        * gfortran.dg/whole_file_35.f90: New.

From-SVN: r181726

13 years agobackport: re PR debug/48190 ([regression?] Huge memory use while compiling qemu-0...
Richard Sandiford [Fri, 25 Nov 2011 10:41:17 +0000 (10:41 +0000)] 
backport: re PR debug/48190 ([regression?] Huge memory use while compiling qemu-0.4.0)

gcc/
Backport from mainline:

2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>

PR debug/48190
* dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
(cached_dw_loc_list_def): New structure.
(cached_dw_loc_list): New typedef.
(cached_dw_loc_list_table): New variable.
(cached_dw_loc_list_table_hash): New function.
(cached_dw_loc_list_table_eq): Likewise.
(add_location_or_const_value_attribute): Take a bool cache_p.
Cache the list when the parameter is true.
(gen_formal_parameter_die): Update caller.
(gen_variable_die): Likewise.
(dwarf2out_finish): Likewise.
(dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
while generating debug info for the decl.
(dwarf2out_function_decl): Clear cached_dw_loc_list_table.
(dwarf2out_init): Initialize cached_dw_loc_list_table.
(resolve_addr): Cache the result of resolving a chain of
location lists.

From-SVN: r181716

13 years agore PR target/51287 (252.eon compfail with -march=atom)
Enkovich Ilya [Fri, 25 Nov 2011 10:29:42 +0000 (10:29 +0000)] 
re PR target/51287 (252.eon compfail with -march=atom)

2011-11-24  Enkovich Ilya  <ilya.enkovich@intel.com>

       PR target/51287
       * i386.c (distance_non_agu_define): Fix insn attr check.

From-SVN: r181714

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

From-SVN: r181705

13 years agore PR fortran/51218 (Potential optimization bug due to implicit_pure?)
Tobias Burnus [Thu, 24 Nov 2011 20:44:28 +0000 (21:44 +0100)] 
re PR fortran/51218 (Potential optimization bug due to implicit_pure?)

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

        PR fortran/51218
        * resolve.c (pure_subroutine): If called subroutine is
        impure, unset implicit_pure.
        (resolve_function): Move impure check to simplify code.

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

        PR fortran/51218
        * gfortran.dg/implicit_pure_1.f90: New.

From-SVN: r181699

13 years agore PR bootstrap/50888 (Bootstrap failure in libjava against latest git glibc)
Jakub Jelinek [Thu, 24 Nov 2011 07:21:39 +0000 (08:21 +0100)] 
re PR bootstrap/50888 (Bootstrap failure in libjava against latest git glibc)

PR bootstrap/50888
* prims.cc: Don't include ctype.h.
(c_isspace): Define.
(next_property_key, next_property_value): Use it instead
of isspace.

From-SVN: r181686

13 years agoDaily bump.
GCC Administrator [Thu, 24 Nov 2011 00:17:58 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r181682

13 years ago* config.host (*-*-freebsd[12], *-*-freebsd[12].*,
Gerald Pfeifer [Wed, 23 Nov 2011 22:15:54 +0000 (22:15 +0000)] 
* config.host (*-*-freebsd[12], *-*-freebsd[12].*,

*-*-freebsd*aout*): Remove.

From-SVN: r181679

13 years agoupdate_web_docs_svn: Make $DOCSDIR group writable after creating it.
Gerald Pfeifer [Wed, 23 Nov 2011 21:24:48 +0000 (21:24 +0000)] 
update_web_docs_svn: Make $DOCSDIR group writable after creating it.

* update_web_docs_svn: Make $DOCSDIR group writable after
creating it.

From-SVN: r181678

13 years agoDaily bump.
GCC Administrator [Wed, 23 Nov 2011 00:17:26 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r181647

13 years agore PR c++/51265 (ICE in finish_decltype_type, at cp/semantics.c:5244)
Paolo Carlini [Tue, 22 Nov 2011 21:37:24 +0000 (21:37 +0000)] 
re PR c++/51265 (ICE in finish_decltype_type, at cp/semantics.c:5244)

/cp
2011-11-22  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51265
* semantics.c (finish_decltype_type): Handle PTRMEM_CST.

/testsuite
2011-11-22  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51265
* g++.dg/cpp0x/decltype36.C: New.

From-SVN: r181641

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

From-SVN: r181605

13 years agobackport: re PR target/50678 (FAIL: c52104y on x86_64-apple-darwin10)
Iain Sandoe [Mon, 21 Nov 2011 09:04:08 +0000 (09:04 +0000)] 
backport: re PR target/50678 (FAIL: c52104y on x86_64-apple-darwin10)

gcc/ada:

Backport from mainline r181474
PR target/50678
* init.c (__gnat_error_handler) [Darwin]: Move work-around to the
bug filed as radar #10302855 from __gnat_error_handler ...
... to (__gnat_adjust_context_for_raise) [Darwin]: New.
(HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE) [Darwin]: Define.
(__gnat_error_handler) [Darwin]: Use __gnat_adjust_context_for_raise.

From-SVN: r181553

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

From-SVN: r181542

13 years agoAdditional fixes for FreeBSD-10 build:
Andreas Tobler [Sun, 20 Nov 2011 21:24:07 +0000 (22:24 +0100)] 
Additional fixes for FreeBSD-10 build:

2011-11-20  Andreas Tobler  <andreast@fgznet.ch>

Additional fixes for FreeBSD-10 build:

/: * libtool.m4: Additional FreeBSD 10 fixes.

boehm-gc/: * configure: Regenerate.
gcc/: * configure: Regenerate.
libffi/: * configure: Regenerate.
libgfortran/: * configure: Regenerate.
libgomp/: * configure: Regenerate.
libjava/: * configure.ac: Fix some more FreeBSD 10 issues..
* configure: Regenerate.
libjava/libltdl/: * acinclude.m4: Additional FreeBSD 10 fixes.
* configure: Regenerate.
libmudflap/: * configure: Regenerate.
libobjc/: * configure: Regenerate.
libquadmath/: * configure: Regenerate.
libssp/: * configure: Regenerate.
libstdc++-v3/: * configure: Regenerate.
lto-plugin/: * configure: Regenerate.
zlib/: * configure: Regenerate.

From-SVN: r181536

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

From-SVN: r181520

13 years agore PR rtl-optimization/51187 (miscompilation of genrecog.c at -O2 for --target=avr)
Eric Botcazou [Sat, 19 Nov 2011 20:39:10 +0000 (20:39 +0000)] 
re PR rtl-optimization/51187 (miscompilation of genrecog.c at -O2 for --target=avr)

PR rtl-optimization/51187
* reorg.c (relax_delay_slots): Do not consider a jump useless if there
is a barrier between the jump and its target label.

From-SVN: r181514

13 years agore PR target/50493 (ICE in neon_disambiguate_copy, at config/arm/arm.c:20388)
Richard Earnshaw [Sat, 19 Nov 2011 16:47:02 +0000 (16:47 +0000)] 
re PR target/50493 (ICE in neon_disambiguate_copy, at config/arm/arm.c:20388)

PR target/50493
* arm.c (neon_disambiguate_copy): Correctly handle partial overlap
of src and dest operands.

From-SVN: r181510