This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Need Help with Memory Exhaustion During Compile
- From: Jeffrey Walton <noloader at gmail dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 5 Jul 2013 03:53:35 -0400
- Subject: Re: Need Help with Memory Exhaustion During Compile
- References: <CAH8yC8nD07uLy0kLEnnN6iTctn8EO7i6i_0ZVVpfPbSx_O_MrQ at mail dot gmail dot com> <51D54FA2 dot 8040805 at redhat dot com>
- Reply-to: noloader at gmail dot com
On Thu, Jul 4, 2013 at 6:34 AM, Andrew Haley <aph@redhat.com> wrote:
> On 07/04/2013 11:07 AM, Jeffrey Walton wrote:
>> What can I do to try and isolate the problem?
>
> The problem is obvious: all those macros expand to some truly
> ridiculous code. You can see this with "g++ -E"
Thanks Andrew.
The odd thing is, other compilers (GCC, ICC/ICPC, Clang, and MSVC) can
compile the file. I only have the problem with Apple's gcc/g++, which
is llvm-gcc. Once I switched to clang/clang++, the problem went away.
Jeff