diff options
author | obrien <obrien@FreeBSD.org> | 2001-08-16 06:05:18 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-08-16 06:05:18 +0000 |
commit | cd3f3aab8e337abe90764fb04a24c977624fdecd (patch) | |
tree | 025a5ff5558a3dc152596f4912bf98e8b818132e /gnu/usr.bin/cc/Makefile.inc | |
parent | cd8f761f0ab2cc4e533f738ed4bcf1712cb5b6ce (diff) | |
download | FreeBSD-src-cd3f3aab8e337abe90764fb04a24c977624fdecd.zip FreeBSD-src-cd3f3aab8e337abe90764fb04a24c977624fdecd.tar.gz |
Add the `WANT_FORCE_OPTIMIZATION_DOWNGRADE' knob. If set to an integer
value, it forces GCC to not optimize above this level. For intance, GCC
made with "WANT_FORCE_OPTIMIZATION_DOWNGRADE=1" is a good setting for the
Alpha platform when building ports.
Diffstat (limited to 'gnu/usr.bin/cc/Makefile.inc')
-rw-r--r-- | gnu/usr.bin/cc/Makefile.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc index 4fe0547..7b6a2ec 100644 --- a/gnu/usr.bin/cc/Makefile.inc +++ b/gnu/usr.bin/cc/Makefile.inc @@ -39,6 +39,10 @@ CFLAGS+= -DHAIFA CFLAGS+= -DCROSS_COMPILE .endif +.if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE) +CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE} +.endif + .if exists(${.OBJDIR}/../cc_tools) CFLAGS+= -I${.OBJDIR}/../cc_tools .endif |