public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/98087] New: [11 Regression] ICE: Floating point exception
@ 2020-12-01 17:55 gscfq@t-online.de
  2020-12-01 18:53 ` [Bug c/98087] " jakub at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gscfq@t-online.de @ 2020-12-01 17:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98087
           Summary: [11 Regression] ICE: Floating point exception
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20201115 and 20201122 :


$ cat z1.c
struct S {};
void foo (int n)
{
  struct S a[n][0];
  __builtin_clear_padding (a);
}


$ gcc-11-20201129 -c z1.c
during GIMPLE pass: lower
z1.c: In function 'foo':
z1.c:2:6: internal compiler error: Floating point exception
    2 | void foo (int n)
      |      ^~~
0xb49eaf crash_signal
        ../../gcc/toplev.c:330
0x8b9ff1 clear_padding_type
        ../../gcc/gimple-fold.c:4555
0x8ba973 gimple_fold_builtin_clear_padding
        ../../gcc/gimple-fold.c:4723
0x8c4c5f gimple_fold_builtin
        ../../gcc/gimple-fold.c:4897
0x8c6f6b gimple_fold_call
        ../../gcc/gimple-fold.c:5328
0x8c6f6b fold_stmt_1
        ../../gcc/gimple-fold.c:6029
0x13bfee9 lower_stmt
        ../../gcc/gimple-low.c:388
0x13bfee9 lower_sequence
        ../../gcc/gimple-low.c:217
0x13bffcc lower_stmt
        ../../gcc/gimple-low.c:286
0x13bffcc lower_sequence
        ../../gcc/gimple-low.c:217
0x13bfd58 lower_gimple_bind
        ../../gcc/gimple-low.c:473
0x13c0a91 lower_function_body
        ../../gcc/gimple-low.c:110
0x13c0a91 execute
        ../../gcc/gimple-low.c:195

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

* [Bug c/98087] [11 Regression] ICE: Floating point exception
  2020-12-01 17:55 [Bug c/98087] New: [11 Regression] ICE: Floating point exception gscfq@t-online.de
@ 2020-12-01 18:53 ` jakub at gcc dot gnu.org
  2020-12-01 19:53 ` marxin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-12-01 18:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|jakub at redhat dot com            |jakub at gcc dot gnu.org
   Target Milestone|---                         |11.0
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-12-01
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
             Status|UNCONFIRMED                 |ASSIGNED

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

* [Bug c/98087] [11 Regression] ICE: Floating point exception
  2020-12-01 17:55 [Bug c/98087] New: [11 Regression] ICE: Floating point exception gscfq@t-online.de
  2020-12-01 18:53 ` [Bug c/98087] " jakub at gcc dot gnu.org
@ 2020-12-01 19:53 ` marxin at gcc dot gnu.org
  2020-12-02  8:20 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-01 19:53 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Just for the record, started with r11-5196-g1bea0d0aa5936cb3.

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

* [Bug c/98087] [11 Regression] ICE: Floating point exception
  2020-12-01 17:55 [Bug c/98087] New: [11 Regression] ICE: Floating point exception gscfq@t-online.de
  2020-12-01 18:53 ` [Bug c/98087] " jakub at gcc dot gnu.org
  2020-12-01 19:53 ` marxin at gcc dot gnu.org
@ 2020-12-02  8:20 ` rguenth at gcc dot gnu.org
  2020-12-02  8:36 ` marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-12-02  8:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

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

* [Bug c/98087] [11 Regression] ICE: Floating point exception
  2020-12-01 17:55 [Bug c/98087] New: [11 Regression] ICE: Floating point exception gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2020-12-02  8:20 ` rguenth at gcc dot gnu.org
@ 2020-12-02  8:36 ` marxin at gcc dot gnu.org
  2020-12-02 10:33 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-02  8:36 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|jakub at gcc dot gnu.org           |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
It's simple to fix, I'll do it.

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

* [Bug c/98087] [11 Regression] ICE: Floating point exception
  2020-12-01 17:55 [Bug c/98087] New: [11 Regression] ICE: Floating point exception gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2020-12-02  8:36 ` marxin at gcc dot gnu.org
@ 2020-12-02 10:33 ` cvs-commit at gcc dot gnu.org
  2020-12-02 10:39 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-02 10:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:337d6362458ab033d3bfe287dda37f9da5577406

commit r11-5647-g337d6362458ab033d3bfe287dda37f9da5577406
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Dec 2 09:44:40 2020 +0100

    Fix __builtin_clear_padding for empty struct.

    gcc/ChangeLog:

            PR c/98087
            * gimple-fold.c (clear_padding_type): Do not divide by zero.

    gcc/testsuite/ChangeLog:

            PR c/98087
            * gcc.c-torture/compile/pr98087.c: New test.

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

* [Bug c/98087] [11 Regression] ICE: Floating point exception
  2020-12-01 17:55 [Bug c/98087] New: [11 Regression] ICE: Floating point exception gscfq@t-online.de
                   ` (4 preceding siblings ...)
  2020-12-02 10:33 ` cvs-commit at gcc dot gnu.org
@ 2020-12-02 10:39 ` marxin at gcc dot gnu.org
  2020-12-08 12:26 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-02 10:39 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed.

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

* [Bug c/98087] [11 Regression] ICE: Floating point exception
  2020-12-01 17:55 [Bug c/98087] New: [11 Regression] ICE: Floating point exception gscfq@t-online.de
                   ` (5 preceding siblings ...)
  2020-12-02 10:39 ` marxin at gcc dot gnu.org
@ 2020-12-08 12:26 ` marxin at gcc dot gnu.org
  2020-12-08 13:23 ` redi at gcc dot gnu.org
  2020-12-08 13:27 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-08 12:26 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anbu1024.me at gmail dot com

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 98197 has been marked as a duplicate of this bug. ***

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

* [Bug c/98087] [11 Regression] ICE: Floating point exception
  2020-12-01 17:55 [Bug c/98087] New: [11 Regression] ICE: Floating point exception gscfq@t-online.de
                   ` (6 preceding siblings ...)
  2020-12-08 12:26 ` marxin at gcc dot gnu.org
@ 2020-12-08 13:23 ` redi at gcc dot gnu.org
  2020-12-08 13:27 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2020-12-08 13:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I don't think this should really be considered a regression, the built-in
didn't exist in older versions. It's a bug in a new feature, not a regression.

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

* [Bug c/98087] [11 Regression] ICE: Floating point exception
  2020-12-01 17:55 [Bug c/98087] New: [11 Regression] ICE: Floating point exception gscfq@t-online.de
                   ` (7 preceding siblings ...)
  2020-12-08 13:23 ` redi at gcc dot gnu.org
@ 2020-12-08 13:27 ` jakub at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-12-08 13:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
We often (but not always) treat it as regression because compilation of random
garbage code (that happens to include the newly added builtin) didn't ICE
before and now ICEs.  A different case is when one needs newly added command
line switches to trigger the ICE, in that case it is usually not considered a
regression.  Anyway, no matter if it is or isn't marked a regression, we should
be fixing bugs in newly added features...

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

end of thread, other threads:[~2020-12-08 13:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01 17:55 [Bug c/98087] New: [11 Regression] ICE: Floating point exception gscfq@t-online.de
2020-12-01 18:53 ` [Bug c/98087] " jakub at gcc dot gnu.org
2020-12-01 19:53 ` marxin at gcc dot gnu.org
2020-12-02  8:20 ` rguenth at gcc dot gnu.org
2020-12-02  8:36 ` marxin at gcc dot gnu.org
2020-12-02 10:33 ` cvs-commit at gcc dot gnu.org
2020-12-02 10:39 ` marxin at gcc dot gnu.org
2020-12-08 12:26 ` marxin at gcc dot gnu.org
2020-12-08 13:23 ` redi at gcc dot gnu.org
2020-12-08 13:27 ` jakub 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).