Commit Graph

136326 Commits

Author SHA1 Message Date
Thomas Schwinge
a8adc78f49 libvtv: autoreconf.
libvtv/
	* Makefile.in: Regenerate.
	* aclocal.m4: Likewise.
	* configure: Likewise.
	* testsuite/Makefile.in: Likewise.

From-SVN: r220535
2015-02-09 12:41:22 +01:00
Tom de Vries
16c1c897b8 Move ChangeLog entry
From-SVN: r220533
2015-02-09 10:49:43 +00:00
Tom de Vries
e8c8d50e54 Fix scan-tree-dump in gcc.dg/graphite/scop-19.c for fpic
2015-02-09  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/graphite/scop-19.c: Fix scan-tree-dump for fpic.

From-SVN: r220532
2015-02-09 10:35:43 +00:00
Martin Liska
e3e968e906 IPA ICF: Fix late initialization of callgraph hooks.
* g++.dg/ipa/pr64858.C: New test.
	* ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
	just if not yet registered.
	(ipa_icf_generate_summary): Register callgraph hooks.

From-SVN: r220531
2015-02-09 10:31:14 +00:00
Tom de Vries
62e0e086d3 Fix gcc.dg/uninit-19.c for fpic
2015-02-09  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/uninit-19.c: Fix warning line for fpic.

From-SVN: r220530
2015-02-09 10:21:59 +00:00
GCC Administrator
d741d1434e Daily bump.
From-SVN: r220526
2015-02-09 00:16:12 +00:00
Andrew Pinski
ea51eee363 ssa-dom-cse-2.c: xfail for AARCH64 also.
2015-02-08  Andrew Pinski  <apinski@cavium.com>

	* gcc.dg/tree-ssa/ssa-dom-cse-2.c: xfail for AARCH64 also.

From-SVN: r220523
2015-02-08 13:55:59 -08:00
Andrew Pinski
8276bf92c0 aarch64.c (gty_dummy): Delete.
2015-02-08  Andrew Pinski  <apinski@cavium.com>

        * config/aarch64/aarch64.c (gty_dummy): Delete.

From-SVN: r220522
2015-02-08 13:53:21 -08:00
Jan Hubicka
953aad6151 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-visibility.c (cgraph_node::non_local_p): Accept aliases.
	(cgraph_node::local_p): Remove thunk related FIXME.

From-SVN: r220521
2015-02-08 21:08:44 +00:00
Jan Hubicka
ead0ba5768 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 
	* i386.c (ix86_function_regparm): Look through aliases to see if callee
	is local and optimized.
	(ix86_function_sseregparm): Likewise; also use target's SSE math
	settings; error out instead of silently generating wrong code
	on mismatches.
	(init_cumulative_args): Look through aliases.

From-SVN: r220520
2015-02-08 21:04:41 +00:00
Jan Hubicka
42685f72ca 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-split.c (execute_split_functions): Split if function has aliases.

From-SVN: r220519
2015-02-08 20:13:01 +00:00
Jan Hubicka
9641fab348 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 
	* cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
	aliases before trying to expand it.
	(cgraph_node::expand_thunk): Fix formating.

From-SVN: r220518
2015-02-08 20:08:21 +00:00
Mikael Morin
91480ff350 Use the local name instead of the original name in the check for name conflicts...
Use the local name instead of the original name in the check for name conflicts
between a hosting program unit and use-associated symbols
in that program unit.

fortran/
	PR fortran/63744
	* module.c (check_for_ambiguous): Change argument type
	from gfc_symbol to gfc_symtree.  Check local (symtree) name
	instead of original (symbol) name.
	(read_module): Update caller.

testsuite/
	PR fortran/63744
	gfortran.dg/use_rename_8.f90: New.

From-SVN: r220515
2015-02-08 14:18:16 +00:00
Eric Botcazou
57f4f0d5f6 decl.c (gnat_to_gnu_param): Do not strip the padding if the parameter either is passed by reference or if...
* gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
	if the parameter either is passed by reference or if the alignment
	would be lowered.

From-SVN: r220514
2015-02-08 10:12:38 +00:00
Eric Botcazou
86ceee8522 decl.c (is_cplusplus_method): Use Is_Primitive flag to detect primitive operations of tagged and untagged types.
* gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
	detect primitive operations of tagged and untagged types.

From-SVN: r220512
2015-02-08 09:49:10 +00:00
Eric Botcazou
9d11273c62 decl.c (gnat_to_gnu_entity): Do not bother about alias sets in presence of derivation for subprogram types.
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
	sets in presence of derivation for subprogram types.

From-SVN: r220511
2015-02-08 09:24:54 +00:00
Eric Botcazou
e2d13a4ad1 utils.c (begin_subprog_body): Assert that the body is present in the same context as the declaration.
* gcc-interface/utils.c (begin_subprog_body): Assert that the body is
	present in the same context as the declaration.

From-SVN: r220510
2015-02-08 09:12:43 +00:00
GCC Administrator
5f5bfe7f62 Daily bump.
From-SVN: r220509
2015-02-08 00:16:24 +00:00
Sandra Loosemore
d719aff9e4 extend.texi (Function Attributes [naked]): Copy-edit.
2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi (Function Attributes [naked]): Copy-edit.
	(Using Assembly Language with C): Expand introduction.
	(Basic Asm): Copy-edit.  Add more information about uses of
	basic asm.
	(Extended Asm): Copy-edit.  Document new escape syntax and
	%l[label] syntax.
	(Global Reg Vars): Copy-edit.
	(Local Reg Vars): Likewise.

From-SVN: r220506
2015-02-07 17:12:47 -05:00
Jerry DeLisle
1060d9404d re PR fortran/60956 (error reading (and writing) large text files in gfortran)
2015-02-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/60956
	* io/fbuf.c (fbuf_flush_list): New function that only flushes
	if current fbuf position exceeds a limit.
	* io/fbuf.h: Declare the new function.
	* io/io.h (enum unit_mode): Add two new modes.
	* io/list_read.c (list_formatted_read_scalar): Call new function.
	* io/write.c: Include fbuf.h. (list_formatted_write_scalar):
	Call new function.

From-SVN: r220505
2015-02-07 15:13:15 +00:00
Jakub Jelinek
c0c91386b7 re PR middle-end/64340 (FAIL: gnat.dg/lto8.adb (internal compiler error))
PR middle-end/64340
	* gcc-interface/trans.c (gigi): Recreate optimization_default_node
	and optimization_current_node after tweaking global_options.

From-SVN: r220504
2015-02-07 15:44:26 +01:00
Eric Botcazou
f662ac2a23 Remove blank line
From-SVN: r220503
2015-02-07 11:11:17 +00:00
David Edelsohn
a15b4c98a3 re PR bootstrap/53348 (Conflicting fast-integer types on AIX: <sys/inttypes.h> vs. gcc/config/rs6000/aix-stdint.h)
PR bootstrap/53348
        * inclhack.def (aix_pthread): Accept tab after define.
        * fixincl.x: Regenerate.

From-SVN: r220502
2015-02-06 21:55:03 -05:00
David Edelsohn
0f32bcbd90 re PR debug/2714 (Stabs truncated on AIX)
PR debug/2714
        PR bootstrap/64256
        * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
        (DBX_CONTIN_CHAR): Define.

From-SVN: r220501
2015-02-06 21:34:38 -05:00
Diego Novillo
11aa81cc4e Remove myself from all maintainer roles.
From-SVN: r220500
2015-02-06 19:51:02 -05:00
GCC Administrator
03677eae2d Daily bump.
From-SVN: r220499
2015-02-07 00:16:14 +00:00
David Malcolm
659856ce28 Add new files erroneously omitted from r220494.
From-SVN: r220496
2015-02-07 00:11:27 +00:00
David Malcolm
a82289f536 PR jit/64752 - Rewrite jit testsuite to eliminate use of "file"
gcc/testsuite/ChangeLog:
	PR jit/64752
	* jit.dg/create-code-for-hello-world-executable.h: New file, taken
	from jit.dg/test-compile-to-executable.c's create_code, with a
	clarification of the output message.
	* jit.dg/harness.h (CHECK_NO_ERRORS): Add test and __func__ to the
	pass/fail message.
	(test_jit): Use CHECK_NO_ERRORS when calling
	gcc_jit_context_compile_to_file.
	* jit.dg/jit.exp (jit-dg-test): Update grep for rename of
	jit-verify-compile-to-file to jit-verify-output-file-was-created.
	(jit-setup-compile-to-file): Likewise.  Add a verbose comment
	about deletions that are attempted.
	(jit-verify-compile-to-file): Rename to...
	(jit-verify-output-file-was-created): ...this, and drop the
	attempt to run "file" and verify the output.
	(jit-verify-assembler): New function.
	(jit-verify-object): New function.
	(jit-verify-dynamic-library): New function.
	* jit.dg/test-compile-to-assembler.c (create_code): Eliminate in
	favor of an implementation from new file
	create-code-for-hello-world-executable.h, which also adds a
	"main".
	(dg-final): Replace jit-verify-compile-to-file with
	jit-verify-output-file-was-created, and invoke new function
	jit-verify-assembler.
	* jit.dg/test-compile-to-dynamic-library.c (create_code): Clarify
	the output message.
	(dg-final): Replace jit-verify-compile-to-file with
	jit-verify-output-file-was-created, and invoke new function
	jit-verify-dynamic-library.
	* jit.dg/test-compile-to-executable.c (create_code): Eliminate in
	favor of an implementation from new file
	create-code-for-hello-world-executable.h, which also adds a
	"main".
	(dg-final): Replace jit-verify-compile-to-file with
	jit-verify-output-file-was-created.  Strengthen the expected stdout
	from the built executable.
	* jit.dg/test-compile-to-object.c (create_code): Eliminate in
	favor of an implementation from new file
	create-code-for-hello-world-executable.h, which also adds a
	"main".
	(dg-final): Replace jit-verify-compile-to-file with
	jit-verify-output-file-was-created, and invoke new function
	jit-verify-object.
	* jit.dg/verify-dynamic-library.c: New source file.

From-SVN: r220494
2015-02-06 23:19:32 +00:00
Sebastian Pop
45beb02eb0 PR 64878: do not jump thread across more than one back-edge
2015-02-04  Sebastian Pop  <s.pop@samsung.com>
	    Brian Rzycki  <b.rzycki@samsung.com>

	PR tree-optimization/64878
	* tree-ssa-threadedge.c: Include tree-ssa-loop.h.
	(fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
	Stop recursion at loop phi nodes after having visited a loop phi node.

	* testsuite/gcc.dg/tree-ssa/ssa-dom-thread-8.c: New.

Co-Authored-By: Brian Rzycki <b.rzycki@samsung.com>

From-SVN: r220491
2015-02-06 21:08:13 +00:00
Jakub Jelinek
f3ab4eedf1 toplev.c (process_options): Change flag_ipa_ra before creating optimization_{default,current}_node.
* toplev.c (process_options): Change flag_ipa_ra before creating
	optimization_{default,current}_node.

From-SVN: r220490
2015-02-06 21:50:07 +01:00
Jakub Jelinek
bbd1bae29c re PR ipa/64896 (ICE in get_address_mode, at rtlanal.c:5442)
PR ipa/64896
	* cgraphunit.c (cgraph_node::expand_thunk): If
	restype is not is_gimple_reg_type nor the thunk_fndecl
	returns aggregate_value_p, set restmp to a temporary variable
	instead of resdecl.

	* g++.dg/ipa/pr64896.C: New test.

From-SVN: r220489
2015-02-06 21:47:20 +01:00
Vladimir Makarov
091790a7f0 lra.c (lra_emit_add): Fix a typo in using disp instead of base.
2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>

	* lra.c (lra_emit_add): Fix a typo in using disp instead of base.

From-SVN: r220488
2015-02-06 19:40:45 +00:00
Michael Meissner
46290aa831 re PR target/64205 (powerpc64-linux --with-cpu=G5 bootstrap failure)
[gcc]
2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/64205
	* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
	add a general secondary reload handler for SDmode, unless we have
	both read/write support for SDmode.

[gcc/testsuite]
2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/64205
	* gcc.target/powerpc/pr64205.c: New file.

From-SVN: r220485
2015-02-06 19:15:56 +00:00
Uros Bizjak
828be03ae9 pr64317.c: Compile for 32bit *-*-linux* targets.
* gcc.target/i386/pr64317.c: Compile for 32bit *-*-linux* targets.
	(dg-options): Use -fpie instead of -fPIE -pie.

From-SVN: r220484
2015-02-06 20:04:10 +01:00
Jakub Jelinek
62276744ce re PR middle-end/64937 (compare debug failure with -fsanitize=address)
PR middle-end/64937
	* dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
	Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
	or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
	1 before, push it to abstract_vec.
	(dwarf2out_abstract_function): Adjust caller.  Don't call
	set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
	DECL_ABSTRACT_P flags for all abstract_vec elts.

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

From-SVN: r220483
2015-02-06 19:26:59 +01:00
Paul Thomas
43a68a9df5 re PR fortran/63205 ([OOP] Wrongly rejects type = class (for identical declared type))
2015-02-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/63205
	* gfortran.h: Add 'must finalize' field to gfc_expr and
	prototypes for gfc_is_alloc_class_scalar_function and for
	gfc_is_alloc_class_array_function.
	* expr.c (gfc_is_alloc_class_scalar_function,
	gfc_is_alloc_class_array_function): New functions.
	* trans-array.c (gfc_add_loop_ss_code): Do not move the
	expression for allocatable class scalar functions outside the
	loop.
	(conv_array_index_offset): Cope with deltas being NULL_TREE.
	(build_class_array_ref): Do not return with allocatable class
	array functions. Add code to pick out the returned class array.
	Dereference if necessary and return if not a class object.
	(gfc_conv_scalarized_array_ref): Cope with offsets being NULL.
	(gfc_walk_function_expr): Return an array ss for the result of
	an allocatable class array function.
	* trans-expr.c (gfc_conv_subref_array_arg): Remove the assert
	that the argument should be a variable. If an allocatable class
	array function, set the offset to zero and skip the write-out
	loop in this case.
	(gfc_conv_procedure_call): Add allocatable class array function
	to the assert. Call gfc_conv_subref_array_arg for allocatable
	class array function arguments with derived type formal arg..
	Add the code for handling allocatable class functions, including
	finalization calls to prevent memory leaks.
	(arrayfunc_assign_needs_temporary): Return if an allocatable
	class array function.
	(gfc_trans_assignment_1): Set must_finalize to rhs expression
	for allocatable class functions. Set scalar_to_array as needed
	for scalar class allocatable functions assigned to an array.
	Nullify the allocatable components corresponding the the lhs
	derived type so that the finalization does not free them.

2015-02-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/63205
	* gfortran.dg/class_to_type_4.f90: New test

From-SVN: r220482
2015-02-06 18:15:01 +00:00
Ian Lance Taylor
898c81f831 mksysinfo.sh: Remove _zone_net_addr_t handling.
From Rainer Orth.

The recent godump changes broke Solaris 11.1+ bootstrap in
libgo: before, gen-sysinfo.so had

type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16; zna_addru struct { znau_addr6 _in6_addr; }; }

which was filtered out by mksysinfo.sh due to the use of
_in6_addr.

After the change, there's now

type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16; zna_addru struct { znau_addr6 [16]byte; Godump_0_align [0]uint32; }; }

instead, not filtered, but added a second time by the
_zone_net_addr_t code in mksysinfo.sh, which leads to
redefinition warnings/errors.

Simply removing the old _zone_net_addr_t fragment fixes this
and restores bootstrap.

From-SVN: r220481
2015-02-06 16:18:14 +00:00
Renlin Li
f376994ad8 [PATCH]Keep location info when expand complex component-wise load/store.
gcc/
	* tree-ssa-forwprop.c (execute): Keep location info while rewrite
	complex gimple.
	* tree-ssa.c (execute_update_addresses_taken): Likewise.

From-SVN: r220480
2015-02-06 14:37:59 +00:00
David Malcolm
9baa38b7a0 Fix 404 in "Show Source" in jit docs
maintainer-scripts/ChangeLog:
	PR jit/64257
	* update_web_docs_svn: When copying up files for the built jit
	documentation, also copy up .txt files.

From-SVN: r220479
2015-02-06 14:36:54 +00:00
Jeff Law
1901e8d621 re PR target/64889 ([h8300] ICE maybe_record_trace_start, at dwarf2cfi.c:2318)
PR target/64889
	* config/h8300/h8300.c (push): New argument "in_prologue".
	Pass "in_prologue" along to "F".
	(h8300_push_pop): Corresponding changes.
	(h8300_expand_prologue): Likewise.
	(h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.

From-SVN: r220478
2015-02-06 07:25:23 -07:00
H.J. Lu
514ba9e4ad Revert the PR lto/64837 fix
It breaks gold:

% echo "int main () {}" | gcc -fuse-ld=gold -flto -x c++ -
ld.gold: internal error in remove_writer, at token.h:132
collect2: error: ld returned 1 exit status

	* lto-plugin.c (release_input_file): Removed.
	(claim_file_handler): Don't call release_input_file.
	(onload): Don't set release_input_file.

From-SVN: r220477
2015-02-06 05:55:42 -08:00
Jakub Jelinek
d26ac279bc re PR rtl-optimization/64957 (wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu)
PR rtl-optimization/64957
	PR debug/64817
	* simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
	IOR rather than for AND.

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

From-SVN: r220475
2015-02-06 12:36:34 +01:00
Andre Vehreschild
e3a7c6cf72 re PR fortran/60289 (allocating class(*) pointer as character gives type-spec requires the same character-length parameter)
PR fortran/60289
	Initial patch by Janus Weil
	* resolve.c (resolve_allocate_expr): Add check for comp. only when 
	target is not unlimited polymorphic.
	* trans-stmt.c (gfc_trans_allocate): Assign correct value to _len
	component of unlimited polymorphic entities.

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

From-SVN: r220474
2015-02-06 12:22:54 +01:00
Eric Botcazou
9fb87eb0bb re PR target/62631 (gcc.dg/tree-ssa/ivopts-lt-2.c FAILs)
PR target/62631
	* tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
	of shift-add and (add + shift) operations.  Rename local variable.

From-SVN: r220473
2015-02-06 11:17:46 +00:00
Jeff Law
9f9ab303f7 re PR target/17306 (function_vector attribute in H8300H/H8S)
PR target/17306
	* config/h8300/constraints.md (U): Correctly dectect
	"eightbit_data" memory addresses.
	* config/h8300/h8300.c (eightbit_constant_address_p): Also
	handle (const (plus (symbol_ref (x)))) where x is declared
	as an 8-bit data memory address.
	* config/h8300/h8300.md (call, call_value): Correctly detect
	"funcvec" functions.

	PR target/17306
	* gcc.target/h8300/pr17306-1.c: New test.
	* gcc.target/h8300/pr17306-2.c: New test.

From-SVN: r220472
2015-02-05 23:19:03 -07:00
Jeff Law
d00f6ca670 re PR target/43264 (Arithmetic expression error)
PR target/43264
	* config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
	24 to 28 bits for the H8/300.

From-SVN: r220471
2015-02-05 22:34:00 -07:00
Ian Lance Taylor
8c5c44aa7e runtime: Add memprofilerate to GODEBUG
Add memprofilerate as a value recognized
in the GODEBUG env var.  The value provided
is used as the new setting for
runtime.MemProfileRate, allowing the user
to adjust memory profiling.

From-SVN: r220470
2015-02-06 05:03:22 +00:00
GCC Administrator
c4feb478a6 Daily bump.
From-SVN: r220467
2015-02-06 00:16:19 +00:00
Alan Modra
b871a06f6f re PR target/64876 (Regressions in gcc-testresults for powerpc64 gccgo in 5.0 due to change for static chain for closures (219776))
PR target/64876
	* config/rs6000/rs6000.c (chain_already_loaded): New function.
	(rs6000_call_aix): Use it.

From-SVN: r220463
2015-02-06 09:22:24 +10:30
Tobias Burnus
2f72ca141d re PR fortran/64943 (No error on ultimate allocatable components in IO list)
2015-02-05  Tobias Burnus  <burnus@net-b.de>

        PR fortran/64943
        * resolve.c (resolve_transfer): Also check structure
        constructors.

2015-02-05  Tobias Burnus  <burnus@net-b.de>

        PR fortran/64943
        * gfortran.dg/structure_constructor_12.f90: New.

From-SVN: r220462
2015-02-05 22:58:38 +01:00