public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/34266] New: ICE
@ 2007-11-28 19:11 kate01123 at gmail dot com
2008-01-09 20:37 ` [Bug target/34266] ICE wilson at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: kate01123 at gmail dot com @ 2007-11-28 19:11 UTC (permalink / raw)
To: gcc-bugs
/*
% uname -a
Linux lepidus 2.4.21-sgi302r24 #1 SMP Fri Oct 22 22:43:12 PDT 2004 ia64 ia64
ia64 GNU/Linux
% gcc -v
Using built-in specs.
Target: ia64-unknown-linux-gnu
Configured with: /usr/local/gcc-4.2.2/src/gcc-4.2.2/configure
--enable-languages=c,c++,fortran --with-gnu-as
--with-as=/usr/local/binutils-2.17/ia64-Linux-gcc-4.1.1/bin/as --with-gnu-ld
--with-ld=/usr/local/binutils-2.17/ia64-Linux-gcc-4.1.1/bin/ld
--with-gmp=/usr/local/gmp-4.2.1/ia64-Linux-gcc-4.2.0
--with-mpfr=/usr/local/mpfr-2.2.1/ia64-Linux-gmp-4.2.1-gcc-4.2.0
--prefix=/usr/local/gcc-4.2.2/ia64-Linux
Thread model: posix
gcc version 4.2.2
%
% gcc -funroll-loops -O2 -c foo.c // gives ICE
%
% gcc -funroll-loops -O1 -c foo.c // compiles successfully
% gcc -O2 -c foo.c // compiles successfully
%
% gcc-4.3-20071123 -funroll-loops -O2 -c foo.c
// compiles successfully
*/
/*
from GNU gmp "longlong.h"
*/
#define umul_ppmm(ph, pl, m0, m1) \
__asm__ ("xma.hu %0 = %2, %3, f0\n\txma.l %1 = %2, %3, f0" \
: "=&f" (ph), "=f" (pl) \
: "f" (m0), "f" (m1))
/* cut down from sage-2.8.14/flint-0.9-r1075.p1/ZmodF_mul.c */
inline
void bar(long* out, long a)
{
umul_ppmm(*out, *out, a, a);
*out += a * a;
}
void foo(long* out, long* in, long len)
{
int i; for (i = 0; i < len; i++)
bar(out, in[i]);
}
--
Summary: ICE
Product: gcc
Version: 4.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kate01123 at gmail dot com
GCC build triplet: ia64-unknown-linux-gnu
GCC host triplet: ia64-unknown-linux-gnu
GCC target triplet: ia64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34266
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/34266] ICE
2007-11-28 19:11 [Bug c/34266] New: ICE kate01123 at gmail dot com
@ 2008-01-09 20:37 ` wilson at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: wilson at gcc dot gnu dot org @ 2008-01-09 20:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from wilson at gcc dot gnu dot org 2008-01-09 19:11 -------
This is the same problem as PR 31684, which is fixed on mainline (pre-release
gcc-4.3) but not on the gcc-4.2 branch.
*** This bug has been marked as a duplicate of 31684 ***
--
wilson at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wilson at gcc dot gnu dot
| |org
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34266
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-09 19:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-28 19:11 [Bug c/34266] New: ICE kate01123 at gmail dot com
2008-01-09 20:37 ` [Bug target/34266] ICE wilson 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).