[LLVMbugs] [Bug 13896] New: operator '==' has no right operand

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 21 01:20:23 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13896

             Bug #: 13896
           Summary: operator '==' has no right operand
           Product: compiler-rt
           Version: unspecified
          Platform: PC
        OS/Version: Solaris
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: compiler-rt
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: i.galic at brainsware.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9244
  --> http://llvm.org/bugs/attachment.cgi?id=9244
Patch for fixing compiler-rt build on Solaris/GCC

When compiling llvm/clang/compiler-rt (trunk) on Solaris 10u9/X86, with GCC
4.7, I get the follwoing error:

/opt/csw/bin/cmake -E cmake_progress_report
/export/home/igalic/llvm-build/CMakeFiles 
[ 43%] Building C object
projects/compiler-rt/lib/CMakeFiles/clang_rt.i386.dir/absvdi2.c.o
cd /export/home/igalic/llvm-build/projects/compiler-rt/lib && /opt/csw/bin/gcc 
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -O3
-DNDEBUG -I/export/home/igalic/llvm-build/projects/compiler-rt/lib
-I/export/home/igalic/llvm/projects/compiler-rt/lib
-I/export/home/igalic/llvm-build/include -I/export/home/igalic/llvm/include
-I/export/home/igalic/llvm/projects/compiler-rt/include    -Wall -W
-Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -std=c99  -o
CMakeFiles/clang_rt.i386.dir/absvdi2.c.o   -c
/export/home/igalic/llvm/projects/compiler-rt/lib/absvdi2.c
In file included from
/export/home/igalic/llvm/projects/compiler-rt/lib/int_types.h:21:0,
                 from
/export/home/igalic/llvm/projects/compiler-rt/lib/int_lib.h:41,
                 from
/export/home/igalic/llvm/projects/compiler-rt/lib/absvdi2.c:15:
/export/home/igalic/llvm/projects/compiler-rt/lib/int_endianness.h:25:37:
error: operator '==' has no right operand
gmake[2]: ***
[projects/compiler-rt/lib/CMakeFiles/clang_rt.i386.dir/absvdi2.c.o] Error 1
gmake[2]: Leaving directory `/export/home/igalic/llvm-build'
gmake[1]: *** [projects/compiler-rt/lib/CMakeFiles/clang_rt.i386.dir/all] Error
2
gmake[1]: Leaving directory `/export/home/igalic/llvm-build'
gmake: *** [all] Error 2

Please find attached a patch.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list