[llvm-bugs] [Bug 25260] New: fatal error: error in backend: SSE register return with SSE disabled

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 20 08:13:44 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25260

            Bug ID: 25260
           Summary: fatal error: error in backend: SSE register return
                    with SSE disabled
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tydeman at tybor.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15122
  --> https://llvm.org/bugs/attachment.cgi?id=15122&action=edit
Resulting command used to compile.

A one line program kills the compiler.
float pef2f ( const float f ){return  f-  1.f;}

My command line options:
  export CFLAGS="-std=c1x -m64 -mfpmath=387 -mno-sse -O0 -pedantic -fmath-errno
${INCS}"

But, in looking at the attached *.sh file, I see 'sse', not 'no-sse'.

This is on Intel Centrino 2 in 64-bit mode running Fedora Linux 22.


fatal error: error in backend: SSE register return with SSE disabled
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 3.5.0 (tags/RELEASE_350/final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/test34-624404.c
clang: note: diagnostic msg: /tmp/test34-624404.sh
clang: note: diagnostic msg: 

********************

This is /tmp/test34-624404.c

# 1 "<built-in>"
# 1 "test34.c"
#define FLT float
#define DBL double
#define LDBL long double
#define ONE_FLT 1.f
#define ONE_DBL 1.0
#define ONE_LDBL 1.L
#define LMS_CONST_PARM const

#if 1
FLT  pef2f  ( LMS_CONST_PARM   FLT  f ){return  f-  ONE_FLT;}
#else
# 12 "test34.c"
DBL  pef2d  ( LMS_CONST_PARM   FLT  f ){return  f-  ONE_DBL;}
LDBL pef2ld ( LMS_CONST_PARM   FLT  f ){return  f-  ONE_LDBL;}
FLT  ped2f  ( LMS_CONST_PARM   DBL  d ){return  d-  ONE_DBL;}
DBL  ped2d  ( LMS_CONST_PARM   DBL  d ){return  d-  ONE_DBL;}
LDBL ped2ld ( LMS_CONST_PARM   DBL  d ){return  d-  ONE_LDBL;}
FLT  peld2f ( LMS_CONST_PARM  LDBL ld ){return ld-  ONE_LDBL;}
DBL  peld2d ( LMS_CONST_PARM  LDBL ld ){return ld-  ONE_LDBL;}
LDBL peld2ld( LMS_CONST_PARM  LDBL ld ){return ld-  ONE_LDBL;}
#endif
# 21 "test34.c"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151020/1f8e76f9/attachment.html>


More information about the llvm-bugs mailing list