Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2002 09:34:54 -0500
From:      Jason Andresen <jandrese@mitre.org>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Alp Atici <aa878@columbia.edu>, freebsd-hackers@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: FreeBSD 5.x
Message-ID:  <3C4D788E.CE483AF0@mitre.org>
References:  <Pine.GSO.4.44.0201191709540.2959-100000@ciao.cc.columbia.edu> <3C4A53EE.B882356C@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:
> 
> Alp Atici wrote:
> > Is gcc 3.x going to be the default compiler starting from
> > FBSD 5.x series? Is the development on current branch
> > compiled using gcc 3.0 (or up)?
> 
> I think that the cut over will happen after the compiler
> no longer core dumps on:

Odd, I can't reproduce that under RedHat:

RedHat <gypsy/pts/0> (5 ~): cat gcctest.c
 main()
        {
                int i;

                i = foo();

                switch( i) {
                default:
                        printf( "hello, stupid compiler!\n");
                        break;
                }
        }

        int
        foo()
        {
                return( 6);
        }

RedHat <gypsy/pts/0> (6 ~): gcc3 -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.0.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --host=i386-redhat-linux
Thread model: posix
gcc version 3.0.2 20010905 (Red Hat Linux 7.1 3.0.1-3)
RedHat <gypsy/pts/0> (7 ~): gcc3 -Wall -pedantic -o gcctest gcctest.c
gcctest.c:2: warning: return type defaults to `int'
gcctest.c: In function `main':
gcctest.c:5: warning: implicit declaration of function `foo'
gcctest.c:9: warning: implicit declaration of function `printf'
gcctest.c:12: warning: control reaches end of non-void function
RedHat <gypsy/pts/0> (8 ~): ./gcctest
hello, stupid compiler!


-- 
  \  |_ _|__ __|_ \ __| Jason Andresen        jandrese@mitre.org
 |\/ |  |    |    / _|  Network and Distributed Systems Engineer
_|  _|___|  _| _|_\___| Office: 703-883-7755


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C4D788E.CE483AF0>