[gmp] [powerpc] GMP build is broken because asm {...} syntax has been removed from latest toolchains

Segher Boessenkool segher at kernel.crashing.org
Sun Oct 21 16:23:20 CEST 2012


>> What version of GCC comes without this support?
>
>   At least, current 4.8.0 checkout.
>
> As far as I can tell, there is not yet any release "4.8.0".

That is correct; the current mainline development version will
become 4.8.0.

>   I don't know all details, but these sed commands I mentioned gave  
> me a
>   perfect GMP build, with all make check tests passed 100%.
>   Without them, fail is unavoidable.
>
> Sure, if they de-support the currently used asm syntax, then GMP  
> and GCC
> will be incompatible on PowerPC.  I am sure many programs out there  
> will
> be incompatible with GCC 4.8 if this GCC change prevails.

Support for old POWER was obsoleted in GCC-4.5: http://gcc.gnu.org/ 
gcc-4.5/changes.html

> One might argue that the current GCC inline asm feature is  
> unfortunate,
> as it exposes GCC internals.  That in turn forces a certain level of
> conservatism on GCC development.

Yes.  Ideally, programs shouldn't use asm features (register  
constraints,
output modifiers) that aren't documented.  And we (GCC) shouldn't  
document
those that we consider internal use only in user documentation.

Is the GMP version of longlong.h synched with the GCC version?


Segher



More information about the gmp-bugs mailing list