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 tweak toplev.c


This just removes redundant code; the code immediately following does the
same thing.

Applied under the 'obviously correct' rule.

Fri Jul  9 22:39:44 1999  Jason Merrill  <jason@yorick.cygnus.com>

	* toplev.c (rest_of_compilation): Remove redundant code.

Index: toplev.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/toplev.c,v
retrieving revision 1.186
diff -c -p -r1.186 toplev.c
*** toplev.c	1999/05/20 10:37:00	1.186
--- toplev.c	1999/07/10 05:41:55
*************** rest_of_compilation (decl)
*** 3656,3666 ****
  	  close_dump_file (print_rtl, insns);
  	}
  
-       /* If we can, defer compiling inlines until EOF.
- 	 save_for_inline_copying can be extremely expensive.  */
-       if (inlinable && ! decl_function_context (decl))
- 	DECL_DEFER_OUTPUT (decl) = 1;
- 
        /* If function is inline, and we don't yet know whether to
  	 compile it by itself, defer decision till end of compilation.
  	 finish_compilation will call rest_of_compilation again
--- 3664,3669 ----
*************** rest_of_compilation (decl)
*** 3673,3679 ****
        /* If this is a nested inline, remove ADDRESSOF now so we can
  	 finish compiling ourselves.  Otherwise, wait until EOF.
  	 We have to do this because the purge_addressof transformation
! 	 changes the DECL_RTL for many variables, which confuses integrate.  */
        if (inlinable)
  	{
  	  if (decl_function_context (decl))
--- 3676,3683 ----
        /* If this is a nested inline, remove ADDRESSOF now so we can
  	 finish compiling ourselves.  Otherwise, wait until EOF.
  	 We have to do this because the purge_addressof transformation
! 	 changes the DECL_RTL for many variables, which confuses integrate.
! 	 Also, save_for_inline_copying can be very expensive.  */
        if (inlinable)
  	{
  	  if (decl_function_context (decl))


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