public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Michael Meissner <meissner@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/meissner/heads/work105y)] Update ChangeLog.meissner Date: Thu, 12 Jan 2023 06:26:34 +0000 (GMT) [thread overview] Message-ID: <20230112062634.3ECC13858C66@sourceware.org> (raw) https://gcc.gnu.org/g:3b25959ef0787d3546e1f55bce5cc3207cb4ddd7 commit 3b25959ef0787d3546e1f55bce5cc3207cb4ddd7 Author: Michael Meissner <meissner@linux.ibm.com> Date: Thu Jan 12 01:26:31 2023 -0500 Update ChangeLog.meissner Diff: --- gcc/ChangeLog.meissner | 41 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog.meissner b/gcc/ChangeLog.meissner index 4306117ed91..f173e8b0ea4 100644 --- a/gcc/ChangeLog.meissner +++ b/gcc/ChangeLog.meissner @@ -1,12 +1,43 @@ -==================== work105y, patch #1 ==================== +==================== work105y, patch #2 ==================== -Patch libgcc to always use _Float128 and _Complex _Float128 on PowerPC. +PR target/107299: Use _Float128 and _Complex _Float128 types for PowerPC libgcc -2023-01-11 Michael Meissner <meissner@linux.ibm.com> +This patch tells GCC to use the _Float128 and _Complex _Float128 types when +building the IEEE 128-bit support in libgcc. At the moment, we cannot build +GCC when the target uses IEEE 128-bit long doubles, such as building the +compiler for a native Fedora 36 system. The build dies when it is trying to +build the _mulkc3.c module. + +The _mulkc3 and _divkc3 modules were written before the _Float128 and _Complex +_Float128 types were available. These routines had to use the mode attributes +to get access to the __float128 complex type. Unfortunately, with the current +implementation of __float128, _Float128, and long double in the PowerPC +backend, this code now breaks if long double is IEEE 128-bit. + +Originally I had hoped that we could fix the underlying problem with the +compiler. But that has become more complex than than I originally thought. I +believe the compiler should be fixed to avoid the breakage. + +This patch is a much simpler patch, and it avoids the problem by allowing the +machine depenendent parts of libgcc to override the definition of TFtype +(128-bit IEEE scalar) and TCtype (128-bit IEEE _Complex). This allows us to use +_Float128 and _Complex _Float128 when long double is IBM extended and plain long +double when IEEE 128-bit is used. We need to adjust the built-in functions used +as well. + +2023-01-12 Michael Meissner <meissner@linux.ibm.com> + * config/rs6000/_divkc3.c (COPYSIGN): Use the correct built-in depending + on whether TFmode is _Float128 or long double. + (INFINITY): Likewise. + (FABS): Likewise. + * config/rs6000/_mulkc3.c (COPYSIGN): Likewise. + (INFINITY): Likewise. * config/rs6000/quad-float128.h (TF): Delete definition. - (TFtype): Define to be _Float128. - (TCtype): Change to be _Complex _Float128. + (TFtype): Define to be _Float128 or long double. + (TCtype): Define to be _Complex _Float128 or _Complex long double. + (__mulkc3): Delete definition since these are built-in functions. + (__divkc3): Likewise. * libgcc2.h (TFtype): Allow MD code to override definition. (TCtype): Likewise. * soft-fp/quad.h (TFtype): Likewise.
next reply other threads:[~2023-01-12 6:26 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-12 6:26 Michael Meissner [this message] -- strict thread matches above, loose matches on Subject: below -- 2023-01-12 18:43 Michael Meissner 2023-01-12 6:47 Michael Meissner 2023-01-11 6:46 Michael Meissner
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=20230112062634.3ECC13858C66@sourceware.org \ --to=meissner@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /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: linkBe 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).