[LLVMbugs] [Bug 4375] New: llvm-g++ trips over __extern_inline with	-O2
    bugzilla-daemon at cs.uiuc.edu 
    bugzilla-daemon at cs.uiuc.edu
       
    Fri Jun 12 03:44:16 PDT 2009
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=4375
           Summary: llvm-g++ trips over __extern_inline with -O2
           Product: tools
           Version: 2.5
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-g++
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: paul at floorball-flamingos.nl
                CC: llvmbugs at cs.uiuc.edu
This is with the RHEL4 binary distribution of llvm-gcc 4.2 (for llvm 2.5), on
Gentoo Linux (w/ 32-bit kernel and libs). GCC 4.3.2 has no problems with same
code.
12:39|melis at juggle2:~/projects/bih> cat t.cxx
#include <Python.h>
12:39|melis at juggle2:~/projects/bih> g++ -c -I /usr/include/python2.5 t.cxx
12:39|melis at juggle2:~/projects/bih> g++ -c -I /usr/include/python2.5 -O2 t.cxx
12:40|melis at juggle2:~/projects/bih> llvm-g++ -c -I /usr/include/python2.5 t.cxx
12:40|melis at juggle2:~/projects/bih> llvm-g++ -c -I /usr/include/python2.5 -O2
t.cxx
In file included from /usr/include/python2.5/Python.h:46,
                 from t.cxx:1:
/usr/include/stdlib.h:278: error: expected constructor, destructor, or type
conversion before 'double'
/usr/include/stdlib.h:283: error: expected constructor, destructor, or type
conversion before 'int'
/usr/include/stdlib.h:288: error: expected constructor, destructor, or type
conversion before 'long'
/usr/include/stdlib.h:297: error: expected constructor, destructor, or type
conversion before 'long'
In file included from /usr/include/python2.5/unicodeobject.h:118,
                 from /usr/include/python2.5/Python.h:88,
                 from t.cxx:1:
/usr/include/wchar.h:334: error: '__extern_inline' does not name a type
/usr/include/wchar.h:340: error: expected constructor, destructor, or type
conversion before 'int'
/usr/include/wchar.h:345: error: '__extern_inline' does not name a type
In file included from /usr/include/signal.h:33,
                 from /usr/include/python2.5/pyfpe.h:129,
                 from /usr/include/python2.5/Python.h:156,
                 from t.cxx:1:
/usr/include/bits/sigset.h:118: error: expected constructor, destructor, or
type conversion before 'int'
/usr/include/bits/sigset.h:119: error: expected constructor, destructor, or
type conversion before 'int'
/usr/include/bits/sigset.h:120: error: expected constructor, destructor, or
type conversion before 'int'
-- 
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