[LLVMbugs] [Bug 13230] New: gcc 4.7 cannot compile llvm's RegAllocGreedy.c because cast discards qualifiers
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 28 13:18:24 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13230
Bug #: 13230
Summary: gcc 4.7 cannot compile llvm's RegAllocGreedy.c because
cast discards qualifiers
Product: clang
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: mib.bugzilla at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8786
--> http://llvm.org/bugs/attachment.cgi?id=8786
a cutdown test case that shows the gcc 4.7 error
Trying to build llvm with gcc 4.7
fails due to a cast-qual warning message cum error message
getting an -Wcast-qual -Werror
Compilation line is,
-I/site/spt/usr7/XXX/bug/llvm-3.1.src/include
-I/site/spt/usr7/XXX/bug/llvm-3.1.src/lib/CodeGen -D_DEBUG -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Wcast-qual -c RegAllocGreedy.cpp
Diagnostic message is:
RegAllocGreedy_i.cpp(88): error #2203: cast discards qualifiers from target
type
dbgs() << "**" << ((Value*)mf.getFunction())->getName() << '\n';
smaller reproducer attached
--
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