public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/5563: [Cygwin] using a pointer named "end" consistently produces segfault in windows.
@ 2003-05-17 6:53 giovannibajo
0 siblings, 0 replies; 4+ messages in thread
From: giovannibajo @ 2003-05-17 6:53 UTC (permalink / raw)
To: arlankfo, gcc-bugs, gcc-prs, nobody
Synopsis: [Cygwin] using a pointer named "end" consistently produces segfault in windows.
State-Changed-From-To: open->closed
State-Changed-By: bajo
State-Changed-When: Sat May 17 06:53:28 2003
State-Changed-Why:
Not a GCC bug, and already fixed in binutils.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5563
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: target/5563: [Cygwin] using a pointer named "end" consistently produces segfault in windows.
@ 2003-03-03 2:46 Danny Smith
0 siblings, 0 replies; 4+ messages in thread
From: Danny Smith @ 2003-03-03 2:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR target/5563; it has been noted by GNATS.
From: Danny Smith <dannysmith@clear.net.nz>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, arlankfo@141.com,
nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org
Cc:
Subject: Re: target/5563: [Cygwin] using a pointer named "end" consistently
produces segfault in windows.
Date: Mon, 03 Mar 2003 02:44:11 +0000
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=g
cc&pr=5563
Fixed by this patch to binutils:
CVSROOT: /cvs/uberbaum
Module name: ld
Changes by: cgf at sourceware dot org 2003-03-03 02:38:10
Modified files:
. : ChangeLog
scripttempl : pe.sc
Log message:
* scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/ld/ChangeLog.diff?cvsroot=u
berbaum&r1=1.872&r2=1.873
http://sources.redhat.com/cgi-bin/cvsweb.cgi/ld/scripttempl/pe.sc.diff?c
vsroot=uberbaum&r1=1.7&r2=1.8
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: target/5563: [Cygwin] using a pointer named "end" consistently produces segfault in windows.
@ 2003-03-02 9:56 Danny Smith
0 siblings, 0 replies; 4+ messages in thread
From: Danny Smith @ 2003-03-02 9:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR target/5563; it has been noted by GNATS.
From: Danny Smith <dannysmith@clear.net.nz>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, arlankfo@141.com,
nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org
Cc:
Subject: Re: target/5563: [Cygwin] using a pointer named "end" consistently
produces segfault in windows.
Date: Sun, 02 Mar 2003 09:52:10 +0000
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=g
cc&pr=5563
This is really a binutils problem isn't it. In ld/scripttempl/pe/sc,
line 132ff
.endjunk ${RELOCATING+BLOCK(__section_alignment__)} :
{
/* end is deprecated, don't use it */
${RELOCATING+ end = .;}
${RELOCATING+ _end = .;}
${RELOCATING+ __end__ = .;}
}
Danny
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: target/5563: [Cygwin] using a pointer named "end" consistently produces segfault in windows.
@ 2003-03-02 8:26 Eric R. Krause
0 siblings, 0 replies; 4+ messages in thread
From: Eric R. Krause @ 2003-03-02 8:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR target/5563; it has been noted by GNATS.
From: "Eric R. Krause" <ekraus02@baker.edu>
To: <gcc-gnats@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>, <arlankfo@141.com>,
<nobody@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>
Cc:
Subject: Re: target/5563: [Cygwin] using a pointer named "end" consistently produces segfault in windows.
Date: Sun, 2 Mar 2003 03:19:30 -0500
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=5563
Confirmed for gcc 2.95.3/cygwin, also for gcc 3.2 cygwin package,
on Windows 2000. Microsoft Visual C++ 6.0-compiled executable of
same code does not segfault, nor does gcc on Debian GNU/Linux with
gcc-2.95 package version 2.95.4-11woody1.
The obvious workaround is not to use 'end' as a variable name. Also,
initializing the global 'end' variable causes the test program to
run OK, as does declaring the 'end' variable as being 'static'.
---
Eric R. Krause
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-05-17 6:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-17 6:53 target/5563: [Cygwin] using a pointer named "end" consistently produces segfault in windows giovannibajo
-- strict thread matches above, loose matches on Subject: below --
2003-03-03 2:46 Danny Smith
2003-03-02 9:56 Danny Smith
2003-03-02 8:26 Eric R. Krause
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).