[LLVMbugs] [Bug 243] NEW: GCC 3.3 -O2 gives "used before defined" inlining warnings
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Feb 16 17:34:48 PST 2004
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=243
Summary: GCC 3.3 -O2 gives "used before defined" inlining
warnings
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: Core LLVM classes
AssignedTo: rspencer at x10sys.com
ReportedBy: rspencer at x10sys.com
When building optimized, I now get warnings from GCC 3.3 that certain inline
functions in header files are used before they are defined. For example:
/proj/work/llvm/llvm/include/llvm/DerivedTypes.h:416: warning: `void
llvm::PATypeHandle::addUser()' was used before it was declared inline
/proj/work/llvm/llvm/include/llvm/AbstractTypeUser.h:78: warning: previous
non-inline declaration here
Whenever building XPS optimized, I always try to remove every warning. Right now
LLVM is the only source of them.
I'll submit a patch shortly if I can figure out the correct order of use and
definition.
------- 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