Link hwint.o into generator programs and libcommon
Fixes linking errors for generator programs and libcommon when the host compiler is not GCC.
This commit resolves linking issues that occur when the host compiler is not GCC. In such cases, hwint.h declares floor_log2 and related functions out-of-line, requiring hwint.o to be linked into generator programs and libcommon. Previously, hwint.o was only part of the general OBJS list, causing build failures.
In Details
When GCC is bootstrapped with a non-GCC host compiler (e.g., older versions where GCC_VERSION < 3004), hwint.h defines floor_log2, exact_log2, etc., as out-of-line functions rather than inline ones. These functions are used by the vec.o object and other components within libcommon. The build system's Makefile.in was updated to ensure that hwint.o is now explicitly included in the BUILD_RTL target and moved from the general OBJS list to OBJS-libcommon. Additionally, new rules are added for build/hwint.o, and generator programs like build/gencfn-macros and `build/genma…
- libcommon
- A library within GCC that contains common utility functions used across various parts of the compiler.
- generator programs
- Programs within the GCC build system that generate source code or configuration files, such as
gencfn-macrosandgenmatch. - host compiler
- The compiler used to build GCC itself. When bootstrapping GCC, this might be a different compiler than the GCC version being built.
- bootstrapped
- The process of building a compiler using an earlier version of itself. A 'bootstrap build' typically involves three compiler versions: the old one, the new one being built, and a final one produced by the new one.