Check for alignment when emitting constants on the sh-elf target
authorNick Clifton <nickc@redhat.com>
Thu, 27 Nov 2003 08:29:29 +0000 (08:29 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 27 Nov 2003 08:29:29 +0000 (08:29 +0000)
gas/ChangeLog
gas/config/tc-sh.c

index a5c7f401eed14586ff885b04e38e55b1fdaf8a6d..aaf8b965a9adb40fa0ca2f71d56c023288504619 100644 (file)
@@ -1,3 +1,9 @@
+2003-11-27  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-sh.c (sh_elf_cons): If md_cons_align is defined
+       call it to make sure that the constants that are going to be
+       emitted are correctly aligned.
+
 2003-11-27  Alexandre Oliva  <aoliva@redhat.com>
 
        * config/tc-frv.c (md_pcrel_from_section): Don't adjust when
index 0bacdce122efe6de719977e9918b5539922ea8d5..c49949185cc227bc7d748b53bc1ab997dc5e602e 100644 (file)
@@ -801,6 +801,10 @@ sh_elf_cons (register int nbytes)
       return;
     }
 
+#ifdef md_cons_align
+  md_cons_align (nbytes);
+#endif
+
   do
     {
       expression (&exp);