Commit ad237340 by Jim Wilson

(CONSTANT_ALIGNMENT): Only increase alignment of string constants.

From-SVN: r4106
parent 8cacec76
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment