PR bootstrap/19818: fix libcpp warnings (take 2)

Geoff Keating geoffk@geoffk.org
Fri Feb 11 16:03:00 GMT 2005


On 10/02/2005, at 2:25 AM, Paolo Bonzini wrote:

>> See the previous discussion on why you can't make GCed stuff 'const'.
>
> You did not answer to Zack's comments then:
>
> > > these data structures are not truly
> > > write-once; any pointers contained in them will be changed by 
> saving
> > > a PCH.
> >
> > Sure; however, that happens behind the back of the code that uses 
> this
> > data structure.  The 'const' is correctly placed to catch bugs in 
> that
> > code, which is what I care about.

Zack's comment is correct, from a certain point of view.  However, that 
point of view is not shared by the compiler building GCC; that compiler 
thinks that code in the GC is also part of "the code that uses this 
data structure".

The rest of the patch looks fine to me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2410 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050211/b3c3e0df/attachment.p7s>


More information about the Gcc-patches mailing list