From owner-freebsd-hackers Thu Aug 14 08:05:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA22183 for hackers-outgoing; Thu, 14 Aug 1997 08:05:28 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA22177 for ; Thu, 14 Aug 1997 08:05:19 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id AAA20826; Fri, 15 Aug 1997 00:33:51 +0930 (CST) From: Michael Smith Message-Id: <199708141503.AAA20826@genesis.atrad.adelaide.edu.au> Subject: Re: gcc bug? In-Reply-To: from Lars Gerhard Kuehl at "Aug 14, 97 04:44:37 pm" To: lgk@BIK-GmbH.DE (Lars Gerhard Kuehl) Date: Fri, 15 Aug 1997 00:33:51 +0930 (CST) Cc: hackers@FreeBSD.ORG, peters@skye.icr.ac.uk, cracauer@cons.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Lars Gerhard Kuehl stands accused of saying: > > > I just encountered quite a seriously strange behaviour > of gcc (2.7.2.1 of 2.2.2-RELEASE) (maybe I've only > well slept and it's already well known ;). > > In a program, reading, occasionally manipulating and writing > a fairly long string the strings get unhappily shortened. Please post a minimal test program that demonstrates your problem. > Well I thought I made mistake but it turned out to be a compiler > 'option': It's quite likely that you are making a mistake that is only significant at one particular optimisation level. -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[