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.
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 1 Jan 2003 17:42:03 +0000
- Subject: Re: [patch] h8300.c: Include cpplib.h.
- References: <20030101.113953.130222870.kazu@cs.umass.edu>
Kazu Hirata wrote:-
> Hi,
>
> Attached is a patch to include cpplib.h.
>
> h8300.c and h8300-protos.h refer to the type cpp_reader, which is now
> typedefed in cpplib.h. Without the patch, the build of h8300 port
> stops at h8300.c. The patch fixes the problem by including cpplib.h.
>
> Committed as obvious.
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.
Neil.