|author||Rich Felker <email@example.com>||2017-04-22 17:48:37 -0400|
|committer||Rich Felker <firstname.lastname@example.org>||2017-04-22 17:48:37 -0400|
remove va_arg hacks in printf core with undefined behavior
the code being removed was written to optimize for size assuming the compiler cannot collapse code paths for different types with the same underlying representation. modern compilers sometimes succeed in making this optimization themselves, but either way it's a small size difference and not worth the source-level complexity or the UB involved in this hack. some incorrect use of va_arg still remains, particularly use of void * where the actual argument has a different pointer type. fixing this requires some actual code additions, rather than just removing cruft, so I'm leaving it to be done later as a separate commit.
Diffstat (limited to 'src/process')
0 files changed, 0 insertions, 0 deletions