]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
10 years agoDaily bump.
GCC Administrator [Fri, 23 Jan 2015 00:20:08 +0000 (00:20 +0000)] 
Daily bump.

From-SVN: r220020

10 years agos390.md (atomic code attribute): Fix typo "ior" -> "or".
Andreas Krebbel [Thu, 22 Jan 2015 11:26:16 +0000 (11:26 +0000)] 
s390.md (atomic code attribute): Fix typo "ior" -> "or".

2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.md (atomic code attribute): Fix typo "ior" ->
"or".

From-SVN: r219992

10 years agoDaily bump.
GCC Administrator [Thu, 22 Jan 2015 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219979

10 years agobackport: re PR ipa/63970 (gcc-4_9 inlines less funcs than gcc-4_8 because of used_as...
Wei Mi [Wed, 21 Jan 2015 21:56:14 +0000 (21:56 +0000)] 
backport: re PR ipa/63970 (gcc-4_9 inlines less funcs than gcc-4_8 because of used_as_abstract_origin flag)

        Backported from trunk.
        2014-11-22  Jan Hubicka  <hubicka@ucw.cz>

        PR ipa/63970
        * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline clones
        as having abstract origin used.
        * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract origin check.
        (clone_inlined_nodes): Copy abstract originflag.
        * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get abstract origin node.

From-SVN: r219972

10 years agoAvoid misaligned atomic operations
Andrew Waterman [Wed, 21 Jan 2015 17:18:27 +0000 (17:18 +0000)] 
Avoid misaligned atomic operations

 Andrew Waterman <waterman@cs.berkeley.edu>

 * fop_n.c (libat_fetch_op): Align address to word boundary.
 (libat_op_fetch): Likewise.

From-SVN: r219955

10 years agoDaily bump.
GCC Administrator [Wed, 21 Jan 2015 00:16:42 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219924

10 years agobackport: nios2.c (nios2_asm_file_end): Implement TARGET_ASM_FILE_END hook for adding...
Chung-Lin Tang [Tue, 20 Jan 2015 14:59:59 +0000 (14:59 +0000)] 
backport: nios2.c (nios2_asm_file_end): Implement TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when needed.

2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>

Backport from mainline
gcc/
* config/nios2/nios2.c (nios2_asm_file_end): Implement
TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
needed.
(TARGET_ASM_FILE_END): Define.

Backport from mainline
libgcc/
* config/nios2/linux-unwind.h (nios2_fallback_frame_state):
Update rt_sigframe format and address for current Nios II
Linux conventions.

From-SVN: r219899

10 years agobackport: re PR c/61553 (__atomic_store with non-pointer arg ICE)
Marek Polacek [Tue, 20 Jan 2015 14:17:51 +0000 (14:17 +0000)] 
backport: re PR c/61553 (__atomic_store with non-pointer arg ICE)

Backport from mainline
2014-06-23  Marek Polacek  <polacek@redhat.com>

PR c/61553
* c-common.c (get_atomic_generic_size): Don't segfault if the
type doesn't have a size.

* c-c++-common/pr61553.c: New test.

From-SVN: r219895

10 years agoDaily bump.
GCC Administrator [Tue, 20 Jan 2015 00:16:40 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219873

10 years agore PR libstdc++/64649 (regex_traits::lookup_classname() only works with random access...
Tim Shen [Mon, 19 Jan 2015 23:12:37 +0000 (23:12 +0000)] 
re PR libstdc++/64649 (regex_traits::lookup_classname() only works with random access iterators)

PR libstdc++/64649
Backported from mainline
2015-01-19  Tim Shen  <timshen@google.com>

* include/bits/regex.tcc (regex_traits<>::lookup_collatename,
regex_traits<>::lookup_classname): Support forward iterators.
* testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
* testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.

From-SVN: r219869

10 years agore PR libstdc++/64584 (basic_regex::assign breaks *this if it throws regex_error)
Tim Shen [Mon, 19 Jan 2015 23:09:07 +0000 (23:09 +0000)] 
re PR libstdc++/64584 (basic_regex::assign breaks *this if it throws regex_error)

PR libstdc++/64584
PR libstdc++/64585
* include/bits/regex.h (basic_regex<>::basic_regex,
basic_regex<>::assign, basic_regex<>::imbue,
basic_regex<>::swap, basic_regex<>::mark_count): Drop NFA after
imbuing basic_regex; Make assign() transactional against exception.
* testsuite/28_regex/basic_regex/assign/char/string.cc: New testcase.
* testsuite/28_regex/basic_regex/imbue/string.cc: New testcase.

From-SVN: r219868

10 years agoDaily bump.
GCC Administrator [Mon, 19 Jan 2015 00:16:51 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219829

10 years agore PR libstdc++/64646 (New overloads of std::is_permutation dereference past-the...
Jonathan Wakely [Sun, 18 Jan 2015 16:29:57 +0000 (16:29 +0000)] 
re PR libstdc++/64646 (New overloads of std::is_permutation dereference past-the-end iterator)

PR libstdc++/64646
* include/bits/stl_algo.h (__is_permutation): Also test for reaching
end of the second range.
* testsuite/25_algorithms/is_permutation/64646.cc: New.

From-SVN: r219820

10 years agoDaily bump.
GCC Administrator [Sun, 18 Jan 2015 00:16:51 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219810

10 years agoDaily bump.
GCC Administrator [Sat, 17 Jan 2015 00:16:30 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219783

10 years agotsan_barrier.h: New.
Bernd Edlinger [Fri, 16 Jan 2015 05:36:22 +0000 (05:36 +0000)] 
tsan_barrier.h: New.

2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * c-c++-common/tsan/tsan_barrier.h: New.
        * c-c++-common/tsan/atomic_stack.c: Reworked to not depend on sleep.
        * c-c++-common/tsan/fd_pipe_race.c: Likewise.
        * c-c++-common/tsan/mutexset1.c: Likewise.
        * c-c++-common/tsan/race_on_barrier.c: Likewise.
        * c-c++-common/tsan/race_on_mutex.c: Likewise.
        * c-c++-common/tsan/race_on_mutex2.c: Likewise.
        * c-c++-common/tsan/simple_race.c: Likewise.
        * c-c++-common/tsan/simple_stack.c: Likewise.
        * c-c++-common/tsan/sleep_sync.c: Likewise.
        * c-c++-common/tsan/tiny_race.c: Likewise.
        * c-c++-common/tsan/tls_race.c: Likewise.
        * c-c++-common/tsan/write_in_reader_lock.c: Likewise.
        * g++.dg/tsan/atomic_free.C: Likewise.
        * g++.dg/tsan/atomic_free2.C: Likewise.
        * g++.dg/tsan/cond_race.C: Likewise.
        * g++.dg/tsan/tsan_barrier.h: Copied from c-c++-common/tsan.

From-SVN: r219708

10 years agoDaily bump.
GCC Administrator [Fri, 16 Jan 2015 00:16:38 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219698

10 years agobackport: re PR lto/63704 (-flto internal compiler error: in mems_in_disjoint_alias_s...
Martin Liska [Thu, 15 Jan 2015 16:03:05 +0000 (17:03 +0100)] 
backport: re PR lto/63704 (-flto internal compiler error: in mems_in_disjoint_alias_sets_p, at alias.c:398)

Backport from mainline

        2014-11-27  Richard Biener  <rguenther@suse.de>

PR middle-end/63704
* alias.c (mems_in_disjoint_alias_sets_p): Remove assert
and instead return false when !fstrict-aliasing.

From-SVN: r219664

10 years agoexpr.c (expand_expr_real_1): Use the expression to set the memory attributes in all...
Eric Botcazou [Thu, 15 Jan 2015 12:00:40 +0000 (12:00 +0000)] 
expr.c (expand_expr_real_1): Use the expression to set the memory attributes in all cases but clear MEM_EXPR...

* expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
set the memory attributes in all cases but clear MEM_EXPR if need be.

From-SVN: r219650

10 years agoDaily bump.
GCC Administrator [Thu, 15 Jan 2015 00:16:51 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219625

10 years agobackport: re PR target/64513 (ICE: in maybe_record_trace_start, at dwarf2cfi.c:2231...
Jakub Jelinek [Wed, 14 Jan 2015 22:04:49 +0000 (23:04 +0100)] 
backport: re PR target/64513 (ICE: in maybe_record_trace_start, at dwarf2cfi.c:2231 with -mstack-arg-probe)

Backported from mainline
2015-01-12  Jakub Jelinek  <jakub@redhat.com>

PR target/64513
* config/i386/i386.c (ix86_expand_prologue): Add
REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.

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

From-SVN: r219618

10 years agobackport: re PR rtl-optimization/64286 (Redundant extend removal ignores vector eleme...
Jakub Jelinek [Wed, 14 Jan 2015 20:24:05 +0000 (21:24 +0100)] 
backport: re PR rtl-optimization/64286 (Redundant extend removal ignores vector element type)

Backported from mainline
2015-01-13  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/64286
* ree.c (combine_reaching_defs): Move part of comment earlier,
remove !SCALAR_INT_MODE_P check.
(add_removable_extension): Don't add vector mode
extensions if all uses of the source register aren't the same
vector extensions.

* gcc.target/i386/avx2-pr64286.c: New test.

From-SVN: r219614

10 years agobackport: re PR fortran/64528 (ICE: in process_constraint, at tree-ssa-structalias...
Jakub Jelinek [Wed, 14 Jan 2015 20:22:47 +0000 (21:22 +0100)] 
backport: re PR fortran/64528 (ICE: in process_constraint, at tree-ssa-structalias.c:3002 with -O -fno-tree-ccp -fno-tree-dce)

Backported from mainline
2015-01-13  Jakub Jelinek  <jakub@redhat.com>

PR fortran/64528
* trans-decl.c (create_function_arglist): Don't set TREE_READONLY
on dummy args with VALUE attribute.

* gfortran.dg/pr64528.f90: New test.

From-SVN: r219613

10 years agobackport: re PR tree-optimization/64563 (ICE with "-Wall -Wextra" at -Os and above...
Jakub Jelinek [Wed, 14 Jan 2015 20:21:49 +0000 (21:21 +0100)] 
backport: re PR tree-optimization/64563 (ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu)

Backported from mainline
2015-01-12  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/64563
* tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
instead of != VR_VARYING.

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

From-SVN: r219612

10 years agore PR middle-end/64391 (ICE: SIGSEGV in get_attrs_for (trans-mem.c:179) with -fgnu...
Marek Polacek [Wed, 14 Jan 2015 08:43:53 +0000 (08:43 +0000)] 
re PR middle-end/64391 (ICE: SIGSEGV in get_attrs_for (trans-mem.c:179) with -fgnu-tm and #pragma GCC ivdep)

PR middle-end/64391
* trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.

* gcc.dg/tm/pr64391.c: New test.

From-SVN: r219581

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

From-SVN: r219568

10 years agore PR c++/54442 (Const overloads resolution failure)
Marc Glisse [Tue, 13 Jan 2015 23:39:24 +0000 (00:39 +0100)] 
re PR c++/54442 (Const overloads resolution failure)

gcc/
2015-01-13  Marc Glisse  <marc.glisse@inria.fr>

PR c++/54442
* tree.c (build_qualified_type): Use a canonical type for
TYPE_CANONICAL.

testsuite/
2015-01-13  Marc Glisse  <marc.glisse@inria.fr>

PR c++/54442
* g++.dg/pr54442.C: New file.

From-SVN: r219566

10 years agobackport: re PR target/64358 (Wrong code for __int128 operations in powerpc64le)
Pat Haugen [Tue, 13 Jan 2015 19:17:42 +0000 (19:17 +0000)] 
backport: re PR target/64358 (Wrong code for __int128 operations in powerpc64le)

Backport from mainline
2014-12-20  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/64358
* config/rs6000/rs6000.c (rs6000_split_logical_inner): Swap the
input operands if only the second is inverted.
* config/rs6000/rs6000.md (*boolc<mode>3_internal1 for BOOL_128):
Swap BOOL_REGS_OP1 and BOOL_REGS_OP2.  Correct arguments to
rs6000_split_logical.
(*boolc<mode>3_internal2 for TI2): Swap operands[1] and operands[2].

From-SVN: r219551

10 years ago[AArch64] Implement <su><maxmin>v2di3 pattern
Renlin Li [Tue, 13 Jan 2015 16:25:00 +0000 (16:25 +0000)] 
[AArch64] Implement <su><maxmin>v2di3 pattern

Backport from mainline
2014-11-19 Renlin Li <renlin.li@arm.com>

gcc/:
PR target/63424
* config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.

gcc/testsuite/:
PR target/63424
* gcc.target/aarch64/pr63424.c: New test.

From-SVN: r219540

10 years agobackport: re PR target/64479 ([SH] wrong optimization delayed-branch)
Oleg Endo [Tue, 13 Jan 2015 01:01:14 +0000 (01:01 +0000)] 
backport: re PR target/64479 ([SH] wrong optimization delayed-branch)

gcc/
Backport form mainline
2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/64479
* rtlanal.c (set_reg_p): Handle SEQUENCE constructs.

From-SVN: r219507

10 years agoDaily bump.
GCC Administrator [Tue, 13 Jan 2015 00:16:40 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219502

10 years agobackport: re PR fortran/63733 ([OOP] wrong resolution for OPERATOR generics)
Janus Weil [Mon, 12 Jan 2015 16:14:06 +0000 (17:14 +0100)] 
backport: re PR fortran/63733 ([OOP]  wrong resolution for OPERATOR generics)

2015-01-12  Janus Weil  <janus@gcc.gnu.org>

Backport from mainline
PR fortran/63733
* interface.c (gfc_extend_expr): Look for type-bound operators before
non-typebound ones.

2015-01-12  Janus Weil  <janus@gcc.gnu.org>

Backport from mainline
PR fortran/63733
* gfortran.dg/typebound_operator_20.f90: New.

From-SVN: r219475

10 years agoDaily bump.
GCC Administrator [Mon, 12 Jan 2015 00:18:05 +0000 (00:18 +0000)] 
Daily bump.

From-SVN: r219442

10 years agoDaily bump.
GCC Administrator [Sun, 11 Jan 2015 00:16:32 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219427

10 years agoDaily bump.
GCC Administrator [Sat, 10 Jan 2015 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219416

10 years agore PR rtl-optimization/64536 (Undefined .L* symbol starting with jump2 on s390x)
Jakub Jelinek [Fri, 9 Jan 2015 21:36:10 +0000 (22:36 +0100)] 
re PR rtl-optimization/64536 (Undefined .L* symbol starting with jump2 on s390x)

PR rtl-optimization/64536
* cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
tablejumps.

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

From-SVN: r219409

10 years agobackport: re PR target/64505 (Powerpc compiler generates insn not found for -m32...
Michael Meissner [Fri, 9 Jan 2015 20:57:30 +0000 (20:57 +0000)] 
backport: re PR target/64505 (Powerpc compiler generates insn not found for -m32 -mpowerpc64)

[gcc]
2015-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>

Backport from mainline:
2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/64505
* config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
correct reload handler if -m32 -mpowerpc64 is used.

[gcc/testsuite]
2015-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>

Backport from mainline:
2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/64505
* gcc.target/powerpc/pr64505.c: New file to test -m32 -mpowerpc64
fix is correct.

From-SVN: r219403

10 years agore PR libstdc++/64476 (std::uninitialized_copy tests assignability the wrong way...
Jonathan Wakely [Fri, 9 Jan 2015 18:02:30 +0000 (18:02 +0000)] 
re PR libstdc++/64476 (std::uninitialized_copy tests assignability the wrong way, resulting in performance pessimization)

PR libstdc++/64476
* include/bits/stl_uninitialized.h (uninitialized_copy): Fix
is_assignable arguments.
* testsuite/20_util/specialized_algorithms/uninitialized_copy/64476.cc:
New.

From-SVN: r219397

10 years agore PR libstdc++/60966 (std::call_once sometime hangs)
Jonathan Wakely [Fri, 9 Jan 2015 14:40:46 +0000 (14:40 +0000)] 
re PR libstdc++/60966 (std::call_once sometime hangs)

PR libstdc++/60966
* include/std/future (packaged_task::operator()): Increment the
reference count on the shared state until the function returns.

From-SVN: r219394

10 years agoRTEMS: Add e6500 multilibs for PowerPC
Sebastian Huber [Fri, 9 Jan 2015 14:19:47 +0000 (14:19 +0000)] 
RTEMS: Add e6500 multilibs for PowerPC

Use 32-bit instructions only since currently there is no demand for a
larger address space.  Provide one multilib with FPU and AltiVec support
and one without.

gcc/ChangeLog

* config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
for -mcpu=e6500.
* config/rs6000/t-rtems: Add e6500 multilibs.

From-SVN: r219391

10 years agoRTEMS: Fix MPC8540 multilibs for PowerPC
Sebastian Huber [Fri, 9 Jan 2015 14:18:35 +0000 (14:18 +0000)] 
RTEMS: Fix MPC8540 multilibs for PowerPC

GCC generates SPE instructions even if -msoft-float is specified.
Explicitly add -mno-spe to prevent generation of SPE instructions.  This
multilib variant must not lead to a usage of the SPE.

gcc/ChangeLog

* config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
MPC8540.

From-SVN: r219390

10 years agoRTEMS: Use MULTILIB_REQUIRED for PowerPC
Sebastian Huber [Fri, 9 Jan 2015 14:14:22 +0000 (14:14 +0000)] 
RTEMS: Use MULTILIB_REQUIRED for PowerPC

gcc/ChangeLog

* config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
MULTILIB_EXCEPTIONS.

From-SVN: r219389

10 years ago[ARM]Fix definition of __ARM_SIZEOF_WCHAR_T.
Renlin Li [Fri, 9 Jan 2015 13:55:16 +0000 (13:55 +0000)] 
[ARM]Fix definition of __ARM_SIZEOF_WCHAR_T.

Backport from mainline:
2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>

PR target/61413
* config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
of __ARM_SIZEOF_WCHAR_T.

From-SVN: r219386

10 years agore PR libstdc++/64239 (regex_iterator::operator= should copy match_results::position)
Tim Shen [Fri, 9 Jan 2015 05:52:18 +0000 (05:52 +0000)] 
re PR libstdc++/64239 (regex_iterator::operator= should copy match_results::position)

PR libstdc++/64239
Backported form mainline
2015-01-09  Tim Shen  <timshen@google.com>

* include/bits/regex.h (match_results<>::swap): Use std::swap
instead of swap.
* include/bits/regex_compiler.tcc (_Compiler<>::_M_quantifier):
Likewise.
* testsuite/28_regex/match_results/swap.cc: New testcase.

From-SVN: r219374

10 years agoDaily bump.
GCC Administrator [Fri, 9 Jan 2015 00:16:31 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219370

10 years agoDaily bump.
GCC Administrator [Thu, 8 Jan 2015 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219329

10 years agobackport: re PR fortran/56867 (Missing temporary with string array assignment)
Thomas Koenig [Wed, 7 Jan 2015 22:31:54 +0000 (22:31 +0000)] 
backport: re PR fortran/56867 (Missing temporary with string array assignment)

2015-01-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/56867
* trans-array.c (gfc_conv_resolve_dependencies):  Also check
dependencies when there may be substrings of character arrays.

2014-01-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/56867
* gfortran.dg/dependency_45.f90:  New test.

From-SVN: r219325

10 years agore PR c++/64487 (internal compiler error: in fold_offsetof_1, at c-family/c-common...
Jason Merrill [Wed, 7 Jan 2015 15:18:39 +0000 (10:18 -0500)] 
re PR c++/64487 (internal compiler error: in fold_offsetof_1, at c-family/c-common.c:9857)

PR c++/64487
* semantics.c (finish_offsetof): Handle templates here.
* parser.c (cp_parser_builtin_offsetof): Not here.

From-SVN: r219311

10 years agore PR c++/64352 (No SFINAE with deleted function)
Jason Merrill [Wed, 7 Jan 2015 15:18:32 +0000 (10:18 -0500)] 
re PR c++/64352 (No SFINAE with deleted function)

PR c++/64352
* pt.c (tsubst_copy_and_build): Pass complain to mark_used.

From-SVN: r219310

10 years agore PR c++/64251 (Chromium build error only with --enable-checking=yes)
Jason Merrill [Wed, 7 Jan 2015 15:18:27 +0000 (10:18 -0500)] 
re PR c++/64251 (Chromium build error only with --enable-checking=yes)

PR c++/64251
* decl2.c (mark_used): Don't mark if in_template_function.

From-SVN: r219309

10 years agore PR c++/64297 (ICE: canonical types differ for identical types)
Jason Merrill [Wed, 7 Jan 2015 15:18:21 +0000 (10:18 -0500)] 
re PR c++/64297 (ICE: canonical types differ for identical types)

PR c++/64297
* typeck.c (apply_memfn_quals): Correct wrong TYPE_CANONICAL.

From-SVN: r219308

10 years agore PR c++/64029 (const int (&in)[]{1,2,3,4,5}; results in internal compiler error...
Jason Merrill [Wed, 7 Jan 2015 15:18:16 +0000 (10:18 -0500)] 
re PR c++/64029 (const int (&in)[]{1,2,3,4,5}; results in internal compiler error: Segmentation fault)

PR c++/64029
* decl.c (grok_reference_init): Complete array type.

From-SVN: r219307

10 years agore PR c++/63657 (-Wunused-variable: warning supressed by virtual dtor)
Jason Merrill [Wed, 7 Jan 2015 15:18:05 +0000 (10:18 -0500)] 
re PR c++/63657 (-Wunused-variable: warning supressed by virtual dtor)

PR c++/63657
PR c++/38958
* call.c (set_up_extended_ref_temp): Set TREE_USED on the reference
if the temporary has a non-trivial destructor.
* decl.c (poplevel): Don't look through references.

From-SVN: r219306

10 years agore PR c++/63658 (Using class reference as template parameter causes compilation to...
Jason Merrill [Wed, 7 Jan 2015 15:17:59 +0000 (10:17 -0500)] 
re PR c++/63658 (Using class reference as template parameter causes compilation to fail)

PR c++/63658
* pt.c (convert_nontype_argument): Call convert_from_reference.
(check_instantiated_arg): Don't be confused by reference refs.
(unify): Look through reference refs on the arg, too.
* mangle.c (write_template_arg): Look through reference refs.

From-SVN: r219305

10 years agoDaily bump.
GCC Administrator [Wed, 7 Jan 2015 00:16:49 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219275

10 years agore PR target/64507 (SH inlined builtin strncmp doesn't return 0 for 0 length)
Christian Bruel [Tue, 6 Jan 2015 12:22:51 +0000 (13:22 +0100)] 
re PR target/64507 (SH inlined builtin strncmp doesn't return 0 for 0 length)

PR target/64507
* config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.

From-SVN: r219258

10 years agoDaily bump.
GCC Administrator [Tue, 6 Jan 2015 00:16:26 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219210

10 years agobackport: compiler: Recognize 64-bit symbol tables in archives.
Ian Lance Taylor [Mon, 5 Jan 2015 20:28:51 +0000 (20:28 +0000)] 
backport: compiler: Recognize 64-bit symbol tables in archives.

Backport from mainline:

https://codereview.appspot.com/154800044

compiler: Recognize 64-bit symbol tables in archives.

By Dominik Vogt.

2014-11-21  Lynn Boger  <laboger@linux.vnet.ibm.com>

* go.test/go-test.exp (go-set-goarch): Add case for ppc64le goarch
value for go testing.

https://codereview.appspot.com/168710043

runtime: GOARCH values for ppc64 BE & LE

ppc64 for BE
ppc64le for LE
issue 8654

https://codereview.appspot.com/167780044

debug/elf: add power64 support along with relocation test

Backport of https://codereview.appspot.com/125910043 from the
dev.power64 branch of the master repository.

From-SVN: r219198

10 years agore PR ada/64492 (Disabling libada prevents building gnattools-cross)
Eric Botcazou [Mon, 5 Jan 2015 10:17:28 +0000 (10:17 +0000)] 
re PR ada/64492 (Disabling libada prevents building gnattools-cross)

PR ada/64492
* gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code

From-SVN: r219184

10 years agoDaily bump.
GCC Administrator [Mon, 5 Jan 2015 00:16:42 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219178

10 years agoDaily bump.
GCC Administrator [Sun, 4 Jan 2015 00:16:34 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219168

10 years agopa.md (decrement_and_branch_until_zero): Use `Q' constraint instead of `m' constraint.
John David Anglin [Sat, 3 Jan 2015 19:19:49 +0000 (19:19 +0000)] 
pa.md (decrement_and_branch_until_zero): Use `Q' constraint instead of `m' constraint.

* config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
instead of `m' constraint.  Likewise for unnamed movb comparison
patterns using reg_before_reload_operand predicate.
* config/pa/predicates.md (reg_before_reload_operand): Tighten
predicate to reject register index and LO_SUM DLT memory forms
after reload.

From-SVN: r219163

10 years agoDaily bump.
GCC Administrator [Sat, 3 Jan 2015 00:16:26 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219156

10 years agoDaily bump.
GCC Administrator [Fri, 2 Jan 2015 00:16:27 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219138

10 years agoDaily bump.
GCC Administrator [Thu, 1 Jan 2015 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219132

10 years agoDaily bump.
GCC Administrator [Wed, 31 Dec 2014 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219118

10 years agoDaily bump.
GCC Administrator [Tue, 30 Dec 2014 00:16:31 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219103

10 years agoDaily bump.
GCC Administrator [Mon, 29 Dec 2014 00:16:44 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219094

10 years agoSkip ms_abi attribute tests on x32
H.J. Lu [Sun, 28 Dec 2014 15:06:53 +0000 (15:06 +0000)] 
Skip ms_abi attribute tests on x32

* gcc.target/i386/pr57003.c: Skip on x32.
* gcc.target/i386/pr59927.c: Likewise.
* gcc.target/i386/pr60516.c: Likewise.

From-SVN: r219091

10 years agoDaily bump.
GCC Administrator [Sun, 28 Dec 2014 00:16:30 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219087

10 years agoIssue an error for ms_abi attribute with x32
H.J. Lu [Sat, 27 Dec 2014 16:26:55 +0000 (16:26 +0000)] 
Issue an error for ms_abi attribute with x32

There is no counter part of x32 in MS ABI.   Issue an error when ms_abi
attribute is used with x32.

gcc/

PR target/64409
* config/i386/i386.c (ix86_function_type_abi): Issue an error
when ms_abi attribute is used with x32.

gcc/testsuite/

PR target/64409
* gcc.target/i386/pr64409.c: New test.

From-SVN: r219082

10 years agommx.md (*vec_extractv2sf_1): Do not emit unpckhps.
Uros Bizjak [Sat, 27 Dec 2014 15:43:59 +0000 (16:43 +0100)] 
mmx.md (*vec_extractv2sf_1): Do not emit unpckhps.

* config/i386/mmx.md (*vec_extractv2sf_1): Do not emit unpckhps.
Emit movshdup for SSE3 and shufps otherwise.
(*vec_extractv2si_1): Do not emit punpckhdq and unpckhps.
Emit pshufd for SSE2 and shufps otherwise.

From-SVN: r219079

10 years agoDaily bump.
GCC Administrator [Sat, 27 Dec 2014 00:16:27 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219072

10 years agoDaily bump.
GCC Administrator [Fri, 26 Dec 2014 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219069

10 years agoDaily bump.
GCC Administrator [Thu, 25 Dec 2014 00:16:27 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219064

10 years agobackport: rx.c (rx_print_operand): Allow R operator to accept SImode values.
Nick Clifton [Wed, 24 Dec 2014 13:31:18 +0000 (13:31 +0000)] 
backport: rx.c (rx_print_operand): Allow R operator to accept SImode values.

Backport from mainline:
2014-03-25  Nick Clifton  <nickc@redhat.com>

* config/rx/rx.c (rx_print_operand): Allow R operator to accept
SImode values.

From-SVN: r219057

10 years agobackport: rx.h (JUMP_ALIGN): Return the log value if user requested alignment is...
Nick Clifton [Wed, 24 Dec 2014 13:19:19 +0000 (13:19 +0000)] 
backport: rx.h (JUMP_ALIGN): Return the log value if user requested alignment is active.

Backport from mainline:
2014-06-13  Nick Clifton  <nickc@redhat.com>

* config/rx/rx.h (JUMP_ALIGN): Return the log value if user
requested alignment is active.
(LABEL_ALIGN): Likewise.
(LOOP_ALIGN): Likewise.

From-SVN: r219055

10 years agoDaily bump.
GCC Administrator [Wed, 24 Dec 2014 00:16:27 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219052

10 years agobackport: re PR fortran/64244 (ICE at class.c:236 when using non_overridable)
Janus Weil [Tue, 23 Dec 2014 10:51:32 +0000 (11:51 +0100)] 
backport: re PR fortran/64244 (ICE at class.c:236 when using non_overridable)

2014-12-23  Janus Weil  <janus@gcc.gnu.org>

Backport from mainline
PR fortran/64244
* resolve.c (resolve_typebound_call): New argument to pass out the
non-overridable attribute of the specific procedure.
(resolve_typebound_subroutine): Get overridable flag from
resolve_typebound_call.

2014-12-23  Janus Weil  <janus@gcc.gnu.org>

Backport from mainline
PR fortran/64244
* gfortran.dg/typebound_call_26.f90: New.

From-SVN: r219043

10 years agoDaily bump.
GCC Administrator [Tue, 23 Dec 2014 00:16:34 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219040

10 years agoDaily bump.
GCC Administrator [Mon, 22 Dec 2014 00:16:43 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r219001

10 years agoDaily bump.
GCC Administrator [Sun, 21 Dec 2014 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r218993

10 years agoDaily bump.
GCC Administrator [Sat, 20 Dec 2014 00:16:37 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r218982

10 years agore PR c++/60955 (Erroneous warning about taking address of register with std=c++1y)
Paolo Carlini [Fri, 19 Dec 2014 09:13:05 +0000 (09:13 +0000)] 
re PR c++/60955 (Erroneous warning about taking address of register with std=c++1y)

/cp
2014-12-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60955
* pt.c (struct warning_sentinel): Move it...
* cp-tree.h: ... here.
* semantics.c (force_paren_expr): Use it.

/testsuite
2014-12-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60955
* g++.dg/warn/register-parm-1.C: New.

From-SVN: r218894

10 years agoDaily bump.
GCC Administrator [Fri, 19 Dec 2014 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r218882

10 years agoDaily bump.
GCC Administrator [Thu, 18 Dec 2014 00:16:30 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r218852

10 years agobackport: re PR rtl-optimization/64010 ([msp430-elf] struct function dereference...
Ulrich Weigand [Wed, 17 Dec 2014 15:07:28 +0000 (15:07 +0000)] 
backport: re PR rtl-optimization/64010 ([msp430-elf] struct function dereference clobbers parameter passed to function)

2014-12-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>

Backport from mainline
2014-12-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>

PR rtl-optimization/64010
* reload.c (push_reload): Before reusing a register contained
in an operand as input reload register, ensure that it is not
used in CALL_INSN_FUNCTION_USAGE.

From-SVN: r218821

10 years agore PR libstdc++/64302 (The match_results::cbegin()/cend() return incorrect results)
Tim Shen [Wed, 17 Dec 2014 10:27:21 +0000 (10:27 +0000)] 
re PR libstdc++/64302 (The match_results::cbegin()/cend() return incorrect results)

2014-12-17  Tim Shen  <timshen@google.com>

PR libstdc++/64302
PR libstdc++/64303
Backported form mainline
2014-12-17  Tim Shen  <timshen@google.com>

* include/bits/regex.h (match_results::cbegin, match_results::cend,
regex_token_iterator::regex_token_iterator,
regex_token_iterator::_M_normalize_result): Fix match_results cbegin
and cend and regex_token_iterator::_M_result invariant.
* include/bits/regex.tcc: Fix regex_token_iterator::_M_result invariant.
* testsuite/28_regex/iterators/regex_token_iterator/64303.cc: Testcase.

From-SVN: r218814

10 years agoDaily bump.
GCC Administrator [Wed, 17 Dec 2014 00:16:26 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r218804

10 years agoBackport of https://gcc.gnu.org/ml/gcc-patches/2014-10/msg02980.html
Ian Lance Taylor [Tue, 16 Dec 2014 23:22:38 +0000 (23:22 +0000)] 
Backport of  https://gcc.gnu.org/ml/gcc-patches/2014-10/msg02980.html
from trunk.

From-SVN: r218800

10 years agoBackport https://gcc.gnu.org/ml/gcc-patches/2014-10/msg02994.html to
Ian Lance Taylor [Tue, 16 Dec 2014 23:05:50 +0000 (23:05 +0000)] 
Backport https://gcc.gnu.org/ml/gcc-patches/2014-10/msg02994.html to
gcc 4.9 branch.

From-SVN: r218799

10 years agoDaily bump.
GCC Administrator [Tue, 16 Dec 2014 00:16:31 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r218771

10 years agore PR middle-end/58624 (gcc internal compiler error: Segmentaion fault in insert_to_a...
Jakub Jelinek [Mon, 15 Dec 2014 10:47:14 +0000 (11:47 +0100)] 
re PR middle-end/58624 (gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash)

PR middle-end/58624
Backported from mainline
2014-03-07  Jason Merrill  <jason@redhat.com>

* g++.dg/plugin/plugin.exp (DEFAULT_CXXFLAGS): Remove -ansi.

From-SVN: r218741

10 years agore PR sanitizer/64265 (r217669 broke tsan)
Jakub Jelinek [Mon, 15 Dec 2014 09:46:21 +0000 (10:46 +0100)] 
re PR sanitizer/64265 (r217669 broke tsan)

PR sanitizer/64265
* tsan.c (instrument_func_entry): Insert __tsan_func_entry
call on edge from entry block to single succ instead
of after labels of single succ of entry block.

From-SVN: r218735

10 years agoDaily bump.
GCC Administrator [Mon, 15 Dec 2014 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r218724

10 years agoPass unpromoted argument to promote_function_mode
H.J. Lu [Sun, 14 Dec 2014 16:07:03 +0000 (16:07 +0000)] 
Pass unpromoted argument to promote_function_mode

This patch updates setup_incoming_promotions in combine.c to match what
is actually passed in assign_parm_setup_reg in function.c.

Backported from mainline:

gcc/

PR rtl-optimization/64037
* combine.c (setup_incoming_promotions): Pass the argument
before any promotions happen to promote_function_mode.

gcc/testsuite/

PR rtl-optimization/64037
* g++.dg/pr64037.C: New test.

From-SVN: r218721

10 years agoDon't assert "alg != libcall" for -minline-stringops-dynamically
H.J. Lu [Sun, 14 Dec 2014 13:05:06 +0000 (13:05 +0000)] 
Don't assert "alg != libcall" for -minline-stringops-dynamically

Backported from mainline:

gcc/

PR target/64200
* config/i386/i386.c (decide_alg): Don't assert "alg != libcall"
for TARGET_INLINE_STRINGOPS_DYNAMICALLY.

gcc/testsuite/

PR target/64200
* gcc.target/i386/memcpy-strategy-4.c: New test.

From-SVN: r218718

10 years agoDaily bump.
GCC Administrator [Sun, 14 Dec 2014 00:16:27 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r218713

10 years agore PR libstdc++/64239 (regex_iterator::operator= should copy match_results::position)
Tim Shen [Sat, 13 Dec 2014 23:10:39 +0000 (23:10 +0000)] 
re PR libstdc++/64239 (regex_iterator::operator= should copy match_results::position)

PR libstdc++/64239
* include/bits/regex.h (match_results<>::match_results,
match_results<>::operator=, match_results<>::position,
match_results<>::swap): Fix ctor/assign/swap.
* include/bits/regex.tcc: (__regex_algo_impl<>,
regex_iterator<>::operator++): Set match_results::_M_begin as
"start position".
* testsuite/28_regex/iterators/regex_iterator/char/
string_position_01.cc: Test cases.

From-SVN: r218711

10 years agobackport: re PR tree-optimization/64269 (ICE with -O3 enabled on Ubuntu 14.04)
Jakub Jelinek [Sat, 13 Dec 2014 08:43:09 +0000 (09:43 +0100)] 
backport: re PR tree-optimization/64269 (ICE with -O3 enabled on Ubuntu 14.04)

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

PR tree-optimization/64269
* tree-ssa-forwprop.c (simplify_builtin_call): Bail out if
len2 or diff are too large.

* gcc.c-torture/compile/pr64269.c: New test.

From-SVN: r218703