From 81421eda7d408fe856319214332120fdbc8879c0 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Mon, 15 Jul 2019 15:59:41 -0400 Subject: [PATCH] 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. --- 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 e02bc9c1f..0bbf4975d 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 . \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\