This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Fix to PCH bug in read-back of pending templates
- From: Pariborz Jahanian <fjahanian at apple dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: fjahanian at apple dot com
- Date: Tue, 28 Jan 2003 16:13:38 -0800
- Subject: PATCH: Fix to PCH bug in read-back of pending templates
Description: When list of pending instantiated function templates are
written out to PCH file, this list is not properly read-back when PCH
file is used in subsequent compiles. This results in some instantiated
function templates not to be generated. Problem occurs because
"last_pending_template" which points to last pending instantiation in
the pending instantiation list is not written out to the PCH file. This
is because, it is not allocated by GC. Fix is to add the GTY(()) to its
declaration so it is allocated by GC.
Fix was tested on PowerPC Darwin platform. Test case to test the fix is
added to the patch.
New ChangeLog entry:
2003-01-28 Fariborz Jahanian <fjahanian@apple.com>
* pt.c (last_pending_template) Declare GTY().
Attachment:
patch_1
Description: Binary data