From: Alex Williamson <alex_williamson@hp.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] gcc-3.2 bug
Date: Tue, 28 Jan 2003 21:58:28 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590709805762@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 1401 bytes --]
I've been trying to figure out why agpgart_be.c won't compile on
ia64 w/ gcc-3.2, and I've got a pretty simple test case that seems
to show a compiler bug. Not being much of a tools guy, I figured
I'd toss it out here. If I compile with -O2, I get an undefined
reference much like I see in the kernel:
# gcc -O2 -o test test.c
/tmp/ccQCPFMM.o(.text+0xa0): In function `main':
: undefined reference to `.L13'
collect2: ld returned 1 exit status
If I compile w/o optimization or w/ gcc-2.96, it works fine. It
also works fine on x86 w/ gcc-3.2. Here's my gcc info:
# gcc -v
Reading specs from /usr/lib/gcc-lib/ia64-linux/3.2.2/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2
--enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc ia64-linux
Thread model: posix
gcc version 3.2.2 20030124 (Debian prerelease)
This is the Debian unstable 3.2.2-0pre6. I'll file a bug there too.
Test case attached. Thanks,
Alex
--
Alex Williamson Linux Development Lab
alex_williamson@hp.com Hewlett Packard
970-898-9173 Fort Collins, CO
[-- Attachment #2: test.c --]
[-- Type: text/x-csrc, Size: 445 bytes --]
#include <stdio.h>
#include <stdlib.h>
int
main(int argc, char **argv)
{
int arg, value = 0;
printf("%s %d\n",argv[0], atoi(argv[1]));
arg = atoi(argv[1]);
switch (arg) {
case 0:
value += arg;
break;
case 1:
value += arg;
break;
case 2:
value += arg;
break;
case 3:
value += arg;
break;
case 4:
value += arg;
break;
default:
value = 0;
break;
}
printf("value = %d\n",value);
return 0;
}
next reply other threads:[~2003-01-28 21:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-28 21:58 Alex Williamson [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-03-05 2:03 [Linux-ia64] gcc-3.2 bug David Mosberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105590709805762@msgid-missing \
--to=alex_williamson@hp.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.