Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <006701c27731$95ba1ba0$df8cfea9@freeserve.co.uk>
From: "Elfyn McBratney" <elfyn@exposure.org.uk>
To: <chikayama@logos.t.u-tokyo.ac.jp>
Cc: <cygwin@cygwin.com>
References: <000c01c2772e$c221c830$1176fea9@X22Chikayama>
Subject: Re: 1.3.12: gcc bug: variable named "end"
Date: Sat, 19 Oct 2002 06:37:14 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200

I believe this is to do with the code and not a bug. The code you gave
segfault'ed and dumped the core, on a machine close to your arc (1.3.12-4).
Im not a c programmer, yet ;), but i think its to do with declaration...This
works:

int
main()
{

  /* declare the variable so main() can see it */
  int end;

  /* do what you please with end */
  int end = 0;

}

Elfyn

----- Original Message -----
From: Takashi Chikayama <chikayama@kjps.net>
To: <cygwin@cygwin.com>
Cc: 'ICPC02' <kurage@cs.meiji.ac.jp>
Sent: Saturday, October 19, 2002 6:16 AM
Subject: 1.3.12: gcc bug: variable named "end"


> CYGWIN_NT-5.1 X22CHIKAYAMA 1.3.12(0.54/3/2) 2002-07-06 02:16 i686
> unknown
> gcc 2.95.3-5
>
> The following program causes a segmentation fault.
> ---
> int end;
> main() { end = 0; }
> ---
> Seems that the problem is with the variable name "end".
> In the object code tries to store in some invalid address.
> Variables with other names, of course, does not cause this.
>
> - Takashi Chikayama@Dept. of Frontier Informatics, the Univ. of Tokyo
> - 7-3-1 Hongo, Bunkyo-ku, Tokyo 113 Japan
> - Tel. +81-3-5841-6658; Fax. +81-3-5841-8572
>
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

