This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/5969: When function is declared func(unsigned char v), v isn't truncated
- From: sirl at gcc dot gnu dot org
- To: dash at xdr dot com, dberlin at sources dot redhat dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org
- Date: 28 Mar 2002 22:42:04 -0000
- Subject: Re: optimization/5969: When function is declared func(unsigned char v), v isn't truncated
- Reply-to: sirl at gcc dot gnu dot org, dash at xdr dot com, dberlin at sources dot redhat dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: When function is declared func(unsigned char v), v isn't truncated
State-Changed-From-To: feedback->closed
State-Changed-By: sirl
State-Changed-When: Thu Mar 28 14:42:04 2002
State-Changed-Why:
not-a-bug.
The ABI on this platform requires the caller to do the
truncation, for obvious optimization reasons. Thus the caller
has to "know" (eg. via prototypes) how to truncate/sign-extend
the arguments passed to the callee.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5969