This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/34973] Wno-strict-aliasing is not working



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]