debug/3468: GCC 3.0 produces invalid .def directive for virtual template

Peter Vermaas Peter.Vermaas@dejongduke.nl
Tue Mar 26 02:46:00 GMT 2002


The following reply was made to PR debug/3468; it has been noted by GNATS.

From: Peter Vermaas <Peter.Vermaas@dejongduke.nl>
To: rose@acm.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
   gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: debug/3468: GCC 3.0 produces invalid .def directive for virtual
 template
Date: Tue, 26 Mar 2002 11:36:04 +0100

 This is a multi-part message in MIME format.
 --------------010005000404010809050504
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3468
 
 This patch against gcc-3.0.3/gcc/sdbout.c seems to solve this problem
 for me.
 
 --------------010005000404010809050504
 Content-Type: text/plain;
  name="sdbout.patch2"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="sdbout.patch2"
 
 *** sdbout.c.orig	Mon Mar 25 14:21:17 2002
 --- sdbout.c	Tue Mar 26 11:06:52 2002
 ***************
 *** 1226,1236 ****
   		&& host_integerp (DECL_SIZE (tem), 1)
   		&& host_integerp (bit_position (tem), 0))
   	      {
 - 		const char *name;
   
 ! 		CONTIN;
 ! 		name = IDENTIFIER_POINTER (DECL_NAME (tem));
 ! 		PUT_SDB_DEF (name);
   		if (DECL_BIT_FIELD_TYPE (tem))
   		  {
   		    PUT_SDB_INT_VAL (int_bit_position (tem));
 --- 1226,1238 ----
   		&& host_integerp (DECL_SIZE (tem), 1)
   		&& host_integerp (bit_position (tem), 0))
   	      {
   
 ! 		CONTIN;
 ! 		if (template_name_p (DECL_NAME (tem)))
 ! 			PUT_SDB_DEF (IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (tem)));
 ! 		else
 ! 			PUT_SDB_DEF (IDENTIFIER_POINTER (DECL_NAME (tem)));
 ! 
   		if (DECL_BIT_FIELD_TYPE (tem))
   		  {
   		    PUT_SDB_INT_VAL (int_bit_position (tem));
 
 --------------010005000404010809050504--
 



More information about the Gcc-prs mailing list