From ad2373403ff189fe06a94ab862c74284b9a91824 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 12 Apr 1993 12:53:31 -0700 Subject: [PATCH] (CONSTANT_ALIGNMENT): Only increase alignment of string constants. From-SVN: r4106 --- gcc/config/i960/i960.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h index 46acfa27760..3c07bd5c3e6 100644 --- a/gcc/config/i960/i960.h +++ b/gcc/config/i960/i960.h @@ -363,7 +363,8 @@ extern int target_flags; aligned on word boundaries, and optimizes calls to the str* and mem* library functions. */ #define CONSTANT_ALIGNMENT(EXP, ALIGN) \ - (i960_object_bytes_bitalign (int_size_in_bytes (TREE_TYPE (EXP))) > (ALIGN) \ + (TREE_CODE (EXP) == STRING_CST \ + && i960_object_bytes_bitalign (int_size_in_bytes (TREE_TYPE (EXP))) > (ALIGN) \ ? i960_object_bytes_bitalign (int_size_in_bytes (TREE_TYPE (EXP))) \ : (ALIGN))