1. 31 Oct, 2017 1 commit
    • diagnostics: get rid of *_at_rich_loc in favor of overloading · 64a5912c
      Adding a fix-it hint currently involves changing e.g.:
      
        error_at (token->location,
                  "unknown type name %qE; did you mean %qs?",
                  token->value, hint);
      to:
      
        gcc_rich_location richloc (token->location);
        richloc.add_fixit_replace (hint);
        error_at_rich_loc (&richloc,
                           "unknown type name %qE; did you mean %qs?",
                           token->value, hint);
      
      to make the change from taking a location_t to a rich_location *.
      
      This patch renames the "*_at_rich_loc" diagnostic entrypoints to use
      the same function names for rich_location * as for location_t,
      via overloading, to simplify the above change to just changing from:
      
        error_at (token->location,
                  "unknown type name %qE; did you mean %qs?",
                  token->value, hint);
      to:
      
        gcc_rich_location richloc (token->location);
        richloc.add_fixit_replace (hint);
        error_at (&richloc,
                  "unknown type name %qE; did you mean %qs?",
                  token->value, hint);
      
      thus saving space (and typing) and usually avoiding the need to reindent
      the "error_at" invocation.
      
      With this change, 0 is no longer acceptable as a location_t to these
      entrypoints, as e.g.:
      
      ../../src/gcc/auto-profile.c:855:37: error: call of overloaded
      'inform(int, const char [18])' is ambiguous
             inform (0, "Not expected TAG.");
                                           ^
      In file included from ../../src/gcc/auto-profile.c:35:0:
      ../../src/gcc/diagnostic-core.h:88:13: note: candidate:
      'void inform(location_t, const char*, ...)'
       extern void inform (location_t, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
                   ^~~~~~
      ../../src/gcc/diagnostic-core.h:89:13: note: candidate:
      'void inform(rich_location*, const char*, ...)'
       extern void inform (rich_location *, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
                   ^~~~~~
      
      Such locations now need to be spelled out as UNKNOWN_LOCATION,
      rather than 0.
      
      I considered making the API take a rich_location & rather than a
      rich_location *, but doing so would mean replacing
        diagnostic_set_info
      and
        diagnostic_set_info_translated
      with a constructor for diagnostic_info, which was a more invasive
      change.  Maybe in the future.
      
      gcc/ChangeLog:
      	* auto-profile.c (autofdo_source_profile::read): Use
      	UNKNOWN_LOCATION rather than 0.
      	* diagnostic-core.h (warning_at_rich_loc): Rename to...
      	(warning_at): ...this overload.
      	(warning_at_rich_loc_n): Rename to...
      	(warning_n): ...this overload.
      	(error_at_rich_loc): Rename to...
      	(error_at): ...this overload.
      	(pedwarn_at_rich_loc): Rename to...
      	(pedwarn): ...this overload.
      	(permerror_at_rich_loc): Rename to...
      	(permerror): ...this overload.
      	(inform_at_rich_loc): Rename to...
      	(inform): ...this overload.
      	* diagnostic.c: (diagnostic_n_impl): Delete location_t-based decl.
      	(diagnostic_n_impl_richloc): Rename to...
      	(diagnostic_n_impl): ...this rich_location *-based decl.
      	(inform_at_rich_loc): Rename to...
      	(inform): ...this, and add an assertion.
      	(inform_n): Update for removal of location_t-based diagnostic_n_impl.
      	(warning_at_rich_loc): Rename to...
      	(warning_at): ...this, and add an assertion.
      	(warning_at_rich_loc_n): Rename to...
      	(warning_n): ...this, and add an assertion.
      	(warning_n): Update location_t-based implementation for removal of
      	location_t-based diagnostic_n_impl.
      	(pedwarn_at_rich_loc): Rename to...
      	(pedwarn): ...this, and add an assertion.
      	(permerror_at_rich_loc): Rename to...
      	(permerror): ...this, and add an assertion.
      	(error_n): Update for removal of location_t-based diagnostic_n_impl.
      	(error_at_rich_loc): Rename to...
      	(error_at): ...this, and add an assertion.
      	* gcc.c (do_spec_1): Use UNKNOWN_LOCATION rather than 0.
      	(driver::do_spec_on_infiles): Likewise.
      	* substring-locations.c (format_warning_va): Update for renaming
      	of inform_at_rich_loc.
      
      gcc/c-family/ChangeLog:
      	* c-common.c (binary_op_error): Update for renaming of
      	error_at_rich_loc.
      	(c_parse_error): Likewise.
      	* c-warn.c (warn_logical_not_parentheses): Likewise for
      	renaming of inform_at_rich_loc.
      	(warn_for_restrict): Likewise for renaming of
      	warning_at_rich_loc_n.
      
      gcc/c/ChangeLog:
      	* c-decl.c (implicit_decl_warning): Update for renaming of
      	pedwarn_at_rich_loc and warning_at_rich_loc.
      	(implicitly_declare): Likewise for renaming of inform_at_rich_loc.
      	(undeclared_variable): Likewise for renaming of error_at_rich_loc.
      	* c-parser.c (c_parser_declaration_or_fndef): Likewise.
      	(c_parser_struct_or_union_specifier): Likewise for renaming of
      	pedwarn_at_rich_loc.
      	(c_parser_parameter_declaration): Likewise for renaming of
      	error_at_rich_loc.
      	* c-typeck.c (build_component_ref): Likewise.
      	(build_unary_op): Likewise for renaming of inform_at_rich_loc.
      	(pop_init_level): Likewise for renaming of warning_at_rich_loc.
      	(set_init_label): Likewise for renaming of error_at_rich_loc.
      
      gcc/cp/ChangeLog:
      	* class.c (explain_non_literal_class): Use UNKNOWN_LOCATION rather
      	than 0.
      	* name-lookup.c (suggest_alternatives_for): Update for renaming of
      	inform_at_rich_loc.
      	(maybe_suggest_missing_header): Likewise.
      	(suggest_alternative_in_explicit_scope): Likewise.
      	* parser.c (cp_parser_diagnose_invalid_type_name): Likewise for
      	renaming of error_at_rich_loc.
      	(cp_parser_string_literal): Likewise.
      	(cp_parser_nested_name_specifier_opt): Likewise.
      	(cp_parser_cast_expression): Likewise for renaming of
      	warning_at_rich_loc.
      	(cp_parser_decl_specifier_seq): Likewise for renaming of
      	error_at_rich_loc and warning_at_rich_loc.
      	(cp_parser_elaborated_type_specifier): Likewise for renaming of
      	pedwarn_at_rich_loc.
      	(cp_parser_cv_qualifier_seq_opt): Likewise for renaming of
      	error_at_rich_loc.
      	(cp_parser_virt_specifier_seq_opt): Likewise.
      	(cp_parser_class_specifier_1): Likewise.
      	(cp_parser_class_head): Likewise.
      	(cp_parser_member_declaration): Likewise for renaming of
      	pedwarn_at_rich_loc, warning_at_rich_loc, and error_at_rich_loc.
      	(cp_parser_enclosed_template_argument_list): Likewise for renaming
      	of error_at_rich_loc.
      	(set_and_check_decl_spec_loc): Likewise.
      	* pt.c (listify): Likewise.
      	* rtti.c (typeid_ok_p): Likewise.
      	* semantics.c (process_outer_var_ref): Use UNKNOWN_LOCATION rather
      	than 0.
      	* typeck.c (access_failure_info::maybe_suggest_accessor): Update
      	for renaming of inform_at_rich_loc.
      	(finish_class_member_access_expr): Likewise for renaming of
      	error_at_rich_loc.
      
      gcc/objc/ChangeLog:
      	* objc-gnu-runtime-abi-01.c (objc_gnu_runtime_abi_01_init): Use
      	UNKNOWN_LOCATION rather than 0.
      
      gcc/testsuite/ChangeLog:
      	* gcc.dg/plugin/diagnostic_plugin_show_trees.c (show_tree): Update
      	for renaming of error_at_rich_loc and inform_at_rich_loc.
      	* gcc.dg/plugin/diagnostic_plugin_test_show_locus.c
      	(test_show_locus): Likewise for renaming of warning_at_rich_loc.
      
      libcpp/ChangeLog:
      	* directives.c (_cpp_handle_directive): Update for renaming of
      	cpp_error_at_richloc to cpp_error_at.
      	* errors.c (cpp_diagnostic_at_richloc): Rename to...
      	(cpp_diagnostic_at): ...this, dropping the location_t-based
      	implementation.
      	(cpp_diagnostic): Update for removal of location_t-based
      	cpp_diagnostic_at.
      	(cpp_error_at): Likewise.
      	(cpp_error_at_richloc): Rename to...
      	(cpp_error_at): ...this, and update for renaming of
      	cpp_diagnostic_at_richloc.
      	* include/cpplib.h (cpp_error_at_richloc): Rename to...
      	(cpp_error_at): ...this.
      
      From-SVN: r254280
      David Malcolm committed
  2. 30 Oct, 2017 1 commit
  3. 29 Oct, 2017 1 commit
    • Delete obsolete SDB debug info support. · 180295ed
      	gcc/
      	* Makefile.in (OBJS): Delete sdbout.o.
      	(GTFILES): Delete $(srcdir)/sdbout.c.
      	* debug.h: Delete sdb_debug_hooks.
      	* final.c: Delete sdbout.h include.
      	(final_scan_insn): Delete SDB_DEBUG check.
      	(rest_of_clean_state): Likewise.
      	* output.h: Delete sdb_begin_function_line.
      	* sdbout.c: Delete.
      	* sdbout.h: Delete.
      	* toplev.c: Delete sdbout.h include.
      	(process_options): Delete SDB_DEBUG check.
      	* tree-core.h (tree_type_common): Delete pointer field of
      	tree_type_symtab.
      	* tree.c (copy_node): Clear TYPE_SYMTAB_DIE instead of
      	TYPE_SYMTAB_POINTER.
      	* tree.h (TYPE_SYMTAB_POINTER): Delete.
      	(TYPE_SYMTAB_IS_POINTER): Delete.
      	(TYPE_SYMTAB_IS_DIE): Renumber.
      	* xcoffout.c: Refer to former sdbout.c file.
      	(xcoffout_begin_prologue): Use past tense for sdbout.c reference.
      
      	* doc/install.texi (--with-stabs): Delete COFF and ECOFF info.
      	* doc/invoke.texi (SEEALSO): Delete adb and sdb references.
      	(Debugging Options): Delete -gcoff.
      	(-gstabs): Delete SDB reference.
      	(-gcoff): Delete.
      	(-gcoff@var{level}): Delete.
      	* doc/passes.texi (Debugging information output): Delete SDB and
      	sdbout.c references.
      	* doc/tm.texi: Regenerate.
      	* doc/tm.texi.in (DWARF_CIE_DATA_ALIGNMENT): Delete SDB from xref.
      	(SDB and DWARF): Change node name to DWARF and delete SDB and COFF
      	references.
      	(DEBUGGER_AUTO_OFFSET): Delete COFF and SDB references.
      	(PREFERRED_DEBUGGING_TYPE): Delete SDB_DEBUG and -gcoff references.
      	(SDB_DEBUGGING_INFO): Delete.
      	(PUT_SDB_@dots{}, SDB_DELIM, SDB_ALLOW_UNKNOWN_REFERENCES)
      	SDB_ALLOW_FORWARD_REFERENCES, SDB_OUTPUT_SOURCE_LINE): Delete.
      	* target.def (output_source_filename): Delete COFF reference.
      
      	* common.opt (gcoff): Delete.
      	(gxcoff+): Update Negative chain.
      	* defaults.h: Delete all references to SDB_DEBUGGING_INFO and
      	SDB_DEBUG.
      	* dwarf2out.c (gen_array_type_die): Change SDB to debuggers.
      	* flag-types.h (enum debug_info_type): Delete SDB_DEBUG.
      	* function.c (number_blocks): Delete SDB_DEBUGGING_INFO, SDB_DEBUG,
      	and SDB references.
      	(expand_function_start): Change sdb reference to past tense.
      	(expand_function_end): Change sdb reference to past tense.
      	* gcc.c (cpp_unique_options): Delete gcoff3 reference.
      	* opts.c (debug_type_names): Delete coff entry.
      	(common_handle_option): Delete OPT_gcoff case.
      	* system.h (SDB_DEBUG, SDB_DEBUGGING_INFO): Poison.
      
      	* config/dbxcoff.h (PREFERRED_DEBUGGING_TYPE): Set to DBX_DEBUG.
      	* config/cris/cris.h: Delete SDB reference in comment.
      	* config/i386/cygming.h: Don't define SDB_DEBUGGING_INFO.
      	(ASM_DECLARE_FUNCTION_NAME): Delete SDB reference from comment.
      	* config/i386/gas.h: Don't define SDB_DEBUGGING_INFO.
      	* config/i386/i386.c (svr4_dbx_register_map): Change SDB references
      	to past tense.
      	(ix86_expand_prologue): Likewise.
      	* config/i386/winnt.c (i386_pe_start_function): Don't check SDB_DEBUG.
      	* config/ia64/ia64.h: Likewise.
      	* config/m68k/m68kelf.h (DBX_REGISTER_NUMBER): Delete SDB reference.
      	* config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Delete gcoff*
      	support.
      	* config/mmix/mmix.h: Likewise.
      	* config/nds32/nds32.c: Likewise.
      	* config/stormy/storym16.h: Likewise.
      	* config/visium/visium.h: Likewise.
      	* config/vx-common.h (SDB_DEBUGGING_INFO): Delete undef.
      
      	gcc/fortran/
      	* invoke.texi: Delete adb and sdb references.
      
      	gccc/testsuite/
      	* lib/gcc-dg.exp (gcc-dg-debug-runtest): Delete -gcoff.
      	* lib/gfortran-dg.exp (gfortran-dg-debug-runtest): Delete
      	-gcoff.
      
      From-SVN: r254206
      James E Wilson committed
  4. 12 Sep, 2017 1 commit
    • Add -static-pie to GCC driver to create static PIE · b4fed890
      This patch adds -static-pie to GCC driver to create static PIE.  A static
      position independent executable (PIE) is similar to static executable,
      but can be loaded at any address without a dynamic linker.  All linker
      input files must be compiled with -fpie or -fPIE and linker must support
      --no-dynamic-linker to avoid linking with dynamic linker.  "-z text" is
      also needed to prevent dynamic relocations in read-only segments.
      
      	PR driver/81498
      	* common.opt (-static-pie): New alias.
      	(shared): Negate static-pie.
      	(-no-pie): Update help text.
      	(-pie): Likewise.
      	(static-pie): New option.
      	* config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add
      	-static-pie support.
      	(GNU_USER_TARGET_ENDFILE_SPEC): Likewise.
      	(LINK_EH_SPEC): Likewise.
      	(LINK_GCC_C_SEQUENCE_SPEC): Likewise.
      	* config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Likewise.
      	* config/i386/gnu-user64.h (GNU_USER_TARGET_LINK_SPEC): Likewise.
      	* gcc.c (LINK_COMMAND_SPEC): Likewise.
      	(init_gcc_specs): Likewise.
      	(init_spec): Likewise.
      	(display_help): Update help message for -pie.
      	* doc/invoke.texi: Update -pie, -no-pie and -static.  Document
      	-static-pie.
      
      From-SVN: r252034
      H.J. Lu committed
  5. 29 Aug, 2017 1 commit
    • Fix --help=target (PR other/39851). · 130fcab0
      2017-08-29  Martin Liska  <mliska@suse.cz>
      
      	PR other/39851
      	* gcc.c (driver_handle_option): Add new argument.
      	* opts-common.c (handle_option): Pass
      	target_option_override_hook.
      	* opts-global.c (lang_handle_option): Add new option.
      	(set_default_handlers):  Add new argument.
      	(decode_options): Likewise.
      	* opts.c (target_handle_option): Likewise.
      	(common_handle_option): Call target_option_override_hook.
      	* opts.h (struct cl_option_handler_func): Add hook for
      	target option override.
      	(struct cl_option_handlers): Likewise.
      	(set_default_handlers): Add new argument.
      	(decode_options): Likewise.
      	(common_handle_option): Likewise.
      	(target_handle_option): Likewise.
      	* toplev.c (toplev::main): Pass targetm.target_option.override
      	hook.
      2017-08-29  Martin Liska  <mliska@suse.cz>
      
      	PR other/39851
      	* c-common.c (parse_optimize_options): Add argument to function
      	call.
      	* c-pragma.c (handle_pragma_diagnostic): Likewise.
      
      From-SVN: r251400
      Martin Liska committed
  6. 28 Aug, 2017 1 commit
  7. 23 Aug, 2017 1 commit
  8. 15 Aug, 2017 1 commit
  9. 08 Aug, 2017 1 commit
    • PR driver/81523: Make -static override -pie · 7345b714
      -static and -pie together behave differently depending on whether GCC is
      configured with --enable-default-pie.  On x86, "-static -pie" fails to
      create executable when --enable-default-pie isn't used, but creates a
      static executable when --enable-default-pie is used.  This patch makes
      -static completely override -pie to create a static executable, regardless
      if --enable-default-pie is used to configure GCC.
      
      gcc/
      
      	PR driver/81523
      	* gcc.c (NO_PIE_SPEC): Delete.
      	(PIE_SPEC): Define as !no-pie/pie.  Move static|shared|r
      	exclusion..
      	(LINK_PIE_SPEC): ..to here.
      	(LINK_COMMAND_SPEC): Support -no-pie.
      	* config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Correct
      	chain of crtbegin*.o selection, update for PIE_SPEC changes and
      	format.
      	(GNU_USER_TARGET_ENDFILE_SPEC): Similarly.
      	* config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Similarly.
      	(ENDFILE_CRTEND_SPEC): Similarly.
      
      gcc/testsuite/
      
      	PR driver/81523
      	* gcc.dg/pie-7.c: New test.
      	* gcc.dg/pie-static-1.c: Likewise.
      	* gcc.dg/pie-static-2.c: Likewise.
      
      From-SVN: r250974
      H.J. Lu committed
  10. 14 Jul, 2017 2 commits
    • Remove Java references in source code. · ed5cd5bc
      2017-07-14  Martin Liska  <mliska@suse.cz>
      
      	* cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
      	* dwarf2out.c (is_java): Remove the function.
      	(output_pubname): Remove usage of the function.
      	(lower_bound_default): Remove usage of DW_LANG_Java.
      	(gen_compile_unit_die): Likewise.
      	* gcc.c: Remove compiler defaults for .java and .zip files.
      	* gimple-expr.c (remove_suffix): Change as there's no longer
      	extension than 4-letter one.
      	* gimplify.c (mostly_copy_tree_r): Remove Java-special part.
      	(gimplify_save_expr): Likewise.
      	* ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
      	as it's possible even for other languages than Java.
      	* langhooks.h (struct lang_hooks): Remove Java from a comment.
      	* lto-opts.c (lto_write_options): Remove reference to Java.
      	* opts.c (strip_off_ending): Update file extension handling.
      	* tree-cfg.c (verify_gimple_call): Remove comment with Java.
      	* tree-eh.c (lower_resx): Likewise.
      	* tree.c (free_lang_data_in_type): Remove dead code.
      	(find_decls_types_r): Likewise.
      	(build_common_builtin_nodes): Remove Java from a comment.
      	(verify_type): Remove dead code.
      	* varasm.c (assemble_external): Remove Java from a comment.
      
      From-SVN: r250199
      Martin Liska committed
    • Remove Pascal language in source code. · d6d4718a
      2017-07-14  Martin Liska  <mliska@suse.cz>
      
      	* dbxout.c (get_lang_number): Do not handle GNU Pascal.
      	* dbxout.h (extern void dbxout_stab_value_internal_label_diff):
      	Remove N_SO_PASCAL.
      	* dwarf2out.c (lower_bound_default): Do not handle
      	DW_LANG_Pascal83.
      	(gen_compile_unit_die): Likewise.
      	* gcc.c: Remove default extension binding for GNU Pascal.
      	* stmt.c: Remove Pascal language from a comment.
      	* xcoffout.c: Likewise.
      
      From-SVN: r250197
      Martin Liska committed
  11. 06 Jul, 2017 1 commit
    • gcc.c (spec_undefvar_allowed): New global. · 3ed93fc8
      2017-07-06  Olivier Hainque  <hainque@adacore.com>
      
              * gcc.c (spec_undefvar_allowed): New global.
              (process_command): Set to true when running for --version or --help
              alone, or together.
              (getenv_spec_function): When the variable is not defined, use the
              variable name as the variable value if we're allowed not to issue
              a fatal error.
      
      From-SVN: r250027
      Olivier Hainque committed
  12. 16 Jun, 2017 1 commit
    • PR c++/80560 - warn on undefined memory operations involving non-trivial types · c3684b7b
      gcc/c-family/ChangeLog:
      
      	PR c++/80560
      	* c.opt (-Wclass-memaccess): New option.
      
      gcc/cp/ChangeLog:
      
      	PR c++/80560
      	* call.c (first_non_public_field, maybe_warn_class_memaccess): New
      	functions.
      	(has_trivial_copy_assign_p, has_trivial_copy_p): Ditto.
      	(build_cxx_call): Call maybe_warn_class_memaccess.
      
      gcc/ChangeLog:
      
      	PR c++/80560
      	* dumpfile.c (dump_register): Avoid calling memset to initialize
      	a class with a default ctor.
      	* gcc.c (struct compiler): Remove const qualification.
      	* genattrtab.c (gen_insn_reserv): Replace memset with initialization.
      	* hash-table.h: Ditto.
      	* ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
      	  assignment.
      	* ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
      	* omp-low.c (lower_omp_ordered_clauses): Replace memset with
      	default ctor.
      	* params.h (struct param_info): Make struct members non-const.
      	* tree-switch-conversion.c (emit_case_bit_tests): Replace memset
      	with default initialization.
      	* vec.h (vec_copy_construct, vec_default_construct): New helper
      	functions.
      	(vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
      	with vec_copy_construct.
      	(vect<T>::quick_grow_cleared): Replace memset with default ctor.
      	(vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
      	* doc/invoke.texi (-Wclass-memaccess): Document.
      
      libcpp/ChangeLog:
      
      	PR c++/80560
      	* line-map.c (line_maps::~line_maps): Avoid calling htab_delete
      	with a null pointer.
      	(linemap_init): Avoid calling memset on an object of a non-trivial
      	type.
      
      libitm/ChangeLog:
      
      	PR c++/80560
      	* beginend.cc (GTM::gtm_thread::rollback): Avoid calling memset
      	on an object of a non-trivial type.
      	(GTM::gtm_transaction_cp::commit): Use assignment instead of memcpy
      	to copy an object.
      	* method-ml.cc (orec_iterator::reinit): Avoid -Wclass-memaccess.
      
      gcc/testsuite/ChangeLog:
      
      	PR c++/80560
      	* g++.dg/Wclass-memaccess.C: New test.
      
      From-SVN: r249234
      Martin Sebor committed
  13. 13 Jun, 2017 1 commit
    • Implement no_sanitize function attribute · 45b2222a
      2017-06-13  Martin Liska  <mliska@suse.cz>
      
      	PR sanitize/78204
      	* c-c++-common/ubsan/attrib-2.c (float_cast2): Enhance the
      	test by adding no_sanitize attribute.
      	* gcc.dg/asan/use-after-scope-4.c: Likewise.
      2017-06-13  Martin Liska  <mliska@suse.cz>
      
      	PR sanitize/78204
      	* c-attribs.c (add_no_sanitize_value): New function.
      	(handle_no_sanitize_attribute): Likewise.
      	(handle_no_sanitize_address_attribute): Use the function.
      	(handle_no_sanitize_thread_attribute): New function.
      	(handle_no_address_safety_analysis_attribute): Use
      	add_no_sanitize_value.
      	(handle_no_sanitize_undefined_attribute): Likewise.
      	* c-common.h: Declare new functions.
      	* c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
      	(ubsan_instrument_shift): Likewise.
      	(ubsan_instrument_bounds): Likewise.
      	(ubsan_maybe_instrument_array_ref): Likewise.
      	(ubsan_maybe_instrument_reference_or_call): Likewise.
      2017-06-13  Martin Liska  <mliska@suse.cz>
      
      	PR sanitize/78204
      	* asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
      	(gate_asan): Likewise.
      	* asan.h (asan_no_sanitize_address_p): Remove the function.
      	(sanitize_flags_p): New function.
      	* builtins.def: Fix coding style.
      	* common.opt: Use renamed enum value.
      	* convert.c (convert_to_integer_1): Use sanitize_flags_p.
      	* doc/extend.texi: Document no_sanitize attribute.
      	* flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
      	to SANITIZE_UNDEFINED_NONDEFAULT.
      	* gcc.c (sanitize_spec_function): Use the renamed enum value.
      	* gimple-fold.c (optimize_atomic_compare_exchange_p):
      	Use sanitize_flags_p.
      	* gimplify.c (gimplify_function_tree): Likewise.
      	* ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
      	* opts.c (parse_no_sanitize_attribute): New function.
      	(common_handle_option): Use renamed enum value.
      	* opts.h (parse_no_sanitize_attribute): Declare.
      	* tree.c (sanitize_flags_p): New function.
      	* tree.h: Declared here.
      	* tsan.c: Use sanitize_flags_p.
      	* ubsan.c (ubsan_expand_null_ifn): Likewise.
      	(instrument_mem_ref): Likewise.
      	(instrument_bool_enum_load): Likewise.
      	(do_ubsan_in_current_function): Remove the function.
      	(pass_ubsan::execute): Use sanitize_flags_p.
      	* ubsan.h: Remove do_ubsan_in_current_function
      	* tree-cfg.c (print_no_sanitize_attr_value): New function.
      	(dump_function_to_file): Use it here.
      2017-06-13  Martin Liska  <mliska@suse.cz>
      
      	PR sanitize/78204
      	* class.c (build_base_path): Use sanitize_flags_p.
      	* cp-gimplify.c (cp_genericize_r): Likewise.
      	(cp_genericize_tree): Likewise.
      	(cp_genericize): Likewise.
      	* cp-ubsan.c (cp_ubsan_instrument_vptr_p): Likewise.
      	* decl.c (compute_array_index_type): Likewise.
      	(start_preparsed_function): Likewise.
      	* decl2.c (one_static_initialization_or_destruction): Likewise.
      	* init.c (finish_length_check): Likewise.
      	* lambda.c (maybe_add_lambda_conv_op): Likewise.
      	* typeck.c (cp_build_binary_op): Likewise.
      	(build_static_cast_1): Likewise.
      2017-06-13  Martin Liska  <mliska@suse.cz>
      
      	PR sanitize/78204
      	* c-convert.c (convert): Use sanitize_flags_p.
      	* c-decl.c (grokdeclarator): Likewise.
      	* c-typeck.c (convert_for_assignment): Likewise.
      	(c_finish_return): Likewise.
      	(build_binary_op): Likewise.
      
      From-SVN: r249158
      Martin Liska committed
  14. 15 May, 2017 1 commit
  15. 03 May, 2017 1 commit
    • Support escaping special characters in specs · 31c83050
      2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
      	    Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
      
      	* gcc.c (handle_braces): Support escaping in switch matching
      	text.
      	* doc/invoke.texi (Spec Files): Document it.
      	Remove superfluous @code markup in items.
      
      Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
      
      From-SVN: r247552
      Jeff Downs committed
  16. 17 Jan, 2017 1 commit
    • re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) · 3c36aa6b
      	PR other/79046
      	* configure: Regenerated.
      config/
      	* acx.m4 (GCC_BASE_VER): New m4 function.
      	(ACX_TOOL_DIRS): Require GCC_BASE_VER, for
      	--with-gcc-major-version-only use just major number from BASE-VER.
      gcc/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
      	version from BASE-VER file.
      	(CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
      	(gcc.o): Depend on $(BASEVER).
      	* common.opt (dumpfullversion): New option.
      	* gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
      	* doc/invoke.texi: Document -dumpfullversion.
      	* doc/install.texi: Document --with-gcc-major-version-only.
      	* configure: Regenerated.
      libatomic/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libgomp/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libgcc/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
      	version from BASE-VER file.
      	* configure: Regenerated.
      libssp/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      liboffloadmic/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* aclocal.m4: Include ../config/acx.m4.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libquadmath/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libmpx/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libada/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
      	version from BASE-VER file.
      	* configure: Regenerated.
      lto-plugin/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libitm/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      fixincludes/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.in (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      libcilkrts/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* aclocal.m4: Include ../config/acx.m4.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libcc1/
      	* configure.ac: Add GCC_BASE_VER.  For --with-gcc-major-version-only
      	use just major number from BASE-VER.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libobjc/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.in (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      libstdc++-v3/
      	* configure.ac: Add GCC_BASE_VER.
      	* fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* po/Makefile.in: Regenerated.
      	* libsupc++/Makefile.in: Regenerated.
      	* testsuite/Makefile.in: Regenerated.
      	* src/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      	* include/Makefile.in: Regenerated.
      	* doc/Makefile.in: Regenerated.
      	* python/Makefile.in: Regenerated.
      	* src/c++11/Makefile.in: Regenerated.
      	* src/c++98/Makefile.in: Regenerated.
      	* src/filesystem/Makefile.in: Regenerated.
      libvtv/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libsanitizer/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* libbacktrace/Makefile.in: Regenerated.
      	* interception/Makefile.in: Regenerated.
      	* asan/Makefile.in: Regenerated.
      	* ubsan/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* sanitizer_common/Makefile.in: Regenerated.
      	* lsan/Makefile.in: Regenerated.
      	* Makefile.in: Regenerated.
      	* tsan/Makefile.in: Regenerated.
      libgfortran/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      
      From-SVN: r244521
      Jakub Jelinek committed
  17. 16 Jan, 2017 1 commit
    • re PR driver/49726 (-g0 file.S -g does not produce debug info) · 1c70261c
      	PR driver/49726
      	* gcc.c (debug_level_greater_than_spec_func): New function.
      	(static_spec_functions): Add debug-level-gt spec function.
      	(ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
      	!g0.
      	* config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
      	* config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
      	* common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
      	gpubnames, ggnu-pubnames, gno-record-gcc-switches,
      	grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
      	gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
      c-family/
      	* c.opt (gen-decls): Add Driver flag.
      ada/
      	* gcc-interface/lang.opt (gant, gnatO, gnat): Add Driver flag.
      
      From-SVN: r244505
      Jakub Jelinek committed
  18. 11 Jan, 2017 1 commit
  19. 09 Jan, 2017 1 commit
  20. 05 Jan, 2017 1 commit
  21. 01 Jan, 2017 2 commits
    • Update copyright years. · cbe34bb5
      From-SVN: r243994
      Jakub Jelinek committed
    • gcc.c (process_command): Update copyright notice dates. · c1a9c369
      gcc/
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov-dump.c (print_version): Ditto.
      	* gcov.c (print_version): Ditto.
      	* gcov-tool.c (print_version): Ditto.
      	* gengtype.c (create_file): Ditto.
      	* doc/cpp.texi: Bump @copying's copyright year.
      	* doc/cppinternals.texi: Ditto.
      	* doc/gcc.texi: Ditto.
      	* doc/gccint.texi: Ditto.
      	* doc/gcov.texi: Ditto.
      	* doc/install.texi: Ditto.
      	* doc/invoke.texi: Ditto.
      gcc/fortran/
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      	* gfc-internals.texi: Bump @copying's copyright year.
      	* gfortran.texi: Ditto.
      	* intrinsic.texi: Ditto.
      	* invoke.texi: Ditto.
      gcc/ada/
      	* gnat_ugn.texi: Bump @copying's copyright year.
      	* gnat_rm.texi: Likewise.
      gcc/go/
      	* gccgo.texi: Bump @copyrights-go year.
      libitm/
      	* libitm.texi: Bump @copying's copyright year.
      libgomp/
      	* libgomp.texi: Bump @copying's copyright year.
      libquadmath/
      	* libquadmath.texi: Bump @copying's copyright year.
      
      From-SVN: r243992
      Jakub Jelinek committed
  22. 21 Dec, 2016 1 commit
  23. 14 Nov, 2016 1 commit
    • Introduce -fprofile-update=prefer-atomic · 4d209853
      	PR bootstrap/78069
      	* common.opt: Add prefer-atomic as a new enum value for
      	-fprofile-update.
      	* coretypes.h: Likewise.
      	* doc/invoke.texi: Document the new option value.
      	* gcc.c: Replace atomic with prefer-atomic.  Remove warning.
      	* tree-profile.c (tree_profiling): Select default value
      	of -fprofile-update when 'prefer-atomic' is selected.
      	PR bootstrap/78069
      	* gcc.dg/no_profile_instrument_function-attr-1.c: Update test
      	to match scanned pattern.
      	* gcc.dg/tree-ssa/ssa-lim-11.c: Likewise.
      
      From-SVN: r242386
      Martin Liska committed
  24. 06 Oct, 2016 1 commit
  25. 30 Sep, 2016 1 commit
  26. 15 Aug, 2016 1 commit
  27. 04 Jul, 2016 1 commit
    • fix interaction of -S and -x {c,c++}-header · 79335075
      Irrespective of the use of -o this so far resulted in "error: output
      filename specified twice", since cc1_options already produces a -o
      option when -S was specified.
      
      gcc/
      2016-07-04  Jan Beulich  <jbeulich@suse.com>
      
      	* gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
      
      gcc/cp/
      2016-07-04  Jan Beulich  <jbeulich@suse.com>
      
      	* lang-specs.h ("@c++-header"): Conditionalize "-o".
      
      gcc/testsuite/
      2016-07-04  Jan Beulich  <jbeulich@suse.com>
      
      	* g++.dg/header.c: New.
      	* gcc.dg/header.c: New.
      
      From-SVN: r237955
      Jan Beulich committed
  28. 30 Jun, 2016 1 commit
    • Fix bogus option suggestions for RejectNegative options (PR driver/71651) · 603107fb
      gcc/ChangeLog:
      	PR driver/71651
      	* gcc.c (driver::build_option_suggestions): Pass "option" to
      	add_misspelling_candidates.
      	* opts-common.c (add_misspelling_candidates): Add "option" param;
      	use it to avoid adding negated forms for options marked with
      	RejectNegative.
      	* opts.h (add_misspelling_candidates): Add "option" param.
      
      gcc/testsuite/ChangeLog:
      	PR driver/71651
      	* gcc.dg/spellcheck-options-12.c: New test case.
      
      From-SVN: r237880
      David Malcolm committed
  29. 01 Jun, 2016 1 commit
    • c-common.c (get_source_date_epoch): Rename to cb_get_source_date_epoch. · 15c98b2e
      gcc/c-family/ChangeLog:
      
      2016-05-13  Eduard Sanou  <dhole@openmailbox.org>
      
      	* c-common.c (get_source_date_epoch): Rename to
      	cb_get_source_date_epoch.
      	* c-common.c (cb_get_source_date_epoch): Use a single generic erorr
      	message when the parsing fails.  Use error_at instead of fatal_error.
      	* c-common.h (get_source_date_epoch): Rename to
      	cb_get_source_date_epoch.
      	* c-common.h (cb_get_source_date_epoch): Prototype.
      	* c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
      	* c-common.h (c_omp_region_type): Remove trailing comma.
      	* c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
      	* c-lex.c (c_lex_with_flags): Remove initialization of
      	pfile->source_date_epoch.
      
      gcc/ChangeLog:
      
      2016-05-13  Eduard Sanou  <dhole@openmailbox.org>
      
      	* doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
      	extension.
      	* gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
      	* gcc.c (set_source_date_epoch_envvar): New function, sets
      	the SOURCE_DATE_EPOCH environment variable to the current time.
      
      gcc/testsuite/ChangeLog:
      
      2016-05-13  Eduard Sanou  <dhole@openmailbox.org>
      
      	* gcc.dg/cpp/source_date_epoch-1.c: New file, test the proper
      	behaviour of the macros __DATE__ and __TIME__ when SOURCE_DATE_EPOCH
      	env var is set.
      	* gcc.dg/cpp/source_date_epoch-2.c: New file, test the error output
      	when parsing the SOURCE_DATE_EPOCH env var, and make sure it is only
      	shown once.
      	* lib/gcc-dg.exp (dg-set-compiler-env-var): New function, set env vars
      	during compilation.
      	* lib/gcc-dg.exp (restore-compiler-env-var): New function, restore env
      	vars set by dg-set-compiler-env-var.
      
      libcpp/ChangeLog:
      
      2016-05-13  Eduard Sanou  <dhole@openmailbox.org>
      
      	* include/cpplib.h (cpp_callbacks): Add get_source_date_epoch
      	callback.
      	* include/cpplib.h (cpp_init_source_date_epoch): Remove prototype.
      	* init.c (cpp_init_source_date_epoch): Remove function.
      	* init.c (cpp_create_reader): Initialize pfile->source_date_epoch.
      	* internal.h (cpp_reader): Extend comment about source_date_epoch.
      	* macro.c (_cpp_builtin_macro_text): Use get_source_date_epoch
      	callback only once, read pfile->source_date_epoch on future passes.
      	Check that get_source_date_epoch callback is not NULL.
      
      From-SVN: r237001
      Eduard Sanou committed
  30. 09 May, 2016 1 commit
    • Error out on -fvtable-verify without --enable-vtable-verify · ad103b01
      	* configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
      	* configure: Regenerate.
      	* config.in: Regenerate.
      	* gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
      	on -fvtable-verify.
      	* config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
      	(ENDFILE_VTV_SPEC): Define.
      
      From-SVN: r236029
      Rainer Orth committed
  31. 19 Feb, 2016 1 commit
  32. 12 Feb, 2016 2 commits
    • PR driver/69779: fix bogus cleanup code used by libgccjit affecting s390x · 8dccd19b
      gcc/ChangeLog:
      	PR driver/69779
      	* gcc.c (driver::finalize): Fix cleanup of "specs".
      
      From-SVN: r233385
      David Malcolm committed
    • PR driver/69265 and 69453: improved suggestions for various misspelled options · 61789eed
      gcc/ChangeLog:
      	PR driver/69265
      	PR driver/69453
      	* gcc.c (driver::driver): Initialize m_option_suggestions.
      	(driver::~driver): Clean up m_option_suggestions.
      	(suggest_option): Convert to...
      	(driver::suggest_option): ...this, and split out into
      	driver::build_option_suggestions and find_closest_string.
      	(driver::build_option_suggestions): New function, from
      	first half of suggest_option.  Special-case
      	OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
      	the sanitizer_opts array.  For options of enum types, add the
      	various enum values to the candidate strings.
      	(driver::handle_unrecognized_options): Remove "const".
      	* gcc.h (driver::handle_unrecognized_options): Likewise.
      	(driver::build_option_suggestions): New decl.
      	(driver::suggest_option): New decl.
      	(driver::m_option_suggestions): New field.
      	* opts-common.c (add_misspelling_candidates): New function.
      	* opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
      	and make non-static.
      	* opts.h (sanitizer_opts): New array decl.
      	(add_misspelling_candidates): New function decl.
      	* spellcheck.c (find_closest_string): New function.
      	* spellcheck.h (find_closest_string): New function decl.
      
      gcc/testsuite/ChangeLog:
      	PR driver/69265
      	PR driver/69453
      	* gcc.dg/spellcheck-options-3.c: New test case.
      	* gcc.dg/spellcheck-options-4.c: New test case.
      	* gcc.dg/spellcheck-options-5.c: New test case.
      	* gcc.dg/spellcheck-options-6.c: New test case.
      	* gcc.dg/spellcheck-options-7.c: New test case.
      	* gcc.dg/spellcheck-options-8.c: New test case.
      	* gcc.dg/spellcheck-options-9.c: New test case.
      	* gcc.dg/spellcheck-options-10.c: New test case.
      
      From-SVN: r233382
      David Malcolm committed
  33. 19 Jan, 2016 1 commit
    • Fix memory chunk corruption for opts_obstack (PR jit/68446) · d6874f56
      gcc/ChangeLog:
      	PR jit/68446
      	* gcc.c (driver::decode_argv): Add call to
      	init_opts_obstack before init_options_struct.
      	* opts.c (init_opts_obstack): Remove idempotency.
      	(init_options_struct): Replace call to init_opts_obstack
      	with a gcc_assert to verify that it has already been called.
      	* toplev.c (toplev::main): Add call to init_opts_obstack before
      	calls to init_options_struct.
      	(toplev::finalize): Move cleanup of opts_obstack next to
      	cleanup of save_decoded_options, clearing the latter, and
      	save_decoded_options_count.
      
      From-SVN: r232567
      David Malcolm committed
  34. 12 Jan, 2016 1 commit
  35. 04 Jan, 2016 1 commit
    • gcc.c (process_command): Update copyright notice dates. · 21fa2a29
      gcc/
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov-dump.c (print_version): Ditto.
      	* gcov.c (print_version): Ditto.
      	* gcov-tool.c (print_version): Ditto.
      	* gengtype.c (create_file): Ditto.
      	* doc/cpp.texi: Bump @copying's copyright year.
      	* doc/cppinternals.texi: Ditto.
      	* doc/gcc.texi: Ditto.
      	* doc/gccint.texi: Ditto.
      	* doc/gcov.texi: Ditto.
      	* doc/install.texi: Ditto.
      	* doc/invoke.texi: Ditto.
      gcc/ada/
      	* gnat_ugn.texi: Bump @copying's copyright year.
      	* gnat_rm.texi: Likewise.
      gcc/fortran/
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      	* gfc-internals.texi: Bump @copying's copyright year.
      	* gfortran.texi: Ditto.
      	* intrinsic.texi: Ditto.
      	* invoke.texi: Ditto.
      gcc/go/
      	* gccgo.texi: Bump @copyrights-go year.
      gcc/java/
      	* jcf-dump.c (version): Update copyright notice dates.
      libgomp/
      	* libgomp.texi: Bump @copying's copyright year.
      libitm/
      	* libitm.texi: Bump @copying's copyright year.
      libjava/
      	* classpath/gnu/java/rmi/registry/RegistryImpl.java (version): Update
      	copyright notice dates.
      	* classpath/tools/gnu/classpath/tools/orbd/Main.java (run): Ditto.
      	* gnu/gcj/convert/Convert.java (version): Update copyright notice
      	dates.
      	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Ditto.
      libquadmath/
      	* libquadmath.texi: Bump @copying's copyright year.
      
      From-SVN: r232053
      Jakub Jelinek committed
  36. 25 Nov, 2015 1 commit
    • Port libvtv to Solaris · e5ef217c
      	libstdc++-v3:
      	* acinclude.m4 (GLIBCXX_ENABLE_VTABLE_VERIFY) <solaris2*>: Use
      	-Wl,-R in VTV_CXXLINKFLAGS.
      	* configure: Regenerate.
      
      	* testsuite/18_support/bad_exception/23591_thread-1.c: Use
      	-fvtable-verify=none on Solaris 12+.
      
      	libgcc:
      	* Makefile.in (VTV_CFLAGS): New variable.
      	(vtv_start$(objext), vtv_end$(objext), vtv_end$(objext))
      	(vtv_start_preinit$(objext), vtv_end_preinit$(objext)): Use it.
      	* config.host (*-*-solaris2*): Add t-crtstuff-pic to tmake_file.
      	Add vtv_start.o, vtv_end.o, vtv_start_preinit.o, vtv_end_preinit.o
      	to extra_parts if $enable_vtable_verify = yes.
      
      	libvtv:
      	* configure.tgt (*-*-solaris2.[1-9]*): Declare supported.
      	* configure.ac: Call AC_USE_SYSTEM_EXTENSIONS.
      	<*-*-solaris2*>: Check for init priority support.
      	Check for getexecname, __fortify_fail, _obstack_begin.
      	(VTV_NO_OBSTACK): New conditional.
      	* configure: Regenerate.
      	* Makefile.am [VTV_NO_OBSTACK] (obstack.c): Use new condition.
      	Create empty config.h
      	* Makefile.in: Regenerate.
      
      	* vtv_rts.cc [HAVE_GETEXECNAME] (program_invocation_name): New
      	variable.
      	(read_section_offset_and_length) [HAVE_GETEXECNAME]: Set it.
      	(dl_iterate_phdr_callback) [HAVE_GETEXECNAME]: Set it.
      
      	(__fortify_fail): Wrap in HAVE___FORTIFY_FAIL
      	[!HAVE___FORTIFY_FAIL]: Provide non-Cygwin implementation.
      
      	(read_section_offset_and_length): Assert sh_size >= VTV_PAGE_SIZE.
      	(iterate_modules): Fix typo.
      	Use VTV_PAGE_SIZE.
      	(dl_iterate_phdr_callback): Fix typo.
      	Use VTV_PAGE_SIZE.
      	(__VLTChangePermission): Fix typos.
      
      	include:
      	* vtv-change-permission.h (VTV_PAGE_SIZE) [__sun__ && __svr4__ &&
      	__sparc__]: Define.
      
      	gcc:
      	* config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
      	(STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
      	(STARTFILE_SPEC): Use %(startfile_vtv).
      	(ENDFILE_SPEC): Use %(endfile_vtv).
      	(SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
      	ENDFILE_VTV_SPEC.
      
      	* gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
      
      From-SVN: r230865
      Rainer Orth committed
  37. 15 Nov, 2015 1 commit
    • always define ENABLE_OFFLOADING · 1d899da2
      gcc/cp/ChangeLog:
      
      2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* parser.c (cp_parser_omp_declare_target): Adjust.
      
      gcc/ChangeLog:
      
      2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* configure: Regenerate.
      	* configure.ac: Always define ENABLE_OFFLOADING.
      	* cgraph.c (cgraph_node::create): Adjust.
      	* gcc.c (process_command): Likewise.
      	* omp-low.c (create_omp_child_function): Likewise.
      	(expand_omp_target): Likewise.
      	* varpool.c (varpool_node::get_create): Likewise.
      
      gcc/c/ChangeLog:
      
      2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
      
      	* c-parser.c (c_parser_omp_declare_target): Adjust.
      
      From-SVN: r230393
      Trevor Saunders committed