public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659
@ 2011-09-08 16:40 gmaxwell at gmail dot com
  2011-09-17  4:49 ` [Bug middle-end/50335] " gmaxwell at gmail dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: gmaxwell at gmail dot com @ 2011-09-08 16:40 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50335
           Summary: ICE in psct_dynamic_dim, at graphite-poly.h:659
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gmaxwell@gmail.com


Created attachment 25231
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25231
preprocessed case that reproduces it

Compiling libopus
http://git.xiph.org/?p=opus.git;a=snapshot;h=f329fa6f0f1e08506a210608bc6de34b5949ec6b;sf=tgz

libcelt/pitch.c: In function 'pitch_search':
libcelt/pitch.c:152:6: internal compiler error: in psct_dynamic_dim, at
graphite-poly.h:659

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/gmaxwell/gcc/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --enable-lto --prefix=/home/gmaxwell/gcc/
--enable-cloog-backend=isl --disable-java --disable-libgcj --enable-lipo
--enable-graphite --enable-languages=c --disable-bootstrap
--enable-stage1-languages=c --disable-libstdcxx-v3
Thread model: posix
gcc version 4.7.0 20110908 (experimental) (GCC) 

CFLAGS='-Ofast -floop-flatten' ; make

(doesn't fail with -O3 -floop-flatten)

Preprocessed file attached.


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
@ 2011-09-17  4:49 ` gmaxwell at gmail dot com
  2011-10-07 14:52 ` gmaxwell at gmail dot com
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gmaxwell at gmail dot com @ 2011-09-17  4:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Gregory Maxwell <gmaxwell at gmail dot com> 2011-09-17 00:31:43 UTC ---
Still failing in r178925.


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
  2011-09-17  4:49 ` [Bug middle-end/50335] " gmaxwell at gmail dot com
@ 2011-10-07 14:52 ` gmaxwell at gmail dot com
  2011-10-07 14:57 ` paolo.carlini at oracle dot com
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gmaxwell at gmail dot com @ 2011-10-07 14:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Gregory Maxwell <gmaxwell at gmail dot com> 2011-10-07 14:52:37 UTC ---
Still failing in r179659.


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
  2011-09-17  4:49 ` [Bug middle-end/50335] " gmaxwell at gmail dot com
  2011-10-07 14:52 ` gmaxwell at gmail dot com
@ 2011-10-07 14:57 ` paolo.carlini at oracle dot com
  2011-10-07 15:30 ` gmaxwell at gmail dot com
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-07 14:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-07 14:57:11 UTC ---
No miracles, eh?


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
                   ` (2 preceding siblings ...)
  2011-10-07 14:57 ` paolo.carlini at oracle dot com
@ 2011-10-07 15:30 ` gmaxwell at gmail dot com
  2011-11-14  6:49 ` gmaxwell at gmail dot com
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gmaxwell at gmail dot com @ 2011-10-07 15:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Gregory Maxwell <gmaxwell at gmail dot com> 2011-10-07 15:29:42 UTC ---
Ha, indeed. Well, I don't want it to be forgotten just because its become old
and potentially inapplicable.

I test GCC development periodically on all the software I work on— most of the
time anything I find is fixed quickly, it's not something urgent for me. (I
once reported a bug in a proprietary compiler: reporting bugs in GCC is my
penance ;) )


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
                   ` (3 preceding siblings ...)
  2011-10-07 15:30 ` gmaxwell at gmail dot com
@ 2011-11-14  6:49 ` gmaxwell at gmail dot com
  2011-12-06  4:52 ` gmaxwell at gmail dot com
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gmaxwell at gmail dot com @ 2011-11-14  6:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Gregory Maxwell <gmaxwell at gmail dot com> 2011-11-14 06:19:44 UTC ---
Still failing with r181345


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
                   ` (4 preceding siblings ...)
  2011-11-14  6:49 ` gmaxwell at gmail dot com
@ 2011-12-06  4:52 ` gmaxwell at gmail dot com
  2011-12-06  8:51 ` mkuvyrkov at gcc dot gnu.org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gmaxwell at gmail dot com @ 2011-12-06  4:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Gregory Maxwell <gmaxwell at gmail dot com> 2011-12-06 04:51:47 UTC ---
Still failing in r182038


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
                   ` (5 preceding siblings ...)
  2011-12-06  4:52 ` gmaxwell at gmail dot com
@ 2011-12-06  8:51 ` mkuvyrkov at gcc dot gnu.org
  2011-12-06 18:42 ` sebpop at gmail dot com
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2011-12-06  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mkuvyrkov at gcc dot
                   |                            |gnu.org, spop at gcc dot
                   |                            |gnu.org

--- Comment #7 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> 2011-12-06 08:50:37 UTC ---
Sebastian,

Putting this PR on your horizon.  This is an easily reproducible ICE in
graphite-poly.h.

Let us know if you are swamped and won't be able to look into this.

Thank you.


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
                   ` (6 preceding siblings ...)
  2011-12-06  8:51 ` mkuvyrkov at gcc dot gnu.org
@ 2011-12-06 18:42 ` sebpop at gmail dot com
  2011-12-08  0:06 ` maxim_kuvyrkov at mentor dot com
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sebpop at gmail dot com @ 2011-12-06 18:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from sebpop at gmail dot com <sebpop at gmail dot com> 2011-12-06 18:40:43 UTC ---
Hi Maxim,

Thanks for pointing me to this problem.

I would recommend that you disable the code in loop flattening by
early returning false in flatten_all_loops.  I'm pre-approving you to
commit such a patch (as I am not allowed to commit anything to gcc
due to my new employer's legal policies, although emailing or giving
instructions via a phone call to somebody of what to do seems to
be fine for now ;-)

Vladimir Kargov will take over where I left the patches to make graphite
work with ISL and once these are committed to gcc, we will be able to
implement loop flattening with ISL, by calling isl_map_flatten_range.

Sebastian


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
                   ` (7 preceding siblings ...)
  2011-12-06 18:42 ` sebpop at gmail dot com
@ 2011-12-08  0:06 ` maxim_kuvyrkov at mentor dot com
  2011-12-08  4:09 ` sebpop at gmail dot com
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: maxim_kuvyrkov at mentor dot com @ 2011-12-08  0:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from maxim_kuvyrkov at mentor dot com 2011-12-08 00:06:40 UTC ---
On 7/12/2011, at 7:40 AM, sebpop at gmail dot com wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50335
> 
> --- Comment #8 from sebpop at gmail dot com <sebpop at gmail dot com> 2011-12-06 18:40:43 UTC ---
> Hi Maxim,
> 
> Thanks for pointing me to this problem.
> 
> I would recommend that you disable the code in loop flattening by
> early returning false in flatten_all_loops.

Do I understand correctly that you are suggesting effectively disabling loop
flattening completely?

Thank you,

--
Maxim Kuvyrkov
Mentor Graphics


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
                   ` (8 preceding siblings ...)
  2011-12-08  0:06 ` maxim_kuvyrkov at mentor dot com
@ 2011-12-08  4:09 ` sebpop at gmail dot com
  2012-02-14 17:16 ` gmaxwell at gmail dot com
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sebpop at gmail dot com @ 2011-12-08  4:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from sebpop at gmail dot com <sebpop at gmail dot com> 2011-12-08 04:08:14 UTC ---
On Wed, Dec 7, 2011 at 18:06, maxim_kuvyrkov at mentor dot com
<gcc-bugzilla@gcc.gnu.org> wrote:
> Do I understand correctly that you are suggesting effectively disabling loop
> flattening completely?

Yes, that would fix this problem and other potential bugs
related to this implementation of flattening.


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
                   ` (9 preceding siblings ...)
  2011-12-08  4:09 ` sebpop at gmail dot com
@ 2012-02-14 17:16 ` gmaxwell at gmail dot com
  2012-02-22  9:26 ` gmaxwell at gmail dot com
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gmaxwell at gmail dot com @ 2012-02-14 17:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Gregory Maxwell <gmaxwell at gmail dot com> 2012-02-14 17:15:23 UTC ---
Still crashing in, r184217.


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
                   ` (10 preceding siblings ...)
  2012-02-14 17:16 ` gmaxwell at gmail dot com
@ 2012-02-22  9:26 ` gmaxwell at gmail dot com
  2012-02-22  9:47 ` gmaxwell at gmail dot com
  2012-03-02 20:36 ` mkuvyrkov at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: gmaxwell at gmail dot com @ 2012-02-22  9:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Gregory Maxwell <gmaxwell at gmail dot com> 2012-02-22 09:19:54 UTC ---
_Not_ failing in r184458.  Perhaps fixed by r184265?


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
                   ` (11 preceding siblings ...)
  2012-02-22  9:26 ` gmaxwell at gmail dot com
@ 2012-02-22  9:47 ` gmaxwell at gmail dot com
  2012-03-02 20:36 ` mkuvyrkov at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: gmaxwell at gmail dot com @ 2012-02-22  9:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Gregory Maxwell <gmaxwell at gmail dot com> 2012-02-22 09:39:51 UTC ---
Okay, it doesn't ICE now— but now I have cases where it apparently runs forever
and cases where it produces incorrect code with -floop-flatten.


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

* [Bug middle-end/50335] ICE in psct_dynamic_dim, at graphite-poly.h:659
  2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
                   ` (12 preceding siblings ...)
  2012-02-22  9:47 ` gmaxwell at gmail dot com
@ 2012-03-02 20:36 ` mkuvyrkov at gcc dot gnu.org
  13 siblings, 0 replies; 15+ messages in thread
From: mkuvyrkov at gcc dot gnu.org @ 2012-03-02 20:36 UTC (permalink / raw)
  To: gcc-bugs

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

Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> changed:

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

--- Comment #14 from Maxim Kuvyrkov <mkuvyrkov at gcc dot gnu.org> 2012-03-02 20:36:12 UTC ---
Fixed by removing loop flattening optimization.  The -floop-flatten flag no
does nothing.


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

end of thread, other threads:[~2012-03-02 20:36 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-08 16:40 [Bug middle-end/50335] New: ICE in psct_dynamic_dim, at graphite-poly.h:659 gmaxwell at gmail dot com
2011-09-17  4:49 ` [Bug middle-end/50335] " gmaxwell at gmail dot com
2011-10-07 14:52 ` gmaxwell at gmail dot com
2011-10-07 14:57 ` paolo.carlini at oracle dot com
2011-10-07 15:30 ` gmaxwell at gmail dot com
2011-11-14  6:49 ` gmaxwell at gmail dot com
2011-12-06  4:52 ` gmaxwell at gmail dot com
2011-12-06  8:51 ` mkuvyrkov at gcc dot gnu.org
2011-12-06 18:42 ` sebpop at gmail dot com
2011-12-08  0:06 ` maxim_kuvyrkov at mentor dot com
2011-12-08  4:09 ` sebpop at gmail dot com
2012-02-14 17:16 ` gmaxwell at gmail dot com
2012-02-22  9:26 ` gmaxwell at gmail dot com
2012-02-22  9:47 ` gmaxwell at gmail dot com
2012-03-02 20:36 ` mkuvyrkov 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).