File gcc48-ppc64le-abi-warnings-fix.diff of Package libgcj48

2014-07-27  Alan Modra  <amodra@gmail.com>
	    Matthias Klose  <doko@ubuntu.com>

	PR libobjc/61920
	* encoding.c: Define rs6000_special_adjust_field_align_p.

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.
 
Index: libobjc/encoding.c
===================================================================
--- libobjc/encoding.c	(revision 213099)
+++ libobjc/encoding.c	(revision 213100)
@@ -192,6 +192,7 @@ _darwin_rs6000_special_round_type_align
    ? MAX (MAX (COMPUTED, SPECIFIED), 64)				\
    : MAX (COMPUTED, SPECIFIED));})
 
+#define rs6000_special_adjust_field_align_p(FIELD, COMPUTED) 0
 
 /* Skip a variable name, enclosed in quotes (").  */
 static inline

Index: libobjc/encoding.c
===================================================================
--- libobjc/encoding.c	(revision 213127)
+++ libobjc/encoding.c	(revision 213128)
@@ -192,7 +192,8 @@ _darwin_rs6000_special_round_type_align
    ? 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
openSUSE Build Service is sponsored by