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: unassig...@gcc.gnu.org
        ReportedBy: gcc.h...@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)

Reply via email to