[LLVMbugs] [Bug 4580] warn on attribute used applied to local decl
    bugzilla-daemon at cs.uiuc.edu 
    bugzilla-daemon at cs.uiuc.edu
       
    Sun Jul 19 12:24:37 PDT 2009
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=4580
Chris Lattner <clattner at apple.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
--- Comment #1 from Chris Lattner <clattner at apple.com>  2009-07-19 14:24:37 ---
No, this is useful.
int f2() {
    static int x[100] __attribute__((used));
    asm(" something using x magically")
    return x[1];
  }
Another example is dropping something into a specific section, etc. clang and
llvm-gcc both get this right.
-- 
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