libiberty doesn't build with a K+R compiler

Zack Weinberg zackw@stanford.edu
Mon May 7 09:18:00 GMT 2001


The rather chatty HPUX bundled K+R compiler objects to demangle.h:

/usr/ccs/bin/cc -c -DHAVE_CONFIG_H -g -I. -I../../gcc/libiberty/../include   ../../gcc/libiberty/cplus-dem.c
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C product; ignored.
(Bundled) cc: "../../gcc/libiberty/../include/demangle.h", line 142: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "../../gcc/libiberty/../include/demangle.h", line 155: error 1705: Function prototypes are an ANSI feature.
*** Error exit code 1

and ternary.c:

(Bundled) cc: "../../gcc/libiberty/../include/ternary.h", line 41: error 1000: Unexpected symbol: "*".
(Bundled) cc: "../../gcc/libiberty/../include/ternary.h", line 45: error 1000: Unexpected symbol: "p".
(Bundled) cc: "../../gcc/libiberty/../include/ternary.h", line 49: error 1000: Unexpected symbol: "p".
(Bundled) cc: "../../gcc/libiberty/ternary.c", line 37: error 1000: Unexpected symbol: "*".
(Bundled) cc: "../../gcc/libiberty/../include/ternary.h", line 41: error 1705: Function prototypes are an ANSI feature.
[etc, etc - 90 lines or so]

I can work around this by building individual modules with the 
'C/ANSI C product' which happens to be installed too, but.

hppa2.0n-hp-hpux11.00, but I doubt it matters.

-- 
zw   The beginning of almost every story is actually a bone, something with
     which to court the dog, which may bring you closer to the lady.
     	-- Amos Oz, _The Story Begins_



More information about the Gcc-bugs mailing list