public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: larssj@nospam.dk
To: gcc-gnats@gcc.gnu.org
Subject: ada/6661: gcc can't bootstrap gcc with -O3
Date: Tue, 14 May 2002 23:26:00 -0000	[thread overview]
Message-ID: <20020515061755.12941.qmail@sources.redhat.com> (raw)


>Number:         6661
>Category:       ada
>Synopsis:       gcc can't bootstrap gcc with -O3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue May 14 23:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lars S. Jensen
>Release:        CVS HEAD: gcc (GCC) 3.2 20020514 (experimental)
>Organization:
>Environment:
Linux 2.4.17-r5 Gentoo build AMD Athlon 
>Description:
gcc -c -march=athlon -g  -pipe  -O3 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long      -gnatpg -gnata -I- -I. -I../../../gcc/gcc/ada ../../../gcc/gcc/ada/tree_io.adb
+===========================GNAT BUG DETECTED==============================+
| 3.1 (20020212) (i686-pc-linux-gnu) GCC error:                            |
| RTL flag check: REG_POINTER used with unexpected rtx code `mem' in       |
|    copy_rtx_and_substitute, at integrate.c:2063                          |
| Error detected at ../../../gcc/gcc/ada/tree_io.adb:612:23                |


I have try it without -march=athlon and/or a gcc build with default setup -- same problem when I tries to bootstrap with -O3 
Why is it saying 3.1 (20020212)?

The problem have be there for more that a week!
>How-To-Repeat:
build gcc from CVS (20020513)

../gcc/configure --enable-languages='c,ada,c++,f77,java,objc' --enable-threads=posix --enable-long-long --disable-nls 

(time make bootstrap) && (cd gcc/;time make gnatlib_and_tools)
or
(time  make  CFLAGS='-march=athlon -pipe -O2' STAGE1_CFLAGS='-march=athlon -pipe -O2'  BOOT_CFLAGS='-march=athlon -pipe -O2' bootstrap ) && (cd gcc/;time make CFLAGS='-march=athlon -pipe -O2' STAGE1_CFLAGS='-march=athlon -pipe -O2'  GNATLIBCFLAGS='-march=athlon -pipe -O2'  BOOT_CFLAGS='-march=athlon -pipe -O2' gnatlib_and_tools)


and rebuild it with -O3

../gcc/configure --enable-languages='c,ada,c++,f77,java,objc' --enable-threads=posix --enable-long-long --disable-nls --prefix=/home/lasj/Test1 

(time make  CFLAGS='-V -O3' STAGE1_CFLAGS='-O3'  BOOT_CFLAGS='-O3' bootstrap ) && (cd gcc/;time make CFLAGS='-O3' STAGE1_CFLAGS='-O3'  GNATLIBCFLAGS='-O3'  BOOT_CFLAGS='-O3' gnatlib_and_tools)
or
(time make  CFLAGS='-march=athlon -g  -pipe -O3' STAGE1_CFLAGS='-march=athlon -g  -pipe  -O3'  BOOT_CFLAGS='-march=athlon -g  -pipe  -O3' bootstrap ) && (cd gcc/;time make CFLAGS='-march=athlon -g  -pipe -O3' STAGE1_CFLAGS='-march=athlon  -g  -pipe -O3'  GNATLIBCFLAGS='-march=athlon  -pipe  -g -O3'  BOOT_CFLAGS='-march=athlon  -pipe  -g -O3' gnatlib_and_tools)
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-05-15  6:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-14 23:26 larssj [this message]
2003-05-10  2:56 Dara Hazeghi
2003-05-10  7:45 giovannibajo

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=20020515061755.12941.qmail@sources.redhat.com \
    --to=larssj@nospam.dk \
    --cc=gcc-gnats@gcc.gnu.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 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).