public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/59053] cilkplus branch compiler loops
Date: Fri, 08 Nov 2013 19:10:00 -0000	[thread overview]
Message-ID: <bug-59053-4-Y7yo7Vf87w@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-59053-4@http.gcc.gnu.org/bugzilla/>

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-11-08
                 CC|                            |bviyer at gmail dot com
   Target Milestone|---                         |4.9.0
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
The bug is in

     while (ii_tree)
        {
          if (TREE_CODE (ii_tree) == ARRAY_NOTATION_REF)
            {
              current_rank++;
              ii_tree = ARRAY_NOTATION_ARRAY (ii_tree);
            }
          else if (TREE_CODE (ii_tree) == ARRAY_REF)
            ii_tree = TREE_OPERAND (ii_tree, 0); 
          else if (TREE_CODE (ii_tree) == PARM_DECL
                   || TREE_CODE (ii_tree) == VAR_DECL)
            break;
        }

When TREE_CODE (ii_tree) != ARRAY_NOTATION_REF:

 <indirect_ref 0x7ffff06b0f80
    type <array_type 0x7ffff06327e0
        type <integer_type 0x7ffff09b6930 size_t readonly public unsigned
type_6 DI
            size <integer_cst 0x7ffff18b5140 constant 64>
            unit size <integer_cst 0x7ffff18b5160 constant 8>
            align 64 symtab 0 alias set -1 canonical type 0x7ffff0f9bbd0
precision 64 min <integer_cst 0x7ffff18b5580 0> max <integer_cst 0x7ffff18b5560
18446744073709551615>
            pointer_to_this <pointer_type 0x7ffff0a28000>>
        type_6 BLK
        size <integer_cst 0x7ffff0b21800 constant 2048>
        unit size <integer_cst 0x7ffff0b217e0 constant 256>
        align 64 symtab 0 alias set -1 canonical type 0x7ffff0632690
        domain <integer_type 0x7ffff0f2b150 type <integer_type 0x7ffff18b60a8
sizetype>
            type_6 DI size <integer_cst 0x7ffff18b5140 64> unit size
<integer_cst 0x7ffff18b5160 8>
            align 64 symtab 0 alias set -1 canonical type 0x7ffff0f2b150
precision 64 min <integer_cst 0x7ffff18b5180 0> max <integer_cst 0x7ffff0ed1d60
31>>
        pointer_to_this <pointer_type 0x7ffff0632d20>>
    readonly
    arg 0 <pointer_plus_expr 0x7ffff06b6078
        type <pointer_type 0x7ffff0632d20 type <array_type 0x7ffff06327e0>
            unsigned type_6 DI size <integer_cst 0x7ffff18b5140 64> unit size
<integer_cst 0x7ffff18b5160 8>
            align 64 symtab 0 alias set -1 canonical type 0x7ffff0632b28>

        arg 0 <parm_decl 0x7ffff067dc00 tally type <pointer_type
0x7ffff0632d20>
            used unsigned DI file /j/cilkpub/include/cilkpub/sort.h line 437
col 71 size <integer_cst 0x7ffff18b5140 64> unit size <integer_cst
0x7ffff18b5160 8>
            align 64 context <function_decl 0x7ffff067ca00 repack_and_subsort>
            arg-type <pointer_type 0x7ffff0632d20> chain <parm_decl
0x7ffff067dc80 comp>>
        arg 1 <nop_expr 0x7ffff06b0f60 type <integer_type 0x7ffff18b60a8
sizetype>

            arg 0 <mult_expr 0x7ffff06b6050 type <integer_type 0x7ffff18e3dc8
size_t>
                arg 0 <var_decl 0x7ffff06a7688 i>
                arg 1 <integer_cst 0x7ffff06b0de0 constant 256>>>
        /j/cilkpub/include/cilkpub/sort.h:456:42>
    /j/cilkpub/include/cilkpub/sort.h:456:42>

it turns into an infinite loop.


       reply	other threads:[~2013-11-08 19:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-59053-4@http.gcc.gnu.org/bugzilla/>
2013-11-08 19:10 ` hjl.tools at gmail dot com [this message]
2013-11-08 21:59 ` john.forrest at fastercoin dot com
2014-04-22 11:36 ` jakub at gcc dot gnu.org
2014-07-16 13:30 ` jakub at gcc dot gnu.org
2014-07-30 11:07 ` nick.tomlinson at arm dot com
2014-10-30 10:40 ` jakub at gcc dot gnu.org
2015-06-26 20:17 ` jakub at gcc dot gnu.org
2015-06-26 20:38 ` jakub at gcc dot gnu.org
2015-06-26 21:19 ` pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-59053-4-Y7yo7Vf87w@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).