GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

Torbjorn Granlund tg at
Wed Jun 20 11:37:03 CEST 2012

Vincent Lefevre <vincent at> writes:

  On 2012-06-19 23:36:49 +0200, Torbjorn Granlund wrote:
  > What does the dear POSIX documents tell about translating assembly code
  > to object code?  Oh, they don't define that?  Oppsie, we must remove all
  > assembly code from GMP right away...!
  Not to remove it, but to make it *optional*, i.e. to have a fallback
  in C.
But wait, I think it is highly risky to even try using a command that is
for compiling C for anything else.  Didn't you say the POSIX standard
behaviour is undefined when feeding assembly files to such a command?
Then, it could delete random files, send embarassing mail, or even cause
demons to fly out if your nose?


More information about the gmp-discuss mailing list