Commit Graph

135538 Commits

Author SHA1 Message Date
Jakub Jelinek
aadb701b4c re PR other/64370 (sreal.c:125:23: error: 'exp2' was not declared in this scope)
PR other/64370
	* sreal.c (sreal::to_double): Use ldexp instead of scalbnl.

From-SVN: r219489
2015-01-12 21:30:09 +01:00
Jeff Law
351f160060 re PR target/64461 (bad assembly generated for Coldfire targets)
PR target/64461
        * gcc.target/m68k/pr64461.c: New test.

From-SVN: r219488
2015-01-12 13:19:57 -07:00
David Malcolm
1c35cc2c75 jit-playback.c: fix missing fclose
gcc/jit/ChangeLog:
	* jit-playback.c (gcc::jit::playback::context::read_dump_file):
	Add missing fclose on error-handling path.

From-SVN: r219487
2015-01-12 19:57:05 +00:00
Jeff Law
cfd02f69d7 Add PR marker for last commit
From-SVN: r219484
2015-01-12 12:10:40 -07:00
Jeff Law
1481bdb1a0 m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
* config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
       (trunchiqi2, truncsihi2): Similarly.

From-SVN: r219483
2015-01-12 12:09:12 -07:00
Jeff Law
f698a4b182 h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly rather than calling F.
* config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
       rather than calling F.

From-SVN: r219481
2015-01-12 10:26:09 -07:00
David Malcolm
791cfef8e7 jit: API change to gcc_jit_context_new_global
gcc/jit/ChangeLog:
	* docs/cp/topics/expressions.rst (Global variables): Add
	enum gcc_jit_global_kind param to gccjit::context::new_global.
	* docs/topics/expressions.rst (Global variables): Likewise.
	Document the new enum.
	* docs/topics/results.rst (Compilation results): Document
	globals-handling.
	* dummy-frontend.c (jit_langhook_write_globals): Call into the
	playback context's write_global_decls_1 and write_global_decls_2
	before and after calling symtab->finalize_compilation_unit ().
	* jit-playback.c: Include "debug.h".
	(gcc::jit::playback::context::new_global): Add "kind" param and
	use it to set TREE_PUBLIC, TREE_STATIC and DECL_EXTERNAL on the
	underlying VAR_DECL.  Call varpool_node::get_create on the
	VAR_DECL, and add it to m_globals.
	(gcc::jit::playback::context::write_global_decls_1): New function.
	(gcc::jit::playback::context::write_global_decls_2): New function.
	* jit-playback.h (gcc::jit::playback::context::context): Call
	create on m_globals.
	(gcc::jit::playback::context::new_global): Add "kind" param.
	(gcc::jit::playback::context::write_global_decls_1): New function.
	(gcc::jit::playback::context::write_global_decls_2): New function.
	(gcc::jit::playback::context::m_globals): New field.
	* jit-recording.c (gcc::jit::recording::context::context):
	Initialize m_globals.
	(gcc::jit::recording::context::new_global): Add param "kind".
	Add the new global to m_globals.
	(gcc::jit::recording::context::dump_to_file): Dump the globals.
	(gcc::jit::recording::global::replay_into): Add field m_kind.
	(gcc::jit::recording::global::write_to_dump): New override.
	* jit-recording.h (gcc::jit::recording::context::new_global): Add
	param "kind".
	(gcc::jit::recording::context::m_globals): New field.
	(gcc::jit::recording::global::global): Add param kind.
	(gcc::jit::recording::global::write_to_dump): New override.
	(gcc::jit::recording::global::m_kind): New field.
	* jit-result.c (gcc::jit::result::get_global): New function.
	* jit-result.h (gcc::jit::result::get_global): New function.
	* libgccjit++.h (gccjit::context::new_global): Add "kind" param.
	* libgccjit.c (gcc_jit_context_new_global): Likewise.
	(gcc_jit_result_get_global): New API entrypoint.
	* libgccjit.h (gcc_jit_result_get_global): New API entrypoint.
	(enum gcc_jit_global_kind): New enum.
	(gcc_jit_context_new_global): API change: add "kind" param.
	* libgccjit.map (gcc_jit_result_get_global): New symbol.

gcc/testsuite/ChangeLog:
	* jit.dg/test-array-as-pointer.c (create_code): Update call
	to gcc_jit_context_new_global by setting "kind" to
	GCC_JIT_GLOBAL_IMPORTED.
	* jit.dg/test-error-array-as-pointer.c: Likewise.
	* jit.dg/test-expressions.c (make_test_of_get_address): Likewise.
	* jit.dg/test-fuzzer.c (make_random_global): Likewise, but
	setting kind to GCC_JIT_GLOBAL_EXPORTED.
	* jit.dg/test-using-global.c (the_global): Rename to...
	(imported_global): ...this.
	(create_code): Update to test the three kinds of global.
	(verify_code): Likewise.

From-SVN: r219480
2015-01-12 17:14:02 +00:00
Marc Glisse
6c0fcb81da Avoid undefined behavior in gcc.target/i386/pr64291-1.c
PR testsuite/64427
	* gcc.target/i386/pr64291-1.c: Limit to lp64 tarrget.  Avoid
	undefined behavior.
	* gcc.target/i386/pr64291-2.c: Updated.

From-SVN: r219479
2015-01-12 09:08:04 -08:00
Bernd Edlinger
020ca9503b tsan.c (instrument_expr): Use force_gimple_operand.
2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * tsan.c (instrument_expr): Use force_gimple_operand.
        Use may_be_nonaddressable_p instead of is_gimple_addressable.

From-SVN: r219478
2015-01-12 16:47:11 +00:00
Richard Henderson
b1760f7f91 Merge libffi to upstream commit c82cc159426d8d4402375fa1ae3f045b9cf82e16
From-SVN: r219477
2015-01-12 08:19:59 -08:00
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 8b200261cc.

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