https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116462
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Bernd Edlinger <edlin...@gcc.gnu.org>: https://gcc.gnu.org/g:103127cd9398d140222c9da44715d447641bf791 commit r15-3209-g103127cd9398d140222c9da44715d447641bf791 Author: Bernd Edlinger <bernd.edlin...@hotmail.de> Date: Mon Aug 26 18:06:52 2024 +0200 Fix another inline7.c test failure on sparc targets This new test was reported to be still failing on sparc targets. Here the number of DW_AT_ranges dropped to zero. The test should pass on this architecture with -Os, -O2 and -O3. I tried to improve also different known problematic targets, where only one subroutine had DW_AT_ranges: Those are armhf (arm with hard float), powerpc and powerpc64. The best option is to use -Os: So far the only one, where all two inline instances in this test had two DW_AT_ranges. gcc/testsuite/ChangeLog: PR other/116462 * gcc.dg/debug/dwarf2/inline7.c: Switch to -Os optimization.