This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: gcc bug, cygwin specific cygwin-1.3.10-1 gcc-2.95.3-5
- From: "Alex Song" <alexs at pdd dot edmi dot com dot au>
- To: <cygwin at cygwin dot com>
- Date: Wed, 13 Mar 2002 10:14:14 +1000
- Subject: Re: gcc bug, cygwin specific cygwin-1.3.10-1 gcc-2.95.3-5
>>hi,
>>
>>i think i have found a bug, either that or i am very stupid. the bug is a
>>gcc bug and it is cygwin specific (cygwin-1.3.10-1 gcc-2.95.3-5) and the
>>following code causes a seg fault:
>>-------------------------------------------
>>int end;
>>
>>int main ()
>>{
>> end = 1;
>>
>> return 0;
>>}
>>--------------------------------------------
>
>The global 'end' is a reserved word. It refers to the end of the data
>area. That means you can't use it as a global variable in your program.
reserved for what ? for gcc ? i didn't think end was a reserved word for the C
language and i didn't think it is a reserved word for gcc either as it would
compile and execute with gcc under non-cygwin (linux) environment. could someone
clarify this ?
cheers,
alex
--------------------------------------------------------------------------------
Alex Song
DESIGN ENGINEER
EDMI Product Development Division
alexs@pdd.edmi.com.au
Ph : +61 7 3881 6443
FAX : +61 7 3881 6420
--
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/