From owner-cvs-all Sun Mar 14 13:51:11 1999 Delivered-To: cvs-all@freebsd.org Received: from helios.dnttm.ru (dnttm-gw.rssi.ru [193.232.0.205]) by hub.freebsd.org (Postfix) with ESMTP id EF8DC157CA; Sun, 14 Mar 1999 13:51:00 -0800 (PST) (envelope-from dima@tejblum.dnttm.rssi.ru) Received: (from uucp@localhost) by helios.dnttm.ru (8.9.1/8.9.1/IP-3) with UUCP id AAA19983; Mon, 15 Mar 1999 00:42:05 +0300 Received: from tejblum.dnttm.rssi.ru (localhost [127.0.0.1]) by tejblum.dnttm.rssi.ru (8.9.3/8.9.1) with ESMTP id AAA03550; Mon, 15 Mar 1999 00:45:45 +0300 (MSK) (envelope-from dima@tejblum.dnttm.rssi.ru) Message-Id: <199903142145.AAA03550@tejblum.dnttm.rssi.ru> X-Mailer: exmh version 2.0gamma 1/27/96 To: John Polstra Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, John Polstra Subject: Re: cvs commit: src/lib/csu/i386-elf Makefile crtbegin.c crtend. In-reply-to: Your message of "Sun, 14 Mar 1999 11:34:15 PST." Mime-Version: 1.0 Content-Type: text/plain Date: Mon, 15 Mar 1999 00:45:45 +0300 From: Dmitrij Tejblum Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk John Polstra wrote: > Dmitrij Tejblum wrote: > > John Polstra wrote: > >> Modified files: > >> lib/csu/i386-elf Makefile crtbegin.c crtend.c > >> > >> Remove "-Wno-unused" from the Makefile. Replace it with "__unused" > >> on particular function and variable declarations. > > > > Ah! This is the thing that breaks world (namely, groff) with -O3. gcc > > eliminate the "unused" code completely, and you cannot fix it by > > -Wno-unused or by __unused. > > Ouch! That's no good. > > Let me make sure I understand what you're saying. The change above > didn't cause the breakage, it only helped you to figure out what was > wrong. Is that correct? Yes, exactly. > Could you please send me the make world output from where the > build dies? I want to be sure about the details. Once I'm sure I > understand it, I'll add some stuff to make sure that the compiler > can't be quite so smart. Well, I never did that personally, but it is really known failure. It usually looks like this: ===> share/doc/psd ===> share/doc/psd/title touch _stamp.extraobjs (cd /usr/src/share/doc/psd/title; groff -mtty-char -Tascii -ms -o1- /usr/src/share/doc/psd/title/Title) | gzip -cn > Title.ascii.gz groff: can't find `DESC' file groff:fatal error: invalid device `ascii' Example mail: Message-ID: <36B812EC.9D2279A5@tpgi.com.au> Date: Wed, 03 Feb 1999 20:12:12 +1100 From: Eddie Irvine (Then usually Mike Smith explain that everything other than -O is broken because gcc is buggy) Some people go further and run groff's configure script. The configure script tell that static constructors/destructors are not called. Examples: Message-ID: <19980918190509.A2708@radio-do.de> Date: Fri, 18 Sep 1998 19:05:09 +0200 From: Frank Nobis Message-ID: Date: Wed, 14 Oct 1998 21:23:48 -0400 (EDT) From: Luke I attach one of them to the end of my message. Dima -----------------------------------------------------------------