head 1.36; access; symbols netbsd-10-2-RELEASE:1.34.2.1 netbsd-9-5-RELEASE:1.25 netbsd-11-0-RELEASE:1.36 netbsd-11-0-RC7:1.36 netbsd-11-0-RC6:1.36 netbsd-11-0-RC5:1.36 netbsd-11-0-RC4:1.36 netbsd-11-0-RC3:1.36 netbsd-11-0-RC2:1.36 netbsd-11-0-RC1:1.36 perseant-exfatfs-base-20250801:1.36 netbsd-11:1.36.0.4 netbsd-11-base:1.36 netbsd-10-1-RELEASE:1.34.2.1 perseant-exfatfs-base-20240630:1.36 perseant-exfatfs:1.36.0.2 perseant-exfatfs-base:1.36 netbsd-8-3-RELEASE:1.25 netbsd-9-4-RELEASE:1.25 netbsd-10-0-RELEASE:1.34.2.1 netbsd-10-0-RC6:1.34.2.1 netbsd-10-0-RC5:1.34.2.1 netbsd-10-0-RC4:1.34.2.1 netbsd-10-0-RC3:1.34.2.1 netbsd-10-0-RC2:1.34.2.1 netbsd-10-0-RC1:1.34.2.1 netbsd-10:1.34.0.2 netbsd-10-base:1.34 netbsd-9-3-RELEASE:1.25 cjep_sun2x-base1:1.27 cjep_sun2x:1.27.0.4 cjep_sun2x-base:1.27 cjep_staticlib_x-base1:1.27 netbsd-9-2-RELEASE:1.25 cjep_staticlib_x:1.27.0.2 cjep_staticlib_x-base:1.27 netbsd-9-1-RELEASE:1.25 phil-wifi-20200421:1.27 phil-wifi-20200411:1.27 is-mlppp:1.26.0.2 is-mlppp-base:1.26 phil-wifi-20200406:1.27 netbsd-8-2-RELEASE:1.25 netbsd-9-0-RELEASE:1.25 netbsd-9-0-RC2:1.25 netbsd-9-0-RC1:1.25 phil-wifi-20191119:1.26 netbsd-9:1.25.0.28 netbsd-9-base:1.25 phil-wifi-20190609:1.25 netbsd-8-1-RELEASE:1.25 netbsd-8-1-RC1:1.25 pgoyette-compat-merge-20190127:1.25 pgoyette-compat-20190127:1.25 pgoyette-compat-20190118:1.25 pgoyette-compat-1226:1.25 pgoyette-compat-1126:1.25 pgoyette-compat-1020:1.25 pgoyette-compat-0930:1.25 pgoyette-compat-0906:1.25 netbsd-7-2-RELEASE:1.25 pgoyette-compat-0728:1.25 netbsd-8-0-RELEASE:1.25 phil-wifi:1.25.0.26 phil-wifi-base:1.25 pgoyette-compat-0625:1.25 netbsd-8-0-RC2:1.25 pgoyette-compat-0521:1.25 pgoyette-compat-0502:1.25 pgoyette-compat-0422:1.25 netbsd-8-0-RC1:1.25 pgoyette-compat-0415:1.25 pgoyette-compat-0407:1.25 pgoyette-compat-0330:1.25 pgoyette-compat-0322:1.25 pgoyette-compat-0315:1.25 netbsd-7-1-2-RELEASE:1.25 pgoyette-compat:1.25.0.24 pgoyette-compat-base:1.25 netbsd-7-1-1-RELEASE:1.25 matt-nb8-mediatek:1.25.0.22 matt-nb8-mediatek-base:1.25 perseant-stdc-iso10646:1.25.0.20 perseant-stdc-iso10646-base:1.25 netbsd-8:1.25.0.18 netbsd-8-base:1.25 prg-localcount2-base3:1.25 prg-localcount2-base2:1.25 prg-localcount2-base1:1.25 prg-localcount2:1.25.0.16 prg-localcount2-base:1.25 pgoyette-localcount-20170426:1.25 bouyer-socketcan-base1:1.25 pgoyette-localcount-20170320:1.25 netbsd-7-1:1.25.0.14 netbsd-7-1-RELEASE:1.25 netbsd-7-1-RC2:1.25 netbsd-7-nhusb-base-20170116:1.25 bouyer-socketcan:1.25.0.12 bouyer-socketcan-base:1.25 pgoyette-localcount-20170107:1.25 netbsd-7-1-RC1:1.25 pgoyette-localcount-20161104:1.25 netbsd-7-0-2-RELEASE:1.25 localcount-20160914:1.25 netbsd-7-nhusb:1.25.0.10 netbsd-7-nhusb-base:1.25 pgoyette-localcount-20160806:1.25 pgoyette-localcount-20160726:1.25 pgoyette-localcount:1.25.0.8 pgoyette-localcount-base:1.25 netbsd-7-0-1-RELEASE:1.25 netbsd-7-0:1.25.0.6 netbsd-7-0-RELEASE:1.25 netbsd-7-0-RC3:1.25 netbsd-7-0-RC2:1.25 netbsd-7-0-RC1:1.25 netbsd-5-2-3-RELEASE:1.21 netbsd-5-1-5-RELEASE:1.21 netbsd-6-0-6-RELEASE:1.22 netbsd-6-1-5-RELEASE:1.22 netbsd-7:1.25.0.4 netbsd-7-base:1.25 yamt-pagecache-base9:1.25 yamt-pagecache-tag8:1.22.2.2 netbsd-6-1-4-RELEASE:1.22 netbsd-6-0-5-RELEASE:1.22 tls-earlyentropy:1.25.0.2 tls-earlyentropy-base:1.25 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.25 riastradh-drm2-base3:1.25 netbsd-6-1-3-RELEASE:1.22 netbsd-6-0-4-RELEASE:1.22 netbsd-5-2-2-RELEASE:1.21 netbsd-5-1-4-RELEASE:1.21 netbsd-6-1-2-RELEASE:1.22 netbsd-6-0-3-RELEASE:1.22 netbsd-5-2-1-RELEASE:1.21 netbsd-5-1-3-RELEASE:1.21 netbsd-6-1-1-RELEASE:1.22 riastradh-drm2-base2:1.24 riastradh-drm2-base1:1.24 riastradh-drm2:1.24.0.4 riastradh-drm2-base:1.24 netbsd-6-1:1.22.0.10 netbsd-6-0-2-RELEASE:1.22 netbsd-6-1-RELEASE:1.22 netbsd-6-1-RC4:1.22 netbsd-6-1-RC3:1.22 agc-symver:1.24.0.6 agc-symver-base:1.24 netbsd-6-1-RC2:1.22 netbsd-6-1-RC1:1.22 yamt-pagecache-base8:1.24 netbsd-5-2:1.21.0.2 netbsd-6-0-1-RELEASE:1.22 yamt-pagecache-base7:1.24 netbsd-5-2-RELEASE:1.21 netbsd-5-2-RC1:1.21 matt-nb6-plus-nbase:1.22 yamt-pagecache-base6:1.24 netbsd-6-0:1.22.0.8 netbsd-6-0-RELEASE:1.22 netbsd-6-0-RC2:1.22 tls-maxphys:1.24.0.2 tls-maxphys-base:1.25 matt-nb6-plus:1.22.0.6 matt-nb6-plus-base:1.22 netbsd-6-0-RC1:1.22 yamt-pagecache-base5:1.23 yamt-pagecache-base4:1.23 netbsd-6:1.22.0.4 netbsd-6-base:1.22 netbsd-5-1-2-RELEASE:1.21 netbsd-5-1-1-RELEASE:1.21 yamt-pagecache-base3:1.22 yamt-pagecache-base2:1.22 yamt-pagecache:1.22.0.2 yamt-pagecache-base:1.22 cherry-xenmp:1.21.0.18 cherry-xenmp-base:1.21 bouyer-quota2-nbase:1.21 bouyer-quota2:1.21.0.16 bouyer-quota2-base:1.21 matt-mips64-premerge-20101231:1.21 matt-nb5-mips64-premerge-20101231:1.21 matt-nb5-pq3:1.21.0.14 matt-nb5-pq3-base:1.21 netbsd-5-1:1.21.0.12 netbsd-5-1-RELEASE:1.21 netbsd-5-1-RC4:1.21 matt-nb5-mips64-k15:1.21 netbsd-5-1-RC3:1.21 netbsd-5-1-RC2:1.21 netbsd-5-1-RC1:1.21 netbsd-5-0-2-RELEASE:1.21 matt-nb5-mips64-premerge-20091211:1.21 matt-premerge-20091211:1.21 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.21 matt-nb4-mips64-k7-u2a-k9b:1.21 matt-nb5-mips64-u1-k1-k5:1.21 matt-nb5-mips64:1.21.0.10 netbsd-5-0-1-RELEASE:1.21 jym-xensuspend-nbase:1.21 netbsd-5-0:1.21.0.8 netbsd-5-0-RELEASE:1.21 netbsd-5-0-RC4:1.21 netbsd-5-0-RC3:1.21 netbsd-5-0-RC2:1.21 jym-xensuspend:1.21.0.6 jym-xensuspend-base:1.21 netbsd-5-0-RC1:1.21 netbsd-5:1.21.0.4 netbsd-5-base:1.21 matt-mips64-base2:1.21 matt-mips64:1.19.0.20 netbsd-4-0-1-RELEASE:1.19 wrstuden-revivesa-base-3:1.21 wrstuden-revivesa-base-2:1.21 wrstuden-fixsa-newbase:1.19 wrstuden-revivesa-base-1:1.19 yamt-pf42-base4:1.19 yamt-pf42-base3:1.19 hpcarm-cleanup-nbase:1.19 yamt-pf42-baseX:1.19 yamt-pf42-base2:1.19 wrstuden-revivesa:1.19.0.18 wrstuden-revivesa-base:1.19 yamt-pf42:1.19.0.16 yamt-pf42-base:1.19 keiichi-mipv6:1.19.0.14 keiichi-mipv6-base:1.19 matt-armv6-nbase:1.19 matt-armv6-prevmlocking:1.19 wrstuden-fixsa-base-1:1.19 netbsd-4-0:1.19.0.12 netbsd-4-0-RELEASE:1.19 cube-autoconf:1.19.0.10 cube-autoconf-base:1.19 netbsd-4-0-RC5:1.19 netbsd-4-0-RC4:1.19 netbsd-4-0-RC3:1.19 netbsd-4-0-RC2:1.19 netbsd-4-0-RC1:1.19 matt-armv6:1.19.0.8 matt-armv6-base:1.19 matt-mips64-base:1.19 hpcarm-cleanup:1.19.0.6 hpcarm-cleanup-base:1.19 netbsd-3-1-1-RELEASE:1.16 netbsd-3-0-3-RELEASE:1.16 wrstuden-fixsa:1.19.0.4 wrstuden-fixsa-base:1.19 abandoned-netbsd-4-base:1.17 abandoned-netbsd-4:1.17.0.2 netbsd-3-1:1.16.0.6 netbsd-3-1-RELEASE:1.16 netbsd-3-0-2-RELEASE:1.16 netbsd-3-1-RC4:1.16 netbsd-3-1-RC3:1.16 netbsd-3-1-RC2:1.16 netbsd-3-1-RC1:1.16 netbsd-4:1.19.0.2 netbsd-4-base:1.19 netbsd-3-0-1-RELEASE:1.16 netbsd-3-0:1.16.0.4 netbsd-3-0-RELEASE:1.16 netbsd-3-0-RC6:1.16 netbsd-3-0-RC5:1.16 netbsd-3-0-RC4:1.16 netbsd-3-0-RC3:1.16 netbsd-3-0-RC2:1.16 netbsd-3-0-RC1:1.16 netbsd-2-0-3-RELEASE:1.14 netbsd-2-1:1.14.0.6 netbsd-2-1-RELEASE:1.14 netbsd-2-1-RC6:1.14 netbsd-2-1-RC5:1.14 netbsd-2-1-RC4:1.14 netbsd-2-1-RC3:1.14 netbsd-2-1-RC2:1.14 netbsd-2-1-RC1:1.14 netbsd-2-0-2-RELEASE:1.14 netbsd-3:1.16.0.2 netbsd-3-base:1.16 netbsd-2-0-1-RELEASE:1.14 netbsd-2:1.14.0.4 netbsd-2-base:1.14 netbsd-2-0-RELEASE:1.14 netbsd-2-0-RC5:1.14 netbsd-2-0-RC4:1.14 netbsd-2-0-RC3:1.14 netbsd-2-0-RC2:1.14 netbsd-2-0-RC1:1.14 netbsd-2-0:1.14.0.2 netbsd-2-0-base:1.14 netbsd-1-6-PATCH002-RELEASE:1.11 netbsd-1-6-PATCH002:1.11 netbsd-1-6-PATCH002-RC4:1.11 netbsd-1-6-PATCH002-RC3:1.11 netbsd-1-6-PATCH002-RC2:1.11 netbsd-1-6-PATCH002-RC1:1.11 netbsd-1-6-PATCH001:1.11 netbsd-1-6-PATCH001-RELEASE:1.11 netbsd-1-6-PATCH001-RC3:1.11 netbsd-1-6-PATCH001-RC2:1.11 netbsd-1-6-PATCH001-RC1:1.11 fvdl_fs64_base:1.13 netbsd-1-6-RELEASE:1.11 netbsd-1-6-RC3:1.11 netbsd-1-6-RC2:1.11 netbsd-1-6-RC1:1.11 netbsd-1-6:1.11.0.2 netbsd-1-6-base:1.11 netbsd-1-5-PATCH003:1.9.2.1 netbsd-1-5-PATCH002:1.9 netbsd-1-5-PATCH001:1.9 netbsd-1-5-RELEASE:1.9 netbsd-1-5-BETA2:1.9 netbsd-1-5-BETA:1.9 netbsd-1-4-PATCH003:1.6 netbsd-1-5-ALPHA2:1.9 netbsd-1-5:1.9.0.2 netbsd-1-5-base:1.9 minoura-xpg4dl:1.8.0.6 minoura-xpg4dl-base:1.8 netbsd-1-4-PATCH002:1.6 wrstuden-devbsize-19991221:1.8 wrstuden-devbsize:1.8.0.4 wrstuden-devbsize-base:1.8 comdex-fall-1999:1.8.0.2 comdex-fall-1999-base:1.8 netbsd-1-4-PATCH001:1.6 netbsd-1-4-RELEASE:1.6 netbsd-1-4:1.6.0.8 netbsd-1-4-base:1.6 netbsd-1-3-PATCH003:1.6 netbsd-1-3-PATCH003-CANDIDATE2:1.6 netbsd-1-3-PATCH003-CANDIDATE1:1.6 netbsd-1-3-PATCH003-CANDIDATE0:1.6 netbsd-1-3-PATCH002:1.6 netbsd-1-3-PATCH001:1.6 netbsd-1-3-RELEASE:1.6 netbsd-1-3-BETA:1.6 netbsd-1-3:1.6.0.4 netbsd-1-3-base:1.6 netbsd-1-2-PATCH001:1.6 netbsd-1-2-RELEASE:1.6 netbsd-1-2-BETA:1.6 netbsd-1-2:1.6.0.6 netbsd-1-2-base:1.6 netbsd-1-1-PATCH001:1.6 netbsd-1-1-RELEASE:1.6 netbsd-1-1:1.6.0.2 netbsd-1-1-base:1.6 netbsd-1-0-PATCH06:1.4 netbsd-1-0-PATCH05:1.4 netbsd-1-0-PATCH04:1.4 netbsd-1-0-PATCH03:1.4 netbsd-1-0-PATCH02:1.4 netbsd-1-0-PATCH1:1.4 netbsd-1-0-PATCH0:1.4 netbsd-1-0-RELEASE:1.4 netbsd-1-0:1.4.0.2 netbsd-1-0-base:1.4 netbsd-0-9-RELEASE:1.2 netbsd-0-9-BETA:1.2 netbsd-0-9-ALPHA2:1.2 netbsd-0-9-ALPHA:1.2 netbsd-0-9:1.2.0.2 netbsd-0-9-base:1.2; locks; strict; comment @# @; 1.36 date 2023.10.07.12.15.53; author rin; state Exp; branches; next 1.35; commitid vmlIp8dcEoVdRGHE; 1.35 date 2023.09.04.23.00.48; author mrg; state Exp; branches; next 1.34; commitid 9QIPNyrgiTGDuvDE; 1.34 date 2022.05.15.16.25.09; author christos; state Exp; branches 1.34.2.1; next 1.33; commitid JEPfSG0CkmiADaED; 1.33 date 2021.11.01.03.09.58; author agc; state Exp; branches; next 1.32; commitid esXKbl5zH8xXr2fD; 1.32 date 2021.10.31.09.16.08; author nia; state Exp; branches; next 1.31; commitid j60MnWj6Gps8zWeD; 1.31 date 2021.10.26.20.37.18; author nia; state Exp; branches; next 1.30; commitid YIhcwzjSZtPIumeD; 1.30 date 2021.10.26.07.51.23; author nia; state Exp; branches; next 1.29; commitid uOfxrO23RzTUfieD; 1.29 date 2021.10.13.14.28.32; author nia; state Exp; branches; next 1.28; commitid m4gGyucUvEJaSEcD; 1.28 date 2021.10.12.17.24.36; author nia; state Exp; branches; next 1.27; commitid K9DZJI6jHCUiSxcD; 1.27 date 2020.03.25.17.11.06; author christos; state Exp; branches; next 1.26; commitid LJhkzyl76qhSZN1C; 1.26 date 2019.10.21.02.36.48; author jhigh; state Exp; branches; next 1.25; commitid ZoJaBvGczltd9GHB; 1.25 date 2013.08.10.18.42.29; author dholland; state Exp; branches 1.25.26.1; next 1.24; commitid 5kVjsctxfq4XfW0x; 1.24 date 2012.08.10.04.30.47; author joerg; state Exp; branches 1.24.2.1; next 1.23; 1.23 date 2012.03.21.05.37.42; author matt; state Exp; branches; next 1.22; 1.22 date 2011.06.20.07.43.58; author mrg; state Exp; branches 1.22.2.1; next 1.21; 1.21 date 2008.08.29.00.02.22; author gmcgarry; state Exp; branches 1.21.18.1; next 1.20; 1.20 date 2008.07.12.12.29.42; author gmcgarry; state Exp; branches; next 1.19; 1.19 date 2006.10.27.19.39.11; author drochner; state Exp; branches 1.19.18.1; next 1.18; 1.18 date 2006.10.27.18.22.56; author drochner; state Exp; branches; next 1.17; 1.17 date 2006.05.11.23.16.28; author mrg; state Exp; branches; next 1.16; 1.16 date 2005.01.11.22.41.07; author christos; state Exp; branches; next 1.15; 1.15 date 2004.07.02.00.05.23; author sjg; state Exp; branches; next 1.14; 1.14 date 2003.04.17.00.31.04; author thorpej; state Exp; branches; next 1.13; 1.13 date 2002.08.19.14.55.15; author lukem; state Exp; branches; next 1.12; 1.12 date 2002.05.24.04.02.48; author itojun; state Exp; branches; next 1.11; 1.11 date 2001.12.28.01.32.38; author lukem; state Exp; branches 1.11.2.1; next 1.10; 1.10 date 2000.07.06.11.12.42; author ad; state Exp; branches; next 1.9; 1.9 date 2000.06.16.16.29.35; author thorpej; state Exp; branches 1.9.2.1; next 1.8; 1.8 date 99.07.20.09.35.18; author mrg; state Exp; branches 1.8.6.1; next 1.7; 1.7 date 99.07.12.22.05.42; author thorpej; state Exp; branches; next 1.6; 1.6 date 95.02.19.12.18.56; author cgd; state Exp; branches; next 1.5; 1.5 date 94.12.22.09.49.34; author cgd; state Exp; branches; next 1.4; 1.4 date 93.10.07.01.36.21; author cgd; state Exp; branches; next 1.3; 1.3 date 93.08.02.17.50.08; author mycroft; state Exp; branches; next 1.2; 1.2 date 93.05.29.13.27.15; author cgd; state Exp; branches; next 1.1; 1.1 date 93.04.26.12.45.00; author cgd; state Exp; branches; next ; 1.34.2.1 date 2023.10.08.14.35.22; author martin; state Exp; branches; next ; commitid u2OxnQINGCBFBPHE; 1.25.26.1 date 2020.04.08.14.07.14; author martin; state Exp; branches; next 1.25.26.2; commitid Qli2aW9E74UFuA3C; 1.25.26.2 date 2020.04.13.08.03.12; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; 1.24.2.1 date 2014.08.20.00.02.17; author tls; state Exp; branches; next ; commitid jTnpym9Qu0o4R1Nx; 1.22.2.1 date 2012.04.17.00.05.27; author yamt; state Exp; branches; next 1.22.2.2; 1.22.2.2 date 2012.10.30.18.59.07; author yamt; state Exp; branches; next 1.22.2.3; 1.22.2.3 date 2014.05.22.11.36.55; author yamt; state Exp; branches; next ; commitid HJV5p3BoaVY5KwBx; 1.21.18.1 date 2011.06.23.14.18.37; author cherry; state Exp; branches; next ; 1.19.18.1 date 2008.09.18.04.39.23; author wrstuden; state Exp; branches; next ; 1.11.2.1 date 2004.03.26.22.53.18; author jmc; state Exp; branches; next ; 1.9.2.1 date 2002.01.22.19.32.48; author he; state Exp; branches; next ; 1.8.6.1 date 2000.06.23.16.16.19; author minoura; state Exp; branches; next ; desc @@ 1.36 log @Drop -O[01] hacks for vax; no longer necessary for patched GCC 10 PR port-vax/57646: Import major vax toolchain fix by Kalvis Duckmanton XXXRO: GCC 12 may require hacks for a while, but it turned out that GCC 12 should be treated differently from older versions; a lot of new files need -O[01] flags, while some may no longer require it. I will take a look later. Note that these hacks are not required if Kalvis's patches for GCC 12 are applied. Keep doc/HACKS entries for a while (will be sync with update for GCC 12). diff --git a/crypto/external/bsd/openssh/lib/Makefile b/crypto/external/bsd/openssh/lib/Makefile index 96a93f5e396..4e38be1b642 100644 --- a/crypto/external/bsd/openssh/lib/Makefile +++ b/crypto/external/bsd/openssh/lib/Makefile @@@@ -117,12 +117,6 @@@@ COPTS.${f}.c+= -Wno-pointer-sign # XXX COPTS.channels.c+= -fno-strict-aliasing -# XXX -.if ${MACHINE} == "vax" -COPTS.poly1305.c+= -O0 -COPTS.umac.c+= -O0 -.endif - COPTS.hostfile.c+= ${CC_WNO_FORMAT_TRUNCATION} COPTS.sshkey.c+= ${CC_WNO_FORMAT_TRUNCATION} COPTS.cipher.c+= -Wno-error=deprecated-declarations diff --git a/distrib/utils/x_ping/Makefile b/distrib/utils/x_ping/Makefile index f1c452a0d60..8ee77580a3f 100644 --- a/distrib/utils/x_ping/Makefile +++ b/distrib/utils/x_ping/Makefile @@@@ -12,10 +12,6 @@@@ CPPFLAGS+= -I${SRCDIR} -DCRUNCHOPS DPADD= ${LIBM} LDADD= -lm -.if ${MACHINE_ARCH} == "vax" -COPTS.ping.c=-O0 -.endif - .include .PATH: ${SRCDIR} diff --git a/external/apache2/argon2/lib/libargon2/Makefile.inc b/external/apache2/argon2/lib/libargon2/Makefile.inc index d3f4470c6c7..6a1dd146d7d 100644 --- a/external/apache2/argon2/lib/libargon2/Makefile.inc +++ b/external/apache2/argon2/lib/libargon2/Makefile.inc @@@@ -16,7 +16,3 @@@@ CFLAGS+= -pthread LDADD+=-lpthread DPADD+=${LIBPTHREAD} .endif - -.if ${MACHINE} == "vax" -COPTS.blake2b.c+= -O0 -.endif diff --git a/external/bsd/jemalloc/lib/Makefile.inc b/external/bsd/jemalloc/lib/Makefile.inc index 2f524358f46..d5da774f293 100644 --- a/external/bsd/jemalloc/lib/Makefile.inc +++ b/external/bsd/jemalloc/lib/Makefile.inc @@@@ -53,12 +53,6 @@@@ COPTS.ctl.c+=-Wno-error=stack-protector COPTS.stats.c+=-Wno-error=stack-protector COPTS.tcache.c+=-Wno-error=stack-protector -.if ${MACHINE_ARCH} == "vax" -# in merge_overlapping_regs, at regrename.c -COPTS.arena.c+=-O0 -COPTS.extent.c+=-O0 -.endif - SRCS+=${JEMALLOC_SRCS} jemalloc.d jemalloc.pico jemalloc.o jemalloc.ln jemalloc.po jemalloc.go: \ diff --git a/external/bsd/mdocml/lib/libmandoc/Makefile b/external/bsd/mdocml/lib/libmandoc/Makefile index 40d7e29ae88..dfd3077a2c7 100644 --- a/external/bsd/mdocml/lib/libmandoc/Makefile +++ b/external/bsd/mdocml/lib/libmandoc/Makefile @@@@ -39,11 +39,6 @@@@ tbl_opts.c MAN= mandoc.3 -# XXX -.if ${MACHINE} == "vax" -COPTS.mdoc_macro.c+=-O0 -.endif - COPTS.man_validate.c+=-Wno-error=array-bounds .include diff --git a/external/gpl3/binutils.old/lib/libbfd/Makefile b/external/gpl3/binutils.old/lib/libbfd/Makefile index 03477232b55..74a354532fa 100644 --- a/external/gpl3/binutils.old/lib/libbfd/Makefile +++ b/external/gpl3/binutils.old/lib/libbfd/Makefile @@@@ -41,10 +41,6 @@@@ CPPFLAGS+= -I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \ -DDEBUGDIR=\"${DEBUGDIR}\" -DLIBDIR=\"${LIBDIR}\" \ -DBINDIR=\"${BINDIR}\" -.if (${BFD_MACHINE_ARCH} == "vax") -CPPFLAGS.elf.c += -O0 -.endif - COPTS.pei-x86_64.c+= -Wno-stack-protector COPTS.elfxx-mips.c+= -Wno-stack-protector COPTS.elf.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-overflow :} diff --git a/external/gpl3/binutils/lib/libbfd/Makefile b/external/gpl3/binutils/lib/libbfd/Makefile index 00cb2b20081..a3f0c25fd35 100644 --- a/external/gpl3/binutils/lib/libbfd/Makefile +++ b/external/gpl3/binutils/lib/libbfd/Makefile @@@@ -41,10 +41,6 @@@@ CPPFLAGS+= -I${.CURDIR}/arch/${BFD_MACHINE_ARCH} -I${DIST}/include -I. \ -DDEBUGDIR=\"${DEBUGDIR}\" -DLIBDIR=\"${LIBDIR}\" \ -DBINDIR=\"${BINDIR}\" -.if (${BFD_MACHINE_ARCH} == "vax") -CPPFLAGS.elf.c += -O0 -.endif - COPTS.pei-x86_64.c+= -Wno-stack-protector COPTS.elfxx-mips.c+= -Wno-stack-protector COPTS.elf.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-overflow :} diff --git a/external/gpl3/gcc.old/lib/Makefile.sanitizer b/external/gpl3/gcc.old/lib/Makefile.sanitizer index efd36ae4bee..5173a5109a0 100644 --- a/external/gpl3/gcc.old/lib/Makefile.sanitizer +++ b/external/gpl3/gcc.old/lib/Makefile.sanitizer @@@@ -88,22 +88,3 @@@@ COPTS+=-fno-builtin -fno-exceptions -fno-rtti -funwind-tables # Can't profile without it` #-fomit-frame-pointer - -.if ${MACHINE_ARCH} == "vax" -COPTS.sanitizer_allocator.cc += -O1 -COPTS.sanitizer_common.cc += -O1 -COPTS.sanitizer_common_libcdep.cc += -O1 -COPTS.sanitizer_coverage_libcdep.cc += -O1 -COPTS.sanitizer_coverage_mapping_libcdep.cc += -O1 -COPTS.sanitizer_deadlock_detector1.cc += -O1 -COPTS.sanitizer_mac.cc += -O1 -COPTS.sanitizer_netbsd.cc += -O1 -COPTS.sanitizer_posix.cc += -O1 -COPTS.sanitizer_printf.cc += -O1 -COPTS.sanitizer_procmaps_common.cc += -O1 -COPTS.sanitizer_stackdepot.cc += -O1 -COPTS.sanitizer_symbolizer_libcdep.cc += -O1 -COPTS.sanitizer_symbolizer_report.cc += -O1 -COPTS.ubsan_diag.cc += -O1 -COPTS.ubsan_init.cc += -O1 -.endif diff --git a/external/gpl3/gcc.old/lib/libasan/Makefile b/external/gpl3/gcc.old/lib/libasan/Makefile index 1e6f9608abe..3da7bbf2f58 100644 --- a/external/gpl3/gcc.old/lib/libasan/Makefile +++ b/external/gpl3/gcc.old/lib/libasan/Makefile @@@@ -49,14 +49,6 @@@@ LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread CPPFLAGS+=-DCAN_SANITIZE_UB=0 -.if ${MACHINE_ARCH} == "vax" -COPTS.asan_allocator.cc += -O1 -COPTS.asan_report.cc += -O1 -COPTS.sanitizer_file.cc += -O1 -COPTS.ubsan_diag.cc += -O1 -COPTS.ubsan_init.cc += -O1 -.endif - .if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" COPTS.asan_interceptors.cc += -O1 .endif diff --git a/external/gpl3/gcc.old/lib/liblsan/Makefile b/external/gpl3/gcc.old/lib/liblsan/Makefile index 4578544a9a8..ddb7981077c 100644 --- a/external/gpl3/gcc.old/lib/liblsan/Makefile +++ b/external/gpl3/gcc.old/lib/liblsan/Makefile @@@@ -16,11 +16,6 @@@@ LSAN_SRCS+= \ lsan_linux.cc \ lsan_thread.cc -.if ${MACHINE_ARCH} == "vax" -COPTS.lsan_allocator.cc += -O1 -COPTS.sanitizer_file.cc += -O1 -.endif - LIB= lsan SRCS+= ${LSAN_SRCS} LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm diff --git a/external/gpl3/gcc.old/lib/libubsan/Makefile b/external/gpl3/gcc.old/lib/libubsan/Makefile index 2e2faca7b1c..9de82550d14 100644 --- a/external/gpl3/gcc.old/lib/libubsan/Makefile +++ b/external/gpl3/gcc.old/lib/libubsan/Makefile @@@@ -26,10 +26,6 @@@@ UBSAN_SRCS= \ COPTS.${_s}.cc+=-frtti .endfor -.if ${MACHINE_ARCH} == "vax" -COPTS.sanitizer_file.cc += -O1 -.endif - LIB= ubsan SRCS+= ${UBSAN_SRCS} LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm diff --git a/external/gpl3/gcc.old/usr.bin/cc1/Makefile b/external/gpl3/gcc.old/usr.bin/cc1/Makefile index c55e292ee8e..ff12a5be524 100644 --- a/external/gpl3/gcc.old/usr.bin/cc1/Makefile +++ b/external/gpl3/gcc.old/usr.bin/cc1/Makefile @@@@ -46,17 +46,6 @@@@ CPPFLAGS.default-c.c+= -I${BACKENDOBJ} BUILDSYMLINKS+= ${GNUHOSTDIST}/gcc/config/sh/sh-c.cc sh-c.c .endif -.if ${MACHINE_CPU} == "vax" -COPTS.c-decl.c+=-O0 -COPTS.c-typeck.c+=-O0 -COPTS.c-array-notation.c+=-O0 -COPTS.c-common.c+=-O0 -COPTS.c-ada-spec.c+=-O0 -COPTS.cilk.c+=-O0 -COPTS.c-ubsan.c+=-O0 -COPTS.cc1-checksum.c+=-O0 -.endif - .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel" COPTS.c-common.c+=-O3 .endif diff --git a/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile b/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile index 3123ee0d60b..aab82ad3448 100644 --- a/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile +++ b/external/gpl3/gcc.old/usr.bin/cc1obj/Makefile @@@@ -44,16 +44,8 @@@@ COPTS.objc-act.c+= -Wno-stack-protector COPTS.objc-gnu-runtime-abi-01.c+= -Wno-stack-protector COPTS.objc-next-runtime-abi-01.c+= -Wno-stack-protector -.if ${MACHINE_ARCH} == "vax" -COPTS.c-decl.c+=-O0 -COPTS.c-typeck.c+=-O0 -COPTS.c-array-notation.c+=-O0 -COPTS.c-common.c+=-O0 -COPTS.c-ada-spec.c+=-O0 -COPTS.cilk.c+=-O0 -COPTS.c-ubsan.c+=-O0 -COPTS.cc1obj-checksum.c+=-O0 -.endif +COPTS.c-cppbuiltin.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :} +COPTS.c-typeck.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :} .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel" COPTS.c-common.c+=-O3 diff --git a/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile b/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile index b9c108251c5..e04e8fc7f53 100644 --- a/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile +++ b/external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile @@@@ -69,18 +69,6 @@@@ COPTS.objc-act.c+= -Wno-stack-protector COPTS.objc-gnu-runtime-abi-01.c+= -Wno-stack-protector COPTS.objc-next-runtime-abi-01.c+= -Wno-stack-protector -.if ${MACHINE_ARCH} == "vax" -COPTS.c-decl.c+=-O0 -COPTS.c-typeck.c+=-O0 -COPTS.c-array-notation.c+=-O0 -COPTS.c-common.c+=-O0 -COPTS.c-ada-spec.c+=-O0 -COPTS.cilk.c+=-O0 -COPTS.c-ubsan.c+=-O0 -COPTS.cc1obj-checksum.c+=-O0 -COPTS.decl.c+=-O0 -.endif - .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel" COPTS.c-common.c+=-O3 .endif diff --git a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile index 7936efd3a5e..7c54559e21a 100644 --- a/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile +++ b/external/gpl3/gcc.old/usr.bin/cc1plus/Makefile @@@@ -31,23 +31,6 @@@@ CHECKSUM_OBJS= ${LIBBACKTRACEOBJ}/libbacktrace.a \ CFLAGS+= -Wno-error=stack-protector -.if ${MACHINE_ARCH} == "vax" -COPTS.call.c+=-O0 -COPTS.decl.c+=-O0 -COPTS.typeck2.c+=-O0 -COPTS.class.c+=-O0 -COPTS.typeck.c+=-O0 -COPTS.init.c+=-O0 -COPTS.semantics.c+=-O0 -COPTS.mangle.c+=-O0 -COPTS.constexpr.c+=-O0 -COPTS.c-common.c+=-O0 -COPTS.c-ada-spec.c+=-O0 -COPTS.cilk.c+=-O0 -COPTS.c-ubsan.c+=-O0 -COPTS.cc1plus-checksum.c+=-O0 -.endif - .if ${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel" COPTS.c-common.c+=-O3 .endif diff --git a/external/gpl3/gcc.old/usr.bin/gcc/Makefile b/external/gpl3/gcc.old/usr.bin/gcc/Makefile index 7a66d77ffc7..a5a4b1c3adf 100644 --- a/external/gpl3/gcc.old/usr.bin/gcc/Makefile +++ b/external/gpl3/gcc.old/usr.bin/gcc/Makefile @@@@ -25,9 +25,6 @@@@ ${SRCS}: ${GCCARCH}/defs.mk .include COPTS.gcc.c= -Wno-stack-protector -.if ${MACHINE_ARCH} == "vax" -COPTS.dse.c= -O1 -.endif .PATH: ${DIST}/gcc ${DIST}/gcc/doc ${DIST}/gcc/c diff --git a/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile b/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile index 751d1513eec..33aeb1c9898 100644 --- a/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile +++ b/external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile @@@@ -14,10 +14,6 @@@@ SRCS= decNumber.c decContext.c decimal32.c decimal64.c decimal128.c CPPFLAGS+= -I${.CURDIR}/arch/${GCC_MACHINE_ARCH} -I${DIST}/libdecnumber CPPFLAGS+= -I${DIST}/libgcc -.if ${MACHINE_ARCH} == "vax" -COPTS.decNumber.c=-O0 -.endif - .include # Force using C++ for this diff --git a/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile b/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile index 90f44a9fcf6..fd251464fb7 100644 --- a/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile +++ b/external/gpl3/gcc.old/usr.bin/lto-dump/Makefile @@@@ -24,11 +24,6 @@@@ COPTS.lto-common.c+= -Wno-stack-protector .include "../Makefile.backtrace" .include "../Makefile.libdecnumber" -.if ${MACHINE_ARCH} == "vax" -COPTS.lto-lang.c+=-O0 -COPTS.lto-symtab.c+=-O0 -.endif - LDADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm DPADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM} diff --git a/external/gpl3/gcc.old/usr.bin/lto1/Makefile b/external/gpl3/gcc.old/usr.bin/lto1/Makefile index 4c49161a64c..340d3c6124f 100644 --- a/external/gpl3/gcc.old/usr.bin/lto1/Makefile +++ b/external/gpl3/gcc.old/usr.bin/lto1/Makefile @@@@ -21,11 +21,6 @@@@ COPTS.lto-common.c+= -Wno-stack-protector .include "../Makefile.libcpp" .include "../Makefile.libdecnumber" -.if ${MACHINE_ARCH} == "vax" -COPTS.lto-lang.c+=-O0 -COPTS.lto-symtab.c+=-O0 -.endif - LDADD+= ${LIBIBERTYOBJ}/libiberty.a DPADD+= ${LIBIBERTYOBJ}/libiberty.a LDADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm diff --git a/external/gpl3/gdb.old/lib/libdecnumber/Makefile b/external/gpl3/gdb.old/lib/libdecnumber/Makefile index bcd4ae5b222..ce28811526b 100644 --- a/external/gpl3/gdb.old/lib/libdecnumber/Makefile +++ b/external/gpl3/gdb.old/lib/libdecnumber/Makefile @@@@ -18,10 +18,6 @@@@ CPPFLAGS+= -I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \ SRCS= ${G_OBJS:.o=.c} ${G_SOURCES} -.if ${MACHINE_ARCH} == "vax" -COPTS.decNumber.c=-O0 -.endif - .PATH: ${DIST}/libdecnumber ${DIST}/libdecnumber/dpd .include diff --git a/external/gpl3/gdb/lib/libdecnumber/Makefile b/external/gpl3/gdb/lib/libdecnumber/Makefile index c95d36e3dfa..e3169865304 100644 --- a/external/gpl3/gdb/lib/libdecnumber/Makefile +++ b/external/gpl3/gdb/lib/libdecnumber/Makefile @@@@ -18,10 +18,6 @@@@ CPPFLAGS+= -I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \ SRCS= ${G_OBJS:.o=.c} ${G_SOURCES} -.if ${MACHINE_ARCH} == "vax" -COPTS.decNumber.c=-O0 -.endif - .PATH: ${DIST}/libdecnumber ${DIST}/libdecnumber/dpd ${DIST}/libdecnumber/bid .include diff --git a/external/gpl3/gdb/lib/libgdb/Makefile b/external/gpl3/gdb/lib/libgdb/Makefile index b87a515d13a..c118c363975 100644 --- a/external/gpl3/gdb/lib/libgdb/Makefile +++ b/external/gpl3/gdb/lib/libgdb/Makefile @@@@ -66,12 +66,6 @@@@ CFLAGS:= ${CXXFLAGS} -std=gnu++17 -Wno-error=stack-protector ada-exp.c: ada-lex.c -.if ${MACHINE} == "vax" -. if ${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8 -COPTS.read.c+= -O0 -. endif -.endif - # These are generated by implicit rules and are not easy to generate CLEANDIRFILES+= \ ada-exp.c ada-lex.c \ diff --git a/external/mit/xorg/lib/gallium.old/Makefile b/external/mit/xorg/lib/gallium.old/Makefile index 55b2fe3d1c1..bfa40c8974f 100644 --- a/external/mit/xorg/lib/gallium.old/Makefile +++ b/external/mit/xorg/lib/gallium.old/Makefile @@@@ -1211,10 +1211,6 @@@@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHL COPTS+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :} .endif -.if ${MACHINE_ARCH} == "vax" -COPTS.nir.c += -O1 -.endif - # XXXGCC12 .if ${MACHINE_ARCH} == "m68k" COPTS.st_glsl_to_tgsi.cpp += -O1 diff --git a/external/mit/xorg/lib/gallium/Makefile b/external/mit/xorg/lib/gallium/Makefile index 6778a8c11c8..9f1422080fe 100644 --- a/external/mit/xorg/lib/gallium/Makefile +++ b/external/mit/xorg/lib/gallium/Makefile @@@@ -1428,10 +1428,6 @@@@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHL COPTS+= ${${ACTIVE_CC} == "clang":? -Wa,-Av8plus :} .endif -.if ${MACHINE_ARCH} == "vax" -COPTS.nir.c += -O1 -.endif - COPTS.u_atomic.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-builtin-declaration-mismatch :} .include diff --git a/external/mit/xorg/lib/libX11/Makefile.libx11 b/external/mit/xorg/lib/libX11/Makefile.libx11 index e103d9ace12..0e55c2a4732 100644 --- a/external/mit/xorg/lib/libX11/Makefile.libx11 +++ b/external/mit/xorg/lib/libX11/Makefile.libx11 @@@@ -471,11 +471,6 @@@@ COPTS.OpenDis.c+= -Wno-error # XXX xf86bigfstr.h COPTS.XlibInt.c+= -Wno-error # XXX xcmiscstr.h COPTS.XKBBind.c+= -Wno-deprecated-declarations # uses XKeycodeToKeysym -# XXX -.if ${MACHINE} == "vax" -COPTS.lcWrap.c+= -O0 -.endif - CWARNFLAGS.clang+= -Wno-string-plus-int .include "${NETBSDSRCDIR}/external/mit/xorg/tools/makekeys/Makefile.makekeys" diff --git a/games/gomoku/Makefile b/games/gomoku/Makefile index e86a63aaea7..678537066ed 100644 --- a/games/gomoku/Makefile +++ b/games/gomoku/Makefile @@@@ -9,10 +9,6 @@@@ LDADD= -lcurses -lterminfo HIDEGAME=hidegame CPPFLAGS+= ${DEBUG:D-DDEBUG} -.if ${MACHINE} == "vax" -COPTS.pickmove.c += -O0 -.endif - #WARNS= 6 # would produce warnings about small integer types LINTFLAGS+= -w # treat warnings as errors LINTFLAGS+= -T # strict bool mode diff --git a/games/phantasia/Makefile b/games/phantasia/Makefile index e9c53f23ae5..b919dac17c6 100644 --- a/games/phantasia/Makefile +++ b/games/phantasia/Makefile @@@@ -52,7 +52,3 @@@@ map: map.c ./map | plot > /dev/tty .include - -.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax" -COPTS.misc.c+= -O0 -.endif diff --git a/lib/i18n_module/UTF7/Makefile b/lib/i18n_module/UTF7/Makefile index 712c1515d42..7136f7f0cc3 100644 --- a/lib/i18n_module/UTF7/Makefile +++ b/lib/i18n_module/UTF7/Makefile @@@@ -3,6 +3,3 @@@@ SRCPRE=citrus_ .include -.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC) -COPTS.citrus_utf7.c+= -O0 -.endif diff --git a/lib/libbz2/Makefile b/lib/libbz2/Makefile index b2aea1e04b0..e60a2862d48 100644 --- a/lib/libbz2/Makefile +++ b/lib/libbz2/Makefile @@@@ -15,11 +15,6 @@@@ SRCS= blocksort.c huffman.c crctable.c randtable.c compress.c \ INCS= bzlib.h INCSDIR= /usr/include -# XXX huffman.c gets mis-compiled with 2.95.3 -.if ${MACHINE_ARCH} == "vax" -COPTS+= -O0 -.endif - COPTS+= ${CC_WNO_IMPLICIT_FALLTHROUGH} # XXX blocksort.c gets mis-compiled with 4.1 diff --git a/lib/libc/gdtoa/Makefile.inc b/lib/libc/gdtoa/Makefile.inc index 132686fc33d..609da919803 100644 --- a/lib/libc/gdtoa/Makefile.inc +++ b/lib/libc/gdtoa/Makefile.inc @@@@ -44,10 +44,3 @@@@ SRCS+= dmisc.c \ .if ${MACHINE_ARCH} != "vax" SRCS+= strtord.c .endif - -# XXX revisit with newer GCC. -# Ensure numbers like 0xffff319f5fa95963 print correctly -# ("999999999999999.98", not garbage like "?A>C>@@>C:BA;A><.:<") -.if ${MACHINE_ARCH} == "vax" && defined(HAVE_GCC) -COPTS.misc.c+= -O0 -.endif diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile index cb3f89d6d09..e9c8be820da 100644 --- a/lib/libcrypt/Makefile +++ b/lib/libcrypt/Makefile @@@@ -30,9 +30,6 @@@@ SRCS+= crypt-argon2.c SRCS+= ${src} COPTS.${src}+= -fvisibility=hidden . endfor -. if ${MACHINE} == "vax" -COPTS.blake2b.c+= -O0 -. endif .endif WARNS?= 5 diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile index f5baae1e883..24f7e1121e5 100644 --- a/libexec/ld.elf_so/Makefile +++ b/libexec/ld.elf_so/Makefile @@@@ -141,10 +141,6 @@@@ CPPFLAGS+= -DRTLD_DEFAULT_LIBRARY_PATH=\"${SHLIBDIR}:${LIBDIR}\" COPTS.rtld.c+= -Wno-stack-protector COPTS.symbol.c+=-Wno-stack-protector -.if ${MACHINE_CPU} == "vax" -COPTS.rtld.c+= -O0 -.endif - LDADD+= -Wl,--version-script=${.CURDIR}/symbols.map LDADD+= -L${CLIBOBJ} -L${DESTDIR}${LIBDIR} .if ${MKPICLIB} != "no" diff --git a/sbin/fsck_ffs/Makefile.common b/sbin/fsck_ffs/Makefile.common index 765638b2801..824e3bf2628 100644 --- a/sbin/fsck_ffs/Makefile.common +++ b/sbin/fsck_ffs/Makefile.common @@@@ -36,7 +36,3 @@@@ COPTS.ffs_appleufs.c+= -Wno-pointer-sign .if ${MACHINE_ARCH} == "m68000" COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs .endif -.if ${MACHINE_ARCH} == "vax" -COPTS.pass1.c+= -O0 -COPTS.inode.c+= -O0 -.endif diff --git a/sbin/fsdb/Makefile b/sbin/fsdb/Makefile index c039f73a1eb..3b0331e5880 100644 --- a/sbin/fsdb/Makefile +++ b/sbin/fsdb/Makefile @@@@ -39,12 +39,6 @@@@ COPTS.${f}.c+= -Wno-pointer-sign COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs .endif -.if ${MACHINE_ARCH} == "vax" -COPTS.pass1.c+= -O0 -COPTS.inode.c+= -O0 -COPTS.fsdb.c+= -O0 -.endif - CWARNFLAGS.gcc+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER} .include diff --git a/sbin/newfs_ext2fs/Makefile b/sbin/newfs_ext2fs/Makefile index 40a44b9a038..ecfdbff4d3a 100644 --- a/sbin/newfs_ext2fs/Makefile +++ b/sbin/newfs_ext2fs/Makefile @@@@ -20,8 +20,4 @@@@ DPADD+=${LIBPROP} .PATH: ${NETBSDSRCDIR}/sys/ufs/ext2fs ${FSCK} -.if ${MACHINE_ARCH} == "vax" -COPTS.mke2fs.c=-O0 -.endif - .include diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile index 4f33501ea7a..1f7f56e3ea5 100644 --- a/sbin/ping/Makefile +++ b/sbin/ping/Makefile @@@@ -12,8 +12,4 @@@@ CPPFLAGS+= -DIPSEC LDADD+= -lipsec DPADD+= ${LIBIPSEC} -.if ${MACHINE_ARCH} == "vax" -COPTS.ping.c=-O0 -.endif - .include diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax index cf095d54a86..c483eaa644a 100644 --- a/sys/arch/vax/conf/Makefile.vax +++ b/sys/arch/vax/conf/Makefile.vax @@@@ -34,7 +34,6 @@@@ GENASSYM_CONF= ${VAX}/vax/genassym.cf CPPFLAGS+= -D_VAX_INLINE_ AFLAGS+= -x assembler-with-cpp -fno-pic CFLAGS+= -fno-pic -COPTS.wsmux.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -O1 :} ## diff --git a/sys/lib/libsa/Makefile b/sys/lib/libsa/Makefile index 718c97ce857..4ef3840c753 100644 --- a/sys/lib/libsa/Makefile +++ b/sys/lib/libsa/Makefile @@@@ -96,7 +96,3 @@@@ SRCS+= ufs.c lib${LIB}.o:: ${OBJS:O} __buildstdlib CPPFLAGS+= -Wno-pointer-sign - -.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax" -COPTS.bootp.c+= -O0 -.endif diff --git a/sys/lib/libz/Makefile b/sys/lib/libz/Makefile index 6945c0da6c6..61fb7d4f652 100644 --- a/sys/lib/libz/Makefile +++ b/sys/lib/libz/Makefile @@@@ -25,7 +25,3 @@@@ CLEANFILES+= lib${LIB}.o .include lib${LIB}.o:: ${OBJS:O} __buildstdlib - -.if defined(HAVE_GCC) && ${MACHINE_ARCH} == "vax" -COPTS.inftrees.c+= -O0 -.endif diff --git a/sys/modules/lfs/Makefile b/sys/modules/lfs/Makefile index 962538821a5..ea8f187e160 100644 --- a/sys/modules/lfs/Makefile +++ b/sys/modules/lfs/Makefile @@@@ -18,9 +18,4 @@@@ SRCS+= ulfs_bmap.c ulfs_dirhash.c ulfs_inode.c ulfs_lookup.c \ WARNS= 3 -.if ${MACHINE} == "vax" -# GCC 6.5 and 7.4 cannot compile this with -DDIAGNOSTIC and -O2/-O1 -COPTS.lfs_inode.c+= -O0 -.endif - .include diff --git a/sys/rump/fs/lib/liblfs/Makefile b/sys/rump/fs/lib/liblfs/Makefile index abade3767d9..68b74c62502 100644 --- a/sys/rump/fs/lib/liblfs/Makefile +++ b/sys/rump/fs/lib/liblfs/Makefile @@@@ -17,9 +17,6 @@@@ SRCS+= ulfs_bmap.c ulfs_dirhash.c ulfs_extattr.c \ CFLAGS+= -DLFS_KERNEL_RFW -.if ${MACHINE_ARCH} == "vax" -COPTS.lfs_inode.c+=-O0 -.endif .include .include diff --git a/usr.sbin/mtrace/Makefile b/usr.sbin/mtrace/Makefile index aef09db6198..9c125c15265 100644 --- a/usr.sbin/mtrace/Makefile +++ b/usr.sbin/mtrace/Makefile @@@@ -12,10 +12,6 @@@@ PROG= mtrace SRCS= igmp.c inet.c kern.c mtrace.c MAN= mtrace.8 -.if ${MACHINE_ARCH} == "vax" -COPTS.mtrace.c=-O0 -.endif - BINMODE=4555 BINOWN= root diff --git a/external/gpl3/gcc.old/usr.bin/backend/Makefile b/external/gpl3/gcc.old/usr.bin/backend/Makefile index d69a26fe619..99e881c783d 100644 --- a/external/gpl3/gcc.old/usr.bin/backend/Makefile +++ b/external/gpl3/gcc.old/usr.bin/backend/Makefile @@@@ -533,68 +533,9 @@@@ COPTS.insn-recog.c+=-Wno-error .if ${GCC_MACHINE_ARCH} == "vax" CPPFLAGS+=-I${.CURDIR}/../../lib/libgcc/libgcov/arch/${GCC_MACHINE_ARCH} -COPTS.builtins.c+=-O0 -COPTS.calls.c+=-O0 -COPTS.convert.c+=-O0 -COPTS.data-streamer-out.c+=-O0 -COPTS.dse.c+=-O0 # XXX port-vax/51967 -COPTS.dwarf2out.c+=-O0 -COPTS.expmed.c+=-O0 -COPTS.expr.c+=-O0 -Wno-error=tautological-compare -COPTS.fixed-value.c+=-O0 -COPTS.fold-const.c+=-O0 -COPTS.generic-match.c+=-O0 -COPTS.gimple-fold.c+=-O0 -COPTS.gimple-match.c+=-O0 -COPTS.gimple-ssa-strength-reduction.c+=-O0 -COPTS.gimple-ssa-warn-restrict.c+=-O0 -COPTS.gimple.c+=-O0 -COPTS.internal-fn.c+=-O0 -COPTS.lto-streamer-out.c+=-O0 -COPTS.omp-low.c+=-O0 -COPTS.predict.c+=-O0 -COPTS.range-op.cc+=-O0 -COPTS.recog.c+=-O0 -COPTS.sanopt.c+=-O0 -COPTS.stmt.c+=-O0 -COPTS.stor-layout.c+=-O0 -COPTS.targhooks.c+=-O0 -COPTS.tree-affine.c+=-O0 -COPTS.tree-cfg.c+=-O0 -COPTS.tree-data-ref.c+=-O0 -COPTS.tree-eh.c+=-O0 -COPTS.tree-if-conv.c+=-O0 -COPTS.tree-object-size.c+=-O0 -COPTS.tree-parloops.c+=-O0 -COPTS.tree-predcom.c+=-O0 -COPTS.tree-pretty-print.c+=-O0 -COPTS.tree-ssa-alias.c+=-O0 -COPTS.tree-ssa-ccp.c+=-O0 -COPTS.tree-ssa-forwprop.c+=-O0 -COPTS.tree-ssa-loop-ivopts.c+=-O0 -COPTS.tree-ssa-loop-manip.c+=-O0 -COPTS.tree-ssa-loop-niter.c+=-O0 -COPTS.tree-ssa-math-opts.c+=-O0 -COPTS.tree-ssa-phiopt.c+= -O0 -COPTS.tree-ssa-pre.c+=-O0 -COPTS.tree-ssa-reassoc.c+=-O0 -COPTS.tree-ssa-strlen.c+=-O0 -COPTS.tree-ssa-uninit.c+=-O0 -COPTS.tree-ssa.c+=-O0 -COPTS.tree-switch-conversion.c+=-O0 -COPTS.tree-vect-data-refs.c+=-O0 -COPTS.tree-vect-loop-manip.c+=-O0 -COPTS.tree-vect-loop.c+=-O0 -COPTS.tree-vect-patterns.c+=-O0 -COPTS.tree-vect-stmts.c+=-O0 -COPTS.tree-vrp.c+=-O0 -COPTS.tree.c+=-O0 -COPTS.ubsan.c+=-O0 -COPTS.varasm.c+=-O0 -COPTS.vr-values.c+=-O0 -COPTS.web.c+=-O0 -COPTS.wide-int-range.cc+=-O0 -COPTS.wide-int.cc+=-O0 + +COPTS.expmed.c+=-Wno-error=tautological-compare +COPTS.expr.c+=-Wno-error=tautological-compare .else COPTS.tree.c= ${${ACTIVE_CC} == "clang" :? -O0 :} .endif @ text @# $NetBSD: Makefile,v 1.35 2023/09/04 23:00:48 mrg Exp $ USE_FORT?= yes # cryptographic software .include USE_SHLIBDIR= yes .if (defined(MKARGON2) && ${MKARGON2} != "no") HAVE_ARGON2=1 .endif LIB= crypt SRCS= crypt.c md5crypt.c bcrypt.c crypt-sha1.c util.c pw_gensalt.c SRCS+= hmac_sha1.c CPPFLAGS+= -include ${.CURDIR}/namespace.h .if defined(HAVE_ARGON2) ARGON2DIR= ${NETBSDSRCDIR}/external/apache2/argon2 .PATH: ${ARGON2DIR}/dist/phc-winner-argon2/src \ ${ARGON2DIR}/dist/phc-winner-argon2/src/blake2 \ ${ARGON2DIR}/dist/phc-winner-argon2/include CPPFLAGS+= -DHAVE_ARGON2 -DARGON2_NO_THREADS CPPFLAGS+= -I${ARGON2DIR}/dist/phc-winner-argon2/include SRCS+= crypt-argon2.c # libargon2 sources . for src in argon2.c core.c blake2b.c encoding.c ref.c SRCS+= ${src} COPTS.${src}+= -fvisibility=hidden . endfor .endif WARNS?= 5 MAN= crypt.3 pw_gensalt.3 MLINKS= crypt.3 encrypt.3 crypt.3 setkey.3 # XXXGCC12 - init_perm() takes a larger array than IE3264[] is, but # it doesn't need more. COPTS.crypt.c+= ${CC_WNO_STRINGOP_OVERFLOW} .if make(*.test) .SUFFIXES: .test .c.test: ${CC} -o $@@ -DUNIT_TEST -DMAIN ${LDSTATIC} ${.IMPSRC} ${LDADD} LDADD+= -L${.OBJDIR} -l${LIB} -L${.OBJDIR}/../../libc DPADD+= lib${LIB}.a LDSTATIC?= -static .include .else .include .endif @ 1.35 log @apply ${CC_WNO_STRINGOP_OVERFLOW} for crypt.c. init_perm() takes a larger array than IE3264[] is, but it doesn't use more for this instance. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.34 2022/05/15 16:25:09 christos Exp $ a32 3 . if ${MACHINE} == "vax" COPTS.blake2b.c+= -O0 . endif @ 1.34 log @PR/56838: David A. Holland: namespace pollution in static libcrypt @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.33 2021/11/01 03:09:58 agc Exp $ d43 3 @ 1.34.2.1 log @Pull up following revision(s) (requested by rin in ticket #394): external/gpl3/binutils/dist/gas/config/tc-vax.h: revision 1.10 tools/gcc/Makefile: revision 1.109 external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.16 external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.17 external/gpl3/binutils/dist/gas/config/tc-vax.c: revision 1.18 external/gpl3/gcc.old/dist/gcc/recog.c: revision 1.12 external/gpl3/gcc.old/dist/gcc/function.c: revision 1.16 external/gpl3/gcc.old/dist/gcc/dse.c: revision 1.14 - 1.16 external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.13 external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.14 external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.15 external/gpl3/gcc.old/dist/gcc/doc/tm.texi.in: revision 1.10 external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.16 external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.17 external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.18 external/gpl3/gcc.old/dist/gcc/config/vax/vax.c: revision 1.19 external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.12 external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.13 external/gpl3/gcc.old/usr.bin/backend/Makefile: revision 1.20 external/gpl3/gcc.old/dist/gcc/targhooks.c: revision 1.12 external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.14 external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.15 external/gpl3/gcc.old/dist/gcc/config/vax/builtins.md: revision 1.12 external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.16 external/gpl3/gcc.old/dist/gcc/config/vax/builtins.md: revision 1.13 external/gpl3/gcc.old/dist/gcc/doc/tm.texi: revision 1.12 external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.17 external/gpl3/gcc.old/dist/gcc/config/vax/vax.md: revision 1.18 external/gpl3/gcc.old/dist/gcc/config/vax/elf.h: revision 1.12 external/gpl3/gcc.old/dist/gcc/config/vax/elf.h: revision 1.13 external/gpl3/gcc.old/dist/gcc/targhooks.h: revision 1.12 external/gpl3/gcc.old/dist/gcc/target.def: revision 1.10 external/gpl3/gcc.old/dist/gcc/rtlanal.c: revision 1.14 external/gpl3/gcc.old/dist/gcc/reload.c: revision 1.12 external/gpl3/gcc.old/usr.bin/gcc/Makefile: revision 1.11 external/gpl3/gcc.old/usr.bin/lto-dump/Makefile: revision 1.3 external/gpl3/gcc.old/lib/Makefile.sanitizer: revision 1.7 external/gpl3/binutils.old/lib/libbfd/Makefile: revision 1.10 distrib/utils/x_ping/Makefile: revision 1.9 games/phantasia/Makefile: revision 1.38 external/apache2/argon2/lib/libargon2/Makefile.inc: revision 1.2 external/gpl3/gcc.old/lib/libubsan/Makefile: revision 1.8 external/bsd/mdocml/lib/libmandoc/Makefile: revision 1.13 sbin/ping/Makefile: revision 1.18 sbin/newfs_ext2fs/Makefile: revision 1.7 sys/lib/libz/Makefile: revision 1.24 sys/lib/libsa/Makefile: revision 1.97 external/gpl3/gcc.old/usr.bin/cc1objplus/Makefile: revision 1.3 external/gpl3/gdb/lib/libgdb/Makefile: revision 1.36 sys/modules/lfs/Makefile: revision 1.11 external/mit/xorg/lib/gallium/Makefile: revision 1.51 external/gpl3/gdb.old/lib/libdecnumber/Makefile: revision 1.10 external/mit/xorg/lib/libX11/Makefile.libx11: revision 1.26 libexec/ld.elf_so/Makefile: revision 1.148 external/bsd/jemalloc/lib/Makefile.inc: revision 1.16 external/gpl3/gcc.old/usr.bin/libdecnumber/Makefile: revision 1.14 crypto/external/bsd/openssh/lib/Makefile: revision 1.38 external/gpl3/gcc.old/usr.bin/backend/Makefile: revision 1.21 external/gpl3/gcc.old/usr.bin/cc1/Makefile: revision 1.12 external/gpl3/gcc.old/lib/libasan/Makefile: revision 1.11 external/gpl3/gcc.old/usr.bin/cc1plus/Makefile: revision 1.13 lib/libcrypt/Makefile: revision 1.36 external/gpl3/gdb/lib/libdecnumber/Makefile: revision 1.5 lib/libc/gdtoa/Makefile.inc: revision 1.13 games/gomoku/Makefile: revision 1.13 sbin/fsdb/Makefile: revision 1.43 external/gpl3/gcc.old/usr.bin/lto1/Makefile: revision 1.9 external/mit/xorg/lib/gallium.old/Makefile: revision 1.8 lib/libbz2/Makefile: revision 1.22 external/gpl3/gcc.old/usr.bin/cc1obj/Makefile: revision 1.12 usr.sbin/mtrace/Makefile: revision 1.14 external/gpl3/gcc.old/usr.bin/cc1obj/Makefile: revision 1.13 sys/arch/vax/conf/Makefile.vax: revision 1.86 sys/rump/fs/lib/liblfs/Makefile: revision 1.18 sbin/fsck_ffs/Makefile.common: revision 1.3 external/gpl3/binutils/lib/libbfd/Makefile: revision 1.27 lib/i18n_module/UTF7/Makefile: revision 1.5 external/gpl3/gcc.old/lib/liblsan/Makefile: revision 1.7 doc/CHANGES (apply patch) (all external/gpl3/gcc.old/ changes applied to external/gpl3/gcc/) PR 57646: Import major vax toolchain fix. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.34 2022/05/15 16:25:09 christos Exp $ d33 3 @ 1.33 log @Remove the COPTS.*+= -Wno-error=.* lines for building argon2 sources, by fixing the problems at source. Addresses Rin Okuyama's concerns on tech-userlevel/tech-crypto in Message-ID: @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.32 2021/10/31 09:16:08 nia Exp $ d18 2 @ 1.32 log @libcrypt: Compile with USE_FORT, for this is cryptographic software. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.31 2021/10/26 20:37:18 nia Exp $ a30 2 COPTS.argon2.c+= -Wno-error=cast-qual COPTS.core.c+= -Wno-error=type-limits @ 1.31 log @libcrypt: Make Werror-disables for external Argon2 library per-file. Requested by rin. @ text @d1 3 a3 1 # $NetBSD: Makefile,v 1.30 2021/10/26 07:51:23 nia Exp $ @ 1.30 log @libcrypt: fine-grained warnings for argon2, requested by rin @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.29 2021/10/13 14:28:32 nia Exp $ a26 2 COPTS.${src}+= -Wno-error=cast-qual COPTS.${src}+= -Wno-error=type-limits d29 2 @ 1.29 log @libcrypt: work around compiler bugs to get MKARGON2 working on vax @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.28 2021/10/12 17:24:36 nia Exp $ d27 2 a28 1 COPTS.${src}+= -Wno-error @ 1.28 log @Fix release builds with MKARGON2=yes This changes argon2 from a separately built library into a private dependency of libcrypt and removes the argon2(1) utility (we already have pwhash(1)). Giving libcrypt more library dependencies complicates things (e.g. libcrypt is a dependency of openssl). pthreads support gets disabled in argon2 for similar reasons. For testing argon2, we rely on the libcrypt test suite. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.27 2020/03/25 17:11:06 christos Exp $ d28 1 d30 3 @ 1.27 log @PR/55095: David A. Holland: pw_gensalt(3) undocumented @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.26 2019/10/21 02:36:48 jhigh Exp $ d17 6 d24 5 a28 2 CFLAGS+= -DHAVE_ARGON2 -I../../external/apache2/argon2/dist/phc-winner-argon2/include/ LDADD+= -largon2 @ 1.26 log @adding argon2 support to libcrypt. argon2 user authentication now available via MKARGON2=yes (3 variants supported; argon2id recommended) before using, please read argon2 paper at https://github.com/P-H-C/phc-winner-argon2 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.25 2013/08/10 18:42:29 dholland Exp $ d24 1 a24 1 MAN= crypt.3 @ 1.25 log @Silence -Wpointer-sign on crypt-sha1.c. This requires casts, which is not entirely desirable; however, this way at least no *more* pointer sign issues can creep in. Output object files are unchanged on amd64. @ text @d1 3 a3 1 # $NetBSD: Makefile,v 1.24 2012/08/10 04:30:47 joerg Exp $ d7 4 d16 6 @ 1.25.26.1 log @Merge changes from current as of 20200406 @ text @d1 1 a1 1 # $NetBSD$ d12 1 a12 1 MAN= crypt.3 pw_gensalt.3 @ 1.25.26.2 log @Mostly merge changes from HEAD upto 20200411 @ text @a2 2 .include a4 4 .if (defined(MKARGON2) && ${MKARGON2} != "no") HAVE_ARGON2=1 .endif a9 6 .if defined(HAVE_ARGON2) SRCS+= crypt-argon2.c CFLAGS+= -DHAVE_ARGON2 -I../../external/apache2/argon2/dist/phc-winner-argon2/include/ LDADD+= -largon2 .endif @ 1.24 log @crypt-sha1.c flags apply to all compilers in the tree, drop conditional. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.23 2012/03/21 05:37:42 matt Exp $ a26 2 COPTS.crypt-sha1.c+= -Wno-pointer-sign @ 1.24.2.1 log @Rebase to HEAD as of a few days ago. @ text @d1 1 a1 1 # $NetBSD$ d27 2 @ 1.23 log @These directories default to WARNS?=5 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2011/06/20 07:43:58 mrg Exp $ a27 1 .if defined(HAVE_GCC) || defined(HAVE_PCC) a28 1 .endif @ 1.22 log @remove most of the remaining HAVE_GCC tests that are always true in the modern world. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2008/08/29 00:02:22 gmcgarry Exp $ d10 1 a10 1 WARNS= 4 @ 1.22.2.1 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2011/06/20 07:43:58 mrg Exp $ d10 1 a10 1 WARNS?= 5 @ 1.22.2.2 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22.2.1 2012/04/17 00:05:27 yamt Exp $ d28 1 d30 1 @ 1.22.2.3 log @sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments") @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22.2.2 2012/10/30 18:59:07 yamt Exp $ d27 2 @ 1.21 log @Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2008/07/12 12:29:42 gmcgarry Exp $ d28 1 a28 1 .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) @ 1.21.18.1 log @Catchup with rmind-uvmplock merge. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2011/06/20 07:43:58 mrg Exp $ d28 1 a28 1 .if defined(HAVE_GCC) || defined(HAVE_PCC) @ 1.20 log @Add test for HAVE_PCC with HAVE_GCC which turn off compiler warning flags. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2006/10/27 19:39:11 drochner Exp $ d28 1 a28 1 .if ${HAVE_GCC} == 4 || defined(HAVE_PCC) @ 1.19 log @gently add some "const", and avoid some casts compiles with WARNS=4 now (on i386 and alpha) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2006/10/27 18:22:56 drochner Exp $ d28 1 a28 1 .if ${HAVE_GCC} == 4 @ 1.19.18.1 log @Sync with wrstuden-revivesa-base-2. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2006/10/27 19:39:11 drochner Exp $ d28 1 a28 1 .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) @ 1.18 log @As discussed back in June, move the implementation of hmac_sha1 here because this is not a public function and crypt-sha1.c is the only place where it is used (It must have been that way formerly, because there was a stale prototype in crypt.h all the time.) Being here, do some RCSID and prototype cleanup, and add as much "const" as needed to compile these files with WARNS=3. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2006/05/11 23:16:28 mrg Exp $ d10 1 a10 1 CPPFLAGS+= -I${.CURDIR} @ 1.17 log @sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2005/01/11 22:41:07 christos Exp $ d8 1 @ 1.16 log @Add pw_gensalt, which was taken from pwd_gensalt. This now is used in 3 places, so it might as well be part of libcrypt. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2004/07/02 00:05:23 sjg Exp $ d26 4 @ 1.15 log @Add support for SHA1 hashed passwords. The algorithm used is essentially PBKDF1 from RFC 2898 but using hmac_sha1 rather than SHA1 directly (suggested by smb@@research.att.com). * The format of the encrypted password is: * $$$$ * * where: * is "sha1" * is an unsigned int identifying how many rounds * have been applied to . The number * should vary slightly for each password to make * it harder to generate a dictionary of * pre-computed hashes. See crypt_sha1_iterations. * up to 64 bytes of random data, 8 bytes is * currently considered more than enough. * the hashed password. hmac.c implementes HMAC as defined in RFC 2104 and includes a unit test for both hmac_sha1 and hmac_sha1 using a selection of the Known Answer Tests from RFC 2202. It is worth noting that to be FIPS compliant the hmac key (password) should be 10-20 chars. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2003/04/17 00:31:04 thorpej Exp $ d7 1 a7 1 SRCS= crypt.c md5crypt.c bcrypt.c crypt-sha1.c util.c @ 1.14 log @hrink the Blowfish routines down to only what we need for __bcrypt(), and don't export any of the Blowfish functionality outside bcrypt.c. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2002/08/19 14:55:15 lukem Exp $ d7 1 a7 1 SRCS= crypt.c md5crypt.c bcrypt.c d14 10 d25 1 @ 1.13 log @Explicitly move setting of NOxxx and USE_SHLIBDIR to the top of the Makefile (before including ) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2002/05/24 04:02:48 itojun Exp $ d7 1 a7 1 SRCS= crypt.c md5crypt.c bcrypt.c blowfish.c @ 1.12 log @support bcrypt password. can be chosen by "blowfish" keyword in passwd.conf. from openbsd @ text @d1 3 a3 1 # $NetBSD: Makefile,v 1.11 2001/12/28 01:32:38 lukem Exp $ a5 1 USE_SHLIBDIR= yes @ 1.11 log @* Add user-controlled mk.conf variables - SHLIBDIR Location to install shared libraries if ${USE_SHLIBDIR} is "yes". Defaults to "/usr/lib". - USE_SHLIBDIR If "yes", install shared libraries in ${SHLIBDIR} instead of ${LIBDIR}. Defaults to "no". Sets ${_LIBSODIR} to the appropriate value. This may be set by individual Makefiles as well. - SHLINKDIR Location of shared linker. Defaults to "/usr/libexec". If != "/usr/libexec", change the dynamic-linker encoded in shared programs * Set USE_SHLIBDIR for libraries used by /bin and /sbin: libc libcrypt libcrypto libedit libipsec libkvm libm libmi387 libtermcap libutil libz * If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so* to ${_LIBSODIR}/${LIB}.so* for compatibility. * Always install /sbin/init statically (for now) The net effect of these changes depends on how the variables are set: 1.) If nothing is set or changed, there is no change from the current behaviour: - Static /bin, /sbin, and bits of /usr/* - Dynamic rest - Shared linker is /usr/libexec/ld*so 2.) If the following make variables are set: LDSTATIC= SHLINKDIR=/lib SHLIBDIR=/lib Then the behaviour becomes: - Dynamic tools - .so libraries used by /bin and /sbin are installed to /lib, with symlinks from /usr/lib/lib*so to -> /lib/lib*so where appropriate - Shared linker is /lib/ld*so 3.) As per 2.), but add the following variable: USE_SHLIBDIR=yes This forces all .so's to be instaleld in /lib (with compat symlinks), not just those tagged by their Makefiles to be. Again, compat symlinks are installed @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2000/07/06 11:12:42 ad Exp $ d6 3 a8 1 SRCS= crypt.c md5crypt.c @ 1.11.2.1 log @Pullup rev 1.12,1.14 (requested by provos in ticket #1386) Introduce bcrypt password scheme. Adds the arc4random API for creating cryptographically strong random numbers. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2001/12/28 01:32:38 lukem Exp $ d6 1 a6 3 SRCS= crypt.c md5crypt.c bcrypt.c CPPFLAGS+= -I${.CURDIR} @ 1.10 log @Add __md5crypt(), for internal use by libcrypt. This behaves for the most part like crypt() but uses a proprietry encryption scheme that utilises MD5. From FreeBSD via OpenBSD. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2000/06/16 16:29:35 thorpej Exp $ d4 1 @ 1.9 log @No longer need the song-and-dance here. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 1999/07/20 09:35:18 mrg Exp $ d5 1 a5 1 SRCS= crypt.c @ 1.9.2.1 log @Pull up revision 1.10 (requested by jonathan): Add support for MD5-hashed passwords. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2000/06/16 16:29:35 thorpej Exp $ d5 1 a5 1 SRCS= crypt.c md5crypt.c @ 1.8 log @optionally include CRYPTOPATH Makefile.frag files. @ text @d1 1 a1 9 # $NetBSD: Makefile,v 1.7 1999/07/12 22:05:42 thorpej Exp $ # # This directory contains an implementation of crypt(3) and associated # routines. They have been modified so that decryption is no longer possible, # and thus are exportable. They were taken from the 4.4BSD-Lite foreign # distribution. SRCTOP= ../.. .include a8 4 .if defined(CRYPTOPATH) .sinclude "${CRYPTOPATH}/lib/libcrypt/Makefile.frag" .endif @ 1.8.6.1 log @Sync w/ netbsd-1-5-base. @ text @d1 9 a9 1 # $NetBSD: Makefile,v 1.9 2000/06/16 16:29:35 thorpej Exp $ d17 4 @ 1.7 log @Use bsd.crypto.mk. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 1995/02/19 12:18:56 cgd Exp $ d19 1 a19 1 .include "${CRYPTOPATH}/lib/libcrypt/Makefile.frag" @ 1.6 log @use the (broken) crypt.c from the 4.4BSD-Lite Foreign distribution, that can encrypt passwords but _cannot_ decrypt anything. "real" (i.e. two-way, unbroken) crypt() now lives in /usr/src/domestic. @ text @d1 1 a1 1 # $NetBSD$ d8 3 d17 4 @ 1.5 log @specify man pages the new way. @ text @d1 2 d4 3 a6 5 # routines. the file crypt.c can't be shipped out of the US. it was put # into this directory to make distribution of exportable and non-exportable # systems easier. # # $Id: Makefile,v 1.4 1993/10/07 01:36:21 cgd Exp $ a9 1 .if exists(crypt.c) && !defined(EXPORTABLE_SYSTEM) a10 3 .else SRCS= crypt_dummy.c .endif @ 1.4 log @always create libcrypt, and link with it where necessary. this will make life with shared libraries happier. also, get dummy crypt out of libc. @ text @d6 1 a6 1 # $Id: Makefile,v 1.3 1993/08/02 17:50:08 mycroft Exp $ d16 1 a16 1 MAN3= crypt.0 @ 1.3 log @Add RCS identifiers, remove some completely useless RCS logs and patchkit headers, and a few other insignificant changes. @ text @d6 1 a6 1 # $Id: $ a7 1 .if exists(crypt.c) d9 2 a11 2 .include d13 1 a13 1 all install clean cleandir depend obj: d15 5 @ 1.2 log @make makefile do *nothing* for any of the standard cases if crypt.c doesn't exist. @ text @a0 2 # $Header: /b/source/CVS/src/lib/libcrypt/Makefile,v 1.1 1993/04/26 12:45:00 cgd Exp $ # d5 2 @ 1.1 log @made libcrypt, so exportable vs. non-exportable packages can be handled easliy. @ text @d1 1 a1 1 # $Header$ d4 3 a6 3 # routines. it can't be shipped out of the US. it was put into this # directory, to make distribution of exportable and non-exportable systems # easier. d8 1 d13 3 @