Bugzilla – Bug 373
[llvmgcc] obstack.h relies on obsolete casts-as-lvalues GCC extension
Last modified: 2004-06-18 12:55:49
You need to log in before you can comment on or make changes to this bug.
Current CVS llvm-gcc (Cfrontend) build (using CVS mainline gcc) terminated with error: ---8X--------------------- gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes - Wmissing-prototypes -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I../../src/llvm-gcc/gcc -I../../src/llvm- gcc/gcc/. -I../../src/llvm-gcc/gcc/../include ../../s rc/llvm-gcc/gcc/read-rtl.c -o read-rtl.o ../../src/llvm-gcc/gcc/read-rtl.c: In function `read_rtx': ../../src/llvm-gcc/gcc/read-rtl.c:639: error: invalid lvalue in increment gmake[1]: *** [read-rtl.o] Error 1 gmake[1]: Leaving directory `/usr/home/wanderer/pkg/build/llvm/objcfe/gcc' gmake: *** [all-gcc] Error 2 ---X8--------------------- Known bug in include/obstack.h (fixed in gcc mainline) Fixed by replacing include/obstack.h from libiberty master copy (current CVS mainline)
Note: Suggested fix resolve problem with obstack.h. But llvm-gcc have another problems with build using CVS mainline GCC. I attempt find fixes for its.
Can you email me the updated file for obstack.h? I would be happy to update it, but don't have a GCC tree handy. -Chris
Fixed. Patch here: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040614/015284.html Thanks for pointing this out! -Chris