[LLVMbugs] [Bug 781] NEW: llvm-gcc4: bool on darwin turns into uint	for function args/results
    bugzilla-daemon at cs.uiuc.edu 
    bugzilla-daemon at cs.uiuc.edu
       
    Mon May 15 19:54:05 PDT 2006
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=781
           Summary: llvm-gcc4: bool on darwin turns into uint for function
                    args/results
           Product: tools
           Version: 1.7
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org
This:
_Bool test() {}
Compiled on PPC32:
$ llvm-gcc bool.c -S -o - -emit-llvm -O3
...
uint %test() {
entry:
        ret uint undef
}
llvm-gcc represents C99/C++ bool as LLVM 'uint', because that's its proper size in memory, but 
function args/results should really really use llvm bool.  :)
-Chris
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
    
    
More information about the llvm-bugs
mailing list