https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98209
Bug ID: 98209
Summary: printf failed with O1 or above
Product: gcc
Version: 9.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: jamesgua at ca dot ibm.com
Target Milestone: ---
Testing file:
#include <stdio.h>
int main(int argc, char** argv) __attribute__ ((__target__ ("no-sse,no-mmx")));
int main(int argc, char** argv)
{
printf("hello!\n");
return 0;
}
cmd to compile: gcc -O3 -c test.c
On Ubuntu 20.04 (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) it failed
with "inlining failed in call to always_inline printf’: target specific option
mismatch" but it works on Ubuntu 16.04 (gcc version 5.4.0 20160609 (Ubuntu
5.4.0-6ubuntu1~16.04.12))
If not supported pls let me know.