git: cc120: Include all tree codes in all-tree.def to fix LTO compatibility
Aaron LI
aly at crater.dragonflybsd.org
Wed Nov 18 05:12:57 PST 2026
commit f1b9cbd4223a6f13ce6c5d633e624a906c0ef939
Author: Aaron LI <aly at aaronly.me>
Date: Wed Nov 18 19:51:56 2026 +0800
cc120: Include all tree codes in all-tree.def to fix LTO compatibility
Before this fix, the base GCC 12 and the lang/gcc12 package couldn't
link each other's LTO objects. This was caused by the enumeration
mismatch of LTO tags, because the two compilers had different
all-tree.def: the base GCC 12 removed ada-tree.def, d-tree.def and
objc-tree.def because those languages are disabled.
Fix this LTO compatibility issue by adding back the removed tree codes,
and thus generate the same all-tree.def as the GCC's own configure does.
Bug: https://bugs.dragonflybsd.org/issues/3470
Summary of changes:
gnu/usr.bin/cc120/Makefile.langs | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f1b9cbd4223a6f13ce6c5d633e624a906c0ef939
--
DragonFly BSD source repository
More information about the Commits
mailing list