Message ID | 7df63e6d-4ad9-9a5a-fcc1-4a141bb67f4b@codethink.co.uk |
---|---|
State | New |
Headers | show |
On 03/31/2017 05:42 AM, Sam Thursfield wrote: > When doing 64-bit builds of GCC on AIX, genautomata experiences malloc() > failures. It seems that a 512MB heap is no longer big enough. > > I also updated the comments in this file to match the values passed to > the linker. The AIX `ld` manual says this about the maxdata option: > > Sets the maximum size (in bytes) that is allowed for the user data > area (or user heap) when the executable program is run. > > So the comments were giving incorrect values. > > gcc/ > > * config/rs6000/x-aix: Increase memory limit for genautomata on AIX. > It has been experiencing malloc() failures during 64-bit compiler > builds. Also correct the comments. Thanks. I removed the comment about jc1 (Java was removed a while ago) and installed the rest of your patch onto the trunk. Jeff
diff --git a/gcc/config/rs6000/x-aix b/gcc/config/rs6000/x-aix index d40690f2da6..da465671ee6 100644 --- a/gcc/config/rs6000/x-aix +++ b/gcc/config/rs6000/x-aix @@ -1,6 +1,6 @@ -# genautomata requires more than 256MB of data -build/genautomata : override LDFLAGS += -Wl,-bmaxdata:0x20000000 +# genautomata requires more than 1GB of data +build/genautomata : override LDFLAGS += -Wl,-bmaxdata:0x40000000 -# jc1 requires more than 256MB of data +# jc1 requires more than 1GB of data $(COMPILERS) : override LDFLAGS += -Wl,-bmaxdata:0x40000000