This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to -Os
- To: egcs at cygnus dot com, pcg at goof dot com
- Subject: Re: Patch to -Os
- From: mrs at wrs dot com (Mike Stump)
- Date: Mon, 2 Feb 1998 17:14:39 -0800
> 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?