134593 Commits

Author SHA1 Message Date
Ilya Enkovich
4186636315 re PR bootstrap/63995 (Bootstrap error with -mmpx -fcheck-pointer-bounds)
gcc/

	PR bootstrap/63995
	* tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
	debug statement when searching for a new position for
	bounds load/creation statement.

gcc/testsuite/

	PR bootstrap/63995
	* gcc.target/i386/pr63995-2.c: New.

From-SVN: r218085
2014-11-26 14:37:07 +00:00
Marek Polacek
0bae64d580 re PR sanitizer/63788 (ICE: SIGSEGV in contains_struct_check with -O -fsanitize=undefined on almost any fortran code)
PR sanitizer/63788
	* asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
	var.  Conditionally build BUILT_IN_OBJECT_SIZE decl.
	(ATTR_PURE_NOTHROW_LEAF_LIST): Define.

From-SVN: r218084
2014-11-26 14:05:21 +00:00
Ilya Enkovich
3c350d48a5 re PR lto/64075 (ICE: in bp_pack_value, at data-streamer.h:106)
gcc/

	PR lto/64075
	* tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
	proper size for function_code bitfield.
	(pack_ts_function_decl_value_fields): Likewise.

gcc/testsuite/

	PR lto/64075
	* gcc.dg/pr64075.c: New.

From-SVN: r218083
2014-11-26 13:53:38 +00:00
Rainer Orth
5e4683dc2f ChangeLog for last commit.
From-SVN: r218082
2014-11-26 13:25:46 +00:00
Jonathan Wakely
77262e4212 XFAIL 27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc on Solaris (PR libstd++/64054)
PR libstdc++/64054
	* testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
	XFAIL execution on *-*-solaris*.

Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>

From-SVN: r218081
2014-11-26 13:22:27 +00:00
Rainer Orth
0a7db78819 Skip gcc.target/i386/mcount_pic.c on Solaris
From-SVN: r218080
2014-11-26 13:22:16 +00:00
Mark Wielaard
5d45c9c04e PR debug/38757 continued. Handle C11, C++11 and C++14.
Add experimental (minimal) DWARFv5 support.

This change depends on the new DWARFv5 constants mentioned in the
following draft: http://dwarfstd.org/doc/dwarf5.20141029.pdf

gcc/ChangeLog

	* doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
	* opts.c (common_handle_option): Accept -gdwarf-5.
	* dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
	DW_LANG_C_plus_plus_14.
	(lower_bound_default): Likewise. Plus DW_LANG_C11.
	(gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
	DW_LANG_C_plus_plus_14 or DW_LANG_C11.
	(output_compilation_unit_header): Output at most a DWARFv4 header.
	(output_skeleton_debug_sections): Likewise.
	(output_line_info): Likewise.
	(output_aranges): Document header version number.

gcc/testsuite/ChangeLog

	* gcc.dg/debug/dwarf2/lang-c11.c: New test.
	* gcc.dg/debug/dwarf2/lang-c11-d4-strict.c: Likewise.
	* g++.dg/debug/dwarf2/lang-cpp11.C: Likewise.
	* g++.dg/debug/dwarf2/lang-cpp14.C: Likewise.
	* g++.dg/debug/dwarf2/lang-cpp98.C: Likewise.

include/ChangeLog

	* dwarf2.h: Add DW_LANG_C_plus_plus_11, DW_LANG_C11 and
	DW_LANG_C_plus_plus_14.

From-SVN: r218077
2014-11-26 11:05:20 +00:00
Richard Biener
b8a8c4723c gimple-fold.c (get_symbol_constant_value): Allow all GIMPLE register type zero-constants.
2014-11-26  Richard Biener  <rguenther@suse.de>

	* gimple-fold.c (get_symbol_constant_value): Allow all
	GIMPLE register type zero-constants.

From-SVN: r218076
2014-11-26 10:15:25 +00:00
Mark Wielaard
42bc352001 DWARF add DW_AT_noreturn on noreturn function subprogram.
This implements the DWARFv5 noreturn proposal:
http://dwarfstd.org/ShowIssue.php?issue=140331.1

TREE_THIS_VOLATILE on a FUNCTION_DECL node means the function does not
return normally. This catches the traditional noreturn GNU attribute,
the C11 _Noreturn keyword and the C++11 [[noreturn]] attribute.

This relies on the DW_AT_noreturn constant defined in the DWARFv5 DRAFT:
http://www.dwarfstd.org/doc/dwarf5.20141029.pdf

gcc/ChangeLog

	* dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
	function decl has TREE_THIS_VOLATILE.

gcc/testsuite/ChangeLog

	* g++.dg/debug/dwarf2/noreturn-function.C: New test.
	* gcc.dg/debug/dwarf2/noreturn-function-attribute.c: Likewise.
	* gcc.dg/debug/dwarf2/noreturn-function-keyword.c: Likewise.

include/ChangeLog

	* dwarf2.def (DW_AT_noreturn): New DWARF5 attribute.

From-SVN: r218075
2014-11-26 10:10:27 +00:00
Richard Biener
7ec44c3d10 re PR tree-optimization/62238 (ICE with LTO on valid code on x86_64-linux-gnu in verify_ssa (in 64-bit mode))
2014-11-26  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/62238
	* tree-predcom.c (ref_at_iteration): Unshare the expression
	before gimplifying it.
	(prepare_initializers_chain): Discard unused seq.

	* gcc.dg/torture/pr62238.c: New testcase.

From-SVN: r218074
2014-11-26 09:43:39 +00:00
Andrew Pinski
8592c20705 20141125-1.c: New testcase.
2014-11-25  Andrew Pinski <apinski@cavium.com>

        * gcc.c-torture/execute/20141125-1.c: New testcase.

From-SVN: r218073
2014-11-26 00:42:18 -08:00
Prachi Godbole
64b4bb607b mips.c (mips_rtx_cost_data): Fix memory_latency cost for p5600.
* config/mips/mips.c (mips_rtx_cost_data): Fix memory_latency cost
	for p5600.

From-SVN: r218072
2014-11-26 03:52:23 +00:00
GCC Administrator
62926da608 Daily bump.
From-SVN: r218071
2014-11-26 00:16:29 +00:00
Tobias Burnus
17d5d49f58 error.c (gfc_internal_error): Convert to common diagnostics.
2014-11-25  Tobias Burnus  <burnus@net-b.de>

        * error.c (gfc_internal_error): Convert to common diagnostics.
        * interface.c (gfc_find_sym_in_symtree): Use %qs.
        * intrinsic.c (make_generic, gfc_check_intrinsic_standard,
        gfc_convert_type_warn): Ditto.
        * module.c (write_symbol): Ditto.
        * symbol.c (gfc_get_default_type): Ditto; use fatal instead
        of internal error.
        * trans-array.c (gfc_walk_subexpr): Replace internal_error by
        gfc_internal_error.
        * trans-decl.c (gfc_get_symbol_decl,
        (gfc_create_module_variable): Ditto. Use %qs.
        * trans-intrinsic.c (gfc_conv_intrinsic_lib_function): Ditto.
        * trans-io.c (transfer_expr): Ditto.
        * trans-openmp.c (gfc_trans_omp_workshare): Ditto.
        * trans.c (trans_code): Ditto.

From-SVN: r218068
2014-11-25 23:37:54 +01:00
Tobias Burnus
4daa149b86 gfortran.h (gfc_option_t): Remove flags moved as Var to .opt.
2014-11-25  Tobias Burnus  <burnus@net-b.de>

gcc/fortran/
        * gfortran.h (gfc_option_t): Remove flags moved as Var to .opt.
        (gfc_error_now_1): Renamed from gfc_error_now.
        (gfc_error_now): Renamed from gfc_error_now_2.
        (gfc_warning_now_1): Renamed from gfc_warning_now.
        (gfc_warning_now): Renamed from gfc_warning_now_2.
        * error.c (gfc_error_now_1): Renamed from gfc_error_now.
        (gfc_error_now): Renamed from gfc_error_now_2.
        (gfc_warning_now_1): Renamed from gfc_warning_now.
        (gfc_warning_now): Renamed from gfc_warning_now_2.
        (gfc_get_errors): Include common diagnostic in count.
        * lang.opt (Wc-binding-type, Wconversion, Wconversion-extra,
        Wintrinsics-std): Create a Var for those warnings.
        * check.c (gfc_check_cmplx): Pass warning flag to
        diagnostic function.
        * decl.c (get_proc_name, gfc_verify_c_interop_param, build_sym
        gfc_set_constant_character_len, verify_bind_c_sym): Ditto; use
        _1 for old diagnostic, remove _2 for new diagnostic.
        * expr.c (gfc_check_assign, gfc_check_vardef_context): Ditto.
        * frontend-passes.c (doloop_code, do_function): Ditto.
        * intrinsic.c (gfc_is_intrinsic, gfc_convert_type_warn): Ditto.
        * match.c (gfc_match_common): Ditto.
        * module.c (use_iso_fortran_env_module, gfc_use_module): Ditto.
        * parse.c (decode_statement, decode_gcc_attribute, next_free,
        next_fixed, gfc_check_do_variable): Ditto.
        * resolve.c (resolve_common_vars, resolve_ordinary_assign):
        Ditto.
        * scanner.c (add_path_to_list, skip_free_comments,
        gfc_next_char_literal, gfc_gobble_whitespace, load_line,
        preprocessor_line, load_file): Ditto.
        * symbol.c (gfc_set_default_type, verify_bind_c_derived_type):
        Ditto.
        * options.c (gfc_post_options): Ditto.
        (gfc_init_options, set_Wall, gfc_handle_option): Ditto; remove
        flags which now have a Var.
        * invoke.texi (Wconversion-extra): Make clear that the flag
        does not imply -Wconversion.

gcc/testsuite/
        * gfortran.dg/empty_label.f: Change test to continue testing
        for -fmax-errors=1.
        * gfortran.dg/empty_label.f90: Ditto.
        * gfortran.dg/warnings_are_errors_1.f90: Update dg-*.

From-SVN: r218067
2014-11-25 23:33:32 +01:00
Andreas Tobler
b1edcad11f enum6.C: Use arm_eabi for dg-options.
2014-11-26  Andreas Tobler  <andreast@gcc.gnu.org>

        * g++.old-deja/g++.jason/enum6.C: Use arm_eabi for dg-options.
	Update comment.
	* g++.old-deja/g++.law/enum9.C: Likewise.
	* g++.old-deja/g++.other/enum4.C: Likewise.

From-SVN: r218065
2014-11-25 23:30:58 +01:00
Vladimir Makarov
61001a3585 ira-lives.c (process_bb_node_lives): Make code with conditional REAL_PIC_OFFSET_TABLE_REGNUM.
2014-11-25  Vladimir Makarov  <vmakarov@redhat.com>

	* ira-lives.c (process_bb_node_lives): Make code with conditional
	REAL_PIC_OFFSET_TABLE_REGNUM.

From-SVN: r218063
2014-11-25 21:27:17 +00:00
H.J. Lu
a56e69dae3 Add a testcase for PR target/63534
PR target/63534
	* gcc.target/i386/pr63534.c: New test.

From-SVN: r218062
2014-11-25 13:07:43 -08:00
H.J. Lu
55026b4cf9 Add a test for PR target/63527
PR target/63527
	* gcc.target/i386/pr63527.c: New test.

From-SVN: r218061
2014-11-25 12:54:16 -08:00
Tom de Vries
6a848e9de1 Ensure single 'UNSUPPORTED: prettyprinters.exp' message
2014-11-25  Tom de Vries  <tom@codesourcery.com>

	* testsuite/libstdc++-prettyprinters/prettyprinters.exp: Add missing
	dg-finish.  Only print unsupported message once.

From-SVN: r218060
2014-11-25 20:30:20 +00:00
Vladimir Makarov
21c6c24fa9 re PR target/63527 (-fPIC uses 2 registers for GOT)
2014-11-25  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/63527
	* ira-lives.c (process_bb_node_lives): Check and remove conflict
	of pic pseudo with pic hard reg.

From-SVN: r218059
2014-11-25 20:20:10 +00:00
Rohit Arul Raj
70edbbaed6 re PR bootstrap/63703 (Bootstrap broken on powerpc-apple-darwin, cc1: internal compiler error: in init_reg_sets)
PR bootstrap/63703
	* config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
	added GCC hard register numbers for SPE high registers.

From-SVN: r218058
2014-11-25 19:01:08 +00:00
Uros Bizjak
cbe5b9605f env.c (getenv): Remove unused variable res_len.
* intrinsics/env.c (getenv): Remove unused variable res_len.

From-SVN: r218057
2014-11-25 19:29:42 +01:00
Segher Boessenkool
375132991d bt-load.c (migrate_btr_defs): Get the key of a heap entry before removing it, not after.
* bt-load.c (migrate_btr_defs): Get the key of a heap entry
	before removing it, not after.

From-SVN: r218056
2014-11-25 18:52:21 +01:00
Segher Boessenkool
d19f2e385c crtstuff.c (__do_glbal_ctors_1): Add missing semicolon.
libgcc/
	* crtstuff.c (__do_glbal_ctors_1): Add missing semicolon.

From-SVN: r218055
2014-11-25 18:50:29 +01:00
Segher Boessenkool
543e1b5f4e mn10300.c (mn10300_insert_setlb_lcc): Remove PATTERN call.
* config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
	PATTERN call.

From-SVN: r218054
2014-11-25 18:47:35 +01:00
Segher Boessenkool
484d637f7c sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead of addic.
* config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
	of addic.

From-SVN: r218053
2014-11-25 18:43:18 +01:00
Segher Boessenkool
e74f8830e0 rs6000.md (iorxor, IORXOR): Delete code_attrs.
* config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
	(rest of file): Replace those with code resp. CODE.

From-SVN: r218052
2014-11-25 18:41:10 +01:00
Tom de Vries
1a2a336065 Add verify_sese
2014-11-25  Tom de Vries  <tom@codesourcery.com>

	* tree-cfg.c (verify_sese): New function.
	(move_sese_region_to_fn): Call verify_sese.
	* tree-cfg.h (verify_sese): Declare.

From-SVN: r218051
2014-11-25 17:10:00 +00:00
Tom de Vries
fdb424cfea Use .mklog name and email settings, or git settings
2014-11-25  Tom de Vries  <tom@codesourcery.com>
	    Peter Bergner  <bergner@vnet.ibm.com>

	* mklog: Handle .mklog.  Use git setting independent of presence .git
	directory.

Co-Authored-By: Peter Bergner <bergner@vnet.ibm.com>

From-SVN: r218050
2014-11-25 16:45:13 +00:00
Richard Biener
743c11344e re PR middle-end/64065 (CP2K miscompilation at -O3 -flto)
2014-11-25  Richard Biener  <rguenther@suse.de>

	PR lto/64065
	* lto-streamer-out.c (output_struct_function_base): Stream
	last_clique field.
	* lto-streamer-in.c (input_struct_function_base): Likewise.

From-SVN: r218049
2014-11-25 16:43:24 +00:00
Martin Liska
8301b194d2 re PR bootstrap/64050 (r218009 causes LTO/PGO bootstrap failure: ICE: in inline_small_functions, at ipa-inline.c:1709)
2014-11-25  Martin Liska  <mliska@suse.cz>

	PR bootstrap/64050
	PR ipa/64060
	* sreal.c (sreal::operator+): Addition fixed.
	(sreal::signedless_plus): Negative numbers are
	handled correctly.
	(sreal::operator-): Subtraction is fixed.
	(sreal::signedless_minus): Negative numbers are
	handled correctly.
	* sreal.h (sreal::operator<): Equal negative numbers
	are compared correctly.
	(sreal::shift): New checking asserts are introduced.
	Operation is fixed.
	* gcc.dg/plugin/plugin.exp: New plugin.
	* gcc.dg/plugin/sreal-test-1.c: New test.
	* gcc.dg/plugin/sreal_plugin.c: New test.

From-SVN: r218048
2014-11-25 15:16:27 +00:00
Matthew Fortune
6b4b59fc6f MIPS: Testsuite fixes for soft-float configurations
gcc/testuite/

	* gcc.target/mips/mips.exp: Add support for -msoft-float
	and -mhard-float options.  Ensure that explicit -mfp*
	options imply both -mhard-float and -mdouble-float.
	* gcc.target/mips/call-clobbered-1.c: Add -mhard-float to the
	compile options.

From-SVN: r218047
2014-11-25 14:57:33 +00:00
Richard Biener
e8c504f1c8 re PR middle-end/61927 (Wrong results with loop vectorization of: "var[i] = ABS_EXPR<var2[i]> > 9.9e-7")
2014-11-25  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/61927
	* tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
	of group and pattern analysis to the one in GCC 4.8.

From-SVN: r218046
2014-11-25 14:55:29 +00:00
Jason Merrill
ec529e2584 * pt.c (lookup_template_variable): Always unknown_type_node.
From-SVN: r218045
2014-11-25 09:34:43 -05:00
Ilya Tocar
191ec64036 Remove unnecessary calls to strchr.
gcc/
	* gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
	strlen, strncpy.
	* lto-wrapper.c (append_offload_options): Likewise.


Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r218044
2014-11-25 16:56:03 +03:00
Paolo Carlini
a959b33fc4 re PR c++/63786 (crash on argument pack in switch case)
/cp
2014-11-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/63786
	* parser.c (cp_parser_label_for_labeled_statement): Check the case
	with check_for_bare_parameter_packs.

/testsuite
2014-11-25  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/63786
	* g++.dg/cpp0x/variadic163.C: New.

From-SVN: r218043
2014-11-25 13:48:49 +00:00
Jakub Jelinek
43ba1c6c3e re PR preprocessor/60436 (C preprocessor segfaults on assembly file)
PR preprocessor/60436
	* line-map.c (linemap_line_start): If highest is above 0x60000000
	and we are still tracking columns or highest is above 0x70000000,
	force add_map.

From-SVN: r218042
2014-11-25 12:16:27 +01:00
Ilya Enkovich
e302f8154a re PR target/64056 (gcc.target/i386/chkp-strlen-4.c etc. FAIL)
PR target/64056
	* gcc.target/i386/chkp-strlen-4.c: Add mempcpy target check.
	* gcc.target/i386/chkp-stropt-4.c: Likewise.
	* gcc.target/i386/chkp-stropt-8.c: Likewise.
	* gcc.target/i386/chkp-stropt-12.c: Likewise.
	* gcc.target/i386/chkp-stropt-16.c: Likewise.

From-SVN: r218041
2014-11-25 09:48:47 +00:00
Eric Botcazou
26ed270e0f rs6000.c (rs6000_call_aix): For the AIX ABI, do not load the static chain if the call was originally direct.
* config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
	load the static chain if the call was originally direct.

From-SVN: r218040
2014-11-25 09:07:25 +00:00
Marek Polacek
b286be940a re PR c/63877 (- -Wmissing-declarations produces false alarms for C99 inline functions)
PR c/63877
	* c-decl.c (start_function): Disable -Wmissing-declarations warning
	for inline functions.

	* gcc.dg/pr63877.c: New test.

From-SVN: r218039
2014-11-25 08:28:45 +00:00
Markus Trippelsdorf
a5b58b283d re PR ipa/64059 (ICE: Segmentation fault in ipa-polymorphic-call.c:1593)
Fix PR64059

	* ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
	devirtualization is disabled.

From-SVN: r218038
2014-11-25 07:41:48 +00:00
Tim Shen
02ba3fc22d re PR libstdc++/63920 (Any regular expression should not match an empty sequence if match_not_null is specified)
PR libstdc++/63920
	* include/bits/regex_executor.h: Make _M_begin non const.
	* include/bits/regex_executor.tcc (_Executor<>::_M_search): Increase
	_M_begin in search algorithm, so that _M_begin is treated as
	"current start position" for each search iteration.
	* testsuite/28_regex/algorithms/regex_search/ecma/flags.cc: New
	testcase.

From-SVN: r218037
2014-11-25 05:43:04 +00:00
GCC Administrator
5534b254ae Daily bump.
From-SVN: r218036
2014-11-25 00:16:26 +00:00
John David Anglin
17f6e9a357 linux-atomic.c (ABORT_INSTRUCTION): Use __builtin_trap() instead.
* config/pa/linux-atomic.c (ABORT_INSTRUCTION): Use __builtin_trap()
	instead.

From-SVN: r218033
2014-11-24 23:39:47 +00:00
John David Anglin
67c4c16420 configure.ac: Guard include of <ieeefp.h>.
* configure.ac: Guard include of <ieeefp.h>.
	* configure: Rebuilt.

From-SVN: r218032
2014-11-24 23:27:36 +00:00
Jakub Jelinek
3f9e8f13a3 re PR fortran/63938 (OpenMP atomic update does not protect access to automatic array)
PR fortran/63938
	* trans-openmp.c (gfc_trans_omp_atomic): Make sure lhsaddr is
	simple enough for goa_lhs_expr_p.

	* libgomp.fortran/pr63938-1.f90: New test.
	* libgomp.fortran/pr63938-2.f90: New test.

From-SVN: r218031
2014-11-25 00:08:26 +01:00
Uros Bizjak
05e729ec76 re PR target/63847 (FAIL: c-c++-common/cilk-plus/AN/builtin_fn_custom.c execution test on i?86 with -fpic)
PR target/63847
	* c-c++-common/cilk-plus/AN/builtin_fn_custom.c: Add -ffloat-store
	for 32bit x86 targets.
	* c-c++-common/cilk-plus/AN/builtin_fn_mutating.c: Ditto.

From-SVN: r218030
2014-11-24 22:43:59 +01:00
Tobias Burnus
a87dfeedc3 coarray_collectives_3.f90: Add dg-excess-errors.
2014-11-24  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_collectives_3.f90: Add dg-excess-errors.
        * gfortran.dg/dollar_sym_1.f90: Ditto.
        * gfortran.dg/dollar_sym_3.f: Ditto.

From-SVN: r218029
2014-11-24 20:40:10 +01:00
Michael Meissner
16d5eaa1b5 re PR target/63965 (ICE: in extract_constrain_insn, at recog.c:2230 on ppc64)
2014-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/63965
	* config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
	Altivec & -16 mask if the type is not valid for Altivec registers.
	(rs6000_secondary_reload_memory): Add support for ((reg + const) +
	reg) that occurs during push_reload processing.

	* config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
	alternative for moving constant vectors which are easy altivec
	constants to GPRs.  Set the length attribute each of the
	alternatives.

From-SVN: r218028
2014-11-24 19:27:29 +00:00