aboutsummaryrefslogtreecommitdiff
path: root/lib/target.exp
AgeCommit message (Collapse)AuthorFilesLines
2020-07-13target: Wrap linker flags into `-largs'/`-margs' for AdaMaciej W. Rozycki1-14/+36
Unrecognized `gnatmake' switches are not implicitly passed on to the linker, so just pasting board `ldflags' and any other linker flags verbatim into `add_flags' to use for the invocation line of `gnatmake' will make them ignored at best. For example in a GCC test environment that has: set_board_info ldflags "-Wl,-dynamic-linker,.../sysroot/lib/ld-linux-riscv64-lp64d.so.1 -Wl,-rpath,.../sysroot/lib64/lp64d -Wl,-rpath,.../sysroot/usr/lib64/lp64d" so that sysroot paths are correctly embedded with the binaries linked for use with the dynamic loader and shared library dependencies, the setting will be ignored for the GNAT test suite making all the execution tests fail, e.g.: PASS: gnat.dg/abstract_with_anonymous_result.adb (test for excess errors) spawn qemu-riscv64 ./abstract_with_anonymous_result.exe /lib/ld-linux-riscv64-lp64d.so.1: No such file or directory FAIL: gnat.dg/abstract_with_anonymous_result.adb execution test For `gnatmake' to pass switches on to the linker the `-largs' switch has to be used, which affects all the switches that follow until a switch is seen that changes the selection, like `-margs', which resets to the initial state of the switch interpretation machine. Wrap linker flags into `-largs'/`-margs' for Ada then, carefully preserving the place these flags are placed at within `add_flags', as surely someone will have depended on that, correcting test failures like above: PASS: gnat.dg/abstract_with_anonymous_result.adb (test for excess errors) spawn qemu-riscv64 ./abstract_with_anonymous_result.exe PASS: gnat.dg/abstract_with_anonymous_result.adb execution test Pass multilib flags both to the compiler and to the linker as both build stages interpret them. Update the testsuite accordingly. * lib/target.exp (default_target_compile): Wrap linker flags into `-largs'/`-margs' for Ada. * testsuite/runtest.libs/target.test (compile_test): Update accordingly. Signed-off-by: Maciej W. Rozycki <macro@wdc.com>
2020-06-22Add "linker=" option to target_compile to support testingJacob Bachmeyer1-4/+8
2020-06-22Fix up upstreamed GDB testsuite patchesJacob Bachmeyer1-2/+11
2020-06-20Add Go support to default_target_compileTom Tromey1-0/+31
This adds Go support to default_target_compile. This comes from this gdb patch: commit a766d390bb857383a5f9ae80a102e1f8705f4c2e Author: Doug Evans <dje@google.com> Date: Wed Apr 25 14:07:23 2012 +0000 Initial pass at Go language support.
2020-06-20Add Rust support to default_target_compileTom Tromey1-1/+24
This adds support for the Rust language to default_target_compile. This comes from a gdb patch: commit 67218854b1987d89593ccaf5feaf5b29b1b976f2 Author: Tom Tromey <tom@tromey.com> Date: Tue Apr 26 19:38:43 2016 -0600 Update gdb test suite for Rust [...] 2016-05-17 Tom Tromey <tom@tromey.com> Manish Goregaokar <manishsmail@gmail.com>
2020-06-20Add early_flags to default_target_compileTom Tromey1-4/+29
This adds early_flags support to default_target_compile. This originated in this gdb patch: commit 6ebea266fd0a7a56c90db3ab6237ff9f6c919747 Author: Doug Evans <dje@google.com> Date: Fri Jul 24 15:24:37 2015 -0700 Workaround debian change to default value of --as-needed. gdb/testsuite/ChangeLog: * lib/future.exp (gdb_default_target_compile): New option "early_flags". * lib/gdb.exp (gdb_compile): Undo debian's change in default of --as-needed. This patch also pulls in the "linker_opts_order" code, though nothing uses it yet. A use will come in a subsequent patch.
2020-05-25Use board_info correctly.Jacob Bachmeyer1-10/+10
2020-05-25Use host_info procedure to probe for a host configuration, instead of ↵Jacob Bachmeyer1-1/+1
checking a local empty target_info array due to lacking global target_info.
2020-05-25 Establish a default C compiler by evaluating [find_gcc] if no other ↵Jacob Bachmeyer1-1/+5
compiler is given.
2020-05-15Update Copyright datesRob Savoye1-1/+1
2018-12-09Reindent lib/target.exp.Ben Elliston1-61/+61
2018-12-09 * baseboards/basic-sid.exp, baseboards/basic-sim.exp,Ben Elliston1-7/+7
baseboards/i386-sid.exp, baseboards/mt-sid.exp, baseboards/sh-sid.exp, config/adb.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/sim.exp, config/unix.exp, config/vxworks.exp, lib/dejagnu.exp, lib/dg.exp, lib/framework.exp, lib/kermit.exp, lib/libgloss.exp, lib/remote.exp, lib/rsh.exp, lib/target.exp, lib/tip.exp, lib/utils.exp, testsuite/lib/libsup.exp, testsuite/runtest.all/options.exp,: Remove unnecessary braces around variable expansions.
2018-12-09 * lib/debugger.exp, lib/dg.exp, lib/framework.exp, lib/ftp.exp,Ben Elliston1-6/+6
lib/kermit.exp, lib/libgloss.exp, lib/remote.exp, lib/rlogin.exp, lib/target.exp, lib/tip.exp, lib/utils.exp, runtest.exp: Remove unnecessary quotes and braces around variable expansions.
2018-12-08 * runtest.exp, lib/utils.exp, lib/targetdb.exp, lib/target.exp,Ben Elliston1-20/+20
lib/remote.exp, lib/framework.exp, lib/dg.exp, config/vxworks.exp, config/sim.exp, config/gdb_stub.exp, config/aarch64-fv8.exp, baseboards/vr4300-sim.exp, baseboards/vr4111-sim.exp, baseboards/vr4100-sim.exp, baseboards/sh-sid.exp, baseboards/mt-sid.exp, baseboards/mips-sim.exp, baseboards/mips-sim-idt64.exp, baseboards/mips-sim-idt32.exp, baseboards/i386-sid.exp, baseboards/arm-sim.exp, baseboards/arm-ice.exp, baseboards/androideabi.exp, testsuite/runtest.all/utils.test, testsuite/runtest.all/target.test: Replace string literal comparisons using == and != with 'eq' and 'ne'.
2018-12-08 * runtest.exp, lib/utils.exp, lib/target.exp, lib/ssh.exp,Ben Elliston1-11/+11
lib/rsh.exp, lib/rlogin.exp, lib/remote.exp, lib/libgloss.exp, lib/framework.exp, lib/dg.exp, lib/dejagnu.exp, config/vxworks.exp, config/unix.exp, config/sim.exp, config/gdb_stub.exp, config/gdb-comm.exp, config/adb.exp, baseboards/multi-sim.exp, baseboards/cris-sim.exp, baseboards/basic-sim.exp, baseboards/basic-sid.exp, baseboards/androideabi.exp, testsuite/runtest.all/load_lib.exp, testsuite/libdejagnu/tunit.exp: Replace empty string comparisons using == and != with 'eq' and 'ne'.
2018-12-06 * runtest.exp: Replace '==' with 'eq' for string compares.Ben Elliston1-2/+2
Likewise, replace '!=' with 'ne'. Replace a few instances of [string length $str] == 0 with $str eq "". * config/gdb-comm.exp: Likewise. * lib/dg.exp: Likewise. * lib/framework.exp: Likewise. * lib/libgloss.exp: Likewise. * lib/remote.exp: Likewise. * lib/target.exp: Likewise. * lib/utils.exp: Likewise.
2018-11-30 * runtest.exp: Use isremote.Ben Elliston1-9/+9
* lib/target.exp: Likewise. * lib/remote.exp: Likewise. * lib/libgloss.exp: Likewise. * config/unix.exp: Likewise. * config/sim.exp: Likewise. * config/gdb_stub.exp: Likewise. * config/gdb-comm.exp: Likewise. * baseboards/basic-sim.exp: Likewise. * baseboards/androideabi.exp: Likewise.
2017-06-04 * lib/target.exp (push_target): Remove unnecessary global command.Ben Elliston1-3/+1
* testsuite/runtest.all/target.test: Overhaul tests.
2016-06-22 * configure.ac, dejagnu.h, runtest, runtest.exp,Bernhard Reutner-Fischer1-1/+1
baseboards/am33_2.0-libremote.exp, baseboards/androideabi.exp, baseboards/arm-ice.exp, baseboards/arm-sid.exp, baseboards/arm-sim.exp, baseboards/basic-sid.exp, baseboards/basic-sim.exp, baseboards/cris-sim.exp, baseboards/d30v-sim.exp, baseboards/fr30-sim.exp, baseboards/frv-sim.exp, baseboards/gdbserver-sample.exp, baseboards/i386-sid.exp, baseboards/iq2000-sim.exp, baseboards/jmr3904-sim.exp, baseboards/linux-gdbserver.exp, baseboards/linux-libremote.exp, baseboards/m68k-sid.exp, baseboards/mcore-moto-sim.exp, baseboards/mcore-sim.exp, baseboards/mips-lnews-sim.exp, baseboards/mips-lsi-sim.exp, baseboards/mips-sim-idt32.exp, baseboards/mips-sim-idt64.exp, baseboards/mips-sim-mti32.exp, baseboards/mips-sim-mti64.exp, baseboards/mips-sim-mti64_64.exp, baseboards/mips-sim-mti64_n32.exp, baseboards/mips-sim-sde32.exp, baseboards/mips-sim-sde64.exp, baseboards/mips-sim.exp, baseboards/mmixware-sim.exp, baseboards/mn10200-sim.exp, baseboards/mn10300-sim.exp, baseboards/moxie-sim.exp, baseboards/mt-sid.exp, baseboards/multi-sim.exp, baseboards/powerpc-sim.exp, baseboards/powerpcle-sim.exp, baseboards/rx-sim.exp, baseboards/sh-sid.exp, baseboards/sh-sim.exp, baseboards/sparc-sim.exp, baseboards/sparc64-sim.exp, baseboards/sparclite-sim-le.exp, baseboards/sparclite-sim.exp, baseboards/tx39-sim.exp, baseboards/unix.exp, baseboards/v850-sim.exp, baseboards/visium-sim.exp, baseboards/vr4100-sim.exp, baseboards/vr4111-sim.exp, baseboards/vr4300-sim.exp, baseboards/xtensa-sim.exp, lib/debugger.exp, lib/dejagnu.exp, lib/dg.exp, lib/ftp.exp, lib/kermit.exp, lib/remote.exp, lib/rlogin.exp, lib/rsh.exp, lib/standard.exp, lib/target.exp, lib/targetdb.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp, testsuite/config/default.exp, testsuite/lib/libsup.exp, testsuite/lib/util-defs.exp, testsuite/libdejagnu/tunit.exp, testsuite/libdejagnu/unit.cc, testsuite/runtest.all/libs.exp, testsuite/runtest.all/stats-sub.exp, testsuite/runtest.all/stats.exp, config/adb.exp, config/default.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/sid.exp, config/sim.exp, config/unix.exp, config/vxworks.exp: Update copyright date for 2016. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-06-22 * baseboards/aarch64-sim.exp, baseboards/am33_2.0-libremote.exp,Bernhard Reutner-Fischer1-2/+1
baseboards/arm-ice.exp, baseboards/arm-sid.exp, baseboards/arm-sim.exp, baseboards/basic-sid.exp, baseboards/basic-sim.exp, baseboards/cris-sim.exp, baseboards/d30v-sim.exp, baseboards/fr30-sim.exp, baseboards/frv-sim.exp, baseboards/gdbserver-sample.exp, baseboards/generic-sim.exp, baseboards/i386-sid.exp, baseboards/iq2000-sim.exp, baseboards/jmr3904-sim.exp, baseboards/linux-gdbserver.exp, baseboards/linux-libremote.exp, baseboards/m68k-sid.exp, baseboards/mcore-moto-sim.exp, baseboards/mcore-sim.exp, baseboards/mips-lnews-sim.exp, baseboards/mips-lsi-sim.exp, baseboards/mips-sim-idt32.exp, baseboards/mips-sim-idt64.exp, baseboards/mips-sim.exp, baseboards/mmixware-sim.exp, baseboards/mn10200-sim.exp, baseboards/mn10300-sim.exp, baseboards/mt-sid.exp, baseboards/powerpc-sim.exp, baseboards/powerpcle-sim.exp, baseboards/rx-sim.exp, baseboards/sh-sid.exp, baseboards/sh-sim.exp, baseboards/sparc-sim.exp, baseboards/sparc64-sim.exp, baseboards/sparclite-sim-le.exp, baseboards/sparclite-sim.exp, baseboards/tx39-sim.exp, baseboards/unix.exp, baseboards/v850-sim.exp, baseboards/vr4100-sim.exp, baseboards/vr4111-sim.exp, baseboards/vr4300-sim.exp, baseboards/xtensa-sim.exp, lib/debugger.exp, lib/dejagnu.exp, lib/dg.exp, lib/framework.exp, lib/ftp.exp, lib/kermit.exp, lib/libgloss.exp, lib/remote.exp, lib/rlogin.exp, lib/rsh.exp, lib/standard.exp, lib/target.exp, lib/targetdb.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp, testsuite/config/default.exp, testsuite/lib/libsup.exp, testsuite/lib/util-defs.exp, testsuite/libdejagnu/tunit.exp, testsuite/libdejagnu/unit.cc, testsuite/runtest.all/libs.exp, testsuite/runtest.all/options.exp, testsuite/runtest.all/stats-sub.exp, testsuite/runtest.all/stats.exp, config/default.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/sid.exp, config/sim.exp, config/unix.exp, config/vxworks.exp, configure.ac, dejagnu.h, runtest, runtest.exp: Use condensed years in copyright statement. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-30 * baseboards/mcore-moto-sim.exp, lib/dejagnu.exp, lib/dg.exp,Ben Elliston1-2/+2
lib/dmucs.exp, lib/framework.exp, lib/remote.exp, lib/target.exp, runtest.exp: Fix spelling errors in comments.
2016-03-28 * runtest.exp: Fixes identified by the Frink static analyser:Ben Elliston1-1/+1
(1) use -- in switch commands for safety, (2) remove unreachable return commands after error commands, (3) replace abbreviated "info proc" with "info procs", (4) use -- in unset commands for safety where the variable name is itself a variable. * lib/dg.exp: Likewise. * lib/debugger.exp: Likewise. * lib/framework.exp: Likewise. * lib/remote.exp: Likewise. * lib/target.exp: Likewise. * lib/targetdb.exp: Likewise. * lib/telnet.exp: Likewise. * lib/utils.exp: Likewise.
2016-03-22 * lib/target.exp (only--Ls): Change '???' comment to a note. ThisBen Elliston1-2/+2
isn't a serious shortcoming, but the comment should be retained.
2016-02-23 * lib/libgloss.exp (find_gdc): New proc.Iain Buclaw1-0/+19
* lib/target.exp (default_target_compile): Add D support. * NEWS: Update. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-02-17 * lib/target.exp (default_target_compile): Do not pass -log toBen Elliston1-3/+3
verbose when outputting the captured compiler/assembler/linker diagnostic output as it will already be in the .log file courtesy of Expect.
2015-11-11 * lib/target.exp (default_target_compile): Honor LDFLAGS_FOR_TARGET.Michael Forney1-0/+5
Signed-off-by: Ben Elliston <bje@gnu.org>
2015-02-26 * lib/target.exp (default_target_compile): Prepend multilib_flags,H.J. Lu1-1/+1
instead of appending it. Some GCC testcases need explicit GCC options to properly run. For example gcc.target/i386/pr32219-1.c has -fpie specified explicitly: /* { dg-options "-O2 -fpie" } */ But with multlib, eg: make check-gcc RUNTESTFLAGS="--target_board='unix{-fpic}'" -fpic is appended to the command line options, which overrides the command line options specified by dg-options. multlib flags should be placed at the beginning of the command line options, not at the end. This patch updates default_target_compile to prepend multilib_flags, instead of appending it. Signed-off-by: Ben Elliston <bje@gnu.org>
2013-04-08Add link to the Wikipedia page on Brendan Kehoe.Ben Elliston1-0/+2
2011-06-302011-06-30 Tom Tromey <tromey@redhat.com>Ben Elliston1-1/+20
* doc/ref.xml: Document find_gfortran. * doc/dejagnu.texi: Regenerate. * lib/target.exp (default_target_compile): Handle f90. (default_target_compile): Likewise. * lib/libgloss.exp (find_gfortran): New proc.
2011-03-15 * runtest.exp: Whitespace cleanups.Ben Elliston1-16/+16
* lib/dejagnu.exp, lib/dg.exp, lib/framework.exp, lib/libgloss.exp, lib/remote.exp, lib/rsh.exp, lib/target.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp: Likewise.
2011-03-14 * baseboards/cris-sim.exp: Remove trailing semicolon(s).Ben Elliston1-2/+2
* baseboards/mt-sid.exp: Likewise. * baseboards/tx39-sim.exp: Likewise. * lib/target.exp (default_target_compile): Likewise.
2011-03-03Upgrade to GPL version 3.Ben Elliston1-1/+1
2010-01-01update copyright date for 2010.Rob Savoye1-2/+2
2007-12-27 * lib/target.exp (default_link): Initialize nobjects before use.origin/originoriginBen Elliston1-0/+1
2006-05-22 * runtest.exp, baseboards/basic-sim.exp, baseboards/cf.exp,Ben Elliston1-67/+67
baseboards/cris-sim.exp, baseboards/i960-cyclone.exp, baseboards/mcore-moto-sim.exp, baseboards/mips64vr4100-sim.exp, baseboards/mmixware-sim.exp, baseboards/op50n.exp, baseboards/rom68k-idp.exp, baseboards/sparclite-sim-le.exp, baseboards/usparc-cygmon.exp, config/base-config.exp, config/base68k.exp, config/ddb-ether.exp, config/ddb.exp, config/dos.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/i386-bozo.exp, config/i960.exp, config/m68k-emc.exp, config/netware.exp, config/sid.exp, config/sim.exp, config/tic80.exp, config/unix.exp, config/vxworks.exp, lib/debugger.exp, lib/dejagnu.exp, lib/dg.exp, lib/framework.exp, lib/ftp.exp, lib/kermit.exp, lib/libgloss.exp, lib/remote.exp, lib/rlogin.exp, lib/rsh.exp, lib/target.exp, lib/targetdb.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp: Put braces around if expressions throughout.
2006-04-13 * lib/debugger.exp, lib/dejagnu.exp, lib/dg.exp,Ben Elliston1-27/+8
lib/framework.exp, lib/libgloss.exp, lib/remote.exp, lib/rlogin.exp, lib/target.exp, lib/telnet.exp: Formatting.
2005-12-23 * lib/remote.exp: Tidy.Ben Elliston1-1/+4
* lib/targetdb.exp: Likewise. * lib/target.exp (prune_warnings): Improve comments. * lib/dejagnu.exp: Likewise. * lib/utils.exp: Likewise.
2005-06-24 * Update the FSF's physical address throughout.Ben Elliston1-1/+1
2005-04-282005-04-28 Mark Kettenis <kettenis@gnu.org>Rob Savoye1-1/+2
* lib/target.exp (prune_warnings): Add a few more linker warning patterns for OpenBSD.
2005-03-29Minor addition to OpenBSD prune warning.Rob Savoye1-1/+1
2005-03-23Adjust OpenBSD warning in prune_warnings.Rob Savoye1-1/+1
2005-03-20from Mark Kettenis <kettenis@gnu.org>Rob Savoye1-2/+4
* lib/target.exp (prune_warnings): Add linker warning patterns for OpenBSD.
2004-04-212004-03-29 Joel Brobecker <brobecker@gnat.com>Rob Savoye1-0/+21
* lib/libgloss.exp (find_gnatmake): New procedure. * lib/target.exp (default_target_compile): Add support for Ada.
2004-02-05 * lib/target.exp (prune_warnings): Add spaces where required inBen Elliston1-2/+2
NetBSD warnings. Supersedes a patch in pkgsrc's devel/dejagnu.
2004-01-30 * Import orphaned patches from sources.redhat.com:Ben Elliston1-4/+11
2002-05-02 Fernando Nasser <fnasser@redhat.com> * doc/dejagnu.texi: Document KFAIL and KPASS. 2002-02-20 Richard Henderson <rth@redhat.com> * lib/target.exp (prune_warnings): Revert early "In function" strip, as this breaks g++.dg tests. Match dangerous regexp without the "In function" header. 2002-02-09 Richard Henderson <rth@redhat.com> * lib/target.exp (prune_warnings): Strip "In function" etc early. Adjust "dangerous" regexp for glibc's tmpnam warning. 2001-09-10 Jim Blandy <jimb@redhat.com> * baseboards/rom68k-idp.exp: Use -Tidpgdb.ld as the linker script, so we get the version of the `outbyte' function that does console output in a way that GDB's rom68k target recognizes. Note that the board can now do output. 2000-04-25 Felix Lee <flee@cygnus.com> * baseboards/tx39-sim.exp: Use idt, not dve linker script. Delete misleading comments and null statements.
2003-08-23Use a consistent GNU copyright header throughout.Ben Elliston1-13/+13
2003-08-16Whitespace fixes.Ben Elliston1-15/+15
2003-08-07Strip trailing semicolons from Tcl source files.Ben Elliston1-64/+64
2003-07-282003-07-25 Jim Dein <jdein@deinji5.apple.com>Rob Savoye1-1/+3
* lib/utils.exp: fix double recursion bug in proc find. 2002-02-25 Jackie Smith Cashion <jsmith@redhat.com> * baseboards/am33_2.0-libremote.exp: New file. 2000-11-21 Drew Moseley <dmoseley@redhat.com> * baseboards/mn10300-cygmon.exp: Use the am33-2 flag for the ASB2303 board. 2000-08-10 Drew Moseley <dmoseley@cygnus.com> * baseboards/mn10300-cygmon.exp: Added support for Cygmon based ASB2303 board. 2003-06-13 Phil Edwards <pme@devphil.com> * baseboards/mips64-sim.exp, baseboards/mips-sim.exp, baseboards/mips-sim-idt32.exp, baseboards/mips-sim-idt64.exp: Use only -T[linker] instead of -Wl,-T[linker]. 2003-06-13 Jason Thorpe <thorpej@wasabisystems.com> * lib/target.exp (prune_warnings): Add two more linker warning patterns for warnings generated by modern verions of NetBSD. 2003-05-12 H.J. Lu <hongjiu.lu@intel.com> * lib/libgloss.exp (build_wrapper): Add -Wl,-wrap,_exit. 2003-05-09 H.J. Lu <hongjiu.lu@intel.com> * runtest: Fix a typo. 2003-05-03 Nitin Dhavale <nitinpdhavale@indiatimes.com> * doc/user.sgml: Clarify how to set the verbose option. 2003-03-28 Chris Demetriou <cgd@broadcom.com> * lib/framework.exp (check_conditional_xfail): Adjust so that an empty 'includes' list matches all sets of flags. * doc/dejagnu.texi: Document the above. * doc/ref.sgml: Likewise. 2003-03-27 David Heine <dlheine@tensilica.com> * baseboards/xtensa-sim.exp: Fix a syntax error. 2003-03-16 Rob Savoye <rob@direwolf.welcomehome.org> * lib/unix.exp: Preserve the value of LD_LIBRARY_PATH, rather than stomp on it. This is based on a patch from Brendan Conoboy <blc@redhat.com>. * Most files: Update copyright dates.
2003-07-27 * lib/target.exp (prune_warnings): Handle "nfs server .* notBen Elliston1-2/+2
responding" and "nfs server .* is alive again".