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]

Patch to rest_of_compilation


g++ sometimes gets extern inlines that don't have DECL_INLINE set.  They
have DECL_THIS_INLINE set, but that's a frontend flag.  It would seem
reasonable to not compile anything with DECL_EXTERNAL set.

Wed Sep  9 15:40:41 1998  Jason Merrill  <jason@yorick.cygnus.com>

	* toplev.c (rest_of_compilation): Skip compiling anything with
	DECL_EXTERNAL set, not just if it has DECL_INLINE as well.

Index: toplev.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/toplev.c,v
retrieving revision 1.93
diff -c -p -r1.93 toplev.c
*** toplev.c	1998/09/07 20:35:41	1.93
--- toplev.c	1998/09/09 22:41:31
*************** rest_of_compilation (decl)
*** 3376,3383 ****
  	}
  
        /* If specified extern inline but we aren't inlining it, we are
! 	 done.  */
!       if (DECL_INLINE (decl) && DECL_EXTERNAL (decl))
  	goto exit_rest_of_compilation;
      }
  
--- 3382,3390 ----
  	}
  
        /* If specified extern inline but we aren't inlining it, we are
! 	 done.  This goes for anything that gets here with DECL_EXTERNAL
! 	 set, not just things with DECL_INLINE.  */
!       if (DECL_EXTERNAL (decl))
  	goto exit_rest_of_compilation;
      }
  


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