* gas/write.c - infinite loop
@ 2005-02-24 17:45 James Lemke
2005-02-24 17:47 ` Nick Clifton
2005-02-25 15:45 ` Alan Modra
0 siblings, 2 replies; 6+ messages in thread
From: James Lemke @ 2005-02-24 17:45 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
I came across a problem with gas hanging recently. The attached patch
was the fix. It seems obvious, but I'm boot strapping on i686-linux
now.
comments? OK for mainline?
Jim.
--
James Lemke jim@wasabisystems.com Orillia, Ontario
http://www.wasabisystems.com
[-- Attachment #2: gas-write.c-patch --]
[-- Type: text/x-patch, Size: 1054 bytes --]
Index: gas/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.2371
diff -u -p -r1.2371 ChangeLog
--- gas/ChangeLog 23 Feb 2005 12:28:01 -0000 1.2371
+++ gas/ChangeLog 24 Feb 2005 16:22:13 -0000
@@ -1,3 +1,7 @@
+2005-02-24 James Lemke <jim@wasabisystems.com>
+
+ * write.c (write_object_file): Make link update unconditional.
+
2005-02-23 Alan Modra <amodra@bigpond.net.au>
* cgen.c: Warning fixes.
Index: gas/write.c
===================================================================
RCS file: /cvs/src/src/gas/write.c,v
retrieving revision 1.82
diff -u -p -r1.82 write.c
--- gas/write.c 7 Feb 2005 03:13:10 -0000 1.82
+++ gas/write.c 24 Feb 2005 16:22:14 -0000
@@ -1474,8 +1474,7 @@ write_object_file (void)
bfd_section_list_remove (stdoutput, seclist);
stdoutput->section_count--;
}
- else
- seclist = &(*seclist)->next;
+ seclist = &(*seclist)->next;
}
i = 0;
bfd_map_over_sections (stdoutput, renumber_sections, &i);
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gas/write.c - infinite loop
2005-02-24 17:45 gas/write.c - infinite loop James Lemke
@ 2005-02-24 17:47 ` Nick Clifton
2005-02-24 18:40 ` James Lemke
2005-02-25 15:45 ` Alan Modra
1 sibling, 1 reply; 6+ messages in thread
From: Nick Clifton @ 2005-02-24 17:47 UTC (permalink / raw)
To: James Lemke; +Cc: binutils
Hi Jim,
> I came across a problem with gas hanging recently. The attached patch
> was the fix. It seems obvious, but I'm boot strapping on i686-linux
> now.
>
> comments?
Do you have a testcase ?
> OK for mainline?
Maybe, but I would like to know more about the problem first.
Cheers
Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gas/write.c - infinite loop
2005-02-24 17:47 ` Nick Clifton
@ 2005-02-24 18:40 ` James Lemke
2005-02-24 22:43 ` James Lemke
0 siblings, 1 reply; 6+ messages in thread
From: James Lemke @ 2005-02-24 18:40 UTC (permalink / raw)
To: Nick Clifton; +Cc: binutils
[-- Attachment #1: Type: text/plain, Size: 578 bytes --]
On Thu, 2005-02-24 at 12:25, Nick Clifton wrote:
> Hi Jim,
>
> > I came across a problem with gas hanging recently. The attached patch
> > was the fix. It seems obvious, but I'm boot strapping on i686-linux
> > now.
> >
> > comments?
>
> Do you have a testcase ?
I was compiling hello.c with a mingw x xscale configuration.
(xscale-elf-gcc.exe -o hello.x hello.c)
The problem did not show up for i686-linux x xscale.
A regression test for this config should be complete soon.
Jim.
--
James Lemke jim@wasabisystems.com Orillia, Ontario
http://www.wasabisystems.com
[-- Attachment #2: hello.c --]
[-- Type: text/x-csrc, Size: 99 bytes --]
#include <stdio.h>
int main( int argc, char *argv[])
{
printf( "hello world!\n");
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gas/write.c - infinite loop
2005-02-24 18:40 ` James Lemke
@ 2005-02-24 22:43 ` James Lemke
0 siblings, 0 replies; 6+ messages in thread
From: James Lemke @ 2005-02-24 22:43 UTC (permalink / raw)
To: Nick Clifton; +Cc: binutils
> The problem did not show up for i686-linux x xscale.
> A regression test for this config should be complete soon.
No regressions, results were identical.
--
James Lemke jim@wasabisystems.com Orillia, Ontario
http://www.wasabisystems.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gas/write.c - infinite loop
2005-02-24 17:45 gas/write.c - infinite loop James Lemke
2005-02-24 17:47 ` Nick Clifton
@ 2005-02-25 15:45 ` Alan Modra
2005-02-25 16:03 ` James Lemke
1 sibling, 1 reply; 6+ messages in thread
From: Alan Modra @ 2005-02-25 15:45 UTC (permalink / raw)
To: James Lemke; +Cc: binutils
On Thu, Feb 24, 2005 at 11:31:01AM -0500, James Lemke wrote:
> I came across a problem with gas hanging recently. The attached patch
> was the fix. It seems obvious, but I'm boot strapping on i686-linux
Not OK. I don't believe there is a problem with this piece of code.
ie. You are working around a compiler bug, and in any case your patch is
incorrect. See the definition of bfd_section_list_remove.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: gas/write.c - infinite loop
2005-02-25 15:45 ` Alan Modra
@ 2005-02-25 16:03 ` James Lemke
0 siblings, 0 replies; 6+ messages in thread
From: James Lemke @ 2005-02-25 16:03 UTC (permalink / raw)
To: Alan Modra; +Cc: binutils
On Thu, 2005-02-24 at 20:23, Alan Modra wrote:
> On Thu, Feb 24, 2005 at 11:31:01AM -0500, James Lemke wrote:
> > I came across a problem with gas hanging recently. The attached patch
> > was the fix. It seems obvious, but I'm boot strapping on i686-linux
>
> Not OK. I don't believe there is a problem with this piece of code.
> ie. You are working around a compiler bug, and in any case your patch is
> incorrect. See the definition of bfd_section_list_remove.
Hmmm. bfd_section_list_remove does do the right thing. So there must
be a problem with my build compiler. Thanks Alan.
Withdrawn.
--
James Lemke jim@wasabisystems.com Orillia, Ontario
http://www.wasabisystems.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-02-25 13:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-24 17:45 gas/write.c - infinite loop James Lemke
2005-02-24 17:47 ` Nick Clifton
2005-02-24 18:40 ` James Lemke
2005-02-24 22:43 ` James Lemke
2005-02-25 15:45 ` Alan Modra
2005-02-25 16:03 ` James Lemke
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).