-
- Downloads
MIPS: Accept arguments for -mexplicit-relocs
GAS introduced explicit relocs since 2001, and %pcrel_hi/low were introduced in 2014. In future, we may introduce more. Let's convert -mexplicit-relocs option, and accpet options: none, base, pcrel. We also update gcc/configure.ac to set the value to option the gas support when GCC itself is built. gcc * configure.ac: Detect the explicit relocs support for mips, and define C macro MIPS_EXPLICIT_RELOCS. * config.in: Regenerated. * configure: Regenerated. * doc/invoke.texi(MIPS Options): Add -mexplicit-relocs. * config/mips/mips-opts.h: Define enum mips_explicit_relocs. * config/mips/mips.cc(mips_set_compression_mode): Sorry if !TARGET_EXPLICIT_RELOCS instead of just set it. * config/mips/mips.h: Define TARGET_EXPLICIT_RELOCS and TARGET_EXPLICIT_RELOCS_PCREL with mips_opt_explicit_relocs. * config/mips/mips.opt: Introduce -mexplicit-relocs= option and define -m(no-)explicit-relocs as aliases.
Showing
- gcc/config.in 6 additions, 0 deletionsgcc/config.in
- gcc/config/mips/mips-opts.h 7 additions, 0 deletionsgcc/config/mips/mips-opts.h
- gcc/config/mips/mips.cc 3 additions, 2 deletionsgcc/config/mips/mips.cc
- gcc/config/mips/mips.h 8 additions, 0 deletionsgcc/config/mips/mips.h
- gcc/config/mips/mips.opt 23 additions, 2 deletionsgcc/config/mips/mips.opt
- gcc/configure 45 additions, 6 deletionsgcc/configure
- gcc/configure.ac 16 additions, 5 deletionsgcc/configure.ac
- gcc/doc/invoke.texi 16 additions, 0 deletionsgcc/doc/invoke.texi
Loading
Please register or sign in to comment