https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105438
Bernie Innocenti changed:
What|Removed |Added
Version|11.3.0 |13.1.1
Target Milestone|11.5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105438
--- Comment #10 from Bernie Innocenti ---
Still present on GCC 12.2.
Could someone look into it please, or point me at the point in ipa-icf.cc where
the array-bounds analysis information should have been updated after merging
the template insta
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105438
--- Comment #4 from Bernie Innocenti ---
Furthermore, after the inline pass main() has a reference to the shorter array
with an annotation of int[7], which is clearly wrong:
[local count: 939524097]:
_5 = MEM[(const int[7] &)&shorter][i_4]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105438
--- Comment #3 from Bernie Innocenti ---
Not sure if this is helpful, but the IPA dump also shows two calls to
configure() with N=7 and none with N=2:
IPA function summary for int main()/3 inlinable
global time: 26.00
self size:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105438
--- Comment #2 from Bernie Innocenti ---
GCC 12.0.1 20220413 (Red Hat 12.0.1-0) gives a more helpful diagnostic with
inlining backtrace:
In function ‘void configure(const int (&)[N], int) [with int N = 7]’,
inlined from ‘void configure(cons
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105438
--- Comment #1 from Bernie Innocenti ---
Reproducible in Godbolt with any 11.x release as well as trunk:
https://godbolt.org/z/zWb55P8G7
: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bernie at codewiz dot org
Target Milestone: ---
Minified testcase (almost every line is necessary to reproduce):
```
/* g++ -Warray-bounds -O2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98824
--- Comment #4 from Bernie Innocenti ---
Are there any known workarounds?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98824
Bernie Innocenti changed:
What|Removed |Added
CC||bernie at codewiz dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79001
--- Comment #5 from Bernie Innocenti ---
clang with -Wunused-function also does not issue a warning for this testcase.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79001
--- Comment #4 from Bernie Innocenti ---
GCC 5.1 does not issue a warning.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79001
Bernie Innocenti changed:
What|Removed |Added
CC||bernie at codewiz dot org
CC||bernie at codewiz dot org
Known to fail||4.6.1, 4.6.3
--- Comment #13 from Bernie Innocenti 2012-04-16
04:24:58 UTC ---
Confirmed on gcc 4.6.3.
--- Comment #4 from bernie at codewiz dot org 2008-01-22 08:21 ---
Ok for me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15951
14 matches
Mail list logo