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]

[C++ PATCH] stop emitting __FUNCTION__


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 (); }
  	;

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