I found a bug in /usr/bin/cc. Looking at https://bugs.freebsd.org, I'm not sure where I should report it. Can anyone help direct me to the correct place? Or should I be reporting it elsewhere, like a Clang list?
I have looked at the archives there and it seems to be a replication of the bugzilla archives:The bugs address you posted is the place to report bugs, but the development is done on Mail Lists so you may want to bring it in there instead ( will probably also get attention faster ) since there is where the developers hang.
EDIT: freebsd-toolchain should be the right one.
Quite a few of the mailing lists get CC'd by Bugzilla when a bug is reported against the component(s) the list handles. It is a way for all interested developers to get notifications of relevant bug reports without needing to be added to the "also-automatic-CC" function in Bugzilla.I have looked at the archives there and it seems to be a replication of the bugzilla archives:
https://lists.freebsd.org/pipermail/freebsd-toolchain/2018-August/thread.html
You might want to see if it is reproducible under the latest clang/LLVM release (probably easiest to do from ports). If it is, then you should submit a bug upstream and if a patch is developed, ask the FreeBSD toolchain maintainers to backport it to the versions FreeBSD uses. If it isn't reproducible under the latest releases, then you need to take your best guess as to whether it is a FreeBSD-specific bug or a clang/LLVM bug that was already fixes in a version newer than what FreeBSD is using.The bug I found involves the removal of a variable under optimisation within a long C function, so that a calculation gives the wrong answer if optimisation is switched on, so it is quite a lot of work just preparing the bug report. I'll try to send it in by the end of the weekend.