This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Commit: MSP430: Pass -md on to assembler
- From: DJ Delorie <dj at redhat dot com>
- To: Mike Stump <mikestump at comcast dot net>
- Cc: nickc at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Sep 2013 13:38:18 -0400
- Subject: Re: Commit: MSP430: Pass -md on to assembler
- Authentication-results: sourceware.org; auth=none
- References: <87bo3q3697 dot fsf at redhat dot com> <762529D8-82F8-4027-926B-E367AB72C660 at comcast dot net> <523B189E dot 7030905 at redhat dot com> <AF7D9CCD-7921-4D47-90B7-9BA83A0AE30A at comcast dot net> <523C2D6C dot 5050406 at redhat dot com> <588686F0-EACF-412D-9DEA-3DC2968F87BE at comcast dot net> <52405D47 dot 5010104 at redhat dot com> <C29541F7-FF1D-4765-AA17-6D50F73FD16D at comcast dot net>
> If we instead ask, is it sane for gcc to ever want to signed extend
> in this case,
IIRC I've seen this due to the fact that pointer math is always
signed, and since gcc has no way of having a PSImode-sized size_t, all
pointer math is done in signed SImode, then the result is truncated to
PSImode.