When compiling with -Os put all strings into .rodata.str1.1 (ie byte aligned)
rather than putting those longer than 30 chars into .rodata.str1.32. Apparantly gcc 3.4.4 has this change... In spite of everything being compressed, this saves over 13k in the boot floppies.
This commit is contained in:
parent
85e05fc4a2
commit
b9a6294f9c
2
gnu/dist/gcc/gcc/config/i386/i386.c
vendored
2
gnu/dist/gcc/gcc/config/i386/i386.c
vendored
@ -11895,7 +11895,7 @@ ix86_constant_alignment (exp, align)
|
||||
else if (ALIGN_MODE_128 (TYPE_MODE (TREE_TYPE (exp))) && align < 128)
|
||||
return 128;
|
||||
}
|
||||
else if (TREE_CODE (exp) == STRING_CST && TREE_STRING_LENGTH (exp) >= 31
|
||||
else if (!optimize_size && TREE_CODE (exp) == STRING_CST && TREE_STRING_LENGTH (exp) >= 31
|
||||
&& align < 256)
|
||||
return 256;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user