[RFA] [pei-386] prevent ld (auto-import) from generating broken code

Charles Wilson cwilson@ece.gatech.edu
Tue Sep 11 21:07:00 GMT 2001


Charles Wilson wrote:

> DJ Delorie wrote:
> 
>> Why is this one needed?  That's what the ATTRIBUTE_UNUSED is for...
>>
>> The rest of it looks OK to me.  I assume you're done the usual
>> build/test cycle, yes?
>>
> 
> 
> Yes.  Well, I have rebuilt & and tested with those revised patches, but 
> it wasn't a full "clean" test; I didn't wipe out my build dir and start 
> over from scratch.  I'll do that now.
> 
>>
>>> @@ -931,6 +947,8 @@
>>>   struct bfd_hash_entry *h;
>>>   PTR string ATTRIBUTE_UNUSED;
>>> {
>>> +  (void)string;
>>> +
>>>   if (pe_dll_extra_pe_debug)
>>
> 
> 
> Ah -- I think that's because Paul was using non-current-cvs sources when 
> he developed the original patch. (However, I have been, so *my* version 
> of the patch has both the ATTRIBUTE_UNUSED thing and the (void)string 
> thing).  The PTR string ATTRIBUTE_UNUSED thing was added sometime after 
> the late July/early August round of testing on auto-import.
> 
> I'm removing the (void)string thing, and then I'll do a complete (clean) 
> rebuild/test cycle.


Okay, with the (void)string part of the patch removed, I did a complete, 
clear-out-the-build-dir-and-rebuild cycle.  The rebuilt ld works as 
expected.

The re-revised patch, as tested, is attached.  Okay to apply?

--Chuck





More information about the Binutils mailing list