Skip to content

Commit ee63660

Browse files
petterreinholdtsenPetter Reinholdtsen
authored andcommitted
Fix some alignment issues on arm, hppa and sparc.
1 parent 3abc369 commit ee63660

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ ARCHFLAGS := $(ARCHFLAGS)
7474
OPTFLAGS ?= -g -O
7575

7676
CFLAGS += -Wall -Wno-unused-function -Wno-write-strings -Wno-sign-compare $(ARCHFLAGS)
77-
ifneq ($(findstring arm,$(shell uname -m)),)
78-
CFLAGS += -DABC_MEMALIGN=4
79-
endif
8077

8178
# compile ABC using the C++ compiler and put everything in the namespace $(ABC_NAMESPACE)
8279
ifdef ABC_USE_NAMESPACE

src/aig/aig/aigMem.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@
2222

2323
ABC_NAMESPACE_IMPL_START
2424

25+
#ifndef ABC_MEMALIGN
26+
# if defined(__arm__)
27+
# define ABC_MEMALIGN 4
28+
# endif
29+
# if defined(__hppa__)
30+
# define ABC_MEMALIGN 8
31+
# endif
32+
# if defined(__sparc__)
33+
# define ABC_MEMALIGN 8
34+
# endif
35+
#endif // !ABC_MEMALIGN
36+
2537

2638
////////////////////////////////////////////////////////////////////////
2739
/// DECLARATIONS ///

0 commit comments

Comments
 (0)