[Bug c/59863] const array in function is placed on stack

2020-03-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59863 Richard Biener changed: What|Removed |Added CC||aleksey.covacevice at gmail dot co

[Bug c/59863] const array in function is placed on stack

2014-01-20 Thread sam at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59863 --- Comment #4 from Samuel Tardieu --- Note that clang has this bug "in reverse": it unifies the arrays even when recursive calls are possible and address escapes the defining function (http://llvm.org/bugs/show_bug.cgi?id=18557).

[Bug c/59863] const array in function is placed on stack

2014-01-20 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59863 --- Comment #3 from Richard Biener --- This is also simply a gimplification issue. For larger arrays we initialize the stack with an aggregate copy from the constant pool.

[Bug c/59863] const array in function is placed on stack

2014-01-17 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59863 --- Comment #2 from Andrew Pinski --- This is caused by checking TREE_ADDRESSABLE on the a decl which is correct thing to do but the issue is there is no addressing taking in the code (only an implicit one with a[i]: /* An array that is inde

[Bug c/59863] const array in function is placed on stack

2014-01-17 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59863 --- Comment #1 from joseph at codesourcery dot com --- On Fri, 17 Jan 2014, sam at gcc dot gnu.org wrote: > Is there anything in the C standard preventing a const array declared in a > function from being put in .rodata or are those missed optimi