public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/46068] New: [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with -flto/-fwhopr and asm goto
@ 2010-10-18 15:01 zsojka at seznam dot cz
  2010-10-18 15:39 ` [Bug tree-optimization/46068] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-18 15:01 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] ICE: in consider_split, at
                    ipa-split.c:313 with -flto/-fwhopr and asm goto
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 22078
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22078
reduced testcase

Compiler output:
$ gcc -O2 -flto pr46067.c
testcase.c: In function 'foo':
testcase.c:6:1: internal compiler error: in consider_split, at ipa-split.c:313
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r165629 - crash
r165540 - crash
r163636 - crash
r161659 - crash
r159696 - OK
4.5 r163761 - OK


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

* [Bug tree-optimization/46068] [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with -flto/-fwhopr and asm goto
  2010-10-18 15:01 [Bug tree-optimization/46068] New: [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with -flto/-fwhopr and asm goto zsojka at seznam dot cz
@ 2010-10-18 15:39 ` rguenth at gcc dot gnu.org
  2010-10-18 18:34 ` [Bug tree-optimization/46068] [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with asm goto and __builtin_unreachable () jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-18 15:39 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.0


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

* [Bug tree-optimization/46068] [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with asm goto and __builtin_unreachable ()
  2010-10-18 15:01 [Bug tree-optimization/46068] New: [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with -flto/-fwhopr and asm goto zsojka at seznam dot cz
  2010-10-18 15:39 ` [Bug tree-optimization/46068] " rguenth at gcc dot gnu.org
@ 2010-10-18 18:34 ` jakub at gcc dot gnu.org
  2010-10-18 18:55 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-10-18 18:34 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|lto                         |
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.18 18:34:22
                 CC|                            |jakub at gcc dot gnu.org
            Summary|[4.6 Regression] ICE: in    |[4.6 Regression] ICE: in
                   |consider_split, at          |consider_split, at
                   |ipa-split.c:313 with        |ipa-split.c:313 with asm
                   |-flto/-fwhopr and asm goto  |goto and
                   |                            |__builtin_unreachable ()
     Ever Confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-10-18 18:34:22 UTC ---
void
foo ()
{
  asm goto (""::::l1);
  __builtin_unreachable ();
  l1:;
}

void
bar ()
{
  foo ();
  foo ();
}

ICEs at -O2 even without -flto.


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

* [Bug tree-optimization/46068] [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with asm goto and __builtin_unreachable ()
  2010-10-18 15:01 [Bug tree-optimization/46068] New: [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with -flto/-fwhopr and asm goto zsojka at seznam dot cz
  2010-10-18 15:39 ` [Bug tree-optimization/46068] " rguenth at gcc dot gnu.org
  2010-10-18 18:34 ` [Bug tree-optimization/46068] [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with asm goto and __builtin_unreachable () jakub at gcc dot gnu.org
@ 2010-10-18 18:55 ` jakub at gcc dot gnu.org
  2010-10-20  8:23 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-10-18 18:55 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-10-18 18:55:18 UTC ---
The testcase has 3 basic blocks, one contains the asm goto (for which
estimate_num_insns returns 0 because the string is empty), another one is
__builtin_unreachable () (obviously it doesn't require code) and the last one
is GIMPLE_RETURN (with no return value, again, no code).
So overall_size is 0.  I'd say either we should not call find_split_points at
all if overall_size is 0, or we should nuke that gcc_unreachable () on which it
ICEs in consider_split.


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

* [Bug tree-optimization/46068] [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with asm goto and __builtin_unreachable ()
  2010-10-18 15:01 [Bug tree-optimization/46068] New: [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with -flto/-fwhopr and asm goto zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2010-10-18 18:55 ` jakub at gcc dot gnu.org
@ 2010-10-20  8:23 ` jakub at gcc dot gnu.org
  2010-11-04 12:52 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-10-20  8:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

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


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

* [Bug tree-optimization/46068] [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with asm goto and __builtin_unreachable ()
  2010-10-18 15:01 [Bug tree-optimization/46068] New: [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with -flto/-fwhopr and asm goto zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2010-10-20  8:23 ` jakub at gcc dot gnu.org
@ 2010-11-04 12:52 ` rguenth at gcc dot gnu.org
  2010-11-04 15:17 ` rguenth at gcc dot gnu.org
  2010-11-04 15:20 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-04 12:52 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-04 12:52:15 UTC ---
The gcc_unreachable is certainly gross, maybe it was ok for developing the
patch but as we can easily handle the situation we shouldn't explode in
the users face.


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

* [Bug tree-optimization/46068] [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with asm goto and __builtin_unreachable ()
  2010-10-18 15:01 [Bug tree-optimization/46068] New: [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with -flto/-fwhopr and asm goto zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2010-11-04 12:52 ` rguenth at gcc dot gnu.org
@ 2010-11-04 15:17 ` rguenth at gcc dot gnu.org
  2010-11-04 15:20 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-04 15:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-04 15:17:29 UTC ---
Author: rguenth
Date: Thu Nov  4 15:17:24 2010
New Revision: 166315

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166315
Log:
2010-11-04  Richard Guenther  <rguenther@suse.de>

    PR tree-optimization/46068
    * ipa-split.c (consider_split): Remove gcc_unreachable.

    * gcc.dg/torture/pr46068.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr46068.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-split.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug tree-optimization/46068] [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with asm goto and __builtin_unreachable ()
  2010-10-18 15:01 [Bug tree-optimization/46068] New: [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with -flto/-fwhopr and asm goto zsojka at seznam dot cz
                   ` (5 preceding siblings ...)
  2010-11-04 15:17 ` rguenth at gcc dot gnu.org
@ 2010-11-04 15:20 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-04 15:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-04 15:20:42 UTC ---
Fixed.


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

end of thread, other threads:[~2010-11-04 15:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-18 15:01 [Bug tree-optimization/46068] New: [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with -flto/-fwhopr and asm goto zsojka at seznam dot cz
2010-10-18 15:39 ` [Bug tree-optimization/46068] " rguenth at gcc dot gnu.org
2010-10-18 18:34 ` [Bug tree-optimization/46068] [4.6 Regression] ICE: in consider_split, at ipa-split.c:313 with asm goto and __builtin_unreachable () jakub at gcc dot gnu.org
2010-10-18 18:55 ` jakub at gcc dot gnu.org
2010-10-20  8:23 ` jakub at gcc dot gnu.org
2010-11-04 12:52 ` rguenth at gcc dot gnu.org
2010-11-04 15:17 ` rguenth at gcc dot gnu.org
2010-11-04 15:20 ` 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).