public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/104771] New: '-fcompare-debug' failure w/ -mno-vsx -O1 -frename-registers
@ 2022-03-03 12:56 asolokha at gmx dot com
  2022-04-01 18:11 ` [Bug rtl-optimization/104771] " bergner at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: asolokha at gmx dot com @ 2022-03-03 12:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104771

            Bug ID: 104771
           Summary: '-fcompare-debug' failure w/ -mno-vsx -O1
                    -frename-registers
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: compare-debug-failure
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: powerpc-e300c3-linux-gnu

Created attachment 52556
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52556&action=edit
gdk diff

g++ 12.0.1 20220227 snapshot (g:d1574a9b820f17adb9004255e2018967e9be063b) fails
-fcompare-debug check when compiling the following testcase w/ -mno-vsx -O1
-frename-registers:

int n;

void
quux ();

template <typename>
void
bar (long double y)
{
  for (int i = 0; i < n; ++i)
    {
      double uninit, a;

      for (int j = 0; j < n; ++j)
        {
        }

      a = uninit / y + n;
      if (a != 0.0)
        quux ();
    }
}

void
foo (long double x)
{
  bar<short int> (x);
  bar<int> (x);
}

% powerpc-e300c3-linux-gnu-g++-12.0.1 -mno-vsx -O1 -fcompare-debug
-frename-registers -c vrsxlrxu.cpp
powerpc-e300c3-linux-gnu-g++-12.0.1: error: vrsxlrxu.cpp: '-fcompare-debug'
failure

-fno-rename-registers or -mvsx "fixes" it.

gdk diff attached.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug rtl-optimization/104771] '-fcompare-debug' failure w/ -mno-vsx -O1 -frename-registers
  2022-03-03 12:56 [Bug debug/104771] New: '-fcompare-debug' failure w/ -mno-vsx -O1 -frename-registers asolokha at gmx dot com
@ 2022-04-01 18:11 ` bergner at gcc dot gnu.org
  2022-08-03  3:07 ` asolokha at gmx dot com
  2022-08-03  3:17 ` linkw at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: bergner at gcc dot gnu.org @ 2022-04-01 18:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104771

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bergner at gcc dot gnu.org

--- Comment #1 from Peter Bergner <bergner at gcc dot gnu.org> ---
I am unable to recreate this, but I'm guessing it is the same bug as PR105041.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug rtl-optimization/104771] '-fcompare-debug' failure w/ -mno-vsx -O1 -frename-registers
  2022-03-03 12:56 [Bug debug/104771] New: '-fcompare-debug' failure w/ -mno-vsx -O1 -frename-registers asolokha at gmx dot com
  2022-04-01 18:11 ` [Bug rtl-optimization/104771] " bergner at gcc dot gnu.org
@ 2022-08-03  3:07 ` asolokha at gmx dot com
  2022-08-03  3:17 ` linkw at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: asolokha at gmx dot com @ 2022-08-03  3:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104771

--- Comment #2 from Arseny Solokha <asolokha at gmx dot com> ---
I too cannot reproduce it w/ gcc 13.0.0 20220731 snapshot.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug rtl-optimization/104771] '-fcompare-debug' failure w/ -mno-vsx -O1 -frename-registers
  2022-03-03 12:56 [Bug debug/104771] New: '-fcompare-debug' failure w/ -mno-vsx -O1 -frename-registers asolokha at gmx dot com
  2022-04-01 18:11 ` [Bug rtl-optimization/104771] " bergner at gcc dot gnu.org
  2022-08-03  3:07 ` asolokha at gmx dot com
@ 2022-08-03  3:17 ` linkw at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: linkw at gcc dot gnu.org @ 2022-08-03  3:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104771

Kewen Lin <linkw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME
                 CC|                            |linkw at gcc dot gnu.org

--- Comment #3 from Kewen Lin <linkw at gcc dot gnu.org> ---
Marked resolved as Arseny's latest comment.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-03  3:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03 12:56 [Bug debug/104771] New: '-fcompare-debug' failure w/ -mno-vsx -O1 -frename-registers asolokha at gmx dot com
2022-04-01 18:11 ` [Bug rtl-optimization/104771] " bergner at gcc dot gnu.org
2022-08-03  3:07 ` asolokha at gmx dot com
2022-08-03  3:17 ` linkw at gcc dot gnu.org

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).