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

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat May 3 14:06:00 GMT 2008



------- Comment #14 from rguenth at gcc dot gnu dot org  2008-05-03 14:05 -------
This doesn't lookk like the strict-aliasing warning though, but

gcc-4.3 -S t.i -o /dev/null -Wall -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs -Wpointer-arith -Wcast-align -Werror -Wno-pointer-sign
-Wno-strict-aliasing -m64
cc1: warnings being treated as errors
fm-directory-view.c: In function ‘file_and_directory_hash’:
fm-directory-view.c:521: error: cast from pointer to integer of different size
fm-directory-view.c:521: error: cast from pointer to integer of different size
fm-directory-view.c: In function ‘remove_not_really_moved_files’:
fm-directory-view.c:2445: error: cast from pointer to integer of different size

(works fine for me without -m64 / with -m32).  You can use
-Wno-pointer-to-int-cast to disable this particular warning.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34973



More information about the Gcc-bugs mailing list