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