This is the mail archive of the
mailing list for the GCC project.
Re: RFA: xscale-elf -mstrict-prototypes
- From: Mark Mitchell <mark at codesourcery dot com>
- To: James Lemke <jim at wasabisystems dot com>
- Cc: gcc-patches at gcc dot gnu dot org, rearnsha at arm dot com
- Date: Tue, 02 Mar 2004 17:29:08 -0800
- Subject: Re: RFA: xscale-elf -mstrict-prototypes
- Organization: CodeSourcery, LLC
- References: <firstname.lastname@example.org> <4039240E.email@example.com> <firstname.lastname@example.org>
I am trying to avoid the overhead of conditioning a shorter-than-int
parameter in the callee.
Yes -- but I believe that is exactly the case that will be fixed in
AACPS. I might be wrong, though.
main (int argc, char *argv)
return addhi3 (40000, -50000);
This call will pass out of range values to addhi3 which is incorrect but
may happen in existing code.
We don't have to worry about that case, since, as you say, its invalid.
I believe that GCC is doing the conditioning at both the caller and
callee currently. It should be necessary to do it on only one side or
the other. Therefore, I think that we should eliminate that
duplication, rather than add -mstrict-prototypes.