[LLVMbugs] [Bug 5274] New: clang: doesn't add noalias attribute for restrict qualifier

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Oct 22 05:48:29 PDT 2009


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

           Summary: clang: doesn't add noalias attribute for restrict
                    qualifier
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


This code:
int foo(char *restrict s) {}

Is compiled to this by clang:
define i32 @foo(i8* nocapture %f) nounwind readnone {
entry:
  ret i32 undef
}

And to this by llvm-gcc -std=c99:
define i32 @foo(i8* noalias nocapture %f) nounwind readnone {
entry:
  ret i32 undef
}


-- 
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