From fc400885255cabfc36a2755ada9362667850da44 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Mon, 3 Jun 2024 15:28:37 -0400 Subject: [PATCH] =?UTF-8?q?config.sub:=20don=E2=80=99t=20override=20OS=20f?= =?UTF-8?q?or=20c90-cray.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix a typo in the logic for handling the OS default for c90-cray, causing c90-cray-[anything] to get overridden to c90-cray-unicos. I’m not aware of any non-Unicos operating systems for the C90, but let’s not be a pointless obstacle for anyone who wants to write one. (For testing purposes I used Linux, because config.sub’s generic logic accepts it in combination with any CPU whatsoever.) Signed-off-by: Dmitry V. Levin --- config.sub | 2 +- testsuite/config-sub.data | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config.sub b/config.sub index f48cdc0..7d51c67 100755 --- a/config.sub +++ b/config.sub @@ -1031,7 +1031,7 @@ case $cpu-$vendor in ;; c90-unknown | c90-cray) vendor=cray - basic_os=${Basic_os:-unicos} + basic_os=${basic_os:-unicos} ;; fx80-unknown) vendor=alliant diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data index 7d3ff2d..0da6118 100644 --- a/testsuite/config-sub.data +++ b/testsuite/config-sub.data @@ -203,6 +203,11 @@ c6x-unknown-elf tic6x-unknown-elf c8051 c8051-unknown-elf c8051-elf c8051-unknown-elf c90 c90-cray-unicos +c90-cray c90-cray-unicos +c90-linux c90-cray-linux-gnu +c90-unicos c90-cray-unicos +c90-unknown-linux c90-cray-linux-gnu +c90-unknown-unicos c90-cray-unicos cegcc arm-unknown-cegcc clipper clipper-unknown-none clipper-clix clipper-intergraph-clix