Commit Graph

136484 Commits

Author SHA1 Message Date
Paolo Carlini
e84abfa41b re PR c++/60211 (ICE with #pragma GCC ivdep and for-loop on global scope)
/cp
2015-02-13  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60211
	* parser.c (cp_parser_pragma): Diagnose PRAGMA_IVDEP at
	pragma_external context.

/testsuite
2015-02-13  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60211
	* g++.dg/parse/ivdep-2.C: New.
	* g++.dg/parse/ivdep-3.C: Likewise.

From-SVN: r220689
2015-02-13 17:57:13 +00:00
Jerry DeLisle
d1ae5966d7 re PR fortran/64506 (FORMAT Parse Error with Continuation Line)
2015-02-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/64506
	* gfortran.dg/continuation_13.f90: New test.
	* gfortran.dg/continuation_14.f: New test.

From-SVN: r220688
2015-02-13 17:09:04 +00:00
Jerry DeLisle
0d6fc9638b re PR fortran/64506 (FORMAT Parse Error with Continuation Line)
2015-02-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/64506
	* scanner.c (gfc_next_char_literal): For free form source,
	check for '!' and if found, clear the comment and go back
	and get the next character. For fixed form source, skip the
	rest of the line.

From-SVN: r220687
2015-02-13 16:57:28 +00:00
Thomas Schwinge
1f261e64a3 GOMP_TARGET_* have been renamed to GOMP_DEVICE_* some time ago.
gcc/
	* config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
	GOMP_DEVICE_NVIDIA_PTX.

From-SVN: r220686
2015-02-13 17:20:01 +01:00
Jason Merrill
f9b600badc re PR c++/65051 (r210436 regression?)
PR c++/65051
	* call.c (reference_binding): Don't look for bad conversion
	if TO is incomplete.

From-SVN: r220685
2015-02-13 11:02:31 -05:00
Paolo Carlini
81adbcea49 re PR c++/64970 (Hard error instead of SFINAE for expression in nested template alias)
/cp
2015-02-13  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/64970
	* decl.c (make_typename_type): Pass tsubst_flags_t argument
	to lookup_template_class.

/testsuite
2015-02-13  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/64970
	* g++.dg/cpp0x/sfinae55.C: New.

From-SVN: r220684
2015-02-13 14:54:48 +00:00
Jakub Jelinek
730f474bf9 re PR ipa/65034 (ICE (segfault) on arm-linux-gnueabihf)
PR ipa/65034
	* stmt.c (emit_case_nodes): Use void_type_node instead of
	NULL_TREE as LABEL_DECL type.

	* decl.c (start_preparsed_function): Use void_type_node instead
	of NULL_TREE as LABEL_DECL type.

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

From-SVN: r220683
2015-02-13 15:42:30 +01:00
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