From owner-freebsd-bugs Thu Sep 11 12:52:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA13308 for bugs-outgoing; Thu, 11 Sep 1997 12:52:43 -0700 (PDT) Received: from smtp2.xs4all.nl (smtp2.xs4all.nl [194.109.6.52]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA13292 for ; Thu, 11 Sep 1997 12:52:37 -0700 (PDT) Received: from asterix.xs4all.nl (root@asterix.xs4all.nl [194.109.6.11]) by smtp2.xs4all.nl (8.8.6/XS4ALL) with ESMTP id VAA17568; Thu, 11 Sep 1997 21:51:45 +0200 (CEST) Received: from muon.xs4all.nl (uucp@localhost) by asterix.xs4all.nl (8.8.6/8.8.6) with UUCP id VAA23630; Thu, 11 Sep 1997 21:42:07 +0200 (MET DST) Received: (from plm@localhost) by muon.xs4all.nl (8.8.6/8.7.3) id VAA00718; Thu, 11 Sep 1997 21:07:31 +0200 (MET DST) To: markm@iafrica.com, freebsd-bugs@freebsd.org Subject: Re: gnu/4511: GCC optimization broken with -m486? References: <199709111023.MAA27219@rodent.iafrica.com> From: Peter Mutsaers Date: 11 Sep 1997 21:07:31 +0200 In-Reply-To: Mark R V Murray's message of Thu, 11 Sep 1997 12:23:40 +0200 (SAT) Message-ID: <874t7rd5zg.fsf@muon.xs4all.nl> Lines: 35 X-Mailer: Gnus v5.4.25/Emacs 19.34 Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> On Thu, 11 Sep 1997 12:23:40 +0200 (SAT), Mark R V Murray >> said: >> Description: MRVM> We noticed this problem when sh(1) started to misbehave. MRVM> sh objects to a line in a script that looks like MRVM> foo=$((2 << 29)) >> How-To-Repeat: MRVM> [make 2.2-STABLE with CFLAGS in /etc/make.conf as above] MRVM> cd /dev ; ./MAKEDEV >> Fix: MRVM> Workarounds: MRVM> 1) remove 1 of -O2 or -m486 MRVM> 2) modify the offending line in the script to read MRVM> foo=$((2<<29)) MRVM> (ie remove the spaces on either side of <<) I always build using -O2 and -m486, and my -current sh does not show this bug. By the way, in another follow-up Bruce Evans said that -m486 should not be used and doesn't improve things. Is that really true? According to gcc's man page it should improve speed for a 486, so I assumed it will benefit a Pentium too. -- /\_/\ ( o.o ) Peter Mutsaers | Abcoude (Utrecht), | Trust me, I know ) ^ ( plm@xs4all.nl | the Netherlands | what I'm doing.