Reproducible: 100% To reproduce, run "gcc -O -fPIC -c bug.c" (I will attach a small self-contained bug.c shortly). Expected: it compiles (or produces an error message if the source is not a valid C program). Actual: /tmp/ccMEmtFi.s: Assembler messages: /tmp/ccMEmtFi.s:14: Error: suffix or operands invalid for `movabs' Exit 1 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 --host=x86_64-redhat-linux 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 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11420
http://gcc.gnu.org/ml/gcc-patches/2003-07/msg00690.html
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?