To reproduce, run "gcc -O -fPIC -c bug.c" (I will attach a small self-contained
Expected: it compiles (or produces an error message if the source is not a valid
/tmp/ccMEmtFi.s: Assembler messages:
/tmp/ccMEmtFi.s:14: Error: suffix or operands invalid for `movabs'
This bug comes up when trying to compile OCaml (current CVS head) on x86_64
under a recent Rawhide tree.
Note that both -O and -fPIC options are necessary to reproduce (without one or
both of them, the file compiles fine).
% gcc -v
Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.3 20030623 (Red Hat Linux 3.3-12)
Created attachment 92731 [details]
A small exaple that triggers the bug.
I also reported this upstream - see
I see that a fix was just committed to the gcc CVS. Can I expect this to appear
in the Rawhide tree some time soon, or am I better off just compiling it myself?