This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/49410] New: Internal compiler error in change-stack at reg-stack.c:2540
- From: "gcc.hall at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Jun 2011 21:25:32 +0000
- Subject: [Bug inline-asm/49410] New: Internal compiler error in change-stack at reg-stack.c:2540
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49410
Summary: Internal compiler error in change-stack at
reg-stack.c:2540
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: inline-asm
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gcc.hall@gmail.com
I saw this while experimenting with the (probably incorrect) inline x87
assembler:
test.c: In function 'main':
test.c:16:1: internal compiler error: in change_stack, at reg-stack.c:2540
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
----------------------------------------------------------
#include <stdio.h>
int
main( int argc, char *argv[] )
{
long double x, n = 1234.0L;
asm( "fldpi; fmulp; fsqrt" : "=t" (x) : "u" (n) );
printf("sqrt(pi * n) = %Lg\n", x );
}
----------------------------------------------------------
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.6.0/configure
Thread model: posix
gcc version 4.6.0 (GCC)