https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120609
--- Comment #3 from Marc Adams <madams846 at hotmail dot com> --- On my system, commands "gcc decBugDemo.c -Wl,—no-as-needed,-ldfp,—as-needed" then "./a.out" produced correct printout "2.0000000e+00". ________________________________ From: pinskia at gcc dot gnu.org <gcc-bugzi...@gcc.gnu.org> Sent: June 9, 2025 5:06 PM To: madams...@hotmail.com <madams...@hotmail.com> Subject: [Bug middle-end/120609] printf fails for a decimal type if variable is unmodified https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgcc.gnu.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D120609&data=05%7C02%7C%7C3804ea05317d45e594cd08dda79972b6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638850999667785715%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=jGgVnArkfQgc04ZKC3GIkrJXGKZEafnVOdc9D1JR1P4%3D&reserved=0<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120609> Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|c |middle-end Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Oh ubuntu's gcc defaults to --as-needed. Try -Wl,--no-as-needed,-ldfp,--as-needed . -- You are receiving this mail because: You reported the bug.