Jeffrey Walton wrote:
> xlc had its own personality.

Yuck. Claims to support ISO C 99, but in fact doesn't: it can't grok
ISO C 99 compound literals and thus does not compile current GNU coreutils:

xlc -q64 -qthreaded -qtls -qlanglvl=extc1x -I. -I.. -I./lib  -Ilib -I../lib 
-Isrc -I../src -I/home/haible/prefix64/include -D_THREAD_SAFE   -g -c -o 
src/ls.o ../src/ls.c
"../src/ls.c", line 628.27: 1506-196 (W) Initialization between types "const 
char*" and "int" is not allowed.
"../src/ls.c", line 628.34: 1506-026 (S) Number of initializers cannot be 
greater than the number of aggregate members.

where ls.c has code like this:

static struct bin_str color_indicator[] =
  {
    { 2, (char const []) {'\033','['} },
    { 1, (char const []) {'m'} },
    ...



_______________________________________________
cfarm-users mailing list
[email protected]
https://lists.tetaneutral.net/listinfo/cfarm-users

Reply via email to