]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
12 years agore PR bootstrap/56258 (Please upgrade doc/*.texi to the latest texinfo package(s))
Jack Howarth [Wed, 20 Mar 2013 11:06:35 +0000 (11:06 +0000)] 
re PR bootstrap/56258 (Please upgrade doc/*.texi to the latest texinfo package(s))

2013-03-20  Jack Howarth  <howarth@bromo.med.uc.edu>

PR bootstrap/56258
* doc/generic.texi (POINTER_PLUS_EXPR): Use @item instead of @itemx.
(PLUS_EXPR): Likewise.
* doc/cppopts.texi (--help): Likewise.
* doc/invoke.texi (-fenable-@var{kind}-@var{pass}): Likewise.
(-fdump-rtl-cprop_hardreg): Likewise.
(-fdump-rtl-csa): Likewise.
(-fdump-rtl-dce): Likewise.
(-fdump-rtl-dbr): Likewise.
(-fdump-rtl-into_cfglayout): Likewise.
(-fdump-rtl-outof_cfglayout): Likewise.

From-SVN: r196819

12 years agoDaily bump.
GCC Administrator [Wed, 20 Mar 2013 00:16:34 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r196802

12 years agoDaily bump.
GCC Administrator [Tue, 19 Mar 2013 09:20:26 +0000 (09:20 +0000)] 
Daily bump.

From-SVN: r196786

12 years agore PR target/56470 (ICE output_operand: invalid shift operand)
Richard Earnshaw [Mon, 18 Mar 2013 11:52:08 +0000 (11:52 +0000)] 
re PR target/56470 (ICE output_operand: invalid shift operand)

PR target/56470
* arm.c (shift_op): Validate RTL pattern on the fly.
(arm_print_operand, case 'S'): Don't use shift_operator to validate
the RTL.

From-SVN: r196780

12 years agoDaily bump.
GCC Administrator [Mon, 18 Mar 2013 00:20:52 +0000 (00:20 +0000)] 
Daily bump.

From-SVN: r196760

12 years agoDaily bump.
GCC Administrator [Sun, 17 Mar 2013 00:19:41 +0000 (00:19 +0000)] 
Daily bump.

From-SVN: r196719

12 years agore PR libstdc++/56468 (Clang exposes bug with unexpected forward-declaration of type_...
Jonathan Wakely [Sat, 16 Mar 2013 20:22:40 +0000 (20:22 +0000)] 
re PR libstdc++/56468 (Clang exposes bug with unexpected forward-declaration of type_info)

PR libstdc++/56468
* libsupc++/exception_ptr.h (type_info): Declare.

From-SVN: r196711

12 years agore PR libstdc++/56002 ([C++11] allow generic locks to be used without requiring platt...
Jonathan Wakely [Sat, 16 Mar 2013 20:22:30 +0000 (20:22 +0000)] 
re PR libstdc++/56002 ([C++11] allow generic locks to be used without requiring plattform support for threads)

PR libstdc++/56002
* include/std/mutex (lock_guard, unique_lock, lock): Define without
depending on _GLIBCXX_HAS_GTHREADS.
* testsuite/30_threads/lock_guard/cons/1.cc: Run on all targets.

From-SVN: r196710

12 years agoDaily bump.
GCC Administrator [Sat, 16 Mar 2013 00:17:29 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r196693

12 years agore PR fortran/56615 (Wrong code with TRANSFER of arrays of character with stride -1)
Tobias Burnus [Fri, 15 Mar 2013 12:05:45 +0000 (13:05 +0100)] 
re PR fortran/56615 (Wrong code with TRANSFER of arrays of character with stride -1)

2013-03-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56615
        * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Pack arrays
        if they are not simply contiguous.

2013-03-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56615
        * gfortran.dg/transfer_intrinsic_5.f90: New.

From-SVN: r196676

12 years agoDaily bump.
GCC Administrator [Fri, 15 Mar 2013 00:18:35 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196668

12 years agore PR target/56351 (ARM Big-Endian: storing local double to packed variable causes...
Seth LaForge [Thu, 14 Mar 2013 18:52:18 +0000 (18:52 +0000)] 
re PR target/56351 (ARM Big-Endian: storing local double to packed variable causes corruption)

PR target/56351
Backport from mainline
2012-10-22  Julian Brown  <julian@codesourcery.com>

* config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing
VFP D registers in big-endian mode.

From-SVN: r196664

12 years agore PR c++/56614 (error: default argument 'std::vector<E>(std::initializer_list<E...
Jason Merrill [Thu, 14 Mar 2013 17:34:55 +0000 (13:34 -0400)] 
re PR c++/56614 (error: default argument 'std::vector<E>(std::initializer_list<E>{((const E*)(& ._0)), 1u}, (*(const std::allocator<E>*)(& std::allocator<E>())))' uses local variable '._0')

PR c++/56614
* decl.c (local_variable_p_walkfn): Check DECL_ARTIFICIAL again.

From-SVN: r196662

12 years agore PR c++/56403 (internal compiler error: in build_zero_init_1, at cp/init.c:279)
Jakub Jelinek [Thu, 14 Mar 2013 16:12:37 +0000 (17:12 +0100)] 
re PR c++/56403 (internal compiler error: in build_zero_init_1, at cp/init.c:279)

PR c++/56403
* init.c (build_zero_init_1): Use RECORD_OR_UNION_CODE_P instead
of CLASS_TYPE_P.

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

From-SVN: r196661

12 years agoDaily bump.
GCC Administrator [Thu, 14 Mar 2013 00:17:26 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r196644

12 years agore PR fortran/56575 (An invalid OO code causes ICE)
Paul Thomas [Wed, 13 Mar 2013 05:32:07 +0000 (05:32 +0000)] 
re PR fortran/56575 (An invalid OO code causes ICE)

2013-03-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/56575
* expr.c (gfc_default_initializer): Check that a class declared
type has any components.
* resolve.c (resolve_fl_derived0): On failing the test for C437
set the type to BT_UNKNOWN to prevent repeat error messages.

2013-03-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/56575
* gfortran.dg/class_56.f90: New test.

From-SVN: r196627

12 years agoDaily bump.
GCC Administrator [Wed, 13 Mar 2013 00:19:05 +0000 (00:19 +0000)] 
Daily bump.

From-SVN: r196624

12 years agoDaily bump.
GCC Administrator [Tue, 12 Mar 2013 00:18:29 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196606

12 years agoDaily bump.
GCC Administrator [Mon, 11 Mar 2013 00:18:04 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196586

12 years agore PR fortran/55362 (ICE with size() on character pointer)
Paul Thomas [Sun, 10 Mar 2013 18:34:24 +0000 (18:34 +0000)] 
re PR fortran/55362 (ICE with size() on character pointer)

2013-03-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/55362
* check.c (array_check): It is an error if a procedure is
passed.

2013-03-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/55362
* gfortran.dg/intrinsic_size_4.f90 : New test.

From-SVN: r196582

12 years agoDaily bump.
GCC Administrator [Sun, 10 Mar 2013 00:18:31 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196578

12 years agore PR c++/56534 (ICE Segfault on invalid code in check_elaborated_type_specifier)
Paolo Carlini [Sat, 9 Mar 2013 11:48:53 +0000 (11:48 +0000)] 
re PR c++/56534 (ICE Segfault on invalid code in check_elaborated_type_specifier)

/cp
2013-03-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/56534
* parser.c (cp_parser_elaborated_type_specifier): Don't call
check_elaborated_type_specifier when TREE_CODE (decl) != TYPE_DECL.
* decl.c (check_elaborated_type_specifier): Tidy.

/testsuite
2013-03-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/56534
* g++.dg/template/crash115.C: New.

From-SVN: r196573

12 years agovector.tcc (vector<>operator=(const vector<>&): Reset pointers after deallocation...
François Dumont [Sat, 9 Mar 2013 10:09:51 +0000 (10:09 +0000)] 
vector.tcc (vector<>operator=(const vector<>&): Reset pointers after deallocation when memory can be reused.

2013-03-09  François Dumont  <fdumont@gcc.gnu.org>

* include/bits/vector.tcc (vector<>operator=(const vector<>&):
Reset pointers after deallocation when memory can be reused.
* testsuite/23_containers/vector/allocator/minimal.cc: Insert
elements to really challenge C++11 allocator integration.
* testsuite/23_containers/vector/allocator/copy.cc: Likewise.
* testsuite/23_containers/vector/allocator/copy_assign.cc:
Likewise.
* testsuite/23_containers/vector/allocator/move_assign.cc:
Likewise.
* testsuite/23_containers/vector/allocator/swap.cc: Likewise and
swap vector back before checks on memory/personality mapping are
performed.

From-SVN: r196571

12 years agoDaily bump.
GCC Administrator [Sat, 9 Mar 2013 00:18:38 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196566

12 years agore PR ada/52123 (gcc bootstrap with ada fails on mingw target)
Cesar Strauss [Fri, 8 Mar 2013 08:04:22 +0000 (08:04 +0000)] 
re PR ada/52123 (gcc bootstrap with ada fails on mingw target)

PR ada/52123
* seh_init.c (Raise_From_Signal_Handler): Declare as no-return.
(__gnat_SEH_error_handler): Likewise.  Remove final return.

From-SVN: r196537

12 years ago013-03-08 Joey Ye <joey.ye@arm.com>
Joey Ye [Fri, 8 Mar 2013 07:25:09 +0000 (07:25 +0000)] 
013-03-08  Joey Ye  <joey.ye@arm.com>

    Backport from mainline
    2013-03-06  Joey Ye  <joey.ye@arm.com>

    PR lto/50293
    * gcc.c (convert_white_space): New function.
    (main): Handles white space in function name.

From-SVN: r196534

12 years agoDaily bump.
GCC Administrator [Fri, 8 Mar 2013 00:18:43 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196530

12 years agoChangeLog: Correct date to when committed not when submitted.
Joel Sherrill [Thu, 7 Mar 2013 15:15:33 +0000 (15:15 +0000)] 
ChangeLog: Correct date to when committed not when submitted.

2013-03-06  Joel Sherrill <joel.sherrill@oarcorp.com>

* ChangeLog: Correct date to when committed not when submitted.

From-SVN: r196521

12 years agoDaily bump.
GCC Administrator [Thu, 7 Mar 2013 00:18:32 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196515

12 years agobackport: re PR target/56529 ([SH] Calls to __sdivsi3_i4i and __udivsi3_i4i are gener...
Oleg Endo [Wed, 6 Mar 2013 22:54:11 +0000 (22:54 +0000)] 
backport: re PR target/56529 ([SH] Calls to __sdivsi3_i4i and __udivsi3_i4i are generated on SH2)

Backport from mainline
2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/56529
* config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
to SH_DIV_CALL_TABLE for TARGET_SH2.
* config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
list.
* doc/invoke.texi (SH options): Use table for mdiv= option.  Document
mdiv= call-div1, call-fp, call-table options.

Backport from mainline.
2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/56529
* config/sh/lib1funcs.S (udivsi3_i4i, sdivsi3_i4i): Add __SH2A__ to
inclusion list.

From-SVN: r196510

12 years agoconfig.host (arm*-*-rtemself*): New.
Sebastian Huber [Wed, 6 Mar 2013 17:42:45 +0000 (17:42 +0000)] 
config.host (arm*-*-rtemself*): New.

2013-02-22  Sebastian Huber <sebastian.huber@embedded-brains.de>

* config.host (arm*-*-rtemself*): New.
(arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
"arm*-*-rtemseabi*" to "arm*-*-rtems*".

From-SVN: r196503

12 years agoconfig.gcc (arm*-*-rtemself*): New.
Sebastian Huber [Wed, 6 Mar 2013 17:41:52 +0000 (17:41 +0000)] 
config.gcc (arm*-*-rtemself*): New.

2013-02-22  Sebastian Huber <sebastian.huber@embedded-brains.de>

* config.gcc (arm*-*-rtemself*): New.
(arm*-*-rtems*): Removed.
(arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
"arm*-*-rtemseabi*" to "arm*-*-rtems*".

From-SVN: r196502

12 years agore PR c++/56543 (ICE on valid code in copy_node_stat)
Jakub Jelinek [Wed, 6 Mar 2013 15:27:13 +0000 (16:27 +0100)] 
re PR c++/56543 (ICE on valid code in copy_node_stat)

PR c++/56543
* tree.c (strip_typedefs): Don't copy args if they are NULL.

* g++.dg/template/typename20.C: New test.

From-SVN: r196492

12 years agoDaily bump.
GCC Administrator [Wed, 6 Mar 2013 00:18:57 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196482

12 years agoDaily bump.
GCC Administrator [Tue, 5 Mar 2013 00:17:49 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r196447

12 years agoDaily bump.
GCC Administrator [Mon, 4 Mar 2013 00:18:11 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196421

12 years agoDaily bump.
GCC Administrator [Sun, 3 Mar 2013 00:18:28 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196409

12 years agoDaily bump.
GCC Administrator [Sat, 2 Mar 2013 00:18:28 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196402

12 years agobackport: re PR middle-end/55481 (-O2 generates a wrong-code infinite loop in C+...
Richard Biener [Fri, 1 Mar 2013 13:55:11 +0000 (13:55 +0000)] 
backport: re PR middle-end/55481 (-O2 generates a wrong-code infinite loop in C++Benchmark's simple_types_constant_folding int8 xor test)

2013-03-01  Richard Biener  <rguenther@suse.de>

Backport from mainline
2012-12-12  Zdenek Dvorak  <ook@ucw.cz>

PR tree-optimization/55481
* tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fall
back to general rewriting if we cannot leave an original biv
definition alone.

* gcc.dg/torture/pr55481.c: New testcase.
* gcc.dg/torture/pr56488.c: Likewise.

From-SVN: r196379

12 years agobackport: re PR middle-end/52888 (Unable to inline function pointer call with inexact...
Richard Biener [Fri, 1 Mar 2013 12:46:12 +0000 (12:46 +0000)] 
backport: re PR middle-end/52888 (Unable to inline function pointer call with inexact signature match)

2013-03-01  Richard Biener  <rguenther@suse.de>

Backport from mainline
2012-04-10  Richard Guenther  <rguenther@suse.de>

PR middle-end/52888
* gimple-low.c (gimple_check_call_args): Properly account for
compatible aggregate types.

From-SVN: r196378

12 years agoDaily bump.
GCC Administrator [Fri, 1 Mar 2013 00:19:13 +0000 (00:19 +0000)] 
Daily bump.

From-SVN: r196364

12 years agoDaily bump.
GCC Administrator [Thu, 28 Feb 2013 00:17:22 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r196327

12 years agore PR libstdc++/56012 ([C++11] Narrowing conversion in atomic_flag)
Jonathan Wakely [Wed, 27 Feb 2013 00:57:36 +0000 (00:57 +0000)] 
re PR libstdc++/56012 ([C++11] Narrowing conversion in atomic_flag)

PR libstdc++/56012
* include/bits/atomic_base.h (atomic_flag): Fix narrowing conversion.
* testsuite/29_atomics/atomic/operators/56012.cc: New.

PR libstdc++/56011
* include/std/atomic (atomic<bool>::operator=(bool) volatile): Add
missing overload.
* testsuite/29_atomics/atomic/operators/56011.cc: New.

From-SVN: r196301

12 years agoDaily bump.
GCC Administrator [Wed, 27 Feb 2013 00:18:03 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196299

12 years agore PR target/56453 (Gcc segmentation fault building argz_add.c for xcompiler newlib...
Nick Clifton [Tue, 26 Feb 2013 14:58:17 +0000 (14:58 +0000)] 
re PR target/56453 (Gcc segmentation fault building argz_add.c for xcompiler newlib for fr30-elf)

PR target/56453
Import this patch from the mainline:

2012-08-17  Nick Clifton  <nickc@redhat.com>

* config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
(branch_true): Likewise.
(branch_false): Likewise.

From-SVN: r196292

12 years agore PR middle-end/56443 (internal compiler error: verify_gimple failed at -O[1-2]...
Jakub Jelinek [Tue, 26 Feb 2013 10:29:47 +0000 (11:29 +0100)] 
re PR middle-end/56443 (internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize)

PR tree-optimization/56443
* tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
to type_for_mode langhook.

* gcc.dg/torture/pr56443.c: New test.

From-SVN: r196279

12 years agoDaily bump.
GCC Administrator [Tue, 26 Feb 2013 00:18:09 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196272

12 years agoDaily bump.
GCC Administrator [Mon, 25 Feb 2013 00:18:18 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196248

12 years agoDaily bump.
GCC Administrator [Sun, 24 Feb 2013 00:18:47 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196240

12 years agoDaily bump.
GCC Administrator [Sat, 23 Feb 2013 00:18:22 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196235

12 years agore PR c++/40405 (ICE with invalid initialization of template member)
Jason Merrill [Fri, 22 Feb 2013 22:26:20 +0000 (17:26 -0500)] 
re PR c++/40405 (ICE with invalid initialization of template member)

PR c++/40405
* pt.c (push_template_decl_real): Set DECL_INTERFACE_KNOWN
if we got the wrong number of template parms.

From-SVN: r196233

12 years agore PR c++/56395 (ICE, Segmentation fault in tsubst)
Jason Merrill [Fri, 22 Feb 2013 22:26:08 +0000 (17:26 -0500)] 
re PR c++/56395 (ICE, Segmentation fault in tsubst)

PR c++/56395
* tree.c (strip_typedefs): Strip typedefs from TYPENAME_TYPE template
args.

From-SVN: r196232

12 years agore PR fortran/56385 ([OOP] ICE with allocatable function result in a procedure-pointe...
Janus Weil [Fri, 22 Feb 2013 19:48:11 +0000 (20:48 +0100)] 
re PR fortran/56385 ([OOP] ICE with allocatable function result in a procedure-pointer component)

2013-02-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/56385
* trans-array.c (structure_alloc_comps): Handle procedure-pointer
components with allocatable result.

2013-02-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/56385
* gfortran.dg/proc_ptr_comp_37.f90: New.

From-SVN: r196227

12 years agoDaily bump.
GCC Administrator [Fri, 22 Feb 2013 00:18:20 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196217

12 years agoFix regression when writing formatted sequential to a pipe.
Janne Blomqvist [Thu, 21 Feb 2013 20:13:04 +0000 (22:13 +0200)] 
Fix regression when writing formatted sequential to a pipe.

2013-02-21  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/30162
* io/open.c (test_endfile): Call stell only if size != 0.
* io/unix.c (raw_tell): Revert r194694.
(raw_size): Return size field only for regular files, otherwise 0.

From-SVN: r196212

12 years agore PR bootstrap/56258 (Please upgrade doc/*.texi to the latest texinfo package(s))
Jakub Jelinek [Thu, 21 Feb 2013 09:42:39 +0000 (10:42 +0100)] 
re PR bootstrap/56258 (Please upgrade doc/*.texi to the latest texinfo package(s))

PR bootstrap/56258
* doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
instead of @itemx.

* gnat-style.texi (@title): Remove @hfill.
* projects.texi: Avoid line wrapping inside of @pxref or
@xref.

* doc/cp-tools.texinfo (Virtual Machine Options): Use just
one @gccoptlist instead of 3 separate ones.

From-SVN: r196197

12 years agoDaily bump.
GCC Administrator [Thu, 21 Feb 2013 00:18:36 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196190

12 years ago* include/std/streambuf (basic_streambuf): Fix unclosed Doxygen group.
Jonathan Wakely [Wed, 20 Feb 2013 23:55:57 +0000 (23:55 +0000)] 
* include/std/streambuf (basic_streambuf): Fix unclosed Doxygen group.

From-SVN: r196188

12 years agore PR libstdc++/55043 (issue with nesting unordered_map containing unique_ptr into...
Jonathan Wakely [Wed, 20 Feb 2013 23:55:48 +0000 (23:55 +0000)] 
re PR libstdc++/55043 (issue with nesting unordered_map containing unique_ptr into vector)

PR libstdc++/55043
* include/bits/alloc_traits.h (allocator_traits::construct): Disable
unless construction would be well-formed.
(__allow_copy_cons, __check_copy_constructible): Define.
* include/bits/unordered_map.h (__check_copy_constructible): Use as
base class so copy constructor will be deleted if appropriate.
* include/bits/unordered_set.h: Likewise.
* include/std/unordered_set: Include alloc_traits.h.
* include/std/unordered_set: Likewise.
* include/debug/unordered_map.h: Default copy and move constructors.
* include/debug/unordered_set.h: Likewise.
* testsuite/23_containers/unordered_map/55043.cc: Fix test.
* testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
* testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
* testsuite/23_containers/unordered_set/55043.cc: Likewise.
* testsuite/23_containers/unordered_map/requirements/53339.cc: XFAIL,
cannot support incomplete types.
* testsuite/23_containers/unordered_multimap/requirements/53339.cc:
Likewise.
* testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
dg-error line number.

From-SVN: r196187

12 years agore PR ada/56271 (GCC build errors when building ada and using LDFLAGS)
Eric Botcazou [Wed, 20 Feb 2013 18:24:15 +0000 (18:24 +0000)] 
re PR ada/56271 (GCC build errors when building ada and using LDFLAGS)

PR ada/56271
Backport from mainline
2012-05-15  Olivier Hainque  <hainque@adacore.com>

* gcc-interface/Make-lang.in (COMMON_FLAGS_TO_PASS): Use WARN_CFLAGS
instead of trying to mimic it.

From-SVN: r196178

12 years agoClear hwcap_2 with Sun ld
Rainer Orth [Wed, 20 Feb 2013 10:02:48 +0000 (10:02 +0000)] 
Clear hwcap_2 with Sun ld

Backport from mainline:
2012-06-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* gcc.target/i386/clearcapv2.map: New file.
* gcc.target/i386/i386.exp: Try it first before clearcap.map.

From-SVN: r196168

12 years agoDaily bump.
GCC Administrator [Wed, 20 Feb 2013 00:18:42 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196160

12 years agobackport: re PR tree-optimization/56350 (ICE in vectorizable_reduction, at tree-vect...
Jakub Jelinek [Tue, 19 Feb 2013 17:30:27 +0000 (18:30 +0100)] 
backport: re PR tree-optimization/56350 (ICE in vectorizable_reduction, at tree-vect-loop.c:4731)

Backported from mainline
2013-02-19  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/56350
* tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
if haven't found reduction or nested cycle operand, rather than
asserting we must find it.

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

From-SVN: r196150

12 years agobackport: re PR c++/56381 (ICE: cc1plus: internal compiler error: in gimplify_expr...
Jakub Jelinek [Tue, 19 Feb 2013 17:28:11 +0000 (18:28 +0100)] 
backport: re PR c++/56381 (ICE: cc1plus: internal compiler error: in gimplify_expr, at gimplify.c:7842)

Backported from mainline
2013-02-19  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/56381
* tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
to fold_build3.

From-SVN: r196149

12 years agobackport: re PR other/56245 (-fsanitize=address miscompiles GCC)
Jakub Jelinek [Tue, 19 Feb 2013 17:26:56 +0000 (18:26 +0100)] 
backport: re PR other/56245 (-fsanitize=address miscompiles GCC)

Backported from mainline
2013-02-09  Jakub Jelinek  <jakub@redhat.com>

PR other/56245
* regex.c (PTR_INT_TYPE): Define.
(EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE.

From-SVN: r196148

12 years agobackport: re PR tree-optimization/56250 (Wrong constant folding on unsigned int)
Jakub Jelinek [Tue, 19 Feb 2013 17:26:04 +0000 (18:26 +0100)] 
backport: re PR tree-optimization/56250 (Wrong constant folding on unsigned int)

Backported from mainline
2013-02-08  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/56250
* fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
if type is unsigned and code isn't MULT_EXPR.

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

From-SVN: r196147

12 years agobackport: re PR c++/56241 (ICE in toplev.c:332 on invalid)
Jakub Jelinek [Tue, 19 Feb 2013 17:24:37 +0000 (18:24 +0100)] 
backport: re PR c++/56241 (ICE in toplev.c:332 on invalid)

Backported from mainline
2013-02-07  Jakub Jelinek  <jakub@redhat.com>

PR c++/56241
* init.c (build_vec_init): Don't append NULL values into new_vec.
(build_zero_init_1): Don't push anything into v if recursive call
returned NULL_TREE.
(build_value_init_noctor): Don't push anything into v if
build_value_init call returned NULL_TREE.

* g++.dg/parse/crash61.C: New test.

From-SVN: r196146

12 years agobackport: re PR c++/56239 (parse error calling operator() on parenthesized value...
Jakub Jelinek [Tue, 19 Feb 2013 17:22:43 +0000 (18:22 +0100)] 
backport: re PR c++/56239 (parse error calling operator() on parenthesized value-initialized temporary)

Backported from mainline
2013-02-07  Jakub Jelinek  <jakub@redhat.com>

PR c++/56239
* parser.c (cp_parser_token_starts_cast_expression): Renamed to...
(cp_parser_tokens_start_cast_expression): ... this.  Change parameter
to cp_parser *, call cp_lexer_peek_token first.  For CPP_OPEN_PAREN,
return true only if 2nd token isn't CPP_CLOSE_PAREN.
(cp_parser_cast_expression): Adjust caller.

* g++.dg/parse/pr56239.C: New test.

From-SVN: r196145

12 years agobackport: re PR c++/56237 (ICE in lang_* check: failed in push_local_name, at cp...
Jakub Jelinek [Tue, 19 Feb 2013 17:21:08 +0000 (18:21 +0100)] 
backport: re PR c++/56237 (ICE in lang_* check: failed in push_local_name, at cp/decl.c:924)

Backported from mainline
2013-02-07  Jakub Jelinek  <jakub@redhat.com>

PR c++/56237
* decl.c (push_local_name): Look at DECL_DISCRIMINATOR (t)
only if DECL_DISCRIMINATOR_SET_P (t) rather than just
DECL_LANG_SPECIFIC (t).

* g++.dg/abi/mangle61.C: New test.

From-SVN: r196142

12 years agobackport: re PR c++/56217 (ICE: OpenMP: when combining shared() and a move constructor)
Jakub Jelinek [Tue, 19 Feb 2013 17:19:36 +0000 (18:19 +0100)] 
backport: re PR c++/56217 (ICE: OpenMP: when combining shared() and a move constructor)

Backported from mainline
2013-02-06  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/56217
* omp-low.c (use_pointer_for_field): Return false if
lower_send_shared_vars doesn't generate any copy-out code.

* g++.dg/gomp/pr56217.C: New test.

* testsuite/libgomp.c++/pr56217.C: New test.

From-SVN: r196141

12 years agobackport: re PR tree-optimization/55110 (Internal compiler error in vectorizable_redu...
Jakub Jelinek [Tue, 19 Feb 2013 17:15:53 +0000 (18:15 +0100)] 
backport: re PR tree-optimization/55110 (Internal compiler error in vectorizable_reduction, at tree-vect-loop.c:4633)

Backported from mainline
2012-11-27  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/55110
* tree-vect-loop.c (vectorizable_reduction): Don't assert
that STMT_VINFO_RELATED_STMT of orig_stmt is stmt.

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

From-SVN: r196140

12 years agoDaily bump.
GCC Administrator [Tue, 19 Feb 2013 00:18:40 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196131

12 years agofunctional (mem_fn): Qualify to prevent ADL.
Jonathan Wakely [Mon, 18 Feb 2013 22:51:23 +0000 (22:51 +0000)] 
functional (mem_fn): Qualify to prevent ADL.

* include/std/functional (mem_fn): Qualify to prevent ADL.
* testsuite/20_util/function_objects/mem_fn/adl.cc: New.

From-SVN: r196128

12 years agohashtable.h: Improve comments.
Jonathan Wakely [Mon, 18 Feb 2013 22:51:15 +0000 (22:51 +0000)] 
hashtable.h: Improve comments.

* include/bits/hashtable.h: Improve comments.
* include/bits/hashtable_policy.h: Likewise.

From-SVN: r196127

12 years agorevert: [multiple changes]
Richard Biener [Mon, 18 Feb 2013 13:46:37 +0000 (13:46 +0000)] 
revert: [multiple changes]

2013-02-18  Richard Biener  <rguenther@suse.de>

Revert
2013-02-04  Richard Biener  <rguenther@suse.de>

Backport from mainline
2012-07-04  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53844
* tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
the loop virtual PHI.

* g++.dg/tree-ssa/pr53844.C: New testcase.

From-SVN: r196120

12 years agoDaily bump.
GCC Administrator [Mon, 18 Feb 2013 00:18:03 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196114

12 years agobackport: re PR fortran/53537 (Explicit IMPORT of renamed USE-associated symbol fails)
Tobias Burnus [Sun, 17 Feb 2013 22:59:52 +0000 (23:59 +0100)] 
backport: re PR fortran/53537 (Explicit IMPORT of renamed USE-associated symbol fails)

2013-02-17  Tobias Burnus  <burnus@net-b.de>
    Mikael Morin  <mikael@gcc.gnu.org>

Backport from trunk
2013-01-28  Tobias Burnus  <burnus@net-b.de>
    Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/53537
* symbol.c (gfc_find_sym_tree): Don't look for the symbol outside an
interface block.
(gfc_get_ha_symtree): Let gfc_find_sym_tree lookup the parent namespace.
* decl.c (gfc_match_data_decl): Ditto.
(variable_decl): Remove undeclared type error.
(gfc_match_import): Use renamed instead of original name.

2013-02-17  Tobias Burnus  <burnus@net-b.de>
    Mikael Morin  <mikael@gcc.gnu.org>

Backport from trunk
2013-01-28  Tobias Burnus  <burnus@net-b.de>
    Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/53537
* gfortran.dg/import2.f90: Adjust undeclared type error messages.
* gfortran.dg/import8.f90: Likewise.
* gfortran.dg/interface_derived_type_1.f90: Likewise.
* gfortran.dg/import10.f90: New test.
* gfortran.dg/import11.f90: Likewise

Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>
From-SVN: r196112

12 years agoDaily bump.
GCC Administrator [Sun, 17 Feb 2013 00:21:55 +0000 (00:21 +0000)] 
Daily bump.

From-SVN: r196106

12 years agore PR c++/54276 (Lambda in a Template Function Undefined Reference to local static)
Jason Merrill [Sat, 16 Feb 2013 02:07:55 +0000 (21:07 -0500)] 
re PR c++/54276 (Lambda in a Template Function Undefined Reference to local static)

PR c++/54276
* semantics.c (finish_id_expression): Also return the identifier
for an outer local static.

From-SVN: r196101

12 years agoDaily bump.
GCC Administrator [Sat, 16 Feb 2013 00:18:15 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196097

12 years agore PR c++/52026 (Constexpr Variable Appears Uninitialized in Lambda)
Jason Merrill [Fri, 15 Feb 2013 18:32:12 +0000 (13:32 -0500)] 
re PR c++/52026 (Constexpr Variable Appears Uninitialized in Lambda)

PR c++/52026
* semantics.c (finish_id_expression): In a template, return
the identifier for a constant variable.

From-SVN: r196087

12 years agore PR c++/55710 ([C++11] Linkage errors with lambdas)
Jason Merrill [Fri, 15 Feb 2013 18:31:52 +0000 (13:31 -0500)] 
re PR c++/55710 ([C++11] Linkage errors with lambdas)

PR c++/55710
* semantics.c (maybe_add_lambda_conv_op): Mark static thunk
TREE_USED.

From-SVN: r196086

12 years agore PR c++/56135 ([c++11] this incorrectly captured as null in template member function)
Jason Merrill [Fri, 15 Feb 2013 18:31:28 +0000 (13:31 -0500)] 
re PR c++/56135 ([c++11] this incorrectly captured as null in template member function)

PR c++/56135
* pt.c (tsubst_copy_and_build): Don't forget any new
captures that arose from use of dependent names.

From-SVN: r196085

12 years agore PR fortran/56318 (Wrong result with MATMUL of PARAMETER)
Tobias Burnus [Fri, 15 Feb 2013 14:20:22 +0000 (15:20 +0100)] 
re PR fortran/56318 (Wrong result with MATMUL of PARAMETER)

2013-02-15  Tobias Burnus  <burnus@net-b.de>
            Mikael Morin  <mikael@gcc.gnu.org>

        PR fortran/56318
        * simplify.c (gfc_simplify_matmul): Fix result shape
        and matmul result.

2013-02-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56318
        * gcc/testsuite/gfortran.dg/matmul_9.f90: New.

Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>
From-SVN: r196078

12 years agoDaily bump.
GCC Administrator [Fri, 15 Feb 2013 00:18:32 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196062

12 years agore PR ada/52123 (gcc bootstrap with ada fails on mingw target)
Rainer Emrich [Thu, 14 Feb 2013 08:45:09 +0000 (08:45 +0000)] 
re PR ada/52123 (gcc bootstrap with ada fails on mingw target)

2013-02-14  Rainer Emrich  <rainer@emrich-ebersheim.de>

        PR target/52123
        * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via
        SECURITY_DESCRIPTOR *.
        (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE.
        (__gnat_portable_spawn): Fix cast to char* const*.
        (add_handle): Cast from pointer via void **.
        (add_handle): Cast from pointer via int *.
        (__gnat_locate_exec_on_path): Cast from pointer via TCHAR *.
        (__gnat_locate_exec_on_path): Cast from pointer via char *.
        * initialize.c (append_arg): Cast from pointer via LPWSTR.
        (__gnat_initialize): Cast from pointer via LPWSTR.
        * seh_init.c (__gnat_SEH_error_handler): Cast from pointer via FARPROC.
        * tracebak.c: Cast from pointer via FARPROC.

From-SVN: r196046

12 years agoDaily bump.
GCC Administrator [Thu, 14 Feb 2013 00:18:43 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r196038

12 years agoWe should not strip subregs of non-scalars during shift expansion.
David S. Miller [Wed, 13 Feb 2013 20:26:51 +0000 (20:26 +0000)] 
We should not strip subregs of non-scalars during shift expansion.

* expmed.c (expand_shift_1): Only strip scalar integer subregs.

From-SVN: r196028

12 years agobackport: re PR fortran/55852 (internal compiler error: in gfc_build_intrinsic_call...
Tobias Burnus [Wed, 13 Feb 2013 15:08:59 +0000 (16:08 +0100)] 
backport: re PR fortran/55852 (internal compiler error: in gfc_build_intrinsic_call, at fortran/expr.c:4647)

2012-02-13   Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2012-01-09  Uros Bizjak  <ubizjak@gmail.com>

        PR fortran/55852
        * gfortran.dg/intrinsic_size_3.f90: Make scan-tree-dump-times
        number matching more robust.

From-SVN: r196016

12 years agoFix typo in ChangeLog
Kai Tietz [Wed, 13 Feb 2013 10:31:10 +0000 (11:31 +0100)] 
Fix typo in ChangeLog

From-SVN: r196006

12 years agore PR target/52122 (incorrect ln -s replacement for mingw like targets in configure...
Kai Tietz [Wed, 13 Feb 2013 10:20:30 +0000 (11:20 +0100)] 
re PR target/52122 (incorrect ln -s replacement for mingw like targets in configure files)

PR target/52122
* Makefile.in (LN_S_RECUSIVE): New.
(adainclude, adalib): Use LN_S_RECURSIVE for copy.

From-SVN: r196003

12 years agoRevert rev. 195981
Kai Tietz [Wed, 13 Feb 2013 09:59:43 +0000 (10:59 +0100)] 
Revert rev. 195981

From-SVN: r196000

12 years agoDaily bump.
GCC Administrator [Wed, 13 Feb 2013 00:18:16 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r195994

12 years agore PR c++/56291 (ICE for C++11 in output_constructor_regular_field, at varasm.c:4821)
Jason Merrill [Tue, 12 Feb 2013 17:40:32 +0000 (12:40 -0500)] 
re PR c++/56291 (ICE for C++11 in output_constructor_regular_field, at varasm.c:4821)

PR c++/56291
* semantics.c (sort_constexpr_mem_initializers): Handle
vptr out of order.

From-SVN: r195987

12 years agore PR target/52122 (incorrect ln -s replacement for mingw like targets in configure...
Kai Tietz [Tue, 12 Feb 2013 15:36:56 +0000 (16:36 +0100)] 
re PR target/52122 (incorrect ln -s replacement for mingw like targets in configure files)

        PR target/52122
        * Makefile.in (LN_S_RECUSIVE): New.
        (adainclude, adalib): Use LN_S_RECURSIVE for copy.

From-SVN: r195981

12 years agoDaily bump.
GCC Administrator [Tue, 12 Feb 2013 00:18:25 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r195964

12 years agobackport: re PR rtl-optimization/56275 (ICE in simplify_subreg, at simplify-rtx.c...
Uros Bizjak [Mon, 11 Feb 2013 17:27:30 +0000 (18:27 +0100)] 
backport: re PR rtl-optimization/56275 (ICE in simplify_subreg, at simplify-rtx.c:5261 with vector code.)

Backport from mainline
2013-02-11  Uros Bizjak  <ubizjak@gmail.com>

PR rtl-optimization/56275
* simplify-rtx.c (avoid_constant_pool_reference): Check that
offset is non-negative and less than cmode size before
calling simplify_subreg.

testsuite/ChangeLog:

Backport from mainline
2013-02-11  Uros Bizjak  <ubizjak@gmail.com>

PR rtl-optimization/56275
* gcc.dg/pr56275.c: New test.

From-SVN: r195946

12 years agore PR c++/56268 (C++11 ICE with boost multi-precision and boost variant during assign...
Jason Merrill [Mon, 11 Feb 2013 16:21:10 +0000 (11:21 -0500)] 
re PR c++/56268 (C++11 ICE with boost multi-precision and boost variant during assignment)

PR c++/56268
* semantics.c (classtype_has_nothrow_assign_or_copy_p): Call
maybe_instantiate_noexcept.

From-SVN: r195945

12 years agoDaily bump.
GCC Administrator [Mon, 11 Feb 2013 00:18:36 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r195933

12 years agoDaily bump.
GCC Administrator [Sun, 10 Feb 2013 00:18:05 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r195929