public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/57589] New: Linux powerpc -mcpu=native returns pointer to variable on stack in driver-rs6000.c
@ 2013-06-11 18:24 meissner at gcc dot gnu.org
  2013-06-11 18:26 ` [Bug target/57589] " meissner at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: meissner at gcc dot gnu.org @ 2013-06-11 18:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57589

            Bug ID: 57589
           Summary: Linux powerpc -mcpu=native returns pointer to variable
                    on stack in driver-rs6000.c
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: meissner at gcc dot gnu.org

In looking at driver-rs6000.c, I noticed that elf_platform (under Linux) reads
the auxv data structure into an auto array, and then returns a pointer to that
array.  It should either make the buffer static, or use xstrdup to get a unique
string.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-04-09 19:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-11 18:24 [Bug target/57589] New: Linux powerpc -mcpu=native returns pointer to variable on stack in driver-rs6000.c meissner at gcc dot gnu.org
2013-06-11 18:26 ` [Bug target/57589] " meissner at gcc dot gnu.org
2013-06-11 18:27 ` meissner at gcc dot gnu.org
2013-06-11 19:24 ` meissner at gcc dot gnu.org
2013-06-11 19:26 ` meissner at gcc dot gnu.org
2013-06-11 23:26 ` meissner at gcc dot gnu.org
2013-09-17  2:04 ` amodra at gcc dot gnu.org
2013-09-17  2:05 ` amodra at gmail dot com
2014-04-09 19:42 ` wschmidt at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).