* [Bug tree-optimization/100509] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types
2021-05-10 19:34 [Bug c/100509] New: ICE at -O3: in fold_convert_loc, at fold-const.c:2552 cnsun at uwaterloo dot ca
@ 2021-05-10 21:15 ` pinskia at gcc dot gnu.org
2021-05-11 7:07 ` rguenth at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-05-10 21:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100509
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Chengnian Sun from comment #0)
> Not sure whether this is a dup of PR96131.
It is unrelated.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/100509] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types
2021-05-10 19:34 [Bug c/100509] New: ICE at -O3: in fold_convert_loc, at fold-const.c:2552 cnsun at uwaterloo dot ca
2021-05-10 21:15 ` [Bug tree-optimization/100509] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types pinskia at gcc dot gnu.org
@ 2021-05-11 7:07 ` rguenth at gcc dot gnu.org
2021-05-11 8:09 ` marxin at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-11 7:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100509
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
Last reconfirmed| |2021-05-11
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look. The code is border-line valid only, the alias ties objects
of incompatible type. It goes wrong during fold_gimple_assign which eventually
calls get_symbol_constant_value.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/100509] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types
2021-05-10 19:34 [Bug c/100509] New: ICE at -O3: in fold_convert_loc, at fold-const.c:2552 cnsun at uwaterloo dot ca
2021-05-10 21:15 ` [Bug tree-optimization/100509] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types pinskia at gcc dot gnu.org
2021-05-11 7:07 ` rguenth at gcc dot gnu.org
@ 2021-05-11 8:09 ` marxin at gcc dot gnu.org
2021-05-11 10:48 ` cvs-commit at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-05-11 8:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100509
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r5-4443-g016adb0549c554d7.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/100509] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types
2021-05-10 19:34 [Bug c/100509] New: ICE at -O3: in fold_convert_loc, at fold-const.c:2552 cnsun at uwaterloo dot ca
` (2 preceding siblings ...)
2021-05-11 8:09 ` marxin at gcc dot gnu.org
@ 2021-05-11 10:48 ` cvs-commit at gcc dot gnu.org
2021-05-11 10:49 ` [Bug tree-optimization/100509] [9/10/11 Regression] " rguenth at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-11 10:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100509
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:ca8e8301180fa71de1a76769fc038df2ab85dfeb
commit r12-712-gca8e8301180fa71de1a76769fc038df2ab85dfeb
Author: Richard Biener <rguenther@suse.de>
Date: Tue May 11 10:58:35 2021 +0200
middle-end/100509 - avoid folding constant to aggregate type
When folding a constant initializer looking through aliases to
incompatible types can lead to us trying to fold a constant
to an aggregate type which can't work. Simply avoid trying
to constant fold non-register typed symbols.
2021-05-11 Richard Biener <rguenther@suse.de>
PR middle-end/100509
* gimple-fold.c (fold_gimple_assign): Only call
get_symbol_constant_value on register type symbols.
* gcc.dg/pr100509.c: New testcase.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/100509] [9/10/11 Regression] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types
2021-05-10 19:34 [Bug c/100509] New: ICE at -O3: in fold_convert_loc, at fold-const.c:2552 cnsun at uwaterloo dot ca
` (3 preceding siblings ...)
2021-05-11 10:48 ` cvs-commit at gcc dot gnu.org
@ 2021-05-11 10:49 ` rguenth at gcc dot gnu.org
2021-05-25 8:07 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-11 10:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100509
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |9.4
Summary|ICE at -O3: in |[9/10/11 Regression] ICE at
|fold_convert_loc with |-O3: in fold_convert_loc
|variable (attribute) alias |with variable (attribute)
|of different types |alias of different types
Known to work| |12.0
Priority|P3 |P2
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/100509] [9/10/11 Regression] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types
2021-05-10 19:34 [Bug c/100509] New: ICE at -O3: in fold_convert_loc, at fold-const.c:2552 cnsun at uwaterloo dot ca
` (4 preceding siblings ...)
2021-05-11 10:49 ` [Bug tree-optimization/100509] [9/10/11 Regression] " rguenth at gcc dot gnu.org
@ 2021-05-25 8:07 ` cvs-commit at gcc dot gnu.org
2021-06-01 8:20 ` [Bug tree-optimization/100509] [9/10 " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-25 8:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100509
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:3870fe246f442d795ef2270c74f56dda9d0be26c
commit r11-8463-g3870fe246f442d795ef2270c74f56dda9d0be26c
Author: Richard Biener <rguenther@suse.de>
Date: Tue May 11 10:58:35 2021 +0200
middle-end/100509 - avoid folding constant to aggregate type
When folding a constant initializer looking through aliases to
incompatible types can lead to us trying to fold a constant
to an aggregate type which can't work. Simply avoid trying
to constant fold non-register typed symbols.
2021-05-11 Richard Biener <rguenther@suse.de>
PR middle-end/100509
* gimple-fold.c (fold_gimple_assign): Only call
get_symbol_constant_value on register type symbols.
* gcc.dg/pr100509.c: New testcase.
(cherry picked from commit ca8e8301180fa71de1a76769fc038df2ab85dfeb)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/100509] [9/10 Regression] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types
2021-05-10 19:34 [Bug c/100509] New: ICE at -O3: in fold_convert_loc, at fold-const.c:2552 cnsun at uwaterloo dot ca
` (5 preceding siblings ...)
2021-05-25 8:07 ` cvs-commit at gcc dot gnu.org
@ 2021-06-01 8:20 ` rguenth at gcc dot gnu.org
2021-06-16 14:24 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01 8:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100509
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.4 |9.5
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/100509] [9/10 Regression] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types
2021-05-10 19:34 [Bug c/100509] New: ICE at -O3: in fold_convert_loc, at fold-const.c:2552 cnsun at uwaterloo dot ca
` (6 preceding siblings ...)
2021-06-01 8:20 ` [Bug tree-optimization/100509] [9/10 " rguenth at gcc dot gnu.org
@ 2021-06-16 14:24 ` cvs-commit at gcc dot gnu.org
2021-10-13 10:09 ` [Bug tree-optimization/100509] [9 " cvs-commit at gcc dot gnu.org
2021-10-13 10:10 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-16 14:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100509
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:cd712310edc2ffeec8982ba5f9aeaa0b14e93cf1
commit r10-9921-gcd712310edc2ffeec8982ba5f9aeaa0b14e93cf1
Author: Richard Biener <rguenther@suse.de>
Date: Tue May 11 10:58:35 2021 +0200
middle-end/100509 - avoid folding constant to aggregate type
When folding a constant initializer looking through aliases to
incompatible types can lead to us trying to fold a constant
to an aggregate type which can't work. Simply avoid trying
to constant fold non-register typed symbols.
2021-05-11 Richard Biener <rguenther@suse.de>
PR middle-end/100509
* gimple-fold.c (fold_gimple_assign): Only call
get_symbol_constant_value on register type symbols.
* gcc.dg/pr100509.c: New testcase.
(cherry picked from commit ca8e8301180fa71de1a76769fc038df2ab85dfeb)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/100509] [9 Regression] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types
2021-05-10 19:34 [Bug c/100509] New: ICE at -O3: in fold_convert_loc, at fold-const.c:2552 cnsun at uwaterloo dot ca
` (7 preceding siblings ...)
2021-06-16 14:24 ` cvs-commit at gcc dot gnu.org
@ 2021-10-13 10:09 ` cvs-commit at gcc dot gnu.org
2021-10-13 10:10 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-13 10:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100509
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:379382c438652b594f0e91a61dbfce05eab080bd
commit r9-9768-g379382c438652b594f0e91a61dbfce05eab080bd
Author: Richard Biener <rguenther@suse.de>
Date: Tue May 11 10:58:35 2021 +0200
middle-end/100509 - avoid folding constant to aggregate type
When folding a constant initializer looking through aliases to
incompatible types can lead to us trying to fold a constant
to an aggregate type which can't work. Simply avoid trying
to constant fold non-register typed symbols.
2021-05-11 Richard Biener <rguenther@suse.de>
PR middle-end/100509
* gimple-fold.c (fold_gimple_assign): Only call
get_symbol_constant_value on register type symbols.
* gcc.dg/pr100509.c: New testcase.
(cherry picked from commit ca8e8301180fa71de1a76769fc038df2ab85dfeb)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/100509] [9 Regression] ICE at -O3: in fold_convert_loc with variable (attribute) alias of different types
2021-05-10 19:34 [Bug c/100509] New: ICE at -O3: in fold_convert_loc, at fold-const.c:2552 cnsun at uwaterloo dot ca
` (8 preceding siblings ...)
2021-10-13 10:09 ` [Bug tree-optimization/100509] [9 " cvs-commit at gcc dot gnu.org
@ 2021-10-13 10:10 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-10-13 10:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100509
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Known to fail| |9.4.0
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 11+ messages in thread