head 1.241; access; symbols netbsd-10-0-RELEASE:1.232.2.1 netbsd-10-0-RC6:1.232.2.1 netbsd-10-0-RC5:1.232.2.1 netbsd-10-0-RC4:1.232.2.1 netbsd-10-0-RC3:1.232.2.1 netbsd-10-0-RC2:1.232.2.1 netbsd-10-0-RC1:1.232.2.1 netbsd-10:1.232.0.2 netbsd-10-base:1.232 netbsd-9-3-RELEASE:1.190.2.1 cjep_sun2x-base1:1.218 cjep_sun2x:1.218.0.2 cjep_sun2x-base:1.218 cjep_staticlib_x-base1:1.217 netbsd-9-2-RELEASE:1.190.2.1 cjep_staticlib_x:1.217.0.2 cjep_staticlib_x-base:1.217 netbsd-9-1-RELEASE:1.190.2.1 phil-wifi-20200421:1.201 phil-wifi-20200411:1.200 is-mlppp:1.199.0.2 is-mlppp-base:1.199 phil-wifi-20200406:1.200 netbsd-8-2-RELEASE:1.187 netbsd-9-0-RELEASE:1.190.2.1 netbsd-9-0-RC2:1.190.2.1 netbsd-9-0-RC1:1.190.2.1 phil-wifi-20191119:1.196 netbsd-9:1.190.0.2 netbsd-9-base:1.190 phil-wifi-20190609:1.190 netbsd-8-1-RELEASE:1.187 netbsd-8-1-RC1:1.187 pgoyette-compat-merge-20190127:1.187 pgoyette-compat-20190127:1.187 pgoyette-compat-20190118:1.187 pgoyette-compat-1226:1.187 pgoyette-compat-1126:1.187 pgoyette-compat-1020:1.187 pgoyette-compat-0930:1.187 pgoyette-compat-0906:1.187 netbsd-7-2-RELEASE:1.152 pgoyette-compat-0728:1.187 netbsd-8-0-RELEASE:1.187 phil-wifi:1.187.0.10 phil-wifi-base:1.187 pgoyette-compat-0625:1.187 netbsd-8-0-RC2:1.187 pgoyette-compat-0521:1.187 pgoyette-compat-0502:1.187 pgoyette-compat-0422:1.187 netbsd-8-0-RC1:1.187 pgoyette-compat-0415:1.187 pgoyette-compat-0407:1.187 pgoyette-compat-0330:1.187 pgoyette-compat-0322:1.187 pgoyette-compat-0315:1.187 netbsd-7-1-2-RELEASE:1.152 pgoyette-compat:1.187.0.8 pgoyette-compat-base:1.187 netbsd-7-1-1-RELEASE:1.152 matt-nb8-mediatek:1.187.0.6 matt-nb8-mediatek-base:1.187 netbsd-8:1.187.0.4 netbsd-8-base:1.187 prg-localcount2-base3:1.187 prg-localcount2-base2:1.187 prg-localcount2-base1:1.187 prg-localcount2:1.187.0.2 prg-localcount2-base:1.187 pgoyette-localcount-20170426:1.187 bouyer-socketcan-base1:1.187 pgoyette-localcount-20170320:1.186 netbsd-7-1:1.152.0.8 netbsd-7-1-RELEASE:1.152 netbsd-7-1-RC2:1.152 netbsd-7-nhusb-base-20170116:1.152 bouyer-socketcan:1.175.0.2 bouyer-socketcan-base:1.175 pgoyette-localcount-20170107:1.175 netbsd-7-1-RC1:1.152 pgoyette-localcount-20161104:1.175 netbsd-7-0-2-RELEASE:1.152 localcount-20160914:1.174 netbsd-7-nhusb:1.152.0.6 netbsd-7-nhusb-base:1.152 pgoyette-localcount-20160806:1.174 pgoyette-localcount-20160726:1.174 pgoyette-localcount:1.174.0.2 pgoyette-localcount-base:1.174 netbsd-7-0-1-RELEASE:1.152 netbsd-7-0:1.152.0.4 netbsd-7-0-RELEASE:1.152 netbsd-7-0-RC3:1.152 netbsd-7-0-RC2:1.152 netbsd-7-0-RC1:1.152 netbsd-5-2-3-RELEASE:1.110.2.3 netbsd-5-1-5-RELEASE:1.110.2.2.6.1 netbsd-6-0-6-RELEASE:1.122.2.1.4.1 netbsd-6-1-5-RELEASE:1.122.2.2 netbsd-7:1.152.0.2 netbsd-7-base:1.152 yamt-pagecache-base9:1.148 yamt-pagecache-tag8:1.120.2.4 netbsd-6-1-4-RELEASE:1.122.2.2 netbsd-6-0-5-RELEASE:1.122.2.1.4.1 tls-earlyentropy:1.147.0.2 tls-earlyentropy-base:1.152 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.144 riastradh-drm2-base3:1.143 netbsd-6-1-3-RELEASE:1.122.2.2 netbsd-6-0-4-RELEASE:1.122.2.1.4.1 netbsd-5-2-2-RELEASE:1.110.2.3 netbsd-5-1-4-RELEASE:1.110.2.2.6.1 netbsd-6-1-2-RELEASE:1.122.2.2 netbsd-6-0-3-RELEASE:1.122.2.1.4.1 netbsd-5-2-1-RELEASE:1.110.2.3 netbsd-5-1-3-RELEASE:1.110.2.2.6.1 netbsd-6-1-1-RELEASE:1.122.2.2 riastradh-drm2-base2:1.133 riastradh-drm2-base1:1.133 riastradh-drm2:1.130.0.2 riastradh-drm2-base:1.130 netbsd-6-1:1.122.2.2.0.2 netbsd-6-0-2-RELEASE:1.122.2.1.4.1 netbsd-6-1-RELEASE:1.122.2.2 khorben-n900:1.127.0.6 netbsd-6-1-RC4:1.122.2.2 netbsd-6-1-RC3:1.122.2.2 agc-symver:1.127.0.4 agc-symver-base:1.127 netbsd-6-1-RC2:1.122.2.2 netbsd-6-1-RC1:1.122.2.2 yamt-pagecache-base8:1.127 netbsd-5-2:1.110.2.3.0.2 netbsd-6-0-1-RELEASE:1.122.2.1.4.1 yamt-pagecache-base7:1.124 netbsd-5-2-RELEASE:1.110.2.3 netbsd-5-2-RC1:1.110.2.3 matt-nb6-plus-nbase:1.122.2.1 yamt-pagecache-base6:1.123 netbsd-6-0:1.122.2.1.0.4 netbsd-6-0-RELEASE:1.122.2.1 netbsd-6-0-RC2:1.122.2.1 tls-maxphys:1.123.0.2 tls-maxphys-base:1.152 matt-nb6-plus:1.122.2.1.0.2 matt-nb6-plus-base:1.122.2.1 netbsd-6-0-RC1:1.122.2.1 yamt-pagecache-base5:1.123 yamt-pagecache-base4:1.123 netbsd-6:1.122.0.2 netbsd-6-base:1.122 netbsd-5-1-2-RELEASE:1.110.2.2 netbsd-5-1-1-RELEASE:1.110.2.2 yamt-pagecache-base3:1.121 yamt-pagecache-base2:1.120 yamt-pagecache:1.120.0.2 yamt-pagecache-base:1.120 cherry-xenmp:1.115.0.2 cherry-xenmp-base:1.115 bouyer-quota2-nbase:1.114 bouyer-quota2:1.114.0.2 bouyer-quota2-base:1.114 matt-mips64-premerge-20101231:1.114 matt-nb5-mips64-premerge-20101231:1.110.2.2 matt-nb5-pq3:1.110.2.2.0.8 matt-nb5-pq3-base:1.110.2.2 netbsd-5-1:1.110.2.2.0.6 netbsd-5-1-RELEASE:1.110.2.2 netbsd-5-1-RC4:1.110.2.2 matt-nb5-mips64-k15:1.110.2.2 netbsd-5-1-RC3:1.110.2.2 netbsd-5-1-RC2:1.110.2.2 netbsd-5-1-RC1:1.110.2.2 netbsd-5-0-2-RELEASE:1.110.2.2 matt-nb5-mips64-premerge-20091211:1.110.2.2 matt-premerge-20091211:1.113 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.110.2.2 matt-nb4-mips64-k7-u2a-k9b:1.110.2.2 matt-nb5-mips64-u1-k1-k5:1.110.2.2 matt-nb5-mips64:1.110.2.2.0.4 netbsd-5-0-1-RELEASE:1.110.2.2 jym-xensuspend-nbase:1.113 netbsd-5-0:1.110.2.2.0.2 netbsd-5-0-RELEASE:1.110.2.2 netbsd-5-0-RC4:1.110.2.2 netbsd-5-0-RC3:1.110.2.2 netbsd-5-0-RC2:1.110.2.2 jym-xensuspend:1.113.0.2 jym-xensuspend-base:1.113 netbsd-5-0-RC1:1.110.2.2 netbsd-5:1.110.0.2 netbsd-5-base:1.110 matt-mips64-base2:1.110 matt-mips64:1.93.0.8 netbsd-4-0-1-RELEASE:1.91.2.2 wrstuden-revivesa-base-3:1.109 wrstuden-revivesa-base-2:1.109 wrstuden-fixsa-newbase:1.91.2.2 wrstuden-revivesa-base-1:1.103 yamt-pf42-base4:1.103 yamt-pf42-base3:1.103 hpcarm-cleanup-nbase:1.103 yamt-pf42-baseX:1.98 yamt-pf42-base2:1.103 wrstuden-revivesa:1.102.0.2 wrstuden-revivesa-base:1.103 mjf-devfs2:1.100.0.2 mjf-devfs2-base:1.110 yamt-pf42:1.98.0.2 yamt-pf42-base:1.98 keiichi-mipv6:1.96.0.2 keiichi-mipv6-base:1.96 matt-armv6-nbase:1.96 matt-armv6-prevmlocking:1.93 wrstuden-fixsa-base-1:1.91.2.2 netbsd-4-0:1.91.2.2.0.2 netbsd-4-0-RELEASE:1.91.2.2 cube-autoconf:1.93.0.6 cube-autoconf-base:1.93 netbsd-4-0-RC5:1.91.2.2 netbsd-4-0-RC4:1.91.2.2 netbsd-4-0-RC3:1.91.2.2 netbsd-4-0-RC2:1.91.2.2 netbsd-4-0-RC1:1.91.2.2 matt-armv6:1.93.0.4 matt-armv6-base:1.94 matt-mips64-base:1.93 hpcarm-cleanup:1.93.0.2 hpcarm-cleanup-base:1.96 netbsd-3-1-1-RELEASE:1.42.2.1 netbsd-3-0-3-RELEASE:1.42.4.1 wrstuden-fixsa:1.91.0.4 wrstuden-fixsa-base:1.91.2.2 abandoned-netbsd-4-base:1.84 abandoned-netbsd-4:1.84.0.2 netbsd-3-1:1.42.2.1.0.2 netbsd-3-1-RELEASE:1.42.2.1 netbsd-3-0-2-RELEASE:1.42.4.1 netbsd-3-1-RC4:1.42.2.1 netbsd-3-1-RC3:1.42.2.1 netbsd-3-1-RC2:1.42.2.1 netbsd-3-1-RC1:1.42.2.1 netbsd-4:1.91.0.2 netbsd-4-base:1.91 netbsd-3-0-1-RELEASE:1.42.4.1 netbsd-3-0:1.42.0.4 netbsd-3-0-RELEASE:1.42 netbsd-3-0-RC6:1.42 netbsd-3-0-RC5:1.42 netbsd-3-0-RC4:1.42 netbsd-3-0-RC3:1.42 netbsd-3-0-RC2:1.42 netbsd-3-0-RC1:1.42 netbsd-2-0-3-RELEASE:1.32.2.4 netbsd-2-1:1.32.2.4.0.4 netbsd-2-1-RELEASE:1.32.2.4 netbsd-2-1-RC6:1.32.2.4 netbsd-2-1-RC5:1.32.2.4 netbsd-2-1-RC4:1.32.2.4 netbsd-2-1-RC3:1.32.2.4 netbsd-2-1-RC2:1.32.2.4 netbsd-2-1-RC1:1.32.2.4 netbsd-2-0-2-RELEASE:1.32.2.4 netbsd-3:1.42.0.2 netbsd-3-base:1.42 netbsd-2-0-1-RELEASE:1.32.2.4 netbsd-2:1.32.2.4.0.2 netbsd-2-base:1.32.2.4 netbsd-2-0-RELEASE:1.32.2.4 netbsd-2-0-RC5:1.32.2.4 netbsd-2-0-RC4:1.32.2.4 netbsd-2-0-RC3:1.32.2.4 netbsd-2-0-RC2:1.32.2.4 netbsd-2-0-RC1:1.32.2.4 netbsd-2-0:1.32.0.2 netbsd-2-0-base:1.32 fvdl_fs64_base:1.1; locks; strict; comment @# @; 1.241 date 2024.01.12.08.44.42; author martin; state Exp; branches; next 1.240; commitid aBlKMD6ZW3BUz8UE; 1.240 date 2023.09.04.21.01.15; author mrg; state Exp; branches; next 1.239; commitid fxouIehm8g8QPuDE; 1.239 date 2023.07.18.03.01.35; author rin; state Exp; branches; next 1.238; commitid DASymonhr2l2pexE; 1.238 date 2023.07.09.00.01.55; author rin; state Exp; branches; next 1.237; commitid D72eN5OnUE7jH3wE; 1.237 date 2023.07.07.08.39.23; author rin; state Exp; branches; next 1.236; commitid hgsYIuhY9H4HCQvE; 1.236 date 2023.05.07.12.43.32; author martin; state Exp; branches; next 1.235; commitid ZY7nKRwSkr24W1oE; 1.235 date 2023.01.22.20.41.25; author christos; state Exp; branches; next 1.234; commitid EnjHbgKrrWQWWzaE; 1.234 date 2023.01.06.15.48.29; author christos; state Exp; branches; next 1.233; commitid fsLqK3h4Bf1GQu8E; 1.233 date 2022.12.30.02.05.38; author christos; state Exp; branches; next 1.232; commitid RoFXINSxnqjuww7E; 1.232 date 2022.12.04.22.35.15; author jakllsch; state Exp; branches 1.232.2.1; next 1.231; commitid lIhDxdYRCDtJ9i4E; 1.231 date 2022.09.12.08.11.51; author rin; state Exp; branches; next 1.230; commitid 5JaPUiGeCVCk3yTD; 1.230 date 2022.08.10.13.38.26; author rin; state Exp; branches; next 1.229; commitid 9H6yt5wztGL3VkPD; 1.229 date 2022.05.31.19.14.10; author christos; state Exp; branches; next 1.228; commitid G63EiiDu6kvQ3fGD; 1.228 date 2022.04.10.19.54.57; author rillig; state Exp; branches; next 1.227; commitid D36a1a0zXf0oVGzD; 1.227 date 2022.04.10.13.26.47; author martin; state Exp; branches; next 1.226; commitid 0w93jtcqkXeeMEzD; 1.226 date 2021.11.23.23.29.55; author thorpej; state Exp; branches; next 1.225; commitid kP7KnYqvtfTRxYhD; 1.225 date 2021.10.13.20.11.54; author nia; state Exp; branches; next 1.224; commitid w0otYRwFV0k2MGcD; 1.224 date 2021.07.16.10.02.50; author rin; state Exp; branches; next 1.223; commitid W0nx3KEGM7Opgc1D; 1.223 date 2021.07.15.08.02.47; author rin; state Exp; branches; next 1.222; commitid vZAaTLCqepbbD31D; 1.222 date 2021.07.06.12.42.12; author thorpej; state Exp; branches; next 1.221; commitid VGGz2K63abdZsVZC; 1.221 date 2021.07.05.11.16.56; author hgutch; state Exp; branches; next 1.220; commitid Fwse1TvajHIQ0NZC; 1.220 date 2021.06.23.07.11.41; author rillig; state Exp; branches; next 1.219; commitid JstbnnehoNKp3eYC; 1.219 date 2021.06.22.13.02.52; author martin; state Exp; branches; next 1.218; commitid 8DEtsUT7Gjc328YC; 1.218 date 2021.05.31.22.33.19; author rin; state Exp; branches; next 1.217; commitid oZe7uE4ScSXtTlVC; 1.217 date 2021.05.08.12.27.21; author christos; state Exp; branches; next 1.216; commitid p0pAHz2aV8PthlSC; 1.216 date 2020.12.16.01.35.39; author rin; state Exp; branches; next 1.215; commitid AZh059uABF9SgUzC; 1.215 date 2020.12.02.14.20.19; author wiz; state Exp; branches; next 1.214; commitid Uu2OA7DInMcaXayC; 1.214 date 2020.10.08.08.31.37; author rin; state Exp; branches; next 1.213; commitid wjyBQVW1KFaYM4rC; 1.213 date 2020.10.07.07.35.28; author rin; state Exp; branches; next 1.212; commitid NyyR41KUN9RJvWqC; 1.212 date 2020.10.05.13.32.31; author rin; state Exp; branches; next 1.211; commitid tLv1ebggKomhyIqC; 1.211 date 2020.10.05.13.20.30; author rin; state Exp; branches; next 1.210; commitid CW8AqvvNuh80uIqC; 1.210 date 2020.10.05.10.44.09; author rin; state Exp; branches; next 1.209; commitid ts5JSiFKXmbzCHqC; 1.209 date 2020.09.18.14.09.47; author christos; state Exp; branches; next 1.208; commitid jGz6a3hha7NVixoC; 1.208 date 2020.08.10.06.46.27; author rin; state Exp; branches; next 1.207; commitid 7EoOJZaivgHU5ujC; 1.207 date 2020.05.10.06.38.24; author maxv; state Exp; branches; next 1.206; commitid JUuA14Fq7jYV0F7C; 1.206 date 2020.05.06.14.33.52; author snj; state Exp; branches; next 1.205; commitid XPHQiLTdwGXWLb7C; 1.205 date 2020.04.30.12.44.41; author rin; state Exp; branches; next 1.204; commitid 4MeChjEIry2mlp6C; 1.204 date 2020.04.30.12.35.01; author rin; state Exp; branches; next 1.203; commitid d1ZO4wmqNoGtjp6C; 1.203 date 2020.04.30.12.32.16; author rin; state Exp; branches; next 1.202; commitid R6q9bONdu90xip6C; 1.202 date 2020.04.29.11.08.40; author rin; state Exp; branches; next 1.201; commitid 6HnULOIxNPa6Rg6C; 1.201 date 2020.04.12.17.49.00; author leot; state Exp; branches; next 1.200; commitid GGjvfzJOEViDC74C; 1.200 date 2020.04.04.16.25.17; author jdolecek; state Exp; branches; next 1.199; commitid 8sg5rsLSvfgjq53C; 1.199 date 2020.01.30.00.43.58; author christos; state Exp; branches; next 1.198; commitid 4uUwMu8iXFATiEUB; 1.198 date 2020.01.29.23.44.00; author christos; state Exp; branches; next 1.197; commitid f2IvPFmUKeJkYDUB; 1.197 date 2020.01.29.22.43.53; author christos; state Exp; branches; next 1.196; commitid Npxmcl7Hd1kJDDUB; 1.196 date 2019.11.03.07.10.42; author rin; state Exp; branches; next 1.195; commitid mEbI5XW0wxcLgnJB; 1.195 date 2019.11.01.20.55.55; author rin; state Exp; branches; next 1.194; commitid CAVGSSjAlSTiTbJB; 1.194 date 2019.10.30.00.26.54; author christos; state Exp; branches; next 1.193; commitid DArMCbQAudNpaPIB; 1.193 date 2019.10.29.21.32.35; author christos; state Exp; branches; next 1.192; commitid 1zfQKZC8gnbCcOIB; 1.192 date 2019.10.29.21.16.25; author christos; state Exp; branches; next 1.191; commitid RLp6hIyEyhJ37OIB; 1.191 date 2019.10.28.18.41.23; author christos; state Exp; branches; next 1.190; commitid PGzeBOLzDVeShFIB; 1.190 date 2019.05.14.02.53.16; author maya; state Exp; branches 1.190.2.1; next 1.189; commitid Z65tQNCBjNPmp7nB; 1.189 date 2019.04.03.21.40.24; author christos; state Exp; branches; next 1.188; commitid 19LovXyMHyqNXWhB; 1.188 date 2019.04.03.20.34.18; author scole; state Exp; branches; next 1.187; commitid ozK5R95o9LCaBWhB; 1.187 date 2017.04.09.19.02.23; author scole; state Exp; branches 1.187.10.1; next 1.186; commitid Di69by1aBkJumTMz; 1.186 date 2017.03.11.09.12.13; author maya; state Exp; branches; next 1.185; commitid KQJRA4iFpVQv17Jz; 1.185 date 2017.02.22.12.17.16; author maya; state Exp; branches; next 1.184; commitid 6acIzawBkIKCAWGz; 1.184 date 2017.02.16.01.05.01; author rin; state Exp; branches; next 1.183; commitid mhm7DIbAgEtg47Gz; 1.183 date 2017.02.16.01.02.28; author rin; state Exp; branches; next 1.182; commitid VLuAPiKi4eRp37Gz; 1.182 date 2017.02.14.09.59.16; author rin; state Exp; branches; next 1.181; commitid gSbCuszDEWar5UFz; 1.181 date 2017.02.14.09.07.35; author rin; state Exp; branches; next 1.180; commitid sE7QPYDPFkIMNTFz; 1.180 date 2017.02.14.09.05.17; author rin; state Exp; branches; next 1.179; commitid KowmnrkmtvxSMTFz; 1.179 date 2017.02.14.09.00.03; author rin; state Exp; branches; next 1.178; commitid UVKhBhc76VPjLTFz; 1.178 date 2017.02.13.22.31.09; author rin; state Exp; branches; next 1.177; commitid eKop8BTLgOEGhQFz; 1.177 date 2017.02.11.04.59.01; author christos; state Exp; branches; next 1.176; commitid i2XUq9v9b9iJwuFz; 1.176 date 2017.02.08.23.13.59; author rin; state Exp; branches; next 1.175; commitid UWqG7EsAuvMSFcFz; 1.175 date 2016.10.20.07.33.28; author he; state Exp; branches 1.175.2.1; next 1.174; commitid gmZtBMC0SCEO2Rqz; 1.174 date 2016.06.15.14.11.15; author riastradh; state Exp; branches 1.174.2.1; next 1.173; commitid 0qGZKEOkvw56kzaz; 1.173 date 2016.06.15.13.57.26; author riastradh; state Exp; branches; next 1.172; commitid jDca7uCrIOVAfzaz; 1.172 date 2016.06.15.13.47.26; author riastradh; state Exp; branches; next 1.171; commitid zFyHXtBeUJChczaz; 1.171 date 2016.06.15.13.29.30; author riastradh; state Exp; branches; next 1.170; commitid 3e4bIU2mJCI36zaz; 1.170 date 2016.06.15.05.01.58; author mrg; state Exp; branches; next 1.169; commitid H12GfVcoOZeFhwaz; 1.169 date 2016.06.15.02.12.14; author mrg; state Exp; branches; next 1.168; commitid MytkTsr7FJ81lvaz; 1.168 date 2016.06.04.11.25.43; author joerg; state Exp; branches; next 1.167; commitid EqopXBKALpQBL89z; 1.167 date 2016.05.10.19.32.47; author mrg; state Exp; branches; next 1.166; commitid d15YhL9nbZRogY5z; 1.166 date 2016.05.04.22.42.40; author christos; state Exp; branches; next 1.165; commitid 0Xiu6wWyl0fwvd5z; 1.165 date 2016.04.28.21.18.23; author mrg; state Exp; branches; next 1.164; commitid fAWMM50QkSVEer4z; 1.164 date 2016.01.12.23.03.33; author christos; state Exp; branches; next 1.163; commitid yL7ljhjjL7bYfHQy; 1.163 date 2016.01.11.22.50.35; author christos; state Exp; branches; next 1.162; commitid lJ0d0HJ9t4OvdzQy; 1.162 date 2015.08.27.12.32.05; author pooka; state Exp; branches; next 1.161; commitid jJssGc8DMealcUyy; 1.161 date 2015.07.23.08.03.25; author mrg; state Exp; branches; next 1.160; commitid nfGa2DVpEPUUPnuy; 1.160 date 2015.06.26.10.25.41; author pooka; state Exp; branches; next 1.159; commitid qm0pEWE7nc88uVqy; 1.159 date 2015.05.08.09.44.45; author martin; state Exp; branches; next 1.158; commitid 78aFTZcT6y19QCky; 1.158 date 2015.05.08.07.44.59; author martin; state Exp; branches; next 1.157; commitid 4rd5Z4ucvcn3bCky; 1.157 date 2015.04.17.12.40.17; author martin; state Exp; branches; next 1.156; commitid 7a8bG7uDb17duWhy; 1.156 date 2015.03.30.05.30.08; author matt; state Exp; branches; next 1.155; commitid vOPc3yfsjkloGAfy; 1.155 date 2015.03.05.10.21.02; author skrll; state Exp; branches; next 1.154; commitid hdTNINQJ8lc56pcy; 1.154 date 2014.12.22.21.20.11; author dennis; state Exp; branches; next 1.153; commitid IU9GzOWoXIPc553y; 1.153 date 2014.12.02.08.31.18; author dennis; state Exp; branches; next 1.152; commitid MbNlJKco2tM9tr0y; 1.152 date 2014.06.13.01.17.46; author mrg; state Exp; branches; next 1.151; commitid B85aQFinfdyyBiEx; 1.151 date 2014.05.28.21.51.18; author abs; state Exp; branches; next 1.150; commitid lYOral0w3le0XlCx; 1.150 date 2014.05.24.07.42.45; author martin; state Exp; branches; next 1.149; commitid k90I5nHS17qPnLBx; 1.149 date 2014.05.13.18.55.07; author macallan; state Exp; branches; next 1.148; commitid bYfsyOfj2YTlspAx; 1.148 date 2014.04.07.21.20.17; author christos; state Exp; branches; next 1.147; commitid 9VXeKWxMbJhWpNvx; 1.147 date 2014.04.05.17.06.44; author tron; state Exp; branches 1.147.2.1; next 1.146; commitid w2OZb6X5BPkX4wvx; 1.146 date 2014.04.04.07.21.40; author wiz; state Exp; branches; next 1.145; commitid mtfeRMqMkHEhSkvx; 1.145 date 2014.04.04.01.23.34; author christos; state Exp; branches; next 1.144; commitid gAbQ5cZo55qoTivx; 1.144 date 2014.03.24.23.03.21; author tron; state Exp; branches; next 1.143; commitid khHPFNNwX8Tcr0ux; 1.143 date 2013.11.16.17.14.06; author skrll; state Exp; branches; next 1.142; commitid 2w7xESN3YC0uCwdx; 1.142 date 2013.11.13.11.06.53; author skrll; state Exp; branches; next 1.141; commitid EEbKPrbQpcOqG6dx; 1.141 date 2013.11.09.21.38.57; author christos; state Exp; branches; next 1.140; commitid 98PVWnGOFZ5hjEcx; 1.140 date 2013.11.09.16.05.39; author christos; state Exp; branches; next 1.139; commitid GvmwwqF2YrfYsCcx; 1.139 date 2013.11.09.00.35.00; author christos; state Exp; branches; next 1.138; commitid PjE1sQ3sQcOIjxcx; 1.138 date 2013.11.09.00.29.47; author christos; state Exp; branches; next 1.137; commitid NvY0n40o9jBShxcx; 1.137 date 2013.11.07.21.33.59; author christos; state Exp; branches; next 1.136; commitid DDpAO1b3Ncjzlocx; 1.136 date 2013.11.07.01.47.59; author joerg; state Exp; branches; next 1.135; commitid CRSjXIc0HDQIMhcx; 1.135 date 2013.11.07.01.43.08; author christos; state Exp; branches; next 1.134; commitid s77r2o6nf913Lhcx; 1.134 date 2013.07.24.11.45.48; author skrll; state Exp; branches; next 1.133; commitid EnrsTsf3FE5TuIYw; 1.133 date 2013.07.23.14.52.07; author skrll; state Exp; branches; next 1.132; commitid KITXWfsy3xeyyBYw; 1.132 date 2013.07.23.14.47.54; author skrll; state Exp; branches; next 1.131; commitid wrzBZpjVaruvxBYw; 1.131 date 2013.07.23.07.04.18; author skrll; state Exp; branches; next 1.130; commitid 8G3wgD6aJDwlYyYw; 1.130 date 2013.06.05.13.54.26; author joerg; state Exp; branches 1.130.2.1; next 1.129; commitid uY6OHzpcSGxuMqSw; 1.129 date 2013.06.03.23.02.43; author christos; state Exp; branches; next 1.128; commitid pdpugXDRNpoUSdSw; 1.128 date 2013.05.24.17.54.36; author christos; state Exp; branches; next 1.127; commitid 8wRF0eAFqAk9vUQw; 1.127 date 2012.12.27.14.16.57; author martin; state Exp; branches; next 1.126; 1.126 date 2012.12.27.08.07.36; author martin; state Exp; branches; next 1.125; 1.125 date 2012.12.27.07.09.45; author martin; state Exp; branches; next 1.124; 1.124 date 2012.11.14.04.13.44; author msaitoh; state Exp; branches; next 1.123; 1.123 date 2012.03.03.03.21.16; author nakayama; state Exp; branches 1.123.2.1; next 1.122; 1.122 date 2011.12.24.05.05.55; author tsutsui; state Exp; branches 1.122.2.1; next 1.121; 1.121 date 2011.11.08.23.11.42; author christos; state Exp; branches; next 1.120; 1.120 date 2011.10.29.20.59.30; author christos; state Exp; branches 1.120.2.1; next 1.119; 1.119 date 2011.10.29.15.18.21; author christos; state Exp; branches; next 1.118; 1.118 date 2011.10.27.18.46.43; author christos; state Exp; branches; next 1.117; 1.117 date 2011.10.27.17.21.27; author christos; state Exp; branches; next 1.116; 1.116 date 2011.08.15.02.29.38; author mrg; state Exp; branches; next 1.115; 1.115 date 2011.03.12.08.03.06; author matt; state Exp; branches; next 1.114; 1.114 date 2010.04.23.02.12.58; author christos; state Exp; branches; next 1.113; 1.113 date 2009.01.11.21.02.36; author sketch; state Exp; branches; next 1.112; 1.112 date 2009.01.11.18.25.17; author christos; state Exp; branches; next 1.111; 1.111 date 2008.11.29.15.31.18; author tsutsui; state Exp; branches; next 1.110; 1.110 date 2008.09.27.03.57.37; author macallan; state Exp; branches 1.110.2.1; next 1.109; 1.109 date 2008.08.03.07.16.58; author veego; state Exp; branches; next 1.108; 1.108 date 2008.08.02.04.37.54; author mrg; state Exp; branches; next 1.107; 1.107 date 2008.08.02.04.37.25; author mrg; state Exp; branches; next 1.106; 1.106 date 2008.07.29.14.24.06; author lukem; state Exp; branches; next 1.105; 1.105 date 2008.07.21.10.00.51; author agc; state Exp; branches; next 1.104; 1.104 date 2008.07.12.11.50.07; author gmcgarry; state Exp; branches; next 1.103; 1.103 date 2008.05.16.13.16.25; author tsutsui; state Exp; branches; next 1.102; 1.102 date 2008.05.07.12.50.35; author tsutsui; state Exp; branches 1.102.2.1; next 1.101; 1.101 date 2008.05.04.15.42.12; author tsutsui; state Exp; branches; next 1.100; 1.100 date 2008.04.27.03.33.06; author tsutsui; state Exp; branches 1.100.2.1; next 1.99; 1.99 date 2008.04.27.03.10.36; author tsutsui; state Exp; branches; next 1.98; 1.98 date 2008.03.28.21.18.24; author christos; state Exp; branches 1.98.2.1; next 1.97; 1.97 date 2008.03.28.18.14.23; author he; state Exp; branches; next 1.96; 1.96 date 2008.02.09.02.37.21; author mrg; state Exp; branches; next 1.95; 1.95 date 2008.02.05.02.41.15; author mrg; state Exp; branches; next 1.94; 1.94 date 2007.12.31.14.10.41; author ad; state Exp; branches; next 1.93; 1.93 date 2007.04.08.09.57.17; author scw; state Exp; branches 1.93.4.1; next 1.92; 1.92 date 2007.01.08.17.41.21; author chs; state Exp; branches; next 1.91; 1.91 date 2006.11.23.13.24.28; author martin; state Exp; branches 1.91.2.1 1.91.4.1; next 1.90; 1.90 date 2006.11.01.17.10.36; author skrll; state Exp; branches; next 1.89; 1.89 date 2006.10.30.16.46.42; author skrll; state Exp; branches; next 1.88; 1.88 date 2006.10.29.23.02.25; author uwe; state Exp; branches; next 1.87; 1.87 date 2006.10.27.22.31.21; author uwe; state Exp; branches; next 1.86; 1.86 date 2006.09.28.21.01.21; author skrll; state Exp; branches; next 1.85; 1.85 date 2006.09.02.21.32.13; author martin; state Exp; branches; next 1.84; 1.84 date 2006.08.01.20.21.55; author drochner; state Exp; branches; next 1.83; 1.83 date 2006.07.31.18.39.32; author christos; state Exp; branches; next 1.82; 1.82 date 2006.07.31.17.10.57; author christos; state Exp; branches; next 1.81; 1.81 date 2006.07.01.06.00.41; author mrg; state Exp; branches; next 1.80; 1.80 date 2006.06.25.14.24.45; author tsutsui; state Exp; branches; next 1.79; 1.79 date 2006.06.24.05.21.11; author mrg; state Exp; branches; next 1.78; 1.78 date 2006.06.15.10.55.02; author skrll; state Exp; branches; next 1.77; 1.77 date 2006.06.02.19.45.25; author mrg; state Exp; branches; next 1.76; 1.76 date 2006.05.25.09.05.40; author mrg; state Exp; branches; next 1.75; 1.75 date 2006.05.24.23.18.56; author christos; state Exp; branches; next 1.74; 1.74 date 2006.05.21.04.19.12; author mrg; state Exp; branches; next 1.73; 1.73 date 2006.05.21.01.24.41; author dan; state Exp; branches; next 1.72; 1.72 date 2006.05.21.00.44.53; author mrg; state Exp; branches; next 1.71; 1.71 date 2006.05.20.23.41.16; author dan; state Exp; branches; next 1.70; 1.70 date 2006.05.20.20.34.29; author christos; state Exp; branches; next 1.69; 1.69 date 2006.05.20.11.17.55; author mrg; state Exp; branches; next 1.68; 1.68 date 2006.05.18.18.48.42; author mrg; state Exp; branches; next 1.67; 1.67 date 2006.05.17.17.09.43; author christos; state Exp; branches; next 1.66; 1.66 date 2006.05.17.16.42.59; author christos; state Exp; branches; next 1.65; 1.65 date 2006.05.15.04.55.13; author christos; state Exp; branches; next 1.64; 1.64 date 2006.05.12.18.06.29; author mrg; state Exp; branches; next 1.63; 1.63 date 2006.05.12.13.32.50; author he; state Exp; branches; next 1.62; 1.62 date 2006.05.12.07.25.10; author he; state Exp; branches; next 1.61; 1.61 date 2006.05.12.03.26.54; author mrg; state Exp; branches; next 1.60; 1.60 date 2006.05.11.23.51.06; author mrg; state Exp; branches; next 1.59; 1.59 date 2006.05.11.09.39.58; author mrg; state Exp; branches; next 1.58; 1.58 date 2006.05.11.01.10.13; author mrg; state Exp; branches; next 1.57; 1.57 date 2006.05.10.21.54.58; author mrg; state Exp; branches; next 1.56; 1.56 date 2006.05.08.14.48.59; author tsutsui; state Exp; branches; next 1.55; 1.55 date 2006.05.08.11.09.01; author he; state Exp; branches; next 1.54; 1.54 date 2006.03.07.18.24.13; author he; state Exp; branches; next 1.53; 1.53 date 2006.01.31.10.57.43; author scw; state Exp; branches; next 1.52; 1.52 date 2005.12.13.05.56.23; author jmc; state Exp; branches; next 1.51; 1.51 date 2005.10.07.08.42.24; author simonb; state Exp; branches; next 1.50; 1.50 date 2005.06.02.14.38.05; author he; state Exp; branches; next 1.49; 1.49 date 2005.06.02.10.25.22; author he; state Exp; branches; next 1.48; 1.48 date 2005.05.26.18.33.36; author he; state Exp; branches; next 1.47; 1.47 date 2005.05.18.13.58.10; author chs; state Exp; branches; next 1.46; 1.46 date 2005.05.11.13.10.21; author chs; state Exp; branches; next 1.45; 1.45 date 2005.05.09.17.19.06; author jmc; state Exp; branches; next 1.44; 1.44 date 2005.05.06.19.32.30; author jmc; state Exp; branches; next 1.43; 1.43 date 2005.04.05.11.56.09; author tron; state Exp; branches; next 1.42; 1.42 date 2005.02.22.18.47.09; author christos; state Exp; branches 1.42.2.1 1.42.4.1; next 1.41; 1.41 date 2004.12.30.16.29.48; author bjh21; state Exp; branches; next 1.40; 1.40 date 2004.11.11.00.40.13; author he; state Exp; branches; next 1.39; 1.39 date 2004.10.08.07.07.26; author skrll; state Exp; branches; next 1.38; 1.38 date 2004.08.09.04.30.31; author junyoung; state Exp; branches; next 1.37; 1.37 date 2004.08.06.03.37.55; author junyoung; state Exp; branches; next 1.36; 1.36 date 2004.06.06.17.11.33; author he; state Exp; branches; next 1.35; 1.35 date 2004.06.06.13.29.23; author he; state Exp; branches; next 1.34; 1.34 date 2004.05.13.15.44.04; author cl; state Exp; branches; next 1.33; 1.33 date 2004.04.26.09.17.16; author uwe; state Exp; branches; next 1.32; 1.32 date 2004.03.22.00.46.06; author martin; state Exp; branches 1.32.2.1; next 1.31; 1.31 date 2004.03.21.13.17.14; author martin; state Exp; branches; next 1.30; 1.30 date 2004.02.22.01.31.16; author uwe; state Exp; branches; next 1.29; 1.29 date 2003.12.15.14.57.54; author skrll; state Exp; branches; next 1.28; 1.28 date 2003.12.07.21.13.39; author scw; state Exp; branches; next 1.27; 1.27 date 2003.12.07.19.58.25; author scw; state Exp; branches; next 1.26; 1.26 date 2003.12.07.12.52.33; author simonb; state Exp; branches; next 1.25; 1.25 date 2003.12.05.03.28.38; author mrg; state Exp; branches; next 1.24; 1.24 date 2003.11.08.17.21.15; author ragge; state Exp; branches; next 1.23; 1.23 date 2003.11.06.00.37.14; author he; state Exp; branches; next 1.22; 1.22 date 2003.11.05.00.50.05; author mrg; state Exp; branches; next 1.21; 1.21 date 2003.10.29.21.31.33; author mycroft; state Exp; branches; next 1.20; 1.20 date 2003.10.28.20.12.00; author skrll; state Exp; branches; next 1.19; 1.19 date 2003.10.28.14.26.47; author he; state Exp; branches; next 1.18; 1.18 date 2003.10.28.12.11.31; author he; state Exp; branches; next 1.17; 1.17 date 2003.10.28.08.22.48; author mrg; state Exp; branches; next 1.16; 1.16 date 2003.10.28.02.01.46; author cl; state Exp; branches; next 1.15; 1.15 date 2003.10.27.08.07.58; author wiz; state Exp; branches; next 1.14; 1.14 date 2003.10.27.07.31.07; author simonb; state Exp; branches; next 1.13; 1.13 date 2003.10.27.07.26.17; author simonb; state Exp; branches; next 1.12; 1.12 date 2003.10.26.16.35.18; author mycroft; state Exp; branches; next 1.11; 1.11 date 2003.10.26.01.56.54; author lukem; state Exp; branches; next 1.10; 1.10 date 2003.09.26.13.39.49; author skrll; state Exp; branches; next 1.9; 1.9 date 2003.09.19.16.41.58; author martin; state Exp; branches; next 1.8; 1.8 date 2003.09.19.08.43.14; author mrg; state Exp; branches; next 1.7; 1.7 date 2003.09.09.13.40.59; author he; state Exp; branches; next 1.6; 1.6 date 2003.08.14.15.08.32; author uwe; state Exp; branches; next 1.5; 1.5 date 2003.07.26.17.24.48; author salo; state Exp; branches; next 1.4; 1.4 date 2003.05.16.23.43.29; author scw; state Exp; branches; next 1.3; 1.3 date 2003.04.06.10.12.20; author jdc; state Exp; branches; next 1.2; 1.2 date 2003.03.28.21.15.20; author he; state Exp; branches; next 1.1; 1.1 date 2002.09.21.08.17.37; author lukem; state Exp; branches; next ; 1.232.2.1 date 2023.07.19.14.15.28; author martin; state Exp; branches; next ; commitid XJv4yII3LlHj6qxE; 1.190.2.1 date 2019.11.03.11.41.57; author martin; state Exp; branches; next ; commitid wkDe4dC96ti3MoJB; 1.187.10.1 date 2019.06.10.21.42.38; author christos; state Exp; branches; next 1.187.10.2; commitid jtc8rnCzWiEEHGqB; 1.187.10.2 date 2020.04.13.07.45.37; author martin; state Exp; branches; next 1.187.10.3; commitid X01YhRUPVUDaec4C; 1.187.10.3 date 2020.04.21.18.41.54; author martin; state Exp; branches; next ; commitid 86tA4aEmdr3VCh5C; 1.175.2.1 date 2017.04.21.16.51.16; author bouyer; state Exp; branches; next ; commitid dUG7nkTKALCadqOz; 1.174.2.1 date 2016.11.04.14.42.40; author pgoyette; state Exp; branches; next 1.174.2.2; commitid 2m1JRwYmpwPkOOsz; 1.174.2.2 date 2017.03.20.06.52.12; author pgoyette; state Exp; branches; next 1.174.2.3; commitid jjw7cAwgyKq7RfKz; 1.174.2.3 date 2017.04.26.02.52.18; author pgoyette; state Exp; branches; next ; commitid ojV02aOSdzvBqZOz; 1.147.2.1 date 2014.08.10.07.03.02; author tls; state Exp; branches; next ; commitid fmmi5hfkHs1OEMLx; 1.130.2.1 date 2013.07.23.21.07.21; author riastradh; state Exp; branches; next ; commitid rochtllMBJfBDDYw; 1.123.2.1 date 2012.11.20.02.57.55; author tls; state Exp; branches; next 1.123.2.2; 1.123.2.2 date 2013.02.25.00.24.48; author tls; state Exp; branches; next 1.123.2.3; 1.123.2.3 date 2013.06.23.06.26.21; author tls; state Exp; branches; next 1.123.2.4; commitid OnlO1cBgtQRcIHUw; 1.123.2.4 date 2014.08.19.23.45.49; author tls; state Exp; branches; next ; commitid jTnpym9Qu0o4R1Nx; 1.122.2.1 date 2012.03.05.20.59.25; author sborrill; state Exp; branches 1.122.2.1.4.1; next 1.122.2.2; 1.122.2.2 date 2012.11.24.19.02.10; author jdc; state Exp; branches; next ; 1.122.2.1.4.1 date 2012.11.24.19.02.14; author jdc; state Exp; branches; next ; 1.120.2.1 date 2011.11.10.14.31.21; author yamt; state Exp; branches; next 1.120.2.2; 1.120.2.2 date 2012.04.17.00.02.55; author yamt; state Exp; branches; next 1.120.2.3; 1.120.2.3 date 2013.01.16.05.26.13; author yamt; state Exp; branches; next 1.120.2.4; 1.120.2.4 date 2013.01.23.00.04.29; author yamt; state Exp; branches; next 1.120.2.5; 1.120.2.5 date 2014.05.22.11.27.14; author yamt; state Exp; branches; next ; commitid kc78LVNHdxORGwBx; 1.110.2.1 date 2008.11.20.02.56.40; author snj; state Exp; branches; next 1.110.2.2; 1.110.2.2 date 2008.12.06.21.27.36; author snj; state Exp; branches 1.110.2.2.2.1 1.110.2.2.6.1; next 1.110.2.3; 1.110.2.3 date 2012.03.17.18.44.07; author bouyer; state Exp; branches; next ; 1.110.2.2.2.1 date 2012.03.17.18.45.09; author bouyer; state Exp; branches; next ; 1.110.2.2.6.1 date 2012.03.17.18.46.29; author bouyer; state Exp; branches; next ; 1.102.2.1 date 2008.06.23.04.29.01; author wrstuden; state Exp; branches; next 1.102.2.2; 1.102.2.2 date 2008.09.18.04.40.19; author wrstuden; state Exp; branches; next ; 1.100.2.1 date 2008.04.27.03.33.06; author mjf; state dead; branches; next 1.100.2.2; 1.100.2.2 date 2008.06.02.13.21.19; author mjf; state Exp; branches; next 1.100.2.3; 1.100.2.3 date 2008.10.05.20.11.18; author mjf; state Exp; branches; next ; 1.98.2.1 date 2008.05.18.12.29.42; author yamt; state Exp; branches; next ; 1.93.4.1 date 2008.01.09.01.29.27; author matt; state Exp; branches; next 1.93.4.2; 1.93.4.2 date 2008.03.23.00.23.07; author matt; state Exp; branches; next ; 1.91.2.1 date 2007.05.16.20.24.13; author jdc; state Exp; branches; next 1.91.2.2; 1.91.2.2 date 2007.07.19.14.38.17; author liamjfoy; state Exp; branches 1.91.2.2.2.1; next 1.91.2.3; 1.91.2.3 date 2008.09.29.20.23.31; author jdc; state Exp; branches; next 1.91.2.4; 1.91.2.4 date 2012.03.17.19.40.41; author bouyer; state Exp; branches; next ; 1.91.2.2.2.1 date 2012.03.17.19.39.34; author bouyer; state Exp; branches; next ; 1.91.4.1 date 2007.06.03.17.25.50; author wrstuden; state Exp; branches; next 1.91.4.2; 1.91.4.2 date 2007.09.03.06.57.45; author wrstuden; state Exp; branches; next ; 1.42.2.1 date 2006.02.03.05.19.41; author riz; state Exp; branches; next ; 1.42.4.1 date 2006.02.03.05.20.06; author riz; state Exp; branches; next ; 1.32.2.1 date 2004.04.28.06.03.38; author jmc; state Exp; branches; next 1.32.2.2; 1.32.2.2 date 2004.05.15.13.35.18; author tron; state Exp; branches; next 1.32.2.3; 1.32.2.3 date 2004.08.11.19.52.10; author jmc; state Exp; branches; next 1.32.2.4; 1.32.2.4 date 2004.08.12.18.17.40; author jmc; state Exp; branches; next ; desc @@ 1.241 log @Extend the lint "trapv" gcc bug to VAX and note that it has been fixed (according to upstream) in gcc 11 and newer. @ text @# $NetBSD: HACKS,v 1.240 2023/09/04 21:01:15 mrg Exp $ # # This file is intended to document workarounds for currently unsolved # (mostly) compiler bugs. # # Format: # hack title # cdate creation date # mdate mod date # who responsible developer # port ... # affected ports, space separated, if not "all" # file affected file : revision : line from : line to # affected files and revision and line numbers describing hack # multiple lines if necessary. # pr NNNN ... # problem reports this hack works around, if known. Space # separated. # regress src/regress/directory/where/test/found # regression test directories, if available. # descr # insert short informal description (multi-line). (Longer ones # should be in the PR database. More formal descriptions might # be in the regress tree. See above). # kcah # closing bracket. # # this is a comment. hack llvm needs no-unused-command-line-argument mdate 10 May 2020 who maxv file share/mk/bsd.lib.mk 1.380 -> 1.381 descr To avoid LLVM warnings when compiling the kernel with special CFLAGS such as KASAN on amd64 or ARMV83_PAC on aarch64, pass -Wno-unused-command-line-argument. kcah hack static linking with libpthread mdate 7 May 2019 who maya file src/lib/libpthread/Makefile 1.92 -> 1.94 descr To avoid some libc thread stub functions being picked up in static builds, link pthread as one section. kcah hack disable optimization for gcc-9.3 in src/lib/libc/gdtoa/strtod.c mdate 18 Sep 2020 who christos file src/lib/libc/gdtoa/strtod.c 1.15 -> 1.16 descr See PR/55668, the program there causes infinite loop kcah hack gcc-5.3 optimizes memset+malloc -> calloc inside calloc mdate 4 May 2016 who christos file external/gpl2/lib/libmalloc/lib/Makefile 1.3 -> 1.5 descr resulting in infinite recursion; we prevent this with -fno-builtin-malloc kcah hack turn off tree-vrp for parts of ufs_lookup.c mdate 28 April 2016 who mrg christos file src/sys/ufs/ufs/ufs_lookup.c : 1.144 pr 51094 descr with -ftree-vrp enabled in ufs_lookup.c sometimes bad dir panicks are see. hcah hack netstat ieee1394 address printing. mdate 14 Nov 2000 who matt file lib/libc/net/getnameinfo.c : 1.32 : 497 : 503 descr Because the current implementation of IP over IEEE1394, the fw device address contains more than just the IEEE1394 EUI-64. So when printing out IEEE1394 addresses, ignore the extra stuff. kcah hack xterm vs. libterm mdate 01 Aug 2000 who jdc file xsrc/xc/programs/xterm/main.c : 1.2 : 3609 : 3614 pr 10383 descr In order to extend the termcap string over 1023 bytes, a ZZ entry was introduced to point to a memory location containing the full entry. Without this hack, xterm will export a termcap containing the ZZ entry, which will then be ignored by libterm. As xterm modifies the exported termcap, this would cause those modifications to be ignored. kcah hack wi-at-big-endian-bus cdate 15 Mar 2002 who martin file dev/ic/wireg.h : 1.20 descr Add an option to access the underlying bus in big endian byte order to work around deficiencies in bus_space_{read,write}_* macros. Those don't allow the implementation of a proper pcmcia bus space tag. kcah hack specific knowledge of colours in curses code cdate Sun Apr 6 11:05:24 BST 2003 who jdc file lib/libcurses/color.c : r1.24 descr Swap red/blue and yellow/cyan colours for COLOR_OTHER. Fix is to enhance libtermcap to understand terminfo-style % sequences. See also: http://mail-index.NetBSD.org/tech-userlevel/2003/04/06/0000.html kcah hack Compensation for differing types of LINUX_USRSTACK and USRSTACK cdate 21 Aug 2003 who he file sys/miscfs/procfs/procfs_linux.c : 1.14 descr Not all ports have LINUX_USRSTACK and/or USRSTACK defined as literals/constants, but refer to variables of a type which is not "unsigned long", causing compilation of procfs_linux.c to fail with "makes integer from pointer without a cast". This is observed on e.g. the sun3 port. Ideally the "types" for symbols should be consistent across all ports. kcah hack gcc4 wrong uninitialized variable mdate 10 May 2006 who mrg file bin/ksh/eval.c : 1.6 file bin/sh/histedit.c : 1.39 file bin/sh/parser.c : 1.60 file crypto/dist/heimdal/kdc/524.c : 1.10 file crypto/dist/ssh/sftp.c : 1.20 file crypto/dist/ssh/ssh-keysign.c : 1.11 file dist/ipf/lib/hostname.c : 1.2 file dist/ipf/tools/ipmon.c : 1.8 file dist/ntp/ntpd/ntp_request.c : 1.4 file dist/ntp/ntpd/refclock_shm.c : 1.4 file dist/ntp/sntp/timing.c : 1.3 file dist/pppd/pppstats/pppstats.c : 1.3 file dist/tcpdump/print-zephyr.c : 1.5 file distrib/utils/sysinst/aout2elf.c : 1.12 file gnu/libexec/uucp/uucico/uucico.c : 1.6 file lib/libc/citrus/citrus_csmapper.c : 1.6 file lib/libc/citrus/citrus_pivot_factory.c : 1.5 file lib/libc/inet/inet_cidr_ntop.c : 1.3 file lib/libc/inet/inet_ntop.c : 1.3 file lib/libc/stdio/vfwprintf.c : 1.8 file libexec/ld.elf_so/arch/m68k/mdreloc.c : 1.20 file libexec/ld.elf_so/arch/powerpc/ppc_reloc.c : 1.40 file libexec/ld.elf_so/arch/sh3/mdreloc.c : 1.22 file libexec/ld.elf_so/arch/sparc/mdreloc.c : 1.39 file libexec/ld.elf_so/arch/sparc64/mdreloc.c : 1.39 file libexec/ld.elf_so/arch/vax/mdreloc.c : 1.21 file libexec/ld.elf_so/arch/x86_64/mdreloc.c : 1.27 file sbin/fsck_ext2fs/dir.c : 1.19 file sbin/routed/rtquery/rtquery.c : 1.18 file sys/arch/amd64/amd64/pmap.c : 1.26 file sys/arch/i386/pci/piixpcib.c : 1.4 file sys/arch/m68k/m68k/pmap_motorola.c : 1.4 file sys/crypto/cast128/cast128.c : 1.9 file sys/ddb/db_command.c : 1.86 file sys/dev/cardbus/cardbus_map.c : 1.21 file sys/dev/fss.c : 1.25 file sys/dev/ic/igsfb.c : 1.39 file sys/dev/ic/mb86950.c : 1.5 file sys/dev/ic/midway.c : 1.71 file sys/dev/kttcp.c : 1.18 file sys/dev/rasops/rasops_bitops.h : 1.9 file sys/dev/pci/cmpci.c : 1.31 file sys/dev/pci/machfb.c : 1.45 file sys/dev/usb/ohci.c : 1.174 file sys/dev/usb/uhci.c : 1.196 file sys/dev/rasops/rasops_bitops.h : 1.9 file sys/dist/ipf/netinet/ip_nat.c : 1.10 file sys/dist/ipf/netinet/ip_rpcb_pxy.c : 1.8 file sys/dist/pf/net/pf.c : 1.22 file sys/fs/udf/udf_vnops.c : 1.4 file sys/kern/kern_sig.c : 1.219 file sys/kern/tty.c : 1.181 file sys/net/bpf.c : 1.116 file sys/net/zlib.c : 1.26 file sys/netccitt/if_x25subr.c : 1.37 file sys/netinet/in.c : 1.107 file sys/nfs/nfs_serv.c : 1.108 file sys/nfs/nfs_socket.c : 1.129 file sys/nfs/nfs_syscalls.c : 1.91 file sys/ufs/lfs/lfs_vfsops.c : 1.207 [also (char *)] file usr.bin/ftp/ftp.c : 1.140 file usr.bin/find/function.c : 1.54 file usr.bin/mail/tty.c : 1.20 file usr.bin/msgc/msg_sys.def : 1.33-1.34 file usr.bin/nl/nl.c : 1.7 file usr.bin/systat/keyboard.c : 1.23 file usr.bin/usbhidctl/usbhid.c : 1.29 file usr.bin/vi/cl/cl_read.c : 1.5 file usr.bin/vi/ex/ex_cscope.c : 1.12 file usr.bin/vi/ex/ex_tag.c : 1.19 file usr.bin/vi/vi/v_txt.c : 1.15 file usr.sbin/altq/altqstat/qdisc_rio.c : 1.4 file usr.sbin/cron/do_command.c : 1.19 file usr.sbin/timed/timed/slave.c : 1.15 descr GCC 4.1 gets many uninitialised variable warnings wrong. We should really audit all the old hacks like this when older compilers are removed from the tree, as many are probably no longer required. The problem is that it does not recognize initialization via function call pointer. I.e. int p; foo(&p); does not mark p as initialized. kcah hack gcc4 pointer sign and strict aliasing problems mdate 10 May 2006 who mrg file bin/ed/Makefile : 1.33 file distrib/utils/sysinst/Makefile.inc : 1.44 file distrib/utils/x_dhclient/Makefile : 1.15 file games/bcd/Makefile : 1.5 file games/dab/Makefile : 1.5 file games/larn/Makefile : 1.17 file games/pom/Makefile : 1.5 file lib/libasn1/Makefile : 1.26 file lib/libcrypt/Makefile : 1.17 file lib/libgssapi/Makefile : 1.16 file lib/libhdb/Makefile : 1.20 file lib/libkadm5clnt/Makefile : 1.21 file lib/libkadm5srv/Makefile : 1.25 file lib/libkrb5/Makefile : 1.35 file lib/libssh/Makefile : 1.6 file lib/libtelnet/Makefile : 1.26 file libexec/getty/Makefile : 1.14 file libexec/kadmind/Makefile : 1.19 file libexec/kpasswdd/Makefile : 1.14 file sbin/atactl/Makefile : 1.3 file sbin/cgdconfig/Makefile : 1.7 file sbin/clri/Makefile : 1.13 file sbin/dkctl/Makefile : 1.4 file sbin/dump/Makefile : 1.33 file sbin/fdisk/Makefile : 1.35 file sbin/fsck_ext2fs/Makefile : 1.11 file sbin/fsck_ffs/Makefile : 1.29 file sbin/fsdb/Makefile : 1.18 file sbin/newfs/Makefile : 1.30 file sbin/newfs_sysvbfs/Makefile : 1.2 file sbin/restore/Makefile : 1.23 file sbin/veriexecctl/Makefile : 1.11 file sys/lib/libsa/Makefile : 1.59 file sys/arch/evbarm/adi_brh/brh_machdep.c : 1.24 file usr.bin/awk/Makefile : 1.9 file usr.bin/crontab/Makefile : 1.24 file usr.bin/ctags/Makefile : 1.8 file usr.bin/gzip/Makefile : 1.10 file usr.bin/ssh/sftp/Makefile : 1.10 file usr.bin/ssh/ssh/Makefile : 1.25 file usr.bin/vi/build/Makefile : 1.26 file usr.bin/telnet/Makefile : 1.40 file usr.bin/tn3270/tn3270/Makefile : 1.36 file usr.bin/tr/Makefile : 1.4 file usr.sbin/amd/amd/Makefile : 1.27 file usr.sbin/amd/amq/Makefile : 1.14 file usr.sbin/amd/libamu/Makefile : 1.20 file usr.sbin/amd/pawd/Makefile : 1.5 file usr.sbin/bind/Makefile.inc : 1.22 file usr.sbin/bind/libdns/Makefile : 1.3 file usr.sbin/bind/named/Makefile : 1.17 file usr.sbin/bootp/bootptest/Makefile : 1.2 file usr.sbin/chrtbl/Makefile : 1.6 file usr.sbin/cron/Makefile : 1.12 file usr.sbin/dhcp/Makefile.inc : 1.20 file usr.sbin/hprop/Makefile : 1.13 file usr.sbin/installboot/Makefile : 1.35 file usr.sbin/ipf/ipftest/Makefile : 1.32 file usr.sbin/isdn/isdnd/Makefile : 1.6 file usr.sbin/isdn/isdnmonitor/Makefile : 1.3 file usr.sbin/isdn/isdntel/Makefile : 1.2 file usr.sbin/isdn/isdntrace/Makefile : 126 file usr.sbin/mopd/common/Makefile : 1.10 file usr.sbin/mopd/mopd/Makefile : 1.9 file usr.sbin/mopd/mopprobe/Makefile : 1.7 file usr.sbin/makefs/Makefile : 1.17 file usr.sbin/mscdlabel/Makefile : 1.5 file usr.sbin/pkg_install/add/Makefile : 1.7 file usr.sbin/pkg_install/create/Makefile : 1.5 file usr.sbin/pkg_install/lib/Makefile : 1.28 file usr.sbin/ntp/ntpd/Makefile : 1.10/1.11 file usr.sbin/ntp/ntptime/Makefile : 1.4/1.5 file usr.sbin/pppd/Makefile.inc : 1.3 file usr.sbin/pppd/pppd/Makefile : 1.38 file usr.sbin/rarpd/Makefile : 1.10 file usr.sbin/rbootd/Makefile : 1.10 file usr.sbin/rpc.pcnfsd/Makefile : 1.17 file usr.sbin/tcpdump/Makefile : 1.42 descr GCC 4.1 warns on pointer sign comparison/assignments and lots of code does not conform. For now we use -Wno-pointer-sign and -fno-strict-aliasing. kcah hack disable ctf for gcc-4.8 build mdate April 3 2014 who christos file external/gpl3/gcc/usr.bin/Makefile.frontend : 1.4 file external/gpl3/gcc/usr.bin/Makefile.backend : 1.5 descr nbctfconvert -g -L VERSION -g fold-const.o ERROR: fold-const.c: failed to get mapping for tid 79154 \ ((null)) <13532> kcak hack emacs aborting on exit (libgcc issue) mdate 7 November 2011 who christos file external/gpl3/gcc/dist/gcc/unwind-dw2-fde.c : 1.2 descr GCC 4.5.3 now calls __unregister_frame_info_bases() on unloading/exit to do just that. If the symbol requested is not found, then it aborts. emacs 23.3 triggers this assertion. For now disable aborting, and silently ignore. kcah hack cross-building hack on Darwin mdate 20 July 2008 who agc file src/distrib/common/Makefile.mdset : 1.33 descr Darwin has problems with getopt() when used in mdsetimage -v, due to the difference between BSD and libiberty() getopt implementations, more fully described in http://mail-index.netbsd.org/current-users/2008/06/27/msg003242.html and the subsequent thread. For just now, we just have an ugly workaround not to call mdsetimage with the -v argument on Darwin kcah hack avoid rebuilding asn1 libraries mdate 03 August 2008 who veego file src/crypto/dist/heimdal/lib/asn1/gen.c : 1.10 file src/lib/libasn1/Makefile : 1.32 file src/lib/libhdb/Makefile : 1.23 file src/lib/libgssapi/Makefile : 1.20 file src/lib/libhx509/Makefile : 1.3 pr 9702 39185 descr asn1_compile does not check if generated header files do not have to be rebuild. Generate .hx files and copy it in the Makefiles if they changed. kcah hack Disable fortification for /usr/bin/makeinfo cdata 24 Mar 2014 who tron file src/external/gpl2/texinfo/bin/makeinfo/Makefile : 1.1 pr N/A descr If "makeinfo" is compiled with "-D_FORTIFY_SOURCE=2" using GCC 4.8.3 it fails to process certain texinfo files, e.g. "cl.texi" included in the Emacs 24.3 distribution. kcah hack Disable Stack Smash Protection for /usr/X11R7/bin/xauth cdata 05 Apr 2014 who tron file src/external/mit/xorg/bin/xauth/Makefile : 1.4 pr N/A descr If "xauth" is compile with "USE_SSP" set to "yes" it fails mysteriously with an error message like this: /usr/X11R7/bin/xauth: file /foo/bar/.Xauthority does not exist /usr/X11R7/bin/xauth: unable to link authority file /foo/bar/.Xauthority, use /foo/bar/.Xauthority The compiler seems to get confused about the two filename variables used in the link(2) system call. kcah hack g++ 5.x barfs on volatile in constexpr initializers cdata 27 Aug 2015 who pooka file src/lib/libpthread/pthread_types.h : 1.17 pr lib/49989 descr Trying to use e.g. pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER in C++ results in: error: temporary of non-literal type '__pthread_mutex_st' in a constant expression constexpr mutex() _NOEXCEPT : __m_(PTHREAD_MUTEX_INITIALIZER) {} [...] include/pthread_types.h:101:8: note: '__pthread_mutex_st' is not literal because: struct __pthread_mutex_st { ^ include/pthread_types.h:103:17: note: non-static data member '__pthread_mutex_st::ptm_errorcheck' has volatile type pthread_spin_t ptm_errorcheck; kcah hack libm cabs{,f,l} and g++ cdata 11 Jan 2016 who christos pr lib/50646 file src/external/gpl3/gcc.old/dist/libstdc++-v3/include/std/complex : 1.2 file src/external/gpl3/gcc/dist/libstdc++-v3/include/std/complex : 1.2 descr Our cabs and cabsf have a different argument format on some architectures and for that we have created in libm/compat_cabs{,f}.c. The standard versions in libc are __c99_cabs{,f,l} and there are __RENAME()'s in . G++ uses __builtin_cabs{,f,l} to implement those and they translate by default to cabs{,f,l} which gets defined to cabs{,f} (the wrong function) and an undefined cabsl. I've changed to use the __c99_cabs{,f,l} directly. Using the __builtin_cabs{,f,l} in gcc is still broken. kcah port vax hack gcc10/vax ICE cdate Sun Jan 22 15:37:56 EST 2023 who christos file external/mit/xorg/lib/fontconfig/src/Makefile : 1.28 descr Disable optimization on some files kcah hack gcc4/vax ICE cdate Sat Dec 22 08:17:57 2007 UTC who tsutsui file sys/arch/vax/conf/Makefile.vax : 1.79 descr GCC4 on vax gets ICE on compiling sys/ddb/db_command.c. -fno-tree-ter prevents it so add it to COPTS. kcah hack gcc4/vax compiler crash cdate Fri Jun 30 22:39:12 PDT 2006 who mrg file bin/csh/Makefile : 1.27 file lib/i18n_module/UTF7/Makefile : 1.2 descr GCC4 on vax crashes. -O0 stops it happening so far... kcah hack declare boolean_t in two IPF user-mode programs cdate Tue Mar 7 19:19:20 CET 2006 who he file dist/ipf/ipsend/iptests.c : 1.8 dist/ipf/ipsend/sock.c : 1.7 descr The IPF user-mode programs ipsend and iptest first include without _KERNEL defined, and later include with _KERNEL defined. This causes a build failure when building for vax, since ends up being included without bollean_t being defined by . Build failure and further details documented in PR#32907. kcah hack pcc 0.9.9 large string literals cdat 8 July 2008 who gmcgarry file sys/conf/param.c : 1.58 descr Workaround for pcc 0.9.9 not handling large string literals which causes kernels with 'options INCLUDE_CONFIG_FILE' to fail compilation. There is a proposal on the pcc mailing list to stuff config file in ELF section. kcah hack xorg warnings cdat 30 July 2008, 3 June, 2013 who mrg file external/mit/xorg/lib/libSM/Makefile : 1.2 external/mit/xorg/lib/libX11/Makefile.libx11 : 1.10 external/mit/xorg/lib/libXext/Makefile : 1.2 external/mit/xorg/lib/libXfont/Makefile : 1.2 descr Disable several warnings or use -Wno-error across Xorg sources while we get them working kcah hack 32 bit time leftovers cdat 11 January 2009 who christos file lib/libc/time/localtime.c : 1.41 lib/libc/time/zic.c : 1.23 descr The timezone compiled files still contain 32 bit time_t quantities. I did not want to version the files because the ``parser'' is too ugly for words. What needs to be done, is to rewrite the parser from scratch also to avoid potential core-dumps from parsing invalid files. kcah hack 32 bit time leftovers cdat 11 January 2009 who christos file various descr Many filesystem on-disk formats have 32 bit times. kcah hack gcc 4.5 fsdb miscompile date Sat Nov 9 11:03:02 EST 2013 who christos file src/sbin/fsdb/Makefile : 1.36 (and earlier) descr src/sbin/fsdb/fsdb.c: In function 'findblk': src/sbin/fsdb/fsdb.c:610:1: error: unrecognizable insn: (insn 941 940 942 134 src/sbin/fsdb/fsdb.c:589 (set (reg:SI 604) (subreg:SI (mem/s/j:DI (plus:SI (mult:SI (reg:SI 602) (const_int 8 [0x8])) (reg/f:SI 601)) [0 curinode.99_378->dp2.di_ib S8 A32]) 4)) \ -1 (nil)) src/sbin/fsdb/fsdb.c:610:1: internal compiler error: in \ extract_insn, at recog.c:2103 kcah hack gcc 4.8 gcc miscompiles date Sat Nov 9 16:35:18 EST 2013 who christos file distrib/utils/x_ping/Makefile : 1.8 file distrib/vax/miniroot/Makefile.inc : ? file distrib/vax/ramdisk/Makefile : ? file external/gpl3/gdb/lib/libdecnumber/Makefile : 1.3 file sbin/fsdb/Makefile : 1.36 file sbin/newfs_ext2fs/Makefile : 1.6 file sbin/ping/Makefile : 1.17 file usr.sbin/mtrace/Makefile : 1.11 descr external/gpl3/gcc/dist/gcc/expmed.c:2781:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 external/gpl3/gcc/dist/gcc/recog.c:770:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 external/gpl3/gcc/dist/libdecnumber/decNumber.c:7214:3: internal compiler error: in change_address_1, at emit-rtl.c:2019 sbin/ping/ping.c:679:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 sbin/newfs_ext2fs/mke2fs.c:681:1: internal compiler error: in reload_combine_note_use, at postreload.c:1561 external/gpl3/gdb/dist/libdecnumber/decNumber.c:7214:3: internal compiler error: in change_address_1, at emit-rtl.c:2019 usr.sbin/mtrace/mtrace.c:1655:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 kcah hack gcc 5.4 cc1 miscompile date Tue Feb 14 07:19:57 JST 2017 who rin pr port-vax/51967 file external/gpl3/gcc/usr.bin/backend/Makefile : 1.35 descr cc1 aborts due to SIGILL when compiling the sample code attached to the PR. As a workaround, compile dse.c with -O0. kcah hack libssh miscompile cdate Tue Feb 14 17:58:06 JST 2017 mdate Tue Feb 14 18:57:39 JST 2017 who rin file crypto/external/bsd/openssh/lib/Makefile : 1.20 descr poly1305.c and umac.c are miscompiled, which results in login failure to/from external hosts via ssh. kcah hack mandoc miscompile date Tue Feb 14 18:03:05 JST 2017 who rin file external/bsd/mdocml/lib/libmandoc/Makefile : 1.8 descr mandoc(1) receives SIGILL in in_line_argn() from mdoc_macro.c. kcah hack libX11 miscompile date Thu Feb 16 10:00:22 JST 2017 who rin file src/external/mit/xorg/lib/libX11/Makefile.libx11 : 1.18 descr lcWrap.c is miscompiled, which results in input failure via XIM. Besides, some clients, e.g., pkgsrc/x11/kterm, receive SIGSEGV. kcah hack gomoku compiler crash date Tue May 31 15:11:39 EDT 2022 who christos file src/games/gomoku/Makefile : 1.12 descr pickmove.c crashes with -O2, warns about ovi.o_intersect being unitialized with -O1, works with -O0 kcah hack gdtoa/misc.c miscompile cdate Sun Dec 4 22:27:26 UTC 2022 who jakllsch file src/lib/libc/gdtoa/Makefile.inc : 1.11 descr some doubles print as garbage if gdtoa/misc.c isn't compiled at -O0 kcah port arm hack gcc-unsigned-compare cdate 09 Mar 2002 mdate 18 Mar 2002 who bjh21 file dist/bind/lib/nameser/ns_parse.c : 1.3 file dist/dhcp/minires/ns_parse.c : 1.3 file dist/dhcp/omapip/result.c : 1.2 file dist/dhcp/server/failover.c : 1.3 file gnu/dist/toolchain/bfd/bfd.c : 1.2 file gnu/dist/toolchain/bfd/format.c : 1.2 file gnu/dist/toolchain/gdb/target.c : 1.2 file sys/kern/vfs_subr.c : 1.172 descr When checking that a potentially-unsigned enum is >= 0, assign it to an int first. This is necessary to avoid "comparison is always true" warnings with -fshort-enums. Casting to an int really should be enough, but turns out not to be. kcah hack gcc-4.5 arm CNAME hostname lookup failure on certain DNS environment (probably -ftree-ter problem) cdate Sat Dec 24 04:59:00 UTC 2011 mdate who tsutsui file lib/libc/net/Makefile.inc 1.79 descr Hostname lookup against CNAMEs by some commands fails on certain DNS environments if lib/libc/net/gethnamaddr.c (ping(8) etc) and lib/libc/net/getaddrinfo.c (ftp(1) etc) are compiled with -O2, even though nslookup(1) against the same CNAME returns proper hostname. They works properly if compiled with -O2 -fno-tree-ter. Also -O2 fails but -O2 -fno-tree-ter works on the following test case in gcc bugzilla: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863#c4 kcah port sh3 hack gcc4-sh3-bz2 cdate Sun May 21 03:34:57 UTC 2006 mdate Fri May 16 13:13:00 UTC 2008 who mrg, tsutsui file lib/libbz2/Makefile : 1.10 descr The in-tree GCC 4.1-based compiler generated too-far pc-relative addresses. Hack is to build with -fno-loop-optimize. kcah port m68000 hack gcc4-m68000 cdate Fri Feb 8 10:29:37 PST 2008 mdate Sun May 4 15:37:19 UTC 2008 who mrg, tsutsui file rescue/Makefile : 1.21 file sbin/dump_lfs/Makefile : 1.9 file sbin/fsck_ffs/Makefile : 1.35 file sbin/fsdb/Makefile : 1.22 file share/mk/sys.mk : 1.96 file usr.sbin/ndbootd/Makefile : 1.5 descr Several internal compiler errors with gcc -O1 around 64bit integer arithmetic. This hack uses -O1 and adds some -fno-tree-foo options to avoid the problem. This might be related with GCC Bugzilla Bug 32424. kcah port m68k,sh3,vax hack gcc-4.8.1 cdate Wed Nov 6 20:41:35 EST 2013 who christos file src/external/gpl3/gcc/libstdc++-v3/Makefile : 1.6 descr compile hashtable_c++0x.cc with -O2 instead of -Os to produce missing instantiation of std::lower_bound expansion for unsigned long. kcah port sparc hack avoid NULL pointer derefs in savefpstate IPIs and GCC 4.5.3 cdate Sun Aug 14 19:26:48 PDT 2011 who mrg file sys/arch/sparc64/sparc/cpu.c : 1.234 file sys/arch/sparc64/sparc/cpuvar.h : 1.90 file sys/arch/sparc64/sparc/genassym.cf : 1.67 file sys/arch/sparc64/sparc/locore.s : 1.265 descr Something is wrong with GCC 4.5.3 and the savefpstate IPI. Post newlock2 there was a bug where a lock was reduced from IPL_SCHED to IPL_VM (?) and occasionally savefpstate IPI would crash due to NULL IPI. This was fixed by re-using the right IPL value. However, GCC 4.5.3 build kernels have the same problems. For now, the hack is re-instated. kcah port mips hack mips-shared-linker-load-address cdate Fri Oct 7 08:33:10 UTC 2005 who simonb file src/sys/kern/exec_elf32.c : 1.107 descr With COMPAT_16 or previous enabled (which enables ELF_INTERP_NON_RELOCATABLE) a recent ld.elf_so will load and run at address 0. The check to fix this in rev 1.107 only checks the first psection of the ELF executable, which may not be loadable. A more correct fix is to check the first loadable psection instead of just the first psection. kcah hack mips-duplicate-ras-end-label cdate Sat Sep 2 23:29:42 2006 who martin file src/regress/sys/kern/ras/ras3/Makefile : 1.3 descr Add -fno-reorder-blocks to CFLAGS to avoid duplicate labels by duplicated __asm output from RAS_END() macro. kcah hack mips-mcount-assembler-warning cdate Tue Jul 29 14:16:52 UTC 2008 who lukem file src/lib/libc/gmon/Makefile.inc : 1.8 descr Workaround for PR port-mips/39192. common/lib/libc/gmon/mcount.c generates a (fatal) assembler warning on MIPS: Warning: No .cprestore pseudo-op used in PIC code Add COPTS.count.c+=-Wa,--no-warn to avoid -Wa,--fatal-warnings kcah hack mips-use-binutils-old cdate Sun May 7 14:28:55 CEST 2023 who martin file src/share/mk/bsd.own.mk : 1.1311, 1.1308 descr Use binutils.old for 64bit mips with 32bit userland. Version 2.39 causes random (cross-) build failures that are hard to reproduce or analyze. kcah port i386 hack use volatile intermediate variable to enforce rounding cdate Tue Aug 1 22:15:55 MEST 2006 who drochner file src/lib/libm/src/lrintf.c : 1.4 file src/lib/libm/src/s_rintf.c : 1.8 descr gcc-4 does subsequent operations on "float" values within the i387 FPU without rounding the intermediate results kcah port x86 hack turn off optimization for biosdisk_ll.c because otherwise we are pass the wrong arguments to biosdisk_read(). $ cd /usr/src/sys/arch/i386/floppies/bootflopp-com $ qemu-system-i386 -nographic -fda boot-com1.fs -boot a cdate Mon Apr 7 21:09:55 2014 UTC who christos file src/sys/arch/i386/stand/lib/Makefile : 1.38 descr Turning on DISK_DEBUG shows the problem. We should find out which option is causing this. hcah port powerpc hack avoid using __builtin_return_address(0) because it fails in Xorg's module loader cdate Sat Sep 27 03:52:05 UTC 2008 who macallan file src/libexec/ld.elf_so/rtld.c : 1.121 descr workaround for PR port-macppc/37812 kcah hack define TARGET_SECURE_PLT and HAVE_AS_TLS because when building the native compiler via build.sh those don't defined properly. cdate Sat Mar 12 08:00:00 UTC 2011 who matt file src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h : 1.7 descr see above kcah port powerpc64 hack include _errno.c in libposix so that __errno resolves. It should resolve from libc's errno, but somehow it does not. Linker bug? cdate Thu Oct 27 13:19:47 EDT 2011 who christos file src/lib/libposix/Makefile: 1.15 file src/lib/librt/Makefile: 1.14 descr workaround for: libposix_pic.a(cerror.pico)(.text+0x14): unresolvable \ R_PPC64_REL24 relocation against symbol `.__errno' kcah hack rename data() function in mdocml to avoid redefined error. Compiler/Assembler bug? cdate Sat Oct 29 11:16:01 EDT 2011 who christos file src/external/bsd/mdocml/tbl_data.c: 1.2 descr workaround for: {standard input}: Assembler messages: {standard input}:105: Error: symbol `.data' is already \ defined kcah port emips hack Add nop between ctc1 and mtc0 to avoid assembler internal error cdate Sat Oct 29 16:57:34 EDT 2011 who christos file src/sys/arch/mips/mips/mips_fpu.c: 1.7 descr workaround for: {standard input}: Assembler messages: {standard input}:730: Internal error! Assertion failure in append_insn at /usr/src/external/gpl3/\ binutils/dist/gas/config/tc-mips.c line 2910. kcah port ia64 hack libgcc unwind dummy function cdate Fri Apr 17 14:31:03 CEST 2015 who martin file src/external/gpl3/gcc/dist/libgcc/config/ia64/unwind-ia64.c: 1.4 descr Add an empty _Unwind_FindTableEntry() implementation. In the end we will use our libc stuff, and this should go away again. kcah port x68k hack compiler error with gcc 4.5.x cdate Fri May 24 13:23:01 EDT 2013 who christos file src/external/gpl3/gcc/usr.bin/bakend/Makefile: 1.17 xsrc/external/mit/xorg/lib/libGLU/Makefile: 1.11 descr workaround for: internal compiler error: in cselib_record_set, at cselib.c:1999 kcah hack fallback to /usr/bin/clang-cpp in rpcgen cdate Wed Jun 5 15:49:27 CEST 2013 who joerg file src/usr.bin/rpcgen/rpc_main.c : 1.35 descr It is undecided which compiler owns /usr/bin/cpp and whether it should exist in a MKGCC=no world. To allow rpcgen to work out-of-the-box, if either gcc or clang is installed, use /usr/bin/clang-cpp as fallback. This applies only if RPCGEN_CPP is not set and /usr/bin/cpp is not executable. kcah port hppa hack compiler error with gcc 4.5.x cdate Tue Jul 23 07:42:28 BST 2013 who skrll file src/sys/lib/libkern/Makefile.libkern: 1.26 descr workaround for unanalysed codegen bug affecting md5c.c. kcah hack gdb vs _rtld_debug_state problem cdate Thu Mar 5 09:49:53 UTC 2015 who skrll file src/libexec/ld.elf_so/rtld.c: 1.175 descr workaround for problem where gdb misses the breakpoint on _rtld_debug_state when the function is only the bv,n %r0(%rp) instruction - the nullify seems to confuse something kcah port mips64* hack compiler crashes on mips64* with optimization enabled cdate Tue May 13 18:46:48 UTC 2014 who macallan file src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc: 1.6 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h: 1.5 src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/Makefile.inc: 1.6 src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.h: 1.5 descr workaround for n32 gcc doing unaligned 64bit accesses when optimizing pr 48696 kcah port vax hack compile boot with -O1 cdate Sat May 24 09:40:58 CEST 2014 who martin file src/sys/arch/vax/boot/boot/Makefile: 1.41 descr /boot does not work when compiled with -O2 and gcc 4.8 kcah port vax hack compile nir.c in gallium with -O1 cdate Mon Oct 28 14:39:35 EDT 2019 who christos file /cvsroot/src/external/mit/xorg/lib/gallium/Makefile 1.36 descr gallium does not compile. kcah port sh3 hack compile parse.c in battlestar with -Wno-restrict cdate Mon Oct 28 14:39:35 EDT 2019 who christos file /cvsroot/src/games/battlestar/Makefile 1.11 descr fails to compile, confused by char words[][]; strcpy(words[n - 1], words[n + 1]); kcah port sh3 hack compile ddns.c in dhcpcd with no-stringop-overflow cdate Tue Oct 29 20:25:59 EDT 2019 who christos file /cvsroot/src/external/mpl/dhcp/bin/server/Makefile 1.2 descr fails to compile, confused by builtin_object_size in strcat(p, ".in..") kcah port arm hack avoid using labels in a 12-bit constant. cdate Mon Mar 30 05:26:47 2015 UTC who matt file crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aes-armv4.S: 1.2 descr workaround for clang misassembling an instruction kcah port sparc64 hack during profiling with -m32 (and ASLR) labels are not generated consistently cdate Sat Feb 11 04:56:37 2017 UTC who christos file /cvsroot/src/crypto/external/bsd/heimdal/lib/libasn1/Makefile: 1.4 desc asn1_krb5_asn1.po does not produce the same results during successive compilation runs; it is bimodal. Turning optimization to -O0 fixes the issue kcah port ia64 hack ski emulator crashes cdate Sat Apr 8 18:10:43 2017 UTC who scole file /cvsroot/src/sys/external/bsd/acpica/dist/tables/tbxfload.c: 1.6 desc ski emulator crashes during acpi detection. Added a check for uninitialized index. Submitted a request for change with upstream mailing list, but never got a response kcah port vax hack compile rtld.c with -O0 cdate Wed Apr 3 17:38:38 EDT 2019 who christos file src/libexec/ld.elf_so/Makefile: 1.141 descr Disable optimization for rtld.c on the vax with gcc-7. Crashes on the second pass loop with elm == 0xffffffff kcah port powerpc hack compile tc.c, logerr.c, ubsan.c with -O0 for clang cdate Wed Jan 29 17:40:19 EST 2020 who christos file src/external/bsd/atf/lib/libatf-c/Makefile: 1.22 file src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile: 1.49 file src/tests/lib/libc/misc/Makefile: 1.5 descr Disable optimization on tc.c, logerr.c, ubsan.c crashes: lib/libLLVMCodeGen/../../llvm/../../external/apache2/llvm/lib/..\ /dist/llvm/include/llvm/CodeGen/MachineFrameInfo.h", line 495, \ function "__int64_t llvm::MachineFrameInfo::getObjectOffset(int) const" kcah port m68k hack compile aes_ccm_tag() with -O0 cdate Mon Aug 10 06:27:29 UTC 2020 mdate Wed Aug 10 00:00:00 UTC 2022 who rin file src/sys/crypto/aes/aes_ccm.c: 1.5 descr GCC 9.4 and 8.3 miscompile aes_ccm_tag() for m68k with optimization level -O[12], which results in failure in aes_ccm_selftest(). For 9.4, -O0 and -O1 work but -O2 fails for amiga (A1200, 68060) and mac68k (Quadra 840AV, 68040). Whereas -O0 and -O2 work but -O1 fails for sun3 (TME, 68020 emulator) and sun2 (TME, 68010 emulator). aes_ccm_selftest() still fails with GCC 10.4 and -O2. kcah port sh3 hack gcc9-sh3-lint cdate Tue Jun 22 14:59:52 CEST 2021 mdate Mon Jul 5 12:34:57 CEST 2021 who hgutch file external/gpl3/gcc/dist/gcc/config/sh/sh.md 1.2 external/gpl3/gcc.old/dist/gcc/config/sh/sh.md 1.11 descr The in-tree gcc 9/gcc 10 crashes with an internal invalid opcode exception when using any kind of optimization on lex.c in usr.bin/xlint/lint . This was introduced apparently unintendedly in gcc when addressing a different issue. Rather than disabling optimization for lex.c, instead revert the change to gcc. The bug report upstream has been updated to reflect the exact breakage. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101177 kcah port vax hack compile blake2b.c with -O0 for vax cdate Wed Oct 13 14:28:32 UTC 2021 mdate Wed Oct 13 14:28:32 UTC 2021 who nia file src/lib/libcrypt/Makefile: 1.200 descr GCC 10 fails to build blake2b.c with an internal compiler error unless optimization is disabled. kcah port arm hack compile t_sig_backtrace with -fno-omit-frame-pointer for arm cdate Tue Nov 23 23:24:37 UTC 2021 mdate Tue Nov 23 23:24:37 UTC 2021 who thorpej file src/tests/lib/libexecinfo/Makefile: 1.8 file src/tests/lib/libexecinfo/t_sig_backtrace: 1.2 descr Unit test fails to pass unless t_sig_backtrace.c is compiled with -fno-omit-frame-pointer and -DNOINLINE_HACK. kcah hack alpha gcc error in lint cdate 2022/04/10 13:21:34 who martin port alpha, vax file usr.bin/xlint/Makefile.inc: 1.23, 1.25 pr 56789 descr Compiling lint with -ftrapv fails with an internal gcc compiler error. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105209 Supposedly fixed in gcc 11 or newer. kcah hack compile copy{in,out}() for ibm4xx with -O0 for clang cdate Mon Sep 12 08:06:36 UTC 2022 who rin port evbppc file sys/arch/powerpc/ibm4xx/trap.c: 1.99 descr clang 13.0.0 miscompiles copy{in,out}() with -O[12]. As a result, kernel cannot execute /sbin/init. kcah hack Disable secure PLT for alpha cdate Fri Jul 7 08:33:25 UTC 2023 who rin port alpha file src/external/gpl3/binutils/dist/bfd/elf64-alpha.c: 1.11 pr port-alpha/57511 descr Temporally disable secure PLT support, introduced by binutils 2.39 for us. We need its support to ld.elf_so(1). kcah hack openssl: Disable ec_nistp_64_gcc_128 on aarch64eb cdate Sat Jul 8 23:54:27 UTC 2023 who rin port aarch64eb file src/crypto/external/bsd/openssl/lib/libcrypto/arch/aarch64/ec.inc : 1.4 descr As described in upstream document: https://github.com/openssl/openssl/blob/master/INSTALL.md#enable-ec_nistp_64_gcc_128 This feature (for LP64) does not support big-endian machines. Note that sparc64 does not use this (port-sparc64/57472). kcah hack GCC: Disable "-Warray-bounds" for x86 curcpu() and curlwp() cdate Mon Sep 4 13:59:32 PDT 2023 who mrg port i386 amd64 file src/sys/arch/amd64/include/cpu.h : 1.71 file src/sys/arch/i386/include/cpu.h : 1.184 descr These functions trigger eg: ./machine/cpu.h:57:9: error: array subscript 0 is outside array bounds of 'struct cpu_info * const[0]' [-Werror=array-bounds] 56 | __asm("movq %%gs:%1, %0" : and can't easily be worked around. kcah @ 1.240 log @document x86 curlwp/curcpu hack for GCC 12. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.239 2023/07/18 03:01:35 rin Exp $ d1061 2 a1062 2 port alpha file usr.bin/xlint/Makefile.inc: 1.23 d1069 2 @ 1.239 log @doc/HACKS: PR port-sh3/56311 has been fixed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.238 2023/07/09 00:01:55 rin Exp $ d1103 13 @ 1.238 log @doc/HACKS: Note OPENSSL_NO_EC_NISTP_64_GCC_128 hack for aarch64eb. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.237 2023/07/07 08:39:23 rin Exp $ a1036 13 port sh3 hack compile lint1/initdecl() with -O0 for sh3 (port-sh3/56311) cdate Thu Jul 15 07:58:05 UTC 2021 mdate Fri Jul 16 10:00:00 UTC 2021 who rin file src/usr.bin/xlint/lint1/decl.c: 1.200 descr GCC 9 and 10 miscompile initdecl() due to mischoice of register, as described in the PR. Compiling this function with -O0 works around the problem. The problem has been reported to upstream as GCC Bug 101469: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469 kcah @ 1.237 log @doc/HACKS: Document PR port-alpha/57511 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.236 2023/05/07 12:43:32 martin Exp $ d1104 12 @ 1.236 log @Not hacks to use old binutils (2.34 instead of 2.39) on mips64* (but not mipsn64*). @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.235 2023/01/22 20:41:25 christos Exp $ d1093 11 @ 1.235 log @new vax compiler issues @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.234 2023/01/06 15:48:29 christos Exp $ d750 10 @ 1.234 log @Now that the default page size is 4K again for x86_64 with the binutils change to default to -z separate-code, remove the previous hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.233 2022/12/30 02:05:38 christos Exp $ d425 8 @ 1.233 log @mention binutils hack @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.232 2022/12/04 22:35:15 jakllsch Exp $ a1074 14 hack Clamp max-page-size in ld to 4K when using relro to avoid 2M binary bloat cdate Thu Dec 29 21:02:43 EST 2022 who christos port x86, aarch64 file share/mk/bsd.sys.mk: 1.309 pr 57147 descr binutils 2.38+ fix for https://sourceware.org/bugzilla/show_bug.cgi?id=28824 results in a 2M binary bloat when using relro because of the relro segment alignment. There is no upstream fix yet. kcah @ 1.232 log @On VAX, compile gdtoa/misc.c at -O0 to avoid incorrect machine code resulting in some doubles printing as garbage. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.231 2022/09/12 08:11:51 rin Exp $ d1075 14 @ 1.232.2.1 log @Pull up following revision(s) (requested by rin in ticket #237): usr.bin/xlint/lint1/decl.c: revision 1.361 doc/HACKS: revision 1.239 lint1:initdecl(): Remove hack for now-fixed PR port-sh3/56311 doc/HACKS: PR port-sh3/56311 has been fixed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.232 2022/12/04 22:35:15 jakllsch Exp $ d1019 13 @ 1.231 log @Document -O0 hack for ibm4xx copy{in,out}() for clang 13.0.0. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.230 2022/08/10 13:38:26 rin Exp $ d595 8 @ 1.230 log @Note that aes_ccm_tag() still fails with GCC 10.4 with -O2 on m68k. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.229 2022/05/31 19:14:10 christos Exp $ d1057 10 @ 1.229 log @document gomoku @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.228 2022/04/10 19:54:57 rillig Exp $ d977 1 a977 1 hack compile aes_ccm_tag() with -O0 for GCC8 and GCC9 d979 1 a979 1 mdate Mon Oct 5 22:00:00 JST 2020 d987 1 @ 1.228 log @doc/HACKS: add bug report for internal compiler error on alpha @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.227 2022/04/10 13:26:47 martin Exp $ d586 9 @ 1.227 log @PR 56789: document gcc bug workaround for -ftrapv on alpha. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.226 2021/11/23 23:29:55 thorpej Exp $ d1044 2 a1046 1 @ 1.226 log @Temporary hack to work around incorrect/missing unwind info for the t_sig_backtrace test case on ARM when compiled with optimization. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.225 2021/10/13 20:11:54 nia Exp $ d1034 12 @ 1.225 log @libcrypt hack for vax @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.224 2021/07/16 10:02:50 rin Exp $ d1023 11 @ 1.224 log @PR port-sh3/56311 Correct misinterpretation for the cause of the problem, and link to the bug report for upstream. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.223 2021/07/15 08:02:47 rin Exp $ d1013 10 @ 1.223 log @PR port-sh3/56311 Document -O0 workaround for initdecl() in doc/HACKS. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.222 2021/07/06 12:42:12 thorpej Exp $ d1004 1 d1007 5 a1011 3 descr GCC 9 and 10 miscompile initdecl() due to improper use of scratch register, as described in the PR. Compiling this function with -O0 works around the problem. @ 1.222 log @Remove jemalloc and gdb hacks for alpha; root cause has been addressed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.221 2021/07/05 11:16:56 hgutch Exp $ d1000 10 @ 1.221 log @Update gcc9-sh3-lint - instead of disabling optimization for lex.c on sh3, rather revert the gcc change that (seemingly accidentally) broke this. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.220 2021/06/23 07:11:41 rillig Exp $ a952 11 port alpha hack GCC 7.4/8.3/9.3: userland binaries crash randomly (port-alpha/54307) cdate Fri Nov 1 20:43:35 UTC 2019 mdate Wed Dec 16 01:21:32 UTC 2020 who rin file src/external/bsd/jemalloc/lib/Makefile.inc: 1.11 descr GCC miscompiles rtree.c and tcache.c (for 7.4, 8.3, and 9.3) with optimization levels -O[12]. Compile these files with -O0, alternatively, compile whole jemalloc with -DJEMALLOC_DEBUG. kcah a979 11 port alpha hack compile __realpath in gdb/gnulib/canonicalize-lgpl.c with -O0 (PR/56153) cdate Sat May 8 08:24:49 EDT 2021 mdate Sat May 8 08:24:49 EDT 2021 who christos file src/external/gpl3/gdb/dist/gnulib/import/canonicalize-lgpl.c: 1.2 descr For alpha gcc-9 and gcc-10 miscompile the malloca macro leading to allocation from the stack and freeing with regular free which causes a crash. kcah @ 1.220 log @lint1: add bug report for internal GCC compiler error @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.219 2021/06/22 13:02:52 martin Exp $ d1006 14 a1019 7 mdate Tue Jun 22 14:59:52 CEST 2021 who martin file usr.bin/xlint/lint1/Makefile : 1.70 descr The in-tree gcc 9 crashes with an internal invalid opcode exception when using any kind of optimization on the lex.c file. Force -O0 for this file. @ 1.219 log @Document sh3* lint hack for gcc 9 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.218 2021/05/31 22:33:19 rin Exp $ d1013 1 @ 1.218 log @PR toolchain/55837 Get rid of -O0 hack for GDB for hard-float arm. This was necessary because libunwind did not support s0-s31. Note that for *most* cases (not all!), -O0 stops using VFP registers for general purposes. Also note that this hack was incomplete. We had to compile every functions with -O0, that can be unwinded. Otherwise, GDB crashed every time exceptions were raised. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.217 2021/05/08 12:27:21 christos Exp $ d1001 13 @ 1.217 log @mention gdb hack discovered by rin. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.216 2020/12/16 01:35:39 rin Exp $ a977 13 port arm hack compile gdb/dwarf2{expr,loc}.c with -O0 for GCC[89] (PR/54820, 54877) cdate Wed Apr 29 11:04:58 UTC 2020 mdate Thu Oct 8 17:00:00 JST 2020 who rin file src/external/gpl3/gdb/lib/libgdb/Makefile: 1.22 descr For earmv7hf{,eb}, GCC 8.4 and 9.3 miscompile dwarf2expr.c with -O[21]. For earmv5hf{,eb}, GCC 9.3 miscompiles dwarf2{expr,loc}.c with -O2 (GCC9 -O1 and GCC8 -O2 work fine). These result in GDB crash with ``gdb_exception_RETURN_MASK_ERROR''. For everyone's safety, compile these files with -O0 for all arm variants with GCC >= 8. kcah @ 1.216 log @-O0 hack was reintroduced to jemalloc/rtree.c for GCC9 on alpha. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.215 2020/12/02 14:20:19 wiz Exp $ d1003 11 @ 1.215 log @comparision -> comparison @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.214 2020/10/08 08:31:37 rin Exp $ d956 1 a956 1 mdate Wed Oct 7 16:00:00 JST 2020 d959 2 a960 2 descr GCC miscompiles rtree.c (for 7.4 and 8.3) and tcache.c (for 7.4, 8.3, and 9.3) with optimization levels -O[12]. Compile these files with -O0, @ 1.214 log @GCC 9.3 miscompiles dwarf2{expr,loc}.c with -O2 for earmv5hf{,eb} (-O1 is fine). This is a new regression introduced in GCC9. For everyone's safety, extend -O0 hack to dwarf2{expr,loc}.c for all arm variants with GCC >= 8. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.213 2020/10/07 07:35:28 rin Exp $ d303 1 a303 1 GCC 4.1 warns on pointer sign comparision/assignments and lots of @ 1.213 log @PR port-alpha/54307 GCC 9.3 seems to be able to compile rtree.c with -O2: - No new regressions in ATF. - System survives over a night, at least, under heavy loads. On the other hand, unfortunately, GCC 9.3 still miscompiles tcache.c with -O2 or -O1. For example, even ``gcc -g hello.c'' fails with ICE if tcache.c is compiled with -O[12] in libc. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.212 2020/10/05 13:32:31 rin Exp $ d978 2 a979 2 port earmv7hf* hack compile gdb/dwarf2expr.c with -O0 for GCC[89] (toolchain/54820, 54877) d981 1 a981 1 mdate Mon Oct 5 22:30:00 JST 2020 d984 5 a988 4 descr GCC 8.4 and 9.3 miscompile dwarf2expr.c with -O[21], which results in crashes with 'gdb_exception_RETURN_MASK_ERROR'. Note that this occurs only for earmv7hf{,eb} as far as I can see. Neither earmv6hf{,eb} nor earmv7{,eb} (softfloat) are affected. @ 1.212 log @Update gdb/dwarf2expr.c hack for earmv7hf{,eb}; the situation does not change even for GCC 9.3 with ``memcmp'' fix. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.211 2020/10/05 13:20:30 rin Exp $ d954 1 a954 1 hack GCC 7.4/8.3: userland binaries crash randomly (port-alpha/54307) d956 1 d959 3 a961 2 descr rtree.c and tcache.c need to be compiled with -O0, alternatively, you can compile whole jemalloc with -DJEMALLOC_DEBUG. @ 1.211 log @Update aes_ccm_tag() hack for m68k. Even with ``memcmp fix'', GCC 9.4 miscompiles this function for -O[12]. But the situation was slightly changed from that with GCC 8.3: * -O0 and -O1 work but -O2 fails for 68060 and 68040 (real hardware) * -O0 and -O2 work but -O1 fails for 68020 and 68010 (TME) @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.210 2020/10/05 10:44:09 rin Exp $ d977 1 a977 1 hack compile gdb/dwarf2expr.c with -O0 for GCC8 (toolchain/54820 and 54877) d979 1 d982 1 a982 1 descr GCC 8.4 miscompiles dwarf2expr.c with -O2 or -O1, which results in @ 1.210 log @Remove -fno-omit-frame-pointer hack for sun2 kernel. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.209 2020/09/18 14:09:47 christos Exp $ d988 1 a988 1 hack compile aes_ccm_tag() with -O0 for GCC8 d990 1 d993 5 a997 7 descr GCC 8.4 miscompiles aes_ccm_tag() for m68k with optimization level -O[12], which results in failure in aes_ccm_selftest(). This is observed for amiga (A1200, 68060), mac68k (Quadra 840AV, 68040), and luna68k (nono, 68030 emulator). However, it is not for sun3 (TME, 68020 emulator) and sun2 (TME, 68010 emulator). At the moment, it is unclear whether this is due to differences b/w 68010-20 vs 68030-60, or something wrong with TME. @ 1.209 log @mention strtod hack @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.208 2020/08/10 06:46:27 rin Exp $ a999 12 port sun2 hack compile kernel with -fno-omit-frame-pointer for GCC8 cdate Mon Aug 10 06:28:42 UTC 2020 who rin file src/sys/arch/sun2/conf/Makefile.sun2: 1.25 descr Work around for reproducible kernel freezes just after ``Starting postfix.'', where I cannot even enter DDB nor obtain crash dump. I still haven't figured out why. Possibly something wrong with -Os optimization level for GCC/m68k, cf., http://mail-index.netbsd.org/port-sun3/2020/07/19/msg000166.html kcah @ 1.208 log @Add hacks for GCC8 vs m68k ports: compile aes_ccm_tag() with -O0 for GCC8 http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/crypto/aes/aes_ccm.c#rev1.5 compile kernel with -fno-omit-frame-pointer for GCC8 http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sun2/conf/Makefile.sun2#rev1.25 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.207 2020/05/10 06:38:24 maxv Exp $ d43 1 a43 1 file lib/libpthread/Makefile 1.92 -> 1.94 d49 8 @ 1.207 log @Pass -Wno-unused-command-line-argument for LLVM, discussed on tech-toolchain@@. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.206 2020/05/06 14:33:52 snj Exp $ d978 26 @ 1.206 log @netsmb is no more @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.205 2020/04/30 12:44:41 rin Exp $ d30 10 @ 1.205 log @Hack "gcc-4.5 arm without -fno-tree-vrp generate broken code" was removed in src/lib/libc/softfloat/Makefile.inc rev 1.21: http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/softfloat/Makefile.inc#rev1.21 Now, all tests mentioned in the entry are passed for softfloat arm. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.204 2020/04/30 12:35:01 rin Exp $ a173 2 file sys/netsmb/smb_smb.c : 1.27 file sys/netsmb/smb_trantcp.c : 1.22 @ 1.204 log @lmcconfig(8) was removed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.203 2020/04/30 12:32:16 rin Exp $ a606 19 hack gcc-4.5 arm without -fno-tree-vrp generate broken code cdate Wed Nov 14 13:02:02 JST 2012 who msaitoh file lib/libc/softfloat/Makefile.inc : 1.11 (hack removed) pr 46953 regress src/tests/lib/libm/t_cbrt regress src/tests/lib/libm/t_ceil regress src/tests/lib/libm/t_exp regress src/tests/lib/libm/t_log regress src/tests/lib/libm/t_scalbn regress src/tests/lib/libm/t_sinh regress src/tests/lib/libm/t_sqrt descr Gcc has a bug in tree optimization. For adddf3, -INF + -INF returns 0 without -fno-tree-vrp. Debugging with -fdump-tree-all shows that softfloat.c.021t.cleanup_cfg is ok but softfloat.c.023t.ssa is broken. kcah @ 1.203 log @Add missing dates and revisions. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.202 2020/04/29 11:08:40 rin Exp $ a513 1 file usr.sbin/lmcconfig/Makefile : 1.2 (file removed) a528 3 usr.sbin/lmcconfig/lmcconfig.c:939:3: internal compiler error: in reload_combine_note_use, at postreload.c:1561 @ 1.202 log @PR toolchain/54820 PR toolchain/54877 earmv7hf{,eb}: compile gdb/dwarf2expr.c with -O0 for GCC8 http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gdb/lib/libgdb/Makefile#rev1.22 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.201 2020/04/12 17:49:00 leot Exp $ d84 1 a84 1 file dev/ic/wireg.h d410 1 a410 1 cdate d412 1 a412 1 file sys/arch/vax/conf/Makefile.vax d507 9 a515 9 file distrib/utils/x_ping/Makefile file distrib/vax/miniroot/Makefile.inc file distrib/vax/ramdisk/Makefile file external/gpl3/gdb/lib/libdecnumber/Makefile file sbin/fsdb/Makefile file sbin/newfs_ext2fs/Makefile file sbin/ping/Makefile file usr.sbin/lmcconfig/Makefile file usr.sbin/mtrace/Makefile d614 1 a614 1 file lib/libc/softfloat/Makefile.inc d749 1 d773 1 a773 1 file src/gnu/dist/gcc4/gcc/config/rs6000/netbsd.h d847 1 a847 1 file src/usr.bin/rpcgen/rpc_main.c d923 1 d932 1 d942 1 @ 1.201 log @Hack removed in src/external/bsd/nvi/usr.bin/nvi/Makefile,-r1.21 It is no longer needed, per PR bin/54656. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.200 2020/04/04 16:25:17 jdolecek Exp $ d978 11 @ 1.200 log @smbfs is no more @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.199 2020/01/30 00:43:58 christos Exp $ a902 8 port aarch64 hack compile ex_filter.c in vi with -O0 cdate Mon Oct 28 14:39:35 EDT 2019 who christos file /cvsroot/src/external/bsd/nvi/usr.bin/nvi/Makefile 1.20 descr ":%! sort" core-dumps, tm is NULL but was not NULL on entry. kcah @ 1.199 log @more like this @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.198 2020/01/29 23:44:00 christos Exp $ a129 1 file dist/smbfs/lib/smb/rap.c : 1.6 a235 1 file sbin/mount_smbfs/Makefile : 1.4 @ 1.198 log @same hack different place @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.197 2020/01/29 22:43:53 christos Exp $ d976 1 a976 1 hack compile tc.c, logerr.c with -O0 for clang d981 3 a983 1 descr Disable optimization on tc.c, logerr.c crashes: @ 1.197 log @powepc/clang hack @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.196 2019/11/03 07:10:42 rin Exp $ d976 1 a976 1 hack compile tc.c with -O0 for clang d980 2 a981 1 descr Disable optimization on tc.c, crashes: @ 1.196 log @Describe that both GCC 7.4 and 8.3 fail in the last entry. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.195 2019/11/01 20:55:55 rin Exp $ d974 11 @ 1.195 log @Describe workaround for PR port-alpha/54307. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.194 2019/10/30 00:26:54 christos Exp $ d967 1 a967 1 hack userland binaries crash randomly (port-alpha/54307) @ 1.194 log @more hacks @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.193 2019/10/29 21:32:35 christos Exp $ d965 9 @ 1.193 log @sh3 now @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.192 2019/10/29 21:16:25 christos Exp $ d922 8 @ 1.192 log @gcc lossage @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.191 2019/10/28 18:41:23 christos Exp $ d913 9 @ 1.191 log @another vax -O1 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.190 2019/05/14 02:53:16 maya Exp $ d905 8 @ 1.190 log @Add a hack entry for libpthread one section @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.189 2019/04/03 21:40:24 christos Exp $ d897 8 @ 1.190.2.1 log @Pull up following revision(s) (requested by rin in ticket #392): doc/HACKS: revision 1.195 doc/HACKS: revision 1.196 external/bsd/jemalloc/lib/Makefile.inc: revision 1.11 external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h: revision 1.11 PR/54307: Rin Okuyama: Lots of jemalloc assertions in latest -current Workaround for random crash of userland binaries, as reported in PR port-alpha/54307. If rtree.c and tcache.c are compiled with -O0, userland just works without problems as far as I can see. Alternately, you can specify -DJEMALLOC_DEBUG to avoid random crash. Smells like compiler bug, or wrong coding which relies on some undefined behavior. Anyway, we need to pull this up into netbsd-9 asap. Describe workaround for PR port-alpha/54307. Describe that both GCC 7.4 and 8.3 fail in the last entry. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.190 2019/05/14 02:53:16 maya Exp $ a931 9 port alpha hack GCC 7.4/8.3: userland binaries crash randomly (port-alpha/54307) cdate Fri Nov 1 20:43:35 UTC 2019 who rin file src/external/bsd/jemalloc/lib/Makefile.inc: 1.11 descr rtree.c and tcache.c need to be compiled with -O0, alternatively, you can compile whole jemalloc with -DJEMALLOC_DEBUG. kcah @ 1.189 log @mention rtld vax hack @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.188 2019/04/03 20:34:18 scole Exp $ d30 9 @ 1.188 log @Remove obsoleted ia64 gcc 4.5.3 hacks @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.187 2017/04/09 19:02:23 scole Exp $ d914 9 @ 1.187 log @Add ia64 ski emulator hack @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.186 2017/03/11 09:12:13 maya Exp $ a813 36 hack libc hesiod.c file does not compile with -O2 (internal compiler error in gcc 4.5.3) cdate Thu Dec 27 08:05:43 CET 2012 who martin file src/lib/libc/net/Makefile.inc: 1.82 descr workaround for: {standard input}: Assembler messages: {standard input}:1507: Warning: Use of 'mov' may violate WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 15 {standard input}:1506: Warning: This is the location of the conflicting usage {standard input}: Error: 2 warnings, treating warnings as errors kcah hack libelf libelf_extended.c compiler error in gcc 4.5.3 cdate Thu Dec 27 09:05:51 CET 2012 who martin file src/external/bsd/libelf/lib/Makefile: 1.3 descr workaround for: {standard input}: Assembler messages: {standard input}:87: Warning: Use of 'adds' may violate RAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 33 {standard input}:87: Warning: Only the first path encountering the conflict is reported {standard input}:85: Warning: This is the location of the conflicting usage kcah hack compiler error with gcc 4.5.x cdate Thu Dec 27 15:15:25 CET 2012 who martin file src/crypto/external/bsd/netpgp/lib/verify/Makefile: 1.5 descr workaround for: {standard input}: Assembler messages: {standard input}:22979: Warning: Use of 'mov' may violate WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 8 {standard input}:22978: Warning: This is the location of the conflicting usage kcah @ 1.187.10.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.190 2019/05/14 02:53:16 maya Exp $ a29 9 hack static linking with libpthread mdate 7 May 2019 who maya file lib/libpthread/Makefile 1.92 -> 1.94 descr To avoid some libc thread stub functions being picked up in static builds, link pthread as one section. kcah d814 36 a949 9 port vax hack compile rtld.c with -O0 cdate Wed Apr 3 17:38:38 EDT 2019 who christos file src/libexec/ld.elf_so/Makefile: 1.141 descr Disable optimization for rtld.c on the vax with gcc-7. Crashes on the second pass loop with elm == 0xffffffff kcah @ 1.187.10.2 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 1 # $NetBSD$ d130 1 d237 1 a896 33 port vax hack compile nir.c in gallium with -O1 cdate Mon Oct 28 14:39:35 EDT 2019 who christos file /cvsroot/src/external/mit/xorg/lib/gallium/Makefile 1.36 descr gallium does not compile. kcah port aarch64 hack compile ex_filter.c in vi with -O0 cdate Mon Oct 28 14:39:35 EDT 2019 who christos file /cvsroot/src/external/bsd/nvi/usr.bin/nvi/Makefile 1.20 descr ":%! sort" core-dumps, tm is NULL but was not NULL on entry. kcah port sh3 hack compile parse.c in battlestar with -Wno-restrict cdate Mon Oct 28 14:39:35 EDT 2019 who christos file /cvsroot/src/games/battlestar/Makefile 1.11 descr fails to compile, confused by char words[][]; strcpy(words[n - 1], words[n + 1]); kcah port sh3 hack compile ddns.c in dhcpcd with no-stringop-overflow cdate Tue Oct 29 20:25:59 EDT 2019 who christos file /cvsroot/src/external/mpl/dhcp/bin/server/Makefile 1.2 descr fails to compile, confused by builtin_object_size in strcat(p, ".in..") kcah a931 23 port alpha hack GCC 7.4/8.3: userland binaries crash randomly (port-alpha/54307) cdate Fri Nov 1 20:43:35 UTC 2019 who rin file src/external/bsd/jemalloc/lib/Makefile.inc: 1.11 descr rtree.c and tcache.c need to be compiled with -O0, alternatively, you can compile whole jemalloc with -DJEMALLOC_DEBUG. kcah port powerpc hack compile tc.c, logerr.c, ubsan.c with -O0 for clang cdate Wed Jan 29 17:40:19 EST 2020 who christos file src/external/bsd/atf/lib/libatf-c/Makefile: 1.22 file src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile: 1.49 file src/tests/lib/libc/misc/Makefile: 1.5 descr Disable optimization on tc.c, logerr.c, ubsan.c crashes: lib/libLLVMCodeGen/../../llvm/../../external/apache2/llvm/lib/..\ /dist/llvm/include/llvm/CodeGen/MachineFrameInfo.h", line 495, \ function "__int64_t llvm::MachineFrameInfo::getObjectOffset(int) const" kcah @ 1.187.10.3 log @Sync with HEAD @ text @d903 8 @ 1.186 log @Remove already fixed HACKS entry. correct path to makeinfo Makefile for easy reference. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.185 2017/02/22 12:17:16 maya Exp $ d940 10 @ 1.185 log @GC some GCC 4.8 specific sh3 HACKS entries. These existed to avoid compile errors, and haven't been effect since gcc.old was removed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.184 2017/02/16 01:05:01 rin Exp $ a334 11 hack MKPIE ldscript for /usr.sbin/crash cdate 22 April 2010 who christos file src/usr.sbin/crash/Makefile : 1.5 file src/usr.sbin/crash/ldscript.crash : 1.1 pr N/A descr fixed in binutils-2.20.1. Linking with MKPIE=yes causes overlapping sections kcah d338 1 a338 1 file src/gnu/usr.bin/texinfo/makeinfo/Makefile : 1.8 @ 1.184 log @sorry, correct English grammer @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.183 2017/02/16 01:02:28 rin Exp $ a646 41 port sh3eb hack gcc4.8.1 cdate Thu Nov 7 16:31:23 EST 2013 who christos file src/sys/rump/net/lib/libnetbt/Makefile : 1.2 desrc for profiling compile l2cap_signal.c with -O0 to avoid: ./netbt/l2cap_signal.c:36: /p/netbsd/cvsroot/src/sys/rump/net/lib/libnetbt/../../../../\ netbt/l2cap_signal.c: In function 'l2cap_recv_signal': ./sh3/byte_swap.h:20:2: error: 'asm' operand requires \ impossible reload __asm volatile ("swap.b %1,%0" : "=r"(rval) : "r"(x)); kcah port sh3el hack gcc4.8.1 cdate Fri Nov 8 19:27:01 EST 2013 who christos file src/external/bsd/libevent/lib/libevent/Makefile : 1.2 desrc for profiling compile evdns.c with -O0 to avoid: ./sh3/byte_swap.h:20:2: error: 'asm' operand requires \ impossible reload __asm volatile ("swap.b %1,%0" : "=r"(rval) : "r"(x)); kcah hack gcc4.8.1 cdate Fri Nov 8 19:34:48 EST 2013 who christos file src/usr.sbin/racoon/Makefile : 1.27 desrc for profiling compile ipsec_doi.c with -O0 to avoid: ./sh3/byte_swap.h:20:2: error: 'asm' operand requires \ impossible reload __asm volatile ("swap.b %1,%0" : "=r"(rval) : "r"(x)); kcah @ 1.183 log @lcWrap.c is miscompiled on vax, which results in input failure via XIM. Besides, some clients, e.g., pkgsrc/x11/kterm, receives SIGSEGV. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.182 2017/02/14 09:59:16 rin Exp $ d575 1 a575 1 Besides, some clients, e.g., pkgsrc/x11/kterm, receives SIGSEGV. @ 1.182 log @also compile poly1305.c with -O0 on vax to address ssh login failure from/to some hosts @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.181 2017/02/14 09:07:35 rin Exp $ d569 9 @ 1.181 log @correct grammar @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.180 2017/02/14 09:05:17 rin Exp $ d552 2 a553 1 date Tue Feb 14 17:58:06 JST 2017 d557 2 a558 2 umac.c is miscompiled, which results in login failure to/from external hosts via ssh. @ 1.180 log @add hack for libmandoc on vax: mandoc(1) receives SIGILL in in_line_argn() from mdoc_macro.c @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.179 2017/02/14 09:00:03 rin Exp $ d556 2 a557 2 umac.c is miscompiled, which results in login to/from external hosts via ssh fails. @ 1.179 log @add hack for libssh on vax @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.178 2017/02/13 22:31:09 rin Exp $ d560 8 @ 1.178 log @PR port-vax/51967 GCC 5.4 aborts on vax due to SIGILL for cc1 As a workaround, compile dse.c with -O0. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.177 2017/02/11 04:59:01 christos Exp $ d551 9 @ 1.177 log @add sparc64 hack @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.176 2017/02/08 23:13:59 rin Exp $ d541 10 @ 1.176 log @Remove ifconfig hack on m68000. I've confirmed that the problem has already gone with TME. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.175 2016/10/20 07:33:28 he Exp $ d945 10 @ 1.175 log @Per the discussion in PR#20924, remove the HACK entry for intvec.S on vax. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.174 2016/06/15 14:11:15 riastradh Exp $ a334 13 hack avoid gcc4 -O1 bug in loop optimize cdate 29 November 2008 who tsutsui file src/sbin/ifconfig/Makefile : 1.39 pr 40036 40066 descr gcc -O1 seems to generate wrong code in loop optimize so that ifconfig lo0 inet6 doesn't return error even if a kernel doesn't have IPv6 support. (see the above PRs for details) For workaround, specify -fno-loop-optimize on m68000, which uses -O1 by default. kcah @ 1.175.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.187 2017/04/09 19:02:23 scole Exp $ d335 24 d362 1 a362 1 file src/external/gpl2/texinfo/bin/makeinfo/Makefile : 1.1 a553 37 hack gcc 5.4 cc1 miscompile date Tue Feb 14 07:19:57 JST 2017 who rin pr port-vax/51967 file external/gpl3/gcc/usr.bin/backend/Makefile : 1.35 descr cc1 aborts due to SIGILL when compiling the sample code attached to the PR. As a workaround, compile dse.c with -O0. kcah hack libssh miscompile cdate Tue Feb 14 17:58:06 JST 2017 mdate Tue Feb 14 18:57:39 JST 2017 who rin file crypto/external/bsd/openssh/lib/Makefile : 1.20 descr poly1305.c and umac.c are miscompiled, which results in login failure to/from external hosts via ssh. kcah hack mandoc miscompile date Tue Feb 14 18:03:05 JST 2017 who rin file external/bsd/mdocml/lib/libmandoc/Makefile : 1.8 descr mandoc(1) receives SIGILL in in_line_argn() from mdoc_macro.c. kcah hack libX11 miscompile date Thu Feb 16 10:00:22 JST 2017 who rin file src/external/mit/xorg/lib/libX11/Makefile.libx11 : 1.18 descr lcWrap.c is miscompiled, which results in input failure via XIM. Besides, some clients, e.g., pkgsrc/x11/kterm, receive SIGSEGV. kcah d623 41 a957 20 port sparc64 hack during profiling with -m32 (and ASLR) labels are not generated consistently who christos file /cvsroot/src/crypto/external/bsd/heimdal/lib/libasn1/Makefile: 1.4 desc asn1_krb5_asn1.po does not produce the same results during successive compilation runs; it is bimodal. Turning optimization to -O0 fixes the issue kcah port ia64 hack ski emulator crashes who scole file /cvsroot/src/sys/external/bsd/acpica/dist/tables/tbxfload.c: 1.6 desc ski emulator crashes during acpi detection. Added a check for uninitialized index. Submitted a request for change with upstream mailing list, but never got a response kcah @ 1.174 log @Remove dumplfs from the list now that it seems strict-aliasing-safe. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.173 2016/06/15 13:57:26 riastradh Exp $ a443 11 hack vax Toolchain bug cdate 28 Mar 2003 who he file sys/arch/vax/vax/intvec.S : 1.5 descr Workaround for PR toolchain/20924. The assembler apparently tries to range-check byte offsets when it doesn't have sufficient information to make that decision. Workaround uses `brw' instead of `brb' instruction. kcah @ 1.174.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.175 2016/10/20 07:33:28 he Exp $ d444 11 @ 1.174.2.2 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.186 2017/03/11 09:12:13 maya Exp $ d335 24 d362 1 a362 1 file src/external/gpl2/texinfo/bin/makeinfo/Makefile : 1.1 a553 37 hack gcc 5.4 cc1 miscompile date Tue Feb 14 07:19:57 JST 2017 who rin pr port-vax/51967 file external/gpl3/gcc/usr.bin/backend/Makefile : 1.35 descr cc1 aborts due to SIGILL when compiling the sample code attached to the PR. As a workaround, compile dse.c with -O0. kcah hack libssh miscompile cdate Tue Feb 14 17:58:06 JST 2017 mdate Tue Feb 14 18:57:39 JST 2017 who rin file crypto/external/bsd/openssh/lib/Makefile : 1.20 descr poly1305.c and umac.c are miscompiled, which results in login failure to/from external hosts via ssh. kcah hack mandoc miscompile date Tue Feb 14 18:03:05 JST 2017 who rin file external/bsd/mdocml/lib/libmandoc/Makefile : 1.8 descr mandoc(1) receives SIGILL in in_line_argn() from mdoc_macro.c. kcah hack libX11 miscompile date Thu Feb 16 10:00:22 JST 2017 who rin file src/external/mit/xorg/lib/libX11/Makefile.libx11 : 1.18 descr lcWrap.c is miscompiled, which results in input failure via XIM. Besides, some clients, e.g., pkgsrc/x11/kterm, receive SIGSEGV. kcah d623 41 a957 10 port sparc64 hack during profiling with -m32 (and ASLR) labels are not generated consistently who christos file /cvsroot/src/crypto/external/bsd/heimdal/lib/libasn1/Makefile: 1.4 desc asn1_krb5_asn1.po does not produce the same results during successive compilation runs; it is bimodal. Turning optimization to -O0 fixes the issue kcah @ 1.174.2.3 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.187 2017/04/09 19:02:23 scole Exp $ a939 10 port ia64 hack ski emulator crashes who scole file /cvsroot/src/sys/external/bsd/acpica/dist/tables/tbxfload.c: 1.6 desc ski emulator crashes during acpi detection. Added a check for uninitialized index. Submitted a request for change with upstream mailing list, but never got a response kcah @ 1.173 log @No more obvious strict aliasing violations here. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.172 2016/06/15 13:47:26 riastradh Exp $ a255 1 file usr.sbin/dumplfs/Makefile : 1.11 @ 1.172 log @Kill another strict aliasing violation. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.171 2016/06/15 13:29:30 riastradh Exp $ a278 1 file usr.sbin/rtadvd/Makefile : 1.9 @ 1.171 log @This hack no longer exists since the switch to ipsec-tools in 2005. Another strict-aliasing problem killed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.170 2016/06/15 05:01:58 mrg Exp $ a280 1 file usr.sbin/wiconfig/Makefile : 1.3 @ 1.170 log @replace the previous hack with something that i believe is actually correct and, more importantly ;), works properly. thanks for riastradh for hints about which bit was actually broken. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.169 2016/06/15 02:12:14 mrg Exp $ a105 14 hack gcc-strict-aliasing cdate 6 August 2004 who junyoung pr 26516 file src/usr.sbin/racoon/racoon/Makefile : 1.21 descr GCC issues a warning "dereferencing type-punned pointer will break strict-aliasing rules" when compiling crypto/dist/kame/racoon/crypto/openssl.c with -O[23s]. Note that this is due to use of type casting in a non-standard way in the code and not a compiler bug. Once a new release of KAME with a proper fix applied is imported this should be backed out. kcah @ 1.169 log @build convert_endian() with "no-strict-aliases" optimiser attribute to avoid some unknown miscompilation in endian_convert() that causes ssh to exit on some output (for me, "cc -v".) note in HACKS. we should investigate this further if possible as this seems to indicate a strict aliasing violation. there certainly are 32 and 64 bit object arrays being accessed with 8 bit accessors, but i don't have time currently. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.168 2016/06/04 11:25:43 joerg Exp $ a637 12 hack gcc-5.3 arm and openssh and -fstrict-aliases cdate Tue Jun 14 19:05:51 PDT 2016 who mrg file crypto/external/bsd/openssh/dist/umac.c : 1.10 pr descr GCC has some yet-unknown code-gen problem on ARM with this file that leads to SSH giving errors and dropping connections. The bpw=8 path of endian_convert(), if compiled with "no-strict-aliases" optimiser attribite, works. The same problem exist with GCC 5.3 and 5.4. kcah @ 1.168 log @Drop CSU entry. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.167 2016/05/10 19:32:47 mrg Exp $ d638 12 @ 1.167 log @move the ufs_lookup hack to the global section and update it to current reality. add a section for the crt hacks. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.166 2016/05/04 22:42:40 christos Exp $ a29 14 hack gcc-5.3 miscompiles crt* leading to ctor/dtor related crashes mdate 10 May 2016 who mrg martin file lib/csu/common/Makefile.inc : 1.26, 1.27, 1.31 descr GCC assumes non-constant data is constant and assumes that it can generate direct calls out of the ctor/dtor space, which generally breaks their usage. On SPARC, an explicit call to 0 is generated as "clr %g1; call %g1", for example. Compiling with -O1 fixes this problem. pr 51121 kcah @ 1.166 log @mention libmalloc hack @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.165 2016/04/28 21:18:23 mrg Exp $ d30 14 d53 10 a818 8 hack turn off -ftree-vrp for ufs_lookup.c who mrg file src/sys/arch/amd64/conf/Makefile.amd64 : 1.54 descr with -ftree-vrp enabled in ufs_lookup.c sometimes bad dir panicks are see. see PR 51094. hcah @ 1.165 log @note the -fno-tree-vrp hack for amd64. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.164 2016/01/12 23:03:33 christos Exp $ d30 9 @ 1.164 log @vax does not use gcc 2.95 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.163 2016/01/11 22:50:35 christos Exp $ d786 8 @ 1.163 log @Add hack for cabs{,f,l} in @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.162 2015/08/27 12:32:05 pooka Exp $ a441 41 hack gcc 2.95/vax doesn't like abort being used as function pointer cdate Tue Dec 13 05:54:50 GMT 2005 who jmc file lib/libc/rpc/svc_vc.c 1.15 descr Provide a local definition for abort which doesn't include the noreturn attribute which trips up gcc 2.95 on vax. kcah hack gcc 2.95/vax doesn't have stdbool.h and gettext needs it cdate Mon May 9 12:16:22 CDT 2005 who jmc file gnu/usr.bin/gettext/Makefile.inc.prog 1.5 gnu/usr.bin/gettext/libgrep/Makefile 1.3 gnu/usr.bin/gettext/libnlspr/Makefile 1.5 gnu/usr.bin/gettext/libnlsut/Makefile 1.3 descr The latest gettext assumes a C99 environment or at least configure checks to work around this. As we don't use configure provide a stdbool.h for vax builds locally in directories from the template provided by the gettext code. kcah hack gcc 2.95/vax cannot handle __builtin_ffs() cdate Fri Aug 23 21:31:15 CEST 2002 who ragge file sys/lib/libkern/libkern.h : 1.42 descr __builtin_ffs() is ifdef'd away if __vax__. Matt Thomas has added this feature to GCC 3 so it can be removed when switching. kcah hack gcc 2.95/vax libbz2 mdate 27 Jun 2002 who thorpej file lib/libbz2/Makefile descr libbz2 is mis-compiled with optimization with GCC 2.95.3 on VAX. -O0 works around this problem. kcah a452 41 hack vax gcc 2.95.3 -Wuninitialized workarounds cdate 6 Nov 2003 who he file sys/dev/bi/if_ni.c : 1.22 file sys/arch/vax/vax/ctu.c : 1.20 descr Workaround for gcc 2.95.3 failing to detect that certain variables will be initialized; so that this code compiles with -Wuninitialized. Should be reviewed and possibly reverted when gcc 3.3.2 is ready for vax. kcah hack vax gcc 2.95.3 structure initialization cdat 13 May 2004 who cl file sys/miscfs/kernfs/kernfs_vnops.c : 1.104 descr Workaround for gcc 2.95.3 failing to initialize structures and/or unions inside structures using nested designators. Should be reverted when gcc >=3.3.3 is ready for vax. kcah hack vax gcc 2.95.3 needs -I. to build nslexer.c cdat 6 Jun 2004 who mhitch file lib/libc/arch/vax/Makefile.inc : 1.6 descr It appears necessary to add -I. to CPPFLAGS when building nslesxer.c. This may be caused by gcc 2.95.3 being used. Should be reverted when a newer gcc is ready for vax. kcah hack vax gcc 2.95.3 doesn't understand "-std=c99" cdat 5 April 2005 who tron file src/share/mk/bsd.sys.mk descr We cannot use "-std=c99" for compiler warning level 4 and above because gcc 2.95.3 doesn't support that option. kcah @ 1.162 log @update c++/volatile/constexpr entry @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.161 2015/07/23 08:03:25 mrg Exp $ d405 17 @ 1.161 log @remove the xfree86 reachover makefiles and the vast majority of the support in the rest of the source tree. X11 sets could use some cleaning up perhaps (just deletion, as we've never really marked the old X11R6 as obsolete for native xorg using platforms so far either.) @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.160 2015/06/26 10:25:41 pooka Exp $ d384 2 a385 2 hack g++ 5.1 barfs on volatile in initializers cdata 26 Jun 2015 d387 1 a387 2 file src/lib/libpthread/pthread_types.h : 1.14 file src/lib/libpthread/pthread_types.h : 1.15 @ 1.160 log @document g++ 5.1 + libpthread volatile workaround (PR lib/49989) @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.159 2015/05/08 09:44:45 martin Exp $ a969 1 src/x11/lib/GLU/Makefile: 1.9 @ 1.159 log @Remove mips-kern-ksyms-size, now that it is already gone @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.158 2015/05/08 07:44:59 martin Exp $ d384 22 @ 1.158 log @Document mips64 kernel symbol table hack @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.157 2015/04/17 12:40:17 martin Exp $ a804 9 hack mips-kern-ksyms-size cdate Fri May 8 09:42:03 CEST 2015 who martin file /src/sys/kern/kern_ksyms_buf.c : 1.2 descr Woraround a bfd/ld/dbsym bug that miscalculates the neede size of the symbol table, making COPY_SYMTAB fail due to a slightly too small target buffer. kcah @ 1.157 log @Note ia64/gcc hack for mknative @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.156 2015/03/30 05:30:08 matt Exp $ d805 9 @ 1.156 log @note change to workaround bug in clang's arm integrated assembler. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.155 2015/03/05 10:21:02 skrll Exp $ d931 10 @ 1.155 log @Rename hp700 to hppa and note new ld.elf_so hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.154 2014/12/22 21:20:11 dennis Exp $ d996 6 @ 1.154 log @Remove note of hack around for riscv compiler problems with atomics. This seems to now be fixed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.153 2014/12/02 08:31:18 dennis Exp $ d955 1 a955 1 port hp700 d965 11 @ 1.153 log @Note riscv compiler workarounds for libasan @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.152 2014/06/13 01:17:46 mrg Exp $ a984 12 port riscv64 hack compile a couple of libasan files at -O0 for riscv64 cdate Tue Dec 2 16:17:48 HKT 2014 who dennis file src/external/gpl3/gcc/lib/libasan/Makefile: 1.8 descr Attempting to compile the libasan files asan_allocator2.cc and sanitizer_netbsd.cc with gcc 4.8.3 at any optimization level other than -O0 results in an internal compiler error. The compiler seems to have trouble around C11 atomics in particular. pr 49425 kcah @ 1.152 log @remove the build support for GCC 4.1, and any hacks i found for it. there could still be more -- i only looked for lines matching both "HAVE_GCC" and "4" as words (grep -w.) @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.151 2014/05/28 21:51:18 abs Exp $ d985 12 @ 1.151 log @Add a hack entry for lib/libcurses/Makefile workaround for lib/48827 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.150 2014/05/24 07:42:45 martin Exp $ a606 10 hack gcc -fno-guess-branch-probability cdate 28 May 2014 mdate 28 May 2014 who abs file lib/libcurses/Makefile : 1.69 descr sysinst crashes under vax gcc 4.1 after selecting partition sizes due to curses bug pr lib/48827 kcah @ 1.150 log @Note vax /boot hack @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.149 2014/05/13 18:55:07 macallan Exp $ d607 10 @ 1.149 log @mention workaround for PR48696 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.148 2014/04/07 21:20:17 christos Exp $ d976 9 @ 1.148 log @Add x86 bootblock hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.147 2014/04/05 17:06:44 tron Exp $ d964 12 @ 1.147 log @Document xauth(1) hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.146 2014/04/04 07:21:40 wiz Exp $ d818 12 @ 1.147.2.1 log @Rebase. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.152 2014/06/13 01:17:46 mrg Exp $ a817 12 port x86 hack turn off optimization for biosdisk_ll.c because otherwise we are pass the wrong arguments to biosdisk_read(). $ cd /usr/src/sys/arch/i386/floppies/bootflopp-com $ qemu-system-i386 -nographic -fda boot-com1.fs -boot a who christos file src/sys/arch/i386/stand/lib/Makefile : 1.38 descr Turning on DISK_DEBUG shows the problem. We should find out which option is causing this. hcah a951 21 port mips64* hack compiler crashes on mips64* with optimization enabled cdate Tue May 13 18:46:48 UTC 2014 who macallan file src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc: 1.6 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h: 1.5 src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/Makefile.inc: 1.6 src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.h: 1.5 descr workaround for n32 gcc doing unaligned 64bit accesses when optimizing pr 48696 kcah port vax hack compile boot with -O1 cdate Sat May 24 09:40:58 CEST 2014 who martin file src/sys/arch/vax/boot/boot/Makefile: 1.41 descr /boot does not work when compiled with -O2 and gcc 4.8 kcah @ 1.146 log @Fix typo. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.145 2014/04/04 01:23:34 christos Exp $ d368 16 @ 1.145 log @add ctfconvert bug. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.144 2014/03/24 23:03:21 tron Exp $ d285 1 a285 1 who chritos @ 1.144 log @Document makeinfo(1) hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.143 2013/11/16 17:14:06 skrll Exp $ d283 11 @ 1.143 log @Remove hack now it's fixed in 4.8.2 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.142 2013/11/13 11:06:53 skrll Exp $ d346 11 @ 1.142 log @Apply hack for gcc 4.8 bug on rtld.c. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.141 2013/11/09 21:38:57 christos Exp $ a893 10 port x86_64 hack gcc 4.8 gcc miscompiles cdate Wed Nov 13 10:16:00 GMT 2013 who skrll file libexec/ld.elf_so/Makefile:1.124 descr Incorrect code for rtld.o is produced with -fipa-cp-clone - stack becomes unaligned in _rtld_unload_object. kcah @ 1.141 log @mention gcc-4.8 hacks for the vax @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.140 2013/11/09 16:05:39 christos Exp $ d894 10 @ 1.140 log @document fsdb bug @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.139 2013/11/09 00:35:00 christos Exp $ d520 1 a520 1 hack gcc >= 4.5 fsdb miscompile d523 1 a523 1 file src/sbin/fsdb/Makefile : 1.35 (and earlier) d536 33 d699 1 a699 1 port m68k,sh3 d704 1 a704 1 file src/external/gpl3/gcc/libstdc++/Makefile @ 1.139 log @and another @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.138 2013/11/09 00:29:47 christos Exp $ d520 16 @ 1.138 log @another 4.8.1 hack; make more specific and add more info @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.137 2013/11/07 21:33:59 christos Exp $ d617 12 @ 1.137 log @another gcc-4.8.1 workaround @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.136 2013/11/07 01:47:59 joerg Exp $ d589 1 d595 1 d605 13 @ 1.136 log @Grammar fix. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.135 2013/11/07 01:43:08 christos Exp $ d589 13 @ 1.135 log @mention template instantiation workaround @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.134 2013/07/24 11:45:48 skrll Exp $ d810 1 a810 1 It is undecided which compiler owns /usr/bin/cpp whether it should @ 1.134 log @There wasn't a codegen bug - the test program itself was buggy. Nothing to see hear... move along. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.133 2013/07/23 14:52:07 skrll Exp $ d610 11 @ 1.133 log @Another codegen bug that fixes (in this case lots of) atf tests. rump_server doesn't die so much now. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.132 2013/07/23 14:47:54 skrll Exp $ a809 9 file src/tests/lib/libc/sys/Makefile: 1.32 descr workaround for codegen bug affecting t_msgrcv.c. Callee saved (%r4) corruption. kcah hack compiler error with gcc 4.5.x cdate Tue Jul 23 07:42:28 BST 2013 who skrll @ 1.132 log @Add revision to previous @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.131 2013/07/23 07:04:18 skrll Exp $ d816 7 @ 1.131 log @Compile tests/lib/libc/sys/t_msgrcv with -O0 on hppa to avoid compiler bug. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.130 2013/06/05 13:54:26 joerg Exp $ d810 1 a810 1 file src/tests/lib/libc/sys/Makefile: @ 1.130 log @If /usr/bin/cpp is not executable and RPCGEN_CPP was not set, try /usr/bin/clang-cpp. This allows rpcgen to work in a clang-only release build. Document hack to be resolved when the final decision about /usr/bin/cpp and friends is made. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.129 2013/06/03 23:02:43 christos Exp $ d804 12 @ 1.130.2.1 log @sync with HEAD @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.133 2013/07/23 14:52:07 skrll Exp $ a803 19 port hp700 hack compiler error with gcc 4.5.x cdate Tue Jul 23 07:42:28 BST 2013 who skrll file src/tests/lib/libc/sys/Makefile: 1.32 descr workaround for codegen bug affecting t_msgrcv.c. Callee saved (%r4) corruption. kcah hack compiler error with gcc 4.5.x cdate Tue Jul 23 07:42:28 BST 2013 who skrll file src/sys/lib/libkern/Makefile.libkern: 1.26 descr workaround for unanalysed codegen bug affecting md5c.c. kcah @ 1.129 log @more vax Makefile damage @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.128 2013/05/24 17:54:36 christos Exp $ d793 11 @ 1.128 log @mention x68k hacks. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.127 2012/12/27 14:16:57 martin Exp $ d488 1 a488 1 cdat 30 July 2008 d491 1 a491 1 external/mit/xorg/lib/libX11/Makefile.libx11 : 1.2 @ 1.127 log @Note another ia64 compiler workaround @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.126 2012/12/27 08:07:36 martin Exp $ d781 1 d783 10 @ 1.126 log @Note libelf ia64 hack @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.125 2012/12/27 07:09:45 martin Exp $ d770 12 @ 1.125 log @Document libc hesiod.c compiler workaround on ia64 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.124 2012/11/14 04:13:44 msaitoh Exp $ d758 12 @ 1.124 log @Add note about lib/libc/softfloat/Makefile.inc hack for arm. Gcc has a bug in tree optimization. For adddf3, -INF + -INF returns 0 without -fno-tree-vrp. Debugging with -fdump-tree-all shows that softfloat.c.021t.cleanup_cfg is ok but softfloat.c.023t.ssa is broken. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.123 2012/03/03 03:21:16 nakayama Exp $ d742 16 @ 1.123 log @The hack has been resolved in the revision 1.340 of sys/arch/sparc64/sparc64/locore.s. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.122 2011/12/24 05:05:55 tsutsui Exp $ d557 18 @ 1.123.2.1 log @Resync to 2012-11-19 00:00:00 UTC @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.124 2012/11/14 04:13:44 msaitoh Exp $ a556 18 hack gcc-4.5 arm without -fno-tree-vrp generate broken code cdate Wed Nov 14 13:02:02 JST 2012 who msaitoh file lib/libc/softfloat/Makefile.inc pr 46953 regress src/tests/lib/libm/t_cbrt regress src/tests/lib/libm/t_ceil regress src/tests/lib/libm/t_exp regress src/tests/lib/libm/t_log regress src/tests/lib/libm/t_scalbn regress src/tests/lib/libm/t_sinh regress src/tests/lib/libm/t_sqrt descr Gcc has a bug in tree optimization. For adddf3, -INF + -INF returns 0 without -fno-tree-vrp. Debugging with -fdump-tree-all shows that softfloat.c.021t.cleanup_cfg is ok but softfloat.c.023t.ssa is broken. kcah @ 1.123.2.2 log @resync with head @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.123.2.1 2012/11/20 02:57:55 tls Exp $ a741 40 port ia64 hack libc hesiod.c file does not compile with -O2 (internal compiler error in gcc 4.5.3) cdate Thu Dec 27 08:05:43 CET 2012 who martin file src/lib/libc/net/Makefile.inc: 1.82 descr workaround for: {standard input}: Assembler messages: {standard input}:1507: Warning: Use of 'mov' may violate WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 15 {standard input}:1506: Warning: This is the location of the conflicting usage {standard input}: Error: 2 warnings, treating warnings as errors kcah hack libelf libelf_extended.c compiler error in gcc 4.5.3 cdate Thu Dec 27 09:05:51 CET 2012 who martin file src/external/bsd/libelf/lib/Makefile: 1.3 descr workaround for: {standard input}: Assembler messages: {standard input}:87: Warning: Use of 'adds' may violate RAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 33 {standard input}:87: Warning: Only the first path encountering the conflict is reported {standard input}:85: Warning: This is the location of the conflicting usage kcah hack compiler error with gcc 4.5.x cdate Thu Dec 27 15:15:25 CET 2012 who martin file src/crypto/external/bsd/netpgp/lib/verify/Makefile: 1.5 descr workaround for: {standard input}: Assembler messages: {standard input}:22979: Warning: Use of 'mov' may violate WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 8 {standard input}:22978: Warning: This is the location of the conflicting usage kcah @ 1.123.2.3 log @resync from head @ text @d1 1 a1 1 # $NetBSD$ d488 1 a488 1 cdat 30 July 2008, 3 June, 2013 d491 1 a491 1 external/mit/xorg/lib/libX11/Makefile.libx11 : 1.10 a780 1 port x68k a781 21 hack compiler error with gcc 4.5.x cdate Fri May 24 13:23:01 EDT 2013 who christos file src/external/gpl3/gcc/usr.bin/bakend/Makefile: 1.17 xsrc/external/mit/xorg/lib/libGLU/Makefile: 1.11 src/x11/lib/GLU/Makefile: 1.9 descr workaround for: internal compiler error: in cselib_record_set, at cselib.c:1999 kcah hack fallback to /usr/bin/clang-cpp in rpcgen cdate Wed Jun 5 15:49:27 CEST 2013 who joerg file src/usr.bin/rpcgen/rpc_main.c descr It is undecided which compiler owns /usr/bin/cpp whether it should exist in a MKGCC=no world. To allow rpcgen to work out-of-the-box, if either gcc or clang is installed, use /usr/bin/clang-cpp as fallback. This applies only if RPCGEN_CPP is not set and /usr/bin/cpp is not executable. kcah @ 1.123.2.4 log @Rebase to HEAD as of a few days ago. @ text @a282 11 hack disable ctf for gcc-4.8 build mdate April 3 2014 who christos file external/gpl3/gcc/usr.bin/Makefile.frontend : 1.4 file external/gpl3/gcc/usr.bin/Makefile.backend : 1.5 descr nbctfconvert -g -L VERSION -g fold-const.o ERROR: fold-const.c: failed to get mapping for tid 79154 \ ((null)) <13532> kcak a345 27 hack Disable fortification for /usr/bin/makeinfo cdata 24 Mar 2014 who tron file src/gnu/usr.bin/texinfo/makeinfo/Makefile : 1.8 pr N/A descr If "makeinfo" is compiled with "-D_FORTIFY_SOURCE=2" using GCC 4.8.3 it fails to process certain texinfo files, e.g. "cl.texi" included in the Emacs 24.3 distribution. kcah hack Disable Stack Smash Protection for /usr/X11R7/bin/xauth cdata 05 Apr 2014 who tron file src/external/mit/xorg/bin/xauth/Makefile : 1.4 pr N/A descr If "xauth" is compile with "USE_SSP" set to "yes" it fails mysteriously with an error message like this: /usr/X11R7/bin/xauth: file /foo/bar/.Xauthority does not exist /usr/X11R7/bin/xauth: unable to link authority file /foo/bar/.Xauthority, use /foo/bar/.Xauthority The compiler seems to get confused about the two filename variables used in the link(2) system call. kcah a519 49 hack gcc 4.5 fsdb miscompile date Sat Nov 9 11:03:02 EST 2013 who christos file src/sbin/fsdb/Makefile : 1.36 (and earlier) descr src/sbin/fsdb/fsdb.c: In function 'findblk': src/sbin/fsdb/fsdb.c:610:1: error: unrecognizable insn: (insn 941 940 942 134 src/sbin/fsdb/fsdb.c:589 (set (reg:SI 604) (subreg:SI (mem/s/j:DI (plus:SI (mult:SI (reg:SI 602) (const_int 8 [0x8])) (reg/f:SI 601)) [0 curinode.99_378->dp2.di_ib S8 A32]) 4)) \ -1 (nil)) src/sbin/fsdb/fsdb.c:610:1: internal compiler error: in \ extract_insn, at recog.c:2103 kcah hack gcc 4.8 gcc miscompiles date Sat Nov 9 16:35:18 EST 2013 who christos file distrib/utils/x_ping/Makefile file distrib/vax/miniroot/Makefile.inc file distrib/vax/ramdisk/Makefile file external/gpl3/gdb/lib/libdecnumber/Makefile file sbin/fsdb/Makefile file sbin/newfs_ext2fs/Makefile file sbin/ping/Makefile file usr.sbin/lmcconfig/Makefile file usr.sbin/mtrace/Makefile descr external/gpl3/gcc/dist/gcc/expmed.c:2781:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 external/gpl3/gcc/dist/gcc/recog.c:770:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 external/gpl3/gcc/dist/libdecnumber/decNumber.c:7214:3: internal compiler error: in change_address_1, at emit-rtl.c:2019 sbin/ping/ping.c:679:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 sbin/newfs_ext2fs/mke2fs.c:681:1: internal compiler error: in reload_combine_note_use, at postreload.c:1561 external/gpl3/gdb/dist/libdecnumber/decNumber.c:7214:3: internal compiler error: in change_address_1, at emit-rtl.c:2019 usr.sbin/lmcconfig/lmcconfig.c:939:3: internal compiler error: in reload_combine_note_use, at postreload.c:1561 usr.sbin/mtrace/mtrace.c:1655:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 kcah a588 40 port sh3eb hack gcc4.8.1 cdate Thu Nov 7 16:31:23 EST 2013 who christos file src/sys/rump/net/lib/libnetbt/Makefile : 1.2 desrc for profiling compile l2cap_signal.c with -O0 to avoid: ./netbt/l2cap_signal.c:36: /p/netbsd/cvsroot/src/sys/rump/net/lib/libnetbt/../../../../\ netbt/l2cap_signal.c: In function 'l2cap_recv_signal': ./sh3/byte_swap.h:20:2: error: 'asm' operand requires \ impossible reload __asm volatile ("swap.b %1,%0" : "=r"(rval) : "r"(x)); kcah port sh3el hack gcc4.8.1 cdate Fri Nov 8 19:27:01 EST 2013 who christos file src/external/bsd/libevent/lib/libevent/Makefile : 1.2 desrc for profiling compile evdns.c with -O0 to avoid: ./sh3/byte_swap.h:20:2: error: 'asm' operand requires \ impossible reload __asm volatile ("swap.b %1,%0" : "=r"(rval) : "r"(x)); kcah hack gcc4.8.1 cdate Fri Nov 8 19:34:48 EST 2013 who christos file src/usr.sbin/racoon/Makefile : 1.27 desrc for profiling compile ipsec_doi.c with -O0 to avoid: ./sh3/byte_swap.h:20:2: error: 'asm' operand requires \ impossible reload __asm volatile ("swap.b %1,%0" : "=r"(rval) : "r"(x)); kcah a609 11 port m68k,sh3,vax hack gcc-4.8.1 cdate Wed Nov 6 20:41:35 EST 2013 who christos file src/external/gpl3/gcc/libstdc++-v3/Makefile : 1.6 descr compile hashtable_c++0x.cc with -O2 instead of -Os to produce missing instantiation of std::lower_bound expansion for unsigned long. kcah a679 12 port x86 hack turn off optimization for biosdisk_ll.c because otherwise we are pass the wrong arguments to biosdisk_read(). $ cd /usr/src/sys/arch/i386/floppies/bootflopp-com $ qemu-system-i386 -nographic -fda boot-com1.fs -boot a who christos file src/sys/arch/i386/stand/lib/Makefile : 1.38 descr Turning on DISK_DEBUG shows the problem. We should find out which option is causing this. hcah d799 1 a799 1 It is undecided which compiler owns /usr/bin/cpp and whether it should a803 31 port hp700 hack compiler error with gcc 4.5.x cdate Tue Jul 23 07:42:28 BST 2013 who skrll file src/sys/lib/libkern/Makefile.libkern: 1.26 descr workaround for unanalysed codegen bug affecting md5c.c. kcah port mips64* hack compiler crashes on mips64* with optimization enabled cdate Tue May 13 18:46:48 UTC 2014 who macallan file src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/Makefile.inc: 1.6 src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h: 1.5 src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/Makefile.inc: 1.6 src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.h: 1.5 descr workaround for n32 gcc doing unaligned 64bit accesses when optimizing pr 48696 kcah port vax hack compile boot with -O1 cdate Sat May 24 09:40:58 CEST 2014 who martin file src/sys/arch/vax/boot/boot/Makefile: 1.41 descr /boot does not work when compiled with -O2 and gcc 4.8 kcah @ 1.122 log @Note libc/net/Makefile.inc hostname lookup -fno-tree-ter hacks for gcc 4.5 arm. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.121 2011/11/08 23:11:42 christos Exp $ a611 13 port sparc64 hack disable optimzations for uvm_bio.c on 32 bit kernels cdate Sun Mar 21 14:14:04 MET 2004 who martin file sys/arch/sparc64/conf/Makefile.sparc64 : 1.53-1.54 file sys/arch/sparc64/conf/files.sparc64 : 1.93 descr The sparc compiler miscompiles uvm_bio.c when using any optimization. This results in ubc_release panics. kcah @ 1.122.2.1 log @Pull up the following revisions(s) (requested by nakayama in ticket #85): sys/arch/sparc64/sparc64/locore.s: revision 1.340 doc/HACKS: revision 1.123 sys/arch/sparc64/conf/Makefile.sparc64: revision 1.71 sys/arch/sparc64/conf/files.sparc64: revision 1.138 Fix the root cause of the hack "disable optimizations for uvm_bio.c on 32 bit kernels". @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.122 2011/12/24 05:05:55 tsutsui Exp $ d612 13 @ 1.122.2.1.4.1 log @Pull up revisions: src/lib/libc/softfloat/Makefile.inc 1.11-1.12 via patch src/doc/HACKS 1.124 via patch (requested by msaitoh in ticket #703). For arm, add -fno-tree-vrp to COPTS when compiling softfloat.c. Without -fno-tree-vrp, -INF + -INF returns 0 by adddf3. Fixes PR#46953. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.122.2.1 2012/03/05 20:59:25 sborrill Exp $ a556 18 hack gcc-4.5 arm without -fno-tree-vrp generate broken code cdate Wed Nov 14 13:02:02 JST 2012 who msaitoh file lib/libc/softfloat/Makefile.inc pr 46953 regress src/tests/lib/libm/t_cbrt regress src/tests/lib/libm/t_ceil regress src/tests/lib/libm/t_exp regress src/tests/lib/libm/t_log regress src/tests/lib/libm/t_scalbn regress src/tests/lib/libm/t_sinh regress src/tests/lib/libm/t_sqrt descr Gcc has a bug in tree optimization. For adddf3, -INF + -INF returns 0 without -fno-tree-vrp. Debugging with -fdump-tree-all shows that softfloat.c.021t.cleanup_cfg is ok but softfloat.c.023t.ssa is broken. kcah @ 1.122.2.2 log @Pull up revisions: src/lib/libc/softfloat/Makefile.inc 1.11-1.12 via patch src/doc/HACKS 1.124 via patch (requested by msaitoh in ticket #703). For arm, add -fno-tree-vrp to COPTS when compiling softfloat.c. Without -fno-tree-vrp, -INF + -INF returns 0 by adddf3. Fixes PR#46953. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.122.2.1 2012/03/05 20:59:25 sborrill Exp $ a556 18 hack gcc-4.5 arm without -fno-tree-vrp generate broken code cdate Wed Nov 14 13:02:02 JST 2012 who msaitoh file lib/libc/softfloat/Makefile.inc pr 46953 regress src/tests/lib/libm/t_cbrt regress src/tests/lib/libm/t_ceil regress src/tests/lib/libm/t_exp regress src/tests/lib/libm/t_log regress src/tests/lib/libm/t_scalbn regress src/tests/lib/libm/t_sinh regress src/tests/lib/libm/t_sqrt descr Gcc has a bug in tree optimization. For adddf3, -INF + -INF returns 0 without -fno-tree-vrp. Debugging with -fdump-tree-all shows that softfloat.c.021t.cleanup_cfg is ok but softfloat.c.023t.ssa is broken. kcah @ 1.121 log @mention libgcc/emacs hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.120 2011/10/29 20:59:30 christos Exp $ d540 17 @ 1.120 log @Another binutils workaround @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.119 2011/10/29 15:18:21 christos Exp $ d283 11 @ 1.120.2.1 log @sync with head @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.120 2011/10/29 20:59:30 christos Exp $ a282 11 hack emacs aborting on exit (libgcc issue) mdate 7 November 2011 who christos file external/gpl3/gcc/dist/gcc/unwind-dw2-fde.c : 1.2 descr GCC 4.5.3 now calls __unregister_frame_info_bases() on unloading/exit to do just that. If the symbol requested is not found, then it aborts. emacs 23.3 triggers this assertion. For now disable aborting, and silently ignore. kcah @ 1.120.2.2 log @sync with head @ text @d1 1 a1 1 # $NetBSD$ a539 17 hack gcc-4.5 arm CNAME hostname lookup failure on certain DNS environment (probably -ftree-ter problem) cdate Sat Dec 24 04:59:00 UTC 2011 mdate who tsutsui file lib/libc/net/Makefile.inc 1.79 descr Hostname lookup against CNAMEs by some commands fails on certain DNS environments if lib/libc/net/gethnamaddr.c (ping(8) etc) and lib/libc/net/getaddrinfo.c (ftp(1) etc) are compiled with -O2, even though nslookup(1) against the same CNAME returns proper hostname. They works properly if compiled with -O2 -fno-tree-ter. Also -O2 fails but -O2 -fno-tree-ter works on the following test case in gcc bugzilla: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48863#c4 kcah d595 13 @ 1.120.2.3 log @sync with (a bit old) head @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.120.2.2 2012/04/17 00:02:55 yamt Exp $ a556 18 hack gcc-4.5 arm without -fno-tree-vrp generate broken code cdate Wed Nov 14 13:02:02 JST 2012 who msaitoh file lib/libc/softfloat/Makefile.inc pr 46953 regress src/tests/lib/libm/t_cbrt regress src/tests/lib/libm/t_ceil regress src/tests/lib/libm/t_exp regress src/tests/lib/libm/t_log regress src/tests/lib/libm/t_scalbn regress src/tests/lib/libm/t_sinh regress src/tests/lib/libm/t_sqrt descr Gcc has a bug in tree optimization. For adddf3, -INF + -INF returns 0 without -fno-tree-vrp. Debugging with -fdump-tree-all shows that softfloat.c.021t.cleanup_cfg is ok but softfloat.c.023t.ssa is broken. kcah @ 1.120.2.4 log @sync with head @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.120.2.3 2013/01/16 05:26:13 yamt Exp $ a741 40 port ia64 hack libc hesiod.c file does not compile with -O2 (internal compiler error in gcc 4.5.3) cdate Thu Dec 27 08:05:43 CET 2012 who martin file src/lib/libc/net/Makefile.inc: 1.82 descr workaround for: {standard input}: Assembler messages: {standard input}:1507: Warning: Use of 'mov' may violate WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 15 {standard input}:1506: Warning: This is the location of the conflicting usage {standard input}: Error: 2 warnings, treating warnings as errors kcah hack libelf libelf_extended.c compiler error in gcc 4.5.3 cdate Thu Dec 27 09:05:51 CET 2012 who martin file src/external/bsd/libelf/lib/Makefile: 1.3 descr workaround for: {standard input}: Assembler messages: {standard input}:87: Warning: Use of 'adds' may violate RAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 33 {standard input}:87: Warning: Only the first path encountering the conflict is reported {standard input}:85: Warning: This is the location of the conflicting usage kcah hack compiler error with gcc 4.5.x cdate Thu Dec 27 15:15:25 CET 2012 who martin file src/crypto/external/bsd/netpgp/lib/verify/Makefile: 1.5 descr workaround for: {standard input}: Assembler messages: {standard input}:22979: Warning: Use of 'mov' may violate WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 8 {standard input}:22978: Warning: This is the location of the conflicting usage kcah @ 1.120.2.5 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: HACKS,v 1.120.2.4 2013/01/23 00:04:29 yamt Exp $ a282 11 hack disable ctf for gcc-4.8 build mdate April 3 2014 who christos file external/gpl3/gcc/usr.bin/Makefile.frontend : 1.4 file external/gpl3/gcc/usr.bin/Makefile.backend : 1.5 descr nbctfconvert -g -L VERSION -g fold-const.o ERROR: fold-const.c: failed to get mapping for tid 79154 \ ((null)) <13532> kcak a345 27 hack Disable fortification for /usr/bin/makeinfo cdata 24 Mar 2014 who tron file src/gnu/usr.bin/texinfo/makeinfo/Makefile : 1.8 pr N/A descr If "makeinfo" is compiled with "-D_FORTIFY_SOURCE=2" using GCC 4.8.3 it fails to process certain texinfo files, e.g. "cl.texi" included in the Emacs 24.3 distribution. kcah hack Disable Stack Smash Protection for /usr/X11R7/bin/xauth cdata 05 Apr 2014 who tron file src/external/mit/xorg/bin/xauth/Makefile : 1.4 pr N/A descr If "xauth" is compile with "USE_SSP" set to "yes" it fails mysteriously with an error message like this: /usr/X11R7/bin/xauth: file /foo/bar/.Xauthority does not exist /usr/X11R7/bin/xauth: unable to link authority file /foo/bar/.Xauthority, use /foo/bar/.Xauthority The compiler seems to get confused about the two filename variables used in the link(2) system call. kcah d488 1 a488 1 cdat 30 July 2008, 3 June, 2013 d491 1 a491 1 external/mit/xorg/lib/libX11/Makefile.libx11 : 1.10 a519 49 hack gcc 4.5 fsdb miscompile date Sat Nov 9 11:03:02 EST 2013 who christos file src/sbin/fsdb/Makefile : 1.36 (and earlier) descr src/sbin/fsdb/fsdb.c: In function 'findblk': src/sbin/fsdb/fsdb.c:610:1: error: unrecognizable insn: (insn 941 940 942 134 src/sbin/fsdb/fsdb.c:589 (set (reg:SI 604) (subreg:SI (mem/s/j:DI (plus:SI (mult:SI (reg:SI 602) (const_int 8 [0x8])) (reg/f:SI 601)) [0 curinode.99_378->dp2.di_ib S8 A32]) 4)) \ -1 (nil)) src/sbin/fsdb/fsdb.c:610:1: internal compiler error: in \ extract_insn, at recog.c:2103 kcah hack gcc 4.8 gcc miscompiles date Sat Nov 9 16:35:18 EST 2013 who christos file distrib/utils/x_ping/Makefile file distrib/vax/miniroot/Makefile.inc file distrib/vax/ramdisk/Makefile file external/gpl3/gdb/lib/libdecnumber/Makefile file sbin/fsdb/Makefile file sbin/newfs_ext2fs/Makefile file sbin/ping/Makefile file usr.sbin/lmcconfig/Makefile file usr.sbin/mtrace/Makefile descr external/gpl3/gcc/dist/gcc/expmed.c:2781:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 external/gpl3/gcc/dist/gcc/recog.c:770:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 external/gpl3/gcc/dist/libdecnumber/decNumber.c:7214:3: internal compiler error: in change_address_1, at emit-rtl.c:2019 sbin/ping/ping.c:679:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 sbin/newfs_ext2fs/mke2fs.c:681:1: internal compiler error: in reload_combine_note_use, at postreload.c:1561 external/gpl3/gdb/dist/libdecnumber/decNumber.c:7214:3: internal compiler error: in change_address_1, at emit-rtl.c:2019 usr.sbin/lmcconfig/lmcconfig.c:939:3: internal compiler error: in reload_combine_note_use, at postreload.c:1561 usr.sbin/mtrace/mtrace.c:1655:1: internal compiler error: in change_address_1, at emit-rtl.c:2019 kcah a588 40 port sh3eb hack gcc4.8.1 cdate Thu Nov 7 16:31:23 EST 2013 who christos file src/sys/rump/net/lib/libnetbt/Makefile : 1.2 desrc for profiling compile l2cap_signal.c with -O0 to avoid: ./netbt/l2cap_signal.c:36: /p/netbsd/cvsroot/src/sys/rump/net/lib/libnetbt/../../../../\ netbt/l2cap_signal.c: In function 'l2cap_recv_signal': ./sh3/byte_swap.h:20:2: error: 'asm' operand requires \ impossible reload __asm volatile ("swap.b %1,%0" : "=r"(rval) : "r"(x)); kcah port sh3el hack gcc4.8.1 cdate Fri Nov 8 19:27:01 EST 2013 who christos file src/external/bsd/libevent/lib/libevent/Makefile : 1.2 desrc for profiling compile evdns.c with -O0 to avoid: ./sh3/byte_swap.h:20:2: error: 'asm' operand requires \ impossible reload __asm volatile ("swap.b %1,%0" : "=r"(rval) : "r"(x)); kcah hack gcc4.8.1 cdate Fri Nov 8 19:34:48 EST 2013 who christos file src/usr.sbin/racoon/Makefile : 1.27 desrc for profiling compile ipsec_doi.c with -O0 to avoid: ./sh3/byte_swap.h:20:2: error: 'asm' operand requires \ impossible reload __asm volatile ("swap.b %1,%0" : "=r"(rval) : "r"(x)); kcah a609 11 port m68k,sh3,vax hack gcc-4.8.1 cdate Wed Nov 6 20:41:35 EST 2013 who christos file src/external/gpl3/gcc/libstdc++-v3/Makefile : 1.6 descr compile hashtable_c++0x.cc with -O2 instead of -Os to produce missing instantiation of std::lower_bound expansion for unsigned long. kcah a679 12 port x86 hack turn off optimization for biosdisk_ll.c because otherwise we are pass the wrong arguments to biosdisk_read(). $ cd /usr/src/sys/arch/i386/floppies/bootflopp-com $ qemu-system-i386 -nographic -fda boot-com1.fs -boot a who christos file src/sys/arch/i386/stand/lib/Makefile : 1.38 descr Turning on DISK_DEBUG shows the problem. We should find out which option is causing this. hcah a780 25 port x68k hack compiler error with gcc 4.5.x cdate Fri May 24 13:23:01 EDT 2013 who christos file src/external/gpl3/gcc/usr.bin/bakend/Makefile: 1.17 xsrc/external/mit/xorg/lib/libGLU/Makefile: 1.11 src/x11/lib/GLU/Makefile: 1.9 descr workaround for: internal compiler error: in cselib_record_set, at cselib.c:1999 kcah hack fallback to /usr/bin/clang-cpp in rpcgen cdate Wed Jun 5 15:49:27 CEST 2013 who joerg file src/usr.bin/rpcgen/rpc_main.c descr It is undecided which compiler owns /usr/bin/cpp and whether it should exist in a MKGCC=no world. To allow rpcgen to work out-of-the-box, if either gcc or clang is installed, use /usr/bin/clang-cpp as fallback. This applies only if RPCGEN_CPP is not set and /usr/bin/cpp is not executable. kcah port hp700 a781 7 hack compiler error with gcc 4.5.x cdate Tue Jul 23 07:42:28 BST 2013 who skrll file src/sys/lib/libkern/Makefile.libkern: 1.26 descr workaround for unanalysed codegen bug affecting md5c.c. kcah @ 1.119 log @mention another ppc64 hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.118 2011/10/27 18:46:43 christos Exp $ d694 15 @ 1.118 log @librt needs the ppc64 hack too. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.117 2011/10/27 17:21:27 christos Exp $ d682 12 @ 1.117 log @mention ppc64 hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.116 2011/08/15 02:29:38 mrg Exp $ d676 1 @ 1.116 log @note the sparc / GCC 4.5.3 / NULL savefpstate IPI hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.115 2011/03/12 08:03:06 matt Exp $ d667 14 @ 1.115 log @Add note of gcc build HACKS for powerpc. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.114 2010/04/23 02:12:58 christos Exp $ d565 19 d596 1 @ 1.114 log @mention crash ldscript. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.113 2009/01/11 21:02:36 sketch Exp $ d638 9 @ 1.113 log @typo @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.112 2009/01/11 18:25:17 christos Exp $ d324 11 @ 1.112 log @mention 32 bit time_t remnants @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.111 2008/11/29 15:31:18 tsutsui Exp $ d495 1 a495 1 Many filesystem on-disk formats have 332 bit times. @ 1.111 log @Add an entry for workaround in src/sbin/ifconfig/Makefile for gcc -O1 loop optimize bug. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.110 2008/09/27 03:57:37 macallan Exp $ d477 21 @ 1.110 log @add entry for the rtld.c __builtin_return_address(0) hack on powerpc @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.109 2008/08/03 07:16:58 veego Exp $ d311 13 @ 1.110.2.1 log @Apply patch (requested by jnemeth in ticket #80): Work around rbus resource allocation problem so aic PCMCIA cards work. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.110 2008/09/27 03:57:37 macallan Exp $ a310 12 hack rbus resource allocation work around cdate 10 May 2007 who jnemeth file src/sys/dev/pcmcia/aic_pcmcia.c : 1.35 pr 26909 31245 descr On some cards, the card align field property value interferes with the rbus resource allocation causing the card not to configure properly. Setting it to 0 fixes the problem but it is not the proper solution. kcah @ 1.110.2.2 log @Pull up following revision(s) (requested by tsutsui in ticket #164): doc/HACKS: revision 1.111 via patch Add an entry for workaround in src/sbin/ifconfig/Makefile for gcc -O1 loop optimize bug. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.110.2.1 2008/11/20 02:56:40 snj Exp $ a322 13 hack avoid gcc4 -O1 bug in loop optimize cdate 29 November 2008 who tsutsui file src/sbin/ifconfig/Makefile : 1.39 pr 40036 40066 descr gcc -O1 seems to generate wrong code in loop optimize so that ifconfig lo0 inet6 doesn't return error even if a kernel doesn't have IPv6 support. (see the above PRs for details) For workaround, specify -fno-loop-optimize on m68000, which uses -O1 by default. kcah @ 1.110.2.2.6.1 log @Pull up following revision(s) (requested by nakayama in ticket #1736): sys/arch/sparc64/conf/Makefile.sparc64: revision 1.71 doc/HACKS: revision 1.123 sys/arch/sparc64/conf/files.sparc64: revision 1.138 sys/arch/sparc64/sparc64/locore.s: revision 1.340 Fix the root cause of the hack "disable optimizations for uvm_bio.c on 32 bit kernels". gcc converts a division in the calculation of UBC_UMAP_ADDR macro to multiplication (smul or combination of add/sll), and the register of its result contains a garbage in upper 32 bits (the upper 32 bits of smul/add/sll's result isn't zero cleared). Then it passes to pseg_get{,_real} through pmap_extract without the zero clear of upper 32 bits in the optimization case. So the result of pseg_get and pmap_extact sometimes gets screwed up. The hack has been resolved in the revision 1.340 of sys/arch/sparc64/sparc64/locore.s. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.110.2.2 2008/12/06 21:27:36 snj Exp $ d545 12 @ 1.110.2.2.2.1 log @Pull up following revision(s) (requested by nakayama in ticket #1736): sys/arch/sparc64/conf/Makefile.sparc64: revision 1.71 doc/HACKS: revision 1.123 sys/arch/sparc64/conf/files.sparc64: revision 1.138 sys/arch/sparc64/sparc64/locore.s: revision 1.340 Fix the root cause of the hack "disable optimizations for uvm_bio.c on 32 bit kernels". gcc converts a division in the calculation of UBC_UMAP_ADDR macro to multiplication (smul or combination of add/sll), and the register of its result contains a garbage in upper 32 bits (the upper 32 bits of smul/add/sll's result isn't zero cleared). Then it passes to pseg_get{,_real} through pmap_extract without the zero clear of upper 32 bits in the optimization case. So the result of pseg_get and pmap_extact sometimes gets screwed up. The hack has been resolved in the revision 1.340 of sys/arch/sparc64/sparc64/locore.s. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.110.2.2 2008/12/06 21:27:36 snj Exp $ d545 12 @ 1.110.2.3 log @Pull up following revision(s) (requested by nakayama in ticket #1736): sys/arch/sparc64/conf/Makefile.sparc64: revision 1.71 doc/HACKS: revision 1.123 sys/arch/sparc64/conf/files.sparc64: revision 1.138 sys/arch/sparc64/sparc64/locore.s: revision 1.340 Fix the root cause of the hack "disable optimizations for uvm_bio.c on 32 bit kernels". gcc converts a division in the calculation of UBC_UMAP_ADDR macro to multiplication (smul or combination of add/sll), and the register of its result contains a garbage in upper 32 bits (the upper 32 bits of smul/add/sll's result isn't zero cleared). Then it passes to pseg_get{,_real} through pmap_extract without the zero clear of upper 32 bits in the optimization case. So the result of pseg_get and pmap_extact sometimes gets screwed up. The hack has been resolved in the revision 1.340 of sys/arch/sparc64/sparc64/locore.s. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.110.2.2 2008/12/06 21:27:36 snj Exp $ d545 12 @ 1.109 log @Restore .hx support for avoiding unneeded regeneration of header files Fix PR lib/39185 Partly restore the changes which were removed during the Heimdal 1.1 update: src/lib/libasn1/Makefile 1.28 -> 1.29 src/lib/libhdb/Makefile 1.21 -> 1.22 src/crypto/dist/heimdal/lib/asn1/gen.c 1.8 -> 1.9 Add .hx support in 'new' heimdal libraries: src/lib/libgssapi/Makefile src/lib/libhx509/Makefile Add a new entry in doc/HACKS for this changes. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.108 2008/08/02 04:37:54 mrg Exp $ d581 12 @ 1.108 log @normalise a path @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.107 2008/08/02 04:37:25 mrg Exp $ d296 15 @ 1.107 log @note about hacks to avoid xorg warnings @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.106 2008/07/29 14:24:06 lukem Exp $ d440 1 a440 1 file src/external/mit/xorg/lib/libSM/Makefile : 1.2 @ 1.106 log @document workaround for PR#39192 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.105 2008/07/21 10:00:51 agc Exp $ d437 12 @ 1.105 log @Implement, and document, an ugly hack which allows cross-building of NetBSD on Darwin - Mac OS X Leopard - to complete successfully hack cross-building hack on Darwin mdate 20 July 2008 who agc file src/distrib/common/Makefile.mdset : 1.33 descr Darwin has problems with getopt() when used in mdsetimage -v, due to the difference between BSD and libiberty() getopt implementations, more fully described in http://mail-index.netbsd.org/current-users/2008/06/27/msg003242.html and the subsequent thread. For just now, we just have an ugly workaround not to call mdsetimage with the -v argument on Darwin kcah @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.104 2008/07/12 11:50:07 gmcgarry Exp $ d531 12 @ 1.104 log @Disable INCLUDE_CONFIG_FILE if compiling with PCC, since PCC cannot handle 80KB string literals. Documented as hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.103 2008/05/16 13:16:25 tsutsui Exp $ d283 13 @ 1.103 log @Update gcc4-sh3-bz2 entry. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.102 2008/05/07 12:50:35 tsutsui Exp $ d412 12 @ 1.102 log @- add an entry of gcc4/vax ICE on compiling ddb/db_command.c - note gcc version in a vax gcc 2.95 entry - remove obsolete gcc 3.3.2/arm -fno-strict-aliasing - use mdate and restore cdate in gcc4-m68000 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.101 2008/05/04 15:42:12 tsutsui Exp $ d436 3 a438 2 mdate 20 May 2006 who mrg d442 2 a443 1 pc-relative addresses. Hack is to build with -O0. @ 1.102.2.1 log @Sync w/ -current. 34 merge conflicts to follow. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.102 2008/05/07 12:50:35 tsutsui Exp $ d436 2 a437 3 cdate Sun May 21 03:34:57 UTC 2006 mdate Fri May 16 13:13:00 UTC 2008 who mrg, tsutsui d441 1 a441 2 pc-relative addresses. Hack is to build with -fno-loop-optimize. @ 1.102.2.2 log @Sync with wrstuden-revivesa-base-2. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.102.2.1 2008/06/23 04:29:01 wrstuden Exp $ a282 28 hack cross-building hack on Darwin mdate 20 July 2008 who agc file src/distrib/common/Makefile.mdset : 1.33 descr Darwin has problems with getopt() when used in mdsetimage -v, due to the difference between BSD and libiberty() getopt implementations, more fully described in http://mail-index.netbsd.org/current-users/2008/06/27/msg003242.html and the subsequent thread. For just now, we just have an ugly workaround not to call mdsetimage with the -v argument on Darwin kcah hack avoid rebuilding asn1 libraries mdate 03 August 2008 who veego file src/crypto/dist/heimdal/lib/asn1/gen.c : 1.10 file src/lib/libasn1/Makefile : 1.32 file src/lib/libhdb/Makefile : 1.23 file src/lib/libgssapi/Makefile : 1.20 file src/lib/libhx509/Makefile : 1.3 pr 9702 39185 descr asn1_compile does not check if generated header files do not have to be rebuild. Generate .hx files and copy it in the Makefiles if they changed. kcah a411 24 hack pcc 0.9.9 large string literals cdat 8 July 2008 who gmcgarry file sys/conf/param.c : 1.58 descr Workaround for pcc 0.9.9 not handling large string literals which causes kernels with 'options INCLUDE_CONFIG_FILE' to fail compilation. There is a proposal on the pcc mailing list to stuff config file in ELF section. kcah hack xorg warnings cdat 30 July 2008 who mrg file external/mit/xorg/lib/libSM/Makefile : 1.2 external/mit/xorg/lib/libX11/Makefile.libx11 : 1.2 external/mit/xorg/lib/libXext/Makefile : 1.2 external/mit/xorg/lib/libXfont/Makefile : 1.2 descr Disable several warnings or use -Wno-error across Xorg sources while we get them working kcah a505 12 hack mips-mcount-assembler-warning cdate Tue Jul 29 14:16:52 UTC 2008 who lukem file src/lib/libc/gmon/Makefile.inc : 1.8 descr Workaround for PR port-mips/39192. common/lib/libc/gmon/mcount.c generates a (fatal) assembler warning on MIPS: Warning: No .cprestore pseudo-op used in PIC code Add COPTS.count.c+=-Wa,--no-warn to avoid -Wa,--fatal-warnings kcah @ 1.101 log @Update gcc4-m68000 entry again. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.100 2008/04/27 03:33:06 tsutsui Exp $ d285 9 d335 1 a335 1 hack gcc-vax-libbz2 a431 12 hack gcc 3.3.2/arm sys/kern/uipc_socket.c cdate Tue Oct 28 18:02:16 GMT 2003 who skrll pr 23044 file sys/arch/arm/conf/Makefile.arm : 1.19 descr Performing a build.sh tools on a CATS with NFS mounted obj and src directories results in "panic: receive 1" The hack is to compile sys/kern/uipc_socket.c with -fno-strict-aliasing kcah d448 2 a449 1 cdate Sun May 4 15:37:19 UTC 2008 @ 1.100 log @Remove obsolete hack entries. XXX could someone please take a look at gcc 2.95/vax hacks? @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.99 2008/04/27 03:10:36 tsutsui Exp $ d451 1 a451 1 cdate Sun Apr 27 03:06:46 UTC 2008 d455 3 a457 1 file share/mk/sys.mk : 1.95 d460 2 a461 1 Many errors across the tree with optimisation. d464 1 @ 1.100.2.1 log @file HACKS was added on branch mjf-devfs2 on 2008-06-02 13:21:19 +0000 @ text @d1 512 @ 1.100.2.2 log @Sync with HEAD. @ text @a0 516 # $NetBSD: HACKS,v 1.100.2.1 2008/06/02 13:21:19 mjf Exp $ # # This file is intended to document workarounds for currently unsolved # (mostly) compiler bugs. # # Format: # hack title # cdate creation date # mdate mod date # who responsible developer # port ... # affected ports, space separated, if not "all" # file affected file : revision : line from : line to # affected files and revision and line numbers describing hack # multiple lines if necessary. # pr NNNN ... # problem reports this hack works around, if known. Space # separated. # regress src/regress/directory/where/test/found # regression test directories, if available. # descr # insert short informal description (multi-line). (Longer ones # should be in the PR database. More formal descriptions might # be in the regress tree. See above). # kcah # closing bracket. # # this is a comment. hack netstat ieee1394 address printing. mdate 14 Nov 2000 who matt file lib/libc/net/getnameinfo.c : 1.32 : 497 : 503 descr Because the current implementation of IP over IEEE1394, the fw device address contains more than just the IEEE1394 EUI-64. So when printing out IEEE1394 addresses, ignore the extra stuff. kcah hack xterm vs. libterm mdate 01 Aug 2000 who jdc file xsrc/xc/programs/xterm/main.c : 1.2 : 3609 : 3614 pr 10383 descr In order to extend the termcap string over 1023 bytes, a ZZ entry was introduced to point to a memory location containing the full entry. Without this hack, xterm will export a termcap containing the ZZ entry, which will then be ignored by libterm. As xterm modifies the exported termcap, this would cause those modifications to be ignored. kcah hack wi-at-big-endian-bus cdate 15 Mar 2002 who martin file dev/ic/wireg.h descr Add an option to access the underlying bus in big endian byte order to work around deficiencies in bus_space_{read,write}_* macros. Those don't allow the implementation of a proper pcmcia bus space tag. kcah hack specific knowledge of colours in curses code cdate Sun Apr 6 11:05:24 BST 2003 who jdc file lib/libcurses/color.c : r1.24 descr Swap red/blue and yellow/cyan colours for COLOR_OTHER. Fix is to enhance libtermcap to understand terminfo-style % sequences. See also: http://mail-index.NetBSD.org/tech-userlevel/2003/04/06/0000.html kcah hack Compensation for differing types of LINUX_USRSTACK and USRSTACK cdate 21 Aug 2003 who he file sys/miscfs/procfs/procfs_linux.c : 1.14 descr Not all ports have LINUX_USRSTACK and/or USRSTACK defined as literals/constants, but refer to variables of a type which is not "unsigned long", causing compilation of procfs_linux.c to fail with "makes integer from pointer without a cast". This is observed on e.g. the sun3 port. Ideally the "types" for symbols should be consistent across all ports. kcah hack gcc-strict-aliasing cdate 6 August 2004 who junyoung pr 26516 file src/usr.sbin/racoon/racoon/Makefile : 1.21 descr GCC issues a warning "dereferencing type-punned pointer will break strict-aliasing rules" when compiling crypto/dist/kame/racoon/crypto/openssl.c with -O[23s]. Note that this is due to use of type casting in a non-standard way in the code and not a compiler bug. Once a new release of KAME with a proper fix applied is imported this should be backed out. kcah hack gcc4 wrong uninitialized variable mdate 10 May 2006 who mrg file bin/ksh/eval.c : 1.6 file bin/sh/histedit.c : 1.39 file bin/sh/parser.c : 1.60 file crypto/dist/heimdal/kdc/524.c : 1.10 file crypto/dist/ssh/sftp.c : 1.20 file crypto/dist/ssh/ssh-keysign.c : 1.11 file dist/ipf/lib/hostname.c : 1.2 file dist/ipf/tools/ipmon.c : 1.8 file dist/ntp/ntpd/ntp_request.c : 1.4 file dist/ntp/ntpd/refclock_shm.c : 1.4 file dist/ntp/sntp/timing.c : 1.3 file dist/pppd/pppstats/pppstats.c : 1.3 file dist/smbfs/lib/smb/rap.c : 1.6 file dist/tcpdump/print-zephyr.c : 1.5 file distrib/utils/sysinst/aout2elf.c : 1.12 file gnu/libexec/uucp/uucico/uucico.c : 1.6 file lib/libc/citrus/citrus_csmapper.c : 1.6 file lib/libc/citrus/citrus_pivot_factory.c : 1.5 file lib/libc/inet/inet_cidr_ntop.c : 1.3 file lib/libc/inet/inet_ntop.c : 1.3 file lib/libc/stdio/vfwprintf.c : 1.8 file libexec/ld.elf_so/arch/m68k/mdreloc.c : 1.20 file libexec/ld.elf_so/arch/powerpc/ppc_reloc.c : 1.40 file libexec/ld.elf_so/arch/sh3/mdreloc.c : 1.22 file libexec/ld.elf_so/arch/sparc/mdreloc.c : 1.39 file libexec/ld.elf_so/arch/sparc64/mdreloc.c : 1.39 file libexec/ld.elf_so/arch/vax/mdreloc.c : 1.21 file libexec/ld.elf_so/arch/x86_64/mdreloc.c : 1.27 file sbin/fsck_ext2fs/dir.c : 1.19 file sbin/routed/rtquery/rtquery.c : 1.18 file sys/arch/amd64/amd64/pmap.c : 1.26 file sys/arch/i386/pci/piixpcib.c : 1.4 file sys/arch/m68k/m68k/pmap_motorola.c : 1.4 file sys/crypto/cast128/cast128.c : 1.9 file sys/ddb/db_command.c : 1.86 file sys/dev/cardbus/cardbus_map.c : 1.21 file sys/dev/fss.c : 1.25 file sys/dev/ic/igsfb.c : 1.39 file sys/dev/ic/mb86950.c : 1.5 file sys/dev/ic/midway.c : 1.71 file sys/dev/kttcp.c : 1.18 file sys/dev/rasops/rasops_bitops.h : 1.9 file sys/dev/pci/cmpci.c : 1.31 file sys/dev/pci/machfb.c : 1.45 file sys/dev/usb/ohci.c : 1.174 file sys/dev/usb/uhci.c : 1.196 file sys/dev/rasops/rasops_bitops.h : 1.9 file sys/dist/ipf/netinet/ip_nat.c : 1.10 file sys/dist/ipf/netinet/ip_rpcb_pxy.c : 1.8 file sys/dist/pf/net/pf.c : 1.22 file sys/fs/udf/udf_vnops.c : 1.4 file sys/kern/kern_sig.c : 1.219 file sys/kern/tty.c : 1.181 file sys/net/bpf.c : 1.116 file sys/net/zlib.c : 1.26 file sys/netccitt/if_x25subr.c : 1.37 file sys/netinet/in.c : 1.107 file sys/netsmb/smb_smb.c : 1.27 file sys/netsmb/smb_trantcp.c : 1.22 file sys/nfs/nfs_serv.c : 1.108 file sys/nfs/nfs_socket.c : 1.129 file sys/nfs/nfs_syscalls.c : 1.91 file sys/ufs/lfs/lfs_vfsops.c : 1.207 [also (char *)] file usr.bin/ftp/ftp.c : 1.140 file usr.bin/find/function.c : 1.54 file usr.bin/mail/tty.c : 1.20 file usr.bin/msgc/msg_sys.def : 1.33-1.34 file usr.bin/nl/nl.c : 1.7 file usr.bin/systat/keyboard.c : 1.23 file usr.bin/usbhidctl/usbhid.c : 1.29 file usr.bin/vi/cl/cl_read.c : 1.5 file usr.bin/vi/ex/ex_cscope.c : 1.12 file usr.bin/vi/ex/ex_tag.c : 1.19 file usr.bin/vi/vi/v_txt.c : 1.15 file usr.sbin/altq/altqstat/qdisc_rio.c : 1.4 file usr.sbin/cron/do_command.c : 1.19 file usr.sbin/timed/timed/slave.c : 1.15 descr GCC 4.1 gets many uninitialised variable warnings wrong. We should really audit all the old hacks like this when older compilers are removed from the tree, as many are probably no longer required. The problem is that it does not recognize initialization via function call pointer. I.e. int p; foo(&p); does not mark p as initialized. kcah hack gcc4 pointer sign and strict aliasing problems mdate 10 May 2006 who mrg file bin/ed/Makefile : 1.33 file distrib/utils/sysinst/Makefile.inc : 1.44 file distrib/utils/x_dhclient/Makefile : 1.15 file games/bcd/Makefile : 1.5 file games/dab/Makefile : 1.5 file games/larn/Makefile : 1.17 file games/pom/Makefile : 1.5 file lib/libasn1/Makefile : 1.26 file lib/libcrypt/Makefile : 1.17 file lib/libgssapi/Makefile : 1.16 file lib/libhdb/Makefile : 1.20 file lib/libkadm5clnt/Makefile : 1.21 file lib/libkadm5srv/Makefile : 1.25 file lib/libkrb5/Makefile : 1.35 file lib/libssh/Makefile : 1.6 file lib/libtelnet/Makefile : 1.26 file libexec/getty/Makefile : 1.14 file libexec/kadmind/Makefile : 1.19 file libexec/kpasswdd/Makefile : 1.14 file sbin/atactl/Makefile : 1.3 file sbin/cgdconfig/Makefile : 1.7 file sbin/clri/Makefile : 1.13 file sbin/dkctl/Makefile : 1.4 file sbin/dump/Makefile : 1.33 file sbin/fdisk/Makefile : 1.35 file sbin/fsck_ext2fs/Makefile : 1.11 file sbin/fsck_ffs/Makefile : 1.29 file sbin/fsdb/Makefile : 1.18 file sbin/mount_smbfs/Makefile : 1.4 file sbin/newfs/Makefile : 1.30 file sbin/newfs_sysvbfs/Makefile : 1.2 file sbin/restore/Makefile : 1.23 file sbin/veriexecctl/Makefile : 1.11 file sys/lib/libsa/Makefile : 1.59 file sys/arch/evbarm/adi_brh/brh_machdep.c : 1.24 file usr.bin/awk/Makefile : 1.9 file usr.bin/crontab/Makefile : 1.24 file usr.bin/ctags/Makefile : 1.8 file usr.bin/gzip/Makefile : 1.10 file usr.bin/ssh/sftp/Makefile : 1.10 file usr.bin/ssh/ssh/Makefile : 1.25 file usr.bin/vi/build/Makefile : 1.26 file usr.bin/telnet/Makefile : 1.40 file usr.bin/tn3270/tn3270/Makefile : 1.36 file usr.bin/tr/Makefile : 1.4 file usr.sbin/amd/amd/Makefile : 1.27 file usr.sbin/amd/amq/Makefile : 1.14 file usr.sbin/amd/libamu/Makefile : 1.20 file usr.sbin/amd/pawd/Makefile : 1.5 file usr.sbin/bind/Makefile.inc : 1.22 file usr.sbin/bind/libdns/Makefile : 1.3 file usr.sbin/bind/named/Makefile : 1.17 file usr.sbin/bootp/bootptest/Makefile : 1.2 file usr.sbin/chrtbl/Makefile : 1.6 file usr.sbin/cron/Makefile : 1.12 file usr.sbin/dhcp/Makefile.inc : 1.20 file usr.sbin/dumplfs/Makefile : 1.11 file usr.sbin/hprop/Makefile : 1.13 file usr.sbin/installboot/Makefile : 1.35 file usr.sbin/ipf/ipftest/Makefile : 1.32 file usr.sbin/isdn/isdnd/Makefile : 1.6 file usr.sbin/isdn/isdnmonitor/Makefile : 1.3 file usr.sbin/isdn/isdntel/Makefile : 1.2 file usr.sbin/isdn/isdntrace/Makefile : 126 file usr.sbin/mopd/common/Makefile : 1.10 file usr.sbin/mopd/mopd/Makefile : 1.9 file usr.sbin/mopd/mopprobe/Makefile : 1.7 file usr.sbin/makefs/Makefile : 1.17 file usr.sbin/mscdlabel/Makefile : 1.5 file usr.sbin/pkg_install/add/Makefile : 1.7 file usr.sbin/pkg_install/create/Makefile : 1.5 file usr.sbin/pkg_install/lib/Makefile : 1.28 file usr.sbin/ntp/ntpd/Makefile : 1.10/1.11 file usr.sbin/ntp/ntptime/Makefile : 1.4/1.5 file usr.sbin/pppd/Makefile.inc : 1.3 file usr.sbin/pppd/pppd/Makefile : 1.38 file usr.sbin/rarpd/Makefile : 1.10 file usr.sbin/rbootd/Makefile : 1.10 file usr.sbin/rpc.pcnfsd/Makefile : 1.17 file usr.sbin/rtadvd/Makefile : 1.9 file usr.sbin/tcpdump/Makefile : 1.42 file usr.sbin/wiconfig/Makefile : 1.3 descr GCC 4.1 warns on pointer sign comparision/assignments and lots of code does not conform. For now we use -Wno-pointer-sign and -fno-strict-aliasing. kcah port vax hack gcc4/vax ICE cdate who tsutsui file sys/arch/vax/conf/Makefile.vax descr GCC4 on vax gets ICE on compiling sys/ddb/db_command.c. -fno-tree-ter prevents it so add it to COPTS. kcah hack gcc4/vax compiler crash cdate Fri Jun 30 22:39:12 PDT 2006 who mrg file bin/csh/Makefile : 1.27 file lib/i18n_module/UTF7/Makefile : 1.2 descr GCC4 on vax crashes. -O0 stops it happening so far... kcah hack gcc 2.95/vax doesn't like abort being used as function pointer cdate Tue Dec 13 05:54:50 GMT 2005 who jmc file lib/libc/rpc/svc_vc.c 1.15 descr Provide a local definition for abort which doesn't include the noreturn attribute which trips up gcc 2.95 on vax. kcah hack gcc 2.95/vax doesn't have stdbool.h and gettext needs it cdate Mon May 9 12:16:22 CDT 2005 who jmc file gnu/usr.bin/gettext/Makefile.inc.prog 1.5 gnu/usr.bin/gettext/libgrep/Makefile 1.3 gnu/usr.bin/gettext/libnlspr/Makefile 1.5 gnu/usr.bin/gettext/libnlsut/Makefile 1.3 descr The latest gettext assumes a C99 environment or at least configure checks to work around this. As we don't use configure provide a stdbool.h for vax builds locally in directories from the template provided by the gettext code. kcah hack gcc 2.95/vax cannot handle __builtin_ffs() cdate Fri Aug 23 21:31:15 CEST 2002 who ragge file sys/lib/libkern/libkern.h : 1.42 descr __builtin_ffs() is ifdef'd away if __vax__. Matt Thomas has added this feature to GCC 3 so it can be removed when switching. kcah hack gcc 2.95/vax libbz2 mdate 27 Jun 2002 who thorpej file lib/libbz2/Makefile descr libbz2 is mis-compiled with optimization with GCC 2.95.3 on VAX. -O0 works around this problem. kcah hack vax Toolchain bug cdate 28 Mar 2003 who he file sys/arch/vax/vax/intvec.S : 1.5 descr Workaround for PR toolchain/20924. The assembler apparently tries to range-check byte offsets when it doesn't have sufficient information to make that decision. Workaround uses `brw' instead of `brb' instruction. kcah hack vax gcc 2.95.3 -Wuninitialized workarounds cdate 6 Nov 2003 who he file sys/dev/bi/if_ni.c : 1.22 file sys/arch/vax/vax/ctu.c : 1.20 descr Workaround for gcc 2.95.3 failing to detect that certain variables will be initialized; so that this code compiles with -Wuninitialized. Should be reviewed and possibly reverted when gcc 3.3.2 is ready for vax. kcah hack vax gcc 2.95.3 structure initialization cdat 13 May 2004 who cl file sys/miscfs/kernfs/kernfs_vnops.c : 1.104 descr Workaround for gcc 2.95.3 failing to initialize structures and/or unions inside structures using nested designators. Should be reverted when gcc >=3.3.3 is ready for vax. kcah hack vax gcc 2.95.3 needs -I. to build nslexer.c cdat 6 Jun 2004 who mhitch file lib/libc/arch/vax/Makefile.inc : 1.6 descr It appears necessary to add -I. to CPPFLAGS when building nslesxer.c. This may be caused by gcc 2.95.3 being used. Should be reverted when a newer gcc is ready for vax. kcah hack vax gcc 2.95.3 doesn't understand "-std=c99" cdat 5 April 2005 who tron file src/share/mk/bsd.sys.mk descr We cannot use "-std=c99" for compiler warning level 4 and above because gcc 2.95.3 doesn't support that option. kcah hack declare boolean_t in two IPF user-mode programs cdate Tue Mar 7 19:19:20 CET 2006 who he file dist/ipf/ipsend/iptests.c : 1.8 dist/ipf/ipsend/sock.c : 1.7 descr The IPF user-mode programs ipsend and iptest first include without _KERNEL defined, and later include with _KERNEL defined. This causes a build failure when building for vax, since ends up being included without bollean_t being defined by . Build failure and further details documented in PR#32907. kcah port arm hack gcc-unsigned-compare cdate 09 Mar 2002 mdate 18 Mar 2002 who bjh21 file dist/bind/lib/nameser/ns_parse.c : 1.3 file dist/dhcp/minires/ns_parse.c : 1.3 file dist/dhcp/omapip/result.c : 1.2 file dist/dhcp/server/failover.c : 1.3 file gnu/dist/toolchain/bfd/bfd.c : 1.2 file gnu/dist/toolchain/bfd/format.c : 1.2 file gnu/dist/toolchain/gdb/target.c : 1.2 file sys/kern/vfs_subr.c : 1.172 descr When checking that a potentially-unsigned enum is >= 0, assign it to an int first. This is necessary to avoid "comparison is always true" warnings with -fshort-enums. Casting to an int really should be enough, but turns out not to be. kcah port sh3 hack gcc4-sh3-bz2 cdate Sun May 21 03:34:57 UTC 2006 mdate Fri May 16 13:13:00 UTC 2008 who mrg, tsutsui file lib/libbz2/Makefile : 1.10 descr The in-tree GCC 4.1-based compiler generated too-far pc-relative addresses. Hack is to build with -fno-loop-optimize. kcah port m68000 hack gcc4-m68000 cdate Fri Feb 8 10:29:37 PST 2008 mdate Sun May 4 15:37:19 UTC 2008 who mrg, tsutsui file rescue/Makefile : 1.21 file sbin/dump_lfs/Makefile : 1.9 file sbin/fsck_ffs/Makefile : 1.35 file sbin/fsdb/Makefile : 1.22 file share/mk/sys.mk : 1.96 file usr.sbin/ndbootd/Makefile : 1.5 descr Several internal compiler errors with gcc -O1 around 64bit integer arithmetic. This hack uses -O1 and adds some -fno-tree-foo options to avoid the problem. This might be related with GCC Bugzilla Bug 32424. kcah port sparc64 hack disable optimzations for uvm_bio.c on 32 bit kernels cdate Sun Mar 21 14:14:04 MET 2004 who martin file sys/arch/sparc64/conf/Makefile.sparc64 : 1.53-1.54 file sys/arch/sparc64/conf/files.sparc64 : 1.93 descr The sparc compiler miscompiles uvm_bio.c when using any optimization. This results in ubc_release panics. kcah port mips hack mips-shared-linker-load-address cdate Fri Oct 7 08:33:10 UTC 2005 who simonb file src/sys/kern/exec_elf32.c : 1.107 descr With COMPAT_16 or previous enabled (which enables ELF_INTERP_NON_RELOCATABLE) a recent ld.elf_so will load and run at address 0. The check to fix this in rev 1.107 only checks the first psection of the ELF executable, which may not be loadable. A more correct fix is to check the first loadable psection instead of just the first psection. kcah hack mips-duplicate-ras-end-label cdate Sat Sep 2 23:29:42 2006 who martin file src/regress/sys/kern/ras/ras3/Makefile : 1.3 descr Add -fno-reorder-blocks to CFLAGS to avoid duplicate labels by duplicated __asm output from RAS_END() macro. kcah port i386 hack use volatile intermediate variable to enforce rounding cdate Tue Aug 1 22:15:55 MEST 2006 who drochner file src/lib/libm/src/lrintf.c : 1.4 file src/lib/libm/src/s_rintf.c : 1.8 descr gcc-4 does subsequent operations on "float" values within the i387 FPU without rounding the intermediate results kcah @ 1.100.2.3 log @Sync with HEAD. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.100.2.2 2008/10/05 20:11:18 mjf Exp $ a282 28 hack cross-building hack on Darwin mdate 20 July 2008 who agc file src/distrib/common/Makefile.mdset : 1.33 descr Darwin has problems with getopt() when used in mdsetimage -v, due to the difference between BSD and libiberty() getopt implementations, more fully described in http://mail-index.netbsd.org/current-users/2008/06/27/msg003242.html and the subsequent thread. For just now, we just have an ugly workaround not to call mdsetimage with the -v argument on Darwin kcah hack avoid rebuilding asn1 libraries mdate 03 August 2008 who veego file src/crypto/dist/heimdal/lib/asn1/gen.c : 1.10 file src/lib/libasn1/Makefile : 1.32 file src/lib/libhdb/Makefile : 1.23 file src/lib/libgssapi/Makefile : 1.20 file src/lib/libhx509/Makefile : 1.3 pr 9702 39185 descr asn1_compile does not check if generated header files do not have to be rebuild. Generate .hx files and copy it in the Makefiles if they changed. kcah a411 24 hack pcc 0.9.9 large string literals cdat 8 July 2008 who gmcgarry file sys/conf/param.c : 1.58 descr Workaround for pcc 0.9.9 not handling large string literals which causes kernels with 'options INCLUDE_CONFIG_FILE' to fail compilation. There is a proposal on the pcc mailing list to stuff config file in ELF section. kcah hack xorg warnings cdat 30 July 2008 who mrg file external/mit/xorg/lib/libSM/Makefile : 1.2 external/mit/xorg/lib/libX11/Makefile.libx11 : 1.2 external/mit/xorg/lib/libXext/Makefile : 1.2 external/mit/xorg/lib/libXfont/Makefile : 1.2 descr Disable several warnings or use -Wno-error across Xorg sources while we get them working kcah a505 12 hack mips-mcount-assembler-warning cdate Tue Jul 29 14:16:52 UTC 2008 who lukem file src/lib/libc/gmon/Makefile.inc : 1.8 descr Workaround for PR port-mips/39192. common/lib/libc/gmon/mcount.c generates a (fatal) assembler warning on MIPS: Warning: No .cprestore pseudo-op used in PIC code Add COPTS.count.c+=-Wa,--no-warn to avoid -Wa,--fatal-warnings kcah a516 12 port powerpc hack avoid using __builtin_return_address(0) because it fails in Xorg's module loader cdate Sat Sep 27 03:52:05 UTC 2008 who macallan file src/libexec/ld.elf_so/rtld.c : 1.121 descr workaround for PR port-macppc/37812 kcah @ 1.99 log @Update an entry for gcc optimization on m68000. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.98 2008/03/28 21:18:24 christos Exp $ a86 12 hack GCC2 isn't C99 cdate 5 December 2003 who mrg file gnu/dist/binutils/ld/ldlex.c: r1.2 descr ldlex.c is generated from ldlex.l and we get macro redefinition errors from it if __STDC_VERSION__ is not C99 compliant. This hack forces NetBSD 1.6 and later systems to also include to get the relevant definitions. This hack should be backed out when all platforms have switched away from GCC2. kcah a100 12 hack gcc 3.3.3 wrong uninitialised variable mdate 12 May 2006 who he file usr.bin/msgc/msg_sys.def : 1.33-1.34 file distrib/utils/sysinst/aout2elf.c : 1.11 descr Gcc 3.3.3 gets some -Wuninitialized warnings wrong. This is just one of many in the tree, marked with /* XXX -Wuninitialized [arch] */ in the source. kcah d170 1 a435 38 port pc532 hack egcs-pc532-ip6_mroute cdate 09 Jul 2002 who simonb file sys/arch/pc532/conf/Makefile.pc532 : 1.70 file sys/arch/pc532/conf/files.pc532 : 1.47 descr egcs 1.1.2 gets an "internal error--insn does not satisfy its constraints" error compiling ip6_mroute.c with -O2 or greater. -O1 works around this problem. kcah hack gcc-pc532-duffs_device cdate Mon Oct 27 07:23:05 UTC 2003 who simonb file sys/arch/pc532/conf/Makefile.pc532 : 1.71 file sys/arch/pc532/conf/files.pc532 : 1.52 pr GCC PR optimization/5230 descr gcc incorrectly gives an "unreachable code at beginning of switch statement" for a Duff's device construct in arch/pc532/dev/ncr.c. There is no way to disable just this warning, so -Wno-error is turned on for this file. kcah hack gcc332-cppmacro-ice cdate Sun Dec 7 12:48:33 UTC 2003 who simonb file gnu/usr.bin/gcc3/libcpp/Makefile : 1.2 descr gcc 3.3.2 gets an ICE when compiling cppmacro.c with -O2. The hack is to use -O1 for this file. Fixed in gcc -current mainline, unable to work out where the fix is right now. kcah a475 14 port macppc hack remove inline from rotate_{left,right} cdate Tue Feb 22 13:43:25 EST 2005 who christos file src/dist/bind/lib/dns/rbt.c descr The macppc gcc-3.3 compiler miscompiles rbt.c when these functions are inlined. The error is: .* named[368]: rbt.c:1584: INSIST(child != (void *)0) >failed .* named[368]: exiting (due to assertion failure) This is reportedly fixed in gcc-3.4 kcah @ 1.98 log @undo previous @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.97 2008/03/28 18:14:23 he Exp $ d512 2 a513 3 cdate Fri Feb 8 10:29:37 PST 2008 who mrg file share/mk/sys.mk : 1.94 d515 3 a517 1 file lib/libcurses/Makefile : 1.54 d520 2 a521 1 This hack uses -O0 to avoid the problem. @ 1.98.2.1 log @sync with head. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.98 2008/03/28 21:18:24 christos Exp $ d87 12 d113 12 a193 1 file usr.bin/msgc/msg_sys.def : 1.33-1.34 a307 9 hack gcc4/vax ICE cdate who tsutsui file sys/arch/vax/conf/Makefile.vax descr GCC4 on vax gets ICE on compiling sys/ddb/db_command.c. -fno-tree-ter prevents it so add it to COPTS. kcah d349 1 a349 1 hack gcc 2.95/vax libbz2 d446 50 d500 2 a501 3 cdate Sun May 21 03:34:57 UTC 2006 mdate Fri May 16 13:13:00 UTC 2008 who mrg, tsutsui d505 1 a505 2 pc-relative addresses. Hack is to build with -fno-loop-optimize. d513 2 a514 2 mdate Sun May 4 15:37:19 UTC 2008 who mrg, tsutsui d516 4 a519 11 file sbin/dump_lfs/Makefile : 1.9 file sbin/fsck_ffs/Makefile : 1.35 file sbin/fsdb/Makefile : 1.22 file share/mk/sys.mk : 1.96 file usr.sbin/ndbootd/Makefile : 1.5 descr Several internal compiler errors with gcc -O1 around 64bit integer arithmetic. This hack uses -O1 and adds some -fno-tree-foo options to avoid the problem. This might be related with GCC Bugzilla Bug 32424. d535 14 @ 1.97 log @Note the build hack for racoon's privsep.c. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.96 2008/02/09 02:37:21 mrg Exp $ a305 11 hack mdate 13 Mar 2008 who he file usr.sbin/racoon/Makefile : 1.19 descr Needs to avoid building privsep.c with the stack protector because it uses variably-sized local arrays via CMSG_SIZE() in two functions. kcah @ 1.96 log @make all sun2 use -O0 and move most of the hacks out into just 3 files. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.95 2008/02/05 02:41:15 mrg Exp $ d306 11 @ 1.95 log @make sun2 build again with liberal use of -O0. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.94 2007/12/31 14:10:41 ad Exp $ d509 1 a509 32 port sun2 hack gcc 3.3.2/mdsetimage cdate Tue Oct 28 18:43:05 EST 2003 who fredette file gnu/usr.sbin/mdsetimage/Makefile : 1.15 descr mdsetimage.c causes cc1 to barf for as-yet unknown reasons. this hack uses -O0 to avoid the problem. kcah hack gcc 3.3.2/installboot/ffs.c cdate Tue Oct 28 18:43:05 EST 2003 who fredette file usr.sbin/installboot/Makefile : 1.26 descr ffs.c causes cc1 to barf for as-yet unknown reasons. this hack uses -O0 to avoid the problem. kcah hack gcc 4.1.1/fsck_ffs/pass1.c cdate Fri Jun 23 10:30:25 PDT 2006 who mrg file sbin/fsck_ffs/Makefile : 1.30 file sbin/fsdb/Makefile : 1.19 file sbin/dump_lfs/Makefile : 1.9 file usr.sbin/ndbootd/Makefile : 1.2 descr pass1.c causes cc1 to barf for as-yet unknown reasons. this hack uses -O0 to avoid the problem. (these all seem to be the same problem.) kcah d511 2 a512 2 hack gcc 4.1.3/sun2 cdate Fri Jun 23 10:30:25 PDT 2006 d514 3 a516 3 file gnu/lib/libgcc4/Makefile.inc : 1.7 file lib/libc/gdtoa/Makefile.inc : 1.7 file lib/libm/Makefile : 1.80 d518 2 a519 2 parts of libgcc, libgtoa and libm fail with sun2 gcc 4.1.3. hack uses -O0 to avoid the problem. a522 15 port m68000 hack gcc 3.3.2/gcc/ra-colorize.c cdate Wed Nov 5 11:03:13 EST 2003 who mrg file gnu/usr.bin/gcc3/backend/Makefile : 1.11 descr ra-colorize.c causes a whole spew of unreferenced .L* local symbols. using -O0 (or even -O2 reportedly) avoids the problem. Note this has been fixed in 3.3.3 at least on m68k, but it hasn't been confirmed on sun2/m68000. (it's too slow even on emulator and unlikely to build toolchains on sun2 with its maximum 4MB RAM) kcah @ 1.94 log @-systrace @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.93 2007/04/08 09:57:17 scw Exp $ d542 11 @ 1.93 log @"port sh5" is no more, and its hacks have been undone. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.92 2007/01/08 17:41:21 chs Exp $ a130 1 file bin/systrace/systrace.c : 1.33 a218 1 file bin/systrace/Makefile : 1.12 @ 1.93.4.1 log @sync with HEAD @ text @d1 1 a1 1 # $NetBSD$ d131 1 d220 1 @ 1.93.4.2 log @sync with HEAD @ text @d1 1 a1 1 # HACKS,v 1.93.4.1 2008/01/09 01:29:27 matt Exp d509 34 d545 2 a546 2 hack gcc4-m68000 cdate Fri Feb 8 10:29:37 PST 2008 d548 1 a548 3 file share/mk/sys.mk : 1.94 file rescue/Makefile : 1.21 file lib/libcurses/Makefile : 1.54 d550 6 a555 2 Many errors across the tree with optimisation. This hack uses -O0 to avoid the problem. a557 1 @ 1.92 log @fix a typo and remove one that's been removed from the code. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.91 2006/11/23 13:24:28 martin Exp $ a510 85 port sh5 hack SuperH SH5 Toolchain Bugs cdate 11 Jul 2002 who scw file usr.sbin/ndbootd/ndbootd.c : 1.6 file usr.sbin/traceroute/traceroute.c : 1.48 descr The SuperH SH5 toolchain (2.97-sh5-010522) gets an internal compiler error when assigning a bit-wise inverted value under some circumstances. Work around it by splitting the statement into two. kcah hack SuperH SH5 Toolchain Bugs cdate 17 May 2003 who scw file lib/libpthread/pthread_lock.c : 1.7 descr The SuperH SH5 toolchain generates incorrect PIC code when faced with a symbol which is declared extern, but has local scope due to being defined within an asm() statement (without being declared .globl in that statement). Work around it by adding the .globl. kcah hack gcc 3.3.2 on sh5 - ICE compiling reload1.c at -O2 cdate Sun Dec 7 19:44:05 GMT 2003 who scw file gnu/usr.bin/gcc3/backend/Makefile : 1.13 descr Gcc3 for sh5 gets an ICE compiling reload1.c at -O2. Drop to -O1 for now when building for sh5. kcah hack gcc 3.3.2 on sh5 - ICE compiling elf32.c/elf64.c at -O2 cdate Sun Dec 7 21:10:46 GMT 2003 who scw file gnu/lib/libbfd/Makefile : 1.39 descr Gcc3 for sh5 gets an ICE compiling libbfd's elf32.c and elf64.c at -O2. Drop to -O1 for now when building for sh5. kcah hack gcc 3.3.2 on sh5 - fatal warning compiling function.c cdate Sun Dec 7 19:44:05 GMT 2003 who scw file gnu/usr.bin/gcc3/backend/Makefile : 1.13 descr Gcc3 for sh5 issues a warning: .../gnu/dist/gcc/gcc/function.c:4742: warning: `and' of mutually exclusive equal-tests is always 0. This causes the build to fail because of -Werror. Work-around by defining NOGCCERROR when building for sh5. kcah hack gcc 3.3.3 on sh5 - ICE compiling rbtdb.c and rbtdb64.c cdate Thu Nov 11 00:35:33 UTC 2004 who he file usr.sbin/bind/libdns/Makefile/1.2 descr Gcc3 for sh5 gets an ICE compiling these files at -O2. Drop to -O1 for now when building for sh5. kcah hack gcc 3.3.3 nb3 on sh5 - ICE compiling bsd-comp.c cdate Thu May 25 23:05:20 UTC 2005 who he file sys/lkm/net/bsdcomp/Makefile : 1.3 descr Gcc3 for sh5 gets an ICE compiling this at -O2, "could not split insn". Drop to -O1 for sh5. kcah hack gcc 3.3.3 nb3 on sh5 - ICE compiling strtod.c cdate Tue Jan 31 10:51:52 GMT 2006 who scw file lib/libc/gdtoa/Makefile.inc : 1.2 descr Gcc3 for sh5 gets an ICE compiling this at -O2, "could not split insn". Drop to -O1 for sh5. kcah @ 1.91 log @Note crunched dhclient change with -fno-strict-aliasing hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.90 2006/11/01 17:10:36 skrll Exp $ d690 1 a690 1 file src/regres/sys/kern/ras/ras3/Makefile : 1.3 a698 9 hack minus-Os-broken-machdep-c cdate Mon Jul 31 13:09:01 EDT 2006 who christos file src/sys/arch/machdep.c : 1.576 descr gcc-4 miscompiles this file with -Os and the resulting kernel resets as reported in PR33725 kcah @ 1.91.4.1 log @Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.91.2.1 2007/05/16 20:24:13 jdc Exp $ a307 12 hack rbus resource allocation work around cdate 10 May 2007 who jnemeth file src/sys/dev/pcmcia/aic_pcmcia.c : 1.35 pr 26909 31245 descr On some cards, the card align field property value interferes with the rbus resource allocation causing the card not to configure properly. Setting it to 0 fixes the problem but it is not the proper solution. kcah @ 1.91.4.2 log @Sync w/ NetBSD-4-RC_1 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.91.4.1 2007/06/03 17:25:50 wrstuden Exp $ d523 85 @ 1.91.2.1 log @Work around rbus resource allocation problem so cards work again using a patch specifically for netbsd-4 (requested by jnemeth in ticket #638). @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.91 2006/11/23 13:24:28 martin Exp $ a307 12 hack rbus resource allocation work around cdate 10 May 2007 who jnemeth file src/sys/dev/pcmcia/aic_pcmcia.c : 1.35 pr 26909 31245 descr On some cards, the card align field property value interferes with the rbus resource allocation causing the card not to configure properly. Setting it to 0 fixes the problem but it is not the proper solution. kcah @ 1.91.2.2 log @Pull up following revision(s) (requested by soren in ticket #774): build.sh: revision 1.169 gnu/usr.bin/gcc4/backend/Makefile: revision 1.9 sys/arch/evbsh5/README: revision 1.1 distrib/notes/common/contents: revision 1.124 usr.sbin/ndbootd/ndbootd.c: revision 1.12 gnu/lib/libopcodes/arch/sh3eb/defs.mk: revision 1.4 gnu/lib/libbfd/arch/sh3eb/defs.mk: revision 1.8 libexec/ld.elf_so/Makefile: revision 1.78 gnu/dist/binutils/bfd/config.bfd: revision 1.14 doc/HACKS: revision 1.93 distrib/cdrom/current.conf: revision 1.8 gnu/lib/libgcc4/Makefile.inc: revision 1.6 share/mk/sys.mk: revision 1.90 distrib/sets/lists/base/mi: revision 1.700 libexec/ld.elf_so/rtld.c: revision 1.112 distrib/sets/lists/base/mi: revision 1.702 sys/arch/sh5/README: revision 1.1 gnu/lib/libbfd/arch/sh3el/bfd.h: revision 1.7 usr.sbin/traceroute/traceroute.c: revision 1.69 distrib/notes/common/main: revision 1.330 distrib/notes/common/list-setsizes.sh: revision 1.2 sys/arch/Makefile: revision 1.35 gnu/lib/libopcodes/arch/sh3el/defs.mk: revision 1.4 gnu/lib/libbfd/arch/sh3el/defs.mk: revision 1.8 share/mk/bsd.own.mk: revision 1.495 gnu/lib/libbfd/arch/sh3eb/bfd.h: revision 1.7 x11/lib/OSmesa/Makefile: revision 1.20 sys/dev/dkwedge/dkwedge_bsdlabel.c: revision 1.13 gnu/dist/binutils/opcodes/configure.in: revision 1.2 gnu/dist/binutils/opcodes/configure: revision 1.2 gnu/usr.bin/send-pr/categories: revision 1.53 etc/mtree/NetBSD.dist: revision 1.339 sys/arch/README: revision 1.42 lib/libc/gdtoa/Makefile.inc: revision 1.6 usr.bin/crunch/crunchide/Makefile: revision 1.16 sys/lkm/net/bsdcomp/Makefile: revision 1.5 regress/sys/uvm/Makefile: revision 1.6 etc/MAKEDEV.awk: revision 1.18 x11/Xserver/GL/GLcore/Makefile.GLcore: revision 1.10 sys/contrib/dev/ath/netbsd/Makefile.ath.inc: revision 1.14 gnu/lib/libbfd/Makefile: revision 1.42 doc/RESPONSIBLE: revision 1.78 Remove evbsh5. @ text @d1 1 a1 1 # $NetBSD$ d523 85 @ 1.91.2.2.2.1 log @Pull up following revision(s) via patch (requested by nakayama in ticket #1443): sys/arch/sparc64/conf/Makefile.sparc64: revision 1.71 doc/HACKS: revision 1.123 sys/arch/sparc64/conf/files.sparc64: revision 1.138 sys/arch/sparc64/sparc64/locore.s: revision 1.340 Fix the root cause of the hack "disable optimizations for uvm_bio.c on 32 bit kernels". gcc converts a division in the calculation of UBC_UMAP_ADDR macro to multiplication (smul or combination of add/sll), and the register of its result contains a garbage in upper 32 bits (the upper 32 bits of smul/add/sll's result isn't zero cleared). Then it passes to pseg_get{,_real} through pmap_extract without the zero clear of upper 32 bits in the optimization case. So the result of pseg_get and pmap_extact sometimes gets screwed up. The hack has been resolved in the revision 1.340 of sys/arch/sparc64/sparc64/locore.s. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.91.2.2 2007/07/19 14:38:17 liamjfoy Exp $ d572 12 @ 1.91.2.3 log @Document hack to make vax port build again (requested by bouyer in ticket #1207). @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.91.2.2 2007/07/19 14:38:17 liamjfoy Exp $ a322 9 cdate Thu Sep 25 22:20:08 CEST 2008 who bouyer file x11/Xserver/os/Makefile : 1.14.4.1 file x11/bin/lbxproxy/Makefile : 1.6.12.1 descr GCC4 on vax crashes. -O0 stops it happening so far... kcah hack gcc4/vax compiler crash @ 1.91.2.4 log @Pull up following revision(s) via patch (requested by nakayama in ticket #1443): sys/arch/sparc64/conf/Makefile.sparc64: revision 1.71 doc/HACKS: revision 1.123 sys/arch/sparc64/conf/files.sparc64: revision 1.138 sys/arch/sparc64/sparc64/locore.s: revision 1.340 Fix the root cause of the hack "disable optimizations for uvm_bio.c on 32 bit kernels". gcc converts a division in the calculation of UBC_UMAP_ADDR macro to multiplication (smul or combination of add/sll), and the register of its result contains a garbage in upper 32 bits (the upper 32 bits of smul/add/sll's result isn't zero cleared). Then it passes to pseg_get{,_real} through pmap_extract without the zero clear of upper 32 bits in the optimization case. So the result of pseg_get and pmap_extact sometimes gets screwed up. The hack has been resolved in the revision 1.340 of sys/arch/sparc64/sparc64/locore.s. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.91.2.3 2008/09/29 20:23:31 jdc Exp $ d581 12 @ 1.90 log @Remove the hack that compiles dfa.c with -O1 on hppa. -O2 works fine. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.89 2006/10/30 16:46:42 skrll Exp $ d222 1 @ 1.89 log @Remove a hack that's been fixed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.88 2006/10/29 23:02:25 uwe Exp $ a669 11 port hppa hack hppa-gcc-3.3.3/grep/dfa.c cdate Sun Aug 8 08:34:32 PDT 2004 who chs file gnu/usr.bin/grep/grep/Makefile : 1.4 descr gcc 3.3.3 generates bad code for dfa.c with -O2, reduce optimization to -O1 to avoid the bug. kcah @ 1.88 log @The "gcc 2.95/vax can't handle __used__" hack has been fixed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.87 2006/10/27 22:31:21 uwe Exp $ a680 11 hack hppa boot-from-disk memory corruption cdate Wed May 18 06:56:07 PDT 2005 who chs file src/sys/dev/scsipi/scsipiconf.h : 1.98 descr There is some bug with DMA on hppa that corrupts scsipi_xfer structures, but it only shows up when booting from disk. For now, we'll add some padding to scsipi_xfer so that the corrupted memory is not otherwise used. kcah @ 1.87 log @G/c references to gawk that is no longer in our tree. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.86 2006/09/28 21:01:21 skrll Exp $ a340 11 hack gcc 2.95/vax can't handle __used__ cdate Fri May 6 14:30:53 CDT 2005 who jmc file src/lib/libc/gmon/mcount.c 1.17 src/usr.bin/config/main.c 1.11 descr Recent changes to mark this as __used__ to prevent optimization away on sparc64 don't work on 2.95 vax. Ifdef'd back in the old __unused__ if on vax. kcah @ 1.86 log @Remove the sparc64 PLT entry. It's compatibilty code for the changing definition of the first four PLT entries and is very likely never going to be removed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.85 2006/09/02 21:32:13 martin Exp $ a369 9 hack gawk mdate 8 Nov 2003 who ragge file gnu/usr.bin/gawk/Makefile descr gawk is mis-compiled with optimization with GCC 2.95.3 on VAX. -O0 works around this problem. kcah a447 1 file gnu/dist/gawk/eval.c : 1.4 @ 1.85 log @Document RAS_END() duplcate label workaround @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.84 2006/08/01 20:21:55 drochner Exp $ a446 21 port sparc64 hack binutil-2.11-sparc64-pltrela mdate 14 Aug 2001 who eeh file libexec/ld.elf_so/arch/sparc64/mdreloc.c descr The first four PLT entries are reserved. There is some disagreement whether they should have associated relocation entries. Both the SPARC 32-bit and 64-bit ELF specifications say that they should have relocation entries, but the 32-bit SPARC binutils do not generate them, and now the 64-bit SPARC binutils have stopped generating them too. To provide binary compatibility, we will check the first entry, if it is reserved it should not be of the type JMP_SLOT. If it is JMP_SLOT, then the 4 reserved entries were not generated and our index is 4 entries too far, so we frob the rela pointer. kcah @ 1.84 log @document "float" rounding workaround on i386 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.83 2006/07/31 18:39:32 christos Exp $ d750 10 @ 1.83 log @mention the correct PR. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.82 2006/07/31 17:10:57 christos Exp $ d760 10 @ 1.82 log @mention i386 machdep.c @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.81 2006/07/01 06:00:41 mrg Exp $ d758 1 a758 1 kernel resets as reported in PR33918 @ 1.81 log @document the GCC4/vax -O0 hacks. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.80 2006/06/25 14:24:45 tsutsui Exp $ d750 10 @ 1.80 log @- uninitialised -> uninitialized (for consistency) - add sys/arch/m68k/m68k/pmap_motorolo.c rev 1.19 to the gcc4 wrong uninitialized list @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.79 2006/06/24 05:21:11 mrg Exp $ d309 9 d325 1 d339 1 d350 1 d359 1 a359 1 @ 1.79 log @work around some GCC4 internal problems on m68000 platform. document the hack, and update another GCC4 list. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.78 2006/06/15 10:55:02 skrll Exp $ d125 1 a125 1 hack gcc4 wrong uninitialised variable d161 1 @ 1.78 log @Remove a hack that's no longer needed with gcc 3.3.6. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.77 2006/06/02 19:45:25 mrg Exp $ d160 1 d644 13 @ 1.77 log @remove sh3/gcc2 hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.76 2006/05/25 09:05:40 mrg Exp $ a695 10 hack hppa-gcc-3.3.3 / make/buf.c cdate Mon May 8 13:02:36 CEST 2006 who he file usr.bin/make/Makefile : 1.34 descr gcc 3.3.3 nb3 gets an "unrecognized insn" internal compiler error when building this file with -O2, reduce optimization to -O1 to avoid the bug. kcah @ 1.76 log @update the uninit list @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.75 2006/05/24 23:18:56 christos Exp $ a527 9 hack gcc-sh3-sed mdate 23 Apr 2002 who thorpej file usr.bin/sed/Makefile : 1.9 : 9 : 13 descr The in-tree GCC 2.95.3-based compiler ICEs when building with optimization for SuperH. Hack is to build with -O0. kcah @ 1.75 log @mention config hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.74 2006/05/21 04:19:12 mrg Exp $ d151 1 @ 1.74 log @- note sh3/vax mdreloc.c uninitialised variable warnings. - note sh3 libbz2/gcc4 hack for blockstore.c @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.73 2006/05/21 01:24:41 dan Exp $ d327 1 a327 1 hack gcc 2.95/vax can't handle __used__ in mcount.c d331 1 @ 1.73 log @note more gcc4 uninitialised appeasement (amd64 pmap.c) @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.72 2006/05/21 00:44:53 mrg Exp $ d151 1 d154 1 d535 9 @ 1.72 log @note ntp_request.c 1.4 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.71 2006/05/20 23:41:16 dan Exp $ d156 1 @ 1.71 log @note uninitialsed appeasement in libexec/ld.elf_so/arch/x86_64/mdreloc.c @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.70 2006/05/20 20:34:29 christos Exp $ d137 1 @ 1.70 log @remove ypserv from the gcc4 hacks since it has been fixed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.69 2006/05/20 11:17:55 mrg Exp $ d152 1 @ 1.69 log @update the uninit gcc4 list a bit more. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.68 2006/05/18 18:48:42 mrg Exp $ a292 1 file usr.sbin/ypserv/ypserv/Makefile : 1.16 @ 1.68 log @update wrong uninitialised variables list @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.67 2006/05/17 17:09:43 christos Exp $ d149 2 d158 1 @ 1.67 log @Remove csu hack. It was not a gcc issue. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.66 2006/05/17 16:42:59 christos Exp $ d142 1 d154 1 a154 1 file sys/dev/cardbus/cardbus_map.c : 1.xxx d156 1 a156 1 file sys/dev/ic/mb86950.c : 1.xxx d158 3 a160 3 file sys/dev/usb/ohci.c : 1.xxx file sys/dev/usb/uhci.c : 1.xxx file sys/dev/pci/cmpci.c : 1.xxx d162 3 d173 1 a173 1 file sys/netccitt/if_x25subr.c : 1.xxx d210 1 d242 1 @ 1.66 log @mention i386 csu issue. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.65 2006/05/15 04:55:13 christos Exp $ a290 9 hack gcc4 _DYNAMIC problem file lib/csu/i386_elf/crt0.c : 1.14 descr GCC4.1 seems to be confused with the weak symbol _DYNAMIC and does not produce code that references it. Static binaries fail because of this since _rtld_setup gets called. For now, check for obj != NULL so that statically linked binaries work. kcah @ 1.65 log @Explain which initialized variables gcc misses. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.64 2006/05/12 18:06:29 mrg Exp $ d291 8 @ 1.64 log @note that libsa/Makefile and crontab/Makefile have -Wno-pointer-sign and -fno-strict-aliasing applied. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.63 2006/05/12 13:32:50 he Exp $ d194 5 @ 1.63 log @List one more gcc 3.3.3 -Wuninitialized fix. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.62 2006/05/12 07:25:10 he Exp $ d231 1 d233 1 @ 1.62 log @Note the latest -Wuninitialized warning, and how the source is typically marked for the other such workarounds. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.61 2006/05/12 03:26:54 mrg Exp $ d117 1 @ 1.61 log @note gzip & mopd pointer-sign hacks @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.60 2006/05/11 23:51:06 mrg Exp $ d113 11 @ 1.60 log @update the lists for GCC4 uninit warnings and GCC4 pointer sign/strict aliasing warnings. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.59 2006/05/11 09:39:58 mrg Exp $ d221 1 d247 3 @ 1.59 log @document the GCC4 pointer sign and strict aliasing problems (so far.) @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.58 2006/05/11 01:10:13 mrg Exp $ d141 1 d143 1 d145 3 d157 1 d188 31 a218 1 file bin/systrace/Makefile : 1. d220 3 d224 3 a226 1 file usr.bin/ssh/ssh/Makefile : 1.24 d232 5 d239 2 d246 5 d255 1 d257 1 d259 1 a259 1 file usr.sbin/tcpdump/Makefile : 1.41 d261 1 @ 1.58 log @move gcc4 uninit warnings to the of the MI section. add pf.c @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.57 2006/05/10 21:54:58 mrg Exp $ d147 1 d178 34 @ 1.57 log @document the bogus GCC4 uninitialised warning fixes. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.56 2006/05/08 14:48:59 tsutsui Exp $ a29 63 hack gcc4 wrong uninitialised variable mdate 10 May 2006 who mrg file bin/ksh/eval.c : 1.6 file bin/sh/histedit.c : 1.39 file bin/sh/parser.c : 1.60 file bin/systrace/systrace.c : 1.33 file crypto/dist/heimdal/kdc/524.c : 1.10 file crypto/dist/ssh/sftp.c : 1.20 file crypto/dist/ssh/ssh-keysign.c : 1.11 file dist/ipf/lib/hostname.c : 1.2 file dist/ipf/tools/ipmon.c : 1.8 file dist/ntp/ntpd/refclock_shm.c : 1.4 file dist/ntp/sntp/timing.c : 1.3 file dist/pppd/pppstats/pppstats.c : 1.3 file dist/smbfs/lib/smb/rap.c : 1.6 file dist/tcpdump/print-zephyr.c : 1.5 file gnu/libexec/uucp/uucico/uucico.c : 1.6 file lib/libc/citrus/citrus_csmapper.c : 1.6 file lib/libc/citrus/citrus_pivot_factory.c : 1.5 file lib/libc/inet/inet_cidr_ntop.c : 1.3 file lib/libc/inet/inet_ntop.c : 1.3 file lib/libc/stdio/vfwprintf.c : 1.8 file libexec/ld.elf_so/arch/sparc64/mdreloc.c : 1.39 file sbin/fsck_ext2fs/dir.c : 1.19 file sbin/routed/rtquery/rtquery.c : 1.18 file sys/crypto/cast128/cast128.c : 1.9 file sys/ddb/db_command.c : 1.86 file sys/dev/fss.c : 1.25 file sys/dev/ic/midway.c : 1.71 file sys/dev/pci/machfb.c : 1.45 file sys/dist/ipf/netinet/ip_nat.c : 1.10 file sys/dist/ipf/netinet/ip_rpcb_pxy.c : 1.8 file sys/kern/kern_sig.c : 1.219 file sys/kern/tty.c : 1.181 file sys/net/bpf.c : 1.116 file sys/net/zlib.c : 1.26 file sys/netinet/in.c : 1.107 file sys/netsmb/smb_smb.c : 1.27 file sys/netsmb/smb_trantcp.c : 1.22 file sys/nfs/nfs_serv.c : 1.108 file sys/nfs/nfs_socket.c : 1.129 file sys/nfs/nfs_syscalls.c : 1.91 file sys/ufs/lfs/lfs_vfsops.c : 1.207 [also (char *)] file usr.bin/ftp/ftp.c : 1.140 file usr.bin/find/function.c : 1.54 file usr.bin/mail/tty.c : 1.20 file usr.bin/nl/nl.c : 1.7 file usr.bin/systat/keyboard.c : 1.23 file usr.bin/usbhidctl/usbhid.c : 1.29 file usr.bin/vi/cl/cl_read.c : 1.5 file usr.bin/vi/ex/ex_cscope.c : 1.12 file usr.bin/vi/ex/ex_tag.c : 1.19 file usr.bin/vi/vi/v_txt.c : 1.15 file usr.sbin/altq/altqstat/qdisc_rio.c : 1.4 file usr.sbin/cron/do_command.c : 1.19 file usr.sbin/timed/timed/slave.c : 1.15 descr GCC 4.1 gets many uninitialised variable warnings wrong. We should really audit all the old hacks like this when older compilers are removed from the tree, as many are probably no longer required. kcah d113 64 @ 1.56 log @Update entry of m68k gcc ra-colorize.c. (fixed in gcc-3.3.3 at least on m68k, but not conformed on m68000) @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.55 2006/05/08 11:09:01 he Exp $ d30 63 @ 1.55 log @Document the "reduce optimization for make/buf.c" hack for hppa. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.54 2006/03/07 18:24:13 he Exp $ d452 1 a452 1 port sun2 m68k d461 4 @ 1.54 log @Document the hack to make ipsend and iptest build for NetBSD/vax, with a pointer to PR#32907 for further details. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.53 2006/01/31 10:57:43 scw Exp $ d500 10 @ 1.53 log @Document hack for gcc ICE compiling lib/libc/gdtoa/strtod.c for sh5. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.52 2005/12/13 05:56:23 jmc Exp $ d225 16 d526 1 @ 1.52 log @Note needed hack for gcc/vax and using abort in a function pointer. From Johnny Billquist @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.51 2005/10/07 08:42:24 simonb Exp $ d406 9 @ 1.51 log @Describe the mips shared linker load address fix hack in src/sys/kern/exec_elf32.c rev 1.107. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.50 2005/06/02 14:38:05 he Exp $ d116 8 @ 1.50 log @Remove the hack related to -Wno-cast-qual, now that we can use the __UNVOLATILE() macro to annul this warning more selectively. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.49 2005/06/02 10:25:22 he Exp $ d477 16 @ 1.49 log @Document the hack to compile sys/arch/powerpc/oea/pmap.c with -Wno-cast-qual. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.48 2005/05/26 18:33:36 he Exp $ a476 16 port powerpc hack add -Wno-cast-qual to pmap.c cdate Thu Jun 2 12:18:53 CEST 2005 who he file sys/arch/powerpc/conf/Makefile.powerpc : 1.34 file sys/arch/powerpc/conf/files.powerpc : 1.59 descr sys/arch/powerpc/oea/pmap.c cannot be compiled with -Wcast-qual because "volatile struct pteg *pmap_pteg_table" is being passed to memset(), and the only obvious alternative to adding -Wno-cast-qual I could see would be to open-code memset(), which I think would be worse than this fix. kcah @ 1.48 log @Reduce optimization level for sh5 for one file which causes our gcc 3.3.3 to get an internal compiler error of type "can't split insn". @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.47 2005/05/18 13:58:10 chs Exp $ d477 16 @ 1.47 log @as a stop-gap measure to allow boot-from-disk to work on hppa, add some padding to the end of struct scsipi_xfer on that platform. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.46 2005/05/11 13:10:21 chs Exp $ d389 8 @ 1.46 log @build grep/dfa.c with reduced optimization on hppa to avoid a gcc bug. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.45 2005/05/09 17:19:06 jmc Exp $ d458 11 @ 1.45 log @Gettext assumes a C99 environment with stdbool.h or configure would provide one from a template. As we do a reach over build, for vax builds provide stdbool.h locally from that template. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.44 2005/05/06 19:32:30 jmc Exp $ d411 1 a411 1 port sun2, m68k d416 1 a416 1 file gnu/usr.bin/gcc/backend/Makefile : 1.11 d447 11 @ 1.44 log @The __used__ change doesn't work on 2.95/vax. Put an #ifdef back in for vax and reverted it to __unused__ as it was before @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.43 2005/04/05 11:56:09 tron Exp $ d116 13 @ 1.43 log @Don't use "-std=c99" for NetBSD-vax because gcc 2.95.3 doesn't support it. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.42 2005/02/22 18:47:09 christos Exp $ d116 9 d132 1 a132 1 kcah @ 1.42 log @add macppc bind compilation work-around. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.41 2004/12/30 16:29:48 bjh21 Exp $ d186 9 @ 1.42.4.1 log @Apply patch (requested by jnemeth in ticket #1153): aic(4): work around rbus resource allocation problem so cards work again. [jnemeth 20060131] @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.42 2005/02/22 18:47:09 christos Exp $ a112 11 hack rbus resource allocation work around cdate 31 January 2006 who jnemeth file src/sys/dev/pcmcia/aic_pcmcia.c : 1.32 pr 26909 31245 descr On some cards, the card align field property value interferes with the rbus resource allocation causing the card not to configure properly. Setting it to 0 fixes the problem but it is not the proper solution. kcah @ 1.42.2.1 log @Apply patch (requested by jnemeth in ticket #1153): aic(4): work around rbus resource allocation problem so cards work again. [jnemeth 20060131] @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.42 2005/02/22 18:47:09 christos Exp $ a112 11 hack rbus resource allocation work around cdate 31 January 2006 who jnemeth file src/sys/dev/pcmcia/aic_pcmcia.c : 1.32 pr 26909 31245 descr On some cards, the card align field property value interferes with the rbus resource allocation causing the card not to configure properly. Setting it to 0 fixes the problem but it is not the proper solution. kcah @ 1.41 log @Correct file reference and add PR reference in "gcc 3.3.2/arm sys/kern/uipc_socket.c". @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.40 2004/11/11 00:40:13 he Exp $ d402 14 @ 1.40 log @Change the BIND hack for sh5 to point to the new files requiring lowered optimization level after import of the new BIND. The old hack is no longer required. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.39 2004/10/08 07:07:26 skrll Exp $ d231 2 a232 1 file sys/conf/arm/Makefile.arm : 1.19 @ 1.39 log @Fix typo as provided by Giorgos Keramidas in PR 27186 @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.38 2004/08/09 04:30:31 junyoung Exp $ d348 4 a351 4 hack gcc 3.3.2 on sh5 - ICE compiling dist/bind/bin/named/ns_main.c cdate Sun Dec 7 19:44:05 GMT 2003 who scw file usr.sbin/bind/named/Makefile : 1.15 d353 1 a353 1 Gcc3 for sh5 gets an ICE compiling ns_main.c at -O2. @ 1.38 log @Improve description on gcc-strict-aliasing. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.37 2004/08/06 03:37:55 junyoung Exp $ d193 1 a193 1 The first for PLT entries are reserved. There is some @ 1.37 log @Use -fno-strict-aliasing to compile usr.sbin/racoon/racoon and document it as a hack. PR toolchain/26516. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.36 2004/06/06 17:11:33 he Exp $ d108 3 a110 3 is due to invalid use of type casting in the code and not a compiler bug. Once a new release of KAME with a proper fix applied is imported this should be backed out. @ 1.36 log @Modify latest vax entry to instead point to the commit by mhitch, now that my change has been backed out. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.35 2004/06/06 13:29:23 he Exp $ d99 14 @ 1.35 log @Document workaround for vax nslexer.c build problem, workaround committed to lib/libc/arch/vax/net/Makefile.inc. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.34 2004/05/13 15:44:04 cl Exp $ d164 2 a165 2 who he file lib/libc/arch/vax/net/Makefile.inc : 1.3 @ 1.34 log @Workaround for gcc 2.95.3 failing to initialize structures and/or unions inside structures using nested designators. Should be reverted when gcc >=3.3.3 is ready for vax. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.33 2004/04/26 09:17:16 uwe Exp $ d162 10 @ 1.33 log @Drop workaround for toolchain/22489 now that the fix for it has been pulled from the gcc current. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.32 2004/03/22 00:46:06 martin Exp $ d152 9 @ 1.32 log @Update uvm_bio.c 32bit sparc64 optimization entry. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.31 2004/03/21 13:17:14 martin Exp $ a255 9 hack gcc3-optimization-11937 cdate Sun Feb 22 04:25:39 MSK 2004 who uwe file gnu/usr.bin/gcc3/backend/Makefile : 1.14 : 58 : 61 pr toolchain/22489 descr Work around toolchain/22489 (gcc optimization/11937) by compiling function.c with -O0. kcah @ 1.32.2.1 log @Pullup rev 1.33 (requested by uwe in ticket #203) Drop workaround for PR#22489 now that the fix for it has been pulled from the gcc current. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.32 2004/03/22 00:46:06 martin Exp $ d256 9 @ 1.32.2.2 log @Pull up revision 1.34 (requested by cl in ticket #326): Workaround for gcc 2.95.3 failing to initialize structures and/or unions inside structures using nested designators. Should be reverted when gcc >=3.3.3 is ready for vax. @ text @d1 1 a1 1 # $NetBSD$ a151 9 hack vax gcc 2.95.3 structure initialization cdat 13 May 2004 who cl file sys/miscfs/kernfs/kernfs_vnops.c : 1.104 descr Workaround for gcc 2.95.3 failing to initialize structures and/or unions inside structures using nested designators. Should be reverted when gcc >=3.3.3 is ready for vax. kcah @ 1.32.2.3 log @Pullup rev 1.37 (requested by junyoung in ticket #738) Add -fno-strict-aliasing to CFLAGS to avoid gcc warning "dereferencing type-punned pointer will break strict-aliasing rules" which occurs when compiling crypto_openssl.c with -O[23s]. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.32.2.2 2004/05/15 13:35:18 tron Exp $ a98 14 hack gcc-strict-aliasing cdate 6 August 2004 who junyoung pr 26516 file src/usr.sbin/racoon/racoon/Makefile : 1.21 descr GCC issues a warning "dereferencing type-punned pointer will break strict-aliasing rules" when compiling crypto/dist/kame/racoon/crypto/openssl.c with -O[23s]. Note that this is due to invalid use of type casting in the code and not a compiler bug. Once a new release of KAME with a proper fix applied is imported this should be backed out. kcah @ 1.32.2.4 log @Pullup rev 1.38 (requested by junyoung in ticket #738) Improve description on gcc-strict-aliasing. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.32.2.3 2004/08/11 19:52:10 jmc Exp $ d108 3 a110 3 is due to use of type casting in a non-standard way in the code and not a compiler bug. Once a new release of KAME with a proper fix applied is imported this should be backed out. @ 1.31 log @Not uvm_bio.c disabled optimization on sparc64 32bit kernels. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.30 2004/02/22 01:31:16 uwe Exp $ d371 2 a372 1 file sys/arch/sparc64/conf/Makefile.sparc64 : 1.53 @ 1.30 log @Document the workaround for toolchain/22489 (gcc optimization/11937) that sh3 needs with gcc3. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.29 2003/12/15 14:57:54 skrll Exp $ d365 11 @ 1.29 log @Remove the -fno-gcse-lm hack now that it is no longer needed. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.28 2003/12/07 21:13:39 scw Exp $ d256 9 @ 1.28 log @Document the sh5 libbfd elf32.c/elf64.c hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.27 2003/12/07 19:58:25 scw Exp $ a192 11 kcah hack gcc 3.3.x bug cdate Sun Oct 26 01:50:16 UTC 2003 who lukem file usr.bin/newsyslog/newsyslog.c pr 22986 23002 23217 descr newsyslog fails with newsyslog: config line 7: bad flags solved when compiled with -fno-gcse-lm @ 1.27 log @Note some hacks required for gcc3 on sh5. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.26 2003/12/07 12:52:33 simonb Exp $ d302 11 @ 1.26 log @Document ns32k gcc332 ICE when compiling libcpp's cppmacro.c. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.25 2003/12/05 03:28:38 mrg Exp $ d292 30 @ 1.25 log @note binutils/ld/ldlex.c hack @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.24 2003/11/08 17:21:15 ragge Exp $ d244 11 d264 1 a264 1 with optimization for SuperH. Hack is to biuld with -O0. d303 1 a303 1 this hack ues -O0 to avoid the problem. d312 1 a312 1 hack ues -O0 to avoid the problem. @ 1.24 log @Note that gawk is compiled without optimizing on vax. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.23 2003/11/06 00:37:14 he Exp $ d85 12 @ 1.23 log @Document some of the recent "compile fixes for -Wuninitialized" for the vax port, to be reviewed when gcc 3.3.2 for vax is ready. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.22 2003/11/05 00:50:05 mrg Exp $ d105 9 @ 1.22 log @document the m68* lossage with gcc/ra-colorize.c. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.21 2003/10/29 21:31:33 mycroft Exp $ d117 12 @ 1.21 log @Separate by port, and remove the m68k hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.20 2003/10/28 20:12:00 skrll Exp $ d269 12 @ 1.20 log @Compile sys/kern/uipc_socket.c -fno-strict-aliasing for now. PR 23044. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.19 2003/10/28 14:26:47 he Exp $ a29 29 hack gcc 2.95/vax cannot handle __builtin_ffs() cdate Fri Aug 23 21:31:15 CEST 2002 who ragge port vax file sys/lib/libkern/libkern.h : 1.42 descr __builtin_ffs() is ifdef'd away if __vax__. Matt Thomas has added this feature to GCC 3 so it can be removed when switching. kcah hack binutil-2.11-sparc64-pltrela mdate 14 Aug 2001 who eeh port sparc64 file libexec/ld.elf_so/reloc.c: 1.41 : 597 : 619 descr The first for PLT entries are reserved. There is some disagreement whether they should have associated relocation entries. Both the SPARC 32-bit and 64-bit ELF specifications say that they should have relocation entries, but the 32-bit SPARC binutils do not generate them, and now the 64-bit SPARC binutils have stopped generating them too. To provide binary compatibility, we will check the first entry, if it is reserved it should not be of the type JMP_SLOT. If it is JMP_SLOT, then the 4 reserved entries were not generated and our index is 4 entries too far, so we frob the rela pointer. kcah a52 29 hack gcc-sh3-sed mdate 23 Apr 2002 who thorpej file usr.bin/sed/Makefile : 1.9 : 9 : 13 descr The in-tree GCC 2.95.3-based compiler ICEs when building with optimization for SuperH. Hack is to biuld with -O0. kcah hack gcc-unsigned-compare cdate 09 Mar 2002 mdate 18 Mar 2002 who bjh21 port arm file dist/bind/lib/nameser/ns_parse.c : 1.3 file dist/dhcp/minires/ns_parse.c : 1.3 file dist/dhcp/omapip/result.c : 1.2 file dist/dhcp/server/failover.c : 1.3 file gnu/dist/gawk/eval.c : 1.4 file gnu/dist/toolchain/bfd/bfd.c : 1.2 file gnu/dist/toolchain/bfd/format.c : 1.2 file gnu/dist/toolchain/gdb/target.c : 1.2 file sys/kern/vfs_subr.c : 1.172 descr When checking that a potentially-unsigned enum is >= 0, assign it to an int first. This is necessary to avoid "comparison is always true" warnings with -fshort-enums. Casting to an int really should be enough, but turns out not to be. kcah a62 47 hack gcc-vax-libbz2 mdate 27 Jun 2002 who thorpej port vax file lib/libbz2/Makefile descr libbz2 is mis-compiled with optimization with GCC 2.95.3 on VAX. -O0 works around this problem. kcah hack egcs-pc532-ip6_mroute cdate 09 Jul 2002 who simonb port pc532 file sys/arch/pc532/conf/Makefile.pc532 : 1.70 file sys/arch/pc532/conf/files.pc532 : 1.47 descr egcs 1.1.2 gets an "internal error--insn does not satisfy its constraints" error compiling ip6_mroute.c with -O2 or greater. -O1 works around this problem. kcah hack SuperH SH5 Toolchain Bugs cdate 11 Jul 2002 who scw port sh5 file usr.sbin/ndbootd/ndbootd.c : 1.6 file usr.sbin/traceroute/traceroute.c : 1.48 descr The SuperH SH5 toolchain (2.97-sh5-010522) gets an internal compiler error when assigning a bit-wise inverted value under some circumstances. Work around it by splitting the statement into two. kcah hack vax Toolchain bug cdate 28 Mar 2003 who he port vax file sys/arch/vax/vax/intvec.S : 1.5 descr Workaround for PR toolchain/20924. The assembler apparently tries to range-check byte offsets when it doesn't have sufficient information to make that decision. Workaround uses `brw' instead of `brb' instruction. kcah a65 1 port all a73 12 hack SuperH SH5 Toolchain Bugs cdate 17 May 2003 who scw port sh5 file lib/libpthread/pthread_lock.c : 1.7 descr The SuperH SH5 toolchain generates incorrect PIC code when faced with a symbol which is declared extern, but has local scope due to being defined within an asm() statement (without being declared .globl in that statement). Work around it by adding the .globl. kcah a86 11 hack gcc 3.3.x bug cdate Sun Oct 26 01:50:16 UTC 2003 who lukem port MACHINE_ARCH == arm file usr.bin/newsyslog/newsyslog.c pr 22986 23002 23217 descr newsyslog fails with newsyslog: config line 7: bad flags solved when compiled with -fno-gcse-lm kcah d88 97 a184 3 hack gcc-pc532-duffs_device cdate Mon Oct 27 07:23:05 UTC 2003 who simonb a185 9 file sys/arch/pc532/conf/Makefile.pc532 : 1.71 file sys/arch/pc532/conf/files.pc532 : 1.52 pr GCC PR optimization/5230 descr gcc incorrectly gives an "unreachable code at beginning of switch statement" for a Duff's device construct in arch/pc532/dev/ncr.c. There is no way to disable just this warning, so -Wno-error is turned on for this file. kcah d187 62 a248 14 hack gcc 3.3.2 m68k {u,}int64_t uninitialized bug cdate Tue Oct 28 02:46:46 CET 2003 who cl port MACHINE_ARCH == m68k file sys/dev/scsipi/sd.c : 1.212 : 686 file sys/dev/ata/wd.c : 1.265 : 483 file sys/nfs/nfs_serv.c : 1.84 : 3290 file sys/conf/Makefile.kern.inc : 1.39 descr gcc incorrectly reports {u,}int64_t variables as used uninitialized. Work around by adding explicit initializers. gcc bug report at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12792 Worked around by disabling uninitialized warnings for m68k. kcah a249 9 hack gcc 3.3.2/mdsetimage cdate Tue Oct 28 18:43:05 EST 2003 who fredette port sun2 file gnu/usr.sbin/mdsetimage/Makefile : 1.15 descr mdsetimage.c causes cc1 to barf for as-yet unknown reasons. this hack ues -O0 to avoid the problem. kcah a250 3 hack gcc 3.3.2/installboot/ffs.c cdate Tue Oct 28 18:43:05 EST 2003 who fredette a251 5 file usr.sbin/installboot/Makefile : 1.26 descr ffs.c causes cc1 to barf for as-yet unknown reasons. this hack ues -O0 to avoid the problem. kcah d253 17 a269 11 hack gcc 3.3.2/arm sys/kern/uipc_socket.c cdate Tue Oct 28 18:02:16 GMT 2003 who skrll port MACHINE_ARCH == arm file sys/conf/arm/Makefile.arm : 1.19 descr Performing a build.sh tools on a CATS with NFS mounted obj and src directories results in "panic: receive 1" The hack is to compile sys/kern/uipc_socket.c with -fno-strict-aliasing kcah @ 1.19 log @Consolidate latest HACK entry into already existing entry documenting same problem. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.18 2003/10/28 12:11:31 he Exp $ d264 12 @ 1.18 log @sys/dev/ata/wd.c causes spurious warning about blkno not being initialized before used. This appears to be a bug specific to (at least) the m68k target, and will be reported to the GCC maintainers. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.17 2003/10/28 08:22:48 mrg Exp $ d238 1 d243 1 a263 12 kcah hack gcc 3.3.2/m68k -Wno-uninitialized cdate Tue Oct 28 13:07:55 CET 2003 who he port atari file sys/conf/Makefile.kern.inc : 1.39 descr sys/dev/ata/wd.c causes spurious warning about blkno not being initialized before used. This appears to be a bug specific to (at least) the m68k target, and will be reported to the GCC maintainers. @ 1.17 log @note mdsetimage/installboot sun2/gcc3 hacks. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.16 2003/10/28 02:01:46 cl Exp $ d262 12 @ 1.16 log @note 'm68k {u,}int64_t used uninitialized' bug. add reference to gcc bug report. mark all (known) occurrences. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.15 2003/10/27 08:07:58 wiz Exp $ d242 20 @ 1.15 log @no way, not now way. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.14 2003/10/27 07:31:07 simonb Exp $ d229 13 @ 1.14 log @Note the GCC PR for the Duff's device warning. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.13 2003/10/27 07:26:17 simonb Exp $ d227 1 a227 1 There is now way to disable just this warning, so -Wno-error is @ 1.13 log @Use -Wno-error to compile a file with Duff's device and document this as a hack. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.12 2003/10/26 16:35:18 mycroft Exp $ d223 1 @ 1.12 log @Remove dead hacks. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.11 2003/10/26 01:56:54 lukem Exp $ d215 13 @ 1.11 log @On MACHINE_ARCH==arm, compile newsyslog(8) with -fno-gcse-lm. Fixes PRs [toolchain/22986] [toolchain/23002] [toolchain/23217] @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.10 2003/09/26 13:39:49 skrll Exp $ a39 11 hack gcc 2.95.3 -O2 bug cdate Sun Jan 6 23:17:28 UTC 2002 who lukem port alpha file sbin/newfs/mkfs.c : (all?) pr 15156 descr newfs built with gcc -O2 dumps core part-way through. using -O1 avoids the problem kcah a58 12 hack gcc-arm32-schedule mdate 04 May 2000 who is file lib/libc/stdlib/strtoull.c : 1.3 : 78 : 81 file lib/libc/stdlib/strtouq.c : 1.15 : 73 : 76 pr 9613 descr strtoull() was returning a wrong result for small numbers with bit 31 set. This is a gcc/arm32 compiler bug in gcc < 2.95.2. Adding (void)&acc; works around it. kcah a118 13 kcah hack gcc 2.95.3 -O2 (-fgcse) bug cdate Sun May 5 18:36:04 UTC 2002 who tsutsui port macppc file sys/arch/macppc/dev/adb_direct.c: 1.24 : 1895 : 1896 pr 16678 descr gcc-2.95.3 does generates wrong code on optimization by gcc -O2 (-fgcse), and adb_read_date_time() returns wrong value on cuda system. A null asm statement has been added to avoid this for workaround. @ 1.10 log @Backout previous - sparc* and i386 have switched to gdb 5.3. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.9 2003/09/19 16:41:58 martin Exp $ d239 12 @ 1.9 log @Bye, bye, sparc64 hacks. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.8 2003/09/19 08:43:14 mrg Exp $ a238 9 kcah hack i386 / sparc default debugging type in GCC 3.3.1 cdate 19 Sept 2003 who mrg file gnu/dist/gcc/gcc/config/{i386,sparc}/netbsd-elf.h descr Until i386 & sparc* switch to GDB 5.3, the default debugging format needs to be stabs not DWARF. @ 1.8 log @make i386 & sparc* output DBX_DEBUG format ("-gstabs") by default for now. XXX: back this out when these platforms switch to GDB 5.3. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.7 2003/09/09 13:40:59 he Exp $ a79 105 kcah hack gcc-sparc64-memorysize mdate 17 Sep 2000 who mrg port sparc64 file lib/libc/hash/sha1.c : 1.6 : 78 : 129 : 162 : 189 file sys/lib/libkern/sha1.c : 1.6 : 78 : 129 : 162 : 189 file usr.sbin/bind/lib/Makefile : 1.14 : 87 : 91 descr the normal SHA1Transform() function causes the sparc64 compiler to use excessive amounts of memory attempting to optimise this function. using no optimisation allows the function to build. this hack splits the mathematical functions inside SHA1Transform() into 4 separate functions, which avoids the optimiser explosion. kcah hack gcc-sparc64-double-arguments mdate 18 Sep 2000 who mrg port sparc64 file xsrc/xc/lib/fonts/Type1/type1.c : 1.2 : 1461 : 1507 : 1702 : 1709 descr in passing 17 "double" arguments to a function, gcc incorrectly tries to use a register that doesn't exist, causing an internal error. this hack changes the way arguments are passed to the function, such that a pointer to a "double" (really an array) is passed, and the old arguments are assigned within the function. kcah hack gcc-sparc64-gawk mdate 28 Oct 2000 who mrg port sparc64 file gnu/usr.bin/gawk/Makefile : 1.11 : 21 : 24 descr gcc fails to build gawk properly, due to double floating point bugs. this simple test program will fail to print ``ab'': BEGIN { f = "abc"; print substr(f, 1, 2); exit } the work around is simple: use -msoft-quad-float. kcah hack gcc-sparc64-libgcc mdate 01 Dec 2001 who jmc port sparc64 file gnu/lib/libgcc/Makefile : 1.29 : 24 : 27 descr gcc fails to do double -> int conversions correctly without soft-quad-float. Add it in there for the internal conversion routines. This appears to be more than likely emulations bugs than compiler bugs as the assembly looks correct on the surface. kcah hack gcc-sparc64-iostat-systat mdate 04 Feb 2001 who mrg port sparc64 file usr.sbin/iostat/Makefile : 1.17 : 7 : 10 file usr.bin/systat/Makefile : 1.23 : 6 : 9 descr gcc fails to build iostat properly, due to double floating point bugs. results will include "Inf" and other garbage. the work around is simple: use -msoft-quad-float. kcah hack gcc-sparc64-nawk mdate 25 Oct 2001 who martin port sparc64 file usr.bin/awk/Makefile : 1.3 : 13 : 15 descr Don't use long double on sparc64. kcah hack gcc-sparc64-ntp mdate 12 Nov 2000 who martin port sparc64 file usr.sbin/ntp/Makefile.inc : 1.5 : 17 : 19 descr gcc fails to build ntpd properly, due to double floating point bugs. Ntpd will fail to decode incoming packets; ntpdc -s will report a delay, offset and dispersion of 0.0000 for all peers. the work around is simple: use -msoft-quad-float. kcah hack gcc-sparc64-x_dhclient mdate 27 Dec 2000 who mrg port sparc64 file distrib/utils/x_dhclient/Makefile : 1.6 : 28 : 30 descr gcc fails with an ICE while building dhclient's parse.c with -O2 and -Os. the work around is simple: don't use -Os. kcah hack lint-no-long-double mdate 17 Aug 2001 who eeh port sparc64 file usr.bin/xlint/lint1/param.h: 1.14 : descr Don't use long double on sparc64. @ 1.7 log @Belatedly make a note of the cast for LINUX_USRSTACK and USRSTACK made to get the sun3 port to compile. Briefly discussed with mycroft. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.6 2003/08/14 15:08:32 uwe Exp $ d344 9 @ 1.6 log @Remove mention of gcc-3-libtelnet hack. The hack was removed from lib/libtelnet/Makefile rev 1.16, following the lib/libtelnet/kerberos.c revision rev 1.10 that fixed the original problem. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.5 2003/07/26 17:24:48 salo Exp $ d331 13 @ 1.5 log @netbsd.org->NetBSD.org @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.4 2003/05/16 23:43:29 scw Exp $ a207 12 kcah hack gcc-3-libtelnet mdate 29 Jan 2002 who thorpej file lib/libtelnet/Makefile : 1.14 : 14 : 17 descr GCC 3.x issues a spurious warning when compiling a Duff's Device with optimization, even though it compiles the file correctly. GCC PR optimization/5230. kerberos.c contains a Duff's Device in the checksum routine. Hack is to build libtelnet w/o optimization if HAVE_GCC3 is set. @ 1.4 log @Document the SH5 toolchain hack for pthread_lock.c. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.3 2003/04/06 10:12:20 jdc Exp $ d330 1 a330 1 http://mail-index.netbsd.org/tech-userlevel/2003/04/06/0000.html @ 1.3 log @Remove curses \E[m hack - fixed in setterm.c : 1.36. Add curses hack mentioning colour swap when real fix is to enhance termcap. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.2 2003/03/28 21:15:20 he Exp $ d331 12 @ 1.2 log @Document hack/workaround for PR toolchain/20924. @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.1 2002/09/21 08:17:37 lukem Exp $ a29 11 hack specific knowledge of xterm escapes in curses code cdate Wed, 11 Sep 2002 18:23:25 +0300 who jdc port all file lib/libcurses/setterm.c : 1.33 descr Recognise that "\E[m" will turn off all attributes for xterm-like terminals. Without this hack, we can't tell when turning off one attribute affects another (which we check by comparing sequences). kcah d319 12 @ 1.1 log @move doc/* -> basesrc/doc/*, except for doc/MIRRORS, which is not used anymore (we refer to http://www.netbsd.org/mirrors/ now) @ text @d1 1 a1 1 # $NetBSD: HACKS,v 1.68 2002/09/19 13:15:38 lukem Exp $ d318 12 @