From owner-freebsd-current Mon Feb 21 7:44:15 2000 Delivered-To: freebsd-current@freebsd.org Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by hub.freebsd.org (Postfix) with ESMTP id 0496037BE59 for ; Mon, 21 Feb 2000 07:44:08 -0800 (PST) (envelope-from brdean@unx.sas.com) Received: from mozart (mozart.unx.sas.com [192.58.184.28]) by lamb.sas.com (8.9.3/8.9.1) with SMTP id KAA25035; Mon, 21 Feb 2000 10:44:02 -0500 (EST) Received: from dean.pc.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA03302; Mon, 21 Feb 2000 10:43:31 -0500 Received: (from brdean@localhost) by dean.pc.sas.com (8.9.3/8.9.1) id KAA00586; Mon, 21 Feb 2000 10:43:31 -0500 (EST) (envelope-from brdean) From: Brian Dean Message-Id: <200002211543.KAA00586@dean.pc.sas.com> Subject: Re: gcc code generation bug (optimisation related) In-Reply-To: <38B106D0.B416F877@altavista.net> from Maxim Sobolev at "Feb 21, 2000 11:35:13 am" To: sobomax@altavista.net Date: Mon, 21 Feb 2000 10:43:31 -0500 (EST) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This was my mistake. Seigo Tanimura found the problem and sent me a patch which I committed as soon as I saw it. I had a bad contraint on the destination operand of an __asm inline that did not trigger when I built the kernel at the default optimization level, but does at other optimization levels. -Brian -- Brian Dean bsd@freebsd.org brdean@unx.sas.com Maxim Sobolev wrote: > Hi, > > When I'm trying to compile kernel from just cvsup'ed sources on system > builded/installed last evening I have following error message. This problem > could be solved by lowering optimisation to -O, but previously I have no > problems with -O2 for kernels. > > cc -c -O2 -march=pentium -Wall -Wredundant-decls -Wnested-externs > -Wstrict-proto > types -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > -fformat-exten > sions -ansi -nostdinc -I- -I. -I../.. -I../../../include -D_KERNEL -include > op > t_global.h -elf -mpreferred-stack-boundary=2 ../../i386/i386/machdep.c > /tmp/ccfL2694.s: Assembler messages: > /tmp/ccfL2694.s:3563: Error: operands given don't match any known 386 > instruction > *** Error code 1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message