This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: revised patch was Re: [PATCH] configure mips*-linux and soft-float...

Daniel Jacobowitz wrote:

On Fri, Nov 07, 2003 at 02:23:04PM -0800, David Daney wrote:

Daniel Jacobowitz wrote:

On Fri, Nov 07, 2003 at 02:08:55PM -0800, David Daney wrote:

Eric Christopher wrote:

I forget to say that without this patch --with-float= seems to have no effect on the built compiler.

Well, that's the problem then.

It should already work. Particularly, from mips.h:

{"arch", "%{!march=*:%{mips16:-march=%(VALUE)}%{!mips*:-march=%(VALUE)}}" }, \
{"tune", "%{!mtune=*:-mtune=%(VALUE)}" }, \
{"abi", "%{!mabi=*:-mabi=%(VALUE)}" }, \
{"float", "%{!msoft-float:%{!mhard-float:-m%(VALUE)-float}}" }

And from config.gcc:
             supported_defaults="abi arch float tune"

Does the generated configargs.h have an entry for float?  If so, what's
wrong with the specs that causes it not to work?

[daney@dl gcc]$ cat configargs.h
/* Generated automatically. */
static const char configuration_arguments[] = "../gcccvsw/gcc/configure --host=i686-pc-linux-gnu --target=mipsisa32el-linux --enable-languages=c,c++,java --with-headers=/home/mipsel-linux/mipsel-linux/include --prefix=/home/testcvs/ --with-float=soft";
static const char thread_model[] = "posix";

static const struct {
const char *name, *value;
} configure_default_options[] = { { "float", "soft" } };

However gcc was still generating floating point instructions.


Try running gcc -v. Does the driver pass -msoft-float?

I swear that it was not working this morning.

I have a screwed up configuration where I link mipsisa32el-linux-gcc to mipsel-linux-gcc, and the link was not getting updated properly. I guess that I was using an old gcc driver with the newer cc1 and that was screwing me up.

I will submit a new version of the patch to just remove MASK_SOFT_FLOAT from mipsisa32*-linux

David Daney.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]