bug-gnulib
[Top][All Lists]
Advanced

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

Re: c99 and IRIX


From: Bruno Haible
Subject: Re: c99 and IRIX
Date: Thu, 24 Aug 2017 13:27:13 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-91-generic; KDE/5.18.0; x86_64; ; )

On IRIX 6.5 with cc:

Even with the c99 dependency, the compiler produces this error:

cc -32 -DHAVE_CONFIG_H -I. -I../../gllib -I..  -DGNULIB_STRICT_CHECKING=1 
-I/u/guest/bruno/prefix-32-cc/include  -g -c -o glob.o ../../gllib/glob.c
cfe: Warning 728: ./stddef.h, line 104: Long double not supported; double 
assumed.
   long double __ld  ;
 --^
cfe: Error: ../../gllib/glob_internal.h, line 24: Syntax Error
 {
 ^

This is a problem with 'static inline'. Adding AC_REQUIRE([AC_C_INLINE])
helps on this one, but the compilation fails a little later:

cc -32 -DHAVE_CONFIG_H -I. -I../../gllib -I..  -DGNULIB_STRICT_CHECKING=1 
-I/u/guest/bruno/prefix-32-cc/include  -g -c -o glob.o ../../gllib/glob.c
cfe: Warning 728: ./stddef.h, line 104: Long double not supported; double 
assumed.
   long double __ld  ;
 --^
cfe: Error: ../../gllib/glob.c, line 178: Syntax Error
   struct readdir_result result = {                                            
source->d_name,                                               (source)->d_ino 
== 0,                  } ;
 --^
cfe: Error: ../../gllib/glob.c, line 565: Syntax Error
       signed char   drive_root = 0 ;
 ------^
cfe: Error: ../../gllib/glob.c, line 1630: Syntax Error
               for (size_t i = 0; i < cur; ++i)
 -------------------^

It doesn't grok
  - the READDIR_RESULT_INITIALIZER, i.e. brace initializer syntax,
  - declaration-after-statement syntax,
  - 'for' with variable declaration.

Should we bury the support for IRIX cc? (There is also a gcc on the machine
I have access to.)

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]