]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
9 years agobackport: re PR target/67973 (All the tests for -gstabs* fail on x86_64-apple-darwin1...
Iain Sandoe [Sun, 22 May 2016 08:53:32 +0000 (08:53 +0000)] 
backport: re PR target/67973 (All the tests for -gstabs* fail on x86_64-apple-darwin14 with Xcode 7)

2016-05-22  Iain Sandoe  <iain@codesourcery.com>
    Dominique d'Humieres  <dominiq@lps.ens.fr>

Backport from mainline
2015-12-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc:
PR target/67973
* configure.ac (gcc_cv_as_stabs_directive): New test.
* configure: Regenerate.
* config.in: Regenerate.
* config/darwin.h (DBX_DEBUGGING_INFO): Wrap in
HAVE_AS_STABS_DIRECTIVE.
(PREFERRED_DEBUGGING_TYPE): Likewise.
* config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Only include
DBX_DEBUG if HAVE_AS_STABS_DIRECTIVE.

* doc/sourcebuild.texi (Effective-Target Keywords, Environment
attributes): Document stabs.

gcc/testsuite:
PR target/67973

* lib/target-supports.exp (check_effective_target_stabs): New proc.
* g++.dg/cpp0x/alias-decl-debug-0.C: Restrict to stabs targets.
* g++.dg/other/PR23205.C: Likewise.
* g++.dg/other/pr23205-2.C: Likewise.
* gcc.dg/20040813-1.c: Likewise.
* gcc.dg/darwin-20040809-2.c: Likewise.
* objc.dg/stabs-1.m: Likewise.

Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr>
From-SVN: r236565

9 years agoDaily bump.
GCC Administrator [Sun, 22 May 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236560

9 years agoDaily bump.
GCC Administrator [Sat, 21 May 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236550

9 years agoarm.c (arm_expand_prologue): Set the stack usage to 0 for naked functions.
Eric Botcazou [Fri, 20 May 2016 20:51:18 +0000 (20:51 +0000)] 
arm.c (arm_expand_prologue): Set the stack usage to 0 for naked functions.

* config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
for naked functions.
(thumb1_expand_prologue): Likewise.

From-SVN: r236542

9 years agosched-deps.c (sched_analyze_2): Also force pending loads from memory.
Uros Bizjak [Fri, 20 May 2016 15:42:18 +0000 (17:42 +0200)] 
sched-deps.c (sched_analyze_2): Also force pending loads from memory.

* sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
force pending loads from memory.

From-SVN: r236518

9 years ago[AArch64] PR target/70809: Delete aarch64_vmls<mode> pattern
Kyrylo Tkachov [Fri, 20 May 2016 09:12:59 +0000 (09:12 +0000)] 
[AArch64] PR target/70809: Delete aarch64_vmls<mode> pattern

Backport from mainline
2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR target/70809
* config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.

* gcc.target/aarch64/pr70809_1.c: New test.

From-SVN: r236500

9 years agoDaily bump.
GCC Administrator [Fri, 20 May 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236492

9 years agoRespect --param ipa-max-agg-items=0
Martin Jambor [Thu, 19 May 2016 15:19:59 +0000 (17:19 +0200)] 
Respect --param ipa-max-agg-items=0

2016-05-19  Martin Jambor  <mjambor@suse.cz>

PR ipa/70646
* ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.

From-SVN: r236476

9 years ago[PR 70646] Store size to inlining predicate conditions
Martin Jambor [Thu, 19 May 2016 15:17:10 +0000 (17:17 +0200)] 
[PR 70646] Store size to inlining predicate conditions

2016-05-19  Martin Jambor  <mjambor@suse.cz>

PR ipa/70646
* ipa-inline.h (condition): New field size.
* ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
for comaprison and store it into the new condition.
(evaluate_conditions_for_known_args): Use condition size to check
access sizes for all but CHANGED conditions.
(unmodified_parm_1): New parameter size_p, store access size into it.
(unmodified_parm): Likewise.
(unmodified_parm_or_parm_agg_item): Likewise.
(eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
(set_cond_stmt_execution_predicate): Extract access sizes and store
them to conditions.
(set_switch_stmt_execution_predicate): Likewise.
(will_be_nonconstant_expr_predicate): Likewise.
(will_be_nonconstant_predicate): Likewise.
(inline_read_section): Stream condition size.
(inline_write_summary): Likewise.
* lto-streamer.h (LTO_minor_version): Bump.
* ipa-prop.c (ipa_load_from_parm_agg): Added size_p parameter, pass it
to ipa_load_from_parm_agg_1.
* ipa-prop.h (ipa_load_from_parm_agg): Update declaration.

testsuite/
* gcc.dg/ipa/pr70646.c: New test.

From-SVN: r236475

9 years agoBackport PRs 67394, 69687, 70481, 70492, 70498
Jakub Jelinek [Thu, 19 May 2016 12:05:41 +0000 (14:05 +0200)] 
Backport PRs 67394, 69687, 70481, 70492, 70498

Backported from mainline
2016-05-19  Jakub Jelinek  <jakub@redhat.com>

PR c++/70498
* cp-demangle.c (d_expression_1): Formatting fix.

2016-05-02  Marcel Böhme  <boehme.marcel@gmail.com>

PR c++/70498
* cp-demangle.c: Parse numbers as integer instead of long to avoid
overflow after sanity checks. Include <limits.h> if available.
(INT_MAX): Define if necessary.
(d_make_template_param): Takes integer argument instead of long.
(d_make_function_param): Likewise.
(d_append_num): Likewise.
(d_identifier): Likewise.
(d_number): Parse as and return integer.
(d_compact_number): Handle overflow.
(d_source_name): Change variable type to integer for parsed number.
(d_java_resource): Likewise.
(d_special_name): Likewise.
(d_discriminator): Likewise.
(d_unnamed_type): Likewise.
* testsuite/demangle-expected: Add regression test cases.

2016-04-08  Marcel Böhme  <boehme.marcel@gmail.com>

PR c++/69687
* cplus-dem.c: Include <limits.h> if available.
(INT_MAX): Define if necessary.
(remember_type, remember_Ktype, register_Btype, string_need):
Abort if we detect cases where we the size of the allocation would
overflow.

PR c++/70492
* cplus-dem.c (gnu_special): Handle case where consume_count returns
-1.

2016-03-31  Mikhail Maltsev  <maltsevm@gmail.com>
    Marcel Bohme  <boehme.marcel@gmail.com>

PR c++/67394
PR c++/70481
* cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
btypevec/ktypevec.
* testsuite/demangle-expected: Add coverage tests.

From-SVN: r236456

9 years agobackport: re PR other/61321 (demangler crash on casts in template parameters)
Jakub Jelinek [Thu, 19 May 2016 12:04:11 +0000 (14:04 +0200)] 
backport: re PR other/61321 (demangler crash on casts in template parameters)

Backported from mainline
2015-11-27  Pedro Alves  <palves@redhat.com>

PR other/61321
PR other/61233
* demangle.h (enum demangle_component_type)
<DEMANGLE_COMPONENT_CONVERSION>: New value.

* cp-demangle.c (d_demangle_callback, d_make_comp): Handle
DEMANGLE_COMPONENT_CONVERSION.
(is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION
instead of DEMANGLE_COMPONENT_CAST.
(d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION
component if handling a conversion.
(d_count_templates_scopes, d_print_comp_inner): Handle
DEMANGLE_COMPONENT_CONVERSION.
(d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead
of DEMANGLE_COMPONENT_CAST.
(d_print_cast): Rename as ...
(d_print_conversion): ... this.  Adjust comments.
(d_print_cast): Rewrite - simply print the left subcomponent.
* cp-demint.c (cplus_demangle_fill_component): Handle
DEMANGLE_COMPONENT_CONVERSION.

* testsuite/demangle-expected: Add tests.

From-SVN: r236455

9 years agobackport: cp-demangle.c (d_dump): Fix syntax error.
Jakub Jelinek [Thu, 19 May 2016 12:02:19 +0000 (14:02 +0200)] 
backport: cp-demangle.c (d_dump): Fix syntax error.

Backported from mainline
2015-07-13  Mikhail Maltsev  <maltsevm@gmail.com>

* cp-demangle.c (d_dump): Fix syntax error.
(d_identifier): Adjust type of len to match d_source_name.
(d_expression_1): Fix out-of-bounds access.  Check code variable for
NULL before dereferencing it.
(d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER.
(d_print_comp_inner): Add NULL pointer check.
* testsuite/demangle-expected: Add new testcases.

From-SVN: r236454

9 years agobackport: cp-demangle.c (d_dump): Only access field from s_fixed part of the union...
Jakub Jelinek [Thu, 19 May 2016 12:01:33 +0000 (14:01 +0200)] 
backport: cp-demangle.c (d_dump): Only access field from s_fixed part of the union for DEMANGLE_COMPONENT_FIXED_TYPE.

Backported from mainline
2014-08-29  Andrew Burgess  <aburgess@broadcom.com>

* cp-demangle.c (d_dump): Only access field from s_fixed part of
the union for DEMANGLE_COMPONENT_FIXED_TYPE.
(d_count_templates_scopes): Likewise.

2014-08-13  Gary Benson  <gbenson@redhat.com>

* testsuite/demangler-fuzzer.c: New file.
* testsuite/Makefile.in (fuzz-demangler): New rule.
(demangler-fuzzer): Likewise.
(mostlyclean): Clean up demangler fuzzer.

2014-06-11  Andrew Burgess  <aburgess@broadcom.com>

* cplus-dem.c (do_type): Call string_delete even if the call to
demangle_template fails.

2014-05-28  Pedro Alves  <palves@redhat.com>

* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
and DEMANGLE_COMPONENT_NUMBER.

2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>

* testsuite/demangle-expected: Fix last commit.

2014-05-14  Andrew Burgess  <aburgess@broadcom.com>

* cplus-dmem.c (internal_cplus_demangle): Free any resources
allocated by possible previous call to gnu_special.
(squangle_mop_up): Reset pointers to NULL after calling free.
* testsuite/demangle-expected: New test case.

2014-05-08  Gary Benson  <gbenson@redhat.com>

* cp-demangle.c (struct d_component_stack): New structure.
(struct d_print_info): New field component_stack.
(d_print_init): Initialize the above.
(d_print_comp_inner): Renamed from d_print_comp.
Do not restore template stack if it would cause a loop.
(d_print_comp): New function.
* testsuite/demangle-expected: New test cases.

From-SVN: r236453

9 years agoDaily bump.
GCC Administrator [Thu, 19 May 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236435

9 years agore PR target/71145 (Alpha: Error: No lda !gpdisp!278 was found)
Uros Bizjak [Wed, 18 May 2016 19:53:16 +0000 (21:53 +0200)] 
re PR target/71145 (Alpha: Error: No lda !gpdisp!278 was found)

PR target/71145
* config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
(*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.

From-SVN: r236427

9 years agoPR c++/70505 - partial instantiation of template-id
Jason Merrill [Wed, 18 May 2016 17:40:49 +0000 (13:40 -0400)] 
PR c++/70505 - partial instantiation of template-id

* pt.c (tsubst_baselink): Give the new TEMPLATE_ID_EXPR
unknown_type_node, too.

From-SVN: r236420

9 years agore PR target/71161 (Lots of ASAN and libgo runtime FAILs after r236090)
Uros Bizjak [Wed, 18 May 2016 16:00:43 +0000 (18:00 +0200)] 
re PR target/71161 (Lots of ASAN and libgo runtime FAILs after r236090)

PR target/71161
* elf.c (phdr_callback) [__i386__]: Add
__attribute__((__force_align_arg_pointer__)).

From-SVN: r236412

9 years agoDaily bump.
GCC Administrator [Wed, 18 May 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236351

9 years ago[RTEMS] Fix moxie libgcc support
Sebastian Huber [Tue, 17 May 2016 06:22:28 +0000 (06:22 +0000)] 
[RTEMS] Fix moxie libgcc support

libgcc/

PR libgcc/70720
* config.host (moxie-*-rtems*): Merge this stanza with other moxie
targets so the same extra_parts are built.  Also have tmake_file add
on to its value rather than override.

From-SVN: r236309

9 years agoDaily bump.
GCC Administrator [Tue, 17 May 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236302

9 years agoDaily bump.
GCC Administrator [Mon, 16 May 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236260

9 years agobackport: pr70963.c: Require at least power8 at both compile and run time.
Bill Schmidt [Sun, 15 May 2016 21:55:33 +0000 (21:55 +0000)] 
backport: pr70963.c: Require at least power8 at both compile and run time.

2016-05-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/pr70963.c: Require at least power8 at both
compile and run time.

From-SVN: r236259

9 years agoDaily bump.
GCC Administrator [Sun, 15 May 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236245

9 years agoDaily bump.
GCC Administrator [Sat, 14 May 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236234

9 years agoDaily bump.
GCC Administrator [Fri, 13 May 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236186

9 years agoDaily bump.
GCC Administrator [Thu, 12 May 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236149

9 years agoDaily bump.
GCC Administrator [Wed, 11 May 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236107

9 years ago[ARM] PR driver/70132: Avoid double fclose in driver-arm.c
Kyrylo Tkachov [Tue, 10 May 2016 16:15:20 +0000 (16:15 +0000)] 
[ARM] PR driver/70132: Avoid double fclose in driver-arm.c

Backport from mainline
2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR driver/70132
* config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
to not call fclose twice on file.

From-SVN: r236092

9 years agobackport: re PR target/70963 (vec_cts/vec_ctf intrinsics produce wrong results for...
Bill Schmidt [Tue, 10 May 2016 16:09:28 +0000 (16:09 +0000)] 
backport: re PR target/70963 (vec_cts/vec_ctf intrinsics produce wrong results for 64-bit floating point)

[gcc]

2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/70963
* config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
code for a zero scale factor.
(vsx_xvcvdpuxds_scale): Likewise.

[gcc/testsuite]

2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/70963
* gcc.target/powerpc/pr70963.c: New.

From-SVN: r236091

9 years agoDaily bump.
GCC Administrator [Tue, 10 May 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236053

9 years ago[libatomic] Add RTEMS support
Sebastian Huber [Mon, 9 May 2016 06:13:05 +0000 (06:13 +0000)] 
[libatomic] Add RTEMS support

gcc/

* config/rtems.h (LIB_SPEC): Add -latomic.

libatomic/

* configure.tgt (configure_tgt_pre_target_cpu_XCFLAGS): New
* variable.
(*-*-rtems*): New supported target.
* config/rtems/host-config.h: New file.
* config/rtems/lock.c: Likewise.

From-SVN: r236020

9 years ago[RTEMS] Redefine microblaze LINK_SPEC
Sebastian Huber [Mon, 9 May 2016 06:03:22 +0000 (06:03 +0000)] 
[RTEMS] Redefine microblaze LINK_SPEC

gcc/

* config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
xilink.ld and flags not relevant to RTEMS.

From-SVN: r236019

9 years agoDaily bump.
GCC Administrator [Mon, 9 May 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236014

9 years agoDaily bump.
GCC Administrator [Sun, 8 May 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r236000

9 years agoDaily bump.
GCC Administrator [Sat, 7 May 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235989

9 years agobackport: re PR libfortran/70684 (incorrect reading of values from file on Windows)
Jerry DeLisle [Fri, 6 May 2016 01:18:59 +0000 (01:18 +0000)] 
backport: re PR libfortran/70684 (incorrect reading of values from file on Windows)

2016-05-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        Backport from trunk.
        PR libgfortran/70684
        * io/list_read (next_char): Add '\r' to check for end of line.
        factor. (two places)

        PR libgfortran/70684
        * gfortran.dg/list_read_14.f90: New test.

From-SVN: r235941

9 years agoDaily bump.
GCC Administrator [Fri, 6 May 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235937

9 years agoDaily bump.
GCC Administrator [Thu, 5 May 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235915

9 years agoDaily bump.
GCC Administrator [Wed, 4 May 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235853

9 years agoDaily bump.
GCC Administrator [Tue, 3 May 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235797

9 years agoDaily bump.
GCC Administrator [Mon, 2 May 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235694

9 years agoDaily bump.
GCC Administrator [Sun, 1 May 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235683

9 years agoDaily bump.
GCC Administrator [Sat, 30 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235665

9 years agoDaily bump.
GCC Administrator [Fri, 29 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235616

9 years agore PR target/70858 (__builtin_ia32_bextr_u64 ICE with '-m32 -march=core-avx2')
Jakub Jelinek [Thu, 28 Apr 2016 19:52:02 +0000 (21:52 +0200)] 
re PR target/70858 (__builtin_ia32_bextr_u64 ICE with '-m32 -march=core-avx2')

PR target/70858
* config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
(bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
__builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
__builtin_ia32_pdep_di and __builtin_ia32_pext_di.

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

From-SVN: r235611

9 years agore PR ada/70786 (Missing "not" breaks Ada.Text_IO.Get_Immediate(File, Item, Available))
Eric Botcazou [Thu, 28 Apr 2016 10:59:17 +0000 (10:59 +0000)] 
re PR ada/70786 (Missing "not" breaks Ada.Text_IO.Get_Immediate(File, Item, Available))

PR ada/70786
* a-textio.adb (Get_Immediate): Add missing 'not' in expression.

From-SVN: r235557

9 years agoDaily bump.
GCC Administrator [Thu, 28 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235540

9 years agobackport: rs6000-builtin.def: Correct pasto error for stxvd2x and stxvw4x built-in...
Bill Schmidt [Wed, 27 Apr 2016 18:49:26 +0000 (18:49 +0000)] 
backport: rs6000-builtin.def: Correct pasto error for stxvd2x and stxvw4x built-in functions.

2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000-builtin.def: Correct pasto error for
stxvd2x and stxvw4x built-in functions.

From-SVN: r235529

9 years agoDaily bump.
GCC Administrator [Wed, 27 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235461

9 years agoDaily bump.
GCC Administrator [Tue, 26 Apr 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235425

9 years agobackport: re PR target/70098 (PowerPC64: eigen hits ICE following invalid register...
Bill Schmidt [Mon, 25 Apr 2016 22:29:49 +0000 (22:29 +0000)] 
backport: re PR target/70098 (PowerPC64: eigen hits ICE following invalid register assignment)

[gcc]

2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/70098
* config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
*ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
(define_split for the GPR case): Use int_reg_operand instead of
gpc_reg_operand for the output.

[gcc/testsuite]

2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/70098
* lib/target-supports.exp (check_effective_target_powerpc64_no_dm):
New function.
* g++.dg/pr70098.C: New testcase.

From-SVN: r235424

9 years agoDaily bump.
GCC Administrator [Mon, 25 Apr 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235398

9 years agoDaily bump.
GCC Administrator [Sun, 24 Apr 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235387

9 years agobackport: libjava.exp (libjava_arguments): Use 'file normalize' rather than the defun...
Dominique d'Humieres [Sat, 23 Apr 2016 21:36:16 +0000 (23:36 +0200)] 
backport: libjava.exp (libjava_arguments): Use 'file normalize' rather than the defunct DejaGnu 'absolute' proc.

2016-04-23  Dominique d'Humieres  <dominiq@lps.ens.fr>

backport from trunk:
2016-04-20  Ben Elliston  <bje@gnu.org>

* testsuite/lib/libjava.exp (libjava_arguments): Use 'file
normalize' rather than the defunct DejaGnu 'absolute' proc.

From-SVN: r235385

9 years agoDaily bump.
GCC Administrator [Sat, 23 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235376

9 years agoDaily bump.
GCC Administrator [Fri, 22 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235354

9 years agoPR70674: S/390: Add memory barrier to stack pointer restore
Andreas Krebbel [Thu, 21 Apr 2016 11:50:22 +0000 (11:50 +0000)] 
PR70674: S/390: Add memory barrier to stack pointer restore

PR70674: S/390: Add memory barrier to stack pointer restore
 from fpr.

This patches fixes a problem with stack variable accesses being
scheduled after the stack pointer restore instructions.  In the
testcase this happened with the stack variable 'a' accessed through the
frame pointer.

The existing stack_tie we have in the backend is basically useless
when trying to block stack variable accesses from being scheduled
across an insn.  The alias set of stack variables and the frame alias
set usually differ and hence aren't in conflict with each other.  The
solution appears to be a magic MEM term with a scratch register which
is handled as a full memory barrier when analyzing scheduling
dependencies.

With the patch a (clobber (mem:BLK (scratch))) is being added to the
restore instruction in order to prevent any memory operations to be
scheduled across the insn.  The patch does that only for the one case
where the stack pointer is restored from an FPR.  Theoretically this
might happen also in the case where the stack pointer gets restored
using a load multiple.  However, triggering that problem with
load-multiple appears to be much harder since the load-multiple will
restore the frame pointer as well.  So in order to see the problem a
different call-clobbered register would need to be used as temporary
stack pointer.

Another case which needs to be handled some day is the stack pointer
allocation part.  It needs to be a memory barrier as well.

gcc/ChangeLog:

2016-04-21  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backport from mainline
2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/70674
* config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
stack_restore_from_fpr pattern when restoring r15.
(s390_optimize_prologue): Strip away the memory barrier in the
parallel when trying to get rid of restore insns.
* config/s390/s390.md ("stack_restore_from_fpr"): New insn
definition for loading the stack pointer from an FPR.  Compared to
the normal move insn this pattern includes a full memory barrier.

gcc/testsuite/ChangeLog:

2016-04-21  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backport from mainline
2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/70674
* gcc.target/s390/pr70674.c: New test.

From-SVN: r235334

9 years agoDaily bump.
GCC Administrator [Thu, 21 Apr 2016 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235298

9 years agoFix assertions for move assignment of trivial types
Jonathan Wakely [Wed, 20 Apr 2016 14:30:39 +0000 (15:30 +0100)] 
Fix assertions for move assignment of trivial types

Backport from mainline
2016-01-26  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/69478
* include/bits/stl_algobase.h (__copy_move<_IsMove, true,
random_access_iterator_tag>): Check is_move_assignable when moving.
(__copy_move_backwards<_IsMove, true, random_access_iterator_tag>):
Likewise.
* testsuite/25_algorithms/copy/move_iterators/69478.cc: New.
* testsuite/25_algorithms/copy_backward/move_iterators/69478.cc: New.
* testsuite/25_algorithms/move/69478.cc: New.
* testsuite/25_algorithms/move_backward/69478.cc: New.

From-SVN: r235285

9 years agoEnsure std::thread helpers have internal linkage
Jonathan Wakely [Wed, 20 Apr 2016 14:30:33 +0000 (15:30 +0100)] 
Ensure std::thread helpers have internal linkage

Backport from mainline
2016-04-05  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/70503
* src/c++11/thread.cc (execute_native_thread_routine,
execute_native_thread_routine_compat): Give internal linkage.
* testsuite/30_threads/thread/70503.cc: New test.

From-SVN: r235284

9 years agoDaily bump.
GCC Administrator [Wed, 20 Apr 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235227

9 years agoDaily bump.
GCC Administrator [Tue, 19 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235179

9 years agoDaily bump.
GCC Administrator [Mon, 18 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235087

9 years agoDaily bump.
GCC Administrator [Sun, 17 Apr 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235067

9 years agoDaily bump.
GCC Administrator [Sat, 16 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r235055

9 years agoDaily bump.
GCC Administrator [Fri, 15 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234997

9 years agoDaily bump.
GCC Administrator [Thu, 14 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234967

9 years ago[ARM] PR target/70566 Check that condition register is dead in tst-imm -> lsls-imm...
Kyrylo Tkachov [Wed, 13 Apr 2016 08:24:43 +0000 (08:24 +0000)] 
[ARM] PR target/70566 Check that condition register is dead in tst-imm -> lsls-imm Thumb2 peepholes

Backport from mainline
2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR target/70566
* config/arm/thumb2.md (tst + branch-> lsls + branch
peephole below *orsi_not_shiftsi_si): Require that condition
register is dead after the peephole.
(second peephole after the above): Likewise.

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

From-SVN: r234931

9 years agoDaily bump.
GCC Administrator [Wed, 13 Apr 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234927

9 years agoFix target/70107, another case of PR c++/70096
Alan Modra [Tue, 12 Apr 2016 22:59:05 +0000 (08:29 +0930)] 
Fix target/70107, another case of PR c++/70096

gcc/cp/
PR target/70107
PR c++/70096
* pt.c (tsubst_decl): Clear the DECL_MODE of the new decl.

gcc/testsuite/
* g++.dg/template/ptrmem30.C (read): Rename to data_read.
(Holder::foo): Reflect this.

PR c++/70096
* g++.dg/template/ptrmem30.C: New test.

From-SVN: r234925

9 years agore PR target/70630 (sparc bootstrap failure: sparc.c:4919:6: error: suggest explicit...
Eric Botcazou [Tue, 12 Apr 2016 20:56:11 +0000 (20:56 +0000)] 
re PR target/70630 (sparc bootstrap failure: sparc.c:4919:6: error: suggest explicit braces to avoid ambiguous 'else')

2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>

PR target/70630
* config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.

From-SVN: r234920

9 years agoDaily bump.
GCC Administrator [Tue, 12 Apr 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234890

9 years agoPR70117, ppc long double isinf
Alan Modra [Mon, 11 Apr 2016 13:47:40 +0000 (23:17 +0930)] 
PR70117, ppc long double isinf

gcc/
PR target/70117
* builtins.c (fold_builtin_classify): For IBM extended precision,
look at just the high-order double to test for NaN.
(fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
test just the high double for Inf but both doubles for subnormal
limit.
gcc/testsuite/
* gcc.target/powerpc/pr70117.c: New.

From-SVN: r234881

9 years agoDaily bump.
GCC Administrator [Mon, 11 Apr 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234870

9 years agoDaily bump.
GCC Administrator [Sun, 10 Apr 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234865

9 years agoDaily bump.
GCC Administrator [Sat, 9 Apr 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234844

9 years agoDaily bump.
GCC Administrator [Fri, 8 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234818

9 years agoDaily bump.
GCC Administrator [Thu, 7 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234803

9 years agoDaily bump.
GCC Administrator [Wed, 6 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234769

9 years agopredicates.md (integer_store_memory_operand): Accept REG+D operands with a large...
John David Anglin [Tue, 5 Apr 2016 23:46:23 +0000 (23:46 +0000)] 
predicates.md (integer_store_memory_operand): Accept REG+D operands with a large offset when reload_in_progress is true.

* config/pa/predicates.md (integer_store_memory_operand): Accept
REG+D operands with a large offset when reload_in_progress is true.
(floating_point_store_memory_operand): Likewise.

From-SVN: r234767

9 years agore PR target/70510 (ICE: output_operand: invalid %-code with -mavx512bw -masm=intel...
Uros Bizjak [Tue, 5 Apr 2016 18:48:26 +0000 (20:48 +0200)] 
re PR target/70510 (ICE: output_operand: invalid %-code with -mavx512bw -masm=intel when emitting vpbroatcast)

PR target/70510
* config/i386/sse.md (iptr): Add V16SI and V8DI modes.

From-SVN: r234760

9 years agoCherry-pick r224315,221379 and r241487 from upstream.
Maxim Ostapenko [Tue, 5 Apr 2016 11:52:34 +0000 (11:52 +0000)] 
Cherry-pick r224315,221379 and r241487 from upstream.

libsanitizer/

PR sanitizer/70474
* asan/asan_mac.cc (GetMacosVersionInternal): Cherry pick
upstream r241487, 221379 and r224315.
(void MaybeReexec): Cherry pick upstream r241487.
* asan/asan_mac.h (enum MacosVersion): Cherry pick upstream r224315.

From-SVN: r234744

9 years ago[multiple changes]
Dominique d'Humieres [Tue, 5 Apr 2016 10:01:17 +0000 (12:01 +0200)] 
[multiple changes]

2016-04-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
    Dominique d'Humieres  <dominiq@lps.ens.fr>

PR libgfortran/70235
* io/write_float.def: Fix PF format for negative values of the scale
factor.

2016-04-05  Dominique d'Humieres  <dominiq@lps.ens.fr>
    Jerry DeLisle  <jvdelisle@gcc.gnu.org>

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

From-SVN: r234742

9 years agoDaily bump.
GCC Administrator [Tue, 5 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234729

9 years agore PR middle-end/70457 (ICE (segfault) in gimple_expand_builtin_pow on powerpc64le...
Bill Schmidt [Mon, 4 Apr 2016 15:47:51 +0000 (15:47 +0000)] 
re PR middle-end/70457 (ICE (segfault) in gimple_expand_builtin_pow on powerpc64le-linux-gnu)

[gcc]

2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Jakub Jelinek <jakub@redhat.com>

PR middle-end/70457
* tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
to ensure a call statement is compatible with a built-in's
prototype.
* tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
(execute_cse_sincos): Likewise.
(execute_optimize_widening_mul): Likewise.

[gcc/testsuite]

2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Jakub Jelinek <jakub@redhat.com>

PR middle-end/70457
* gcc.dg/torture/pr70457.c: New.

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

9 years agoDaily bump.
GCC Administrator [Mon, 4 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234703

9 years agoDaily bump.
GCC Administrator [Sun, 3 Apr 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234699

9 years agoDaily bump.
GCC Administrator [Sat, 2 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234689

9 years agoDaily bump.
GCC Administrator [Fri, 1 Apr 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234659

9 years ago[ARM] Fix sync.md ldrd output template for non-unified syntax
Kyrylo Tkachov [Thu, 31 Mar 2016 16:33:51 +0000 (16:33 +0000)] 
[ARM] Fix sync.md ldrd output template for non-unified syntax

* config/arm/sync.md (arm_atomic_loaddi2_ldrd): Fix output template
for non-unified syntax.

* gcc.target/arm/atomic_loaddi_relaxed_cond.c: New test.

From-SVN: r234642

9 years agore PR rtl-optimization/70460 (Miscompilation of glibc on i686-linux starting with...
Jakub Jelinek [Thu, 31 Mar 2016 13:21:43 +0000 (15:21 +0200)] 
re PR rtl-optimization/70460 (Miscompilation of glibc on i686-linux starting with r234101)

PR rtl-optimization/70460
* ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
with operand from REG_LABEL_OPERAND, instead substitute
SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
Don't do anything for REG_NON_LOCAL_GOTO jumps.

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

From-SVN: r234618

9 years ago[RS6000] reload_vsx_from_gprsf splitter
Alan Modra [Thu, 31 Mar 2016 06:26:02 +0000 (16:56 +1030)] 
[RS6000] reload_vsx_from_gprsf splitter

This is PR68973 part 2, caused by the reload_vsx_from_gprsf splitter
emitting an invalid move.  Part 1 deferred for branch until it is
proven that the reload change is necessary.

Backport from mainline
2016-02-16  Alan Modra  <amodra@gmail.com>
PR target/68973
* config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
(p8_mtvsrd_df, p8_mtvsrd_sf): New.
(p8_mtvsrd_1, p8_mtvsrd_2): Delete.
(p8_mtvsrwz): New.
(p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
(p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
(p8_fmrgow_<mode>): Likewise.
(reload_vsx_from_gpr<mode>): Adjust for above.  Use "wa" for
clobber constraint.
(reload_fpr_from_gpr<mode>): Adjust for above.  Use "d" for
op0 constraint.
(reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
to use movdi_internal64.  Remove op0_di.
* config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.

From-SVN: r234609

9 years agoDaily bump.
GCC Administrator [Thu, 31 Mar 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234605

9 years agoDaily bump.
GCC Administrator [Wed, 30 Mar 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234540

9 years ago[ARM][4.9 Backport] PR target/69875 Fix atomic_loaddi expansion
Kyrylo Tkachov [Tue, 29 Mar 2016 13:32:37 +0000 (13:32 +0000)] 
[ARM][4.9 Backport] PR target/69875 Fix atomic_loaddi expansion

PR target/69875
* config/arm/arm.h (TARGET_HAVE_LPAE): Define.
* config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
* config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
(atomic_loaddi_1): Delete.
(atomic_loaddi): Rewrite expander using the above changes.

* gcc.target/arm/atomic_loaddi_acquire.x: New file.
* gcc.target/arm/atomic_loaddi_relaxed.x: Likewise.
* gcc.target/arm/atomic_loaddi_seq_cst.x: Likewise.
* gcc.target/arm/atomic_loaddi_1.c: New test.
* gcc.target/arm/atomic_loaddi_2.c: Likewise.
* gcc.target/arm/atomic_loaddi_3.c: Likewise.
* gcc.target/arm/atomic_loaddi_4.c: Likewise.
* gcc.target/arm/atomic_loaddi_5.c: Likewise.
* gcc.target/arm/atomic_loaddi_6.c: Likewise.
* gcc.target/arm/atomic_loaddi_7.c: Likewise.
* gcc.target/arm/atomic_loaddi_8.c: Likewise.
* gcc.target/arm/atomic_loaddi_9.c: Likewise.

From-SVN: r234522

9 years ago[ARM] Split out armv7ve effective target check
Kyrylo Tkachov [Tue, 29 Mar 2016 13:24:42 +0000 (13:24 +0000)] 
[ARM] Split out armv7ve effective target check

Backport from mainline
2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* lib/target-supports.exp: Remove v7ve entry from loop
creating effective target checks.
(check_effective_target_arm_arch_v7ve_ok): New procedure.
(add_options_for_arm_arch_v7ve): Likewise.

From-SVN: r234520

9 years agoDaily bump.
GCC Administrator [Tue, 29 Mar 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234513

9 years agoDaily bump.
GCC Administrator [Mon, 28 Mar 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234497

9 years agoDaily bump.
GCC Administrator [Sun, 27 Mar 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234491

9 years agoDaily bump.
GCC Administrator [Sat, 26 Mar 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r234487