This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: K&R prototype in arm/linux-elf.h
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: K&R prototype in arm/linux-elf.h
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Thu, 29 Jun 2000 16:40:14 +0100
- Cc: gcc at gcc dot gnu dot org, pthomas at suse dot de, nickc at cygnus dot com
- Cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
> > From: Philipp Thomas <pthomas@suse.de>
> >
> > Kaveh,
> >
> > I've pulled you into this discussion because you're far more familiar
> > with this stuff than I.
> >
> > While testing my changes to the target specific header, I noticed that
> > arm/linux-elf.h has a declaration for text_section which is a K&R
> > prototype. Question is, could I use PARAMS() here? Or how could this
> > be turned into an ISO C conforming declaration?
> > Philipp
>
> Yes you can use PARAMS in config files, but text_section() is already
> fully prototyped in output.h. You might just be able to delete the
> declaration in arm/linux-elf.h. If any warnings appear, just include
> output.h in the relevant file.
I have a patch which does exactly that. I just haven't had time to commit
it yet.
R.