public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Jaeger <aj@suse.de>
To: GNU libc hacker <libc-hacker@sources.redhat.com>
Subject: FYI: GCC warnings about strict-aliasing violation in glibc
Date: Sun, 10 Nov 2002 01:10:00 -0000	[thread overview]
Message-ID: <u8el9t7psz.fsf@gromit.moeb> (raw)


I got the appended warnings (just a quick grep) about violation of
strict-aliasing rules with a GCC 3.3 CVS compiler.  The majority comes
from the NSS code.  I suggest to get these fixed and will work on some
of them myself,

Andreas

wctob.c:65: warning: dereferencing type-punned pointer will break strict-aliasing rules
wcsrtombs.c:85: warning: dereferencing type-punned pointer will break strict-aliasing rules
wcsnrtombs.c:88: warning: dereferencing type-punned pointer will break strict-aliasing rules
wctob.c:65: warning: dereferencing type-punned pointer will break strict-aliasing rules
wcsrtombs.c:85: warning: dereferencing type-punned pointer will break strict-aliasing rules
wcsnrtombs.c:88: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../sysdeps/unix/sysv/linux/getsysstats.c:88: warning: dereferencing type-punned pointer will break strict-aliasing rules
../sysdeps/unix/sysv/linux/getsysstats.c:88: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:68: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:80: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:107: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:117: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:150: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:171: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:183: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:68: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:80: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:107: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:117: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:150: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:171: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnssent_r.c:183: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
ether_hton.c:49: warning: dereferencing type-punned pointer will break strict-aliasing rules
ether_hton.c:70: warning: dereferencing type-punned pointer will break strict-aliasing rules
ether_ntoh.c:50: warning: dereferencing type-punned pointer will break strict-aliasing rules
ether_ntoh.c:71: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:105: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:111: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:168: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:175: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:209: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:265: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:318: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:330: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:392: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:397: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
ether_hton.c:49: warning: dereferencing type-punned pointer will break strict-aliasing rules
ether_hton.c:70: warning: dereferencing type-punned pointer will break strict-aliasing rules
ether_ntoh.c:50: warning: dereferencing type-punned pointer will break strict-aliasing rules
ether_ntoh.c:71: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:105: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:111: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:168: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:175: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:209: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:265: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:318: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:330: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:392: warning: dereferencing type-punned pointer will break strict-aliasing rules
getnetgrent_r.c:397: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXent.c:82: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
publickey.c:51: warning: dereferencing type-punned pointer will break strict-aliasing rules
publickey.c:70: warning: dereferencing type-punned pointer will break strict-aliasing rules
publickey.c:90: warning: dereferencing type-punned pointer will break strict-aliasing rules
publickey.c:109: warning: dereferencing type-punned pointer will break strict-aliasing rules
netname.c:156: warning: dereferencing type-punned pointer will break strict-aliasing rules
netname.c:175: warning: dereferencing type-punned pointer will break strict-aliasing rules
publickey.c:51: warning: dereferencing type-punned pointer will break strict-aliasing rules
publickey.c:70: warning: dereferencing type-punned pointer will break strict-aliasing rules
publickey.c:90: warning: dereferencing type-punned pointer will break strict-aliasing rules
publickey.c:109: warning: dereferencing type-punned pointer will break strict-aliasing rules
netname.c:156: warning: dereferencing type-punned pointer will break strict-aliasing rules
netname.c:175: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:612: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:629: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:948: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:984: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:1173: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:1328: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:3048: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:3311: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:3320: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:3337: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:3522: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:3576: warning: dereferencing type-punned pointer will break strict-aliasing rules
programs/ld-collate.c:3584: warning: dereferencing type-punned pointer will break strict-aliasing rules
gethnamaddr.c:622: warning: dereferencing type-punned pointer will break strict-aliasing rules
gethnamaddr.c:712: warning: dereferencing type-punned pointer will break strict-aliasing rules
gethnamaddr.c:717: warning: dereferencing type-punned pointer will break strict-aliasing rules
res_send.c:565: warning: dereferencing type-punned pointer will break strict-aliasing rules
gethnamaddr.c:622: warning: dereferencing type-punned pointer will break strict-aliasing rules
gethnamaddr.c:712: warning: dereferencing type-punned pointer will break strict-aliasing rules
gethnamaddr.c:717: warning: dereferencing type-punned pointer will break strict-aliasing rules
res_send.c:565: warning: dereferencing type-punned pointer will break strict-aliasing rules
nss_dns/dns-host.c:176: warning: dereferencing type-punned pointer will break strict-aliasing rules
nss_dns/dns-host.c:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
nss_dns/dns-host.c:311: warning: dereferencing type-punned pointer will break strict-aliasing rules
nss_dns/dns-host.c:317: warning: dereferencing type-punned pointer will break strict-aliasing rules
nss_dns/dns-network.c:126: warning: dereferencing type-punned pointer will break strict-aliasing rules
nss_dns/dns-network.c:196: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:178: warning: dereferencing type-punned pointer will break strict-aliasing rules
../nss/getXXbyYY_r.c:230: warning: dereferencing type-punned pointer will break strict-aliasing rules

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

             reply	other threads:[~2002-11-10  9:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-10  1:10 Andreas Jaeger [this message]
2002-11-10  2:18 ` Andreas Jaeger
2002-11-10  2:23   ` Ulrich Drepper
2002-11-10  3:05     ` Andreas Jaeger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u8el9t7psz.fsf@gromit.moeb \
    --to=aj@suse.de \
    --cc=libc-hacker@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).