[C++ PATCH] stop emitting __FUNCTION__

Nathan Sidwell nathan@codesourcery.com
Wed Jun 21 05:23:00 GMT 2000


Zack Weinberg wrote:
[an empty TU still emits __FUNCTION__ etc]

fixed with this obvious patch, built & tested on i686-pc-linux-gnu

nathan

-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2000-06-21  Nathan Sidwell  <nathan@codesourcery.com>

	* parse.y (program): Always call finish_translation_unit.
	* parse.c, parse.h: Rebuilt.

Index: cp/parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/parse.y,v
retrieving revision 1.177
diff -c -3 -p -r1.177 parse.y
*** parse.y	2000/06/19 18:40:21	1.177
--- parse.y	2000/06/21 12:17:23
*************** extern void yyprint			PARAMS ((FILE *, i
*** 431,436 ****
--- 431,437 ----
  %%
  program:
  	  /* empty */
+                { finish_translation_unit (); }
  	| extdefs
                 { finish_translation_unit (); }
  	;


More information about the Gcc-patches mailing list