aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Pettersson <mikpelinux@gmail.com>2025-07-31 17:00:40 +0200
committerHans-Peter Nilsson <hp@gcc.gnu.org>2025-08-14 16:22:43 +0200
commitead213a9b06f7fcafc5650a8391779ba313e197d (patch)
treeca8da3e00849c27e1114d3db443e9a37cc23cba9
parent2934d4eea725fe9b560c5e51b859927c357ab6f7 (diff)
downloadgcc-ead213a9b06f7fcafc5650a8391779ba313e197d.zip
gcc-ead213a9b06f7fcafc5650a8391779ba313e197d.tar.gz
gcc-ead213a9b06f7fcafc5650a8391779ba313e197d.tar.bz2
fix cris-elf build with binutils-2.45
Since the cris port was added to gcc it has passed --em=criself to gas, as an abbreviation for --emulation=criself. Starting with binutils-2.45 that causes a hard error in gas due to ambiguity with another option. Fixed by replacing the abbreviation with the complete option. Tested by building a cross to cris-elf with binutils-2.45, which failed before but now succeeds. gcc/ PR target/121336 * config/cris/cris.h: Do not abbreviate --emulation. Signed-off-by: Mikael Pettersson <mikpelinux@gmail.com>
-rw-r--r--gcc/config/cris/cris.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h
index 1681c79..f356679 100644
--- a/gcc/config/cris/cris.h
+++ b/gcc/config/cris/cris.h
@@ -171,7 +171,7 @@ extern int cris_cpu_version;
/* For the cris-*-elf subtarget. */
#define CRIS_ASM_SUBTARGET_SPEC \
- "--em=criself %{!march=*:%{!mcpu=*:" CRIS_DEFAULT_ASM_ARCH_OPTION "}}"
+ "--emulation=criself %{!march=*:%{!mcpu=*:" CRIS_DEFAULT_ASM_ARCH_OPTION "}}"
/* FIXME: We should propagate the -melf option to make the criself
"emulation" unless a linker script is provided (-T*), but I don't know