This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Request for suggestions: xm-romp.h
- To: Richard Henderson <rth at redhat dot com>, Zack Weinberg <zackw at stanford dot edu>, gcc at gcc dot gnu dot org
- Subject: Re: Request for suggestions: xm-romp.h
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Mon, 19 Mar 2001 11:15:03 -0500
- References: <20010316140407.J13680@stanford.edu> <20010316170849.A27868@redhat.com>
On Fri, Mar 16, 2001 at 05:08:49PM -0800, Richard Henderson wrote:
> On Fri, Mar 16, 2001 at 02:04:07PM -0800, Zack Weinberg wrote:
> > #define GEN_FCN(CODE) (insn_data[(int) (CODE)].genfun)
> > #else
> > #define GEN_FCN(CODE) (*insn_data[(int) (CODE)].genfun)
>
> The former is also acceptable to ISO C. Does it cause K&R problems?
> If not, maybe we can just use that always.
The automatic dereference of a function pointer to function in a call context
should cause K&R problems, since as I recall it was feature added by the
original ANSI C document.
--
Michael Meissner, Red Hat, Inc. (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482