[LLVMbugs] [Bug 7963] New: function attribute '__artificial__' ignored

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 21 22:58:20 PDT 2010


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

           Summary: function attribute '__artificial__' ignored
           Product: clang
           Version: 2.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nobled at dreamwidth.org
                CC: llvmbugs at cs.uiuc.edu


Clang doesn't seem to support the 'artificial' function attribute. A warning
turned up with this header file:

http://cgit.freedesktop.org/mesa/mesa/plain/src/gallium/auxiliary/util/u_sse.h?id=65b9747a54490dd56cd5cee4c2c1b9f51d35f133

./util/u_sse.h:90:75: warning: '__artificial__' attribute ignored
static __inline __m128i __attribute__((__gnu_inline__, __always_inline__,
__artificial__))


What it's supposed to do:
http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Function-Attributes.html
- "This attribute is useful for small inline wrappers which if possible should
appear during debugging as a unit, depending on the debug info format it will
either mean marking the function as artificial or using the caller location for
all instructions within the inlined body."
http://gcc.gnu.org/ml/gcc-help/2010-07/msg00295.html
- "On a function, it basically means that if the function is inlined, the
debugger will not step through the inlined instructions."

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