This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Out of memory when compiling a function with many goto labels (50k > )
- From: Andrew Haley <aph at redhat dot com>
- To: Kangkook Jee <jikk at cs dot columbia dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 28 Jan 2013 09:33:56 +0000
- Subject: Re: Out of memory when compiling a function with many goto labels (50k > )
- References: <BAABC6EC-B48C-44D1-BFC9-846218E2578F@cs.columbia.edu>
On 01/25/2013 08:35 PM, Kangkook Jee wrote:
> As you can see from the above, -O1 option trigger the problem while -O0
> doesn't.
>
> Could you anyone tell me how to workaround this situation? Or which specific
> optimization option causes the issue?
It seems to happen when we're computing alias sets. GCC really should bail
out when the CFG gets to be so huge. It's worth submitting a bug.
Andrew.