Skip to content
Snippets Groups Projects
  1. Jan 02, 2025
  2. Nov 18, 2024
    • David Malcolm's avatar
      testsuite: move dg-test cleanup code from gcc-dg.exp to its own file · c9d21e19
      David Malcolm authored
      
      I need to use this cleanup logic for the testsuite for libdiagnostics
      where it's too awkward to directly use gcc-dg.exp itself.
      
      No functional change intended.
      
      gcc/testsuite/ChangeLog:
      	* lib/dg-test-cleanup.exp: New file, from material moved from
      	lib/gcc-dg.exp.
      	* lib/gcc-dg.exp: Add load_lib of dg-test-cleanup.exp.
      	(cleanup-after-saved-dg-test): Move to lib/dg-test-cleanup.exp.
      	(dg-test): Likewise for override.
      	(initialize_prune_notes): Likewise.
      
      libatomic/ChangeLog:
      	* testsuite/lib/libatomic.exp: Add
      	"load_gcc_lib dg-test-cleanup.exp".
      
      libgomp/ChangeLog:
      	* testsuite/lib/libgomp.exp: Add
      	"load_gcc_lib dg-test-cleanup.exp".
      libitm/ChangeLog:
      	* testsuite/lib/libitm.exp: Add
      	"load_gcc_lib dg-test-cleanup.exp".
      
      libphobos/ChangeLog:
      	* testsuite/lib/libphobos-dg.exp: Add
      	"load_gcc_lib dg-test-cleanup.exp".
      
      libstdc++-v3/ChangeLog:
      	* testsuite/lib/libstdc++.exp: Add
      	"load_gcc_lib dg-test-cleanup.exp".
      
      libvtv/ChangeLog:
      	* testsuite/lib/libvtv.exp: Add
      	"load_gcc_lib dg-test-cleanup.exp".
      
      Signed-off-by: default avatarDavid Malcolm <dmalcolm@redhat.com>
      c9d21e19
  3. Sep 02, 2024
    • Alex Coplan's avatar
      testsuite: Rename scanltranstree.exp -> scanltrans.exp · e4d3e7f9
      Alex Coplan authored
      Since r15-3254-g3f51f0dc88ec21c1ec79df694200f10ef85915f4
      added scan-ltrans-rtl* variants to scanltranstree.exp, it no longer
      makes sense to have "tree" in the name.  This renames the file
      accordingly and updates users.
      
      libatomic/ChangeLog:
      
      	* testsuite/lib/libatomic.exp: Load scanltrans.exp instead of
      	scanltranstree.exp.
      
      libgomp/ChangeLog:
      
      	* testsuite/lib/libgomp.exp: Load scanltrans.exp instead of
      	scanltranstree.exp.
      
      libitm/ChangeLog:
      
      	* testsuite/lib/libitm.exp: Load scanltrans.exp instead of
      	scanltranstree.exp.
      
      libphobos/ChangeLog:
      
      	* testsuite/lib/libphobos-dg.exp: Load scanltrans.exp instead of
      	scanltranstree.exp.
      
      libvtv/ChangeLog:
      
      	* testsuite/lib/libvtv.exp: Load scanltrans.exp instead of
      	scanltranstree.exp.
      
      gcc/testsuite/ChangeLog:
      
      	* gcc.dg-selftests/dg-final.exp: Load scanltrans.exp instead of
      	scanltranstree.exp.
      	* lib/gcc-dg.exp: Likewise.
      	* lib/scanltranstree.exp: Rename to ...
      	* lib/scanltrans.exp: ... this.
      e4d3e7f9
  4. May 31, 2024
    • Rainer Orth's avatar
      testsuite: Adjust several dg-additional-files-options calls [PR115294] · 7e322d57
      Rainer Orth authored
      A recent patch
      
      commit bdc264a1
      Author: Alexandre Oliva <oliva@adacore.com>
      Date:   Thu May 30 02:06:48 2024 -0300
      
          [testsuite] conditionalize dg-additional-sources on target and type
      
      added two additional args to dg-additional-files-options.
      Unfortunately, this completely broke several testsuites like
      
      ERROR: tcl error sourcing /vol/gcc/src/hg/master/local/libatomic/testsuite/../../gcc/testsuite/lib/gcc-dg.exp.
      wrong # args: should be "dg-additional-files-options options source dest type"
      
      since the patch forgot to adjust some of the callers.
      
      This patch fixes that.
      
      Tested on i386-pc-solaris2.11, sparc-sun-solaris2.11, and
      x86_64-pc-linux-gnu.
      
      2024-05-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
      
      	libatomic:
      	PR testsuite/115294
      	* testsuite/lib/libatomic.exp (libatomic_target_compile): Pass new
      	dg-additional-files-options args.
      
      	libgomp:
      	PR testsuite/115294
      	* testsuite/lib/libgomp.exp (libgomp_target_compile): Pass new
      	dg-additional-files-options args.
      
      	libitm:
      	PR testsuite/115294
      	* testsuite/lib/libitm.exp (libitm_target_compile): Pass new
      	dg-additional-files-options args.
      
      	libphobos:
      	PR testsuite/115294
      	* testsuite/lib/libphobos.exp (libphobos_target_compile): Pass new
      	dg-additional-files-options args.
      
      	libvtv:
      	PR testsuite/115294
      	* testsuite/lib/libvtv.exp (libvtv_target_compile): Pass new
      	dg-additional-files-options args.
      7e322d57
  5. Jan 03, 2024
  6. Oct 26, 2023
    • Thomas Schwinge's avatar
      libatomic: Consider '--with-build-sysroot=[...]' for target libraries'... · d8ff4b96
      Thomas Schwinge authored
      libatomic: Consider '--with-build-sysroot=[...]' for target libraries' build-tree testing (instead of build-time 'CC' etc.) [PR109951]
      
      Similar to commit fb5d27be
      "libgomp: Consider '--with-build-sysroot=[...]' for target libraries' build-tree testing (instead of build-time 'CC' etc.) [PR91884, PR109951]",
      this is commit 5ff06d76
      "libatomic/test: Fix compilation for build sysroot" done differently,
      avoiding build-tree testing use of any random gunk that may appear in
      build-time 'CC'.
      
      	PR testsuite/109951
      	libatomic/
      	* configure.ac: 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
      	* Makefile.in: Regenerate.
      	* configure: Likewise.
      	* testsuite/Makefile.in: Likewise.
      	* testsuite/lib/libatomic.exp (libatomic_init): If
      	'--with-build-sysroot=[...]' was specified, use it for build-tree
      	testing.
      	* testsuite/libatomic-site-extra.exp.in (GCC_UNDER_TEST): Don't
      	set.
      	(SYSROOT_CFLAGS_FOR_TARGET): Set.
      d8ff4b96
  7. Oct 22, 2023
    • Iain Sandoe's avatar
      Testsuite: allow non-installed testing on darwin · a0673ec5
      Iain Sandoe authored
      DYLD_LIBRARY_PATH is now removed from the environment for all system
      tools, including the shell. Adapt the testsuite and pass the right
      options to allow testing, even when the compiler and libraries have not
      been installed.
      
      gcc/ChangeLog:
      
      	* Makefile.in: set ENABLE_DARWIN_AT_RPATH in site.tmp.
      
      gcc/testsuite/ChangeLog:
      
      	* gfortran.dg/coarray/caf.exp: Correctly set
      	libatomic flags.
      	* gfortran.dg/dg.exp: Likewise.
      	* lib/asan-dg.exp: Set correct -B flags.
      	* lib/atomic-dg.exp: Likewise.
      	* lib/target-libpath.exp: Handle ENABLE_DARWIN_AT_RPATH.
      
      libatomic/ChangeLog:
      
      	* testsuite/lib/libatomic.exp: Pass correct flags on darwin.
      
      libffi/ChangeLog:
      
      	* testsuite/lib/libffi.exp: Likewise.
      
      libitm/ChangeLog:
      
      	* testsuite/lib/libitm.exp: Likewise.
      	* testsuite/libitm.c++/c++.exp: Likewise.
      a0673ec5
  8. Jun 02, 2023
    • Thomas Schwinge's avatar
      Remove stale Autoconf checks for Perl · 49153588
      Thomas Schwinge authored
      Subversion r110220 (Git commit 03b8fe49) for
      PR25884 "libgomp should not require perl to compile" removed all '$(PERL)'
      usage from libgomp -- but didn't remove the then-unused Autoconf Perl check
      itself.  Later, this Autoconf Perl check appears to have been copied from
      libgomp into other GCC libraries, likewise unused.
      
      	libgomp/
      	* configure.ac (PERL): Remove.
      	* configure: Regenerate.
      	* Makefile.in: Likewise.
      	* testsuite/Makefile.in: Likewise.
      	libatomic/
      	* configure.ac (PERL): Remove.
      	* configure: Regenerate.
      	* Makefile.in: Likewise.
      	* testsuite/Makefile.in: Likewise.
      	libgm2/
      	* configure.ac (PERL): Remove.
      	* configure: Regenerate.
      	* Makefile.in: Likewise.
      	* libm2cor/Makefile.in: Likewise.
      	* libm2iso/Makefile.in: Likewise.
      	* libm2log/Makefile.in: Likewise.
      	* libm2min/Makefile.in: Likewise.
      	* libm2pim/Makefile.in: Likewise.
      	libitm/
      	* configure.ac (PERL): Remove.
      	* configure: Regenerate.
      	* Makefile.in: Likewise.
      	* testsuite/Makefile.in: Likewise.
      49153588
  9. Jan 16, 2023
  10. Aug 30, 2022
    • Martin Liska's avatar
      automake: regenerate · bab6d812
      Martin Liska authored
      gotools/ChangeLog:
      
      	* Makefile.in: Regenerate.
      
      libatomic/ChangeLog:
      
      	* testsuite/Makefile.in: Regenerate.
      bab6d812
  11. Jun 02, 2022
    • David Malcolm's avatar
      diagnostics: add SARIF output format · 6cf276dd
      David Malcolm authored
      This patch adds support to gcc's diagnostic subsystem for emitting
      diagnostics in SARIF, aka the Static Analysis Results Interchange Format:
        https://sarifweb.azurewebsites.net/
      by extending -fdiagnostics-format= to add two new options:
        -fdiagnostics-format=sarif-stderr
      and:
        -fdiagnostics-format=sarif-file
      
      The patch targets SARIF v2.1.0
      
      This is a JSON-based format suited for capturing the results of static
      analysis tools (like GCC's -fanalyzer), but it can also be used for plain
      GCC warnings and errors.
      
      SARIF supports per-event metadata in diagnostic paths such as
      ["acquire", "resource"] and ["release", "lock"] (specifically, the
      threadFlowLocation "kinds" property: SARIF v2.1.0 section 3.38.8), so
      the patch extends GCC"s diagnostic_event subclass with a "struct meaning"
      with similar purpose.  The patch implements this for -fanalyzer so that
      the various state-machine-based warnings set these in the SARIF output.
      
      The heart of the implementation is in the new file
      diagnostic-format-sarif.cc.  Much of the rest of the patch is interface
      classes, isolating the diagnostic subsystem (which has no knowledge of
      e.g. tree or langhook) from the "client" code in the compiler proper
      cc1 etc).
      
      The patch adds a langhook for specifying the SARIF v2.1.0
      "artifact.sourceLanguage" property, based on the list in
      SARIF v2.1.0 Appendix J.
      
      The patch adds automated DejaGnu tests to our testsuite via new
      scan-sarif-file and scan-sarif-file-not directives (although these
      merely use regexps, rather than attempting to use a proper JSON parser).
      
      I've tested the patch by hand using the validator at:
        https://sarifweb.azurewebsites.net/Validation
      and the react-based viewer at:
        https://microsoft.github.io/sarif-web-component/
      
      
      which successfully shows most of the information (although not paths,
      and not CWE IDs), and I've fixed all validation errors I've seen (though
      bugs no doubt remain).
      
      I've also tested the generated SARIF using the VS Code extension linked
      to from the SARIF website; I'm a novice with VS Code, but it seems to be
      able to handle my generated SARIF files (e.g. showing the data in the
      SARIF tab, and showing squiggly underlines under issues, and when I
      click on them, it visualizes the events in the path inline within the
      source window).
      
      Has anyone written an Emacs mode for SARIF files? (pretty please)
      
      gcc/ChangeLog:
      	* Makefile.in (OBJS): Add tree-diagnostic-client-data-hooks.o and
      	tree-logical-location.o.
      	(OBJS-libcommon): Add diagnostic-format-sarif.o; reorder.
      	(CFLAGS-tree-diagnostic-client-data-hooks.o): Add TARGET_NAME.
      	* common.opt (fdiagnostics-format=): Add sarif-stderr and sarif-file.
      	(sarif-stderr, sarif-file): New enum values.
      	* diagnostic-client-data-hooks.h: New file.
      	* diagnostic-format-sarif.cc: New file.
      	* diagnostic-path.h (enum diagnostic_event::verb): New enum.
      	(enum diagnostic_event::noun): New enum.
      	(enum diagnostic_event::property): New enum.
      	(struct diagnostic_event::meaning): New struct.
      	(diagnostic_event::get_logical_location): New vfunc.
      	(diagnostic_event::get_meaning): New vfunc.
      	(simple_diagnostic_event::get_logical_location): New vfunc impl.
      	(simple_diagnostic_event::get_meaning): New vfunc impl.
      	* diagnostic.cc: Include "diagnostic-client-data-hooks.h".
      	(diagnostic_initialize): Initialize m_client_data_hooks.
      	(diagnostic_finish): Clean up m_client_data_hooks.
      	(diagnostic_event::meaning::dump_to_pp): New.
      	(diagnostic_event::meaning::maybe_get_verb_str): New.
      	(diagnostic_event::meaning::maybe_get_noun_str): New.
      	(diagnostic_event::meaning::maybe_get_property_str): New.
      	(get_cwe_url): Make non-static.
      	(diagnostic_output_format_init): Handle
      	DIAGNOSTICS_OUTPUT_FORMAT_SARIF_STDERR and
      	DIAGNOSTICS_OUTPUT_FORMAT_SARIF_FILE.
      	* diagnostic.h (enum diagnostics_output_format): Add
      	DIAGNOSTICS_OUTPUT_FORMAT_SARIF_STDERR and
      	DIAGNOSTICS_OUTPUT_FORMAT_SARIF_FILE.
      	(class diagnostic_client_data_hooks): New forward decl.
      	(class logical_location): New forward decl.
      	(diagnostic_context::m_client_data_hooks): New field.
      	(diagnostic_output_format_init_sarif_stderr): New decl.
      	(diagnostic_output_format_init_sarif_file): New decl.
      	(get_cwe_url): New decl.
      	* doc/invoke.texi (-fdiagnostics-format=): Add sarif-stderr and
      	sarif-file.
      	* doc/sourcebuild.texi (Scan a particular file): Add
      	scan-sarif-file and scan-sarif-file-not.
      	* langhooks-def.h (lhd_get_sarif_source_language): New decl.
      	(LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): New macro.
      	(LANG_HOOKS_INITIALIZER): Add
      	LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE.
      	* langhooks.cc (lhd_get_sarif_source_language): New.
      	* langhooks.h (lang_hooks::get_sarif_source_language): New field.
      	* logical-location.h: New file.
      	* plugin.cc (struct for_each_plugin_closure): New.
      	(for_each_plugin_cb): New.
      	(for_each_plugin): New.
      	* plugin.h (for_each_plugin): New decl.
      	* tree-diagnostic-client-data-hooks.cc: New file.
      	* tree-diagnostic.cc: Include "diagnostic-client-data-hooks.h".
      	(tree_diagnostics_defaults): Populate m_client_data_hooks.
      	* tree-logical-location.cc: New file.
      	* tree-logical-location.h: New file.
      
      gcc/ada/ChangeLog:
      	* gcc-interface/misc.cc (gnat_get_sarif_source_language): New.
      	(LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine.
      
      gcc/analyzer/ChangeLog:
      	* checker-path.cc (checker_event::get_meaning): New.
      	(function_entry_event::get_meaning): New.
      	(state_change_event::get_desc): Add dump of meaning of the event
      	to the -fanalyzer-verbose-state-changes output.
      	(state_change_event::get_meaning): New.
      	(cfg_edge_event::get_meaning): New.
      	(call_event::get_meaning): New.
      	(return_event::get_meaning): New.
      	(start_consolidated_cfg_edges_event::get_meaning): New.
      	(warning_event::get_meaning): New.
      	* checker-path.h: Include "tree-logical-location.h".
      	(checker_event::checker_event): Construct m_logical_loc.
      	(checker_event::get_logical_location): New.
      	(checker_event::get_meaning): New decl.
      	(checker_event::m_logical_loc): New.
      	(function_entry_event::get_meaning): New decl.
      	(state_change_event::get_meaning): New decl.
      	(cfg_edge_event::get_meaning): New decl.
      	(call_event::get_meaning): New decl.
      	(return_event::get_meaning): New decl.
      	(start_consolidated_cfg_edges_event::get_meaning): New.
      	(warning_event::get_meaning): New decl.
      	* pending-diagnostic.h: Include "diagnostic-path.h".
      	(pending_diagnostic::get_meaning_for_state_change): New vfunc.
      	* sm-file.cc (file_diagnostic::get_meaning_for_state_change): New
      	vfunc impl.
      	* sm-malloc.cc (malloc_diagnostic::get_meaning_for_state_change):
      	Likewise.
      	* sm-sensitive.cc
      	(exposure_through_output_file::get_meaning_for_state_change):
      	Likewise.
      	* sm-taint.cc (taint_diagnostic::get_meaning_for_state_change):
      	Likewise.
      	* varargs.cc
      	(va_list_sm_diagnostic::get_meaning_for_state_change): Likewise.
      
      gcc/c/ChangeLog:
      	* c-lang.cc (LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine.
      	(c_get_sarif_source_language): New.
      	* c-tree.h (c_get_sarif_source_language): New decl.
      
      gcc/cp/ChangeLog:
      	* cp-lang.cc (LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine.
      	(cp_get_sarif_source_language): New.
      
      gcc/d/ChangeLog:
      	* d-lang.cc (d_get_sarif_source_language): New.
      	(LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine.
      
      gcc/fortran/ChangeLog:
      	* f95-lang.cc (gfc_get_sarif_source_language): New.
      	(LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine.
      
      gcc/go/ChangeLog:
      	* go-lang.cc (go_get_sarif_source_language): New.
      	(LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine.
      
      gcc/objc/ChangeLog:
      	* objc-act.h (objc_get_sarif_source_language): New decl.
      	* objc-lang.cc (LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Redefine.
      	(objc_get_sarif_source_language): New.
      
      gcc/testsuite/ChangeLog:
      	* c-c++-common/diagnostic-format-sarif-file-1.c: New test.
      	* c-c++-common/diagnostic-format-sarif-file-2.c: New test.
      	* c-c++-common/diagnostic-format-sarif-file-3.c: New test.
      	* c-c++-common/diagnostic-format-sarif-file-4.c: New test.
      	* gcc.dg/analyzer/file-meaning-1.c: New test.
      	* gcc.dg/analyzer/malloc-meaning-1.c: New test.
      	* gcc.dg/analyzer/malloc-sarif-1.c: New test.
      	* gcc.dg/plugin/analyzer_gil_plugin.c
      	(gil_diagnostic::get_meaning_for_state_change): New vfunc impl.
      	* gcc.dg/plugin/diagnostic-test-paths-5.c: New test.
      	* gcc.dg/plugin/plugin.exp (plugin_test_list): Add
      	diagnostic-test-paths-5.c to tests for
      	diagnostic_plugin_test_paths.c.
      	* lib/gcc-dg.exp: Load scansarif.exp.
      	* lib/scansarif.exp: New test.
      
      libatomic/ChangeLog:
      	* testsuite/lib/libatomic.exp: Add load_gcc_lib of scansarif.exp.
      
      libgomp/ChangeLog:
      	* testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
      
      libitm/ChangeLog:
      	* testsuite/lib/libitm.exp: Add load_gcc_lib of scansarif.exp.
      
      libphobos/ChangeLog:
      	* testsuite/lib/libphobos-dg.exp: Add load_gcc_lib of scansarif.exp.
      
      Signed-off-by: default avatarDavid Malcolm <dmalcolm@redhat.com>
      6cf276dd
  12. Jan 03, 2022
  13. Jan 04, 2021
  14. Sep 07, 2020
    • Tom de Vries's avatar
      [libatomic, testsuite] Add missing include in atomic-generic.c · c9c87dc9
      Tom de Vries authored
      When compiling atomic-generic.c from the libatomic testsuite, we run into:
      ...
      $ gcc src/libatomic/testsuite/libatomic.c/atomic-generic.c -latomic
      src/libatomic/testsuite/libatomic.c/atomic-generic.c: In function ‘main’:
      src/libatomic/testsuite/libatomic.c/atomic-generic.c:31:7: warning: \
        implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration]
         if (memcmp (&a, &zero, size))
             ^~~~~~
      ...
      
      Fix this by adding the missing string.h include.
      
      Tested on x86_64.
      
      libatomic/ChangeLog:
      
      	* testsuite/libatomic.c/atomic-generic.c: Include string.h.
      c9c87dc9
  15. Apr 06, 2020
    • Maciej W. Rozycki's avatar
      libatomic/test: Fix compilation for build sysroot · 5ff06d76
      Maciej W. Rozycki authored
      Fix a problem with the libatomic testsuite using a method to determine
      the compiler to use resulting in the tool being different from one the
      library has been built with, and causing a catastrophic failure from the
      lack of a suitable `--sysroot=' option where the `--with-build-sysroot='
      configuration option has been used to build the compiler resulting in
      the inability to link executables.
      
      Address this problem by providing a DejaGNU configuration file defining
      the compiler to use, via the GCC_UNDER_TEST TCL variable, set from $CC
      by autoconf, which will have all the required options set for the target
      compiler to build executables in the environment configured, removing
      failures like:
      
      .../bin/riscv64-linux-gnu-ld: cannot find crt1.o: No such file or directory
      .../bin/riscv64-linux-gnu-ld: cannot find -lm
      collect2: error: ld returned 1 exit status
      compiler exited with status 1
      FAIL: libatomic.c/atomic-compare-exchange-1.c (test for excess errors)
      Excess errors:
      .../bin/riscv64-linux-gnu-ld: cannot find crt1.o: No such file or directory
      .../bin/riscv64-linux-gnu-ld: cannot find -lm
      
      UNRESOLVED: libatomic.c/atomic-compare-exchange-1.c compilation failed to produce executable
      
      and bringing overall test results for the `riscv64-linux-gnu' target
      (here with the `x86_64-linux-gnu' host and RISC-V QEMU in the Linux user
      emulation mode as the target board) from:
      
      		=== libatomic Summary ===
      
      # of unexpected failures	27
      # of unresolved testcases	27
      
      to:
      
      		=== libatomic Summary ===
      
      # of expected passes		54
      
      	libatomic/
      	* configure.ac: Add testsuite/libatomic-site-extra.exp to output
      	files.
      	* configure: Regenerate.
      	* libatomic/testsuite/libatomic-site-extra.exp.in: New file.
      	* testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
      	variable.
      	* testsuite/Makefile.in: Regenerate.
      5ff06d76
  16. Jan 24, 2020
    • Maciej W. Rozycki's avatar
      Add `--with-toolexeclibdir=' configuration option · e8e66971
      Maciej W. Rozycki authored
      Provide means, in the form of a `--with-toolexeclibdir=' configuration
      option, to override the default installation directory for target
      libraries, otherwise known as $toolexeclibdir.  This is so that it is
      possible to get newly-built libraries, particularly the shared ones,
      installed in a common place, so that they can be readily used by the
      target system as their host libraries, possibly over NFS, without a need
      to manually copy them over from the currently hardcoded location they
      would otherwise be installed in.
      
      In the presence of the `--enable-version-specific-runtime-libs' option
      and for configurations building native GCC the option is ignored.
      
      	config/
      	* toolexeclibdir.m4: New file.
      
      	gcc/
      	* doc/install.texi (Cross-Compiler-Specific Options): Document
      	`--with-toolexeclibdir' option.
      
      	libada/
      	* Makefile.in (configure_deps): Add `toolexeclibdir.m4'.
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* configure: Regenerate.
      
      	libatomic/
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      	libffi/
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* include/Makefile.in: Regenerate.
      	* man/Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      	libgcc/
      	* Makefile.in (configure_deps): Add `toolexeclibdir.m4'.
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* configure: Regenerate.
      
      	libgfortran/
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      	libgomp/
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      	libhsail-rt/
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      	libitm/
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      	libobjc/
      	* Makefile.in (aclocal_deps): Add `toolexeclibdir.m4'.
      	* aclocal.m4: Include `toolexeclibdir.m4'.
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* configure: Regenerate.
      
      	liboffloadmic/
      	* plugin/configure.ac: Handle `--with-toolexeclibdir='.
      	* plugin/Makefile.in: Regenerate.
      	* plugin/aclocal.m4: Regenerate.
      	* plugin/configure: Regenerate.
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      	libphobos/
      	* m4/druntime.m4: Handle `--with-toolexeclibdir='.
      	* m4/Makefile.in: Regenerate.
      	* libdruntime/Makefile.in: Regenerate.
      	* src/Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      	libquadmath/
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      	libsanitizer/
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* asan/Makefile.in: Regenerate.
      	* interception/Makefile.in: Regenerate.
      	* libbacktrace/Makefile.in: Regenerate.
      	* lsan/Makefile.in: Regenerate.
      	* sanitizer_common/Makefile.in: Regenerate.
      	* tsan/Makefile.in: Regenerate.
      	* ubsan/Makefile.in: Regenerate.
      
      	libssp/
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      
      	libstdc++-v3/
      	* acinclude.m4: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* doc/Makefile.in: Regenerate.
      	* include/Makefile.in: Regenerate.
      	* libsupc++/Makefile.in: Regenerate.
      	* po/Makefile.in: Regenerate.
      	* python/Makefile.in: Regenerate.
      	* src/Makefile.in: Regenerate.
      	* src/c++11/Makefile.in: Regenerate.
      	* src/c++17/Makefile.in: Regenerate.
      	* src/c++98/Makefile.in: Regenerate.
      	* src/filesystem/Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      	libvtv/
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      	zlib/
      	* configure.ac: Handle `--with-toolexeclibdir='.
      	* Makefile.in: Regenerate.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      e8e66971
  17. Jan 01, 2020
  18. Jan 01, 2019
  19. Oct 31, 2018
    • Joseph Myers's avatar
      Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856). · 22e05272
      Joseph Myers authored
      This patch updates GCC to use autoconf 2.69 and automake 1.15.1.
      (That's not the latest automake version, but it's the one used by
      binutils-gdb, with which consistency is desirable, and in any case
      seems a useful incremental update that should make a future update to
      1.16.1 easier.)
      
      The changes are generally similar to the binutils-gdb ones, and are
      copied from there where shared files and directories are involved
      (there are some further changes to such shared directories, however,
      which I'd expect to apply to binutils-gdb once this patch is in GCC).
      Largely, obsolete AC_PREREQ calls are removed, while many
      AC_LANG_SOURCE calls are added to avoid warnings from aclocal and
      autoconf.  Multilib support is no longer included in core automake,
      meaning that multilib.am needs copying from automake's contrib
      directory into the GCC source tree.  Autoconf 2.69 has Go support, so
      local copies of that support are removed.  I hope the D support will
      soon be submitted to upstream autoconf so the local copy of that can
      be removed in a future update.  Changes to how automake generates
      runtest calls mean quotes are removed from RUNTEST definitions in five
      lib*/testsuite/Makefile.am files (libatomic, libgomp, libitm,
      libphobos, libvtv; some others have RUNTEST definitions without
      quotes, which are still OK); libgo and libphobos also get
      -Wno-override added to AM_INIT_AUTOMAKE so those overrides of RUNTEST
      do not generate automake warnings.
      
      Note that the regeneration did not include regeneration of
      fixincludes/config.h.in (attempting such regeneration resulted in all
      the USED_FOR_TARGET conditionals disappearing; and I don't see
      anything in the fixincludes/ directory that would result in such
      conditionals being generated, unlike in the gcc/ directory).  Also
      note that libvtv/testsuite/other-tests/Makefile.in was not
      regenerated; that directory is not listed as a subdirectory for which
      Makefile.in gets regenerated by calling "automake" in libvtv/, so I'm
      not sure how it's meant to be regenerated.
      
      While I mostly fixed warnings should running aclocal / automake /
      autoconf, there were various such warnings from automake in the
      libgfortran, libgo, libgomp, liboffloadmic, libsanitizer, libphobos
      directories that I did not fix, preferring to leave those to the
      relevant subsystem maintainers.  Specifically, most of those warnings
      were of the following form (example from libgfortran):
      
      Makefile.am:48: warning: source file 'caf/single.c' is in a subdirectory,
      Makefile.am:48: but option 'subdir-objects' is disabled
      automake: warning: possible forward-incompatibility.
      automake: At least a source file is in a subdirectory, but the 'subdir-objects'
      automake: automake option hasn't been enabled.  For now, the corresponding output
      automake: object file(s) will be placed in the top-level directory.  However,
      automake: this behaviour will change in future Automake versions: they
      will
      automake: unconditionally cause object files to be placed in the same subdirectory
      automake: of the corresponding sources.
      automake: You are advised to start using 'subdir-objects' option throughout your
      automake: project, to avoid future incompatibilities.
      
      I think it's best for the relevant maintainers to add subdir-objects
      and do any other associated Makefile.am changes needed.  In some cases
      the paths in the warnings involved ../; I don't know if that adds any
      extra complications to the use of subdir-objects.
      
      I've tested this with native, cross and Canadian cross builds.  The
      risk of any OS-specific issues should I hope be rather lower than if a
      libtool upgrade were included (we *should* do such an upgrade at some
      point, but it's more complicated - it involves identifying all our
      local libtool changes to see if any aren't included in the upstream
      version we update to, and reverting an upstream libtool patch that's
      inappropriate for use in GCC); I think it would be better to get this
      update into GCC so that people can test in different configurations
      and we can fix any issues found, rather than to try to get more and
      more testing done before it goes in.
      
      top level:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* multilib.am: New file.  From automake.
      
      	Merge from binutils-gdb:
      	2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
      
      	* libtool.m4: Use AC_LANG_SOURCE.
      	* configure.ac: Remove AC_PREREQ, use AC_LANG_SOURCE.
      	* ar-lib: New file.
      	* test-driver: New file.
      	* configure: Re-generate.
      
      config:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* math.m4, tls.m4: Use AC_LANG_SOURCE.
      
      	Merge from binutils-gdb:
      	2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
      
      	* override.m4 (_GCC_AUTOCONF_VERSION): Bump from 2.64 to 2.69.
      
      fixincludes:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* configure.ac: Remove AC_PREREQ.
      	* aclocal.m4, configure: Regenerate.
      
      gcc:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.  Use single
      	line for second argument of AC_DEFINE_UNQUOTED.
      	* doc/install.texi (Tools/packages necessary for modifying GCC):
      	Update to autoconf 2.69 and automake 1.15.1.
      	* aclocal.m4, config.in, configure: Regenerate.
      
      gnattools:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* configure.ac: Remove AC_PREREQ.
      	* configure: Regenerate.
      
      gotools:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* config/go.m4: Remove file.
      	* Makefile.am (ACLOCAL_AMFLAGS): Do not use -I ./config.
      	* configure.ac:  Remove AC_PREREQ.  Do not include config/go.m4.
      	* Makefile.in, aclocal.m4, configure: Regenerate.
      
      intl:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	Merge from binutils-gdb:
      	2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
      
      	* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS, remove AC_PREREQ.
      	* configure: Re-generate.
      	* config.h.in: Re-generate.
      	* aclocal.m4: Re-generate.
      
      libada:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* configure.ac: Remove AC_PREREQ.
      	* configure: Regenerate.
      
      libatomic:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	* acinclude.m4: Use AC_LANG_SOURCE.
      	* configure.ac: Remove AC_PREREQ.
      	* testsuite/Makefile.am (RUNTEST): Remove quotes.
      	* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
      	Regenerate.
      
      libbacktrace:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	* configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
      	* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
      
      libcc1:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* configure.ac: Remove AC_PREREQ.
      	* Makefile.in, aclocal.m4, configure: Regenerate.
      
      libcpp:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
      	* aclocal.m4, config.in, configure: Regenerate.
      
      libdecnumber:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	Merge from binutils-gdb:
      	2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
      
      	* configure.ac: Remove AC_PREREQ.
      	* configure: Re-generate.
      	* aclocal.m4.
      
      libffi:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	(AUTOMAKE_OPTIONS): Add info-in-builddir.
      	(CLEANFILES): Remove doc/libffi.info.
      	* configure.ac: Remove AC_PREREQ.
      	* Makefile.in, aclocal.m4, configure, fficonfig.h.in,
      	include/Makefile.in, man/Makefile.in, testsuite/Makefile.in:
      	Regenerate.
      
      libgcc:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
      	* configure: Regenerate.
      
      libgfortran:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	* configure.ac: Remove AC_PREREQ.
      	* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
      
      libgo [logically part of this change but omitted from the commit]:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	* config/go.m4: Remove file.
      	* config/libtool.m4: Use AC_LANG_SOURCE.
      	* configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.  Use
      	-Wno-override in AM_INIT_AUTOMAKE call.
      	* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
      	Regenerate.
      
      libgomp:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am
      	(AUTOMAKE_OPTIONS): Add info-in-builddir.
      	(CLEANFILES): Remove libgomp.info.
      	* configure.ac: Remove AC_PREREQ.
      	* testsuite/Makefile.am (RUNTEST): Remove quotes.
      	* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
      	Regenerate.
      
      libhsail-rt:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* configure.ac: Remove AC_PREREQ.
      	* Makefile.in, aclocal.m4, configure: Regenerate.
      
      libiberty:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	Merge from binutils-gdb:
      	2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
      
      	* configure.ac: Remove AC_PREREQ.
      	* configure: Re-generate.
      	* config.in: Re-generate.
      
      libitm:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	(AUTOMAKE_OPTIONS): Add info-in-builddir.
      	(CLEANFILES): Remove libitm.info.
      	* configure.ac: Remove AC_PREREQ.
      	* testsuite/Makefile.am (RUNTEST): Remove quotes.
      	* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
      	Regenerate.
      
      libobjc:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* configure.ac: Remove AC_PREREQ.
      	* aclocal.m4, config.h.in, configure: Regenerate.
      
      liboffloadmic:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	* configure.ac: Remove AC_PREREQ.
      	* plugin/Makefile.am: Include multilib.am.
      	* plugin/configure.ac: Remove AC_PREREQ.
      	* Makefile.in, aclocal.m4, configure, plugin/Makefile.in,
      	plugin/aclocal.m4, plugin/configure: Regenerate.
      
      libphobos:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	* configure.ac: Remove AC_PREREQ.  Use -Wno-override in
      	AM_INIT_AUTOMAKE call.
      	* m4/autoconf.m4: Add extra argument to AC_LANG_DEFINE call.
      	* m4/druntime/os.m4: Use AC_LANG_SOURCE.
      	* testsuite/Makefile.am (RUNTEST): Remove quotes.
      	* Makefile.in, aclocal.m4, configure, libdruntime/Makefile.in,
      	src/Makefile.in, testsuite/Makefile.in: Regenerate.
      
      libquadmath:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	(AUTOMAKE_OPTIONS): Remove 1.8.  Add info-in-builddir.
      	(all-local): Define outside conditional code.
      	(CLEANFILES): Remove libquadmath.info.
      	* configure.ac: Remove AC_PREREQ.
      	* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
      
      libsanitizer:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	* configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
      	* Makefile.in, aclocal.m4, asan/Makefile.in, configure,
      	interception/Makefile.in, libbacktrace/Makefile.in,
      	lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
      	ubsan/Makefile.in: Regenerate.
      
      libssp:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	(AUTOMAKE_OPTIONS): Remove 1.9.5.
      	* configure.ac: Remove AC_PREREQ.  Quote argument to
      	AC_RUN_IFELSE.
      	* Makefile.in, aclocal.m4, configure: Regenerate.
      
      libstdc++-v3:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	* configure.ac: Remove AC_PREREQ.
      	* Makefile.in, aclocal.m4, configure, doc/Makefile.in,
      	include/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
      	python/Makefile.in, src/Makefile.in, src/c++11/Makefile.in,
      	src/c++17/Makefile.in, src/c++98/Makefile.in,
      	src/filesystem/Makefile.in, testsuite/Makefile.in: Regenerate.
      
      libvtv:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      	* configure.ac: Remove AC_PREREQ.
      	* testsuite/Makefile.am (RUNTEST): Remove quotes.
      	* Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
      	Regenerate.
      
      lto-plugin:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
      	* Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
      
      zlib:
      2018-10-31  Joseph Myers  <joseph@codesourcery.com>
      
      	PR bootstrap/82856
      	* Makefile.am: Include multilib.am.
      
      	Merge from binutils-gdb:
      	2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
      
      	* configure.ac: Modernize AC_INIT call, remove AC_PREREQ.
      	* Makefile.am (AUTOMAKE_OPTIONS): Remove 1.8, cygnus, add foreign.
      	* Makefile.in: Re-generate.
      	* aclocal.m4: Re-generate.
      	* configure: Re-generate.
      
      From-SVN: r265695
      22e05272
  20. May 02, 2018
    • Tom de Vries's avatar
      [testsuite] Add scan-ltrans-tree-dump · 9220b511
      Tom de Vries authored
      2018-05-02  Tom de Vries  <tom@codesourcery.com>
      
      	PR testsuite/85106
      	* gcc.dg/ipa/ipa-icf-38.c: Use scan-ltrans-tree-dump.
      	* lib/scanltranstree.exp: New file.
      	* lib/target-supports.exp (scan-ltrans-tree-dump_required_options)
      	(scan-ltrans-tree-dump-times_required_options)
      	(scan-ltrans-tree-dump-not_required_options)
      	(scan-ltrans-tree-dump-dem_required_options)
      	(scan-ltrans-tree-dump-dem-not_required_options): New proc.
      	* lib/gcc-dg.exp: Include scanltranstree.exp.
      
      	* testsuite/lib/libatomic.exp: Include scanltranstree.exp.
      
      	* testsuite/lib/libgomp.exp: Include scanltranstree.exp.
      
      	* testsuite/lib/libitm.exp: Include scanltranstree.exp.
      
      	* testsuite/lib/libvtv.exp: Include scanltranstree.exp.
      
      	* doc/sourcebuild.texi (Commands for use in dg-final, Scan optimization
      	dump files): Add ltrans-tree.
      
      From-SVN: r259838
      9220b511
    • Tom de Vries's avatar
      [testsuite] Add scan-wpa-ipa-dump · 6c3c13c1
      Tom de Vries authored
      2018-05-02  Tom de Vries  <tom@codesourcery.com>
      
      	PR testsuite/85106
      	* gcc.dg/ipa/ipa-icf-38.c: New test.
      	* gcc.dg/ipa/ipa-icf-38a.c: New test.
      	* lib/scandump.exp (dump-base): New proc.
      	(scan-dump, scan-dump-times, scan-dump-not, scan-dump-dem)
      	(scan-dump-dem-not): Add and handle parameter for suffix of the dump
      	base.
      	* lib/scanipa.exp: Add "" argument to scan-dump calls.
      	* lib/scanlang.exp: Same.
      	* lib/scanrtl.exp: Same.
      	* lib/scantree.exp: Same.
      	* lib/scanwpaipa.exp: New file.
      	* lib/gcc-dg.exp: Include scanwpaipa.exp.
      
      	* testsuite/lib/libatomic.exp: Include scanwpaipa.exp.
      
      	* testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
      
      	* testsuite/lib/libitm.exp: Include scanwpaipa.exp.
      
      	* testsuite/lib/libvtv.exp: Include scanwpaipa.exp.
      
      	* doc/sourcebuild.texi (Commands for use in dg-final, Scan optimization
      	dump files): Add wpa-ipa.
      
      From-SVN: r259837
      6c3c13c1
  21. Jan 03, 2018
  22. Dec 14, 2017
    • Steve Ellcey's avatar
      Makefile.am (IFUNC_OPTIONS): Change aarch64 option from -march=armv8.1-a to -march=armv8-a+lse. · 9d0e85af
      Steve Ellcey authored
      2017-12-14  Steve Ellcey  <sellcey@cavium.com>
      
      	* Makefile.am (IFUNC_OPTIONS): Change aarch64
      	option from -march=armv8.1-a to -march=armv8-a+lse.
      	* configure.ac (*aarch64*): Check to see if
      	compiler understands -march=armv8-a+lse option.
      	* configure.tgt (*aarch64*): Only set try_ifunc
      	if compiler understands -march=armv8-a+lse option.
      	* Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      	* configure: Regenerate.
      	* aclocal.m4: Regenerate.
      
      From-SVN: r255659
      9d0e85af
  23. Nov 17, 2017
    • Igor Tsimbalist's avatar
      Enable building libatomic with Intel CET · efc643e9
      Igor Tsimbalist authored
      libatomic/
      	* configure.ac: Set CET_FLAGS, update XCFLAGS.
      	* acinclude.m4: Add cet.m4 and enable.m4.
      	* configure: Regenerate.
      	* Makefile.in: Likewise.
      	* testsuite/Makefile.in: Likewise.
      
      From-SVN: r254893
      efc643e9
  24. May 12, 2017
    • Rainer Orth's avatar
      Load new scanlang.exp · 62ffe920
      Rainer Orth authored
      	libitm:
      	* testsuite/lib/libitm.exp: Load scanlang.exp.
      
      	libgomp:
      	* testsuite/lib/libgomp.exp: Load scanlang.exp.
      
      	libatomic:
      	* testsuite/lib/libatomic.exp: Load scanlang.exp.
      
      From-SVN: r247959
      62ffe920
  25. Jan 21, 2017
    • Jakub Jelinek's avatar
      re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) · 73aa401e
      Jakub Jelinek authored
      	PR other/79046
      libatomic/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      libffi/
      	* configure.ac: Add GCC_BASE_VER.
      	* include/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* configure: Regenerated.
      	* testsuite/Makefile.in: Regenerated.
      	* include/Makefile.in: Regenerated.
      	* Makefile.in: Regenerated.
      	* man/Makefile.in: Regenerated.
      libgomp/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      libitm/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      libmpx/
      	* mpxrt/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* mpxwrap/Makefile.am (gcc_version): Likewise.
      	* mpxrt/Makefile.in: Regenerated.
      	* mpxwrap/Makefile.in: Regenerated.
      liboffloadmic/
      	* plugin/configure.ac: Add GCC_BASE_VER.
      	* plugin/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* plugin/configure: Regenerated.
      	* plugin/aclocal.m4: Regenerated.
      	* plugin/Makefile.in: Regenerated.
      libsanitizer/
      	* interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
      	instead of cat to get version from BASE-VER file.
      	* asan/Makefile.am (gcc_version): Likewise.
      	* ubsan/Makefile.am (gcc_version): Likewise.
      	* sanitizer_common/Makefile.am (gcc_version): Likewise.
      	* lsan/Makefile.am (gcc_version): Likewise.
      	* tsan/Makefile.am (gcc_version): Likewise.
      	* interception/Makefile.in: Regenerated.
      	* asan/Makefile.in: Regenerated.
      	* ubsan/Makefile.in: Regenerated.
      	* sanitizer_common/Makefile.in: Regenerated.
      	* lsan/Makefile.in: Regenerated.
      	* tsan/Makefile.in: Regenerated.
      libvtv/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      
      From-SVN: r244742
      73aa401e
  26. Jan 17, 2017
    • Jakub Jelinek's avatar
      re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) · 3c36aa6b
      Jakub Jelinek authored
      	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
      3c36aa6b
  27. Jan 01, 2017
  28. Jan 04, 2016
  29. Oct 09, 2015
    • David Malcolm's avatar
      Testsuite: add dg-{begin|end}-multiline-output commands · 9e531d37
      David Malcolm authored
      This patch adds an easy way to write tests for expected multiline
      output.  For example we can test carets and underlines for
      a particular diagnostic with:
      
      /* { dg-begin-multiline-output "" }
       typedef struct _GMutex GMutex;
                      ^~~~~~~
         { dg-end-multiline-output "" } */
      
      multiline.exp is used by prune.exp; hence we need to load it before
      prune.exp via *load_gcc_lib* for the testsuites of the various
      non-"gcc" support libraries (e.g. boehm-gc).
      
      gcc/testsuite/ChangeLog:
      	* lib/multiline.exp: New file.
      	* lib/prune.exp: Load multiline.exp.
      	(prune_gcc_output): Call into multiline.exp to handle any
      	multiline output directives.
      	* lib/libgo.exp: Load multiline.exp before prune.exp, using
      	load_gcc_lib.
      
      boehm-gc/ChangeLog:
      	* testsuite/lib/boehm-gc.exp: Load multiline.exp before
      	prune.exp, using load_gcc_lib.
      
      libatomic/ChangeLog:
      	* testsuite/lib/libatomic.exp: Load multiline.exp before
      	prune.exp, using load_gcc_lib.
      
      libgomp/ChangeLog:
      	* testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
      	using load_gcc_lib.
      
      libitm/ChangeLog:
      	* testsuite/lib/libitm.exp: Load multiline.exp before prune.exp,
      	using load_gcc_lib.
      
      libvtv/ChangeLog:
      	* testsuite/lib/libvtv.exp: Load multiline.exp before prune.exp,
      	using load_gcc_lib.
      
      From-SVN: r228655
      9e531d37
  30. Jan 16, 2015
  31. Jan 05, 2015
  32. Dec 12, 2014
  33. Jun 17, 2014
    • Kai Tietz's avatar
      Makefile.am (libatomic_la_LDFLAGS): Add lt_host_flags. · dc3368d0
      Kai Tietz authored
      	* Makefile.am (libatomic_la_LDFLAGS): Add lt_host_flags.
      	* configure.ac (ACX_LT_HOST_FLAGS): New.
      	(target_thread_file): New.
      	* configure.tgt (mingw): Add mingw support.
      	* config/mingw/host-config.h: New file.
      	* config/mingw/lock.c: Likewise.
      	* Makefile.in: Regenerated.
      	* configure: Likewise.
      	* aclocal.m4: Likewise.
      	* testsuite/Makefile.in: Likewise.
      
      From-SVN: r211747
      dc3368d0
  34. Jan 02, 2014
  35. Nov 18, 2013
    • Joseph Myers's avatar
      atomic-compare-exchange-1.c, [...]: Declare main as returning int. · a2ca7c8c
      Joseph Myers authored
      	* testsuite/libatomic.c/atomic-compare-exchange-1.c,
      	testsuite/libatomic.c/atomic-compare-exchange-2.c,
      	testsuite/libatomic.c/atomic-compare-exchange-3.c,
      	testsuite/libatomic.c/atomic-compare-exchange-4.c,
      	testsuite/libatomic.c/atomic-compare-exchange-5.c,
      	testsuite/libatomic.c/atomic-exchange-1.c,
      	testsuite/libatomic.c/atomic-exchange-2.c,
      	testsuite/libatomic.c/atomic-exchange-3.c,
      	testsuite/libatomic.c/atomic-exchange-4.c,
      	testsuite/libatomic.c/atomic-exchange-5.c,
      	testsuite/libatomic.c/atomic-generic.c,
      	testsuite/libatomic.c/atomic-load-1.c,
      	testsuite/libatomic.c/atomic-load-2.c,
      	testsuite/libatomic.c/atomic-load-3.c,
      	testsuite/libatomic.c/atomic-load-4.c,
      	testsuite/libatomic.c/atomic-load-5.c,
      	testsuite/libatomic.c/atomic-op-1.c,
      	testsuite/libatomic.c/atomic-op-2.c,
      	testsuite/libatomic.c/atomic-op-3.c,
      	testsuite/libatomic.c/atomic-op-4.c,
      	testsuite/libatomic.c/atomic-op-5.c,
      	testsuite/libatomic.c/atomic-store-1.c,
      	testsuite/libatomic.c/atomic-store-2.c,
      	testsuite/libatomic.c/atomic-store-3.c,
      	testsuite/libatomic.c/atomic-store-4.c,
      	testsuite/libatomic.c/atomic-store-5.c: Declare main as returning
      	int.  Do not require built-in sync support or add target-specific
      	options.
      	* testsuite/libatomic.c/atomic-exchange-1.c,
      	testsuite/libatomic.c/atomic-exchange-2.c,
      	testsuite/libatomic.c/atomic-exchange-3.c,
      	testsuite/libatomic.c/atomic-exchange-4.c,
      	testsuite/libatomic.c/atomic-exchange-5.c: Separate increments of
      	count from expression using value of count.
      
      From-SVN: r204953
      a2ca7c8c
  36. Jan 14, 2013
  37. Dec 18, 2012
  38. May 03, 2012
Loading