public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/44569] Debug statements passed to rtx
       [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
@ 2010-10-29 23:11 ` rguenth at gcc dot gnu.org
  2010-10-30 12:49 ` ubizjak at gmail dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-29 23:11 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-29 23:10:28 UTC ---
*** Bug 46227 has been marked as a duplicate of this bug. ***


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

* [Bug middle-end/44569] Debug statements passed to rtx
       [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
  2010-10-29 23:11 ` [Bug middle-end/44569] Debug statements passed to rtx rguenth at gcc dot gnu.org
@ 2010-10-30 12:49 ` ubizjak at gmail dot com
  2010-10-30 19:55 ` uros at gcc dot gnu.org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: ubizjak at gmail dot com @ 2010-10-30 12:49 UTC (permalink / raw)
  To: gcc-bugs

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|steven at gcc dot gnu.org   |ubizjak at gmail dot com

--- Comment #6 from Uros Bizjak <ubizjak at gmail dot com> 2010-10-30 12:49:07 UTC ---
Created attachment 22206
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22206
Patch that fixes simplify_subreg_concatn

simplify_subreg_concatn passes VOIDmode of const_int elements of

(debug_insn 7 4 8 2 (var_location:V16QI vuchar (concatn:V16QI [
            (const_int 1 [0x1])
            (const_int 2 [0x2])
            (const_int 3 [0x3])
            (const_int 4 [0x4])
            (const_int 1 [0x1])
            (const_int 2 [0x2])
            (const_int 3 [0x3])
            (const_int 4 [0x4])
            (const_int 1 [0x1])
            (const_int 2 [0x2])
            (const_int 3 [0x3])
            (const_int 4 [0x4])
            (const_int 1 [0x1])
            (const_int 2 [0x2])
            (const_int 3 [0x3])
            (const_int 4 [0x4])
        ])) vector-shift2.c:14 -1
     (nil))

to simplify_gen_subreg as inner mode.

So, in case of VOIDmode, just determine the mode of the elements by using
GET_MODE_INNER of vector mode of concatn RTX.


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

* [Bug middle-end/44569] Debug statements passed to rtx
       [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
  2010-10-29 23:11 ` [Bug middle-end/44569] Debug statements passed to rtx rguenth at gcc dot gnu.org
  2010-10-30 12:49 ` ubizjak at gmail dot com
@ 2010-10-30 19:55 ` uros at gcc dot gnu.org
  2010-10-30 20:38 ` uros at gcc dot gnu.org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: uros at gcc dot gnu.org @ 2010-10-30 19:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from uros at gcc dot gnu.org 2010-10-30 19:55:18 UTC ---
Author: uros
Date: Sat Oct 30 19:55:16 2010
New Revision: 166092

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166092
Log:
    PR middle-end/44569
    * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
    determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lower-subreg.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug middle-end/44569] Debug statements passed to rtx
       [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2010-10-30 19:55 ` uros at gcc dot gnu.org
@ 2010-10-30 20:38 ` uros at gcc dot gnu.org
  2010-10-30 20:50 ` uros at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: uros at gcc dot gnu.org @ 2010-10-30 20:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from uros at gcc dot gnu.org 2010-10-30 20:37:57 UTC ---
Author: uros
Date: Sat Oct 30 20:37:54 2010
New Revision: 166094

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166094
Log:
    PR middle-end/44569
    * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
    determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.


Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/lower-subreg.c


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

* [Bug middle-end/44569] Debug statements passed to rtx
       [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2010-10-30 20:38 ` uros at gcc dot gnu.org
@ 2010-10-30 20:50 ` uros at gcc dot gnu.org
  2010-10-30 20:55 ` uros at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: uros at gcc dot gnu.org @ 2010-10-30 20:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from uros at gcc dot gnu.org 2010-10-30 20:50:16 UTC ---
Author: uros
Date: Sat Oct 30 20:50:12 2010
New Revision: 166095

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166095
Log:
    PR middle-end/44569
    * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
    determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.


Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/lower-subreg.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


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

* [Bug middle-end/44569] Debug statements passed to rtx
       [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2010-10-30 20:50 ` uros at gcc dot gnu.org
@ 2010-10-30 20:55 ` uros at gcc dot gnu.org
  2010-10-30 21:02 ` [Bug middle-end/44569] ICE in simplify_subreg for debug insn with CONCATN ubizjak at gmail dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: uros at gcc dot gnu.org @ 2010-10-30 20:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from uros at gcc dot gnu.org 2010-10-30 20:55:07 UTC ---
Author: uros
Date: Sat Oct 30 20:55:03 2010
New Revision: 166096

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166096
Log:
    PR middle-end/44569
    * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
    determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.


Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/lower-subreg.c


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

* [Bug middle-end/44569] ICE in simplify_subreg for debug insn with CONCATN
       [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2010-10-30 20:55 ` uros at gcc dot gnu.org
@ 2010-10-30 21:02 ` ubizjak at gmail dot com
  2010-11-03 22:42 ` uros at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: ubizjak at gmail dot com @ 2010-10-30 21:02 UTC (permalink / raw)
  To: gcc-bugs

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|linux-gnu                   |x86_64-pc-linux-gnu
             Status|ASSIGNED                    |RESOLVED
            Version|unknown                     |4.6.0
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2010-10/msg02627.htm
                   |                            |l
               Host|host-x86_64-unknown         |x86_64-pc-linux-gnu
         Resolution|                            |FIXED
            Summary|Debug statements passed to  |ICE in simplify_subreg for
                   |rtx                         |debug insn with CONCATN
   Target Milestone|---                         |4.3.6
              Build|xgcc (GCC) 4.6.0 20100610   |x86_64-pc-linux-gnu
                   |(experimental)              |

--- Comment #11 from Uros Bizjak <ubizjak at gmail dot com> 2010-10-30 21:01:35 UTC ---
Fixed.


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

* [Bug middle-end/44569] ICE in simplify_subreg for debug insn with CONCATN
       [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2010-10-30 21:02 ` [Bug middle-end/44569] ICE in simplify_subreg for debug insn with CONCATN ubizjak at gmail dot com
@ 2010-11-03 22:42 ` uros at gcc dot gnu.org
  2010-11-03 22:44 ` uros at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: uros at gcc dot gnu.org @ 2010-11-03 22:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from uros at gcc dot gnu.org 2010-11-03 22:42:42 UTC ---
Author: uros
Date: Wed Nov  3 22:42:39 2010
New Revision: 166281

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166281
Log:
    Revert:
    2010-10-30  Uros Bizjak  <ubizjak@gmail.com>

    PR middle-end/44569
    * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
    determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.


Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/lower-subreg.c


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

* [Bug middle-end/44569] ICE in simplify_subreg for debug insn with CONCATN
       [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2010-11-03 22:42 ` uros at gcc dot gnu.org
@ 2010-11-03 22:44 ` uros at gcc dot gnu.org
  2010-11-03 22:46 ` uros at gcc dot gnu.org
  2010-11-03 22:48 ` ubizjak at gmail dot com
  10 siblings, 0 replies; 15+ messages in thread
From: uros at gcc dot gnu.org @ 2010-11-03 22:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from uros at gcc dot gnu.org 2010-11-03 22:44:07 UTC ---
Author: uros
Date: Wed Nov  3 22:44:04 2010
New Revision: 166282

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166282
Log:
    Revert:
    2010-10-30  Uros Bizjak  <ubizjak@gmail.com>

    PR middle-end/44569
    * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
    determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.


Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/lower-subreg.c


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

* [Bug middle-end/44569] ICE in simplify_subreg for debug insn with CONCATN
       [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2010-11-03 22:44 ` uros at gcc dot gnu.org
@ 2010-11-03 22:46 ` uros at gcc dot gnu.org
  2010-11-03 22:48 ` ubizjak at gmail dot com
  10 siblings, 0 replies; 15+ messages in thread
From: uros at gcc dot gnu.org @ 2010-11-03 22:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from uros at gcc dot gnu.org 2010-11-03 22:46:11 UTC ---
Author: uros
Date: Wed Nov  3 22:46:08 2010
New Revision: 166283

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166283
Log:
    Revert:
    2010-10-30  Uros Bizjak  <ubizjak@gmail.com>

    PR middle-end/44569
    * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
    determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.


Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/lower-subreg.c


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

* [Bug middle-end/44569] ICE in simplify_subreg for debug insn with CONCATN
       [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2010-11-03 22:46 ` uros at gcc dot gnu.org
@ 2010-11-03 22:48 ` ubizjak at gmail dot com
  10 siblings, 0 replies; 15+ messages in thread
From: ubizjak at gmail dot com @ 2010-11-03 22:48 UTC (permalink / raw)
  To: gcc-bugs

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

Uros Bizjak <ubizjak at gmail dot com> changed:

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


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

* [Bug middle-end/44569] Debug statements passed to rtx
  2010-06-17 14:12 [Bug c/44569] New: Debug statements passed to rtx artyom dot shinkaroff at gmail dot com
                   ` (2 preceding siblings ...)
  2010-08-15 19:38 ` artyom dot shinkaroff at gmail dot com
@ 2010-08-15 20:48 ` steven at gcc dot gnu dot org
  3 siblings, 0 replies; 15+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-08-15 20:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from steven at gcc dot gnu dot org  2010-08-15 20:48 -------
Investigating...


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |steven at gcc dot gnu dot
                   |dot org                     |org
             Status|WAITING                     |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-08-15 20:48:13
               date|                            |


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


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

* [Bug middle-end/44569] Debug statements passed to rtx
  2010-06-17 14:12 [Bug c/44569] New: Debug statements passed to rtx artyom dot shinkaroff at gmail dot com
  2010-08-15 19:05 ` [Bug middle-end/44569] " steven at gcc dot gnu dot org
  2010-08-15 19:35 ` artyom dot shinkaroff at gmail dot com
@ 2010-08-15 19:38 ` artyom dot shinkaroff at gmail dot com
  2010-08-15 20:48 ` steven at gcc dot gnu dot org
  3 siblings, 0 replies; 15+ messages in thread
From: artyom dot shinkaroff at gmail dot com @ 2010-08-15 19:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from artyom dot shinkaroff at gmail dot com  2010-08-15 19:38 -------
Yes, I still would like to solve the problem.

I just uploaded the patch for the revision 163240 (2010-08-14). The bug is
still there. The problem happens when you compile the following code with "-On
-g".

#define vector(elcount, type)  \
__attribute__((vector_size((elcount)*sizeof(type)))) type

#define vidx(type, vec, idx) (*((type *) &(vec) + idx))
#define uchar unsigned char

#define ch14 1,2,3,4
#define ch1  1,1,1,1

int main (int argc, char *argv[]) {
    vector(16, uchar) vuchar  = { ch14, ch14, ch14, ch14};
    vector(16,  char) vchar0  = { ch1, ch1, ch1, ch1};
    vector(16, uchar) u1;

    u1 = vuchar << vchar0;

    if (vidx(char, u1, 0) != ((uchar)1  << (char)1))
        __builtin_abort ();

    vuchar <<= vchar0;
    return 0;
}

The error message is the same as in the original description.
Thanks for help.


-- 


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


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

* [Bug middle-end/44569] Debug statements passed to rtx
  2010-06-17 14:12 [Bug c/44569] New: Debug statements passed to rtx artyom dot shinkaroff at gmail dot com
  2010-08-15 19:05 ` [Bug middle-end/44569] " steven at gcc dot gnu dot org
@ 2010-08-15 19:35 ` artyom dot shinkaroff at gmail dot com
  2010-08-15 19:38 ` artyom dot shinkaroff at gmail dot com
  2010-08-15 20:48 ` steven at gcc dot gnu dot org
  3 siblings, 0 replies; 15+ messages in thread
From: artyom dot shinkaroff at gmail dot com @ 2010-08-15 19:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from artyom dot shinkaroff at gmail dot com  2010-08-15 19:35 -------
Created an attachment (id=21483)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21483&action=view)
Recent version of the patch for the revision 163240

Recent version of the patch for the revision 163240


-- 


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


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

* [Bug middle-end/44569] Debug statements passed to rtx
  2010-06-17 14:12 [Bug c/44569] New: Debug statements passed to rtx artyom dot shinkaroff at gmail dot com
@ 2010-08-15 19:05 ` steven at gcc dot gnu dot org
  2010-08-15 19:35 ` artyom dot shinkaroff at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 15+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-08-15 19:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from steven at gcc dot gnu dot org  2010-08-15 19:05 -------
Is this still a problem for you? I can try to help you here, but I need to know
what patch I should apply and to what revision, to reproduce the problem.


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

end of thread, other threads:[~2010-11-03 22:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44569-4@http.gcc.gnu.org/bugzilla/>
2010-10-29 23:11 ` [Bug middle-end/44569] Debug statements passed to rtx rguenth at gcc dot gnu.org
2010-10-30 12:49 ` ubizjak at gmail dot com
2010-10-30 19:55 ` uros at gcc dot gnu.org
2010-10-30 20:38 ` uros at gcc dot gnu.org
2010-10-30 20:50 ` uros at gcc dot gnu.org
2010-10-30 20:55 ` uros at gcc dot gnu.org
2010-10-30 21:02 ` [Bug middle-end/44569] ICE in simplify_subreg for debug insn with CONCATN ubizjak at gmail dot com
2010-11-03 22:42 ` uros at gcc dot gnu.org
2010-11-03 22:44 ` uros at gcc dot gnu.org
2010-11-03 22:46 ` uros at gcc dot gnu.org
2010-11-03 22:48 ` ubizjak at gmail dot com
2010-06-17 14:12 [Bug c/44569] New: Debug statements passed to rtx artyom dot shinkaroff at gmail dot com
2010-08-15 19:05 ` [Bug middle-end/44569] " steven at gcc dot gnu dot org
2010-08-15 19:35 ` artyom dot shinkaroff at gmail dot com
2010-08-15 19:38 ` artyom dot shinkaroff at gmail dot com
2010-08-15 20:48 ` steven at gcc dot gnu dot 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).