Re: Strange warning about passing argument with different width due to prototype with gcc 4.4.0 on 64 bits machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/8/24 José Luis García Pallero <jgpallero@xxxxxxxxx>:
> El día 24 de agosto de 2010 14:49, Tiago Maluta
> <tiago.maluta@xxxxxxxxx> escribió:
>> 2010/8/24 José Luis García Pallero <jgpallero@xxxxxxxxx>:
>>
>>>
>>> Can someone reproduce the behaviour?
>>>
>>
>> I reproduced your behavior. Running your test case with gcc 4.3.1 on
>> Gentoo all goes fine, but with gcc 4.2.1 on MacOSX the warning shows
>> up.
>
> I didn't remember that I have MacOSX 10.4 installed in my iBook G4.
> The gcc installed is 4.0.1. And as Tiago, the warning shows up. But
> only the warning concerning the char input argument. But in my
> workstation Xeon 64 bits tha warning appears for char arguments and
> for the long argument without explicit cast.
>

Just to complement, both tests (Gentoo and OSX) were under x86.
I also tested with one GCC release that I compiled:

$ gcc -v
gcc version 4.6.0 20100508 (experimental)

And your test case compilation goes _without_ any gcc warning.

--tm



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux