summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Mohr <manuel.mohr@kit.edu>2016-02-18 13:06:43 +0100
committerManuel Mohr <manuel.mohr@kit.edu>2016-02-18 13:06:43 +0100
commit30d1652a492a3a3817761a894481185d0056e418 (patch)
treed725095d908cebfdb5630035f3498ff6958ae93a
parent1da0df1e23c043ed011134648656c50b04f3f114 (diff)
Fix stack alignment for SPARC.
For SPARC, libfirm guarantees this stack alignment. Hence, the workaround is only necessary for IA32 and AMD64.
-rw-r--r--include/private/gcconfig.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index bb896b9..b70cb8d 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -1043,8 +1043,7 @@
# define CPP_WORDSZ 64
# define ELF_CLASS ELFCLASS64
# else
-/* TODO: Change this back to 4! */
-# define ALIGNMENT 1 /* Required by hardware */
+# define ALIGNMENT 4 /* Required by hardware */
# define CPP_WORDSZ 32
# endif
/* Don't define USE_ASM_PUSH_REGS. We do use an asm helper, but */