OSDN Git Service

2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Oct 2009 10:50:41 +0000 (10:50 +0000)
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Oct 2009 10:50:41 +0000 (10:50 +0000)
* config/s390/s390.c (s390_encode_section_info): Handle BLKmode
properly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152700 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/s390/s390.c

index 400efca..495e192 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
+
+       * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
+       properly.
+
 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
 
        PR debug/41343
index e439b01..3be52d0 100644 (file)
@@ -9003,6 +9003,7 @@ s390_encode_section_info (tree decl, rtx rtl, int first)
       && GET_CODE (XEXP (rtl, 0)) == SYMBOL_REF
       && TREE_CONSTANT_POOL_ADDRESS_P (XEXP (rtl, 0))
       && (MEM_ALIGN (rtl) == 0
+         || GET_MODE_BITSIZE (GET_MODE (rtl)) == 0
          || MEM_ALIGN (rtl) < GET_MODE_BITSIZE (GET_MODE (rtl))))
     SYMBOL_REF_FLAGS (XEXP (rtl, 0)) |= SYMBOL_FLAG_NOT_NATURALLY_ALIGNED;
 }