Download ARM® Compiler armcc User Guide

Transcript
8 Compiler Command-line Options
8.198 -Warmcc,--gcc_fallback
8.198
-Warmcc,--gcc_fallback
Uses GCC to retry a failed build step, when building for ARM Linux.
Usage
When using armcc in GCC emulation mode, GCC incompatibilities might cause a compile,
assembly or link step to fail. Using this option instructs the compiler to automatically retry the
failed step using GCC. Any build step that succeeds with the armcc does not get rebuilt using
GCC. Each failed step is retried using GCC. For example, if you specify this option for all of the
source files in your build and one of them contains an unsupported GNU extension, such as inline
assembly code with the GCC syntax, armcc generates a warning and the compiler retries the
failed command lines using the GNU tools.
Note
You must escape the option using -Warmcc, for example -Warmcc,--gcc_fallback.
Restrictions
This option can only be used with a GNU emulation mode (that is when using -translate_gcc, --translate_g++, or --translate_gld) and an ARM Linux
configuration file specified with --arm_linux_config_file. An existing GNU toolchain must
be present (either automatically found on the PATH environment variable or specified with -configure_gcc) to create the configuration file.
Examples
armcc -c --translate_gcc --arm_linux_config_file=linux_config -Warmcc,--gcc_fallback
-o example.o example.c
Related references
8.178 --translate_g++ on page 8-529.
8.179 --translate_gcc on page 8-531.
8.180 --translate_gld on page 8-533.
8.9 --arm_linux_config_file=path on page 8-342.
8.11 --arm_linux_paths on page 8-345.
8.10 --arm_linux_configure on page 8-343.
8.33 --configure_gcc=path on page 8-369.
ARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.
Non-Confidential
8-553