config/arch/x86.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 17 22:43:07 2011 +0200 (2011-07-17)
changeset 2893 a8a65758664f
parent 2444 896cb0d36c1a
permissions -rw-r--r--
cc/gcc: do not use the core pass-2 to build the baremetal compiler

In case we build a baremetal compiler, use the standard passes:
- core_cc is used to build the C library;
- as such, it is meant to run on build, not host;
- the final compiler is meant to run on host;

As the current final compiler step can not build a baremetal compiler,
call the core backend from the final step.

NB: Currently, newlib is built during the start_files pass, so we have
to have a core compiler by then... Once we can build the baremetal
compiler from the final cc step, then we can move the newlib build to
the proper step, and then get rid of the core pass-1 static compiler...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@628
     1
# x86 specific options
yann@628
     2
yann@2444
     3
## select ARCH_SUPPORTS_32
yann@2444
     4
## select ARCH_SUPPORTS_64
yann@2444
     5
## select ARCH_DEFAULT_32
yann@2444
     6
## select ARCH_USE_MMU
yann@2788
     7
## select ARCH_SUPPORTS_WITH_ARCH
yann@2788
     8
## select ARCH_SUPPORTS_WITH_CPU
yann@2788
     9
## select ARCH_SUPPORTS_WITH_TUNE
yann@2444
    10
##
yann@2444
    11
## help The x86 architecture, as defined by:
yann@2444
    12
## help     32-bit (ia32) : http://www.intel.com/
yann@2444
    13
## help     64-bit (amd64): http://www.amd.com/us-en/Processors/DevelopWithAMD/0,,30_2252_875_7044,00.html