Skip to content

Commit

Permalink
don't align floatreg if floatreg is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Sep 9, 2015
1 parent 5cb6ca8 commit a513708
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/backend/cgcod.c
Expand Up @@ -753,8 +753,13 @@ code *prolog()

regsave.off = alignsection(Auto.size - regsave.top, regsave.alignment, bias);

unsigned floatregsize = floatreg ? (config.fpxmmregs || I32 ? 16 : DOUBLESIZE) : 0;
Foff = alignsection(regsave.off - floatregsize, STACKALIGN, bias);
if (floatreg)
{
unsigned floatregsize = config.fpxmmregs || I32 ? 16 : DOUBLESIZE;
Foff = alignsection(regsave.off - floatregsize, STACKALIGN, bias);
}
else
Foff = regsave.off;

assert(usedalloca != 1);
AllocaOff = alignsection(usedalloca ? (Foff - REGSIZE) : Foff, REGSIZE, bias);
Expand Down

0 comments on commit a513708

Please sign in to comment.