This is the mail archive of the gcc-patches@gcc.gnu.org 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]

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







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