public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/104054] New: '-fcompare-debug' failure (length) w/ -Os -funroll-loops
Date: Sun, 16 Jan 2022 17:54:00 +0000	[thread overview]
Message-ID: <bug-104054-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 104054
           Summary: '-fcompare-debug' failure (length) w/ -Os
                    -funroll-loops
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: x86_64-unknown-linux-gnu

Created attachment 52207
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52207&action=edit
diff -u j2sfd9at.*.gkd

gcc 12.0.0 20220109 snapshot (g:49d73c9fb644673323845efebfe6b3106e70af8a) fails
-fcompare-debug check when compiling the following testcase w/ -Os
-funroll-loops:

short int i;
int m;
__int128 n;

void
foo (__int128 x)
{
  int a = !!n;
  __int128 b = 1;

  if (a < x)
    m = 1;

  for (i = 0; i < 4; ++i)
    {
      b <<= a || n;
      n = b;
    }
}

% x86_64-unknown-linux-gnu-gcc-12.0.0 -Os -fcompare-debug -funroll-loops -c
j2sfd9at.c
x86_64-unknown-linux-gnu-gcc-12.0.0: error: j2sfd9at.c: '-fcompare-debug'
failure (length)

gkd diff attached.

             reply	other threads:[~2022-01-16 17:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-16 17:54 asolokha at gmx dot com [this message]
2022-01-17 10:44 ` [Bug debug/104054] [9/10/11/12 Regression] '-fcompare-debug' failure (length) w/ -Os -funroll-loops since r8-3946-gfe94440235cfaa57 marxin at gcc dot gnu.org
2022-01-17 10:54 ` [Bug rtl-optimization/104054] " pinskia at gcc dot gnu.org
2022-01-17 12:22 ` ubizjak at gmail dot com
2022-01-17 12:24 ` ubizjak at gmail dot com
2022-01-17 12:38 ` ubizjak at gmail dot com
2022-01-17 17:45 ` jakub at gcc dot gnu.org
2022-01-18 13:47 ` rguenth at gcc dot gnu.org
2022-01-19 10:56 ` ubizjak at gmail dot com
2022-01-19 12:52 ` ubizjak at gmail dot com
2022-05-27  9:47 ` [Bug rtl-optimization/104054] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:47 ` jakub at gcc dot gnu.org
2023-02-03  9:44 ` ubizjak at gmail dot com
2023-07-07 10:42 ` [Bug rtl-optimization/104054] [11/12/13/14 " rguenth at gcc dot gnu.org

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=bug-104054-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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: 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).