Re: fixincludes issue with gcc 4.4.2 build on centos 5.5. 32-bit /i686

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

 



On Mon, Dec 20, 2010 at 5:22 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> Hari Kodungallur <hari.mailinglists@xxxxxxxxx> writes:
>
>>>From <sys/stat.h>:
>> =================
>>
>> ...
>> ...
>> ...
>>
>> #ifndef __USE_FILE_OFFSET64
>> /* Get file attributes for FILE and put them in BUF.  */
>> extern int stat (__const char *__restrict __file,
>>                 struct stat *__restrict __buf) __THROW __nonnull ((1, 2));
>>
>
>>>From fixed sys/stat.h:
>> ======================
>>
>> ...
>> ...
>> ...
>>
>> #ifndef __USE_FILE_OFFSET64
>> /* Get file attributes for FILE and put them in BUF.  */
>> #ifdef __GNUC_GNU_INLINE__
>> extern
>> #endif
>> __inline__ int stat (__const char *__restrict __file,
>>                 struct stat *__restrict __buf) __THROW __nonnull ((1, 2));
>
> This is pretty clearly a bug when using fixincludes with an older
> version of glibc.  As far as I can see the bug still exists in the
> current sources.  Can you open a bug report for this?  See
> http://gcc.gnu.org/bugs/ . Thanks.
>

OK, I'll file a bug. Thanks much Ian.

I'm wondering what the desired behaviour is? Keep them as "extern int"?

Thanks,
-Hari



[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