public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14420] New:  Internal compiler error in gen_reg_rtx, at emit-rtl.c:677
@ 2004-03-03 21:57 mpercy at scires dot com
  2004-03-03 22:28 ` [Bug c/14420] " bangerth at dealii dot org
  2004-03-03 22:36 ` [Bug target/14420] " pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: mpercy at scires dot com @ 2004-03-03 21:57 UTC (permalink / raw)
  To: gcc-bugs

It seems that if any -O level is set, then the SSE expression with 
__builtin_ia32_movmskps will cause the error. Without -O, it seems OK. A reduced 
snippet that produces the error is incldued, along with some configuration 
information. My machine is a Redhat9 box maintained and current with Ximian 
red-carpet. I will report the same bug to Redhat's bugzilla.

[mpercy@mikesa20]$ uname -a
Linux mikesa20 2.4.20-20.9 #1 Mon Aug 18 11:45:58 EDT 2003 i686 i686 i386 
GNU/Linux

[mpercy@mikesa20]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --with-system-zlib --enable-__cxa_atexit 
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

[mpercy@mikesa20]$ cat foo.c
typedef float v4sf __attribute__ ((mode(V4SF),aligned(16)));
typedef int v4si __attribute__ ((mode(V4SI),aligned(16)));

unsigned foo(void)
{
    v4sf zero;
    v4si mask;
    if (__builtin_ia32_movmskps((v4sf)__builtin_ia32_cmpneqps((v4sf)mask, zero))
) return (1u << 29);
}
[mpercy@mikesa20]$ gcc -c -O -msse foo.c
foo.c: In function `foo':
foo.c:9: Internal compiler error in gen_reg_rtx, at emit-rtl.c:677
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
[mpercy@mikesa20]$ gcc -c -msse foo.c
[mpercy@mikesa20]$ 
[mpercy@mikesa20]$ gcc -O -msse foo.c
foo.c: In function `foo':
foo.c:9: Internal compiler error in gen_reg_rtx, at emit-rtl.c:677
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

-- 
           Summary:  Internal compiler error in gen_reg_rtx, at emit-
                    rtl.c:677
           Product: gcc
           Version: 3.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mpercy at scires dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c/14420] Internal compiler error in gen_reg_rtx, at emit-rtl.c:677
  2004-03-03 21:57 [Bug c/14420] New: Internal compiler error in gen_reg_rtx, at emit-rtl.c:677 mpercy at scires dot com
@ 2004-03-03 22:28 ` bangerth at dealii dot org
  2004-03-03 22:36 ` [Bug target/14420] " pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2004-03-03 22:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-03-03 22:28 -------
Confirmed, but this is fixed already in 3.3, 3.4 and mainline. Time to 
upgrade. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
            Summary| Internal compiler error in |Internal compiler error in
                   |gen_reg_rtx, at emit-       |gen_reg_rtx, at emit-
                   |rtl.c:677                   |rtl.c:677
   Target Milestone|---                         |3.3.4


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


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

* [Bug target/14420] Internal compiler error in gen_reg_rtx, at emit-rtl.c:677
  2004-03-03 21:57 [Bug c/14420] New: Internal compiler error in gen_reg_rtx, at emit-rtl.c:677 mpercy at scires dot com
  2004-03-03 22:28 ` [Bug c/14420] " bangerth at dealii dot org
@ 2004-03-03 22:36 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-03 22:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-03 22:36 -------
Fixed since at least 3.3.1.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.2.3
      Known to work|                            |3.3.1 3.5.0 3.4.0
   Target Milestone|3.3.4                       |3.3.1


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


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

end of thread, other threads:[~2004-03-03 22:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-03 21:57 [Bug c/14420] New: Internal compiler error in gen_reg_rtx, at emit-rtl.c:677 mpercy at scires dot com
2004-03-03 22:28 ` [Bug c/14420] " bangerth at dealii dot org
2004-03-03 22:36 ` [Bug target/14420] " pinskia 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).