* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
@ 2021-09-29 13:46 ` ro at gcc dot gnu.org
2021-09-29 14:28 ` dje at gcc dot gnu.org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ro at gcc dot gnu.org @ 2021-09-29 13:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
Rainer Orth <ro at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
2021-09-29 13:46 ` [Bug bootstrap/102527] " ro at gcc dot gnu.org
@ 2021-09-29 14:28 ` dje at gcc dot gnu.org
2021-09-29 14:31 ` aldyh at gcc dot gnu.org
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: dje at gcc dot gnu.org @ 2021-09-29 14:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
David Edelsohn <dje at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dje at gcc dot gnu.org
Ever confirmed|0 |1
Last reconfirmed| |2021-09-29
Status|UNCONFIRMED |NEW
--- Comment #1 from David Edelsohn <dje at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
2021-09-29 13:46 ` [Bug bootstrap/102527] " ro at gcc dot gnu.org
2021-09-29 14:28 ` dje at gcc dot gnu.org
@ 2021-09-29 14:31 ` aldyh at gcc dot gnu.org
2021-09-29 14:33 ` ro at CeBiTec dot Uni-Bielefeld.DE
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-09-29 14:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
(In reply to David Edelsohn from comment #1)
> Confirmed.
I don't have access to an i386-solaris box.
David, how were you able to reproduce?
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (2 preceding siblings ...)
2021-09-29 14:31 ` aldyh at gcc dot gnu.org
@ 2021-09-29 14:33 ` ro at CeBiTec dot Uni-Bielefeld.DE
2021-09-29 15:06 ` aldyh at gcc dot gnu.org
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2021-09-29 14:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
> (In reply to David Edelsohn from comment #1)
>> Confirmed.
>
> I don't have access to an i386-solaris box.
... and there's none in the cfarm unfortunately, and sparc-solaris is
unaffected.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (3 preceding siblings ...)
2021-09-29 14:33 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2021-09-29 15:06 ` aldyh at gcc dot gnu.org
2021-09-29 15:18 ` aldyh at gcc dot gnu.org
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-09-29 15:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
(In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #3)
> > --- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
> > (In reply to David Edelsohn from comment #1)
> >> Confirmed.
> >
> > I don't have access to an i386-solaris box.
>
> ... and there's none in the cfarm unfortunately, and sparc-solaris is
> unaffected.
Ughh..
Can it be reproduced on a cross? If so, could you post the .ii file with your
include file peculiarities?
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (4 preceding siblings ...)
2021-09-29 15:06 ` aldyh at gcc dot gnu.org
@ 2021-09-29 15:18 ` aldyh at gcc dot gnu.org
2021-09-29 15:22 ` aldyh at gcc dot gnu.org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-09-29 15:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #5 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Created attachment 51518
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51518&action=edit
patch to help diagnose issue with -ftime-report
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (5 preceding siblings ...)
2021-09-29 15:18 ` aldyh at gcc dot gnu.org
@ 2021-09-29 15:22 ` aldyh at gcc dot gnu.org
2021-09-29 21:04 ` ro at gcc dot gnu.org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-09-29 15:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #6 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
The attached patch adds a separate TV_* timer to see the actual break down for
VRP and the VRP threader.
Could you incorporate this patch and run the problematic file with ./cc1
-ftime-report -O2? I'd like to see the table at the end. If you're so
inclined, could you also email me the entire -ftime-report so I can see the GC
output as it compiles?
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (6 preceding siblings ...)
2021-09-29 15:22 ` aldyh at gcc dot gnu.org
@ 2021-09-29 21:04 ` ro at gcc dot gnu.org
2021-09-29 21:05 ` ro at gcc dot gnu.org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ro at gcc dot gnu.org @ 2021-09-29 21:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #7 from Rainer Orth <ro at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #4)
> Can it be reproduced on a cross? If so, could you post the .ii file with
> your include file peculiarities?
I haven't tried, but expect it should work, provided you run on a 32-bit host
and perhaps limit VM consumption. I expect that depending on the host OSes
VM layout cc1plus may be able to use more of the 4 GB address space on one OS
than the other.
That said, there's a weird problem:
If I run a regular build, I get the `out of memory' error reported. Just
adding
-save-temps to the command line produces a couple of weird warnings/errors:
/var/gcc/reghunt/master/gcc/config/i386/i386.md: In function ‘rtx_insn*
gen_split_495(rtx_insn*, rtx_def**)’:
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this statement
may fall through [-Werror=implicit-fallthrough=]
20130 | code = swap_condition (code);
| ~~~~~~~~~~~~~~~^~~~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here
20133 | case GE: case GEU:
| ^~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md: In function ‘rtx_insn*
gen_split_496(rtx_insn*, rtx_def**)’:
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this statement
may fall through [-Werror=implicit-fallthrough=]
20130 | code = swap_condition (code);
| ~~~~~~~~~~~~~~~^~~~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here
20133 | case GE: case GEU:
| ^~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md: In function ‘rtx_insn*
gen_split_497(rtx_insn*, rtx_def**)’:
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this statement
may fall through [-Werror=implicit-fallthrough=]
20130 | code = swap_condition (code);
| ~~~~~~~~~~~~~~~^~~~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here
20133 | case GE: case GEU:
| ^~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md: In function ‘rtx_insn*
gen_split_498(rtx_insn*, rtx_def**)’:
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this statement
may fall through [-Werror=implicit-fallthrough=]
20130 | code = swap_condition (code);
| ~~~~~~~~~~~~~~~^~~~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here
20133 | case GE: case GEU:
| ^~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md: In function ‘rtx_insn*
gen_split_499(rtx_insn*, rtx_def**)’:
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this statement
may fall through [-Werror=implicit-fallthrough=]
20130 | code = swap_condition (code);
| ~~~~~~~~~~~~~~~^~~~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here
20133 | case GE: case GEU:
| ^~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md: In function ‘rtx_insn*
gen_split_500(rtx_insn*, rtx_def**)’:
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this statement
may fall through [-Werror=implicit-fallthrough=]
20130 | code = swap_condition (code);
| ~~~~~~~~~~~~~~~^~~~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here
20133 | case GE: case GEU:
| ^~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md: In function ‘rtx_insn*
gen_split_501(rtx_insn*, rtx_def**)’:
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this statement
may fall through [-Werror=implicit-fallthrough=]
20130 | code = swap_condition (code);
| ~~~~~~~~~~~~~~~^~~~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here
20133 | case GE: case GEU:
| ^~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md: In function ‘rtx_insn*
gen_split_502(rtx_insn*, rtx_def**)’:
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20130:29: error: this statement
may fall through [-Werror=implicit-fallthrough=]
20130 | code = swap_condition (code);
| ~~~~~~~~~~~~~~~^~~~~~
/var/gcc/reghunt/master/gcc/config/i386/i386.md:20133:5: note: here
20133 | case GE: case GEU:
| ^~~~
/var/gcc/reghunt/master/gcc/config/i386/sse.md: In function ‘rtx_insn*
gen_split_2186(rtx_insn*, rtx_def**)’:
/var/gcc/reghunt/master/gcc/config/i386/sse.md:18256:19: error: this statement
may fall through [-Werror=implicit-fallthrough=]
18256 | operands[1] = tmp;
| ~~~~~~~~~~~~^~~~~
/var/gcc/reghunt/master/gcc/config/i386/sse.md:18258:5: note: here
18258 | case 32:
| ^~~~
/var/gcc/reghunt/master/gcc/config/i386/sse.md: In function ‘rtx_insn*
gen_split_2187(rtx_insn*, rtx_def**)’:
/var/gcc/reghunt/master/gcc/config/i386/sse.md:18256:19: error: this statement
may fall through [-Werror=implicit-fallthrough=]
18256 | operands[1] = tmp;
| ~~~~~~~~~~~~^~~~~
/var/gcc/reghunt/master/gcc/config/i386/sse.md:18258:5: note: here
18258 | case 32:
| ^~~~
and (if adding -Wno-error to avoid that) while cc1plus still consumes in excess
of 3 GB VM space, the compilation finally succeeds.
I'm attaching the preprocessed output nonetheless; maybe it's still helpful.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (7 preceding siblings ...)
2021-09-29 21:04 ` ro at gcc dot gnu.org
@ 2021-09-29 21:05 ` ro at gcc dot gnu.org
2021-09-29 22:15 ` ro at gcc dot gnu.org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ro at gcc dot gnu.org @ 2021-09-29 21:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #8 from Rainer Orth <ro at gcc dot gnu.org> ---
Created attachment 51521
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51521&action=edit
i386-pc-solaris2.11 insn-emit.ii
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (8 preceding siblings ...)
2021-09-29 21:05 ` ro at gcc dot gnu.org
@ 2021-09-29 22:15 ` ro at gcc dot gnu.org
2021-09-29 22:16 ` ro at gcc dot gnu.org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ro at gcc dot gnu.org @ 2021-09-29 22:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #9 from Rainer Orth <ro at gcc dot gnu.org> ---
Created attachment 51522
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51522&action=edit
insn-emit.ii -ftime-report output
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (9 preceding siblings ...)
2021-09-29 22:15 ` ro at gcc dot gnu.org
@ 2021-09-29 22:16 ` ro at gcc dot gnu.org
2021-09-30 0:19 ` aldyh at redhat dot com
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ro at gcc dot gnu.org @ 2021-09-29 22:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #10 from Rainer Orth <ro at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #6)
> The attached patch adds a separate TV_* timer to see the actual break down
> for VRP and the VRP threader.
>
> Could you incorporate this patch and run the problematic file with ./cc1
> -ftime-report -O2? I'd like to see the table at the end. If you're so
> inclined, could you also email me the entire -ftime-report so I can see the
> GC output as it compiles?
Sure: I've attached the output of
cc1plus -fpreprocessed insn-emit.ii -quiet -mtune=generic -march=pentium4 -g
-O2 -o insn-emit.s -ftime-report
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (10 preceding siblings ...)
2021-09-29 22:16 ` ro at gcc dot gnu.org
@ 2021-09-30 0:19 ` aldyh at redhat dot com
2021-09-30 6:22 ` aldyh at gcc dot gnu.org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: aldyh at redhat dot com @ 2021-09-30 0:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #11 from Aldy Hernandez <aldyh at redhat dot com> ---
This looks mighty suspicious ;-)
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index 69a3ab0ea9d..c24c67f8874 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -4408,6 +4408,7 @@ hybrid_threader::~hybrid_threader ()
delete m_threader;
delete m_state;
delete m_ranger;
+ delete m_query;
scev_finalize ();
loop_optimizer_finalize ();
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (11 preceding siblings ...)
2021-09-30 0:19 ` aldyh at redhat dot com
@ 2021-09-30 6:22 ` aldyh at gcc dot gnu.org
2021-09-30 10:29 ` ro at CeBiTec dot Uni-Bielefeld.DE
2021-09-30 10:46 ` aldyh at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-09-30 6:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #12 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #11)
> This looks mighty suspicious ;-)
>
> diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
> index 69a3ab0ea9d..c24c67f8874 100644
> --- a/gcc/tree-vrp.c
> +++ b/gcc/tree-vrp.c
> @@ -4408,6 +4408,7 @@ hybrid_threader::~hybrid_threader ()
> delete m_threader;
> delete m_state;
> delete m_ranger;
> + delete m_query;
>
> scev_finalize ();
> loop_optimizer_finalize ();
FWIW, all the patches so far proposed have been pushed to trunk, if you want to
try again.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (12 preceding siblings ...)
2021-09-30 6:22 ` aldyh at gcc dot gnu.org
@ 2021-09-30 10:29 ` ro at CeBiTec dot Uni-Bielefeld.DE
2021-09-30 10:46 ` aldyh at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2021-09-30 10:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
--- Comment #13 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #12 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
> (In reply to Aldy Hernandez from comment #11)
>> This looks mighty suspicious ;-)
>>
>> diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
>> index 69a3ab0ea9d..c24c67f8874 100644
>> --- a/gcc/tree-vrp.c
>> +++ b/gcc/tree-vrp.c
>> @@ -4408,6 +4408,7 @@ hybrid_threader::~hybrid_threader ()
>> delete m_threader;
>> delete m_state;
>> delete m_ranger;
>> + delete m_query;
>>
>> scev_finalize ();
>> loop_optimizer_finalize ();
>
> FWIW, all the patches so far proposed have been pushed to trunk, if you want to
> try again.
This has done the trick: current master bootstraps again on
i386-pc-solaris2.11.
Thanks.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug bootstrap/102527] [12 regression] out of memory compiling insn-emit.c
2021-09-29 13:45 [Bug bootstrap/102527] New: [12 regression] out of memory compiling insn-emit.c ro at gcc dot gnu.org
` (13 preceding siblings ...)
2021-09-30 10:29 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2021-09-30 10:46 ` aldyh at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-09-30 10:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #14 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
fixed
^ permalink raw reply [flat|nested] 16+ messages in thread