[Bug rtl-optimization/63191] [4.8/4.9/5 Regression] 32-bit gcc uses excessive memory during dead store elimination with -fPIC
steven at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 7 21:30:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63191
--- Comment #6 from Steven Bosscher <steven at gcc dot gnu.org> ---
(In reply to woodfin from comment #5)
> You could try adding a non-static function that returns an address inside Zs.
>
> const Z* getzs() {
> return &Zs[0];
> }
Yes, that does the trick:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25244 stevenb 20 0 5964m 5.8g 30m R 100 9.3 25:03.60 cc1plus
(and counting)
Now let's see if I can come up with a more reasonable test case...
More information about the Gcc-bugs
mailing list