NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/54672: failed to inline fortify with target("no-sse")



The following reply was made to PR toolchain/54672; it has been noted by GNATS.

From: coypu%sdf.org@localhost
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: toolchain/54672: failed to inline fortify with target("no-sse")
Date: Sun, 3 Nov 2019 09:39:55 +0000

 Smaller test case (not dependent on netbsd headers):
 
 static inline __attribute__((__always_inline__)) char *
 __my_strcpy_ichk(char * restrict dst, const char * restrict src) {
 	return __builtin___strcpy_chk(dst, src, __builtin_object_size(dst, 0));
 }
 
 #pragma GCC target("no-sse")
 
 int main() {
 	char *asdf = "asdf";
 	char *dst;
 
 	__my_strcpy_ichk(dst,asdf);
 	return 0;
 }
 
 
 
 
 
 Upstream duplicate bug report (apparently):
 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54988#c3
 


Home | Main Index | Thread Index | Old Index