https://bugs.llvm.org/show_bug.cgi?id=47387
Bug ID: 47387
Summary: libcall simplification invents calls to puts even
under -fno-builtin-puts
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Testcase: https://godbolt.org/z/sTr3xa
#include <stdio.h>
int puts(const char *s) {
printf("%s\n", s);
return strlen(s);
}
With -fno-builtin-puts, the call to printf is replaced by a call to puts, which
seems incorrect. We shouldn't assume we know what 'puts' does under
-fno-builtin-puts.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs