This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR target/16304: AIX 4.x forward reference proble
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: ebotcazou at adacore dot com (Eric Botcazou)
- Cc: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com, dje at watson dot ibm dot com, china at thewrittenword dot com
- Date: Mon, 17 Jan 2005 19:41:46 -0500 (EST)
- Subject: Re: [PATCH] Fix PR target/16304: AIX 4.x forward reference proble
> Broke 3.4 branch pretty much everywhere, e.g. i686-pc-linux-gnu:
Sorry, I've installed the following obvious fix. I actually only
tested the 3.4 fix on aix which obviously doesn't catch page 0 faults.
The 4.0 change was checked on i686-pc-linux-gnu. On 4.0, VEC_iterate
handles a null vector pointer.
This change was tested on i686-pc-linux-gnu.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2005-01-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* varasm.c (process_pending_assemble_output_defs): Fix previous change.
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.405.2.5
diff -u -3 -p -r1.405.2.5 varasm.c
--- varasm.c 16 Jan 2005 16:01:20 -0000 1.405.2.5
+++ varasm.c 17 Jan 2005 21:06:13 -0000
@@ -4427,6 +4427,9 @@ process_pending_assemble_output_defs (vo
size_t i;
output_def_pair p;
+ if (!output_defs)
+ return;
+
for (i = 0; i < VARRAY_ACTIVE_SIZE (output_defs); i++)
{
p = VARRAY_GENERIC_PTR (output_defs, i);