From: Alan Modra Date: Tue, 4 Jun 2013 13:04:13 +0000 (+0930) Subject: rs6000.c (output_toc): Correct little-endian float constant output. X-Git-Tag: releases/gcc-4.9.0~5564 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52befbd84a16eb396f7bd73d6521d31ae2427493;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f845fbdd365b..4d892b5dbda3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-06-04 Alan Modra + + * config/rs6000/rs6000.c (output_toc): Correct little-endian float + constant output. + 2013-06-04 Kyrylo Tkachov * rtl.def: Add extra fourth optional field to define_cond_exec. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 9c4b7f04c35d..527dbc55b503 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