This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/11949] [3.3.1 regression] Compiler segfault with ffmpeg altivec code


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aldyh at redhat dot com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|powerpc-linux               |
   GCC host triplet|powerpc-linux               |
 GCC target triplet|powerpc-linux               |
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-16 16:13:38
               date|                            |
            Summary|Compiler segfault with      |[3.3.1 regression] Compiler
                   |ffmpeg altivec code         |segfault with ffmpeg altivec
                   |                            |code
   Target Milestone|3.4                         |3.3.2


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-16 16:13 -------
Reduced case (you do not have to supply any options):
static const __attribute__((vector_size(16))) signed short constants[5] = {
    (__attribute__((vector_size(16))) signed short) {23170, 13573, 6518, 21895, -23170, -21895, 
32, 31},
    (__attribute__((vector_size(16))) signed short) {16384, 22725, 21407, 19266, 16384, 19266, 
21407, 22725},
    (__attribute__((vector_size(16))) signed short) {22725, 31521, 29692, 26722, 22725, 26722, 
29692, 31521},
    (__attribute__((vector_size(16))) signed short) {21407, 29692, 27969, 25172, 21407, 25172, 
27969, 29692},
    (__attribute__((vector_size(16))) signed short) {19266, 26722, 25172, 22654, 19266, 22654, 
25172, 26722}
};

I can confirm this in 3.3.2 (20030816).  It is already fixed on the mainline.

>From Phil's regressio hunter: Search converges between 2003-07-24-3.3 (#174) and 2003-07-
25-3.3 (#175).
I think it was caused by:
2003-07-24  Aldy Hernandez  <aldyh@redhat.com>

        Backport the folling patch.

        2003-04-01  Aldy Hernandez  <aldyh@redhat.com>

        PR/8878
        * expr.c (expand_expr): Handle VECTOR_CST.
        (const_vector_from_tree): New.

        * varasm.c (output_constant): Handle VECTOR_CST.

        * c-typeck.c (digest_init): Build a vector constant from a
        VECTOR_TYPE.

The fix was put on the mainline: Search converges between 2003-05-05-trunk (#287) and 2003-
05-06-trunk (#288).
I think it was
2003-05-05  Aldy Hernandez  <aldyh@redhat.com>

        * testsuite/gcc.c-torture/compile/simd-6.c: New.

        * c-typeck.c (digest_init): Handle arrays of vector constants.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]