[Bug c++/41985] New: Internal compiler error reported.

View: New views
5 Messages — Rating Filter:   Alert me  

[Bug c++/41985] New: Internal compiler error reported.

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

=========================================================================================
>>>>>uname -a
Linux saturne 2.6.30-2-686 #1 SMP Sat Sep 26 01:16:22 UTC 2009 i686 GNU/Linux
=========================================================================================
>>>>>cat check-pshuf.cpp
typedef unsigned __attribute__((vector_size(16),aligned(16))) v4ui ;
int main()
{

                v4ui A ; unsigned *a = ((unsigned *)(&A)) ;
                v4ui S ; unsigned *s = ((unsigned *)(&S)) ;

                asm( "pshufd   $0x00,%1,%0" : "=x"(A) : "g"(S) );

                asm( "pshufd   $0x55,%1,%&" : "=x"(A) : "g"(S) );


}
=========================================================================================
>>>>>g++ -msse2  -v -save-temps check-pshuf.cpp
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.4-5'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr
--enable-targets=all --with-tune=generic --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.4 (Debian 4.3.4-5)
COLLECT_GCC_OPTIONS='-msse2' '-v' '-save-temps' '-shared-libgcc'
'-mtune=generic'
 /usr/lib/gcc/i486-linux-gnu/4.3.4/cc1plus -E -quiet -v -D_GNU_SOURCE
check-pshuf.cpp -msse2 -mtune=generic -fpch-preprocess -o check-pshuf.ii
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/i486-linux-gnu/4.3.4/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/4.3
 /usr/include/c++/4.3/i486-linux-gnu
 /usr/include/c++/4.3/backward
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.3.4/include
 /usr/lib/gcc/i486-linux-gnu/4.3.4/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-msse2' '-v' '-save-temps' '-shared-libgcc'
'-mtune=generic'
 /usr/lib/gcc/i486-linux-gnu/4.3.4/cc1plus -fpreprocessed check-pshuf.ii -quiet
-dumpbase check-pshuf.cpp -msse2 -mtune=generic -auxbase check-pshuf -version
-o check-pshuf.s
GNU C++ (Debian 4.3.4-5) version 4.3.4 (i486-linux-gnu)
        compiled by GNU C version 4.3.4, GMP version 4.3.1, MPFR version
2.4.1-p2.
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64379
Compiler executable checksum: 1f1d2eae96d81d3f1eb06cc899abe620
check-pshuf.cpp: In function 'int main()':
check-pshuf.cpp:13: internal compiler error: in get_some_local_dynamic_name, at
config/i386/i386.c:8778
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.
=========================================================================================


--
           Summary: Internal compiler error reported.
           Product: gcc
           Version: 4.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: philippe dot hoogvorst at neuf dot fr
 GCC build triplet:  i486-linux-gnu
  GCC host triplet:  i486-linux-gnu
GCC target triplet:  i486-linux-gnu


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


[Bug target/41985] Internal compiler error reported.

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-11-08 11:31 -------
There's a typo here:

               asm( "pshufd   $0x55,%1,%&" : "=x"(A) : "g"(S) );

%& is not valid.


--

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c++                         |target
     Ever Confirmed|0                           |1
  GCC build triplet| i486-linux-gnu             |i486-linux-gnu
   GCC host triplet| i486-linux-gnu             |i486-linux-gnu
 GCC target triplet| i486-linux-gnu             |i486-linux-gnu
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |4.3.4 4.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-11-08 11:31:23
               date|                            |


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


[Bug target/41985] Internal compiler error reported.

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #2 from jakub at gcc dot gnu dot org  2009-11-08 13:45 -------
http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00432.html


--

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2009-
                   |                            |11/msg00432.html
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2009-11-08 11:31:23         |2009-11-08 13:45:24
               date|                            |


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


[Bug target/41985] Internal compiler error reported.

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #3 from jakub at gcc dot gnu dot org  2009-11-08 21:13 -------
Subject: Bug 41985

Author: jakub
Date: Sun Nov  8 21:12:52 2009
New Revision: 154014

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154014
Log:
        PR target/41985
        * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
        function contains at least one local dynamic name.
        (print_operand) <case '&'>: Instead output operand lossage diagnostics
        here if that happens.

        * gcc.target/i386/pr41985.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr41985.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog


--


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


[Bug target/41985] Internal compiler error reported.

by Bugzilla from gcc-bugzilla@gcc.gnu.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



------- Comment #4 from jakub at gcc dot gnu dot org  2009-11-08 21:15 -------
Fixed on the trunk.


--

jakub at gcc dot gnu dot org changed:

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


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