This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Converting tm.h macros to functions
On 19-Jun-2001, Joseph S. Myers <jsm28@cam.ac.uk> wrote:
> On Tue, 19 Jun 2001, Fergus Henderson wrote:
>
> > #define asm_output_int(i,f) (*target.asm_stuff.asm_output_int)((i),(f))
>
> -Wtraditional warns about function-like macro names used without
> arguments, so there might be problems there. Besides, the less hidden use
> of the preprocessor, the clearer the compiler code is.
Defining the wrappers as inline functions would solve both of those issues.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.