From owner-freebsd-current Sun Feb 28 17:14:28 1999 Delivered-To: freebsd-current@freebsd.org Received: from ianai.BlackSun.org (Ianai.blacksun.org [168.100.186.33]) by hub.freebsd.org (Postfix) with ESMTP id E8384154A4 for ; Sun, 28 Feb 1999 17:13:54 -0800 (PST) (envelope-from tugrul@ianai.BlackSun.org) Received: from localhost (tugrul@localhost) by ianai.BlackSun.org (8.8.8/8.8.7) with SMTP id UAA23286 for ; Sun, 28 Feb 1999 20:09:19 -0500 (EST) (envelope-from tugrul@ianai.BlackSun.org) Date: Sun, 28 Feb 1999 20:09:19 -0500 (EST) From: Tugrul To: current@freebsd.org Subject: Re: gcc In-Reply-To: <99Mar1.112518est.40420@border.alcanet.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 1 Mar 1999, Peter Jeremy wrote: > There's a catch-22 here: We can't prove the stability of EGCS until we > start using it. Even if we don't make EGCS the base compiler, we need > a standard documented mechanism for doing `make world' with EGCS as well > as agreement that bug reports using ECGS will be considered. > I'd personally love an option for make world to use egcs installed from the port tree. And perhaps a new mailing list just for throwing random egcs complaints at. Right now I'm manually building the source tree with egcs to see how I fair. Any failures I get from building thus far are replicable with the built in gcc, so egcs doesn't seem to choke on the code all too much. The kernel code is a slightly different matter. I get the following errors: [20:10]galatalt@callisto:/usr/src/sys/compile/CALLISTO# make CC=egcc -k egcc -c -O3 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -ansi -nostdinc -I- -I. -I../.. -I../../../include -DKERNEL -DVM_STACK -include opt_global.h -elf ../../i386/i386/identcpu.c ../../i386/i386/identcpu.c: In function `printcpuinfo': ../../i386/i386/identcpu.c:558: warning: unknown conversion type character `b' in format ../../i386/i386/identcpu.c:558: warning: too many arguments for format ../../i386/i386/identcpu.c: In function `print_AMD_info': ../../i386/i386/identcpu.c:902: internal error--insn does not satisfy its constraints: (insn:HI 278 454 279 (set (reg:SI 2 %ecx) (subreg:SI (lshiftrt:DI (reg:DI 1 %edx) (const_int 22)) 0)) 250 {lshrdi3_const_int_subreg} (nil) (expr_list:REG_DEAD (reg:SI 1 %edx) (nil))) toplev.c:1431: Internal compiler error in function fatal_insn *** Error code 1 (continuing) egcc -c -O3 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -ansi -nostdinc -I- -I. -I../.. -I../../../include -DKERNEL -DVM_STACK -include opt_global.h -elf ../../i386/i386/pmap.c ../../i386/i386/pmap.c: In function `pmap_setdevram': ../../i386/i386/pmap.c:555: internal error--insn does not satisfy its constraints: (insn:HI 107 330 109 (set (reg:SI 1 %edx) (subreg:SI (lshiftrt:DI (reg:DI 0 %eax) (const_int 12)) 0)) 250 {lshrdi3_const_int_subreg} (nil) (expr_list:REG_DEAD (reg:SI 0 %eax) (nil))) toplev.c:1431: Internal compiler error in function fatal_insn *** Error code 1 (continuing) `kernel' not remade because of errors. [20:10]galatalt@callisto:/usr/src/sys/compile/CALLISTO# Fun fun fun :-) I built those two files with gcc and rebooted with the output. Seemed fine. Tugrul Galatali To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message