[LLVMbugs] [Bug 63] #ident is not recognized by C frontend
bugzilla-daemon at zion.cs.uiuc.edu
bugzilla-daemon at zion.cs.uiuc.edu
Tue Oct 28 17:21:51 PST 2003
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=63
sabre at nondot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Version|trunk |1.0
------- Additional Comments From sabre at nondot.org 2003-10-28 19:21 -------
Ok, the bug has been fixed in the mainline C front-end. Here's a patch:
$ diff -u c-lex.c-orig c-lex.c
--- c-lex.c-orig 2003-10-28 19:19:07.000000000 -0600
+++ c-lex.c 2003-10-28 19:19:23.000000000 -0600
@@ -41,6 +41,7 @@
#include "tm_p.h"
#include "splay-tree.h"
#include "debug.h"
+#include "llvm-out.h"
/* The current line map. */
static const struct line_map *map;
@@ -179,6 +180,8 @@
unsigned int line ATTRIBUTE_UNUSED,
const cpp_string *str ATTRIBUTE_UNUSED)
{
+ if (EMIT_LLVM) return;
+
#ifdef ASM_OUTPUT_IDENT
if (! flag_no_ident)
{
If you're not interested in rebuilding the C frontend, you can pass '-fno-ident'
on the llvmgcc command line to work around this problem. Thanks for the great
bug report!
-Chris
------- 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