From: Tobias Polzin <polzin00@marvin.informatik.uni-dortmund.de>
To: egcs@cygnus.com
Subject: Could egcs warn at (int*)(int)(x)?
Date: Mon, 15 Dec 1997 09:34:00 -0000 [thread overview]
Message-ID: <9712151734.AA15549@occam.informatik.uni-dortmund.de> (raw)
I had problems with porting a software package to a 64 bit architecture.
After exhausting debugging-sessions I found that the problem were "pointer->
int->pointer"-casts which loose the upper 32 bit of the address.
The usual warnings (-wAll -Wconversion -Wpointer-arith) do not detect
this porblems.
Is there any possibility to get warnings for things like:
int* foo=(int*)((int)bar + delta);
Or even for
int delta= long(newaddress)-long(oldaddress).
Tobias "2b" Polzin
next reply other threads:[~1997-12-15 9:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-15 9:34 Tobias Polzin [this message]
1997-12-15 10:37 ` Richard Henderson
1997-12-15 11:59 Tobias Polzin
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=9712151734.AA15549@occam.informatik.uni-dortmund.de \
--to=polzin00@marvin.informatik.uni-dortmund.de \
--cc=egcs@cygnus.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).