This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix error message from -Wcast-qual when casting away volatile
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Magnus Reftel <magnus dot reftel at gmail dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 11 Mar 2014 17:55:14 +0000
- Subject: Re: [PATCH] Fix error message from -Wcast-qual when casting away volatile
- Authentication-results: sourceware.org; auth=none
- References: <CABqVM5Fb3qjj2iMWdvV+LQiJtGbam+LQToukwXCQV=dy613mtw at mail dot gmail dot com>
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 that. No regressions on
> gcc from applying this patch (as reported by "make check") were seen.
OK (with the ChangeLog fix as noted).
--
Joseph S. Myers
joseph@codesourcery.com