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 for dump/doc for DECL_EXTERNAL



This patch dumps and documents DECL_EXTERNAL.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

1999-09-29  Mark Mitchell  <mark@codesourcery.com>

	* dump.c (dequeue_and_dump): Dump DECL_EXTERNAL.
	* ir.texi: Document DECL_EXTERNAL.

Index: dump.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/dump.c,v
retrieving revision 1.15
diff -c -p -r1.15 dump.c
*** dump.c	1999/09/29 19:00:46	1.15
--- dump.c	1999/09/29 20:07:00
*************** dequeue_and_dump (di)
*** 607,612 ****
--- 607,614 ----
  	  dump_child ("mngl", DECL_ASSEMBLER_NAME (t));
  	  dump_child ("args", DECL_ARGUMENTS (t));
  	}
+       if (DECL_EXTERNAL (t))
+ 	dump_string (di, "undefined");
        if (TREE_PUBLIC (t))
  	dump_string(di, "extern");
        else
Index: ir.texi
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/ir.texi,v
retrieving revision 1.10
diff -c -p -r1.10 ir.texi
*** ir.texi	1999/09/29 19:00:46	1.10
--- ir.texi	1999/09/29 20:07:02
*************** FIXME: Talk about @code{TYPE_NONCOPIED_P
*** 739,744 ****
--- 739,745 ----
  @findex DECL_INITIAL
  @findex DECL_SIZE
  @findex DECL_ALIGN
+ @findex DECL_EXTERNAL
  
  This chapter covers the various kinds of declarations that appear in the
  internal representation, except for declarations of functions
*************** then jumps to another function.  When th
*** 864,870 ****
  control is transferred directly to the caller, without returning to the
  thunk.  The first parameter to the thunk is always the @code{this}
  pointer; the thunk should add @code{THUNK_DELTA} to this value.  (The
! @code{THUNK_DECL} is an @code{int}, not an @code{INTEGER_CST}.)  Then,
  the thunk should jump to the location given by @code{DECL_INITIAL}; this
  will always be an expression for the address of a function.  
  
--- 865,871 ----
  control is transferred directly to the caller, without returning to the
  thunk.  The first parameter to the thunk is always the @code{this}
  pointer; the thunk should add @code{THUNK_DELTA} to this value.  (The
! @code{THUNK_DELTA} is an @code{int}, not an @code{INTEGER_CST}.)  Then,
  the thunk should jump to the location given by @code{DECL_INITIAL}; this
  will always be an expression for the address of a function.  
  
*************** platform, it is the responsibility of th
*** 970,975 ****
--- 971,979 ----
  modifications.  (Of course, the back-end should not modify
  @code{DECL_ASSEMBLER_NAME} itself.)
  
+ @item DECL_EXTERNAL
+ This predicate holds if the function is undefined.
+ 
  @item TREE_PUBLIC
  This predicate holds if the function has external linkage.
  
*************** This macro returns the @code{FUNCTION_TY
*** 1022,1029 ****
  the function.
  
  @end ftable
- 
- FIXME: Explain about constructor try-catch blocks.
  
  @c ---------------------------------------------------------------------
  @c Function Bodies
--- 1026,1031 ----


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