First Last Prev Next    No search results available
Details
: [llvmgcc] obstack.h relies on obsolete casts-as-lvalues G...
Bug#: 373
: tools
: llvm-gcc
Status: RESOLVED
Resolution: FIXED
: PC
: FreeBSD
: trunk
: P2
: normal
: 1.3

:
: portability
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Vladimir Merzliakov <wanderer@rsu.ru>
Assigned To: Unassigned LLVM Bugs <unassignedbugs@nondot.org>

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2004-06-18 04:31
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)
------- Comment #1 From Vladimir Merzliakov 2004-06-18 07:13:48 -------
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.
------- Comment #2 From Chris Lattner 2004-06-18 12:06:33 -------
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
------- Comment #3 From Chris Lattner 2004-06-18 12:55:49 -------
Fixed.  Patch here:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040614/015284.html

Thanks for pointing this out!

-Chris

First Last Prev Next    No search results available