Browse Source

* lib/target.exp (default_target_compile): Prepend multilib_flags,

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>
dejagnu-1.5.3
H.J. Lu 12 years ago
committed by Ben Elliston
parent
commit
5256bd8234
  1. 5
      ChangeLog
  2. 2
      lib/target.exp

5
ChangeLog

@ -1,3 +1,8 @@
2015-02-26 H.J. Lu <hjl.tools@gmail.com>
* lib/target.exp (default_target_compile): Prepend multilib_flags,
instead of appending it.
2015-02-18 Ben Elliston <bje@gnu.org>
* lib/framework.exp (log_and_exit): Set tool to "testrun" if

2
lib/target.exp

@ -577,7 +577,7 @@ proc default_target_compile {source destfile type options} {
}
if {[board_info $dest exists multilib_flags]} {
append add_flags " [board_info $dest multilib_flags]"
set add_flags "[board_info $dest multilib_flags] $add_flags"
}
verbose "doing compile"

Loading…
Cancel
Save