public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
       [not found] <bug-18583-5791@http.gcc.gnu.org/bugzilla/>
@ 2005-10-04 19:20 ` janis187 at us dot ibm dot com
  2005-10-11 16:22 ` janis at gcc dot gnu dot org
  2005-10-11 16:45 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 12+ messages in thread
From: janis187 at us dot ibm dot com @ 2005-10-04 19:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from janis187 at us dot ibm dot com  2005-10-04 19:20 -------
My debugging sessions for this got bogged down, but I ran into a mainline fix
for this problem while investigating something else:

  http://gcc.gnu.org/ml/gcc-cvs/2004-05/msg00133.html

I'm testing a backport of that fix to the 3.4 branch and hope to submit it
later today or tomorrow.  Besides fixing the submitter's problem, the patch
also fixes a problem with DWARF2 debug information for vector types that a
neighboring gdb developer discovered yesterday.


-- 


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


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

* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
       [not found] <bug-18583-5791@http.gcc.gnu.org/bugzilla/>
  2005-10-04 19:20 ` [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays janis187 at us dot ibm dot com
@ 2005-10-11 16:22 ` janis at gcc dot gnu dot org
  2005-10-11 16:45 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 12+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-10-11 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from janis at gcc dot gnu dot org  2005-10-11 16:22 -------
I forgot to add the PR information to the ChangeLog entry at first, but this
is fixed in 3.4.5 by http://gcc.gnu.org/ml/gcc-cvs/2005-10/msg00274.html.


-- 


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


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

* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
       [not found] <bug-18583-5791@http.gcc.gnu.org/bugzilla/>
  2005-10-04 19:20 ` [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays janis187 at us dot ibm dot com
  2005-10-11 16:22 ` janis at gcc dot gnu dot org
@ 2005-10-11 16:45 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-11 16:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2005-10-11 16:45 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
  2004-11-20 22:06 [Bug c/18583] New: " lu_zero at gentoo dot org
                   ` (7 preceding siblings ...)
  2005-09-02 20:51 ` janis at gcc dot gnu dot org
@ 2005-09-13 18:18 ` janis at gcc dot gnu dot org
  8 siblings, 0 replies; 12+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-09-13 18:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From janis at gcc dot gnu dot org  2005-09-13 18:17 -------
I'm still looking at this.  My earlier comment about having fixed it on
mainline was wrong; I thought it was a problem in altivec.h, but it's in
the compiler itself and this problem never showed up on mainline.

-- 


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


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

* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
  2004-11-20 22:06 [Bug c/18583] New: " lu_zero at gentoo dot org
                   ` (6 preceding siblings ...)
  2005-06-09 22:02 ` aldyh at gcc dot gnu dot org
@ 2005-09-02 20:51 ` janis at gcc dot gnu dot org
  2005-09-13 18:18 ` janis at gcc dot gnu dot org
  8 siblings, 0 replies; 12+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-09-02 20:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From janis at gcc dot gnu dot org  2005-09-02 20:51 -------
A regression hunt shows that I broke this on the 3.4 branch with

  http://gcc.gnu.org/ml/gcc-cvs/2004-08/msg01183.html

I submitted a fix to mainline a few months later to fix the problem; I'll
backport that to the 3.4 branch next week.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |janis at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-02-19 14:08:30         |2005-09-02 20:51:52
               date|                            |


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


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

* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
  2004-11-20 22:06 [Bug c/18583] New: " lu_zero at gentoo dot org
                   ` (5 preceding siblings ...)
  2005-06-09 21:46 ` aldyh at gcc dot gnu dot org
@ 2005-06-09 22:02 ` aldyh at gcc dot gnu dot org
  2005-09-02 20:51 ` janis at gcc dot gnu dot org
  2005-09-13 18:18 ` janis at gcc dot gnu dot org
  8 siblings, 0 replies; 12+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2005-06-09 22:02 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
  2004-11-20 22:06 [Bug c/18583] New: " lu_zero at gentoo dot org
                   ` (4 preceding siblings ...)
  2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org
@ 2005-06-09 21:46 ` aldyh at gcc dot gnu dot org
  2005-06-09 22:02 ` aldyh at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2005-06-09 21:46 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
  2004-11-20 22:06 [Bug c/18583] New: " lu_zero at gentoo dot org
                   ` (3 preceding siblings ...)
  2004-11-20 22:35 ` pinskia at gcc dot gnu dot org
@ 2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org
  2005-06-09 21:46 ` aldyh at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:50 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.4                       |3.4.5


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


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

* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
  2004-11-20 22:06 [Bug c/18583] New: " lu_zero at gentoo dot org
                   ` (2 preceding siblings ...)
  2004-11-20 22:10 ` pinskia at gcc dot gnu dot org
@ 2004-11-20 22:35 ` pinskia at gcc dot gnu dot org
  2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-20 22:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-20 22:35 -------
Confirmed.
The problem is:
<nop_expr 0x40f6aac8
    type <vector_type 0x40ddbd24 __vector signed short
        type <integer_type 0x40dcc89c HI
            size <integer_cst 0x40dc9280 constant 16>
            unit size <integer_cst 0x40dc9360 constant 2>
            align 16 symtab 0 alias set -1 precision 16 min <integer_cst 0x40dc9680 -32768> max 
<integer_cst 0x40dc96a0 32767>
            pointer_to_this <pointer_type 0x40ddb15c>>
        V8HI
        size <integer_cst 0x40dc97a0 constant 128>
        unit size <integer_cst 0x40dc99c0 constant 16>
        align 128 symtab 0 alias set -1>
    constant
    arg 0 <vector_cst 0x40f419c0
        type <vector_type 0x40f68570 __vector signed short type <integer_type 0x40dcc89c>
            readonly V8HI size <integer_cst 0x40dc97a0 128> unit size <integer_cst 0x40dc99c0 16>
            align 128 symtab 0 alias set -1
            pointer_to_this <pointer_type 0x40f6889c>>
        constant
        elt0:  <integer_cst 0x40ddde40 constant 4095>
        elt1:  <integer_cst 0x40dddea0 constant 5681>
        elt2:  <integer_cst 0x40dddf00 constant 5351>
        elt3:  <integer_cst 0x40dddf60 constant 4816>
        elt4:  <integer_cst 0x40dddfc0 constant 4095>
        elt5:  <integer_cst 0x40f6b020 constant 4816>
        elt6:  <integer_cst 0x40f6b080 constant 5351>
        elt7:  <integer_cst 0x40f6b0e0 constant 5681>>>

Note the NOP_EXPR and how the vector types are located at different memory location.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janis at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-20 22:35:51
               date|                            |


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


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

* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
  2004-11-20 22:06 [Bug c/18583] New: " lu_zero at gentoo dot org
  2004-11-20 22:08 ` [Bug target/18583] [3.4 Regression] " pinskia at gcc dot gnu dot org
  2004-11-20 22:09 ` lu_zero at gentoo dot org
@ 2004-11-20 22:10 ` pinskia at gcc dot gnu dot org
  2004-11-20 22:35 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-20 22:10 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.4.3
      Known to work|                            |4.0.0 3.4.2


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


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

* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
  2004-11-20 22:06 [Bug c/18583] New: " lu_zero at gentoo dot org
  2004-11-20 22:08 ` [Bug target/18583] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2004-11-20 22:09 ` lu_zero at gentoo dot org
  2004-11-20 22:10 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: lu_zero at gentoo dot org @ 2004-11-20 22:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From lu_zero at gentoo dot org  2004-11-20 22:09 -------
Created an attachment (id=7573)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7573&action=view)
testcase


-- 


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


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

* [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
  2004-11-20 22:06 [Bug c/18583] New: " lu_zero at gentoo dot org
@ 2004-11-20 22:08 ` pinskia at gcc dot gnu dot org
  2004-11-20 22:09 ` lu_zero at gentoo dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-20 22:08 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
          Component|c                           |target
           Keywords|                            |rejects-valid
            Summary|error on valid code: const  |[3.4 Regression] error on
                   |__attribute__((altivec(vecto|valid code: const
                   |r__))) doesn't work in      |__attribute__((altivec(vecto
                   |arrays                      |r__))) doesn't work in
                   |                            |arrays
   Target Milestone|---                         |3.4.4


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


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

end of thread, other threads:[~2005-10-11 16:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18583-5791@http.gcc.gnu.org/bugzilla/>
2005-10-04 19:20 ` [Bug target/18583] [3.4 Regression] error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays janis187 at us dot ibm dot com
2005-10-11 16:22 ` janis at gcc dot gnu dot org
2005-10-11 16:45 ` pinskia at gcc dot gnu dot org
2004-11-20 22:06 [Bug c/18583] New: " lu_zero at gentoo dot org
2004-11-20 22:08 ` [Bug target/18583] [3.4 Regression] " pinskia at gcc dot gnu dot org
2004-11-20 22:09 ` lu_zero at gentoo dot org
2004-11-20 22:10 ` pinskia at gcc dot gnu dot org
2004-11-20 22:35 ` pinskia at gcc dot gnu dot org
2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org
2005-06-09 21:46 ` aldyh at gcc dot gnu dot org
2005-06-09 22:02 ` aldyh at gcc dot gnu dot org
2005-09-02 20:51 ` janis at gcc dot gnu dot org
2005-09-13 18:18 ` janis 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).