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]

small patches for libgcc2.c


Here are some small patches for libgcc2.c

BTW, are there any plans to split libgcc2.c into files? 
It is hard to debug something in there because of the way libgcc2.a is
built... 

I can provide a patch that creates a directory gcc/libgcc and
populates it with files, but I have zero understanding of the gcc
build process, so somebody else should do the makefile hackery
needed. 


Wed Sep 22 00:16:43 1999  Dan Nicolaescu  <dann@ics.uci.edu>

	* libgcc2.c (num_digits): Add prototype with 
	__attribute__((const)).
	(__terminate): Add prototype.



*** libgcc2.c~	Fri Sep 17 11:37:47 1999
--- libgcc2.c	Wed Sep 22 00:15:21 1999
***************
*** 1457,1462 ****
--- 1457,1464 ----
  
  static struct bb *bb_head;
  
+ static int num_digits (long value, int base) __attribute__ ((const));
+ 
  /* Return the number of digits needed to print a value */
  /* __inline__ */ static int num_digits (long value, int base)
  {
***************
*** 3974,3979 ****
--- 3976,3983 ----
  #endif /* inhibit_libc */
  
  #define MESSAGE "pure virtual method called\n"
+ 
+ extern void __terminate (void) __attribute__ ((__noreturn__));
  
  void
  __pure_virtual ()


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