PATCH to fix mingw bootstrap failure

Per Bothner per@bothner.com
Sun May 30 09:36:00 GMT 2004


Mohan Embar's scripts for build a GNU/Linux-to-MinGW cross-GCJ
stopped working after the ssa merge.  One problem I've reported
is that libmudflag won't build; another problem is that various
static functions in libjava/jni.cc is "optimized out" under -O2.

The problem is that i386_pe_encode_section_info loses the
SYMBOL_REF_DECL information when it creates a new SYMBOL_REF
for the modified label.  The attached patch is one possible fix.

An alternative solution is to defer setting SYMBOL_REF_DECL
in make_decl_rtl until after the targetm.encode_section_info
call.  This has the advantage that it might fix other broken
targets, but it appears a bit more complicated.  For example
it would have to deal with (mem (mem (symbol ...))) rtx's
created for dll indirection.

I notice other targets (rs6000, arm, pa, possibly others)
instead modify the SYMBOL_REF in place, smashing in a new name.

That may be a better solution.  If that is the recommended
approach (which seems plausible), I'll try that instead.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: winnt.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040530/0bd00156/attachment.ksh>


More information about the Gcc-patches mailing list