[Bug target/104453] [9/10 Regression] ICE: SIGSEGV in handled_component_p with truncated input

2022-03-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104453

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
  Known to work||10.3.1, 9.4.1
  Known to fail|10.3.1, 9.4.1   |10.3.0, 9.4.0

--- Comment #7 from Richard Biener  ---
Fixed.

[Bug target/104453] [9/10 Regression] ICE: SIGSEGV in handled_component_p with truncated input

2022-03-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104453

--- Comment #6 from CVS Commits  ---
The releases/gcc-9 branch has been updated by Richard Biener
:

https://gcc.gnu.org/g:48fde80dea1fd59db34d0723427c41d0fb1ad951

commit r9-9985-g48fde80dea1fd59db34d0723427c41d0fb1ad951
Author: Richard Biener 
Date:   Wed Feb 9 08:48:35 2022 +0100

target/104453 - guard call folding with NULL LHS

This guards shift builtin folding to do nothing when there is
no LHS, similar to what other foldings do.

2022-02-09  Richard Biener  

PR target/104453
* config/i386/i386.c (ix86_gimple_fold_builtin): Guard shift
folding for NULL LHS.

* gcc.target/i386/pr104453.c: New testcase.

(cherry picked from commit 1c827873ed283df282f2df11dfe0ff607e07dab3)

[Bug target/104453] [9/10 Regression] ICE: SIGSEGV in handled_component_p with truncated input

2022-03-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104453

--- Comment #5 from CVS Commits  ---
The releases/gcc-10 branch has been updated by Richard Biener
:

https://gcc.gnu.org/g:807bfd4357609655c81d0a3282b699b10e7aeb5a

commit r10-10501-g807bfd4357609655c81d0a3282b699b10e7aeb5a
Author: Richard Biener 
Date:   Wed Feb 9 08:48:35 2022 +0100

target/104453 - guard call folding with NULL LHS

This guards shift builtin folding to do nothing when there is
no LHS, similar to what other foldings do.

2022-02-09  Richard Biener  

PR target/104453
* config/i386/i386.c (ix86_gimple_fold_builtin): Guard shift
folding for NULL LHS.

* gcc.target/i386/pr104453.c: New testcase.

(cherry picked from commit 1c827873ed283df282f2df11dfe0ff607e07dab3)