https://bugs.llvm.org/show_bug.cgi?id=50330
Bug ID: 50330
Summary: -ansi is not equivalent to -std=c89 when it comes to
linking
Product: clang
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Test case:
Setup:
# echo "int main(void){return 0;}" > test.c
# clang -c -o test.o test.c
Now this just works fine:
# clang -std=c89 -o test test.o
But this outputs a warning:
# clang -ansi -o test test.o
clang-11: warning: argument unused during compilation: '-ansi'
[-Wunused-command-line-argument]
The man page describes -ansi as "Same as -std=c89."
--
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