[PATCH 1/3] arm: ensure the arch_name is always set for the build target

Richard Earnshaw rearnsha@arm.com
Mon Aug 2 14:56:49 GMT 2021


This should never happen now if GCC is invoked by the driver, but in
the unusual case of calling cc1 (or its ilk) directly from the command
line the build target's arch_name string can remain NULL.  This can
complicate later processing meaning that we need to check for this
case explicitly in some circumstances.  Nothing should rely on this
behaviour, so it's simpler to always set the arch_name when
configuring the build target and be done with it.

gcc:

	* config/arm/arm.c (arm_configure_build_target): Ensure the target's
	arch_name is always set.
---
 gcc/config/arm/arm.c | 2 ++
 1 file changed, 2 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-arm-ensure-the-arch_name-is-always-set-for-the-build.patch
Type: text/x-patch
Size: 597 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210802/48211dcf/attachment.bin>


More information about the Gcc-patches mailing list