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: [CVS 980316]: Patch for recently introduced bugs


On Tue, 17 March 1998, 09:40:11, manfred@s-direktnet.de wrote:

 > On a m68k-motorola-sysv I'm getting:
 > 
 > ../../egcs-980316/gcc/flow.c: In function `life_analysis':
 > ../../egcs-980316/gcc/flow.c:968: syntax error before `i'
 > gmake: *** [flow.o] Error 1
 > 
 > due to `size_t' undefined.
 > 
 > Tue Mar 17 09:28:40 1998  Manfred Hollstein  <manfred@s-direktnet.de>
 > 
 > 	* flow.c (life_analysis): #include <sys/types.h> to make sure
 > 	size_t is defined.

The same applies to cplus-dem.c:

../../egcs-980316/gcc/cplus-dem.c: In function `demangle_function_name':
../../egcs-980316/gcc/cplus-dem.c:2909: `size_t' undeclared (first use in this function)

Tue Mar 17 09:28:40 1998  Manfred Hollstein  <manfred@s-direktnet.de>

	* flow.c (life_analysis): #include <sys/types.h> to make sure
	size_t is defined.
	* cplus-dem.c (demangle_function_name): Likewise.

diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-980316.orig/gcc/cplus-dem.c egcs-980316/gcc/cplus-dem.c
--- egcs-980316.orig/gcc/cplus-dem.c	Thu Mar 12 09:24:10 1998
+++ egcs-980316/gcc/cplus-dem.c	Tue Mar 17 09:51:44 1998
@@ -29,6 +29,7 @@ Boston, MA 02111-1307, USA.  */
    try not to break either.  */
 
 #include <ctype.h>
+#include <sys/types.h>
 #include <string.h>
 #include <stdio.h>
 


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