Bug 11215 - ICE on vector operation involving local initialized variable
Summary: ICE on vector operation involving local initialized variable
Status: RESOLVED DUPLICATE of bug 7277
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.3
: P2 normal
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-17 02:01 UTC by Seth LaForge
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Seth LaForge 2003-06-17 02:01:44 UTC
This might be the same as #10984, but it seems different enough that it may not be:

% gcc -mmmx -c test.c
test.c: In function `test':
test.c:5: internal compiler error: in output_constant_pool, at varasm.c:3492
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
% gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.3 (Debian)
% uname -a
Linux burn 2.4.20 #2 SMP Mon Mar 10 22:16:27 PST 2003 i686 GNU/Linux
Comment 1 Andrew Pinski 2003-06-17 02:11:53 UTC
Can you provide the preprocessed sources for temp.c?  Can you check to see if this is a dup of 
7277, which it looks like it is?
Comment 2 Seth LaForge 2003-06-17 02:18:43 UTC
Subject: Re:  ICE on vector operation involving local initialized variable 

> Can you provide the preprocessed sources for temp.c?  

Um, the preprocessed sources are exactly the same as the
unpreprocessed sources:

# 1 "test.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.c"
typedef int v8qi __attribute__ ((mode(V8QI)));
v8qi test() {
  v8qi v = (v8qi)0x0101010101010101ll;
  return __builtin_ia32_paddb(v, v);
}

> Can you check to see if this is a dup of 7277, which it looks like
> it is?

It does look very similar.  Is it the same?  Hard to say...

There's definitely something very broken with constant
folding/emitting and vector stuff.

Seth
Comment 3 Andrew Pinski 2003-06-17 02:22:18 UTC
This is definitly the same bug as 7277, the Aldy is working on it.

*** This bug has been marked as a duplicate of 7277 ***