https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113012
--- Comment #9 from GCC Commits ---
The master branch has been updated by Siddhesh Poyarekar
:
https://gcc.gnu.org/g:576c1fc4401a9dae9757ac2e4fa37d05e130fa3d
commit r14-6730-g576c1fc4401a9dae9757ac2e4fa37d05e130fa3d
Author: Siddhesh Poyarekar
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113012
--- Comment #3 from Andrew Pinski ---
Note once we remove the -1, GCC does not ICE. I am 99% sure it is undefined to
go one before the begining of the array, only one past the end of the array is
well defined.
Note I am not shocked that xorg ha
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113012
--- Comment #2 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #1)
> Note I am not 100% sure the above code is well defined due to subtracting
> one from the allocated array.
and yes this represents exactly what the code does.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113012
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever confirmed|0