public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/100523] New: [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53
@ 2021-05-11 14:39 acoplan at gcc dot gnu.org
  2021-05-12  6:39 ` [Bug debug/100523] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-05-11 14:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100523
           Summary: [11/12 Regression] armv8.1-m.main -fcompare-debug
                    failure with -O -fmodulo-sched -mtune=cortex-a53
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

The following fails:

$ cat test.c
int main_j;
int main() {
  long crc;
  for (; main_j; main_j--)
    if (crc)
      crc = crc >> 1 ^ 20;
}
$ ./arm-eabi-gcc -c test.c -fcompare-debug -O -fmodulo-sched
-march=armv8.1-m.main -mfloat-abi=soft -mtune=cortex-a53
arm-eabi-gcc: error: test.c: '-fcompare-debug' failure

Obviously the choice of scheduling isn't sensible for this -march, but it
reveals a bug in any case.

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

* [Bug debug/100523] [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53
  2021-05-11 14:39 [Bug debug/100523] New: [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53 acoplan at gcc dot gnu.org
@ 2021-05-12  6:39 ` rguenth at gcc dot gnu.org
  2021-07-28  7:06 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-12  6:39 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.2

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

* [Bug debug/100523] [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53
  2021-05-11 14:39 [Bug debug/100523] New: [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53 acoplan at gcc dot gnu.org
  2021-05-12  6:39 ` [Bug debug/100523] " rguenth at gcc dot gnu.org
@ 2021-07-28  7:06 ` rguenth at gcc dot gnu.org
  2022-04-21  7:49 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-07-28  7:06 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.2                        |11.3

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.2 is being released, retargeting bugs to GCC 11.3

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

* [Bug debug/100523] [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53
  2021-05-11 14:39 [Bug debug/100523] New: [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53 acoplan at gcc dot gnu.org
  2021-05-12  6:39 ` [Bug debug/100523] " rguenth at gcc dot gnu.org
  2021-07-28  7:06 ` rguenth at gcc dot gnu.org
@ 2022-04-21  7:49 ` rguenth at gcc dot gnu.org
  2022-11-04 20:53 ` [Bug debug/100523] [11/12/13 " ramana at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-21  7:49 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.3                        |11.4

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.3 is being released, retargeting bugs to GCC 11.4.

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

* [Bug debug/100523] [11/12/13 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53
  2021-05-11 14:39 [Bug debug/100523] New: [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53 acoplan at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-04-21  7:49 ` rguenth at gcc dot gnu.org
@ 2022-11-04 20:53 ` ramana at gcc dot gnu.org
  2022-11-07 10:33 ` acoplan at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ramana at gcc dot gnu.org @ 2022-11-04 20:53 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

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

--- Comment #3 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
It does fall over but isn't this is a bit of an undefined testcase given that
crc is an uninitialised local variable used before initialisation ? 

What am I missing ? 

Ramana

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

* [Bug debug/100523] [11/12/13 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53
  2021-05-11 14:39 [Bug debug/100523] New: [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53 acoplan at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2022-11-04 20:53 ` [Bug debug/100523] [11/12/13 " ramana at gcc dot gnu.org
@ 2022-11-07 10:33 ` acoplan at gcc dot gnu.org
  2023-05-29 10:04 ` [Bug debug/100523] [11/12/13/14 " jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: acoplan at gcc dot gnu.org @ 2022-11-07 10:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Looks like it also falls over with this testcase:

int main_j;
long x;
int main() {
  long crc = x;
  for (; main_j; main_j--)
    if (crc)
      crc = crc >> 1 ^ 20;
}

which fixes the uninitialized use

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

* [Bug debug/100523] [11/12/13/14 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53
  2021-05-11 14:39 [Bug debug/100523] New: [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53 acoplan at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2022-11-07 10:33 ` acoplan at gcc dot gnu.org
@ 2023-05-29 10:04 ` jakub at gcc dot gnu.org
  2024-03-04  1:58 ` law at gcc dot gnu.org
  2024-03-06 10:25 ` rearnsha at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-05-29 10:04 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.4                        |11.5

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 11.4 is being released, retargeting bugs to GCC 11.5.

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

* [Bug debug/100523] [11/12/13/14 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53
  2021-05-11 14:39 [Bug debug/100523] New: [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53 acoplan at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2023-05-29 10:04 ` [Bug debug/100523] [11/12/13/14 " jakub at gcc dot gnu.org
@ 2024-03-04  1:58 ` law at gcc dot gnu.org
  2024-03-06 10:25 ` rearnsha at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: law at gcc dot gnu.org @ 2024-03-04  1:58 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at gcc dot gnu.org
           Priority|P3                          |P4

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

* [Bug debug/100523] [11/12/13/14 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53
  2021-05-11 14:39 [Bug debug/100523] New: [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53 acoplan at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2024-03-04  1:58 ` law at gcc dot gnu.org
@ 2024-03-06 10:25 ` rearnsha at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2024-03-06 10:25 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2024-03-06
     Ever confirmed|0                           |1

--- Comment #6 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Confirmed on trunk (14.0.1 20240215)

+++ cd.gk.c.gkd 2024-03-06 10:21:59.679317666 +0000
@@ -71,6 +71,7 @@
      (nil))
 (code_label # 0 0 5 4 (nil) [1 uses])
 (note # 0 0 [bb 5] NOTE_INSN_BASIC_BLOCK)
+(note # 0 0 NOTE_INSN_DELETED)
 (insn # 0 0 5 (set (reg:CC 100 cc)
         (compare:CC (reg/v:SI 3 r3 [orig:116 crc ] [116])
             (const_int 0 [0]))) "cd.c":7:11# {*arm_cmpsi_insn}
@@ -99,7 +100,6 @@
                     (const_int -1 [0xffffffffffffffff])))
         ]) "cd.c":5:10 discrim 1# {thumb2_addsi3_compare0}
      (nil))
-(note # 0 0 NOTE_INSN_DELETED)
 (insn # 0 0 5 (set (reg:SI 2 r2 [orig:114 _1 ] [114])
         (ashiftrt:SI (reg/v:SI 3 r3 [orig:116 crc ] [116])
             (const_int 1 [0x1]))) "cd.c":7:11# {*arm_shiftsi3}


So it's probably harmless in this case, but still shouldn't happen.

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

end of thread, other threads:[~2024-03-06 10:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-11 14:39 [Bug debug/100523] New: [11/12 Regression] armv8.1-m.main -fcompare-debug failure with -O -fmodulo-sched -mtune=cortex-a53 acoplan at gcc dot gnu.org
2021-05-12  6:39 ` [Bug debug/100523] " rguenth at gcc dot gnu.org
2021-07-28  7:06 ` rguenth at gcc dot gnu.org
2022-04-21  7:49 ` rguenth at gcc dot gnu.org
2022-11-04 20:53 ` [Bug debug/100523] [11/12/13 " ramana at gcc dot gnu.org
2022-11-07 10:33 ` acoplan at gcc dot gnu.org
2023-05-29 10:04 ` [Bug debug/100523] [11/12/13/14 " jakub at gcc dot gnu.org
2024-03-04  1:58 ` law at gcc dot gnu.org
2024-03-06 10:25 ` rearnsha 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).