public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/13818] New: gcc inline assembler compile errors
@ 2004-01-22 19:48 jgraham at grahamguitars dot com
2004-01-22 19:48 ` [Bug inline-asm/13818] " jgraham at grahamguitars dot com
2004-01-22 19:58 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: jgraham at grahamguitars dot com @ 2004-01-22 19:48 UTC (permalink / raw)
To: gcc-bugs
When compiling applications with inline assembly (mostly mmx/sse/3dnow) the
compiler bails out with this error (or close to it):
can't find a register in class `BREG' while reloading `asm'
attached is the code that gives the error, thoug this example is only polling
the cpu for vender identification.
uname info:
Linux Dark 2.6.1-gentoo-r1 #1 Tue Jan 13 15:47:31 PST 2004 i686 AMD Athlon(tm)
Processor AuthenticAMD GNU/Linux
(nptl enabled)
gcc -v info:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Configured with: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
--enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long
--disable-checking --enable-cstdio=stdio --enable-clocale=generic
--enable-__cxa_atexit --enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib
--with-x --disable-multilib
Thread model: posix
gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
The command to invoke the error is:
gcc -DHAVE_CONFIG_H -I../.. -I../.. -I../../app -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/local/include cpu-accel.c
attached are all the files needed to reproduce the error.
--
Summary: gcc inline assembler compile errors
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: inline-asm
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jgraham at grahamguitars dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13818
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug inline-asm/13818] gcc inline assembler compile errors
2004-01-22 19:48 [Bug inline-asm/13818] New: gcc inline assembler compile errors jgraham at grahamguitars dot com
@ 2004-01-22 19:48 ` jgraham at grahamguitars dot com
2004-01-22 19:58 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: jgraham at grahamguitars dot com @ 2004-01-22 19:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jgraham at grahamguitars dot com 2004-01-22 19:48 -------
Created an attachment (id=5554)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5554&action=view)
code to generate the error.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13818
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug inline-asm/13818] gcc inline assembler compile errors
2004-01-22 19:48 [Bug inline-asm/13818] New: gcc inline assembler compile errors jgraham at grahamguitars dot com
2004-01-22 19:48 ` [Bug inline-asm/13818] " jgraham at grahamguitars dot com
@ 2004-01-22 19:58 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-22 19:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-22 19:58 -------
I cannot reproduce in FSF's 3.3.1, 3.3.2, or 3.5.0 (today).
This looks like a Gentoo bug, please report it to them.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13818
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-01-22 19:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-22 19:48 [Bug inline-asm/13818] New: gcc inline assembler compile errors jgraham at grahamguitars dot com
2004-01-22 19:48 ` [Bug inline-asm/13818] " jgraham at grahamguitars dot com
2004-01-22 19:58 ` 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).