public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/28529] New: [GCC 3.4.6] internal compiler error: in emit_move_insn, at expr.c:2809
@ 2006-07-28 22:27 mmiikkee13 at gmail dot com
2006-07-28 23:48 ` [Bug inline-asm/28529] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: mmiikkee13 at gmail dot com @ 2006-07-28 22:27 UTC (permalink / raw)
To: gcc-bugs
I'm using gcc 3.4.6 and I get an ICE compiling this:
int setjmp(jmp_buf_t buf)
{
__asm__ __volatile__
(
"movl %%edi,(%0)\n"
"movl %%esi,4(%0)\n"
"movl %%ebp,8(%0)\n"
"movl %%ebx,16(%0)\n"
"movl %%edx,20(%0)\n"
"movl %%ecx,24(%0)\n"
"leal 8(%%ebp),%%eax\n"
"movl %%eax,32(%0)\n"
"movl 4(%%ebp),%%eax\n"
"movl %%eax,36(%0)\n"
:
: "b"(buf)
);
}
CFLAGS are: -ffreestanding -c -I/home/mike/popcorn-os/kernel/include
-finline-functions -fno-builtin
==> Entering directory kernel...
-> C compiling: mt.c
./mt.c: In function `mt_init':
./mt.c:14: warning: assignment makes integer from pointer without a cast
./mt.c:23: warning: assignment from incompatible pointer type
./mt.c: In function `setjmp':
./mt.c:28: internal compiler error: in emit_move_insn, at expr.c:2809
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Line 28 is the __asm__ __volatile__ line. (This is in a kernel I'm writing,
which explains the weird CFLAGS.)
Here's a jmp_buf_t in case it matters:
typedef struct
{
uint_32 edi, esi, ebp, esp, ebx, edx, ecx, eax;
uint_32 eip, eflags;
} jmp_buf_t;
--
Summary: [GCC 3.4.6] internal compiler error: in emit_move_insn,
at expr.c:2809
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mmiikkee13 at gmail dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28529
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug inline-asm/28529] [GCC 3.4.6] internal compiler error: in emit_move_insn, at expr.c:2809
2006-07-28 22:27 [Bug c/28529] New: [GCC 3.4.6] internal compiler error: in emit_move_insn, at expr.c:2809 mmiikkee13 at gmail dot com
@ 2006-07-28 23:48 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-28 23:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-28 23:48 -------
This code is invalid as you cannot pass a struct in a register.
Oh this is a dup of bug 8788 which has been fixed for 4.1.0.
*** This bug has been marked as a duplicate of 8788 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28529
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-28 23:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-28 22:27 [Bug c/28529] New: [GCC 3.4.6] internal compiler error: in emit_move_insn, at expr.c:2809 mmiikkee13 at gmail dot com
2006-07-28 23:48 ` [Bug inline-asm/28529] " 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).