This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to -Os


> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]