diff mbox

[commit,4.8/4.9,libobjc] Match branch ABI (Re: [PATCH, rs6000, 4.8/4.9] Fix alignment of non-Altivec vector struct fields)

Message ID OFCC1DD04E.F5EF13E0-ONC1257D23.005181E5@de.ibm.com
State New
Headers show

Commit Message

Ulrich Weigand July 28, 2014, 2:50 p.m. UTC
> Matthias Klose wrote:
> 
> > #define rs6000_special_adjust_field_align_p(FIELD, COMPUTED) 0
> > 
> > is what succeeds for me. false is not defined for ObjC. Checked in on the trunk
> > and the branches.
> 
> Since we didn't backport the actual ABI change to the branches, only the warning,
> I think it would be consistent to use something like this on the branches:
> 
> #define rs6000_special_adjust_field_align_p(FIELD, COMPUTED) \
>   (TARGET_ALTIVEC && TREE_CODE (TREE_TYPE (FIELD)) == VECTOR_TYPE)
> 
> rather than the #define ... 0 that is appropriate for mainline.

I've now checked this in to the 4.8 and 4.9 branches.
Tested on powerpc64le-linux.

Bye,
Ulrich


libobjc/

	PR libobjc/61920
	* encoding.c (rs6000_special_adjust_field_align_p): Use definition
	that matches the 4.8/4.9 branch ABI.
diff mbox

Patch

Index: libobjc/encoding.c
===================================================================
--- libobjc/encoding.c	(revision 213124)
+++ libobjc/encoding.c	(working copy)
@@ -192,7 +192,8 @@ 
    ? 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