Thread (4 messages) 4 messages, 4 authors, 2013-07-29

RE: [PATCH v2] powerpc: Update compilation flags with core specific options

From: Udma Catalin-Dan-B32721 <hidden>
Date: 2013-07-29 08:29:59

quoted
The assembler option is redundant if the -mcpu=3D flag is set.
The patch fixes the kernel compilation problem for e5500/e6500
when using gcc option -mcpu=3De5500/e6500.

Signed-off-by: Catalin Udma <redacted>
---
changes for v2:
   - update also KBUILD_AFLAGS with -mcpu and -msoft-float flags

arch/powerpc/Makefile |   16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
=20
Is the assembler redundant for older toolchains?
=20
- k
[CU] gcc defines the mapping from -mcpu to assembler options in file
gcc/config/rs6000/rs6000.h, like this:
	%{mcpu=3D8540: -me500} \
	%{mcpu=3D8548: -me500} \
	%{mcpu=3De300c2: -me300} \
	%{mcpu=3De300c3: -me300} \
	%{mcpu=3De500mc: -me500mc} \
	%{mcpu=3De500mc64: -me500mc64} \
	%{mcpu=3De5500: -me5500} \
	%{mcpu=3De6500: -me6500} \

I have checked this mapping from gcc 3.3 (where 8540 entry was added) to
3.4, 4.3, 4.4 and 4.8.1...The -Wa option is redundant for all these
older toolchains.
Catalin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help