[newlib-cygwin] Cygwin: fix GCC 8.3 'asm volatile' errors
Ken Brown
kbrown@sourceware.org
Wed Jul 17 15:10:00 GMT 2019
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=81421eda7d408fe856319214332120fdbc8879c0
commit 81421eda7d408fe856319214332120fdbc8879c0
Author: Ken Brown <kbrown@cornell.edu>
Date: Mon Jul 15 15:59:41 2019 -0400
Cygwin: fix GCC 8.3 'asm volatile' errors
Remove the volatile qualifier, which is no longer allowed outside of
the function body. See
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89585 for discussion.
Diff:
---
winsup/cygwin/miscfuncs.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/winsup/cygwin/miscfuncs.cc b/winsup/cygwin/miscfuncs.cc
index e02bc9c..0bbf497 100644
--- a/winsup/cygwin/miscfuncs.cc
+++ b/winsup/cygwin/miscfuncs.cc
@@ -724,7 +724,7 @@ err:
See FreeBSD src/lib/libc/amd64/string/memset.S
and FreeBSD src/lib/libc/amd64/string/bcopy.S */
-asm volatile (" \n\
+asm (" \n\
/* \n\
* Written by J.T. Conklin <jtc@NetBSD.org>. \n\
* Public domain. \n\
@@ -791,7 +791,7 @@ L1: rep \n\
.seh_endproc \n\
");
-asm volatile (" \n\
+asm (" \n\
/*- \n\
* Copyright (c) 1990 The Regents of the University of California. \n\
* All rights reserved. \n\
More information about the Cygwin-cvs
mailing list