cpp bug?
Hi,
I encountered this when trying to figure out how come my control.in
wasn't coming out right. I was getting "Architecture: 1", not
"Architecture: ARM".
Normally, cpp defines some default macros (a.k.a. assertions).
# cpp /dev/null -dM
#define __linux__ 1
#define __ARM_ARCH_3__ 1
#define __arm_elf 1
#define arm_elf 1
#define __arm__ 1
#define linux 1
#define __arm 1
#define __arm_elf__ 1
#define arm 1
#define __CHAR_UNSIGNED__ 1
#define __unix 1
#define __unix__ 1
#define __APCS_32__ 1
#define __linux 1
#define __ELF__ 1
#define unix 1
The -A- option (as used by the gcc debian/rules) is supposed to turn
these off. But with the cpp supplied with 2.95 doesn't do this. I
verified this on i386 and ARM.
Cheers,
- Jim
Reply to: