public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/50980] New: arm-rtems multilib not matching for -mfpu=vfp -mfloat-abi=soft
@ 2011-11-03 14:20 joel at gcc dot gnu.org
  2011-11-04 13:27 ` [Bug target/50980] " joel at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: joel at gcc dot gnu.org @ 2011-11-03 14:20 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: joel@gcc.gnu.org


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
===============================


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug target/50980] arm-rtems multilib not matching for -mfpu=vfp -mfloat-abi=soft
  2011-11-03 14:20 [Bug target/50980] New: arm-rtems multilib not matching for -mfpu=vfp -mfloat-abi=soft joel at gcc dot gnu.org
@ 2011-11-04 13:27 ` joel at gcc dot gnu.org
  2011-11-04 15:22 ` joel at gcc dot gnu.org
  2011-11-04 15:24 ` joel at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: joel at gcc dot gnu.org @ 2011-11-04 13:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50980

--- Comment #1 from Joel Sherrill <joel at gcc dot gnu.org> 2011-11-04 13:27:12 UTC ---
Sebastian Huber posted http://gcc.gnu.org/ml/gcc-patches/2011-11/msg00500.html
and I have been using it successfully.  A variant of this has been used for
months with the shipping RTEMS 4.6 toolchains.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug target/50980] arm-rtems multilib not matching for -mfpu=vfp -mfloat-abi=soft
  2011-11-03 14:20 [Bug target/50980] New: arm-rtems multilib not matching for -mfpu=vfp -mfloat-abi=soft joel at gcc dot gnu.org
  2011-11-04 13:27 ` [Bug target/50980] " joel at gcc dot gnu.org
@ 2011-11-04 15:22 ` joel at gcc dot gnu.org
  2011-11-04 15:24 ` joel at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: joel at gcc dot gnu.org @ 2011-11-04 15:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50980

--- Comment #2 from Joel Sherrill <joel at gcc dot gnu.org> 2011-11-04 15:22:11 UTC ---
Author: joel
Date: Fri Nov  4 15:22:06 2011
New Revision: 180959

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180959
Log:
2011-11-04    Thomas Doerfler <thomas.doerfler@embedded-brains.de>

    PR target/50980
    * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
    support for VFP floating point model.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/rtems-elf.h
    trunk/gcc/config/arm/t-rtems


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug target/50980] arm-rtems multilib not matching for -mfpu=vfp -mfloat-abi=soft
  2011-11-03 14:20 [Bug target/50980] New: arm-rtems multilib not matching for -mfpu=vfp -mfloat-abi=soft joel at gcc dot gnu.org
  2011-11-04 13:27 ` [Bug target/50980] " joel at gcc dot gnu.org
  2011-11-04 15:22 ` joel at gcc dot gnu.org
@ 2011-11-04 15:24 ` joel at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: joel at gcc dot gnu.org @ 2011-11-04 15:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50980

Joel Sherrill <joel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Joel Sherrill <joel at gcc dot gnu.org> 2011-11-04 15:22:42 UTC ---
Committed patch resolves this.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-04 15:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-03 14:20 [Bug target/50980] New: arm-rtems multilib not matching for -mfpu=vfp -mfloat-abi=soft joel at gcc dot gnu.org
2011-11-04 13:27 ` [Bug target/50980] " joel at gcc dot gnu.org
2011-11-04 15:22 ` joel at gcc dot gnu.org
2011-11-04 15:24 ` joel at gcc dot gnu.org

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).