attribute mode is unknown (Sun cc)
Torbjorn Granlund
tg at gmplib.org
Mon Nov 8 09:49:50 CET 2010
Jay K <jay.krell at cornell.edu> writes:
> "gmp-impl.h", line 2812: warning: attribute "mode" is unknown, ignored
> "gmp-impl.h", line 2812: warning: attribute parameter "QI" is undefined
>
> OK, so have Oracle added some incompatible variant of GMP's attribute
> extension? Or is this some non-standard compiler from Oracle?
No. It has __attribute__, has no __attribute__ (mode), and using it merely warns.
Ah, that's the problem. A compiler that rejects some syntax should not
warn, a syntax error is, er, an error.
Agreed but I'm not skilled in autoconf/bash. (yeah yeah, it doesn't look that hard,
but I'm also not a fan of autoconf, so often fails at its task, like here..)
Well, if compiler hackers invent new ways of being obscure, then they
are not making the task easy for autoconf.
The #else branch is also good fine portable to all compilers??
Or less efficient?
Not really safe.
(I wonder about using that "dumpmp.c" file, but I think it isn't currently adequate.)
That file is not intended for users, we don't have *that* bad attitude. :-)
--
Torbjörn
More information about the gmp-bugs
mailing list