public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13781] New: [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2
@ 2004-01-20 23:02 badcataz at yahoo dot com
  2004-01-20 23:07 ` [Bug c++/13781] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: badcataz at yahoo dot com @ 2004-01-20 23:02 UTC (permalink / raw)
  To: gcc-bugs

I tried to compile kopete 0.8beta2 on an x86-64 CPU running SuSE Professional
9.0, and it failed with the following error:

make[4]: Entering directory `/home/cruoho/src/kopete-0.8beta2/kopete/libkopete'
source='kopetepluginmanager.cpp' object='kopetepluginmanager.lo' libtool=yes \
depfile='.deps/kopetepluginmanager.Plo'
tmpdepfile='.deps/kopetepluginmanager.TPlo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I.
-I. -I../..  -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII
-DQT_NO_ASCII_CAST -I../../kopete/libkopete -I../../kopete/libkopete/ui
-I../../kopete/libkopete/ui -I../../kopete/libkopete/compat
-I../../kopete/libkopete/compat/kcdialog -I../../kopete/libkopete/private
-I../../kopete/libkopete/ui -I/opt/kde3/include -I/usr/lib/qt3/include
-I/usr/X11R6/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts
-O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new
-fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION  -c -o kopetepluginmanager.lo `test -f
'kopetepluginmanager.cpp' || echo './'`kopetepluginmanager.cpp
/tmp/cc6r4y77.s: Assembler messages:
/tmp/cc6r4y77.s:2848: Error: suffix or operands invalid for `mov'
make[4]: *** [kopetepluginmanager.lo] Error 1

/tmp/cc6r4y77.s looks like:

        movl    $0, 136(%rsp)
        movl    $0, 140(%rsp)
        movl    $0, 144(%rsp)
#APP
        movl %rcx, %eax   **** This is where the error occurs ****
        movl %esi, %edx
        roll $29, %eax ; roll $3, %eax
        rorl $27, %eax ; rorl $5, %eax
        roll $13, %eax ; roll $19, %eax

The default version of gcc is:

Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man
--libdir=/usr/lib64 --enable-languages=c,c++,f77,objc,java,ada
--disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++
--with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit
x86_64-suse-linux
Thread model: posix
gcc version 3.3.1 (SuSE Linux)

I have also attempted to compile it from the gcc-3_4-branch and
hammer-3_3-branch, and in both cases the make process stopped in the same place.

Incidentally, it will compile if the -m32 flag is set - it appears to be a code
generation problem only with the x86-64.

-- 
           Summary: [x86-64] Assembler messages: "operands invalid" for mov
                    in kopete 0.8beta2
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: badcataz at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: x86_64-suse-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13781


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/13781] [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2
  2004-01-20 23:02 [Bug c++/13781] New: [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2 badcataz at yahoo dot com
@ 2004-01-20 23:07 ` pinskia at gcc dot gnu dot org
  2004-01-20 23:13 ` badcataz at yahoo dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-20 23:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-20 23:07 -------
Not a gcc bug, the inline-asm is wrong.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13781


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/13781] [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2
  2004-01-20 23:02 [Bug c++/13781] New: [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2 badcataz at yahoo dot com
  2004-01-20 23:07 ` [Bug c++/13781] " pinskia at gcc dot gnu dot org
@ 2004-01-20 23:13 ` badcataz at yahoo dot com
  2004-01-20 23:17 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: badcataz at yahoo dot com @ 2004-01-20 23:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From badcataz at yahoo dot com  2004-01-20 23:13 -------
(In reply to comment #1)
> Not a gcc bug, the inline-asm is wrong.

There doesn't appear to be any inline assembly code in kopetepluginmanager.cpp,
its pure C++.  Am I missing something?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13781


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/13781] [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2
  2004-01-20 23:02 [Bug c++/13781] New: [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2 badcataz at yahoo dot com
  2004-01-20 23:07 ` [Bug c++/13781] " pinskia at gcc dot gnu dot org
  2004-01-20 23:13 ` badcataz at yahoo dot com
@ 2004-01-20 23:17 ` pinskia at gcc dot gnu dot org
  2004-01-20 23:38 ` badcataz at yahoo dot com
  2004-01-20 23:41 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-20 23:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-20 23:16 -------
but it might something in a header, can you attach the __preprocessed__ source file?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13781


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/13781] [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2
  2004-01-20 23:02 [Bug c++/13781] New: [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2 badcataz at yahoo dot com
                   ` (2 preceding siblings ...)
  2004-01-20 23:17 ` pinskia at gcc dot gnu dot org
@ 2004-01-20 23:38 ` badcataz at yahoo dot com
  2004-01-20 23:41 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: badcataz at yahoo dot com @ 2004-01-20 23:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From badcataz at yahoo dot com  2004-01-20 23:38 -------
Created an attachment (id=5538)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5538&action=view)
kopetepluginmanager.cpp processed through preprocessor


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13781


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/13781] [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2
  2004-01-20 23:02 [Bug c++/13781] New: [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2 badcataz at yahoo dot com
                   ` (3 preceding siblings ...)
  2004-01-20 23:38 ` badcataz at yahoo dot com
@ 2004-01-20 23:41 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-20 23:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-20 23:41 -------
This inline-asm is wrong:
asm volatile("movl %1, %%eax\n\t" "movl %2, %%edx\n\t" "roll $29, %%eax ; roll $3, %%eax\n\t" "rorl 
$27, %%eax ; rorl $5, %%eax\n\t" "roll $13, %%eax ; roll $19, %%eax\n\t" "movl %%edx, %0\t" : "=r" 
(_qzz_res) : "r" (&_zzq_args[0]), "r" (0) : "eax", "edx", "cc", "memory" );

%1 can be (and is for x86_64 because pointers are 64bit) one of the 64bit registers.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13781


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-01-20 23:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-20 23:02 [Bug c++/13781] New: [x86-64] Assembler messages: "operands invalid" for mov in kopete 0.8beta2 badcataz at yahoo dot com
2004-01-20 23:07 ` [Bug c++/13781] " pinskia at gcc dot gnu dot org
2004-01-20 23:13 ` badcataz at yahoo dot com
2004-01-20 23:17 ` pinskia at gcc dot gnu dot org
2004-01-20 23:38 ` badcataz at yahoo dot com
2004-01-20 23:41 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).