aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2014-11-28re PR c/63862 (C frontend converts shift-count to int while standard wants ↵Marek Polacek10-24/+72
integer promotions) PR c/63862 c-family/ * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR to op1_utype. * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift expression to unsigned_type_node. c/ * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't convert the right operand to integer type. cp/ * typeck.c (cp_build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't convert the right operand to integer type. testsuite/ * gcc.c-torture/execute/shiftopt-1.c: Don't XFAIL anymore. * c-c++-common/ubsan/shift-7.c: New test. From-SVN: r218142
2014-11-28re PR tree-optimization/64084 (match-and-simplify prefers complex matches)Richard Biener5-19/+97
2014-11-28 Richard Biener <rguenther@suse.de> PR middle-end/64084 * genmatch.c (dt_node::gen_kids_1): New function, split out from dt_node::gen_kids. (decision_tree::cmp_node): DT_TRUE are generally not equal. (decision_tree::find_node): Treat DT_TRUE as barrier for node CSE on the same level. (dt_node::append_node): Do not keep DT_TRUE last. (dt_node::gen_kids): Emit code after each DT_TRUE node seen. * gcc.dg/tree-ssa/ssa-ccp-34.c: New testcase. * gcc.dg/tree-ssa/forwprop-31.c: Likewise. From-SVN: r218141
2014-11-28Fix t-aprofile for march=armv8-a+crcRamana Radhakrishnan2-0/+8
2014-11-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> * config/arm/t-aprofile (MULTILIB_MATCHES): New entry for -march=armv8-a+crc. From-SVN: r218139
2014-11-28Daily bump.GCC Administrator1-1/+1
From-SVN: r218137
2014-11-27i386.md (preferred_for_size): New attributeUros Bizjak3-55/+95
* config/i386/i386.md (preferred_for_size): New attribute (*pushxf): Split Yx*r constraints to r,*r. Use preferred_for_size attribute to conditionally disable alternative 1. (*pushdf): Split Yd*r constraints to r,*r. Use preferred_for_size and prefered_for_speed attributes to conditionally disable alternative 1. (*movxf_internal): Split Yx*r constraints to r,*r. Use preferred_for_size attribute to conditionally disable alternatives 3 and 4. (*movdf_internal): Split Yd*r constraints to r,*r. Use preferred_for_size and prefered_for_speed attributes to conditionally disable alternatives 3 and 4. * config/i386/constraints.md (Yd, Yx): Remove register constraints. From-SVN: r218134
2014-11-27* dwarf2out.c (set_block_origin_self): Skip nested functions.Eric Botcazou2-2/+9
From-SVN: r218133
2014-11-27Use R15_REG for REAL_PIC_OFFSET_TABLE_REGNUMH.J. Lu3-4/+8
PR target/63833 * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use R15_REG for 64-bit. * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed. From-SVN: r218132
2014-11-27Disable pedantic warning for this testcase.Kai Tietz1-0/+1
Committed as obvious patch From-SVN: r218130
2014-11-27IPA ICF: fix memory leak.Martin Liska3-7/+19
* ipa-icf.c (sem_function::equals_private): int* is replaced with auto_vec. (sem_function::bb_dict_test): Likewise. * ipa-icf.h: Likewise. Co-Authored-By: David Malcolm <dmalcolm@redhat.com> From-SVN: r218129
2014-11-27re PR middle-end/64088 (ICE: in fold_abs_const, at fold-const.c:15550)Richard Biener6-11/+71
2014-11-27 Richard Biener <rguenther@suse.de> PR middle-end/64088 * fold-const.c (const_unop): Re-instantiate missing condition before calling fold_abs_const. * gcc.dg/torture/pr64088.c: New testcase. PR tree-optimization/64088 * tree-ssa-tail-merge.c (update_debug_stmt): After resetting the stmt break from the loop over use operands. * gcc.dg/torture/pr64091.c: New testcase. From-SVN: r218128
2014-11-27Support avx512f in __builtin_cpu_supports.Ilya Tocar7-24/+61
gcc/ * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR): Define. * config/i386/i386.c (get_builtin_code_for_version): Add avx512f. (fold_builtin_cpu): Ditto. * doc/extend.texi: Documment it. gcc/testsuite/ * g++.dg/ext/mv2.C: Add test for target ("avx512f"). * gcc.target/i386/builtin_target.c: Ditto. libgcc/ * config/i386/cpuinfo.c (processor_features): Add FEATURE_AVX512F. * config/i386/cpuinfo.c (get_available_features): Detect it. From-SVN: r218125
2014-11-27re PR c++/63904 (ICE when accessing array member of constexpr struct)Kai Tietz2-3/+9
2014-11-27 Kai Tietz <ktietz@redhat.com> PR c++/63904 * constexpr.c (cxx_eval_vec_init_1): Avoid type-overflow issue. From-SVN: r218123
2014-11-27re PR c++/63904 (ICE when accessing array member of constexpr struct)Kai Tietz2-0/+18
PR c++/63904 * g++.dg/cpp0x/pr63904.C: New. From-SVN: r218122
2014-11-27re PR middle-end/64067 (ICE in expand_expr_real_1, at expr.c:10540, ↵Jakub Jelinek4-5/+26
involving compound literal shenanigans) PR middle-end/64067 * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>: Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL not only if modifier is EXPAND_INITIALIZER, but whenever COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC. * gcc.c-torture/compile/pr64067.c: New test. From-SVN: r218121
2014-11-27re PR tree-optimization/64024 (gcc.dg/vect/vect-simd-clone-6.c ICEs)Jakub Jelinek6-12/+88
PR tree-optimization/64024 * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl field. Add simd_clone_info field. (STMT_VINFO_SIMD_CLONE_FNDECL): Remove. (STMT_VINFO_SIMD_CLONE_INFO): Define. * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of STMT_VINFO_SIMD_CLONE_INFO vector. For linear arguments, remember base and linear_step from analysis phase and use it during transform phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,} multiplied by linear_step. (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO. * gcc.dg/vect/vect-simd-clone-13.c: New test. * gcc.dg/vect/vect-simd-clone-14.c: New test. From-SVN: r218120
2014-11-27re PR lto/64025 (Several testsuite execution failures with -O2 -flto ↵Jakub Jelinek2-5/+11
-fuse-linker-plugin -fno-fat-lto-objects) PR lto/64025 * alias.c (find_base_term): Use std::swap. Prefer tmp2 if it is CONSTANT_P other than CONST_INT. From-SVN: r218119
2014-11-27re PR target/59593 ([arm big-endian] using "ldrh" access a immediate which ↵Thomas Preud'homme6-37/+88
stored in a memory by word) 2014-11-27 Thomas Preud'homme <thomas.preudhomme@arm.com> gcc/ PR target/59593 * config/arm/arm.c (dump_minipool): dispatch to consttable pattern based on mode size. * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and make it TARGET_EITHER. (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER and move HFmode handling from consttable_4 to it. (consttable_4): Move HFmode handling to consttable_2 pattern. * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md. (consttable_2): Ditto. gcc/testsuite/ PR target/59593 * gcc.target/arm/constant-pool.c: New test. From-SVN: r218118
2014-11-27[AArch64][test] Mark variable as volatile in vsqrt_f64 testKyrylo Tkachov2-1/+5
* gcc.target/aarch64/simd/vsqrt_f64_1.c: Mark variable volatile. From-SVN: r218117
2014-11-27tree-ssa-sccvn.c (try_to_simplify): Allow gimple_fold_stmt_to_constant_1 to ↵Richard Biener2-1/+6
follow SSA edges. 2014-11-27 Richard Biener <rguenther@suse.de> * tree-ssa-sccvn.c (try_to_simplify): Allow gimple_fold_stmt_to_constant_1 to follow SSA edges. From-SVN: r218116
2014-11-27re PR middle-end/64083 (ICE: in fix_loop_structure, at loop-init.c:252 ↵Richard Biener4-9/+29
compiling Linux Kernel) 2014-11-27 Richard Biener <rguenther@suse.de> PR tree-optimization/64083 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not forcibly mark loop for removal the wrong way. * gcc.dg/torture/pr64083.c: New testcase. From-SVN: r218115
2014-11-27re PR lto/63704 (-flto internal compiler error: in ↵Richard Biener2-11/+9
mems_in_disjoint_alias_sets_p, at alias.c:398) 2014-11-27 Richard Biener <rguenther@suse.de> PR middle-end/63704 * alias.c (mems_in_disjoint_alias_sets_p): Remove assert and instead return false when !fstrict-aliasing. From-SVN: r218114
2014-11-27re PR tree-optimization/61634 (ICE in in vect_get_vec_def_for_operand, at ↵Richard Biener4-35/+141
tree-vect-stmts.c:1423) 2014-11-27 Richard Biener <rguenther@suse.de> PR tree-optimization/61634 * tree-vect-slp.c: Include gimple-walk.h. (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid down the SLP tree for one scalar statement. (vect_detect_hybrid_slp_1): New walker function. (vect_detect_hybrid_slp_2): Likewise. (vect_detect_hybrid_slp): Properly handle pattern statements in a pre-scan over all loop stmts. * gcc.dg/vect/pr61634.c: New testcase. From-SVN: r218113
2014-11-27revert: aarch64.c (aarch64_code_to_ccmode, [...]): New functions.Zhenqiang Chen2-138/+9
Revert: 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org> * config/aarch64/aarch64.c (aarch64_code_to_ccmode, aarch64_convert_mode, aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions. (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define. From-SVN: r218111
2014-11-26* g++.dg/ext/alignof2.C: xfail-run-if on AIX.David Edelsohn2-0/+5
From-SVN: r218109
2014-11-27Daily bump.GCC Administrator1-1/+1
From-SVN: r218108
2014-11-26Allow partial specialization of variable templates.Jason Merrill10-76/+214
* cp-tree.h (TINFO_USED_TEMPLATE_ID): New. * decl.c (duplicate_decls): Copy it. * error.c (dump_decl) [TEMPLATE_ID_EXPR]: Handle variables. * parser.c (cp_parser_decltype_expr): Do call finish_id_expression on template-ids. * pt.c (register_specialization): Remember variable template insts. (instantiate_template_1): Find the matching partial specialization. (check_explicit_specialization): Allow variable partial specialization. (process_partial_specialization): Likewise. (push_template_decl_real): Likewise. (more_specialized_partial_spec): Rename from more_specialized_class. (most_specialized_partial_spec): Rename from most_specialized_class. (get_partial_spec_bindings): Rename from get_class_bindings. From-SVN: r218104
2014-11-26re PR c++/63757 (nullptr conversion sequence fails to compile)Paolo Carlini4-1/+32
/cp 2014-11-26 Paolo Carlini <paolo.carlini@oracle.com> PR c++/63757 * call.c (standard_conversion): Do not require expr to be non-null when NULLPTR_TYPE_P (from) is true. /testsuite 2014-11-26 Paolo Carlini <paolo.carlini@oracle.com> PR c++/63757 * g++.dg/cpp0x/nullptr33.C: New. From-SVN: r218098
2014-11-26gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread without -pie or ↵Jakub Jelinek4-7/+17
-shared... * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread without -pie or -shared, error on -fsanitize=thread -static instead. * lib/tsan-dg.exp (check_effective_target_fsanitize_thread, tsan_init): Don't use -fPIE or -pie. From-SVN: r218097
2014-11-26comment fixesJason Merrill2-2/+2
From-SVN: r218094
2014-11-26constexpr.c (cxx_eval_constant_expression): Avoid multiple evaluation.Jason Merrill2-1/+15
* constexpr.c (cxx_eval_constant_expression) [SAVE_EXPR]: Avoid multiple evaluation. From-SVN: r218093
2014-11-26constexpr.c (cxx_eval_call_expression): Don't talk about flowing off the end ↵Jason Merrill2-1/+6
if we're already non-constant. * constexpr.c (cxx_eval_call_expression): Don't talk about flowing off the end if we're already non-constant. From-SVN: r218092
2014-11-26re PR ipa/61190 (g++.old-deja/g++.mike/p4736b.C FAILs at -O2/-Os/-O3)Bernd Edlinger6-35/+100
2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de> PR ipa/61190 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment. (cgraph_node::function_or_virtual_thunk_symbol): New function. (cgraph_node::call_for_symbol_and_aliases): Fix comment. (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment. Add new optional parameter exclude_virtual_thunks. * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new optional parameter exclude_virtual_thunks. (cgraph_node::set_const_flag): Don't propagate to virtual thunks. (cgraph_node::set_pure_flag): Likewise. (cgraph_node::function_symbol): Simplified. (cgraph_node::function_or_virtual_thunk_symbol): New function. * ipa-pure-const.c (analyze_function): For virtual thunks set pure_const_state to IPA_NEITHER. (propagate_pure_const): Use function_or_virtual_thunk_symbol. testsuite/ChangeLog: 2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de> PR ipa/61190 * g++.old-deja/g++.mike/p4736b.C: Use -O2. From-SVN: r218091
2014-11-26re PR c++/59114 ([c++1y] ICE using auto in conversion operator)Paolo Carlini2-0/+17
2014-11-26 Paolo Carlini <paolo.carlini@oracle.com> PR c++/59114 * g++.dg/cpp0x/auto43.C: New. From-SVN: r218090
2014-11-26re PR tree-optimization/63738 (ssa corruption when compiled with -O3)Richard Biener4-0/+41
2014-11-26 Richard Biener <rguenther@suse.de> PR middle-end/63738 * tree-data-ref.c (split_constant_offset_1): Do not follow SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI. * gcc.dg/torture/pr63738.c: New testcase. From-SVN: r218088
2014-11-26Diagnose string constant conversion to char* in c++11 and above as ↵Ville Voutilainen8-11/+24
forbidden, not deprecated. Diagnose string constant conversion to char* in c++11 and above as forbidden, not deprecated. * typeck.c (string_conv_p): Do a pedwarn in c++11 and above, change the diagnostic for the Wwrite-strings case for c++11 and above. From-SVN: r218087
2014-11-26fold-const.h (const_unop): Declare.Richard Biener4-154/+230
2014-11-26 Richard Biener <rguenther@suse.de> * fold-const.h (const_unop): Declare. (const_binop): Likewise. * fold-const.c (const_binop): Export overload that expects a type parameter and dispatches to fold_relational_const as well. Check both operand kinds for guarding the transforms. (const_unop): New function, with constant folding from fold_unary_loc. (fold_unary_loc): Dispatch to const_unop for tcc_constant operand. Remove constant folding done there from the simplifications. (fold_binary_loc): Check for constants using CONSTANT_CLASS_P. (fold_negate_expr): Remove dead code from the REAL_CST case. Avoid building garbage in the COMPLEX_CST case. * gimple-match-head.c (gimple_resimplify1): Dispatch to const_unop. (gimple_resimplify2): Dispatch to const_binop. (gimple_simplify): Likewise. From-SVN: r218086
2014-11-26re PR bootstrap/63995 (Bootstrap error with -mmpx -fcheck-pointer-bounds)Ilya Enkovich4-0/+43
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-26re PR sanitizer/63788 (ICE: SIGSEGV in contains_struct_check with -O ↵Marek Polacek2-0/+21
-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-26re PR lto/64075 (ICE: in bp_pack_value, at data-streamer.h:106)Ilya Enkovich5-2/+23
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-26ChangeLog for last commit.Rainer Orth1-0/+7
From-SVN: r218082
2014-11-26Skip gcc.target/i386/mcount_pic.c on SolarisRainer Orth2-3/+3
From-SVN: r218080
2014-11-26PR debug/38757 continued. Handle C11, C++11 and C++14.Mark Wielaard10-12/+92
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-26gimple-fold.c (get_symbol_constant_value): Allow all GIMPLE register type ↵Richard Biener2-3/+7
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-26DWARF add DW_AT_noreturn on noreturn function subprogram.Mark Wielaard6-0/+54
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-26re PR tree-optimization/62238 (ICE with LTO on valid code on ↵Richard Biener4-4/+50
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-2620141125-1.c: New testcase.Andrew Pinski2-0/+21
2014-11-25 Andrew Pinski <apinski@cavium.com> * gcc.c-torture/execute/20141125-1.c: New testcase. From-SVN: r218073
2014-11-26mips.c (mips_rtx_cost_data): Fix memory_latency cost for p5600.Prachi Godbole1-1/+1
* config/mips/mips.c (mips_rtx_cost_data): Fix memory_latency cost for p5600. From-SVN: r218072
2014-11-26Daily bump.GCC Administrator1-1/+1
From-SVN: r218071
2014-11-25error.c (gfc_internal_error): Convert to common diagnostics.Tobias Burnus12-28/+42
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-25gfortran.h (gfc_option_t): Remove flags moved as Var to .opt.Tobias Burnus21-213/+247
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