[darcs-devel] patch: Pass CFLAGS to assembler

Lennart Kolmodin kolmodin at dtek.chalmers.se
Wed Aug 15 17:00:53 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eric Y. Kow wrote:
> On Wed, Aug 15, 2007 at 11:28:55 +0100, Dave Love wrote:
>>> Thanks! This will be going in on the next round.
>> I doubt it should.  I don't understand why it should be necessary on
>> GNU/Linux (I'm pretty sure it wasn't when I was running Debian on
>> SPARC), and it isn't necessary on Solaris.  Could you explain?  Worse
>> than that, CFLAGS are not necessarily appropriate for the assembler:
>> for instance, my Solaris installation uses Sun `as' with gcc, and that
>> won't accept `-mcpu'.  Actually, now I think about it, gas won't
>> either, and it wouldn't make sense -- the compiler back end deals with
>> instruction sets and scheduling.
> 
> Ok. The patch has not gone in yet so I'll wait and see what comes out of
> this discussion.
> 

I don't have any such exotic machines myself to test this on, but this
is what I've been told, and it makes sense to me:

[on a sparc system]
"If you ask the compiler to use the V9 ABI, then you'd better also ask
the assembler to use the V9 ABI. Otherwise the assembler will reject the
.S files that use V9 instructions."

Looking at `man as' it seems GNU as does accept the -mcpu flag.

Cheers,
  Lennart -- with advice from local guru Duncan C.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGwzFF4txYG4KUCuERAgmPAJ4tayK0fyX2o1wrxqTxpsmoA2b60QCgos2V
FmIZvsehLO2ggRFZNMbtlf8=
=CjtO
-----END PGP SIGNATURE-----


More information about the darcs-devel mailing list