public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/102563] New: ice during GIMPLE pass: vrp-thread
@ 2021-10-02  9:31 dcb314 at hotmail dot com
  2021-10-02 14:08 ` [Bug tree-optimization/102563] [12 Regression] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dcb314 at hotmail dot com @ 2021-10-02  9:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102563
           Summary: ice during GIMPLE pass: vrp-thread
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this C source code:

int _bdf_parse_glyphs_bp;
long _bdf_parse_glyphs_nibbles;

void _bdf_parse_glyphs_p() 
{
  long p_2;

  _bdf_parse_glyphs_nibbles = p_2 << 1;

  for (; 0 < _bdf_parse_glyphs_nibbles;)
    if (1 < _bdf_parse_glyphs_nibbles)
      _bdf_parse_glyphs_bp = _bdf_parse_glyphs_p;
}

compiled by recent gcc trunk and compiler flag -O2, does this:

$ /home/dcb/gcc/results/bin/gcc -c -O2 bug762.c
bug762.c: In function ‘_bdf_parse_glyphs_p’:
bug762.c:12:28: warning: assignment to ‘int’ from ‘void (*)()’ makes integer
from pointer without a cast [-Wint-conversion]
   12 |       _bdf_parse_glyphs_bp = _bdf_parse_glyphs_p;
      |                            ^
during GIMPLE pass: vrp-thread
bug762.c:4:6: internal compiler error: in upper_bound, at value-range.h:531
    4 | void _bdf_parse_glyphs_p()
      |      ^~~~~~~~~~~~~~~~~~~
0x1b7a732 irange::upper_bound() const
        ../../trunk.git/gcc/value-range.h:531

The bug first seems to occur sometime between git hash
6de9f0c13b27c343 and 5f02854189405771.

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

* [Bug tree-optimization/102563] [12 Regression] ice during GIMPLE pass: vrp-thread
  2021-10-02  9:31 [Bug c/102563] New: ice during GIMPLE pass: vrp-thread dcb314 at hotmail dot com
@ 2021-10-02 14:08 ` pinskia at gcc dot gnu.org
  2021-10-02 15:01 ` aldyh at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-02 14:08 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
           Keywords|                            |ice-on-valid-code
          Component|c                           |tree-optimization
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=102561
            Summary|ice during GIMPLE pass:     |[12 Regression] ice during
                   |vrp-thread                  |GIMPLE pass: vrp-thread

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

* [Bug tree-optimization/102563] [12 Regression] ice during GIMPLE pass: vrp-thread
  2021-10-02  9:31 [Bug c/102563] New: ice during GIMPLE pass: vrp-thread dcb314 at hotmail dot com
  2021-10-02 14:08 ` [Bug tree-optimization/102563] [12 Regression] " pinskia at gcc dot gnu.org
@ 2021-10-02 15:01 ` aldyh at gcc dot gnu.org
  2021-10-02 15:02 ` aldyh at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-10-02 15:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Created attachment 51534
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51534&action=edit
untested patch

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

* [Bug tree-optimization/102563] [12 Regression] ice during GIMPLE pass: vrp-thread
  2021-10-02  9:31 [Bug c/102563] New: ice during GIMPLE pass: vrp-thread dcb314 at hotmail dot com
  2021-10-02 14:08 ` [Bug tree-optimization/102563] [12 Regression] " pinskia at gcc dot gnu.org
  2021-10-02 15:01 ` aldyh at gcc dot gnu.org
@ 2021-10-02 15:02 ` aldyh at gcc dot gnu.org
  2021-10-02 15:02 ` aldyh at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-10-02 15:02 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |haoxintu at gmail dot com

--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
*** Bug 102561 has been marked as a duplicate of this bug. ***

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

* [Bug tree-optimization/102563] [12 Regression] ice during GIMPLE pass: vrp-thread
  2021-10-02  9:31 [Bug c/102563] New: ice during GIMPLE pass: vrp-thread dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2021-10-02 15:02 ` aldyh at gcc dot gnu.org
@ 2021-10-02 15:02 ` aldyh at gcc dot gnu.org
  2021-10-02 15:31 ` aldyh at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-10-02 15:02 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-10-02

--- Comment #3 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
mine.  we're clobbering the final range while calculating the intermediate
range.

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

* [Bug tree-optimization/102563] [12 Regression] ice during GIMPLE pass: vrp-thread
  2021-10-02  9:31 [Bug c/102563] New: ice during GIMPLE pass: vrp-thread dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2021-10-02 15:02 ` aldyh at gcc dot gnu.org
@ 2021-10-02 15:31 ` aldyh at gcc dot gnu.org
  2021-10-02 19:51 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-10-02 15:31 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #51534|0                           |1
        is obsolete|                            |

--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Created attachment 51535
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51535&action=edit
untested 2

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

* [Bug tree-optimization/102563] [12 Regression] ice during GIMPLE pass: vrp-thread
  2021-10-02  9:31 [Bug c/102563] New: ice during GIMPLE pass: vrp-thread dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2021-10-02 15:31 ` aldyh at gcc dot gnu.org
@ 2021-10-02 19:51 ` cvs-commit at gcc dot gnu.org
  2021-10-02 19:51 ` aldyh at gcc dot gnu.org
  2021-10-03 19:06 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-02 19:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aldy Hernandez <aldyh@gcc.gnu.org>:

https://gcc.gnu.org/g:6c0dd02964a624c65859808f9a40721c3796319a

commit r12-4095-g6c0dd02964a624c65859808f9a40721c3796319a
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Sat Oct 2 16:59:26 2021 +0200

    [PR102563] Do not clobber range in operator_lshift::op1_range.

    We're clobbering the final range before we're done calculating it.

    Tested on x86-64 Linux.

    gcc/ChangeLog:

            PR tree-optimization/102563
            * range-op.cc (operator_lshift::op1_range): Do not clobber
            range.

    gcc/testsuite/ChangeLog:

            * gcc.dg/tree-ssa/pr102563.c: New test.

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

* [Bug tree-optimization/102563] [12 Regression] ice during GIMPLE pass: vrp-thread
  2021-10-02  9:31 [Bug c/102563] New: ice during GIMPLE pass: vrp-thread dcb314 at hotmail dot com
                   ` (5 preceding siblings ...)
  2021-10-02 19:51 ` cvs-commit at gcc dot gnu.org
@ 2021-10-02 19:51 ` aldyh at gcc dot gnu.org
  2021-10-03 19:06 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-10-02 19:51 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

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

--- Comment #6 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
fixed

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

* [Bug tree-optimization/102563] [12 Regression] ice during GIMPLE pass: vrp-thread
  2021-10-02  9:31 [Bug c/102563] New: ice during GIMPLE pass: vrp-thread dcb314 at hotmail dot com
                   ` (6 preceding siblings ...)
  2021-10-02 19:51 ` aldyh at gcc dot gnu.org
@ 2021-10-03 19:06 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-03 19:06 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |suochenyao at 163 dot com

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 102565 has been marked as a duplicate of this bug. ***

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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-02  9:31 [Bug c/102563] New: ice during GIMPLE pass: vrp-thread dcb314 at hotmail dot com
2021-10-02 14:08 ` [Bug tree-optimization/102563] [12 Regression] " pinskia at gcc dot gnu.org
2021-10-02 15:01 ` aldyh at gcc dot gnu.org
2021-10-02 15:02 ` aldyh at gcc dot gnu.org
2021-10-02 15:02 ` aldyh at gcc dot gnu.org
2021-10-02 15:31 ` aldyh at gcc dot gnu.org
2021-10-02 19:51 ` cvs-commit at gcc dot gnu.org
2021-10-02 19:51 ` aldyh at gcc dot gnu.org
2021-10-03 19:06 ` pinskia 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).