[LLVMbugs] [Bug 171] NEW: Sparc CBE generates bad declaration of write() system call
bugzilla-daemon at zion.cs.uiuc.edu
bugzilla-daemon at zion.cs.uiuc.edu
Wed Dec 10 10:09:33 PST 2003
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=171
Summary: Sparc CBE generates bad declaration of write() system
call
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: C backend
AssignedTo: criswell at uiuc.edu
ReportedBy: criswell at uiuc.edu
The Sparc C Backend generates an extern declaration of the write() system call
for the unwind instruction. This declaration omits the return type, so it
defaults to int.
This breaks code which declares write() on SparcV9 because write() returns a 64
bit value. The types don't match and GCC refuses to compile the code if there
are too many warnings.
------- 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