https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90887
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Tobias Burnus from comment #4) > Looking at the .gdk files, the difference is (only) in the > ;; Function > lines where > funcdef_no=9263, cgraph_uid=3950, symbol_order=5009 > differ in their numeric value. > > (As it depends on this odd library patch and on passing the full path > instead of a relative path, it points to some indirect effect.) Which of those 3, or all of them? For one of them, pick the smallest different values and in the code that assign those counters try to find out where they are assigned differently (different numbers for the fndecl with the same name) and why. If say funcdef_no differs, it might help to add a debugging dump to say stderr in allocate_struct_function when current_function_funcdef_no = get_next_funcdef_no (); is done, printing the fndecl say using dump_generic_stmt and the current_function_funcdef_no that got set. For the other counters similarly, depending on which you'll look at. That would allow you to spot the very first difference in those, then just debug why some function has been created only with -g and not without or vice versa.