* varasm.c (force_const_mem): Revert 2013-06-07 change.
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Jun 2013 15:28:42 +0000 (15:28 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Jun 2013 15:28:42 +0000 (15:28 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200071 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/varasm.c

index c374686..4b4fbe0 100644 (file)
@@ -1,3 +1,7 @@
+2013-06-14  Alan Modra  <amodra@gmail.com>
+
+       * varasm.c (force_const_mem): Revert 2013-06-07 change.
+
 2013-06-13  Jan Hubicka  <jh@suse.cz>
 
        * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
index d817067..c21a25f 100644 (file)
@@ -3639,8 +3639,7 @@ force_const_mem (enum machine_mode mode, rtx x)
   *slot = desc;
 
   /* Align the location counter as required by EXP's data type.  */
-  gcc_checking_assert (mode != VOIDmode && mode != BLKmode);
-  align = GET_MODE_ALIGNMENT (mode);
+  align = GET_MODE_ALIGNMENT (mode == VOIDmode ? word_mode : mode);
 #ifdef CONSTANT_ALIGNMENT
   {
     tree type = lang_hooks.types.type_for_mode (mode, 0);