Skip to contentSkip to conversation

arch/x86_64/kernel/Makefile: why EXTRA_AFLAGS := -traditional

DISCUSSION Denys Vlasenko 2 participants 2 messages Sep 20, 2007

lore
Share & tools
lore
#0 lore raw

Hi Andi,

arch/x86_64/kernel/Makefile has

EXTRA_AFLAGS := -traditional

and this is causing me trouble with #define MACRO(a,b) a.b (defined in one of included header file).
It expands incorrectly, as "a. b" - extra space.

If I use a.##b, all other .S files suffer - I am getting a.##b expansion in them.

Can I remove EXTRA_AFLAGS := -traditional?
--
vda

#1 lore raw
Quoted 6 lines · Denys Vlasenko

Hi Andi,

arch/x86_64/kernel/Makefile has

EXTRA_AFLAGS := -traditional

Quoted 8 lines

and this is causing me trouble with #define MACRO(a,b) a.b (defined in one of included header file).
It expands incorrectly, as "a. b" - extra space.

If I use a.##b, all other .S files suffer - I am getting a.##b expansion in them.

Can I remove EXTRA_AFLAGS := -traditional?

Inherited long ago from i386. Does it build without it? If yes it's ok to remove.

-Andi