public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/104054] New: '-fcompare-debug' failure (length) w/ -Os -funroll-loops
@ 2022-01-16 17:54 asolokha at gmx dot com
  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
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: asolokha at gmx dot com @ 2022-01-16 17:54 UTC (permalink / raw)
  To: gcc-bugs

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.

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

end of thread, other threads:[~2023-07-07 10:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-16 17:54 [Bug debug/104054] New: '-fcompare-debug' failure (length) w/ -Os -funroll-loops asolokha at gmx dot com
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

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