This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Use const_bitmap in GCC sources


 > bitmap_find_bit maintains a cache, and this is what "mutable" is
 > used for in C++.

Yes I know... so when exactly are we switching to C++ sources? :-)


 > I think you can rightfully cast away the "const" in
 > bitmap_find_bit, i.e. add const_bitmap even in bitmap_find_bit.
 > Paolo

I'm trying to avoid making the -Wcast-qual results worse for now since
I use that flag to help me during this process.  I hope one day to be
able to add that flag to GCC bootstrap, but we free a lot of const
strings using casts everywhere so I can't for now.  That's another
place IMHO we can rightfuly cast away const-ness.

Once we have fine-grained warning control we can tag those places
where these casts are "safe" and then it won't matter.  What ever
happened to that effort?  Who was working on it again?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]