This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

J. David Anglin                        
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2005-01-17  John David Anglin  <>

	* 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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]