This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34973] Wno-strict-aliasing is not working
- From: "awalton at gnome dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 May 2008 13:59:43 -0000
- Subject: [Bug middle-end/34973] Wno-strict-aliasing is not working
- References: <bug-34973-13841@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from awalton at gnome dot org 2008-05-03 13:59 -------
Created an attachment (id=15569)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15569&action=view)
preprocessor output (gzipped)
With "gcc (Ubuntu 4.3.0-3ubuntu4) 4.3.1 20080430 (prerelease)". This is what I
got from gcc -E fm-directory-view.c (huge list of includes omitted for sanity).
I couldn't quite get -save-temps working (it only output a 75 byte file, which
can't possibly be right).
Anyways, the specific problem is coming from a macro
"EEL_ASSIGN_MUST_OVERRIDE_SIGNAL", which is defined as "#define
EEL_ASSIGN_MUST_OVERRIDE_SIGNAL(class_pointer, prefix, signal)
* (void (**)(void)) & (class_pointer)->signal =
prefix##_unimplemented_##signal". Fails to build with "-Wall
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
-Wcast-align -Werror -Wno-strict-aliasing -Wno-pointer-sign"
I can include the original C file if it's needed as well. Hope this helps.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34973