https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103053
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes there is a reference in the object file but GCC assumes that if __udivti3 is there then __divti3 will be there as libgcc implements both. Yes the linker will pull in both but it will be minor code size increase. If the problem is your program implements its own support library (libgcc), then the bug is in your program and not in GCC really.