This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] h8300.c: Include cpplib.h.
Hi Neil,
> > > Sorry about that. IMO a better fix is to use "struct cpp_reader *"
> > > as intended, and not include cpplib.h as you don't use it.
> >
> > That's OK. I will convert to the better one.
>
> I've done it.
Thanks, but then we may need the attached patch. At least, I do for
h8300 port. OK to apply?
Kazu Hirata
2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
* config/arm/arm-protos.h: Use struct cpp_reader instead of
cpp_reader.
* config/h8300/h8300-protos.h: Likewise.
* config/sh/sh-protos.h: Likewise.
Index: arm/arm-protos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm-protos.h,v
retrieving revision 1.38
diff -u -r1.38 arm-protos.h
--- arm/arm-protos.h 16 Dec 2002 18:20:54 -0000 1.38
+++ arm/arm-protos.h 1 Jan 2003 20:05:56 -0000
@@ -1,5 +1,5 @@
/* Prototypes for exported functions defined in arm.c and pe.c
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
Contributed by Richard Earnshaw (rearnsha@arm.com)
Minor hacks by Nick Clifton (nickc@cygnus.com)
@@ -211,9 +211,9 @@
#endif
#ifdef GCC_C_PRAGMA_H /* included from code that cares about pragmas */
-extern void arm_pr_long_calls PARAMS ((cpp_reader *));
-extern void arm_pr_no_long_calls PARAMS ((cpp_reader *));
-extern void arm_pr_long_calls_off PARAMS ((cpp_reader *));
+extern void arm_pr_long_calls PARAMS ((struct cpp_reader *));
+extern void arm_pr_no_long_calls PARAMS ((struct cpp_reader *));
+extern void arm_pr_long_calls_off PARAMS ((struct cpp_reader *));
#endif
#endif /* ! GCC_ARM_PROTOS_H */
Index: h8300/h8300-protos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300-protos.h,v
retrieving revision 1.41
diff -u -r1.41 h8300-protos.h
--- h8300/h8300-protos.h 31 Dec 2002 21:06:43 -0000 1.41
+++ h8300/h8300-protos.h 1 Jan 2003 20:05:56 -0000
@@ -92,8 +92,8 @@
extern int h8300_initial_elimination_offset PARAMS ((int, int));
#ifdef GCC_C_PRAGMA_H
-extern void h8300_pr_interrupt PARAMS ((cpp_reader *));
-extern void h8300_pr_saveall PARAMS ((cpp_reader *));
+extern void h8300_pr_interrupt PARAMS ((struct cpp_reader *));
+extern void h8300_pr_saveall PARAMS ((struct cpp_reader *));
#endif
#endif /* ! GCC_H8300_PROTOS_H */
Index: sh/sh-protos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/sh-protos.h,v
retrieving revision 1.35
diff -u -r1.35 sh-protos.h
--- sh/sh-protos.h 16 Dec 2002 18:21:54 -0000 1.35
+++ sh/sh-protos.h 1 Jan 2003 20:05:56 -0000
@@ -1,5 +1,5 @@
/* Definitions of target machine for GNU compiler for Hitachi / SuperH SH.
- Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
+ Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2003
Free Software Foundation, Inc.
Contributed by Steve Chamberlain (sac@cygnus.com).
Improved by Jim Wilson (wilson@cygnus.com).
@@ -138,9 +138,9 @@
#endif
#ifdef GCC_C_PRAGMA_H
-extern void sh_pr_interrupt PARAMS ((cpp_reader *));
-extern void sh_pr_trapa PARAMS ((cpp_reader *));
-extern void sh_pr_nosave_low_regs PARAMS ((cpp_reader *));
+extern void sh_pr_interrupt PARAMS ((struct cpp_reader *));
+extern void sh_pr_trapa PARAMS ((struct cpp_reader *));
+extern void sh_pr_nosave_low_regs PARAMS ((struct cpp_reader *));
#endif
#endif /* ! GCC_SH_PROTOS_H */