[LLVMbugs] [Bug 6229] New: Irrelevant/ incorrect preprocessor defines present under -std=c89
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Feb 3 23:34:08 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6229
Summary: Irrelevant/incorrect preprocessor defines present under
-std=c89
Product: new-bugs
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: minor
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: llvm.org at elliottcable.com
CC: llvmbugs at cs.uiuc.edu
I’m not sure if this is intended or not, but it seems weird: when compiling
source with `clang -std=c89`, things like `LLONG_MIN` and `ULLONG_MAX`, that
apply to features not available under `-std=c89`, are still defined. This lead
to the situation in my code, where my `#if` passed (because `LLONG_MIN` and
such are defined), but the code was un-compile-able under `-std=c89`, because
it depended on the availability of `long long` when `LLONG_MIN` was defined.
--
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