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/work078)] Revert patch. Date: Tue, 15 Feb 2022 16:56:55 +0000 (GMT) [thread overview] Message-ID: <20220215165655.031773858C83@sourceware.org> (raw) https://gcc.gnu.org/g:312b697c87ebc85f1ed423670e6ead5c6d1ccc62 commit 312b697c87ebc85f1ed423670e6ead5c6d1ccc62 Author: Michael Meissner <meissner@linux.ibm.com> Date: Tue Feb 15 11:56:08 2022 -0500 Revert patch. 2022-02-15 Michael Meissner <meissner@the-meissners.org> gcc/ Revert patch. PR target/99708 * config/rs6000/rs6000-c.cc (rs6000_target_modify_macros): Define __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__ if we have float128 support. gcc/testsuite/ Revert patch. PR target/99708 * gcc.target/powerpc/pr99708.c: New test. Diff: --- gcc/config/rs6000/rs6000-c.cc | 12 ++---------- gcc/testsuite/gcc.target/powerpc/pr99708.c | 19 ------------------- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/gcc/config/rs6000/rs6000-c.cc b/gcc/config/rs6000/rs6000-c.cc index b5f771d1308..15251efc209 100644 --- a/gcc/config/rs6000/rs6000-c.cc +++ b/gcc/config/rs6000/rs6000-c.cc @@ -581,17 +581,9 @@ rs6000_target_modify_macros (bool define_p, HOST_WIDE_INT flags, { rs6000_define_or_undefine_macro (define_p, "__FLOAT128__"); if (define_p) - { - rs6000_define_or_undefine_macro (true, "__float128=__ieee128"); - rs6000_define_or_undefine_macro (true, "__SIZEOF_FLOAT128__=16"); - rs6000_define_or_undefine_macro (true, "__SIZEOF_IBM128__=16"); - } + rs6000_define_or_undefine_macro (true, "__float128=__ieee128"); else - { - rs6000_define_or_undefine_macro (false, "__float128"); - rs6000_define_or_undefine_macro (false, "__SIZEOF_FLOAT128__"); - rs6000_define_or_undefine_macro (false, "__SIZEOF_IBM128__"); - } + rs6000_define_or_undefine_macro (false, "__float128"); } /* OPTION_MASK_FLOAT128_HARDWARE can be turned on if -mcpu=power9 is used or via the target attribute/pragma. */ diff --git a/gcc/testsuite/gcc.target/powerpc/pr99708.c b/gcc/testsuite/gcc.target/powerpc/pr99708.c deleted file mode 100644 index dd7a3bccc03..00000000000 --- a/gcc/testsuite/gcc.target/powerpc/pr99708.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-do run } */ -/* { require-effective-target ppc_float128_sw } */ -/* { dg-options "-O2 -mvsx -mfloat128" } */ - -/* - * PR target/99708 - * - * Verify that __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__ are properly defined. - */ - -int main (void) -{ - if (__SIZEOF_FLOAT128__ != sizeof (__float128) - || __SIZEOF_IBM128 != sizeof (__ibm128)) - abort (); - - return 0; -} -
next reply other threads:[~2022-02-15 16:56 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-15 16:56 Michael Meissner [this message] 2022-02-16 17:51 Michael Meissner 2022-02-16 20:24 Michael Meissner 2022-02-17 0:33 Michael Meissner 2022-02-17 5:47 Michael Meissner 2022-02-17 15:27 Michael Meissner 2022-02-17 16:58 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=20220215165655.031773858C83@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).