This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/49410] New: Internal compiler error in change-stack at reg-stack.c:2540


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]