This is the mail archive of the gcc-bugs@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]

Re: New g++ bug


>>>>> "Anthony" == Anthony Green <green@cygnus.com> writes:

    Anthony> Some changes from today (Sunday Dec 5) seem to have
    Anthony> broken g++.  Compiling libgcj fails with errors that look
    Anthony> like:

Because I won't have time to look at this for a little bit, I've #if
0'd out the change to activate inlining on trees.  I noticed one
problem on a MIPS target as well that seems to indicate an interesting
latent bug in the C++ front-end.

I'll fix the problems and reactivate the code in the next few days.

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

1999-12-06  Mark Mitchell  <mark@codesourcery.com>

	* decl.c (init_decl_processing): #if 0 last patch.
	(finish_function): Likewise.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl.c,v
retrieving revision 1.515
diff -c -p -r1.515 decl.c
*** decl.c	1999/12/05 20:04:37	1.515
--- decl.c	1999/12/06 10:32:19
*************** init_decl_processing ()
*** 5973,5980 ****
--- 5973,5982 ----
      flag_strict_prototype = pedantic;
    if (! flag_permissive && ! pedantic)
      flag_pedantic_errors = 1;
+ #if 0
    if (!flag_no_inline)
      flag_inline_trees = 1;
+ #endif
  
    strict_prototypes_lang_c = flag_strict_prototype;
  
*************** finish_function (lineno, flags)
*** 13667,13672 ****
--- 13669,13675 ----
    if (!expanding_p && !processing_template_decl)
      save_function_data (fndecl);
  
+ #if 0
    /* If this function calls `setjmp' it cannot be inlined.  When
       `longjmp' is called it is not guaranteed to restore the value of
       local variables that have been modified since the call to
*************** finish_function (lineno, flags)
*** 13678,13683 ****
--- 13681,13687 ----
       function.)  */
    if (!expanding_p && !processing_template_decl && calls_setjmp_p (fndecl))
      DECL_UNINLINABLE (fndecl) = 1;
+ #endif
  
    if (expand_p)
      {


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