dereferencing type-punned pointer will break strict-aliasing rules

From: Jun Kuriyama <kuriyama_at_imgsrc.co.jp>
Date: Mon, 28 Jul 2003 09:30:08 +0900
Is this caused by -oS option?

----- in making BOOTMFS in make release
cc -c -Os -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror  /usr/src/sys/geom/geom_dev.c
/usr/src/sys/geom/geom_dev.c: In function `g_dev_open':
/usr/src/sys/geom/geom_dev.c:198: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:198: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:198: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:198: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:205: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:205: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c: In function `g_dev_close':
/usr/src/sys/geom/geom_dev.c:232: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:232: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:232: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:232: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:253: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:253: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c: In function `g_dev_ioctl':
/usr/src/sys/geom/geom_dev.c:281: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:281: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:281: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:281: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:340: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/geom/geom_dev.c:340: warning: dereferencing type-punned pointer will break strict-aliasing rules
*** Error code 1
1 error


-- 
Jun Kuriyama <kuriyama_at_imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama_at_FreeBSD.org> // FreeBSD Project
Received on Sun Jul 27 2003 - 15:30:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:16 UTC