mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-26 02:11:40 +01:00
* really set alignment as intended when -Os is passed
* align consts to 1 Byte boundaries on x86 as well git-svn-id: trunk@29651 -
This commit is contained in:
parent
a526b0e5d6
commit
d20116cd07
@ -3863,11 +3863,16 @@ if (target_info.abi = abi_eabihf) then
|
|||||||
2. override with generic optimizer setting (little size)
|
2. override with generic optimizer setting (little size)
|
||||||
3. override with the user specified -Oa }
|
3. override with the user specified -Oa }
|
||||||
UpdateAlignment(init_settings.alignment,target_info.alignment);
|
UpdateAlignment(init_settings.alignment,target_info.alignment);
|
||||||
if (cs_opt_size in current_settings.optimizerswitches) then
|
if (cs_opt_size in init_settings.optimizerswitches) then
|
||||||
begin
|
begin
|
||||||
init_settings.alignment.procalign:=1;
|
init_settings.alignment.procalign:=1;
|
||||||
init_settings.alignment.jumpalign:=1;
|
init_settings.alignment.jumpalign:=1;
|
||||||
init_settings.alignment.loopalign:=1;
|
init_settings.alignment.loopalign:=1;
|
||||||
|
{$ifdef x86}
|
||||||
|
{ constalignmax=1 keeps the executable and thus the memory foot print small but
|
||||||
|
all processors except x86 are really hurt by this or might even crash }
|
||||||
|
init_settings.alignment.constalignmax:=1;
|
||||||
|
{$endif x86}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
UpdateAlignment(init_settings.alignment,option.paraalignment);
|
UpdateAlignment(init_settings.alignment,option.paraalignment);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user