Commit Graph

135528 Commits

Author SHA1 Message Date
Richard Biener 62e22fcb79 re PR tree-optimization/64530 (Incorrect calculation when assigning to array with -O3)
2015-01-12  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/64530
	* tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
	back dr1.

	* gfortran.dg/pr64530.f90: New testcase.

From-SVN: r219474
2015-01-12 15:37:07 +00:00
Richard Biener 2a58c80212 re PR tree-optimization/64357 (ICE at -Os on x86_64-linux-gnu in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:579)
2015-01-12  Richard Biener  <rguenther@suse.de>

	PR middle-end/64357
	* tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
	latches properly.

	* gcc.dg/torture/pr64357.c: New testcase.

From-SVN: r219473
2015-01-12 15:34:37 +00:00
Kyrylo Tkachov 82ac9e4164 [ARM] Use Cortex-A17 tuning parameters for Cortex-A12
* config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
	Cortex-A17 tuning parameters.
	* config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.

From-SVN: r219472
2015-01-12 15:14:33 +00:00
Kyrylo Tkachov 57ceb728dc Fix date in gcc/ChangeLog
From-SVN: r219471
2015-01-12 15:09:37 +00:00
Kyrylo Tkachov 8b898d4cbd [ARM] Implement TARGET_SCHED_MACRO_FUSION_PAIR_P
* config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
	* config/arm/arm.c (arm_macro_fusion_p): New function.
	(arm_macro_fusion_pair_p): Likewise.
	(TARGET_SCHED_MACRO_FUSION_P): Define.
	(TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
	(ARM_FUSE_NOTHING): Likewise.
	(ARM_FUSE_MOVW_MOVT): Likewise.
	(arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
	arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
	arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
	arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
	arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
	arm_cortex_a5_tune): Specify fuseable_ops value.

From-SVN: r219470
2015-01-12 15:09:03 +00:00
Jason Merrill 49c8bc0c77 re PR c++/64547 (A non-const constexpr function is rejected incorrectly)
PR c++/64547
	* constexpr.c (cxx_eval_call_expression): A call to a void
	function doesn't need to return a value.

From-SVN: r219466
2015-01-12 09:15:07 -05:00
H.J. Lu 9a4fbc5908 Add the missing ChangeLog entry
From-SVN: r219462
2015-01-12 04:09:50 -08:00
H.J. Lu 0e8f3d9565 Correct target selector in gcc.target/i386/nop-mcount.c
* gcc.target/i386/nop-mcount.c: Properly place {} in target
	selector.

From-SVN: r219461
2015-01-12 03:51:18 -08:00
H.J. Lu 7b3592ee46 Update Linux/x86-64 linker test for PIE with copy reloc
PR bootstrap/64561
	* configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
	test for PIE with copy reloc.
	* configure: Regenerated.

From-SVN: r219460
2015-01-12 03:50:13 -08:00
Kyrylo Tkachov 03d5d16a66 [ARM][cleanup] Use R0_REGNUM and R1_REGNUM instead of 0 and 1 where appropriate
* config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
	in gen_rtx_REG.
	(arm_tls_descseq_addr): Likewise.
	(arm_gen_movmemqi): Likewise.
	(arm_expand_epilogue_apcs_frame): Likewise.
	(arm_expand_epilogue): Likewise.
	(arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
	in gen_rtx_REG.

From-SVN: r219459
2015-01-12 11:23:14 +00:00
Prathamesh Kulkarni c3aeec0aaa ggcplug.c: Include gcc-plugin.h after coretypes.h.
2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

testsuite/
	* gcc.dg/plugin/ggcplug.c: Include gcc-plugin.h after coretypes.h.

From-SVN: r219458
2015-01-12 10:48:07 +00:00
Martin Liska 365536ca8d re PR ipa/64550 (IPA fixes cause ICE in tree-ssa.c:939)
Fix for PR64550.

        PR ipa/64550
	* ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
	volatility for correct operands.
	* gcc.dg/ipa/PR64550.c: New test.

From-SVN: r219457
2015-01-12 10:39:25 +00:00
Martin Liska 1c928ddc69 IPA ICF: handle correctly indirect_calls.
* ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
	that a function is not leaf.
	(sem_function::compare_polymorphic_p): Likewise.

From-SVN: r219456
2015-01-12 09:59:39 +00:00
Prathamesh Kulkarni 76478bf94b visium.c: Add includes hashtab.h...
2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

	* config/visium/visium.c: Add includes hashtab.h, hash-set.h,
	machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
        fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
        fold-const.h, tree-check.h.

From-SVN: r219454
2015-01-12 09:40:18 +00:00
Jan Hubicka 208e5afa4b re PR ipa/63967 (r217633 caused internal compiler error: in estimate_edge_growth, at ipa-inline.h:299)
PR ipa/63967
	PR ipa/64425
	* ipa-inline.c (compute_uninlined_call_time,
	compute_inlined_call_time): Use counts for extra precision when
	needed possible.
	(big_speedup_p): Fix formating.
	(RELATIVE_TIME_BENEFIT_RANGE): Remove.
	(relative_time_benefit): Remove.
	(edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
	merge guessed and read profile paths.
	(inline_small_functions): Count only !optimize_size functions into
	initial size; be more lax about sanity check when profile is used;
	be sure to update inlined function profile when profile is read.

From-SVN: r219452
2015-01-12 09:28:15 +00:00
Jan Hubicka d8d5aef100 re PR ipa/63470 (internal compiler error: in estimate_edge_growth, at ipa-inline.h:308)
PR ipa/63470
	* ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
	cost when edge becomes direct.
	* ipa-prop.c (make_edge_direct): Do not adjust when speculation
	is resolved or when introducing new speculation.
	* testsuite/g++.dg/ipa/pr63470.C: New testcase.

From-SVN: r219451
2015-01-12 09:24:18 +00:00
Martin Liska 0d2dd460fe Correct ChangeLog entry.
From-SVN: r219450
2015-01-12 09:06:25 +00:00
Chen Gang 9f54bf9c6f re PR ipa/64550 (IPA fixes cause ICE in tree-ssa.c:939)
PR ipa/64550

        PR ipa/64551
	PR ipa/64552
	* ipa-icf.c (sem_function::equals_private): Use '&&' instead of
	'||' to fix typo issue.

	* gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
	accept and return NULL.

From-SVN: r219449
2015-01-12 09:02:33 +00:00
Martin Liska 90988f773c cgraph_edge refactoring.
* cgraph.c (cgraph_edge::remove_callee): Move function to header
	file for being inlined.
	(cgraph_set_edge_callee): Delete.
	(cgraph_edge::redirect_callee): Move function to header file
	for being inlined.
	(cgraph_edge::make_direct): Use new function.
	(cgraph_edge::dump_edge_flags): New function created from
	static dump_edge_flags function.
	(cgraph_node::dump): Use new function.
	(cgraph_edge::verify_count_and_frequency): New function created
	from verify_edge_count_and_frequency.
	(cgraph_edge::verify_corresponds_to_fndecl): New function created
	from verify_edge_corresponds_to_fndecl.
	(verify_edge_corresponds_to_fndecl): Delete.
	(cgraph_node::verify_node): Use new function.
	* cgraph.h (cgraph_edge::set_callee): New function.
	(cgraph_edge::dump_edge_flags): Likewise.
	(cgraph_edge::verify_corresponds_to_fndecl): Likewise.

From-SVN: r219448
2015-01-12 08:47:26 +00:00
Yury Gribov 6e7bdfacf2 check_GNU_style.sh: Support patches coming from stdin.
2015-01-12  Yury Gribov  <y.gribov@samsung.com>

	* check_GNU_style.sh: Support patches coming from stdin.
	Check that spaces are converted to tabs.
	Make double-space-after-dot check more precice.

From-SVN: r219447
2015-01-12 08:40:16 +00:00
Markus Trippelsdorf bc5a0a9c3b Revert "ipa/63470 add testcase"
This reverts commit 8b200261cca87bab4408813e5fe2ebebb8c19e8b.

From-SVN: r219446
2015-01-12 07:53:10 +00:00
Markus Trippelsdorf 844c944b8c ipa/63470 add testcase
2015-01-11  Markus Trippelsdorf  <markus@trippelsdorf.de>

	PR ipa/63470
	* ipa/pr63470.C: New testcase.

From-SVN: r219445
2015-01-12 07:48:50 +00:00
Jan Hubicka e3bde69aea ipa-utils.c (estimate_function_body_sizes): Do not free node params when called late with early=true.
* ipa-utils.c (estimate_function_body_sizes): Do not
	free node params when called late with early=true.

From-SVN: r219444
2015-01-12 07:08:27 +00:00
GCC Administrator 348f9b5124 Daily bump.
From-SVN: r219443
2015-01-12 00:18:18 +00:00
Janus Weil 517d78beb7 re PR fortran/63733 ([OOP] wrong resolution for OPERATOR generics)
2015-01-11  Janus Weil  <janus@gcc.gnu.org>

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

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

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

From-SVN: r219440
2015-01-11 23:00:06 +01:00
Janus Weil c34d453f05 re PR fortran/58023 ([F03] ICE on invalid with bad PPC declaration)
2015-01-11  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/58023
	* resolve.c (resolve_fl_derived0): Set error flag if problems with the
	interface of a procedure-pointer component were detected.

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

	PR fortran/58023
	* gfortran.dg/proc_ptr_comp_42.f90: New.

From-SVN: r219439
2015-01-11 20:13:24 +01:00
James Greenhalgh 2f9d3709ca [Patch Docs] Copy edit the text in "Everything about patterns"
* doc/md.texi (Instruction Patterns): Copy edit text for
	clarity and correctness.
	(Example): Likewise.

From-SVN: r219432
2015-01-11 17:32:00 +00:00
Janus Weil 5c0ba546b8 re PR fortran/64508 ([F03] interface check missing for procedure pointer component as actual argument)
2015-01-11  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/64508
	* interface.c (compare_parameter): Interface check for
	procedure-pointer component as actual argument.

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

	PR fortran/64508
	* gfortran.dg/proc_ptr_comp_41.f90: New.

From-SVN: r219431
2015-01-11 18:31:22 +01:00
Segher Boessenkool 830aecf07f * gcc.target/powerpc/recip-test.h (_ARCH_PPC64): Use __LP64__ instead.
From-SVN: r219430
2015-01-11 12:41:50 +01:00
Sandra Loosemore abaab34f54 invoke.texi (Option Summary): Break long lines.
2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi (Option Summary): Break long lines.
	[(-fdiagnostics-color)]: Put long literal in @smallexample
	instead of inline.
	[(-fsanitize-recover)]: Likewise.
	[(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
	[(-ffast-math)]: Likewise.
	[(--param max-inline-insns-recursive)]: Likewise.
	[(--param max-inline-recursive-depth)]: Likewise.
	[(-mno-text-section-literals)]: Likewise.

From-SVN: r219429
2015-01-10 21:10:19 -05:00
GCC Administrator b0bb5e7470 Daily bump.
From-SVN: r219428
2015-01-11 00:16:41 +00:00
Thomas Schwinge f1f3453e11 libgomp: Now known as the GNU Offloading and Multi Processing Runtime Library.
libgomp/
	* configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
	to "GNU Offloading and Multi Processing Runtime Library".  Change
	all users.
	* configure: Regenerate.
	* libgomp.texi: Update.
	gcc/
	* doc/install.texi: Update for libgomp being renamed from "GNU
	OpenMP Runtime Library" to "GNU Offloading and Multi Processing
	Runtime Library".
	* doc/sourcebuild.texi: Likewise.
	gcc/fortran/
	* gfortran.texi: Update for libgomp being renamed from "GNU OpenMP
	Runtime Library" to "GNU Offloading and Multi Processing Runtime
	Library".
	* intrinsic.texi: Likewise.
	libstdc++-v3/
	* doc/xml/manual/parallel_mode.xml: Update for libgomp being
	renamed from "GNU OpenMP Runtime Library" to "GNU Offloading and
	Multi Processing Runtime Library".

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
Co-Authored-By: Julian Brown <julian@codesourcery.com>

From-SVN: r219425
2015-01-10 20:10:37 +01:00
Tobias Burnus aecfd03520 re PR fortran/64522 (Free-form source code: -Wline-truncation is no longer enabled by default)
2015-01-10  Tobias Burnus  <burnus@net-b.de>

        PR fortran/64522
        * invoke.texi (Wline-truncation): Document new behaviour.
        * lang.opt (Wline-truncation): Add Init(-1).
        * options.c (gfc_post_options): If -Wline-truncation is unset,
        enable it for free-form source files; for the latter, also use
        -Werror=line-truncation, unless -Wno-error has been specified.

2015-01-10  Tobias Burnus  <burnus@net-b.de>

        PR fortran/64522
        * gfortran.dg/line_length_5.f90: Change dg-warning to dg-error
        and add dg-excess-errors.
        * gfortran.dg/line_length_6.f90: New.
        * gfortran.dg/line_length_7.f90: New.
        * gfortran.dg/line_length_8.f90: New.
        * gfortran.dg/line_length_9.f90: New.
        * gfortran.dg/line_length_10.f90: New.
        * gfortran.dg/line_length_11.f90: New.

From-SVN: r219424
2015-01-10 16:49:37 +01:00
Eric Botcazou ab018c8213 cuintp.c: Bump copyright year.
* gcc-interface/cuintp.c: Bump copyright year.
	* gcc-interface/decl.c: Likewise.
	* gcc-interface/targtyps.c: Likewise.
	* gcc-interface/trans.c: Likewise.
	* gcc-interface/utils2.c: Likewise.

From-SVN: r219423
2015-01-10 10:30:26 +00:00
Anthony Green b10b03c4c0 Fix mul.x flag for moxie
From-SVN: r219422
2015-01-10 10:16:53 +00:00
Anthony Green 6085e66e95 Tabify assembly output for moxie
From-SVN: r219421
2015-01-10 02:02:02 +00:00
Anthony Green 1d763aec9e Fix CC_REG definition for moxie
From-SVN: r219420
2015-01-10 01:21:54 +00:00
Ian Lance Taylor bb782ca3ec cmd/go: Back-port CL 157460043 (pass $CGO_LDFLAGS to linker with the "gccgo" toolchain).
From-SVN: r219419
2015-01-10 01:01:10 +00:00
Ian Lance Taylor 6b3762e4c2 Makefile.am (GOCOMPILER): Set to GOC or GOC_FOR_TARGET depending on whether this is a native build or not.
* Makefile.am (GOCOMPILER): Set to GOC or GOC_FOR_TARGET depending
	on whether this is a native build or not.
	(GOCOMPILE, GOLINK): Use $(GOCOMPILER) instead of $(GOC).
	(MOSTLYCLEANFILES): Define.
	* Makefile.in: Rebuild.

From-SVN: r219418
2015-01-10 00:23:48 +00:00
GCC Administrator a36ce096c3 Daily bump.
From-SVN: r219417
2015-01-10 00:16:32 +00:00
Sandra Loosemore c608d704ca invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
	([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
	of log files.

From-SVN: r219414
2015-01-09 18:34:58 -05:00
David Malcolm 8cf8f22346 Simplify jit.dg/test-combination.c
gcc/testsuite/ChangeLog:
	* jit.dg/test-threads.c (struct testcase): Move declaration
	to jit.dg/all-non-failing-tests.h.
	(testcases): Likewise.
	* jit.dg/all-non-failing-tests.h (struct testcase): Move
	declaration here from jit.dg/all-non-failing-tests.h.
	(testcases): Likewise.
	* jit.dg/test-combination.c (create_code): Eliminate spelling
	out all of the testcases in favor of looping through the
	"testcases" metadata.
	(verify_code): Likewise.

From-SVN: r219413
2015-01-09 22:05:55 +00:00
Andreas Tobler 5357406ff8 arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>

    * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.

From-SVN: r219412
2015-01-09 22:52:07 +01:00
David Malcolm 860e981ce9 Fix the jit build after header flattening of r219402
gcc/jit/ChangeLog:
	* dummy-frontend.c: Include "fixed-value.h", "alias.h", "flags.h",
	"symtab.h", "inchash.h".  Move include of "hash-set.h" much
	earlier.
	* jit-builtins.c: Remove redundant includes of "opts.h" and
	"tree.h".
	* jit-common.h: Include "hash-set.h", "input.h", "vec.h",
	"double-int.h", "alias.h", "flags.h", "symtab.h", "inchash.h".
	* jit-playback.c: Include "hashtab.h", "machmode.h", "input.h",
	"statistics.h", "vec.h", "double-int.h", "real.h",
	"fixed-value.h", "alias.h", "flags.h", "symtab.h", "tree-core.h",
	"inchash.h", "fold-const.h".  Move include of "hash-set.h" to
	earlier.
	* jit-recording.c: Remove redundant includes of "opts.h" and
	"tree.h".

From-SVN: r219411
2015-01-09 21:45:33 +00:00
Bernd Schmidt 1b34e6e250 re PR middle-end/64412 (ICE in offload compiler: in extract_insn, at recog.c:2327)
PR middle-end/64412
	* lto-streamer.h (lto_stream_offload_p): New declaration.
	* lto-streamer.c (lto_stream_offload_p): New variable.
	* cgraphunit.c (ipa_passes): Set lto_stream_offload_p
	at the same time as section_name_prefix.
	* lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
	if lto_stream_offload_p.
	* tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
	stream TREE_TARGET_OPTION if lto_stream_offload_p.
	(write_ts_function_decl_tree_pointers): Don't
	stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
	* tree-streamer-in.c (unpack_value_fields): Don't stream
	TREE_TARGET_OPTION in if ACCEL_COMPILER.
	(lto_input_ts_function_decl_tree_pointers): Don't stream
	DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
	* lto-opts.c (lto_write_options): Use lto_stream_offload_p
	instead of section_name_prefix string comparisons.
lto/
	* lto.c (read_cgraph_and_symbols): Set lto_stream_offload_p
	if ACCEL_COMPILER.

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

From-SVN: r219410
2015-01-09 22:38:00 +01:00
Ian Lance Taylor 000c70a76c * Initial implementation.
From-SVN: r219408
2015-01-09 21:23:44 +00:00
Ian Lance Taylor bf1de3f0ac configure.ac (host_tools): Add gotools.
./:2015-01-09  Ian Lance Taylor  <iant@google.com>

	* configure.ac (host_tools): Add gotools.
	* Makefile.def (host_modules): Add gotools.
	(dependencies): Add dependency of all-gotools on all-target-libgo.

gcc/go/:
2015-01-09  Ian Lance Taylor  <iant@google.com>

	* config-lang.in (lang_dirs): Define.

gotools/:
2015-01-09  Ian Lance Taylor  <iant@google.com>

	* Initial implementation.

From-SVN: r219407
2015-01-09 21:23:09 +00:00
Ian Lance Taylor b44fb4c37a cmd/go: Adjust finding gccgo to match current upstream sources.
From-SVN: r219406
2015-01-09 21:18:04 +00:00
Jakub Jelinek adfac8dfed re PR rtl-optimization/64536 (Undefined .L* symbol starting with jump2 on s390x)
PR rtl-optimization/64536
	* cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
	tablejumps.

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

From-SVN: r219405
2015-01-09 22:17:10 +01:00
David Malcolm ec37f1bc59 Add new file gcc/testsuite/jit.dg/test-constants.c erroneously omitted from r219401
From-SVN: r219404
2015-01-09 21:13:49 +00:00