Commit Graph

136339 Commits

Author SHA1 Message Date
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
Richard Biener 28002f1ad1 re PR tree-optimization/54000 (Performance breakdown for gcc-4.{6,7} vs. gcc-4.5 using std::vector in matrix vector multiplication (IVopts / inliner))
2015-02-09  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/54000
	* tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
	(struct ivopts_data): Add loop_loc member.
	(tree_ssa_iv_optimize_loop): Dump loop location.
	(create_new_ivs): Likewise, also dump number of IVs generated.

	* g++.dg/tree-ssa/ivopts-3.C: New testcase.

From-SVN: r220536
2015-02-09 11:51:05 +00:00
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