[Bug target/378] [AIX] gcc cannot compile huge c file

2014-04-01 Thread Doug at CSFi dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=378

Doug Dawson  changed:

   What|Removed |Added

 CC||Doug at CSFi dot com

--- Comment #10 from Doug Dawson  ---
Has any progress been made on this bug? It still affects AIX 6.1 on gcc Version
4.7.2 compiling a 64 Bit gSOAP generated source.

AIX:doug:1> oslevel
6.1.0.0
AIX:doug:1> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix6.1.0.0/4.7.2/lto-wrapper
Target: powerpc-ibm-aix6.1.0.0
Configured with: configure --prefix=/opt/freeware --enable-languages=c,c++
--enable-threads=posix --disable-nls --with-gmp=/opt/freeware
--with-mpfr=/opt/freeware --with-mpc=/opt/freeware --disable-libstdcxx-pch
Thread model: aix
gcc version 4.7.2 (GCC)
AIX:doug:1>


[Bug target/378] [AIX] gcc cannot compile huge c file

2014-04-01 Thread Doug at CSFi dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=378

--- Comment #12 from Doug Dawson  ---
(In reply to David Edelsohn from comment #11)
> Recent releases of GCC are built with linker options to allow larger data
> section. Are the user process limits (ulimit) set large enough?  One could
> rebuild GCC cc1 and cc1plus with even larger -bmaxdata value (or patch the
> binary with a larger value), but it's not clear which limit is hit.

Current ulimit values:

core file size  (blocks, -c) 1048575
data seg size   (kbytes, -d) 262144
file size   (blocks, -f) 2097151
max memory size (kbytes, -m) 32768
open files  (-n) 2000
pipe size(512 bytes, -p) 64
stack size  (kbytes, -s) 131072
cpu time   (seconds, -t) unlimited
max user processes  (-u) unlimited
virtual memory  (kbytes, -v) unlimited


I changed the ulimits below, but had the same results. Note that this source
compiles as 32 Bit on AIX 5.3 using 'gcc version 4.2.4'.

ulimit -d 393216
ulimit -m 65536
ulimit -s 262144
ulimit -n 4000

/tmp//ccZ4WBed.s: line 2939315: 1252-171 The displacement must be greater than
or equal to
-32768 and less than or equal to 32767.

When you say rebuild GCC cc1/cc1plus with even larger -bmaxdata, are you
refering to the AIX environmental 'export LDR_CNTRL=MAXDATA=0x5000'? Is
this the recommended value?