Re: [PATCH] Fix error message from -Wcast-qual when casting away volatile

2014-03-18 Thread Manuel López-Ibáñez
It seems that the patch was tested only in the C testsuite, but the changes to the testcase fail for C++. So I committed the following, which is what my patch should have done in the first place, as obvious. I hope this is OK with you. Cheers, Manuel. Index: gcc/testsuite/gcc.dg/cast-qual-3.c =

Re: [PATCH] Fix error message from -Wcast-qual when casting away volatile

2014-03-11 Thread Joseph S. Myers
On Tue, 11 Mar 2014, Magnus Reftel wrote: > Currently, castring away volatile from a pointer makes -Wcast-qual > claim that __attribute__((noreturn)) was cast away (see bugzilla > 55383). The attached patch, originally written by Manuel L?pez-Ib??ez > and updated to match trunk by me, correctes th

Re: [PATCH] Fix error message from -Wcast-qual when casting away volatile

2014-03-11 Thread Jakub Jelinek
On Tue, Mar 11, 2014 at 05:10:45PM +0100, Gerald Pfeifer wrote: > On Tue, 11 Mar 2014, Magnus Reftel wrote: > > Currently, castring away volatile from a pointer makes -Wcast-qual > > claim that __attribute__((noreturn)) was cast away (see bugzilla > > 55383). The attached patch, originally written

Re: [PATCH] Fix error message from -Wcast-qual when casting away volatile

2014-03-11 Thread Gerald Pfeifer
On Tue, 11 Mar 2014, Magnus Reftel wrote: > Currently, castring away volatile from a pointer makes -Wcast-qual > claim that __attribute__((noreturn)) was cast away (see bugzilla > 55383). The attached patch, originally written by Manuel López-Ibáñez > and updated to match trunk by me, correctes tha

[PATCH] Fix error message from -Wcast-qual when casting away volatile

2014-03-11 Thread Magnus Reftel
Currently, castring away volatile from a pointer makes -Wcast-qual claim that __attribute__((noreturn)) was cast away (see bugzilla 55383). The attached patch, originally written by Manuel López-Ibáñez and updated to match trunk by me, correctes that. No regressions on gcc from applying this patch