aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorXieZhiheng <xiezhiheng@huawei.com>2020-04-21 15:09:23 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2020-04-21 15:09:23 +0100
commit6c0ab626113ef20ee2986cb8a102b5394aeb888a (patch)
treeb61cc551a97dac02c1192f41958c9fbfecf8827a /gcc/doc
parentf2c8be187e8eb061e44166ac41646285821be6a6 (diff)
downloadgcc-6c0ab626113ef20ee2986cb8a102b5394aeb888a.zip
gcc-6c0ab626113ef20ee2986cb8a102b5394aeb888a.tar.gz
gcc-6c0ab626113ef20ee2986cb8a102b5394aeb888a.tar.bz2
aarch64: Add an error message in large code model for ilp32 [PR94577]
The option -mabi=ilp32 should not be used in large code model. An error message is added for the option conflict. 2020-04-21 Duan bo <duanbo3@huawei.com> gcc/ PR target/94577 * config/aarch64/aarch64.c: Add an error message for option conflict. * doc/invoke.texi (-mcmodel=large): Mention that -mcmodel=large is incompatible with -fpic, -fPIC and -mabi=ilp32. gcc/testsuite/ PR target/94577 * gcc.target/aarch64/pr94577.c: New test.
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 8b5cd82..d474882 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -16759,7 +16759,9 @@ dynamically linked. This is the default code model.
@item -mcmodel=large
@opindex mcmodel=large
Generate code for the large code model. This makes no assumptions about
-addresses and sizes of sections. Programs can be statically linked only.
+addresses and sizes of sections. Programs can be statically linked only. The
+@option{-mcmodel=large} option is incompatible with @option{-mabi=ilp32},
+@option{-fpic} and @option{-fPIC}.
@item -mstrict-align
@itemx -mno-strict-align