From owner-freebsd-bugs Thu Sep 11 03:30:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA12654 for bugs-outgoing; Thu, 11 Sep 1997 03:30:05 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA12648; Thu, 11 Sep 1997 03:30:02 -0700 (PDT) Resent-Date: Thu, 11 Sep 1997 03:30:02 -0700 (PDT) Resent-Message-Id: <199709111030.DAA12648@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, markm@iafrica.com Received: from rodent.iafrica.com (markm@rodent.iafrica.com [196.31.1.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA12297 for ; Thu, 11 Sep 1997 03:23:44 -0700 (PDT) Received: (from markm@localhost) by rodent.iafrica.com (8.8.7/8.8.5) id MAA27219; Thu, 11 Sep 1997 12:23:40 +0200 (SAT) Message-Id: <199709111023.MAA27219@rodent.iafrica.com> Date: Thu, 11 Sep 1997 12:23:40 +0200 (SAT) From: Mark R V Murray Reply-To: markm@iafrica.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: gnu/4511: GCC optimization broken with -m486? Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 4511 >Category: gnu >Synopsis: GCC optimization broken with -m486? >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 11 03:30:01 PDT 1997 >Last-Modified: >Originator: Mark R V Murray >Organization: UUNET Internet Africa >Release: FreeBSD 2.2-STABLE i386 >Environment: Recent 2.2-STABLE with CFLAGS= -O2 -m486 -pipe in /etc/make.conf >Description: We noticed this problem when sh(1) started to misbehave. sh objects to a line in a script that looks like foo=$((2 << 29)) >How-To-Repeat: [make 2.2-STABLE with CFLAGS in /etc/make.conf as above] cd /dev ; ./MAKEDEV >Fix: Workarounds: 1) remove 1 of -O2 or -m486 2) modify the offending line in the script to read foo=$((2<<29)) (ie remove the spaces on either side of <<) >Audit-Trail: >Unformatted: