This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc.dg/ipa/ipa-5.c
- From: Ian Lance Taylor <ian at airs dot com>
- To: Razya Ladelsky <RAZYA at il dot ibm dot com>
- Cc: gcc at gcc dot gnu dot org, Andreas Jaeger <aj at suse dot de>, Michael Ritzert <gcc at server2 dot mailsys dot de>
- Date: 23 Oct 2005 21:41:26 -0700
- Subject: Re: gcc.dg/ipa/ipa-5.c
- References: <OF08E18664.FF120E26-ONC22570A3.002F4130-C22570A3.00303E05@il.ibm.com>
Razya Ladelsky <RAZYA@il.ibm.com> writes:
> It does not fail for power and I'm trying to figure out why it fails for
> x86 architecture.
> It appears that the type of the constant being passed to a function having
> a short parameter, is an int while I expected it to be short.
>
> call to g : g (a, 3);
> definition of g : int g (float b, short c)
>
> I am not sure which part of the compiler is responsible to have the the
> types matched, but I think they should at this point.
Sounds like TARGET_PROMOTE_PROTOTYPES.
Ian