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: [PATCH]: Fix problematic -Wcast-qual cases using new CONST_CAST macro


DJ Delorie <dj@redhat.com> writes:

| > It would do, if it was finished.  I don't know where that stands.
| > Perhaps DJ could give us an update.
| 
| It got bogged down in arguments about how expression-specific warning
| settings would work, and inlined functions with different warning
| sets.  Then it got into statement-specific warning changesets and
| deltas.  We never got around to implementing any of the compromises.
| 
| Currently, you can wrap a function with the pragmas and sometimes it
| works the way you want, especially if you disable whole-file
| optimizations and tree inlining ;-)
| 
| Thus, we only allow (I don't know if it's enforced) the pragmas before
| the first function definition.

If the current implementation works at function definition level, then
I believe Kaveh has all he needs.

-- Gaby


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