BUG in copy_decl_list() egcs-19980914
Mark Mitchell
mark@markmitchell.com
Tue Sep 15 11:02:00 GMT 1998
>>>>> "grahams" == grahams <grahams@rcp.co.uk> writes:
grahams> The routine copy_decl_list() integrate.c egcs-19980914
grahams> has a obvious bug `head' is not ininitalised before being
grahams> passed to copy_and_set_abstract_origin().
Thank you for reporting this. Your analysis is correct.
Here's the patch, as you suggest.
--
Mark Mitchell mark@markmitchell.com
Mark Mitchell Consulting http://www.markmitchell.com
Tue Sep 15 09:59:01 1998 Mark Mitchell <mark@markmitchell.com>
* integrate.c (copy_decl_list): Fix typo.
Index: integrate.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/integrate.c,v
retrieving revision 1.35
diff -c -p -r1.35 integrate.c
*** integrate.c 1998/09/10 10:45:56 1.35
--- integrate.c 1998/09/15 17:01:42
*************** copy_decl_list (list)
*** 788,794 ****
if (list == 0)
return 0;
! head = prev = copy_and_set_decl_abstract_origin (head);
next = TREE_CHAIN (list);
while (next)
{
--- 788,794 ----
if (list == 0)
return 0;
! head = prev = copy_and_set_decl_abstract_origin (list);
next = TREE_CHAIN (list);
while (next)
{
More information about the Gcc-bugs
mailing list