[Bug c/52923] Warn if making external references to local stack memory

2012-04-10 Thread fredrik.hederstie...@securitas-direct.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52923 --- Comment #4 from Fredrik Hederstierna 2012-04-10 12:52:36 UTC --- Maybe it have advantages to have a "pointer-deref" analysis pass rather than a "point-to" analysis pass. Then GCC could warn only if the pointer is being dereferenced for real,

[Bug c/52923] Warn if making external references to local stack memory

2012-04-10 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52923 Richard Guenther changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIR

[Bug c/52923] Warn if making external references to local stack memory

2012-04-10 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52923 --- Comment #2 from Jonathan Wakely 2012-04-10 08:03:13 UTC --- See also PR 49974 requesting the same thing for C++ and PR 51270 and PR 44859 are similar but for temporaries

[Bug c/52923] Warn if making external references to local stack memory

2012-04-10 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52923 --- Comment #1 from Andrew Pinski 2012-04-10 07:59:40 UTC --- These all need to have some kind of flow analysis going on (the return one is the only one which does not which is why we warn already).