]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libobjc/61920 (libobjc has undefined symbols on powerpc*-linux-gnu)
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 28 Jul 2014 14:33:20 +0000 (14:33 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Mon, 28 Jul 2014 14:33:20 +0000 (14:33 +0000)
PR libobjc/61920
* encoding.c (rs6000_special_adjust_field_align_p): Use definition
that matches the 4.8 branch ABI.

From-SVN: r213128

libobjc/ChangeLog
libobjc/encoding.c

index b6645326fbb7a06287590bd7295ace7a8d52b69d..79160098fc29d24850885e0c7cf8a28fee229743 100644 (file)
@@ -1,3 +1,9 @@
+2014-07-27  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       PR libobjc/61920
+       * encoding.c (rs6000_special_adjust_field_align_p): Use definition
+       that matches the 4.8 branch ABI.
+
 2014-07-27  Alan Modra  <amodra@gmail.com>
            Matthias Klose  <doko@ubuntu.com>
 
index 42b0bf7d052f0a87da18a5fa29a8ba1d44cd659e..a6d1ca6e3aff66d430b038e6d07c3500c7c6752b 100644 (file)
@@ -192,7 +192,8 @@ _darwin_rs6000_special_round_type_align (const char *struc, int comp, int spec)
    ? MAX (MAX (COMPUTED, SPECIFIED), 64)                               \
    : MAX (COMPUTED, SPECIFIED));})
 
-#define rs6000_special_adjust_field_align_p(FIELD, COMPUTED) 0
+#define rs6000_special_adjust_field_align_p(FIELD, COMPUTED) \
+ (TARGET_ALTIVEC && TREE_CODE (TREE_TYPE (FIELD)) == VECTOR_TYPE)
 
 /* Skip a variable name, enclosed in quotes (").  */
 static inline