Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 2004 15:58:31 +0100
From:      des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=)
To:        Harald Schmalzbauer <h@schmalzbauer.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: -Os and ndispatch.c
Message-ID:  <xzpekruf97s.fsf@dwp.des.no>
In-Reply-To: <200403151548.51218.h@schmalzbauer.de> (Harald Schmalzbauer's message of "Mon, 15 Mar 2004 15:48:46 %2B0100")
References:  <200403151548.51218.h@schmalzbauer.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Harald Schmalzbauer <h@schmalzbauer.de> writes:
> Please forget the following lines if "CFLAGS=3D -Os -pipe" is known to
> be unsupported.

We only support -O1.  All other values are known to be broken in
various ways.  Parts of the kernel rely on dead code elimination to
avoid warnings; parts of userland play pointer games which the ISO C
standard does not permit; some inline asm code may be broken in ways
that only affect code compiled with -O2 or higher.

Note that -O2 and -O3 used to produce incorrect code in some cases,
but AFAIK these issues have all been fixed in gcc, and the remaining
bugs are in our own code.

> /usr/src/lib/libc/net/nsdispatch.c: In function `nss_configure':
> /usr/src/lib/libc/net/nsdispatch.c:344: warning: dereferencing type-punne=
d pointer will break strict-aliasing rules
> [...]

I fixed those this morning.

> If I understand things right it should be part of Project Evil, so
> perhaps Bill Paul is interested in.

No.  It has nothing to do with Project Evil.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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