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]

Re: Patch for builtin fputs (first stdio opt ready for install)



  In message <200009081518.LAA07817@caip.rutgers.edu>you write:
  > In my original version, I wrote a mechanism for looking up random
  > _DECLs.  However Jason felt it better to cache the _DECL when
  > declaring the builtin function.  See:
  >  
  > http://gcc.gnu.org/ml/gcc-patches/2000-09/msg00134.html
  > http://gcc.gnu.org/ml/gcc-patches/2000-09/msg00175.html
  >  
  > So in order to write the fputs expander, I have to declare an empty
  > fputc builtin so I can cache its _DECL and use it to replace fputs.
  >  
  > Note, this caching mechanism only works if the expansion is another
  > builtin function.  I've already written at least one opt
  > (fputc->putc_macro) which requires expanding into an inline function
  > wrapped around the putc macro, but that one can wait.
OK.  Thanks for the explanation.

  >  >
  >  > I also think you should kill the debugging #ifdefs.
  >  > jeff
  >  
  > Ok, will do.
  >  
  > Okay to install?
Yes.  Please do.

THanks,


jeff


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