[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
- Re: clang's Undefined Sanitizer, (continued)
- Re: clang's Undefined Sanitizer, Paul Eggert, 2017/08/22
- Re: clang's Undefined Sanitizer, Adhemerval Zanella, 2017/08/22
- Re: clang's Undefined Sanitizer, Paul Eggert, 2017/08/22
- Re: clang's Undefined Sanitizer, Adhemerval Zanella, 2017/08/22
- Re: clang's Undefined Sanitizer, Paul Eggert, 2017/08/23
- Re: clang's Undefined Sanitizer, Bruno Haible, 2017/08/24
- Re: clang's Undefined Sanitizer, Benno Schulenberg, 2017/08/24
- Re: clang's Undefined Sanitizer, Benno Schulenberg, 2017/08/27
- Re: clang's Undefined Sanitizer, Bruno Haible, 2017/08/27
- Re: clang's Undefined Sanitizer, Bruno Haible, 2017/08/24
- Re: c99 and IRIX,
Bruno Haible <=
- Re: c99 and IRIX, Paul Eggert, 2017/08/24
- Re: c99 and IRIX, Tom G. Christensen, 2017/08/29
- Re: clang's Undefined Sanitizer, Bruno Haible, 2017/08/24
- Re: clang's Undefined Sanitizer, Paul Eggert, 2017/08/25
- Re: clang's Undefined Sanitizer, Bruno Haible, 2017/08/27
- Re: clang's Undefined Sanitizer, Tim Rühsen, 2017/08/23
Re: Valgrind is complaining unitialized values in freea (malloca.c:135), Bruno Haible, 2017/08/22