gcc.git
10 years agoDaily bump.
GCC Administrator [Wed, 2 Apr 2014 00:17:10 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r209007

10 years agobackwards_compatibility.xml (backwards.third.headers): Update link.
Jonathan Wakely [Tue, 1 Apr 2014 21:31:02 +0000 (22:31 +0100)]
backwards_compatibility.xml (backwards.third.headers): Update link.

* doc/xml/manual/backwards_compatibility.xml (backwards.third.headers):
Update link.
* doc/xml/manual/policy_data_structures_biblio.xml (bibliography):
Fix broken links.
* doc/xml/manual/shared_ptr.xml (shared_ptr.impl): Likewise.
* doc/xml/manual/using_exceptions.xml (bibliography): Likewise.
* doc/xml/manual/concurrency_extensions.xml
(manual.ext.concurrency.impl.atomic_fallbacks): Likewise.
* doc/html/*: Regenerate.

From-SVN: r209002

10 years agofix gcc/cp/ChangeLog formatting
Jason Merrill [Tue, 1 Apr 2014 21:27:25 +0000 (17:27 -0400)]
fix gcc/cp/ChangeLog formatting

From-SVN: r209001

10 years agopt.c (process_partial_specialization): Say "not deducible" rather than "not used".
Jason Merrill [Tue, 1 Apr 2014 21:25:42 +0000 (17:25 -0400)]
pt.c (process_partial_specialization): Say "not deducible" rather than "not used".

* pt.c (process_partial_specialization): Say "not deducible"
rather than "not used".  Use inform.

From-SVN: r209000

10 years agore PR c++/60374 ([c++11] ICE with invalid template specialization)
Jason Merrill [Tue, 1 Apr 2014 21:25:20 +0000 (17:25 -0400)]
re PR c++/60374 ([c++11] ICE with invalid template specialization)

PR c++/60374
* pt.c (coerce_template_parms): Check that the pack expansion
pattern works with the first matching parameter.

From-SVN: r208999

10 years agoinit.c (perform_member_init): Homogenize uninitialized diagnostics.
Fabien Chêne [Tue, 1 Apr 2014 21:14:04 +0000 (23:14 +0200)]
init.c (perform_member_init): Homogenize uninitialized diagnostics.

2014-04-01  Fabien Chêne  <fabien@gcc.gnu.org>

* cp/init.c (perform_member_init): Homogenize uninitialized
diagnostics.

2014-04-01  Fabien Chêne  <fabien@gcc.gnu.org>

        * g++.dg/init/ctor4.C: Adjust.
* g++.dg/init/ctor4-1.C: New.
* g++.dg/cpp0x/defaulted2.C: Adjust.

From-SVN: r208998

10 years agore PR c++/60708 (An array temporary causes an ICE in gimplify)
Jason Merrill [Tue, 1 Apr 2014 19:14:00 +0000 (15:14 -0400)]
re PR c++/60708 (An array temporary causes an ICE in gimplify)

PR c++/60708
* call.c (build_array_conv): Call complete_type.

From-SVN: r208996

10 years agore PR c++/60713 (ICE in iterative_hash_expr)
Jason Merrill [Tue, 1 Apr 2014 19:13:50 +0000 (15:13 -0400)]
re PR c++/60713 (ICE in iterative_hash_expr)

PR c++/60713
* typeck2.c (PICFLAG_SIDE_EFFECTS): New.
(picflag_from_initializer): Return it.
(process_init_constructor): Handle it.

From-SVN: r208995

10 years agoextend.texi (PowerPC AltiVec/VSX Built-in Functions): Document vec_vgbbd.
Michael Meissner [Tue, 1 Apr 2014 18:52:01 +0000 (18:52 +0000)]
extend.texi (PowerPC AltiVec/VSX Built-in Functions): Document vec_vgbbd.

2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>

* doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
Document vec_vgbbd.

From-SVN: r208993

10 years agore PR c++/60642 (Unclear diagnostic with invalid use of abi_tag attribute on explicit...
Jason Merrill [Tue, 1 Apr 2014 17:49:38 +0000 (13:49 -0400)]
re PR c++/60642 (Unclear diagnostic with invalid use of abi_tag attribute on explicit instantiation)

PR c++/60642
* decl2.c (is_late_template_attribute): Don't defer abi_tag.
* mangle.c (write_unqualified_name): Fix abi_tag on templates.
* pt.c (get_template_info): Handle NAMESPACE_DECL.
(most_general_template): Handle more kinds of template.
* tree.c (handle_abi_tag_attribute): Ignore abi_tag on template
instantiations and specializations.

From-SVN: r208992

10 years agore PR target/60704 (ICE: in extract_constrain_insn_cached, at recog.c:2156 with ...
Richard Henderson [Tue, 1 Apr 2014 16:39:18 +0000 (09:39 -0700)]
re PR target/60704 (ICE: in extract_constrain_insn_cached, at recog.c:2156 with -flive-range-shrinkage -march=amdfam10)

PR target/60704

        * gcc.dg/pr60704.c: New file.

From-SVN: r208990

10 years agore PR target/60704 (ICE: in extract_constrain_insn_cached, at recog.c:2156 with ...
Richard Henderson [Tue, 1 Apr 2014 14:40:27 +0000 (07:40 -0700)]
re PR target/60704 (ICE: in extract_constrain_insn_cached, at recog.c:2156 with -flive-range-shrinkage -march=amdfam10)

PR target/60704

        * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
        alternative enabled before register allocation.

From-SVN: r208989

10 years agonios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
Chung-Lin Tang [Tue, 1 Apr 2014 12:43:59 +0000 (12:43 +0000)]
nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.

2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>

* config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
* config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
typo.
(nios2_large_got_address): Remove unneeded 'sym' parameter.
(nios2_got_address): Update nios2_large_got_address call site.
(nios2_delegitimize_address): New function.
(TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
* config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
(LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.

From-SVN: r208988

10 years agonetbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32 for -mabi=32.
Martin Husemann [Tue, 1 Apr 2014 10:40:57 +0000 (10:40 +0000)]
netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32 for -mabi=32.

gcc/
2014-04-01  Martin Husemann  <martin@duskware.de>

* config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
for -mabi=32.

From-SVN: r208985

10 years agore PR target/60604 (GCC incorrectly compiles s_csinh function on MIPS32 (32bit fp))
Richard Sandiford [Tue, 1 Apr 2014 10:38:19 +0000 (10:38 +0000)]
re PR target/60604 (GCC incorrectly compiles s_csinh function on MIPS32 (32bit fp))

gcc/
PR rtl-optimization/60604
* recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
check from register_operand.
(register_operand): Redefine in terms of general_operand.
(nonmemory_operand): Use register_operand for the non-constant cases.

From-SVN: r208984

10 years agoFix typo in gcc/testsuite/ChangeLog.
Bin Cheng [Tue, 1 Apr 2014 10:00:26 +0000 (10:00 +0000)]
Fix typo in gcc/testsuite/ChangeLog.

From-SVN: r208981

10 years agore PR tree-optimization/60363 (logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom...
Bin Cheng [Tue, 1 Apr 2014 09:56:29 +0000 (09:56 +0000)]
re PR tree-optimization/60363 (logical_op_short_circuit, gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4)

PR target/60363
* gcc.target/tree-ssa/ssa-dom-thread-4.c: Xfail for
logical_op_short_circuit targets.

From-SVN: r208980

10 years agofmt_en.f90: Skip unsupported rounding tests.
Dominique d'Humieres [Tue, 1 Apr 2014 09:21:53 +0000 (11:21 +0200)]
fmt_en.f90: Skip unsupported rounding tests.

libfortran/60128
* gfortran.dg/fmt_en.f90: Skip unsupported rounding tests.
XFAIL for i?86-*-solaris2.9* and hppa*-*-hpux*.

From-SVN: r208979

10 years agogimple.h (struct gimple_statement_base): Align subcode to 16 bits.
Richard Biener [Tue, 1 Apr 2014 08:55:58 +0000 (08:55 +0000)]
gimple.h (struct gimple_statement_base): Align subcode to 16 bits.

2014-04-01  Richard Biener  <rguenther@suse.de>

* gimple.h (struct gimple_statement_base): Align subcode to
16 bits.

From-SVN: r208978

10 years ago* doc/invoke.texi (mapp-regs): Clarify.
Sebastian Huber [Tue, 1 Apr 2014 08:20:42 +0000 (08:20 +0000)]
* doc/invoke.texi (mapp-regs): Clarify.

From-SVN: r208973

10 years agosimple-object.c (simple_object_internal_write): Handle EINTR and short writes.
Richard Biener [Tue, 1 Apr 2014 07:45:48 +0000 (07:45 +0000)]
simple-object.c (simple_object_internal_write): Handle EINTR and short writes.

2014-04-01  Richard Biener  <rguenther@suse.de>

libiberty/
* simple-object.c (simple_object_internal_write): Handle
EINTR and short writes.

From-SVN: r208972

10 years agore PR c++/44859 (missed warning: returning reference to temporary)
Patrick Palka [Tue, 1 Apr 2014 00:48:33 +0000 (20:48 -0400)]
re PR c++/44859 (missed warning: returning reference to temporary)

PR c++/44859
* typeck.c (maybe_warn_about_returning_address_of_local): Unwrap
COMPONENT_REFs and ARRAY_REFs sooner.

From-SVN: r208970

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

From-SVN: r208969

10 years agore PR libstdc++/60270 ([C++1y] std::quoted is too eager to clear the string)
Lars Gullik Bjønnes [Mon, 31 Mar 2014 18:46:23 +0000 (18:46 +0000)]
re PR libstdc++/60270 ([C++1y] std::quoted is too eager to clear the string)

2014-03-31  Lars Gullik Bjønnes  <larsbj@gullik.org>
    Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/60270
* include/std/iomanip (_Quoted_string operator>>): Do not clear
string if input is not quoted.
* testsuite/27_io/manipulators/standard/char/60270.cc: New.

Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r208966

10 years ago* libsupc++/eh_ptr.cc: Improve static_assert messages.
Jonathan Wakely [Mon, 31 Mar 2014 18:16:14 +0000 (19:16 +0100)]
* libsupc++/eh_ptr.cc: Improve static_assert messages.

From-SVN: r208965

10 years agoAdd a testcase for PR rtl-optimization/60700
H.J. Lu [Mon, 31 Mar 2014 15:24:56 +0000 (15:24 +0000)]
Add a testcase for PR rtl-optimization/60700

PR rtl-optimization/60700
* gcc.target/i386/pr60700.c: New test.

From-SVN: r208962

10 years agoAdjust testcase for softfp cases.
Ramana Radhakrishnan [Mon, 31 Mar 2014 14:21:58 +0000 (14:21 +0000)]
Adjust testcase for softfp cases.

PR target/60650

2014-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

PR target/60650
* gcc.target/arm/pr60650.c: Adjust command line options.

From-SVN: r208961

10 years ago* sv.po: Update.
Joseph Myers [Mon, 31 Mar 2014 14:11:42 +0000 (15:11 +0100)]
* sv.po: Update.

From-SVN: r208960

10 years agoavx512fintrin.h (__v32hi): Define type.
Ulrich Drepper [Mon, 31 Mar 2014 13:24:13 +0000 (13:24 +0000)]
avx512fintrin.h (__v32hi): Define type.

2014-03-27  Ulrich Drepper  <drepper@gmail.com>

        * config/i386/avx512fintrin.h (__v32hi): Define type.
        (__v64qi): Likewise.
        (_mm512_set1_epi8): Define.
        (_mm512_set1_epi16): Define.
        (_mm512_set4_epi32): Define.
        (_mm512_set4_epi64): Define.
        (_mm512_set4_pd): Define.
        (_mm512_set4_ps): Define.
        (_mm512_setr4_epi64): Define.
        (_mm512_setr4_epi32): Define.
        (_mm512_setr4_pd): Define.
        (_mm512_setr4_ps): Define.
        (_mm512_setzero_epi32): Define.
--This line, and those belowi will be ignored--

M    gcc/ChangeLog
M    gcc/config/i386/avx512fintrin.h

From-SVN: r208959

10 years agoFix 18_support/exception_ptr/60612-*.cc on non-C99 targets
Rainer Orth [Mon, 31 Mar 2014 13:14:12 +0000 (13:14 +0000)]
Fix 18_support/exception_ptr/60612-*.cc on non-C99 targets

* testsuite/18_support/exception_ptr/60612-terminate.cc
(terminate, f): Wrap in _GLIBCXX_USE_C99.
* testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise.

From-SVN: r208958

10 years agore PR middle-end/60647 (ICE in visit_ref_for_mod_analysis, at ipa-prop.c:2112)
Martin Jambor [Mon, 31 Mar 2014 12:28:33 +0000 (14:28 +0200)]
re PR middle-end/60647 (ICE in visit_ref_for_mod_analysis, at ipa-prop.c:2112)

2014-03-31  Martin Jambor  <mjambor@suse.cz>

PR middle-end/60647
* tree-sra.c (callsite_has_enough_arguments_p): Renamed to
callsite_arguments_match_p.  Updated all callers.  Also check types of
corresponding formal parameters and actual arguments.
(not_all_callers_have_enough_arguments_p) Renamed to
some_callers_have_mismatched_arguments_p.

testsuite/
* gcc.dg/pr60647-1.c: New test.
* gcc.dg/pr60647-2.c: Likewise.

From-SVN: r208957

10 years agopr55113_0.c: Skip also for 32bit multilib on x86_64.
Richard Biener [Mon, 31 Mar 2014 10:12:52 +0000 (10:12 +0000)]
pr55113_0.c: Skip also for 32bit multilib on x86_64.

2014-03-31  Richard Biener  <rguenther@suse.de>

* gcc.dg/lto/pr55113_0.c: Skip also for 32bit multilib on x86_64.

From-SVN: r208956

10 years agotree-inline.c (copy_loops): Add missed copy of 'safelen'.
Yuri Rumyantsev [Mon, 31 Mar 2014 08:20:32 +0000 (08:20 +0000)]
tree-inline.c (copy_loops): Add missed copy of 'safelen'.

gcc/
* tree-inline.c (copy_loops): Add missed copy of 'safelen'.

From-SVN: r208955

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

From-SVN: r208953

10 years agore PR target/60034 ("invalid expression as operand" in aarch64 inline asm)
Kugan Vivekanandarajah [Sun, 30 Mar 2014 22:41:59 +0000 (22:41 +0000)]
re PR target/60034 ("invalid expression as operand" in aarch64 inline asm)

PR target/60034
* aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
section anchor.

PR target/60034
* gcc.target/aarch64/pr60034.c: New file.

From-SVN: r208949

10 years agosse.md (FMAMODE_NOVF512): New mode iterator.
Uros Bizjak [Sun, 30 Mar 2014 17:38:57 +0000 (19:38 +0200)]
sse.md (FMAMODE_NOVF512): New mode iterator.

* config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
(<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
Split out
<sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
Use FMAMODE_NOVF512 mode iterator.
(<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
(<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
(<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
(<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
Split out
<sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
Use VF_128_256 mode iterator.
(<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
Ditto.

From-SVN: r208948

10 years agore PR ada/60703 (System.Address not preelaborable on MIPS)
Eric Botcazou [Sun, 30 Mar 2014 15:47:43 +0000 (15:47 +0000)]
re PR ada/60703 (System.Address not preelaborable on MIPS)

PR ada/60703
* system-linux-alpha.ads: Adjust for Ada 2005.
* system-linux-mips.ads: Likewise.
* system-linux-mips64el.ads: Likewise.
* system-linux-mipsel.ads: Likewise.
* system-linux-s390.ads: Likewise.
* system-linux-s390x.ads: Likewise.
* system-linux-sparc.ads: Likewise.
* system-linux-sparcv9.ads: Likewise.
* system-rtems.ads: Likewise.
* system-vxworks-arm.ads: Likewise.

From-SVN: r208945

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

From-SVN: r208944

10 years agore PR c++/60626 ([c++1y] ICE with pointer to function with auto parameter)
Adam Butcher [Sat, 29 Mar 2014 19:23:44 +0000 (19:23 +0000)]
re PR c++/60626 ([c++1y] ICE with pointer to function with auto parameter)

Fix PR c++/60626

PR c++/60626
* parser.c (cp_parser_init_declarator): Handle erroneous generic type
usage in non-functions with pushed scope.

PR c++/60626
* g++.dg/cpp1y/pr60626.C: New testcase.

From-SVN: r208940

10 years agopr45416.c: Allow bextr on x86.
Joseph Myers [Sat, 29 Mar 2014 15:39:34 +0000 (15:39 +0000)]
pr45416.c: Allow bextr on x86.

* gcc.dg/pr45416.c: Allow bextr on x86.
* gcc.target/i386/fma4-builtin.c, gcc.target/i386/fma4-fma-2.c,
gcc.target/i386/fma4-fma.c, gcc.target/i386/fma4-vector-2.c,
gcc.target/i386/fma4-vector.c: Use -mno-fma.
* gcc.target/i386/l_fma_double_1.c,
gcc.target/i386/l_fma_double_2.c,
gcc.target/i386/l_fma_double_3.c,
gcc.target/i386/l_fma_double_4.c,
gcc.target/i386/l_fma_double_5.c,
gcc.target/i386/l_fma_double_6.c, gcc.target/i386/l_fma_float_1.c,
gcc.target/i386/l_fma_float_2.c, gcc.target/i386/l_fma_float_3.c,
gcc.target/i386/l_fma_float_4.c, gcc.target/i386/l_fma_float_5.c,
gcc.target/i386/l_fma_float_6.c: Use -mno-fma4.
* gcc.target/i386/pr27971.c: Use -mno-tbm.
* gcc.target/i386/pr42542-4a.c: Use -mno-avx.
* gcc.target/i386/pr59390.c: Use -mno-fma -mno-fma4.

From-SVN: r208939

10 years agore PR target/60648 (ICE (segmentation fault) in expand_binop)
Jakub Jelinek [Sat, 29 Mar 2014 11:10:25 +0000 (12:10 +0100)]
re PR target/60648 (ICE (segmentation fault) in expand_binop)

PR target/60648
* g++.dg/pr60648.C: Move test to...
* g++.dg/torture/pr60648.C: ... here.  Run on all targets, remove
dg-options, add for fpic targets dg-additional-options -fPIC.

From-SVN: r208933

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

From-SVN: r208930

10 years agocgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear static chain if needed.
Jan Hubicka [Fri, 28 Mar 2014 22:19:27 +0000 (22:19 +0000)]
cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear static chain if needed.

* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
static chain if needed.
* g++.dg/torture/pr60659.C: New testcase.

From-SVN: r208927

10 years agore PR target/60697 ([aarch64] LRA ICE (Segfault) while building 435.gromacs)
Vladimir Makarov [Fri, 28 Mar 2014 22:14:36 +0000 (22:14 +0000)]
re PR target/60697 ([aarch64] LRA ICE (Segfault) while building 435.gromacs)

2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>

PR target/60697
* lra-constraints.c (index_part_to_reg): New.
(process_address): Use it.

2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>

PR target/60697
* gcc.target/aarch64/pr60697.c: New.

From-SVN: r208926

10 years agoFixup ChangeLog formatting.
Jakub Jelinek [Fri, 28 Mar 2014 22:10:12 +0000 (23:10 +0100)]
Fixup ChangeLog formatting.

From-SVN: r208925

10 years agore PR target/60648 (ICE (segmentation fault) in expand_binop)
Jeff Law [Fri, 28 Mar 2014 22:02:32 +0000 (16:02 -0600)]
re PR target/60648 (ICE (segmentation fault) in expand_binop)

PR target/60648
       * expr.c (do_tablejump): Use simplify_gen_binary rather than
       gen_rtx_{PLUS,MULT} to build up the address expression.

       * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
       creating non-canonical RTL.

       PR target/60648
       * g++.dg/pr60648.C: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r208924

10 years agore PR c++/60573 ([c++1y] ICE with defining generic function of nested class in class...
Adam Butcher [Fri, 28 Mar 2014 20:41:45 +0000 (20:41 +0000)]
re PR c++/60573 ([c++1y] ICE with defining generic function of nested class in class scope)

Fix PR c++/60573

PR c++/60573
* name-lookup.h (cp_binding_level): New transient field defining_class_p
to indicate whether a scope is in the process of defining a class.
* semantics.c (begin_class_definition): Set defining_class_p.
* name-lookup.c (leave_scope): Reset defining_class_p.
* parser.c (synthesize_implicit_template_parm): Use cp_binding_level::
defining_class_p rather than TYPE_BEING_DEFINED as the predicate for
unwinding to class-defining scope to handle the erroneous definition of
a generic function of an arbitrarily nested class within an enclosing
class.

PR c++/60573
* g++.dg/cpp1y/pr60573.C: New testcase.

From-SVN: r208921

10 years agoAdd PR60576 to the ChangeLog entry.
Jakub Jelinek [Fri, 28 Mar 2014 20:30:36 +0000 (21:30 +0100)]
Add PR60576 to the ChangeLog entry.

From-SVN: r208920

10 years agore PR fortran/60576 (FAIL: gfortran.dg/assumed_rank_7.f90)
Mikael Morin [Fri, 28 Mar 2014 20:04:01 +0000 (20:04 +0000)]
re PR fortran/60576 (FAIL: gfortran.dg/assumed_rank_7.f90)

2014-03-28  Mikael Morin  <mikael@gcc.gnu.org>
            Tobias Burnus  <burnus@net-b.de>

        PR fortran/60576
        * trans-expr.c (gfc_conv_derived_to_class): Avoid
        generation of out-of-bounds range expr.

Co-Authored-By: Tobias Burnus <burnus@net-b.de>
From-SVN: r208918

10 years agore PR ipa/60243 (IPA is slow on large cgraph tree)
Jan Hubicka [Fri, 28 Mar 2014 19:50:28 +0000 (20:50 +0100)]
re PR ipa/60243 (IPA is slow on large cgraph tree)

PR ipa/60243
* ipa-inline.c (want_inline_small_function_p): Short circuit large
functions; reorganize to make cheap checks first.
(inline_small_functions): Do not estimate growth when dumping;
it is expensive.
* ipa-inline.h (inline_summary): Add min_size.
(growth_likely_positive): New function.
* ipa-inline-analysis.c (dump_inline_summary): Add min_size.
(set_cond_stmt_execution_predicate): Cleanup.
(estimate_edge_size_and_time): Compute min_size.
(estimate_calls_size_and_time): Likewise.
(estimate_node_size_and_time): Likewise.
(inline_update_overall_summary): Update min_size.
(do_estimate_edge_time): Likewise.
(do_estimate_edge_size): Update.
(do_estimate_edge_hints): Update.
(growth_likely_positive): New function.

From-SVN: r208916

10 years agore PR target/60693 (ICE on funny memcpy)
Jakub Jelinek [Fri, 28 Mar 2014 19:31:17 +0000 (20:31 +0100)]
re PR target/60693 (ICE on funny memcpy)

PR target/60693
* config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
also if addr has VOIDmode.

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

From-SVN: r208915

10 years agopr59940.c (si): Use 32-bit SI mode instead of int.
Vishnu K S [Fri, 28 Mar 2014 19:19:03 +0000 (19:19 +0000)]
pr59940.c (si): Use 32-bit SI mode instead of int.

2014-03-28  Vishnu K S  <Vishnu.k_s@atmel.com>

* gcc.dg/pr59940.c (si): Use 32-bit SI mode instead of int.

From-SVN: r208914

10 years agore PR fortran/60677 (FAIL: gfortran.dg/ichar_3.f90 -O (test for excess errors))
Mikael Morin [Fri, 28 Mar 2014 18:58:44 +0000 (18:58 +0000)]
re PR fortran/60677 (FAIL: gfortran.dg/ichar_3.f90  -O  (test for excess errors))

fortran/
        PR fortran/60677
        * trans-intrinsic.c (gfc_conv_intrinsic_ichar): Enlarge argument
        list buffer.

From-SVN: r208913

10 years agore PR c++/60689 (Bogus error with atomic::exchange)
Jakub Jelinek [Fri, 28 Mar 2014 18:16:32 +0000 (19:16 +0100)]
re PR c++/60689 (Bogus error with atomic::exchange)

PR c++/60689
* c-tree.h (c_build_function_call_vec): New prototype.
* c-typeck.c (build_function_call_vec): Don't call
resolve_overloaded_builtin here.
(c_build_function_call_vec): New wrapper function around
build_function_call_vec.  Call resolve_overloaded_builtin here.
(convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
Call c_build_function_call_vec instead of build_function_call_vec.
* c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
* c-decl.c (finish_decl): Likewise.

* c-common.c (add_atomic_size_parameter): When creating new
params vector, push the size argument first.

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

From-SVN: r208912

10 years ago[ARM/AArch64][2/2] Crypto intrinsics tuning for Cortex-A53 - pipeline description
Kyrylo Tkachov [Fri, 28 Mar 2014 17:24:52 +0000 (17:24 +0000)]
[ARM/AArch64][2/2] Crypto intrinsics tuning for Cortex-A53 - pipeline description

* config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
* config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
Declare extern.
* config/arm/cortex-a53.md: Add reservations and bypass for crypto
instructions as well as AdvancedSIMD loads.

From-SVN: r208910

10 years ago[ARM/AArch64][1/2] Crypto intrinsics tuning for Cortex-A53 - "type" Attribute restruc...
Kyrylo Tkachov [Fri, 28 Mar 2014 17:22:47 +0000 (17:22 +0000)]
[ARM/AArch64][1/2] Crypto intrinsics tuning for Cortex-A53 - "type" Attribute restructuring

     * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
     Use crypto_aese type.
     (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
     * config/arm/arm.md (is_neon_type): Replace crypto_aes with
     crypto_aese, crypto_aesmc.  Move to types.md.
     * config/arm/types.md (crypto_aes): Split into crypto_aese,
     crypto_aesmc.
     * config/arm/iterators.md (crypto_type): Likewise.

From-SVN: r208908

10 years agore PR c++/58678 (pykde4-4.11.2 link error (devirtualization too trigger happy))
Jakub Jelinek [Fri, 28 Mar 2014 17:17:56 +0000 (18:17 +0100)]
re PR c++/58678 (pykde4-4.11.2 link error (devirtualization too trigger happy))

PR c++/58678
* g++.dg/abi/thunk6.C: Scan assembler for _ZTv0_n32_N1CD1Ev
only for lp64 targets and scan for _ZTv0_n16_N1CD1Ev for ilp32
targets.

From-SVN: r208907

10 years agocgraph.c: Include expr.h and tree-dfa.h.
Jan Hubicka [Fri, 28 Mar 2014 15:30:58 +0000 (16:30 +0100)]
cgraph.c: Include expr.h and tree-dfa.h.

* cgraph.c: Include expr.h and tree-dfa.h.
(cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn; remove LHS.

From-SVN: r208901

10 years agore PR target/60675 ([aarch64] internal compiler error: Max. number of generated reloa...
Vladimir Makarov [Fri, 28 Mar 2014 15:27:58 +0000 (15:27 +0000)]
re PR target/60675 ([aarch64] internal compiler error: Max. number of generated reload insns per insn is achieved (90))

2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>

PR target/60675
* lra-assigns.c (find_hard_regno_for): Remove unavailable hard
regs from checking multi-reg pseudos.

2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>

PR target/60675
* gcc.target/aarch64/pr60675.C: New.

From-SVN: r208900

10 years agosimple-object.c (simple_object_internal_read): Handle EINTR and short reads.
Richard Biener [Fri, 28 Mar 2014 14:05:49 +0000 (14:05 +0000)]
simple-object.c (simple_object_internal_read): Handle EINTR and short reads.

2014-03-28  Richard Biener  <rguenther@suse.de>

libiberty/
* simple-object.c (simple_object_internal_read): Handle
EINTR and short reads.

lto-plugin/
* lto-plugin.c (process_symtab): Handle EINTR and short reads.

From-SVN: r208898

10 years agossa-dom-thread-4.c: Remove s390 special option.
Andreas Krebbel [Fri, 28 Mar 2014 13:44:58 +0000 (13:44 +0000)]
ssa-dom-thread-4.c: Remove s390 special option.

2014-03-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.dg/tree-ssa/ssa-dom-thread-4.c: Remove s390 special
          option.
* lib/target-supports.exp: Return true for s390
          in check_effective_logical_op_short_circuit.

From-SVN: r208897

10 years agoFix A12 multilib rule.
Ramana Radhakrishnan [Fri, 28 Mar 2014 13:43:21 +0000 (13:43 +0000)]
Fix A12 multilib rule.

This affects only arm-none-eabi targets and those using t-aprofile in
their multilib lists. The problem here is that when the A12 support
was added, we mistakenly added this to the MULTILIB_MATCHES rule for
the A15 rather than putting out a separate line for this.

Fixed thusly and verified that the correct multilibs are now chosen.

     * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.

From-SVN: r208896

10 years agors6000.c (fusion_gpr_load_p): Refuse optimization if it would clobber the stack point...
Ulrich Weigand [Fri, 28 Mar 2014 12:42:40 +0000 (12:42 +0000)]
rs6000.c (fusion_gpr_load_p): Refuse optimization if it would clobber the stack pointer, even temporarily.

* config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
if it would clobber the stack pointer, even temporarily.

From-SVN: r208895

10 years agoavx512f-vshuff32x4-2.c: Fix initialization of second source operand.
Kirill Yukhin [Fri, 28 Mar 2014 11:10:13 +0000 (11:10 +0000)]
avx512f-vshuff32x4-2.c: Fix initialization of second source operand.

gcc/testsuite
* gcc.target/i386/avx512f-vshuff32x4-2.c: Fix initialization
  of second source operand.
* gcc.target/i386/avx512f-vshuff64x2-2.c: Ditto.
* gcc.target/i386/avx512f-vshufi32x4-2.c: Ditto.
* gcc.target/i386/avx512f-vshufi64x2-2.c: Ditto.

From-SVN: r208894

10 years agore PR ipa/60315 (template constructor switch optimization)
Jakub Jelinek [Fri, 28 Mar 2014 10:25:34 +0000 (11:25 +0100)]
re PR ipa/60315 (template constructor switch optimization)

PR ipa/60315
* g++.dg/torture/pr60315.C: Add -std=c++11 to dg-options.

From-SVN: r208893

10 years ago* mode-switching.c: Make small adjustments to the top comment.
Eric Botcazou [Fri, 28 Mar 2014 10:20:41 +0000 (10:20 +0000)]
* mode-switching.c: Make small adjustments to the top comment.

From-SVN: r208892

10 years agocilk-plus-dg.exp: New.
Tobias Burnus [Fri, 28 Mar 2014 06:57:54 +0000 (07:57 +0100)]
cilk-plus-dg.exp: New.

2014-03-28  Tobias Burnus  <burnus@net-b.de>

        * lib/cilk-plus-dg.exp: New.
        * g++.dg/cilk-plus/cilk-plus.exp: Use it.
        * gcc.dg/cilk-plus/cilk-plus.exp: Use it.

From-SVN: r208889

10 years agore PR other/59545 (Signed integer overflow issues)
Ian Lance Taylor [Fri, 28 Mar 2014 05:20:48 +0000 (05:20 +0000)]
re PR other/59545 (Signed integer overflow issues)

PR other/59545
compiler: Fix bogus invalid static_cast to Unary_expression.

From-SVN: r208888

10 years agoDaily bump.
GCC Administrator [Fri, 28 Mar 2014 00:17:18 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r208886

10 years agore PR fortran/60522 (WHERE construct causes an ICE in gfc_trans_where_2)
Thomas Koenig [Thu, 27 Mar 2014 22:21:35 +0000 (22:21 +0000)]
re PR fortran/60522 (WHERE construct causes an ICE in gfc_trans_where_2)

2014-04-27  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/60522
* frontend-passes.c (cfe_code):  Do not walk subtrees
for WHERE.

2014-04-27  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/60522
* gfortran.dg/where_4.f90:  New test case.

From-SVN: r208883

10 years agoextend.texi (PowerPC AltiVec/VSX Built-in Functions): Document use of vec_xxsldwi...
Michael Meissner [Thu, 27 Mar 2014 21:43:27 +0000 (21:43 +0000)]
extend.texi (PowerPC AltiVec/VSX Built-in Functions): Document use of vec_xxsldwi and vec_xxpermdi builtins.

2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>

* doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
Document use of vec_xxsldwi and vec_xxpermdi builtins.

From-SVN: r208880

10 years agore PR fortran/58880 ([OOP] ICE on valid with FINAL function and type extension)
Tobias Burnus [Thu, 27 Mar 2014 21:17:43 +0000 (22:17 +0100)]
re PR fortran/58880 ([OOP] ICE on valid with FINAL function and type extension)

2014-03-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/58880
        * trans-expr.c (gfc_conv_scalar_to_descriptor): Fix handling
        of nonpointers.

2014-03-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/58880
        * gfortran.dg/finalize_24.f90: New.

From-SVN: r208879

10 years agore PR testsuite/60672 (FAIL: g++.dg/cpp1y/auto-fn25.C -std=gnu++1y (test for errors...
Michael Meissner [Thu, 27 Mar 2014 20:07:16 +0000 (20:07 +0000)]
re PR testsuite/60672 (FAIL: g++.dg/cpp1y/auto-fn25.C -std=gnu++1y  (test for errors, line 7))

[gcc]
2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>

* config/rs6000/constraints.md (wD constraint): New constraint to
match the constant integer to get the top DImode/DFmode out of a
vector in a VSX register.

* config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
match the constant integer to get the top DImode/DFmode out of a
vector in a VSX register.

* config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
for ISA 2.07.

* config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
vbpermq builtins.

* config/rs6000/rs6000.c (rs6000_debug_reg_global): If
-mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.

* config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
Optimize vec_extract of 64-bit values, where the value being
extracted is in the top word, where we can use scalar
instructions.  Add direct move and store support.  Combine the big
endian/little endian vector select load support into a single
insn.
(vsx_extract_<mode>_internal1): Likewise.
(vsx_extract_<mode>_internal2): Likewise.
(vsx_extract_<mode>_load): Likewise.
(vsx_extract_<mode>_store): Likewise.
(vsx_extract_<mode>_zero): Delete, big and little endian insns are
combined into vsx_extract_<mode>_load.
(vsx_extract_<mode>_one_le): Likewise.

* config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
define the top 64-bit vector element.

* doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
constraint.

PR target/60672
* config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
enable use of xxsldwi and xxpermdi builtin functions.
(vec_xxpermdi): Likewise.

* doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
Document use of vec_xxsldwi and vec_xxpermdi builtins.

[gcc/testsuite]
2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>

* gcc.target/powerpc/p8vector-vbpermq.c: New test to test the
vbpermq builtin.

* gcc.target/powerpc/vsx-extract-1.c: New test to test VSX
vec_select optimizations.
* gcc.target/powerpc/vsx-extract-2.c: Likewise.
* gcc.target/powerpc/vsx-extract-3.c: Likewise.

PR target/60672
* gcc.target/powerpc/pr60676.c: New file, make sure xxsldwi and
xxpermdi builtins are supported.

From-SVN: r208877

10 years agore PR rtl-optimization/60650 ([ARM] LRA ICE in assign_by_spills)
Vladimir Makarov [Thu, 27 Mar 2014 18:49:44 +0000 (18:49 +0000)]
re PR rtl-optimization/60650 ([ARM] LRA ICE in assign_by_spills)

2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/60650
* lra-asign.c (find_hard_regno_for, spill_for): Add parameter
first_p.  Use it.
(find_spills_for): New.
(assign_by_spills): Pass the new parameter to find_hard_regno_for.
Spill all pseudos on the second iteration.

2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/60650
* gcc.target/arm/pr60650.c: New.

From-SVN: r208876

10 years ago* doc/html/*: Regenerate.
Jonathan Wakely [Thu, 27 Mar 2014 18:22:46 +0000 (18:22 +0000)]
* doc/html/*: Regenerate.

From-SVN: r208875

10 years agocontainers.xml (associative.bitset.size_variable): Fix bad s/part/chapter/ substitutions.
Jonathan Wakely [Thu, 27 Mar 2014 18:22:38 +0000 (18:22 +0000)]
containers.xml (associative.bitset.size_variable): Fix bad s/part/chapter/ substitutions.

* doc/xml/manual/containers.xml (associative.bitset.size_variable):
Fix bad s/part/chapter/ substitutions.
* doc/xml/manual/io.xml (std.io): Likewise.
* doc/xml/manual/numerics.xml (std.numerics.generalized_ops): Likewise.
* doc/xml/manual/strings.xml (strings.string.Cstring): Likewise.

From-SVN: r208874

10 years agofaq.xml (faq): Refer to clauses instead of chapters.
Jonathan Wakely [Thu, 27 Mar 2014 18:22:33 +0000 (18:22 +0000)]
faq.xml (faq): Refer to clauses instead of chapters.

* doc/xml/faq.xml (faq): Refer to clauses instead of chapters.
* doc/xml/manual/appendix_contributing.xml (contrib.design_notes):
Likewise.
* doc/xml/manual/backwards_compatibility.xml (backwards.third):
Likewise.
* doc/xml/manual/test.xml (test.organization.layout): Likewise.

From-SVN: r208873

10 years ago* doc/xml/manual/io.xml (std.io.objects): Additional markup.
Jonathan Wakely [Thu, 27 Mar 2014 18:22:27 +0000 (18:22 +0000)]
* doc/xml/manual/io.xml (std.io.objects): Additional markup.

From-SVN: r208872

10 years agore PR libstdc++/60612 (Throwing exception, catching and rethrowing (std::exception_pt...
Jonathan Wakely [Thu, 27 Mar 2014 18:07:25 +0000 (18:07 +0000)]
re PR libstdc++/60612 (Throwing exception, catching and rethrowing (std::exception_ptr) in destructor leads to segfault)

PR libstdc++/60612
* libsupc++/eh_ptr.cc: Assert __cxa_dependent_exception layout is
compatible with __cxa_exception.
* libsupc++/unwind-cxx.h (__cxa_dependent_exception): Add padding.
Fix typos in comments.
* testsuite/18_support/exception_ptr/60612-terminate.cc: New.
* testsuite/18_support/exception_ptr/60612-unexpected.cc: New.

From-SVN: r208871

10 years agore PR c/50347 (unexpected -Wconversion error from gcc builtin)
Marek Polacek [Thu, 27 Mar 2014 15:59:07 +0000 (15:59 +0000)]
re PR c/50347 (unexpected -Wconversion error from gcc builtin)

PR c/50347
* doc/extend.texi (ffs Builtins): Change unsigned types to signed
types.

From-SVN: r208870

10 years agoconfig.host: Append t-floattodi to tmake_file depending on host_address.
Andreas Krebbel [Thu, 27 Mar 2014 15:40:31 +0000 (15:40 +0000)]
config.host: Append t-floattodi to tmake_file depending on host_address.

2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config.host: Append t-floattodi to tmake_file depending on
host_address.

From-SVN: r208868

10 years agos390.c (s390_can_use_return_insn): Check for call-saved FPRs on 31 bit.
Andreas Krebbel [Thu, 27 Mar 2014 15:38:29 +0000 (15:38 +0000)]
s390.c (s390_can_use_return_insn): Check for call-saved FPRs on 31 bit.

2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.c (s390_can_use_return_insn): Check for
call-saved FPRs on 31 bit.

2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.target/s390/20140327-1.c: New testcase.

From-SVN: r208867

10 years agoMakefile.def (dependencies): Make all-ld depend on all-binutils for WINDRES_FOR_TARGE...
Yaakov Selkowitz [Thu, 27 Mar 2014 13:36:21 +0000 (13:36 +0000)]
Makefile.def (dependencies): Make all-ld depend on all-binutils for WINDRES_FOR_TARGET in default-manifest.o...

* Makefile.def (dependencies): Make all-ld depend on all-binutils
for WINDRES_FOR_TARGET in default-manifest.o rule.
* Makefile.in: Regenerate.

From-SVN: r208865

10 years agore PR middle-end/60682 ([OpenMP] ICE on an assignment of local variable inside SIMD...
Jakub Jelinek [Thu, 27 Mar 2014 13:18:52 +0000 (14:18 +0100)]
re PR middle-end/60682 ([OpenMP] ICE on an assignment of local variable inside SIMD loop)

PR middle-end/60682
* omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
if they need regimplification, just drop them instead of
calling gimple_regimplify_operands on them.

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

From-SVN: r208864

10 years agopr60092.c: Remove default dg-skip-if arguments.
John David Anglin [Thu, 27 Mar 2014 12:33:06 +0000 (12:33 +0000)]
pr60092.c: Remove default dg-skip-if arguments.

* gcc.dg/torture/pr60092.c: Remove default dg-skip-if arguments.

From-SVN: r208863

10 years ago[PR 60580, AArch64] Fix __attribute__ ((optimize("no-omit-frame-pointer")))
Marcus Shawcroft [Thu, 27 Mar 2014 10:13:50 +0000 (10:13 +0000)]
[PR 60580, AArch64] Fix __attribute__ ((optimize("no-omit-frame-pointer")))

The implementation of -m[no-]omit-leaf-frame-pointer and
-f[no-]omit-frame-pointer in the AArch64 target does not behave
correctly in the presence of __attribute__ optimize.

This patch adjusts the implementation to work in a similar fashion to
the same functionality in the i386 target.

The problem occurs because the current implementation uses a global
'faked_omit_frame_pointer' to retain the original value of
flag_omit_frame_pointer.  The global does not form part of the
optimization save state.

This solution removes the global and instead tracks required behaviour
using only flag_omit_frame_pointer and flag_omit_leaf_frame_pointer.
These two form part of the optimziation save state and target save
state respectively.

The additional complication for AArch64 is that the PCS requires that
given -fno-omit-frame-pointer -momit-leave-frame-pointer, a leaf
function that kills LR must create a frame record.  This is readily
handled in aarch64_frame_pointer_required().  I've dropped logic in
aarch64_can_eliminate() that attempts to detect this scenario since it

From-SVN: r208862

10 years ago* ipa-inline.c (early_inliner): Update node's inline info.
Dehao Chen [Thu, 27 Mar 2014 01:01:07 +0000 (01:01 +0000)]
* ipa-inline.c (early_inliner): Update node's inline info.

From-SVN: r208861

10 years agodojump.c (do_compare_rtx_and_jump): Sets correct probability for compiler inserted...
Dehao Chen [Thu, 27 Mar 2014 00:41:10 +0000 (00:41 +0000)]
dojump.c (do_compare_rtx_and_jump): Sets correct probability for compiler inserted conditional jumps for NAN float...

* dojump.c (do_compare_rtx_and_jump): Sets correct probability for
compiler inserted conditional jumps for NAN float check.
* gcc.dg/predict-8.c: New test.

From-SVN: r208860

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

From-SVN: r208859

10 years agofutex_bits.h: Include errno.h.
Jakub Jelinek [Wed, 26 Mar 2014 21:52:16 +0000 (22:52 +0100)]
futex_bits.h: Include errno.h.

* config/linux/futex_bits.h: Include errno.h.
(sys_futex0): If syscall returns -1, return -errno rather than
-1.

From-SVN: r208855

10 years agore PR c++/52369 (Const-qualified non-class base member and defaulted default constructor)
Fabien Chêne [Wed, 26 Mar 2014 21:33:28 +0000 (22:33 +0100)]
re PR c++/52369 (Const-qualified non-class base member and defaulted default constructor)

2014-03-26  Fabien Chene  <fabien@gcc.gnu.org>
        PR c++/52369
        * cp/method.c (walk_field_subobs): improve the diagnostic
locations for both REFERENCE_TYPEs and non-static const members.
* cp/init.c (diagnose_uninitialized_cst_or_ref_member): use %q#D
instead of %qD to be consistent with the c++11 diagnostic.

2014-03-26  Fabien Chene  <fabien@gcc.gnu.org>

        PR c++/52369
        * g++.dg/init/const10.C: New.
* g++.dg/init/const11.C: New.
* g++.dg/init/pr25811.C: Adjust.
* g++.dg/init/pr29043.C: Likewise.
* g++.dg/init/pr43719.C: Likewise.
* g++.dg/init/pr44086.C: Likewise.
* g++.dg/init/ctor8.C: Likewise.
* g++.dg/init/uninitialized1.C: Likewise.

From-SVN: r208854

10 years ago* libitm.texi (Index): Rename to Library Index.
Joseph Myers [Wed, 26 Mar 2014 21:20:04 +0000 (21:20 +0000)]
* libitm.texi (Index): Rename to Library Index.

From-SVN: r208853

10 years agore PR fortran/34928 (Extension: volatile common blocks)
Dominique d'Humieres [Wed, 26 Mar 2014 20:39:42 +0000 (21:39 +0100)]
re PR fortran/34928 (Extension: volatile common blocks)

        PR fortran/34928
        * fortran.texi: Document Volatile COMMON as not supported.

From-SVN: r208852

10 years agoAdd libcilkrts/libcilkrts.spec.in, missing from r208847
Tobias Burnus [Wed, 26 Mar 2014 19:43:17 +0000 (20:43 +0100)]
Add libcilkrts/libcilkrts.spec.in, missing from r208847

From-SVN: r208851

10 years agoubsan.h (ubsan_create_data): Change second argument's type to const location_t *.
Jakub Jelinek [Wed, 26 Mar 2014 19:33:40 +0000 (20:33 +0100)]
ubsan.h (ubsan_create_data): Change second argument's type to const location_t *.

* ubsan.h (ubsan_create_data): Change second argument's type
to const location_t *.
* ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
_("<unknown>").
(ubsan_create_data): Change second argument to const location_t *PLOC.
Create Loc field whenever PLOC is non-NULL.
(ubsan_instrument_unreachable, ubsan_expand_null_ifn,
ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
callers.
c-family/
* c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
ubsan_instrument_vla, ubsan_instrument_return): Adjust
ubsan_create_data callers.

From-SVN: r208849

10 years agore PR other/59545 (Signed integer overflow issues)
Jakub Jelinek [Wed, 26 Mar 2014 19:32:40 +0000 (20:32 +0100)]
re PR other/59545 (Signed integer overflow issues)

PR other/59545
* real.c (real_to_integer2): Change type of low to UHWI.

From-SVN: r208848

10 years agogcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
Tobias Burnus [Wed, 26 Mar 2014 19:16:35 +0000 (20:16 +0100)]
gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.

gcc/
2014-03-26  Tobias Burnus  <burnus@net-b.de>

        * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
        (CILK_SELF_SPECS): New define.
        (driver_self_specs): Use it.

libcilkrts/
2014-03-26  Tobias Burnus  <burnus@net-b.de>

        * libcilkrts.spec.in: New.
        * Makefile.am: Handle libcilkrts.spec.
        * configure.ac: Determine link options for libcilkrts.spec.
        * Makefile.in: Regenerate.
        * configure: Regenerate.
        * aclocal.m4: Regenerate.

From-SVN: r208847

10 years agoMAINTAINERS (Write After Approval): Add myself.
Dominique d'Humieres [Wed, 26 Mar 2014 17:33:09 +0000 (18:33 +0100)]
MAINTAINERS (Write After Approval): Add myself.

        * MAINTAINERS (Write After Approval): Add myself.

From-SVN: r208846

10 years agore PR c++/60566 (r208573 omits needed thunks)
Jason Merrill [Wed, 26 Mar 2014 16:50:26 +0000 (12:50 -0400)]
re PR c++/60566 (r208573 omits needed thunks)

PR c++/60566
PR c++/58678
* class.c (build_vtbl_initializer): Handle abstract dtors here.
* search.c (get_pure_virtuals): Not here.

From-SVN: r208845

10 years agotree-pretty-print.c (percent_K_format): Implement special case for LTO and its stripp...
Richard Biener [Wed, 26 Mar 2014 09:47:36 +0000 (09:47 +0000)]
tree-pretty-print.c (percent_K_format): Implement special case for LTO and its stripped down BLOCK tree.

2014-03-26  Richard Biener  <rguenther@suse.de>

* tree-pretty-print.c (percent_K_format): Implement special
case for LTO and its stripped down BLOCK tree.

From-SVN: r208843