From: "Kewen.Lin" <linkw@linux.ibm.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
David Edelsohn <dje.gcc@gmail.com>,
Bill Schmidt <wschmidt@linux.ibm.com>,
will schmidt <will_schmidt@vnet.ibm.com>,
cel@us.ibm.com, Michael Meissner <meissner@linux.ibm.com>
Subject: Re: [EXTERNAL] Re: rs6000: Fix typos in float128 ISA3.1 support
Date: Wed, 23 Jun 2021 12:17:07 +0800 [thread overview]
Message-ID: <2fc5b902-9c0b-89b2-c526-ce6a6f638757@linux.ibm.com> (raw)
In-Reply-To: <20210622185602.GD5077@gate.crashing.org>
Hi Segher,
Thanks for the prompt review!
on 2021/6/23 上午2:56, Segher Boessenkool wrote:
> Hi!
>
> On Mon, Jun 21, 2021 at 05:27:06PM +0800, Kewen.Lin wrote:
>> Recently if we build gcc on Power with the assembler which doesn't
>> have Power10 support, the build will fail when building libgcc with
>> one error message like:
>>
>> Error: invalid switch -mpower10
>> Error: unrecognized option -mpower10
>> make[2]: *** [...gcc/gcc-base/libgcc/shared-object.mk:14: float128-p10.o] Error 1
>
> In general, it is recommended to use a binutils of approximately the
> same age as the GCC you are trying to build. This is similar to us not
> supporting most other non-sensical configurations. An important reason
> for that is it cannot ever be tested, there are just too many strange
> combinations possible.
>
> That said :-)
>
Ah, ok! It explained why no one reported this. I only used the customized
binutils for Power10 build/testing before, will work with one new binutils
from now on. It did have more testing coverage.
>> By checking the culprit commit r12-1340, it's caused by some typos.
>
> (That is 9090f4807161.)
>
>> - fix test case used for libgcc_cv_powerpc_3_1_float128_hw check.
>
> I was confused here for a bit, "test case" usually means something in
> testsuite/, I'd call this just "test" :-)
>
>> BTW, there are some noises during regression testings due to
>> newer versions binutils, but they were identified as unrelated
>> after some checkings.
>
> Hrm, what kind of noise?
>
Some check selectors will fail without new binutils, those cases becomes
unsupported, like Power10 support checks. The location of our pre-built
binutils in our system has not only binutils but also some other tools
like newer version gdb, which caused some differences such as for guality
cases.
>> * config/rs6000/t-float128-hw(fp128_3_1_hw_funcs,
>> fp128_3_1_hw_src, fp128_3_1_hw_static_obj, fp128_3_1_hw_shared_obj,
>> fp128_3_1_hw_obj): Remove variables for ISA 3.1 support.
>
> Needs a space before the opening paren. Doesn't need a line break so
> early on that line btw.
>
Good catch, fixed.
> Just "Remove." or "Delete." is less confusing btw: what you wrote can be
> read as "Remove the variables from these declarations" or similar. And
> of course terseness is usually best in a changelog.
>
Fixed.
>> * config/rs6000/t-float128-p10-hw (FLOAT128_HW_INSNS): Append
>> macro FLOAT128_HW_INSNS_ISA3_1 for ISA 3.1 support.
>
> Don't say what it is for, just say what changed :-)
>
Fixed.
>> (FP128_3_1_CFLAGS_HW): Fix option typo.
>> * config/rs6000/float128-ifunc.c (SW_OR_HW_ISA3_1): Guarded
>> with FLOAT128_HW_INSNS_ISA3_1.
>
> "Guard", not "Guarded", all entries are written in the imperative, like,
> "Do this" or "Guard that".
>
Got it, fixed.
>> +#ifdef FLOAT128_HW_INSNS_ISA3_1
>> TFtype __floattikf (TItype_ppc)
>> __attribute__ ((__ifunc__ ("__floattikf_resolve")));
>
> I wonder if we now need TItype_ppc at all anymore, btw?
>
Sorry that I don't quite follow this question.
I think it stands for type signed int128, the function is to
convert signed int128 to float128, it would be needed here.
But I think that's not what you asked. Or you are referring
to replace this type with signed int128 without shielding it
with mode? If yes, it sounds like a question for Mike.
> Okay for trunk with the changelog slightly massaged. Thanks!
>
Thanks for catching changelog problems and the fix suggestion!
Fixed all of them accordingly and committed in r12-1738.
BR,
Kewen
next prev parent reply other threads:[~2021-06-23 4:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-21 9:27 Kewen.Lin
2021-06-22 18:56 ` Segher Boessenkool
2021-06-23 4:17 ` Kewen.Lin [this message]
2021-06-23 16:58 ` [EXTERNAL] " Segher Boessenkool
2021-06-24 9:32 ` Kewen.Lin
2021-06-24 19:36 ` Segher Boessenkool
2021-06-28 8:15 ` Kewen.Lin
2021-06-28 10:22 ` Segher Boessenkool
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=2fc5b902-9c0b-89b2-c526-ce6a6f638757@linux.ibm.com \
--to=linkw@linux.ibm.com \
--cc=cel@us.ibm.com \
--cc=dje.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=meissner@linux.ibm.com \
--cc=segher@kernel.crashing.org \
--cc=will_schmidt@vnet.ibm.com \
--cc=wschmidt@linux.ibm.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).