Patch to -Os

Mike Stump mrs@wrs.com
Mon Feb 2 17:14:00 GMT 1998


> Date: Sat, 31 Jan 1998 21:02:07 +0100
> From: Marc Lehmann <pcg@goof.com>

> +#define INTEGRATE_THRESHOLD(DECL) (optimize_size \
> +  ? (1 + (3 * list_length (DECL_ARGUMENTS (DECL) / 2))) \
> +  : (8 * (8 + list_length (DECL_ARGUMENTS (DECL)))))

Ick!  Is there some reason why this cannot be made machine
independent?  I mean, the mi def is:

/* Default max number of insns a function can have and still be inline.
   This is overridden on RISC machines.  */
#ifndef INTEGRATE_THRESHOLD
#define INTEGRATE_THRESHOLD(DECL) \
  (8 * (8 + list_length (DECL_ARGUMENTS (DECL))))
#endif

(from integrate.c) which looks suspiciously like your def, only worse.
Why not change it (fix it) instead?



More information about the Gcc mailing list