NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
toolchain/54672: failed to inline fortify with target("no-sse")
>Number: 54672
>Category: toolchain
>Synopsis: failed to inline fortify with target("no-sse")
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 03 05:35:00 +0000 2019
>Originator: coypu
>Release: NetBSD 9.99.17
>Organization:
>Environment:
NetBSD planets 9.99.17 NetBSD 9.99.17 (GENERIC) #1: Sat Oct 26 12:29:49 IDT 2019 fly@planets:/cvs/obj/amd64/sys/arch/amd64/compile/GENERIC amd64
>Description:
#!/bin/sh
cat << EOF > test.c
#include <string.h>
#pragma GCC target("no-sse")
int main() {
char *asdf = "asdf";
char *dst;
strcpy(dst, asdf);
return 0;
}
EOF
gcc test.c -D_FORTIFY_SOURCE=2 -O2
##
In file included from /usr/include/string.h:127,
from test.c:1:
test.c: In function ?main?:
/usr/include/ssp/string.h:89:1: error: inlining failed in call to always_inline ?__strcpy_ichk?: target specific option mismatch
__ssp_bos_icheck2_restrict(strcpy, char *, const char *)
^~~~~~~~~~~~~~~~~~~~~~~~~~
test.c:8:2: note: called from here
strcpy(dst, asdf);
^~~~~~
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index