http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50980
Bug #: 50980
Summary: arm-rtems multilib not matching for -mfpu=vfp
-mfloat-abi=soft
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: [email protected]
ReportedBy: [email protected]
This is a regression from 4.6 and older.
GCC Revision: Thu Nov 3 12:25:34 UTC 2011 (revision 180821)
The compiler builds and installs fine. But a multilib mismatch has crept in.
This worked in 4.6 and older. The test program is a minimal "main() {}"
arm-rtems4.11-gcc -mstructure-size-boundary=8 -mcpu=arm920 -mfpu=vfp \
-mfloat-abi=soft -O2 -g m.c
Now it gives this error:
/users/joel/test-gcc/install-svn/lib/gcc/arm-rtems4.11/4.7.0/../../../../arm-rtems4.11/bin/ld:
error: /tmp/ccNtArTU.o uses VFP instructions, whereas a.out does not
Adding -v it is easy to see that it is not using the "vfp"
multilib like it was in 4.6.2
4.6.2============================
/opt/rtems-4.11/libexec/gcc/arm-rtems4.11/4.6.2/collect2 -X
/opt/rtems-4.11/lib/gcc/arm-rtems4.11/4.6.2/../../../../arm-rtems4.11/lib/vfp/crt0.o
-L/opt/rtems-4.11/lib/gcc/arm-rtems4.11/4.6.2/vfp
-L/opt/rtems-4.11/lib/gcc/arm-rtems4.11/4.6.2/../../../../arm-rtems4.11/lib/vfp
-L/opt/rtems-4.11/lib/gcc/arm-rtems4.11/4.6.2
-L/opt/rtems-4.11/lib/gcc/arm-rtems4.11/4.6.2/../../../../arm-rtems4.11/lib
/tmp/ccMcThnp.o -lgcc -lg -lc -lgcc
===============================
4.7-pre===========================
/users/joel/test-gcc/install-svn/libexec/gcc/arm-rtems4.11/4.7.0/collect2 -X
/users/joel/test-gcc/install-svn/lib/gcc/arm-rtems4.11/4.7.0/../../../../arm-rtems4.11/lib/crt0.o
-L/users/joel/test-gcc/install-svn/lib/gcc/arm-rtems4.11/4.7.0
-L/users/joel/test-gcc/install-svn/lib/gcc/arm-rtems4.11/4.7.0/../../../../arm-rtems4.11/lib
/tmp/ccxFgIuB.o -lgcc -lg -lc -lgcc
===============================