mirror of
git://slackware.nl/current.git
synced 2025-01-13 08:01:53 +01:00
490bd1ff02
d/gcc-8.3.0-x86_64-2.txz: Rebuilt. Reverted backported asm inline patches that broke "asm volatile". Thanks to nobodino. d/gcc-brig-8.3.0-x86_64-2.txz: Rebuilt. d/gcc-g++-8.3.0-x86_64-2.txz: Rebuilt. d/gcc-gfortran-8.3.0-x86_64-2.txz: Rebuilt. d/gcc-gnat-8.3.0-x86_64-2.txz: Rebuilt. d/gcc-go-8.3.0-x86_64-2.txz: Rebuilt. d/gcc-objc-8.3.0-x86_64-2.txz: Rebuilt. l/at-spi2-atk-2.30.1-x86_64-1.txz: Upgraded. l/at-spi2-core-2.30.1-x86_64-1.txz: Upgraded. l/gc-8.0.4-x86_64-1.txz: Upgraded. l/glib2-2.60.0-x86_64-1.txz: Upgraded. l/imagemagick-6.9.10_31-x86_64-1.txz: Upgraded. n/postfix-3.4.0-x86_64-2.txz: Rebuilt. Prevent the install script from making noise. x/xinit-1.4.1-x86_64-1.txz: Upgraded. x/xlogo-1.0.5-x86_64-1.txz: Upgraded. x/xmore-1.0.3-x86_64-1.txz: Upgraded. extra/fltk/fltk-1.3.5-x86_64-1.txz: Upgraded.
58 lines
1.9 KiB
Diff
58 lines
1.9 KiB
Diff
From patchwork Thu Dec 27 14:59:13 2018
|
|
Content-Type: text/plain; charset="utf-8"
|
|
MIME-Version: 1.0
|
|
Content-Transfer-Encoding: 7bit
|
|
Subject: [8/8] c: Don't error for const or restrict as asm-qualifier
|
|
X-Patchwork-Submitter: Segher Boessenkool <segher@kernel.crashing.org>
|
|
X-Patchwork-Id: 13825
|
|
Message-Id: <f0e4c2f3f89d0587a2ae547432d9a94bca9d06ff.1545922222.git.segher@kernel.crashing.org>
|
|
To: gcc-patches@gcc.gnu.org
|
|
Cc: Segher Boessenkool <segher@kernel.crashing.org>
|
|
Date: Thu, 27 Dec 2018 14:59:13 +0000
|
|
From: Segher Boessenkool <segher@kernel.crashing.org>
|
|
List-Id: <gcc-patches.gcc.gnu.org>
|
|
|
|
2018-12-27 Segher Boessenkool <segher@kernel.crashing.org>
|
|
|
|
c/
|
|
* c-parser.c (c_parser_asm_statement): Output a warning instead of an
|
|
error for const and restrict.
|
|
|
|
testsuite/
|
|
* gcc.dg/asm-qual-1.c: Adjust.
|
|
|
|
---
|
|
gcc/c/c-parser.c | 2 +-
|
|
gcc/testsuite/gcc.dg/asm-qual-1.c | 4 ++--
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--
|
|
1.8.3.1
|
|
|
|
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c
|
|
index 4baad62..a960169 100644
|
|
--- a/gcc/c/c-parser.c
|
|
+++ b/gcc/c/c-parser.c
|
|
@@ -6345,7 +6345,7 @@ c_parser_asm_statement (c_parser *parser)
|
|
|
|
case RID_CONST:
|
|
case RID_RESTRICT:
|
|
- error_at (loc, "%qE is not an asm qualifier", token->value);
|
|
+ warning_at (loc, 0, "%qE is not an asm qualifier", token->value);
|
|
c_parser_consume_token (parser);
|
|
continue;
|
|
|
|
diff --git a/gcc/testsuite/gcc.dg/asm-qual-1.c b/gcc/testsuite/gcc.dg/asm-qual-1.c
|
|
index eff6b45..4982a6b 100644
|
|
--- a/gcc/testsuite/gcc.dg/asm-qual-1.c
|
|
+++ b/gcc/testsuite/gcc.dg/asm-qual-1.c
|
|
@@ -8,7 +8,7 @@ f (void)
|
|
{
|
|
asm volatile ("");
|
|
|
|
- asm const (""); /* { dg-error {'const' is not an asm qualifier} } */
|
|
+ asm const (""); /* { dg-warning {'const' is not an asm qualifier} } */
|
|
|
|
- asm restrict (""); /* { dg-error {'restrict' is not an asm qualifier} } */
|
|
+ asm restrict (""); /* { dg-warning {'restrict' is not an asm qualifier} } */
|
|
}
|