target/378: [AIX 4.3.2] gcc cannot compile large c file

Geoff Keating geoffk@geoffk.org
Mon Sep 24 16:05:00 GMT 2001


The problem is that there is a limit of about 8192 static variables
that can be referenced from one procedure with GCC under AIX.

It might help if instead of the lines like:

static vec32 *C44be3b83 =  &(Consvec32.y[538]);

you could produce

static const vec32 *C44be3b83 =  &(Consvec32.y[538]);

or, even better,

#define C44be3b83 (&(Consvec32.y[538]))

these would produce more efficient code if they are feasible.

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Gcc-bugs mailing list