This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: strict aliasing and socket structures
- From: Mason <slash dot tmp at free dot fr>
- To: Abhinav Gauniyal <mail dot agauniyal at gmail dot com>
- Cc: GCC help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 20 Feb 2017 15:10:06 +0100
- Subject: Re: strict aliasing and socket structures
- Authentication-results: sourceware.org; auth=none
- References: <CALd8CEsUd_8qgN-aQASHy3QJna-bv_oGuMeKUx6ovfFkVLEhGw@mail.gmail.com>
On 19/02/2017 15:52, Abhinav Gauniyal wrote:
> Any sort of help would be beneficial to me, I'm open to
> suggestions/advice as well
If you dislike the optimizations enabled by -fstrict-aliasing
(meaning your code is non-portable, by the way) then why don't
you simply turn them off, with -fno-strict-aliasing ?
(As is done for the Linux kernel.)
Regards.