* [Bug ipa/102762] [10/11/12 Regression] ICE with -O2: Segmentation fault, memcpy, copy_bb
2021-10-15 3:00 [Bug c/102762] New: ICE with -O2: Segmentation fault, memcpy, copy_bb cnsun at uwaterloo dot ca
@ 2021-10-15 3:27 ` pinskia at gcc dot gnu.org
2021-10-15 6:37 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-15 3:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102762
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |9.4.0
Target Milestone|--- |10.4
Summary|ICE with -O2: Segmentation |[10/11/12 Regression] ICE
|fault, memcpy, copy_bb |with -O2: Segmentation
| |fault, memcpy, copy_bb
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-10-15
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, this is invalid code since there is no varargs and foo is never
inlined.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/102762] [10/11/12 Regression] ICE with -O2: Segmentation fault, memcpy, copy_bb
2021-10-15 3:00 [Bug c/102762] New: ICE with -O2: Segmentation fault, memcpy, copy_bb cnsun at uwaterloo dot ca
2021-10-15 3:27 ` [Bug ipa/102762] [10/11/12 Regression] " pinskia at gcc dot gnu.org
@ 2021-10-15 6:37 ` rguenth at gcc dot gnu.org
2021-10-15 7:34 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-10-15 6:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102762
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |12.0
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixing the ICE is reasonably easy.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/102762] [10/11/12 Regression] ICE with -O2: Segmentation fault, memcpy, copy_bb
2021-10-15 3:00 [Bug c/102762] New: ICE with -O2: Segmentation fault, memcpy, copy_bb cnsun at uwaterloo dot ca
2021-10-15 3:27 ` [Bug ipa/102762] [10/11/12 Regression] " pinskia at gcc dot gnu.org
2021-10-15 6:37 ` rguenth at gcc dot gnu.org
@ 2021-10-15 7:34 ` cvs-commit at gcc dot gnu.org
2021-10-15 7:34 ` [Bug ipa/102762] [10/11 " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-15 7:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102762
--- Comment #3 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:11a4714860d2df6ba496d55379e7dc702d5fc425
commit r12-4430-g11a4714860d2df6ba496d55379e7dc702d5fc425
Author: Richard Biener <rguenther@suse.de>
Date: Fri Oct 15 08:41:57 2021 +0200
ipa/102762 - fix ICE with invalid __builtin_va_arg_pack () use
We have to be careful to not break the argument space calculation.
If there's not enough arguments just do not append any.
2021-10-15 Richard Biener <rguenther@suse.de>
PR ipa/102762
* tree-inline.c (copy_bb): Avoid underflowing nargs.
* gcc.dg/torture/pr102762.c: New testcase.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/102762] [10/11 Regression] ICE with -O2: Segmentation fault, memcpy, copy_bb
2021-10-15 3:00 [Bug c/102762] New: ICE with -O2: Segmentation fault, memcpy, copy_bb cnsun at uwaterloo dot ca
` (2 preceding siblings ...)
2021-10-15 7:34 ` cvs-commit at gcc dot gnu.org
@ 2021-10-15 7:34 ` rguenth at gcc dot gnu.org
2021-11-08 12:35 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-10-15 7:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102762
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |12.0
Summary|[10/11/12 Regression] ICE |[10/11 Regression] ICE with
|with -O2: Segmentation |-O2: Segmentation fault,
|fault, memcpy, copy_bb |memcpy, copy_bb
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/102762] [10/11 Regression] ICE with -O2: Segmentation fault, memcpy, copy_bb
2021-10-15 3:00 [Bug c/102762] New: ICE with -O2: Segmentation fault, memcpy, copy_bb cnsun at uwaterloo dot ca
` (3 preceding siblings ...)
2021-10-15 7:34 ` [Bug ipa/102762] [10/11 " rguenth at gcc dot gnu.org
@ 2021-11-08 12:35 ` cvs-commit at gcc dot gnu.org
2022-02-17 10:48 ` [Bug ipa/102762] [10 " cvs-commit at gcc dot gnu.org
2022-02-17 10:50 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-11-08 12:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102762
--- Comment #5 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:30c18bbfed2fae5ff89841172553951a74125f8e
commit r11-9226-g30c18bbfed2fae5ff89841172553951a74125f8e
Author: Richard Biener <rguenther@suse.de>
Date: Fri Oct 15 08:41:57 2021 +0200
ipa/102762 - fix ICE with invalid __builtin_va_arg_pack () use
We have to be careful to not break the argument space calculation.
If there's not enough arguments just do not append any.
2021-10-15 Richard Biener <rguenther@suse.de>
PR ipa/102762
* tree-inline.c (copy_bb): Avoid underflowing nargs.
* gcc.dg/torture/pr102762.c: New testcase.
(cherry picked from commit 11a4714860d2df6ba496d55379e7dc702d5fc425)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/102762] [10 Regression] ICE with -O2: Segmentation fault, memcpy, copy_bb
2021-10-15 3:00 [Bug c/102762] New: ICE with -O2: Segmentation fault, memcpy, copy_bb cnsun at uwaterloo dot ca
` (4 preceding siblings ...)
2021-11-08 12:35 ` cvs-commit at gcc dot gnu.org
@ 2022-02-17 10:48 ` cvs-commit at gcc dot gnu.org
2022-02-17 10:50 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-02-17 10:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102762
--- Comment #6 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:724177df8e159dc3f70cd0e13a598e10dd321f37
commit r10-10462-g724177df8e159dc3f70cd0e13a598e10dd321f37
Author: Richard Biener <rguenther@suse.de>
Date: Fri Oct 15 08:41:57 2021 +0200
ipa/102762 - fix ICE with invalid __builtin_va_arg_pack () use
We have to be careful to not break the argument space calculation.
If there's not enough arguments just do not append any.
2021-10-15 Richard Biener <rguenther@suse.de>
PR ipa/102762
* tree-inline.c (copy_bb): Avoid underflowing nargs.
* gcc.dg/torture/pr102762.c: New testcase.
(cherry picked from commit 11a4714860d2df6ba496d55379e7dc702d5fc425)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/102762] [10 Regression] ICE with -O2: Segmentation fault, memcpy, copy_bb
2021-10-15 3:00 [Bug c/102762] New: ICE with -O2: Segmentation fault, memcpy, copy_bb cnsun at uwaterloo dot ca
` (5 preceding siblings ...)
2022-02-17 10:48 ` [Bug ipa/102762] [10 " cvs-commit at gcc dot gnu.org
@ 2022-02-17 10:50 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-02-17 10:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102762
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail| |10.3.1
Resolution|--- |FIXED
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread