public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/50587] New: ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change
@ 2011-10-01 14:31 andi-gcc at firstfloor dot org
  2011-10-02 13:18 ` [Bug tree-optimization/50587] " markus at trippelsdorf dot de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: andi-gcc at firstfloor dot org @ 2011-10-01 14:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50587

             Bug #: 50587
           Summary: ICE init_range_entry, at tree-ssa-reassoc.c:1698
                    caused by recent change
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: andi-gcc@firstfloor.org


Jakub, your recent change

        PR tree-optimization/46309
        * fold-const.c (make_range, merge_ranges): Remove prototypes.
        (make_range_step): New function.
        (make_range): Use it.
        * tree.h (make_range_step): New prototypes.
        * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
        * tree-ssa-reassoc.c: Include diagnostic-core.h.
        (struct range_entry): New type.
        (init_range_entry, range_entry_cmp, update_range_test,
        optimize_range_tests): New functions.
        (reassociate_bb): Call optimize_range_tests.

        * gcc.dg/pr46309.c: New test.

breaks my LTO kernel builds.

I get a lot of

internal compiler error: in init_range_entry, at tree-ssa-reassoc.c:1698

in different files. With the patch reverted things are fine


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

* [Bug tree-optimization/50587] ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change
  2011-10-01 14:31 [Bug tree-optimization/50587] New: ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change andi-gcc at firstfloor dot org
@ 2011-10-02 13:18 ` markus at trippelsdorf dot de
  2011-10-03  7:58 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: markus at trippelsdorf dot de @ 2011-10-02 13:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50587

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot
                   |                            |de

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-10-02 13:18:00 UTC ---
It also breaks LTO build of Firefox with the same ICE.


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

* [Bug tree-optimization/50587] ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change
  2011-10-01 14:31 [Bug tree-optimization/50587] New: ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change andi-gcc at firstfloor dot org
  2011-10-02 13:18 ` [Bug tree-optimization/50587] " markus at trippelsdorf dot de
@ 2011-10-03  7:58 ` jakub at gcc dot gnu.org
  2011-10-03  8:44 ` markus at trippelsdorf dot de
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-10-03  7:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50587

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011-10-03
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-10-03 07:57:27 UTC ---
Created attachment 25402
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25402
gcc47-pr50587.patch

Does this patch fix it?  I've reproduce it only on invalid code:
extern int c[64];

int
foo (int a)
{
  int x = a > 1;
  int y = &c[60] < (int *) 0x12345678UL;
  return x | y;
}


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

* [Bug tree-optimization/50587] ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change
  2011-10-01 14:31 [Bug tree-optimization/50587] New: ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change andi-gcc at firstfloor dot org
  2011-10-02 13:18 ` [Bug tree-optimization/50587] " markus at trippelsdorf dot de
  2011-10-03  7:58 ` jakub at gcc dot gnu.org
@ 2011-10-03  8:44 ` markus at trippelsdorf dot de
  2011-10-03  9:07 ` jakub at gcc dot gnu.org
  2011-10-03 11:56 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: markus at trippelsdorf dot de @ 2011-10-03  8:44 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50587

--- Comment #3 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-10-03 08:44:09 UTC ---
(In reply to comment #2)
> Created attachment 25402 [details]
> gcc47-pr50587.patch
> 
> Does this patch fix it?

Yes it fixes both the LTO kernel and Firefox builds.
Thanks.


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

* [Bug tree-optimization/50587] ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change
  2011-10-01 14:31 [Bug tree-optimization/50587] New: ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change andi-gcc at firstfloor dot org
                   ` (2 preceding siblings ...)
  2011-10-03  8:44 ` markus at trippelsdorf dot de
@ 2011-10-03  9:07 ` jakub at gcc dot gnu.org
  2011-10-03 11:56 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-10-03  9:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50587

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-10-03 09:06:43 UTC ---
Author: jakub
Date: Mon Oct  3 09:06:38 2011
New Revision: 179447

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179447
Log:
    PR tree-optimization/50587
    * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
    arg0 is not a SSA_NAME.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-reassoc.c


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

* [Bug tree-optimization/50587] ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change
  2011-10-01 14:31 [Bug tree-optimization/50587] New: ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change andi-gcc at firstfloor dot org
                   ` (3 preceding siblings ...)
  2011-10-03  9:07 ` jakub at gcc dot gnu.org
@ 2011-10-03 11:56 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-10-03 11:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50587

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

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-10-03 11:55:30 UTC ---
Fixed.


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

end of thread, other threads:[~2011-10-03 11:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-01 14:31 [Bug tree-optimization/50587] New: ICE init_range_entry, at tree-ssa-reassoc.c:1698 caused by recent change andi-gcc at firstfloor dot org
2011-10-02 13:18 ` [Bug tree-optimization/50587] " markus at trippelsdorf dot de
2011-10-03  7:58 ` jakub at gcc dot gnu.org
2011-10-03  8:44 ` markus at trippelsdorf dot de
2011-10-03  9:07 ` jakub at gcc dot gnu.org
2011-10-03 11:56 ` 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).