From: Kito Cheng <kito.cheng@gmail.com>
To: Palmer Dabbelt <palmer@rivosinc.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] RISC-V: Update multilib-generator to handle V
Date: Tue, 18 Apr 2023 23:44:24 +0800 [thread overview]
Message-ID: <CA+yXCZB0GWwS1iK6Ksxv39ABq7S6vxAbZo3zwGXs-vseYPYH3A@mail.gmail.com> (raw)
In-Reply-To: <mhng-df80ba46-5c08-45c3-a462-d372033647a8@palmer-ri-x1c9a>
> Yep, if I drop the non-canonicial strings via
>
> diff --git a/gcc/config/riscv/multilib-generator b/gcc/config/riscv/multilib-generator
> index 58b7198b243..a63a4d69c18 100755
> --- a/gcc/config/riscv/multilib-generator
> +++ b/gcc/config/riscv/multilib-generator
> @@ -174,7 +174,7 @@ for cmodel in cmodels:
> ext_combs = expand_combination(ext)
> alts = sum([[x] + [x + y for y in ext_combs] for x in [arch] + extra], [])
> alts = filter(lambda x: len(x) != 0, alts)
> - alts = alts + list(map(lambda a : arch_canonicalize(a, args.misa_spec), alts))
> + alts = list(map(lambda a : arch_canonicalize(a, args.misa_spec), alts))
>
> # Drop duplicated entry.
> alts = unique(alts)
>
> then I can't link `-march=rv32imafdcv`, I need
> `-march=rv32imacv_zicsr_zve32f_zve32x_zve64x_zvl128b_zvl32b_zvl64b`. That's
> kind of a headache for users to type in.
Yes, that's a headache for users, but arch string canonicalization is
hiddened at the process,
so the user could still just use rv32imafdcv at compile time and
multi-lib config.
And the driver and multilib-generator (with arch_canonicalize) script
will handle those headache in the background.
next prev parent reply other threads:[~2023-04-18 15:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 20:52 Palmer Dabbelt
2023-04-14 1:53 ` Kito Cheng
2023-04-14 7:15 ` Kito Cheng
2023-04-17 15:24 ` Palmer Dabbelt
2023-04-17 17:57 ` Palmer Dabbelt
2023-04-18 15:44 ` Kito Cheng [this message]
2023-04-18 20:01 ` Palmer Dabbelt
2023-04-19 0:47 ` Kito Cheng
2023-04-19 0:51 ` Palmer Dabbelt
2023-04-19 1:26 ` Kito Cheng
2023-04-19 1:29 ` Palmer Dabbelt
2023-04-19 1:38 ` Kito Cheng
2023-04-19 3:57 ` Kito Cheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+yXCZB0GWwS1iK6Ksxv39ABq7S6vxAbZo3zwGXs-vseYPYH3A@mail.gmail.com \
--to=kito.cheng@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=palmer@rivosinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).