From owner-freebsd-current@FreeBSD.ORG Wed Mar 31 02:18:36 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D7AC16A4CE for ; Wed, 31 Mar 2004 02:18:36 -0800 (PST) Received: from atmosphere.local (dyn-099164.nbw.tue.nl [131.155.99.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA90343D31 for ; Wed, 31 Mar 2004 02:18:35 -0800 (PST) (envelope-from rene@dyn-099164.nbw.tue.nl) Received: from dyn-099164.nbw.tue.nl (atmosphere.local [127.0.0.1]) by atmosphere.local (8.12.10/8.12.10) with ESMTP id i2VAIYG2021678 for ; Wed, 31 Mar 2004 12:18:34 +0200 (CEST) (envelope-from rene@dyn-099164.nbw.tue.nl) Received: (from rene@localhost) by dyn-099164.nbw.tue.nl (8.12.10/8.12.10/Submit) id i2VAIYLu021677 for freebsd-current@freebsd.org; Wed, 31 Mar 2004 12:18:34 +0200 (CEST) (envelope-from rene) Date: Wed, 31 Mar 2004 12:18:34 +0200 From: Rene Ladan To: freebsd-current@freebsd.org Message-ID: <20040331101834.GA21652@dyn-099164.nbw.tue.nl> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rwEMma7ioTxnRzrJ" Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: system's gcc bug? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2004 10:18:36 -0000 --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I'm getting runtime errors when executing the following program and declaring one of the arrays: ---------------- #include int main(void) { /* int a[4] = { 0, 1, 2, 3 }; enable this line to get a buserror */ int *i; /* int b[4] = { 0, 1, 2, 3 }; enable this line to get a segfault */ for (*i = 0; *i < 4; (*i)++) printf("%p %i\n", i, *i); return(0); } ---------------- I'm running system's gcc on 5.2.1-release: Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.3.3 [FreeBSD] 20031106 I have not yet mailed to the gcc developers, as the system gcc is somewhat patched. Neither have I filed a PR yet. Rene --rwEMma7ioTxnRzrJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAapr6bWa3bO9NFoMRAqhDAKCyMq0XehryT13jEax7gtEwmoayxQCgwa2o OblgIzund2nEcPfTcS9cJQ4= =NKsr -----END PGP SIGNATURE----- --rwEMma7ioTxnRzrJ--