java/5912: gcj -R doesn't work for mingw32 cross compiler

Anthony Green
Sun Mar 10 11:46:00 GMT 2002

>Number:         5912
>Category:       java
>Synopsis:       gcj -R doesn't work for mingw32 cross compiler
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 10 11:46:00 PST 2002
>Originator:     Anthony Green
>Release:        3.1 20020309 (prerelease)
System: IA-32 Red Hat Linux 7.2
Architecture: i386

host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-mingw32
configured with: ../gcc/configure --prefix=/usr/local/gcc --target=i686-pc-mingw32 --host=i686-pc-linux-gnu --enable-languages=c,c++,java --disable-nls --with-as=/usr/local/gcc/i686-pc-mingw32/bin/as --with-ld=/usr/local/gcc/i686-pc-mingw32/bin/ld --with-gnu-ld --with-gnu-as --enable-libgcj --enable-gc-type=boehm --disable-shared --enable-threads=win32 --disable-hash-synchronization --disable-interpreter --enable-sjlj-exceptions
	"gcj -R" appears to be creating two functions with the same name.
One of them does the right thing (registering the resource data with the
runtime).  The other one is empty -- it just returns.  The assembler barfs 
on this.
	$ i686-pc-mingw32-gcj -R foo -S -o foo.s anyfile

	The assembler will report an error about duplicate symbols.


More information about the Gcc-bugs mailing list