This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch 4/4] -fstrict-volatile-bitfields cleanup v3: remove from defaults on all targets
- From: Andrew Pinski <pinskia at gmail dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: Sandra Loosemore <sandra at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 1 Jul 2013 00:33:44 -0700
- Subject: Re: [patch 4/4] -fstrict-volatile-bitfields cleanup v3: remove from defaults on all targets
- References: <51D0F6A0 dot 4010307 at codesourcery dot com> <201307010332 dot r613WeJJ017250 at greed dot delorie dot com>
On Sun, Jun 30, 2013 at 8:32 PM, DJ Delorie <dj@redhat.com> wrote:
>
> Given how much trouble I went through to make it the default, I'd
> rather not revert all that work... especially since the flag is
> *required* for proper operation of the hardware on many of these
> targets.
>
> This patch will, or course, silently and obscurely break existing
> code.
And without the patch will break silently existing valid C11/C++11
code on many targets. This is the whole point of the patch to follow
the C/C++ standard here rather than breaking valid code.
I rather see volatile on bitfields becoming an error rather than
either of these patches.
Thanks,
Andrew Pinski