public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/59971] New: multilib_flags is placed with the wrong order
@ 2014-01-28 21:11 hjl.tools at gmail dot com
2015-02-13 16:18 ` [Bug testsuite/59971] " hjl.tools at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2014-01-28 21:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59971
Bug ID: 59971
Summary: multilib_flags is placed with the wrong order
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: hjl.tools at gmail dot com
Some testcases need explicit GCC options to properly run, like
gcc.target/i386/sse2-init-v2di-2.c has
/* { dg-options "-O2 -msse4 -march=core2 -dp" } */
-march=core2 is specified explicitly. But with multlib, we get
[hjl@gnu-18 gcc]$ make check-gcc RUNTESTFLAGS="--target_board='unix{-march=k8}'
i386.exp=sse2-init-v2di-2.c"
make[1]: Entering directory `/export/build/gnu/gcc/build-x86_64-linux/gcc'
test -d plugin || mkdir plugin
test -d testsuite || mkdir testsuite
test -d testsuite/gcc || mkdir testsuite/gcc
(rootme=`${PWDCMD-pwd}`; export rootme; \
srcdir=`cd /export/gnu/import/git/gcc/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
cd testsuite/gcc; \
rm -f tmp-site.exp; \
sed '/set tmpdir/ s|testsuite$|testsuite/gcc|' \
< ../../site.exp > tmp-site.exp; \
/bin/sh ${srcdir}/../move-if-change tmp-site.exp site.exp; \
EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo
${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ; \
if [ -f ${rootme}/../expect/expect ] ; then \
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \
export TCL_LIBRARY ; fi ; \
runtestflags= ; \
if [ -n "" ] ; then \
runtestflags=""; \
elif [ -n "" ] ; then \
parts="`echo ' ' \
| sed 's/=[^ ]* / /g'`"; \
for part in `find $srcdir/testsuite/gcc* -name \*.exp` ; do \
part=`basename $part` ; \
case " $parts $runtestflags " in \
*" $part "*) ;; \
*) runtestflags="$runtestflags $part" ;; \
esac ; \
done ; \
fi ; \
`if [ -f ${srcdir}/../dejagnu/runtest ] ; then echo
${srcdir}/../dejagnu/runtest ; else echo runtest; fi` --tool gcc
--target_board='unix{-march=k8}' i386.exp=sse2-init-v2di-2.c $runtestflags)
WARNING: Couldn't find the global config file.
Test Run By hjl on Tue Jan 28 12:40:33 2014
Native configuration is x86_64-unknown-linux-gnu
=== gcc tests ===
Schedule of variations:
unix/-march=k8
Running target unix/-march=k8
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /export/gnu/import/git/gcc/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /export/gnu/import/git/gcc/gcc/testsuite/gcc.target/i386/i386.exp ...
FAIL: gcc.target/i386/sse2-init-v2di-2.c scan-assembler-times vec_concatv2di/3
1
=== gcc Summary ===
# of expected passes 11
# of unexpected failures 1
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc version 4.9.0 20140128
(experimental) (GCC)
make[1]: [check-parallel-gcc] Error 1 (ignored)
make[1]: Leaving directory `/export/build/gnu/gcc/build-x86_64-linux/gcc'
The problem is -march=k8 is placed after -march=core2:
[hjl@gnu-18 gcc]$ grep gcc.target/i386/sse2-init-v2di-2.c
testsuite/gcc/gcc.log
Executing on host: /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/
/export/gnu/import/git/gcc/gcc/testsuite/gcc.target/i386/sse2-init-v2di-2.c
-fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -msse4 -march=core2
-dp -ffat-lto-objects -S -march=k8 -o sse2-init-v2di-2.s (timeout = 300)
spawn -ignore SIGHUP /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/
/export/gnu/import/git/gcc/gcc/testsuite/gcc.target/i386/sse2-init-v2di-2.c
-fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -msse4 -march=core2
-dp -ffat-lto-objects -S -march=k8 -o sse2-init-v2di-2.s
PASS: gcc.target/i386/sse2-init-v2di-2.c (test for excess errors)
FAIL: gcc.target/i386/sse2-init-v2di-2.c scan-assembler-times vec_concatv2di/3
1
[hjl@gnu-18 gcc]$
It is done by target.exp in dejagnu:
if {[board_info $dest exists multilib_flags]} {
append add_flags " [board_info $dest multilib_flags]"
}
It doesn't work well with such gcc testcases. It works if we change it to
if {[board_info $dest exists multilib_flags]} {
set add_flags "[board_info $dest multilib_flags] $add_flags"
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/59971] multilib_flags is placed with the wrong order
2014-01-28 21:11 [Bug testsuite/59971] New: multilib_flags is placed with the wrong order hjl.tools at gmail dot com
@ 2015-02-13 16:18 ` hjl.tools at gmail dot com
2015-04-22 12:02 ` jakub at gcc dot gnu.org
2015-04-22 16:42 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2015-02-13 16:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59971
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-02-13
Target Milestone|--- |5.0
Ever confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
It leads to
FAIL: gcc.target/i386/pr32219-1.c scan-assembler movl[
\t]xxx@GOTOFF\\(%[^,]*\\), %eax
FAIL: gcc.target/i386/pr32219-1.c scan-assembler-not movl[
\t]xxx@GOT\\(%[^,]*\\), %eax
FAIL: gcc.target/i386/pr32219-3.c scan-assembler movl[
\t]xxx@GOTOFF\\(%[^,]*\\), %eax
FAIL: gcc.target/i386/pr32219-3.c scan-assembler-not movl[
\t]xxx@GOT\\(%[^,]*\\), %eax
FAIL: gcc.target/i386/pr32219-5.c scan-assembler movl[
\t]xxx@GOTOFF\\(%[^,]*\\), %eax
FAIL: gcc.target/i386/pr32219-5.c scan-assembler-not movl[
\t]xxx@GOT\\(%[^,]*\\), %eax
FAIL: gcc.target/i386/pr32219-7.c scan-assembler movl[
\t]xxx@GOTOFF\\(%[^,]*\\), %eax
FAIL: gcc.target/i386/pr32219-7.c scan-assembler-not movl[
\t]xxx@GOT\\(%[^,]*\\), %eax
FAIL: gcc.target/i386/pr64317.c scan-assembler movl[ \\t]+c@GOTOFF[(]%ebx[)]
in
https://gcc.gnu.org/ml/gcc-regression/2015-02/msg00244.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/59971] multilib_flags is placed with the wrong order
2014-01-28 21:11 [Bug testsuite/59971] New: multilib_flags is placed with the wrong order hjl.tools at gmail dot com
2015-02-13 16:18 ` [Bug testsuite/59971] " hjl.tools at gmail dot com
@ 2015-04-22 12:02 ` jakub at gcc dot gnu.org
2015-04-22 16:42 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-22 12:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59971
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|5.0 |5.2
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 5.1 has been released.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/59971] multilib_flags is placed with the wrong order
2014-01-28 21:11 [Bug testsuite/59971] New: multilib_flags is placed with the wrong order hjl.tools at gmail dot com
2015-02-13 16:18 ` [Bug testsuite/59971] " hjl.tools at gmail dot com
2015-04-22 12:02 ` jakub at gcc dot gnu.org
@ 2015-04-22 16:42 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2015-04-22 16:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59971
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed by dejagnu 1.5.3 instead.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-22 16:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-28 21:11 [Bug testsuite/59971] New: multilib_flags is placed with the wrong order hjl.tools at gmail dot com
2015-02-13 16:18 ` [Bug testsuite/59971] " hjl.tools at gmail dot com
2015-04-22 12:02 ` jakub at gcc dot gnu.org
2015-04-22 16:42 ` hjl.tools at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).