Commit Graph

136527 Commits

Author SHA1 Message Date
Matthew Wahab
1e0c223f94 isctype.cc (test01): Fix mixed line-endings introduced in last change.
* testsuite/28_regex/traits/char/isctype.cc (test01): Fix
	mixed line-endings introduced in last change.

From-SVN: r220682
2015-02-13 13:42:06 +00:00
John David Anglin
98056c540e constraints.md: Change "Q" and "T" constraints to memory constraints.
* config/pa/constraints.md: Change "Q" and "T" constraints to memory
	constraints.
	* config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
	symbolic references to data to be forced to constant memory on the
	SOM target.

From-SVN: r220680
2015-02-13 13:06:54 +00:00
Ilya Enkovich
fb0653ab96 re PR tree-optimization/65002 (ICE: Segmentation fault)
gcc/

	PR tree-optimization/65002
	* tree-cfg.c (pass_data_fixup_cfg): Don't update
	SSA on start.
	* tree-sra.c (some_callers_have_no_vuse_p): New.
	(ipa_early_sra): Reject functions whose callers
	assume function is read only.

gcc/testsuite/

	PR tree-optimization/65002
	* gcc.dg/pr65002.C: New.

From-SVN: r220679
2015-02-13 09:44:07 +00:00
Richard Biener
3c780bb2d5 re PR lto/65015 (LTO produces randomly ordered debug information)
2015-02-13  Richard Biener  <rguenther@suse.de>

	PR lto/65015
	* dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
	for LTO produced CUs.

From-SVN: r220678
2015-02-13 09:35:57 +00:00
Marek Polacek
fa008882f2 re PR c/65040 (gcc-5 -Wformat broken)
PR c/65040
	* c-format.c (check_format_types): Don't warn about different
	signedness if the original value is in the range of WANTED_TYPE.

	* c-c++-common/pr65040.c: New test.

From-SVN: r220677
2015-02-13 07:56:14 +00:00
Bin Cheng
fc06280eb1 re PR tree-optimization/64705 (Bad code generation of sieve on x86-64 because of too aggressive IV optimizations)
PR tree-optimization/64705
	* tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
	* tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
	* tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
	(find_bivs, find_givs_in_stmt_scev): Pass new argument to
	expand_simple_operations.

	testsuite
	PR tree-optimization/64705
	* gcc.dg/tree-ssa/pr64705.c: New test.

From-SVN: r220676
2015-02-13 05:44:46 +00:00
Jason Merrill
785f21af82 re PR c++/64956 (__GXX_ABI_VERSION needs a proper definition for the 5.x releases)
PR c++/64956
	* c-opts.c (c_common_post_options): Change flag_abi_version from 0
	to the current highest version.
	* c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.

From-SVN: r220675
2015-02-13 00:26:37 -05:00
H.J. Lu
6a1e352e1e re PR rtl-optimization/32219 (optimizer causes wrong code in pic/hidden/weak symbol checking.)
PR rtl/32219

gcc/
	* cgraphunit.c (cgraph_node::finalize_function): Set definition
	before notice_global_symbol.
	(varpool_node::finalize_decl): Likewise.
	* varasm.c (default_binds_local_p_2): Rename from
	default_binds_local_p_1, add weak_dominate argument.  Use direct
	returns instead of assigning to local variable.  Unify varpool and
	cgraph paths via symtab_node.  Reject undef weak variables before
	testing visibility.  Reorder tests for simplicity.
	(default_binds_local_p): Use default_binds_local_p_2.
	(default_binds_local_p_1): Likewise.
	(decl_binds_to_current_def_p): Unify varpool and cgraph paths
	via symtab_node.
	(default_elf_asm_output_external): Emit visibility when specified.
gcc/testsuite/
	* gcc.dg/visibility-22.c: New test.
	* gcc.dg/visibility-23.c: New test.
	* gcc.target/i386/pr32219-1.c: New test.
	* gcc.target/i386/pr32219-2.c: New test.
	* gcc.target/i386/pr32219-3.c: New test.
	* gcc.target/i386/pr32219-4.c: New test.
	* gcc.target/i386/pr32219-5.c: New test.
	* gcc.target/i386/pr32219-6.c: New test.
	* gcc.target/i386/pr32219-7.c: New test.
	* gcc.target/i386/pr32219-8.c: New test.
	* gcc.target/i386/pr64317.c: Expect GOTOFF, not GOT.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r220674
2015-02-12 20:52:45 -08:00
Jerry DeLisle
fa47895fe6 re PR fortran/57822 (I/O: "(g0)" wrongly prints "E+0000")
2015-02-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/57822
	* gfortran/fmt_g0_7.f08: Adjust for archtectures with less than
	four different KINDs.

From-SVN: r220673
2015-02-13 02:57:03 +00:00
Alan Modra
5f2fa78aff rs6000.c (rs6000_emit_epilogue): Fix typo in code setting up r11 for out-of-line fp restore.
* config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
	code setting up r11 for out-of-line fp restore.

From-SVN: r220672
2015-02-13 10:51:39 +10:30
GCC Administrator
1bb77840d0 Daily bump.
From-SVN: r220671
2015-02-13 00:16:11 +00:00
Eric Botcazou
dfc61f1ff2 visium.opt (msv-mode): Add RejectNegative and Report.
* config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
	(muser-mode): Likewise.

From-SVN: r220667
2015-02-12 23:17:21 +00:00
Jason Merrill
3b95b65ced re PR c++/64898 (qtgui-4.8.6 build error)
PR c++/64898
	* mangle.c (write_mangled_name): Fix test for variable template
	instantiation.

From-SVN: r220666
2015-02-12 17:44:38 -05:00
Alan Modra
8ae6ac51d4 rs6000.c (rs6000_emit_epilogue): Use addsi3_carry or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
* config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
	or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.

From-SVN: r220665
2015-02-13 08:09:36 +10:30
Jakub Jelinek
d6d77e665b re PR c++/64884 (FAIL: g++.dg/tm/pr47573.C -std=gnu++98 (test for excess errors) on x86_64-apple-darwin*)
PR c++/64884
	* g++.dg/tm/pr47573.C: Only run on comdat_group effective targets.

From-SVN: r220664
2015-02-12 22:33:37 +01:00
Jakub Jelinek
fad5a40078 re PR sanitizer/65000 (ICE in in expand_builtin_eh_common, at except.c:2072)
PR sanitizer/65000
	* g++.dg/ubsan/pr65000.C: New test.

From-SVN: r220663
2015-02-12 22:30:56 +01:00
David Howells
81018dcf98 tree-sra.c (dump_dereferences_table): Avoid -Wformat-security warning.
* tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
	warning.
	* tree-ssa-uninit.c (dump_predicates): Likewise.
	* opts.c (print_filtered_help): Likewise.

From-SVN: r220662
2015-02-12 22:29:21 +01:00
Jakub Jelinek
2f13a42d9c dwarf2out.c (output_die): Use "%s", name instead of name to avoid -Wformat-security warning.
* dwarf2out.c (output_die): Use "%s", name instead of name to
	avoid -Wformat-security warning.

From-SVN: r220661
2015-02-12 22:20:19 +01:00
Jakub Jelinek
2cea039801 dwarf2asm.c (dw2_asm_output_vms_delta): Only define if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
* dwarf2asm.c (dw2_asm_output_vms_delta): Only define
	if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
	* dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
	only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.

From-SVN: r220660
2015-02-12 22:19:47 +01:00
Jason Merrill
8bfef637d0 typo
From-SVN: r220658
2015-02-12 15:29:03 -05:00
Jason Merrill
f522930c8f common.opt (-flifetime-dse): New.
gcc/
	* common.opt (-flifetime-dse): New.
gcc/cp/
	* decl.c (begin_destructor_body): Condition clobber on
	-flifetime-dse.

From-SVN: r220657
2015-02-12 15:28:41 -05:00
Andrea Azzarone
bc81eb3f77 re PR c++/64959 (SFINAE in UDLs)
PR c++/64959
	* parser.c (lookup_literal_operator): Return all candidates.
	(cp_parser_userdef_char_literal): Simplify error handling.
	(cp_parser_userdef_numeric_literal):  Pass tf_warning_or_error.
	(cp_parser_userdef_string_literal): Pass tf_warning_or_error.
	Also give higher priority to standard string UDL operator.

From-SVN: r220656
2015-02-12 15:21:34 -05:00
Jason Merrill
864f0146f0 * testsuite/28_regex/traits/wchar_t/isctype.cc: Fix whitespace.
From-SVN: r220655
2015-02-12 15:20:30 -05:00
Paul Thomas
ec6a7096e3 re PR fortran/64932 (ICE in gfc_conv_descriptor_data_get for generated finalizer)
2015-02-12  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/64932
	* trans-stmt.c (gfc_trans_deallocate): If a component array
	expression is not a descriptor type and it is a derived type
	that has allocatable components and is not finalizable, then
	deallocate the allocatable components.

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

	PR fortran/64932
	* gfortran.dg/finalize_28.f90: New test

From-SVN: r220654
2015-02-12 19:30:53 +00:00
Jakub Jelinek
12d0d3581b re PR debug/55541 (unable to see local variables due extra lexical block was generated)
PR debug/55541
	* cp-tree.h (BLOCK_OUTER_CURLY_BRACE_P): Define.
	* decl.c (poplevel): If functionbody, try not to create an extra
	BLOCK for function body and use subblocks as that, if it is non-NULL
	and doesn't have siblings.  Set BLOCK_OUTER_CURLY_BRACE_P flag.
	(outer_curly_brace_block): Use BLOCK_OUTER_CURLY_BRACE_P flag.

	* g++.dg/debug/dwarf2/localclass3.C: Adjust for the extraneous
	DW_TAG_lexical_block removal.
	* g++.dg/debug/dwarf2/redeclaration-1.C: Likewise.
	* g++.dg/guality/pr55541.C: New test.

From-SVN: r220650
2015-02-12 19:09:59 +01:00
Jakub Jelinek
40595b8e01 re PR sanitizer/64984 (ICE in check_noexcept_t with ubsan)
PR sanitizer/64984
	* except.c (check_noexcept_r): Return NULL for internal
	calls.

	* g++.dg/ubsan/pr64984.C: New test.

From-SVN: r220649
2015-02-12 16:38:33 +01:00
Matthew Wahab
72900b8306 isctype.cc (test01): Replace test for __NEWLIB__ macro with a dejagnu set macro.
* testsuite/28_regex/traits/char/isctype.cc (test01): Replace test
	for __NEWLIB__ macro with a dejagnu set macro.
	* testsuite/28_regex/traits/wchar_t/isctype.cc (test01): Likewise.

From-SVN: r220648
2015-02-12 14:55:23 +00:00
James Greenhalgh
825acb30aa [Patch Testsuite] XFAIL gfortran.dg/pr45636.f90 on AArch64
gcc/testsuite/

	* gfortran.dg/pr45636.f90: XFAIL for aarch64* targets.

From-SVN: r220647
2015-02-12 14:04:12 +00:00
Jakub Jelinek
118584f732 re PR testsuite/64930 (FAIL: gcc.target/powerpc/atomic-p7.c scan-assembler-times isync 12)
PR testsuite/64930
	* gcc.target/powerpc/atomic-p7.c: Adjust expected count of isync
	instructions for 2015-01-14 get_memmodel changes.
	* gcc.target/powerpc/atomic-p8.c: Likewise.

From-SVN: r220646
2015-02-12 14:14:47 +01:00
Jakub Jelinek
ed5a5b38d8 re PR sanitizer/65019 (Compare debug failure with -fsanitize=alignment,object-size,vptr -O3)
PR sanitizer/65019
	* ubsan.c (ubsan_expand_objsize_ifn): Always return true.

	* g++.dg/ubsan/pr65019.C: New test.

From-SVN: r220641
2015-02-12 10:48:44 +01:00
Jakub Jelinek
01f834e33c re PR tree-optimization/65014 (ice with error: type mismatch in shift expression)
PR tree-optimization/65014
	* fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
	use original second operand of arg0 or arg1 instead of
	that adjusted by STRIP_NOPS.

	* gcc.c-torture/compile/pr65014.c: New test.

From-SVN: r220640
2015-02-12 10:45:27 +01:00
Jerry DeLisle
faedeff79d re PR fortran/57822 (I/O: "(g0)" wrongly prints "E+0000")
2015-02-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

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

From-SVN: r220637
2015-02-12 03:52:45 +00:00
GCC Administrator
673e746c4f Daily bump.
From-SVN: r220636
2015-02-12 00:16:11 +00:00
Jeff Law
3f9b5ffb41 re PR target/63347 (m68k misoptimisation with -fschedule-insns)
PR target/63347
	* haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
	that needs to be queued, just queue it for a single cycle.

	PR target/63347
	* gcc.target/m68k/pr63347.c: New test.

From-SVN: r220632
2015-02-11 16:29:11 -07:00
Marek Polacek
b06479fd41 shift-1.C: New test.
* g++.dg/ubsan/shift-1.C: New test.
	* gcc.dg/ubsan/c-shift-2.c: New test.
	* c-c++-common/ubsan/shift-5.c: Remove file.

From-SVN: r220631
2015-02-11 20:59:58 +00:00
Jan Hubicka
d3f2e41eae ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing bodies of thunks; comment on why.
* ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
	bodies of thunks; comment on why.
	* symtab.c (symtab_node::get_partitioning_class): Aliases of extern
	symbols are extern.

From-SVN: r220630
2015-02-11 19:11:47 +00:00
Andrew Pinski
0a7d7e09c8 Add forgotten new testcases.
From-SVN: r220629
2015-02-11 11:08:55 -08:00
Alex Velenko
2efce5af7c atomic-op-consume.c (scan-assember-times): Directive adjusted to XFAIL.
gcc/testsuite/

	* gcc.target/aarch64/atomic-op-consume.c (scan-assember-times):
	Directive adjusted to XFAIL.
	* gcc.target/arm/atomic-op-consume.c (scan-assember-times): Directive
	adjusted to XFAIL.

From-SVN: r220628
2015-02-11 19:01:08 +00:00
Richard Henderson
5b1441be76 re PR sanitizer/65000 (ICE in in expand_builtin_eh_common, at except.c:2072)
PR sanitize/65000

 * tree-eh.c (mark_reachable_handlers): Mark source and destination
 regions of __builtin_eh_copy_values.

From-SVN: r220626
2015-02-11 09:04:38 -08:00
Jakub Jelinek
3292dd4081 re PR middle-end/65003 (-fsection-anchors ICE)
PR middle-end/65003
	* varasm.c (place_block_symbol): Assert that DECL_RTL of the
	ultimate alias is MEM with SYMBOL_REF satisfying
	SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
	to place_block_symbol, but instead pass the SYMBOL_REF operand of it.

	* g++.dg/opt/pr65003.C: New test.

From-SVN: r220625
2015-02-11 16:09:48 +01:00
Thomas Schwinge
ce888a99a9 nvptx mkoffload: Initialize GCC diagnostic machinery before using it.
gcc/
	* config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
	"diagnostic-core.h".
	(main): Initialize progname, and call diagnostic_initialize.

From-SVN: r220621
2015-02-11 15:15:47 +01:00
Thomas Schwinge
9584e638ca nvptx mkoffload: __OPENMP_TARGET__ -> __OFFLOAD_TABLE__.
gcc/
	* config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
	instead of __OPENMP_TARGET__.

From-SVN: r220620
2015-02-11 15:15:38 +01:00
Thomas Schwinge
e6f229ca44 nvptx mkoffload: Don't hard-code GOMP_DEVICE_NVIDIA_PTX.
gcc/
	* config/nvptx/mkoffload.c: Include "gomp-constants.h".
	(process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
	hard-coding PTX_ID.

From-SVN: r220619
2015-02-11 15:15:28 +01:00
H.J. Lu
a8d790dfc0 Rename check_effective_target_pie to check_effective_target_pie_enabled
gcc/

	* doc/sourcebuild.texi (pie_enabled): Document.

gcc/testsuite/

	* lib/target-supports.exp (check_effective_target_pie): Renamed
	to ...
	(check_effective_target_pie_enabled): This.
	* gcc.dg/tree-ssa/ssa-store-ccp-3.c: Replace pie with pie_enabled.
	* gcc.target/i386/pie.c: Likewise.

From-SVN: r220618
2015-02-11 06:03:14 -08:00
Jakub Jelinek
fa01ffccc7 re PR middle-end/64824 (ICE in gimple verification)
PR c/64824
	* c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
	check in the POP macro.

	* testsuite/libgomp.c/atomic-18.c: New test.
	* testsuite/libgomp.c++/atomic-16.C: New test.

From-SVN: r220617
2015-02-11 14:40:31 +01:00
Martin Liska
c43ade8004 Handle noreturn function thunk creation.
PR ipa/64813
	* cgraphunit.c (cgraph_node::expand_thunk): Do not create
	a return value for call to a function that is noreturn.

From-SVN: r220616
2015-02-11 13:33:47 +00:00
Richard Biener
ece70d335d re PR lto/65015 (LTO produces randomly ordered debug information)
2015-02-11  Richard Biener  <rguenther@suse.de>

	PR lto/65015
	* dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
	and -fresolution.

From-SVN: r220613
2015-02-11 12:00:44 +00:00
Andrew Pinski
9c4f25cc11 Fix bug 64893: ICE with vget_lane_u32 with C++ front-end
2015-02-11  Andrew Pinski  <apinski@cavium.com>

	PR target/64893
	* config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
	Change the first argument type to size_type_node and add another
	size_type_node.
	(aarch64_simd_expand_builtin): Handle the new argument to
	AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
	print an out when the first two arguments are not
	nonzero integer constants.
	* config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
	Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.

2015-02-11  Andrew Pinski  <apinski@cavium.com>

	PR target/64893
	* c-c++-common/torture/aarch64-vect-lane-1.c: New testcase.
	* c-c++-common/torture/aarch64-vect-lane-2.c: New testcase.

From-SVN: r220610
2015-02-11 02:18:45 -08:00
Jakub Jelinek
386f7caea7 re PR target/61925 (internal error when using vectorization on CPU without SSE)
PR target/61925
	* config/i386/i386.c (ix86_reset_to_default_globals): Removed.
	(ix86_reset_previous_fndecl): Restore it here, unconditionally.
	(ix86_set_current_function): Rewritten.
	(ix86_add_new_builtins): Temporarily clear current_target_pragma
	when creating builtin fndecls.

	* gcc.target/i386/pr61925-1.c: New test.
	* gcc.target/i386/pr61925-2.c: New test.
	* gcc.target/i386/pr61925-3.c: New test.

From-SVN: r220609
2015-02-11 11:04:14 +01:00
Jan Hubicka
4bd019b8d5 re PR ipa/65005 (FAIL: c-c++-common/torture/builtin-arith-overflow-12.c)
PR ipa/65005
	* ipa-visibility.c (cgraph_node::non_local_p): Turn into static
	function.
	* symtab.c (symtab_node::verify_base): Remove check that non-definitions
	have no comdat group.
	* lto-cgraph.c (lto_output_node): Always output thunk and alias info.
	(lto_output_varpool_node): Always output alias info.
	(output_refs): Output refs of boundary aliases, too.
	(compute_ltrans_boundary): Add alias and thunk target into boundaries.
	(output_symtab): Output call eges in thunks in boundary.
	(get_alias_symbol): Remove.
	(input_node, input_varpool_node): Do not special case weakrefs.
	* ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
	alias and thunks targets in the boundary; do not take removed symbols
	from their comdat groups.
	* cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
	(cgraph_node::global_info): Remove.
	(cgraph_node::rtl_info): Look through aliases and thunks.
	* cgrpah.h (global_info): Remove.
	(non_local_p): Remove.

From-SVN: r220608
2015-02-11 09:11:06 +00:00