Commit Graph

136527 Commits

Author SHA1 Message Date
Jerry DeLisle
80f6181e27 re PR fortran/57822 (I/O: "(g0)" wrongly prints "E+0000")
2015-02-10 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/57822
	* io/write_float.def (output_float): Apply fix of previous patch
	to correctly calculate the exponent number of digits and take
	care of wide character output.

From-SVN: r220606
2015-02-11 04:29:06 +00:00
David Wohlferd
6dc6e7d061 invoke.texi (x86 Options [-masm=dialect]): Add cross-references to inline asm.
2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
	    Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
	to inline asm.  List dialects in proper order.

Co-Authored-By: Sandra Loosemore <sandra@codesourcery.com>

From-SVN: r220605
2015-02-10 21:28:59 -05:00
David Wohlferd
78f76f2f24 extend.texi (Loop-Specific Pragmas): Fix grammar error.
2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
	    Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.

Co-Authored-By: Sandra Loosemore <sandra@codesourcery.com>

From-SVN: r220604
2015-02-10 21:12:50 -05:00
David Wohlferd
c09d690157 extend.texi (Symbol-Renaming Pragmas): Restore (slightly modified) reference to Solaris.
2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>

	gcc/
	* doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
        modified) reference to Solaris.

From-SVN: r220603
2015-02-10 20:47:12 -05:00
Sandra Loosemore
f9911556be extend.texi (Extended Asm): Fix typos.
2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi (Extended Asm): Fix typos.

From-SVN: r220602
2015-02-10 19:25:52 -05:00
GCC Administrator
b6e273da2e Daily bump.
From-SVN: r220601
2015-02-11 00:16:11 +00:00
Andrew Pinski
97c32df4ba ffitarget.h (ffi_arg): Use unsigned long long for ILP32.
2015-02-10  Andrew Pinski  <apinski@cavium.com>

        * src/aarch64/ffitarget.h (ffi_arg): Use unsigned long long for ILP32.
        (FFI_SIZEOF_ARG): Define to 64 for ILP32.
        (ffi_sarg): Use signed long long for ILP32.

        * src/aarch64/sysv.S (PTR_REG): New macro.
        (PTR_SIZE): New macro.
        (ffi_closure_SYSV): Load cif, fn and user_data using PTR_REG.
        (ffi_go_closure_SYSV): Load cif and fn using PTR_REG.

From-SVN: r220598
2015-02-10 14:46:47 -08:00
Jakub Jelinek
c8aa1929d5 re PR sanitizer/65004 (Compare debug failure with -fno-sanitize-recover -fsanitize=address -fsanitize=undefined)
PR sanitizer/65004
	* ubsan.c (ubsan_expand_vptr_ifn): Always return true.

	* g++.dg/asan/pr65004.C: New test.

From-SVN: r220596
2015-02-10 23:00:11 +01:00
Oleg Endo
2fdc039982 re PR target/64661 ([SH] Allow @(disp,reg) address mode for atomics)
gcc/
	PR target/64661
	* config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
	TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
	TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
	* config/sh/constraints.md (Ara, Add): New constraints.
	* config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
	predicates.
	(atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
	atomic_mem_operand_0.  Don't use force_reg on the memory address.
	(atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
	Sra constraint.  Convert to insn_and_split.  Add workaround for
	PR 64974.
	(atomic_compare_and_swap<mode>_hard): Copy to
	atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
	Use atomic_mem_operand_0 predicate.
	(atomic_compare_and_swap<mode>_soft_gusa,
	atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
	AraAdd constraints.
	(atomic_compare_and_swap<mode>_soft_tcb,
	atomic_compare_and_swap<mode>_soft_imask,
	atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
	atomic_mem_operand_0 predicate and SraSdd constraints.
	(atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
	constraint.
	(atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
	Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
	(atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
	atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
	force_reg on the memory address.
	(atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
	atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
	atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
	atomic_mem_operand_1 predicate and Sra constraint.
	(atomic_fetch_<fetchop_name><mode>_hard): Copy to
	atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
	Use atomic_mem_operand_1 predicate.
	(atomic_<fetchop_name><mode>_hard): Copy to
	atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
	Use atomic_mem_operand_1 predicate.
	(atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
	Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
	(atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
	insn_and_split.  Use atomic_mem_operand_1 predicate.
	(atomic_<fetchop_name>_fetch<mode>_hard): Copy to
	atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
	Use atomic_mem_operand_1 predicate.
	(atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
	Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
	(atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
	in generated insn with original mem operand before emitting the insn.
	(atomic_fetch_<fetchop_name><mode>_soft_gusa,
	atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
	atomic_<fetchop_name>_fetch<mode>_soft_gusa,
	atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
	Use atomic_mem_operand_1 predicate and AraAdd constraints.
	(atomic_fetch_<fetchop_name><mode>_soft_tcb,
	atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
	atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
	atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
	atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
	atomic_<fetchop_name>_fetch<mode>_soft_tcb,
	atomic_not_fetch<mode>_soft_tcb,
	atomic_<fetchop_name>_fetch<mode>_soft_imask,
	atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
	atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
	Use atomic_mem_operand_1 predicate and SraSdd constraints.

gcc/testsuite/
	PR target/64661
	* gcc.taget/sh/pr64661-0.h: New.
	* gcc.taget/sh/pr64661-1.c: New.
	* gcc.taget/sh/pr64661-2.c: New.
	* gcc.taget/sh/pr64661-3.c: New.
	* gcc.taget/sh/pr64661-4.c: New.

From-SVN: r220594
2015-02-10 20:47:33 +00:00
Uros Bizjak
afa208748d alpha.md (reload_out<mode>_aligned): Make operands 2 and 3 earlyclobber operands.
* config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
	and 3 earlyclobber operands.

From-SVN: r220590
2015-02-10 18:49:45 +01:00
Jason Merrill
0ec052fe44 re PR c++/64994 (Firefox build error: ICE: in cxx_eval_call_expression, at cp/constexpr.c:1353)
PR c++/64994
	* constexpr.c (cxx_eval_call_expression): Walk the clone list.

From-SVN: r220589
2015-02-10 12:20:01 -05:00
Jan Hubicka
082908e33d * common.opt (fstack-reuse): Mark as optimization.
From-SVN: r220588
2015-02-10 16:44:27 +00:00
Jan Hubicka
d90cae086f re PR ipa/64982 (Many g++ failures on x86_64-apple-darwin14 with -m32.)
PR ipa/64982
	* cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg
	thunks.
	* method.c (use_thunk): Do not check for stdarg thunks.

From-SVN: r220587
2015-02-10 16:38:31 +00:00
Markus Trippelsdorf
b2f2a1c99a Fix formating of gcc.dg/torture/pr64326.c
From-SVN: r220586
2015-02-10 15:10:55 +00:00
Trevor Saunders
11f3ac4911 cap frequency in make_forwarder_block
In the testcase the block with problematic frequency has to incoming
edges.  Each edge has probability 1.  The first edge's source bb has
frequency 873/10000, and the second has a frequency of 9409/10000.  So
at least one of those is slightly high probably from some sort of rounding
issue related to fixed point, but in any case make_forwarder_block
should not create basic blocks with frequency greater than BB_FREQ_MAX.

gcc/

	PR tree-optimization/64326
	* cfghooks.c (make_forwarder_block): Cap frequency of created
	basic block.

From-SVN: r220585
2015-02-10 14:49:07 +00:00
Rainer Emrich
e4c2ac365c re PR gcov-profile/61889 (gcov-tool.c uses nftw, ftw.h)
2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>

	PR gcov-profile/61889
	* gcov-tool.c: Remove wrong #if !defined(_WIN32)

From-SVN: r220584
2015-02-10 15:14:58 +01:00
Kai Tietz
471274de91 Fixed pasto in ChangeLog
From-SVN: r220583
2015-02-10 15:14:09 +01:00
Rainer Emrich
981741888b re PR gcov-profile/61889 (gcov-tool.c uses nftw, ftw.h)
2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>

	PR gcov-profile/61889
	* libgcc/libgcov-driver-system.c: undefine clashing macro for mkdir.

From-SVN: r220582
2015-02-10 15:13:13 +01:00
Richard Biener
703c9ccdc6 re PR tree-optimization/64995 (ICE in vn_reference_insert_pieces, at tree-ssa-sccvn.c:2341)
2015-02-10  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/64995
	* tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
	value we use is final.
	(visit_reference_op_store): Always valueize op.
	(visit_use): Properly valueize vuses.

	* g++.dg/torture/pr64995.C: New testcase.

From-SVN: r220581
2015-02-10 13:37:54 +00:00
Richard Biener
696814edb8 re PR tree-optimization/64909 (Missed vectorization with bdver1)
2015-02-10  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/64909
	* tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
	pass a scalar-stmt count estimate to the cost model.
	* tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.

	* gcc.dg/vect/costmodel/x86_64/costmodel-pr64909.c: New testcase.

From-SVN: r220580
2015-02-10 11:48:47 +00:00
Alexander Monakov
644a47612e invoke.texi (-fvar-tracking-assignments): Clarify that VTA is enabled by default together with var-tracking.
2015-01-30  Alexander Monakov  <amonakov@ispras.ru>

	* doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
	enabled by default together with var-tracking.

From-SVN: r220579
2015-02-10 14:43:36 +03:00
Nick Clifton
7299e9f15a rl78.c: Remove DIV attribute code accidentally included in previous rl78 commit.
* config/rl78/rl78.c: Remove DIV attribute code accidentally
	included in previous rl78 commit.

From-SVN: r220578
2015-02-10 10:10:07 +00:00
Rainer Orth
9e27153139 Fix <iso/math_c99.h> signbit on Solaris
fixincludes:
	* inclhack.def (solaris_math_11): New fix.
	* fixincl.x: Regenerate.
	* tests/base/iso/math_c99.h [SOLARIS_MATH_11_CHECK]: New test.

	gcc/testsuite:
	* gcc.dg/signbit-sa.c: New test.

From-SVN: r220577
2015-02-10 10:09:49 +00:00
Richard Biener
bab4f4e37f tree-streamer.h (streamer_read_tree_bitfields): Adjust.
2015-02-10  Richard Biener  <rguenther@suse.de>

	* tree-streamer.h (streamer_read_tree_bitfields): Adjust.
	* tree-streamer-in.c (streamer_read_tree_bitfields): Do not
	return the bitpack.

From-SVN: r220576
2015-02-10 09:34:29 +00:00
Trevor Saunders
3705004557 Support gcov-tool without ftw.h
gcc/

	PR gcov-profile/61889
	* config.in: regenerate.
	* configure.in: Likewise.
	* configure.ac: Check for ftw.h.
	* gcov-tool.c: Check for ftw.h before using nftw.

From-SVN: r220566
2015-02-10 03:40:20 +00:00
Jerry DeLisle
2d51422f39 re PR fortran/57822 (I/O: "(g0)" wrongly prints "E+0000")
2015-02-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/57822
	* gfortran/fmt_g0_7.f08: New test.

From-SVN: r220565
2015-02-10 03:34:19 +00:00
Jerry DeLisle
94ce26f1b7 re PR fortran/57822 (I/O: "(g0)" wrongly prints "E+0000")
2015-02-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/57822
	* io/write_float.def (output_float): If doing g0 editing and
	exponent is zero, do not emit exponent.

From-SVN: r220564
2015-02-10 02:49:58 +00:00
Bin Cheng
940652d50f re PR tree-optimization/43378 (IVOPTs messes up code)
PR tree-optimization/43378
	* gcc.dg/tree-ssa/pr43378.c: New test.

From-SVN: r220563
2015-02-10 02:34:41 +00:00
Trevor Saunders
a9e083cc43 Tolerate different definitions of symbols in lto
gcc/

	PR lto/64076
	* ipa-visibility.c (update_visibility_by_resolution_info): Only
	assert when not in lto mode.

From-SVN: r220561
2015-02-10 02:23:11 +00:00
Zhouyi Zhou
32721b2cb5 ira-color.c (setup_left_conflict_sizes_p): Simplify initialization/assignment of conflict_size.
* ira-color.c (setup_left_conflict_sizes_p): Simplify
        initialization/assignment of conflict_size.

From-SVN: r220560
2015-02-09 18:44:18 -07:00
Georg Koppen
adebb6e733 ssp.c (__guard_setup): For Windows...
* ssp.c (__guard_setup): For Windows, use approved
       methods to get a suitable random number for the stack
       check guard rather than reading /dev/random.

From-SVN: r220559
2015-02-09 18:44:08 -07:00
Jan Hubicka
94a2f772f0 re PR ipa/64978 (ICE: in ipcp_verify_propagated_values, at ipa-cp.c:1060)
PR ipa/64978
	* ipa-cp.c (gather_caller_stats): Skip thunks.
	(propagate_constants_topo): Skip aliases.

	* g++.dg/torture/pr64978.C: New testcase.

From-SVN: r220557
2015-02-10 00:38:46 +00:00
GCC Administrator
b25d7b91b0 Daily bump.
From-SVN: r220556
2015-02-10 00:16:11 +00:00
Kaz Kojima
d808ecdd4e re PR target/64761 (-freorder-blocks-and-partition causes some failures on SH)
PR target/64761
[SH] Add jump insn for -freorder-blocks-and-partition.  Don't degrade
-freorder-blocks-and-partition to -freorder-blocks even when unwinding
is enabled.

* [SH] Add jump insn for -freorder-blocks-and-partition.

From-SVN: r220553
2015-02-10 00:00:54 +00:00
Joern Rennecke
cf6186e9f2 re PR target/64761 (-freorder-blocks-and-partition causes some failures on SH)
PR target/64761
Replace MD_REDIRECT_BRANCH with TARGET_CAN_FOLLOW_JUMP.


Co-Authored-By: Kaz Kojima <kkojima@gcc.gnu.org>

From-SVN: r220552
2015-02-09 23:47:11 +00:00
Jakub Jelinek
d51151b2f4 re PR sanitizer/64981 (-fsanitize=address cant expand __builtin_ia32_rdtsc)
PR sanitizer/64981
	* builtins.c (expand_builtin): Call targetm.expand_builtin
	for BUILT_IN_MD builtins regardless of asan_intercepted_p.

	* gcc.dg/asan/pr64981.c: New test.

From-SVN: r220551
2015-02-09 22:23:58 +01:00
Marek Polacek
c3e38a03df re PR c/64856 (Initializing struct not accepted in gnu99)
PR c/64856
	* c-typeck.c (process_init_element): Don't always wrap
	COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
	initializing a range of elements.

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

From-SVN: r220550
2015-02-09 21:19:02 +00:00
Jan Hubicka
6248441777 re PR ipa/61548 (FAIL: gcc.dg/tls/alias-1.c)
PR ipa/61548
	* tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.

From-SVN: r220549
2015-02-09 21:06:35 +00:00
Jan Hubicka
106b546664 re PR ipa/63566 (i686 bootstrap fails: ICE RTL flag check: INSN_UID used with unexpected rtx code 'set' in INSN_UID, at rtl.h:1326)
PR ipa/63566 
	* ipa-icf.c (set_local): New function.
	(sem_function::merge): Use it.

From-SVN: r220548
2015-02-09 20:45:04 +00:00
Jan Hubicka
b8ec1bd329 ipa-devirt.c (odr_types_equivalent_p): Fix formating.
* ipa-devirt.c (odr_types_equivalent_p): Fix formating.
	(add_type_duplicate): Fix comparison of BINFOs.

From-SVN: r220547
2015-02-09 20:42:59 +00:00
Jan Hubicka
7d8adcba74 ipa-devirt.c (odr_types_equivalent_p): Fix formating.
* ipa-devirt.c (odr_types_equivalent_p): Fix formating.
	(add_type_duplicate): Fix comparison of BINFOs.

From-SVN: r220546
2015-02-09 20:34:18 +00:00
Jan Hubicka
62c7e4b748 ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE on getting VOID pointer.
* ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
	on getting VOID pointer.

From-SVN: r220545
2015-02-09 20:24:55 +00:00
Jason Merrill
a02f26f6d8 re PR c++/64899 (Illegal dynamic initialization)
PR c++/64899
	* init.c (build_vec_init): Handle default-initialized array with
	constexpr default constructor.

From-SVN: r220544
2015-02-09 14:15:55 -05:00
Jakub Jelinek
21c0137a8a re PR target/64979 (stdarg optimization not able to find escape sites in phi nodes)
PR target/64979
	* tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
	va_list escapes.

	* gcc.dg/tree-ssa/stdarg-7.c: New test.
	* gcc.c-torture/execute/pr64979.c: New test.

From-SVN: r220543
2015-02-09 18:01:36 +01:00
Alan Lawrence
468963de96 [Obvious][Testsuite] Remove extraneous target from gcc.target/arm/macro_defs0.c
gcc/testsuite/:

	* gcc.target/arm/macro_defs0.c: Remove extraneous "target"

From-SVN: r220542
2015-02-09 16:26:22 +00:00
Richard Biener
434fa90395 genmatch.c (replace_id): Copy expr_type.
2015-02-09  Richard Biener  <rguenther@suse.de>

	* genmatch.c (replace_id): Copy expr_type.

From-SVN: r220541
2015-02-09 13:43:17 +00:00
Richard Biener
b6bf201e34 tree-streamer.h (streamer_pack_tree_bitfields): Remove.
2015-02-09  Richard Biener  <rguenther@suse.de>

	* tree-streamer.h (streamer_pack_tree_bitfields): Remove.
	(streamer_write_tree_bitfields): Declare.
	* tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
	properly unpack padding.
	(unpack_value_fields): Inline ...
	(streamer_read_tree_bitfields): ... here.
	* tree-streamer-out.c (pack_ts_base_value_fields): Inline
	and properly add padding bits.
	(streamer_pack_tree_bitfields): Fold into ...
	(streamer_write_tree_bitfields): ... this new function,
	exposing the bitpack object.
	* lto-streamer-out.c (lto_write_tree_1): Call
	streamer_write_tree_bitfields.

From-SVN: r220540
2015-02-09 13:18:15 +00:00
Uros Bizjak
ddc5ffe9c2 * testsuite/ChangeLog: Improve my last commit message.
From-SVN: r220539
2015-02-09 13:26:55 +01:00
Uros Bizjak
91f983770f ssa-dom-cse-2.c: Xfail for alpha*-*-*.
* gcc.dg/tree-ssa/ssa-dom-cse-2.c: Xfail for alpha*-*-*.
	* gcc.dg/tree-ssa/pr42585.c: Xfail scan-tree-dump-times for alpha*-*-*.

From-SVN: r220538
2015-02-09 13:22:17 +01:00
Uros Bizjak
c5ed53f5e7 re PR target/58757 (Advertise the lack of denormal support on alpha without -mieee)
PR target/58757
	* gcc.dg/c11-true_min-1.c: Xfail execution for alpha*-*-*.

From-SVN: r220537
2015-02-09 12:53:26 +01:00