diff options
author | Michael Meissner <meissner@linux.vnet.ibm.com> | 2013-06-11 23:22:49 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2013-06-11 23:22:49 +0000 |
commit | c7d8f446bacb8ef6ea48eae68aed389d3ef20af1 (patch) | |
tree | d09cd9b21690ef8145183de534dfa69ba55ccc78 /gcc/config/rs6000 | |
parent | 08346abd1968a14666f6a99ae8be09914d9ed088 (diff) | |
download | gcc-c7d8f446bacb8ef6ea48eae68aed389d3ef20af1.zip gcc-c7d8f446bacb8ef6ea48eae68aed389d3ef20af1.tar.gz gcc-c7d8f446bacb8ef6ea48eae68aed389d3ef20af1.tar.bz2 |
re PR target/57589 (Linux powerpc -mcpu=native returns pointer to variable on stack in driver-rs6000.c)
2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/57589
* config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
to allow returning address to AT_PLATFORM name.
From-SVN: r199972
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r-- | gcc/config/rs6000/driver-rs6000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/rs6000/driver-rs6000.c b/gcc/config/rs6000/driver-rs6000.c index e608dce..1a173d0 100644 --- a/gcc/config/rs6000/driver-rs6000.c +++ b/gcc/config/rs6000/driver-rs6000.c @@ -167,7 +167,7 @@ elf_platform (void) if (fd != -1) { - char buf[1024]; + static char buf[1024]; ElfW(auxv_t) *av; ssize_t n; |