[Bug c/94654] printf calls with floats

2020-04-18 Thread tydeman at tybor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94654 Fred J. Tydeman changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/94654] printf calls with floats

2020-04-18 Thread tydeman at tybor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94654 --- Comment #2 from Fred J. Tydeman --- If float is really promoted to double in this case, then why is the output different? Seems to me that a float promoted to a double (case 2) should produce the same output as just a double (case a). Seems

[Bug c/94654] printf calls with floats

2020-04-18 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94654 --- Comment #1 from Andrew Pinski --- Two things: 1) float is prompted to double for var args in c. 2) printf is part of libc and gcc does not provide it.