projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89c89d1
)
(output_toc): Align DF constants if STRICT_ALIGNMENT.
author
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 15 Sep 1995 21:10:22 +0000
(17:10 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 15 Sep 1995 21:10:22 +0000
(17:10 -0400)
From-SVN: r10358
gcc/config/rs6000/rs6000.c
patch
|
blob
|
history
diff --git
a/gcc/config/rs6000/rs6000.c
b/gcc/config/rs6000/rs6000.c
index 9abfef12b0dbde8722f0ba27b3b2fa4f98c02d91..2e295a34a22cfeb390c1b55907c01af800f70dc4 100644
(file)
--- a/
gcc/config/rs6000/rs6000.c
+++ b/
gcc/config/rs6000/rs6000.c
@@
-3041,6
+3041,16
@@
output_toc (file, x, labelno)
if (TARGET_NO_TOC)
abort ();
+ /* if we're going to put a double constant in the TOC, make sure it's
+ aligned properly when strict alignment is on. */
+ if (GET_CODE (x) == CONST_DOUBLE
+ && STRICT_ALIGNMENT
+ && GET_MODE (x) == DFmode
+ && ! (TARGET_NO_FP_IN_TOC && ! TARGET_MINIMAL_TOC)) {
+ ASM_OUTPUT_ALIGN (file, 3);
+ }
+
+
#ifdef USING_SVR4_H
if (TARGET_MINIMAL_TOC)
{