diff options
author | Alan Modra <amodra@gmail.com> | 2013-06-04 22:34:13 +0930 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2013-06-04 22:34:13 +0930 |
commit | 52befbd84a16eb396f7bd73d6521d31ae2427493 (patch) | |
tree | d4d84736c5f772664a9777f3aa84e56d9b604880 /gcc/config/rs6000 | |
parent | ef2925370ee74f7b0d0845affc35b0030848b5ae (diff) | |
download | gcc-52befbd84a16eb396f7bd73d6521d31ae2427493.zip gcc-52befbd84a16eb396f7bd73d6521d31ae2427493.tar.gz gcc-52befbd84a16eb396f7bd73d6521d31ae2427493.tar.bz2 |
rs6000.c (output_toc): Correct little-endian float constant output.
* config/rs6000/rs6000.c (output_toc): Correct little-endian float
constant output.
From-SVN: r199646
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 9c4b7f0..527dbc5 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -22574,7 +22574,10 @@ output_toc (FILE *file, rtx x, int labelno, enum machine_mode mode) fputs (DOUBLE_INT_ASM_OP, file); else fprintf (file, "\t.tc FS_%lx[TC],", l & 0xffffffff); - fprintf (file, "0x%lx00000000\n", l & 0xffffffff); + if (WORDS_BIG_ENDIAN) + fprintf (file, "0x%lx00000000\n", l & 0xffffffff); + else + fprintf (file, "0x%lx\n", l & 0xffffffff); return; } else |