This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc/dependence.c problem on HP-UX 10.20


With the HP-UX 10.20 commercial C compiler:
cc -Ae -c  -DIN_GCC    -g   -DHAVE_CONFIG_H    -I. -I../../gcc
-I../../gcc/config -I../../gcc/../include ../../gcc/dependence.c
cc: "../../gcc/dependence.c", line 199: error 1501: Only the first
dimension of an array may be omitted.
cc: "../../gcc/dependence.c", line 199: error 1501: Only the first
dimension of an array may be omitted.
cc: "../../gcc/dependence.c", line 201: error 1501: Only the first
dimension of an array may be omitted.
cc: "../../gcc/dependence.c", line 201: error 1501: Only the first
dimension of an array may be omitted.
cc: "../../gcc/dependence.c", line 204: error 1501: Only the first
dimension of an array may be omitted.
cc: "../../gcc/dependence.c", line 204: error 1501: Only the first
dimension of an array may be omitted.
cc: "../../gcc/dependence.c", line 207: error 1501: Only the first
dimension of an array may be omitted.
cc: "../../gcc/dependence.c", line 207: error 1501: Only the first
dimension of an array may be omitted.

Line 199 of gcc/dependence.c:
static void ziv_test PARAMS ((subscript[], subscript[],
  enum direction_type[][], int[][], loop*, int));

I tried a test compile of:
  static void foo (int[][]);
with Solaris CC v5, Digital UNIX CC, IRIX 7.3.1.1m CC, HP-UX 11.00 CC
and only Solaris CC v5 would accept the above. GCC 2.95.2 -ansi
-pedantic accepted it.

-- 
albert chin (china@thewrittenword.com)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]