aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-09-10 00:07:20 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-09-10 00:07:20 -0700
commit1d0f6d89822b351818c00d9cedaaa54d360f0fd2 (patch)
treef30bae2b9c632277ab9bbde858e772773461daf3 /gcc
parente1aa5140912178a5711762be987a0c10aad42e31 (diff)
downloadgcc-1d0f6d89822b351818c00d9cedaaa54d360f0fd2.zip
gcc-1d0f6d89822b351818c00d9cedaaa54d360f0fd2.tar.gz
gcc-1d0f6d89822b351818c00d9cedaaa54d360f0fd2.tar.bz2
* c-parse.in (asm patterns): Fix volatile check.
From-SVN: r36286
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-parse.in6
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f5e5062..44085de 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2000-09-10 Richard Henderson <rth@cygnus.com>
+
+ * c-parse.in (asm patterns): Fix volatile check.
+
2000-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cppmacro.c (check_trad_stringification): New function.
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 5ef7386..416256d 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1901,14 +1901,14 @@ stmt:
{ stmt_count++;
emit_line_note ($<filename>-1, $<lineno>0);
c_expand_asm_operands ($4, $6, NULL_TREE, NULL_TREE,
- $2 == ridpointers[(int)RID_VOLATILE],
+ $2 && C_RID_CODE ($2) == RID_VOLATILE,
input_filename, lineno); }
/* This is the case with input operands as well. */
| ASM_KEYWORD maybe_type_qual '(' expr ':' asm_operands ':' asm_operands ')' ';'
{ stmt_count++;
emit_line_note ($<filename>-1, $<lineno>0);
c_expand_asm_operands ($4, $6, $8, NULL_TREE,
- $2 == ridpointers[(int)RID_VOLATILE],
+ $2 && C_RID_CODE ($2) == RID_VOLATILE,
input_filename, lineno); }
/* This is the case with clobbered registers as well. */
| ASM_KEYWORD maybe_type_qual '(' expr ':' asm_operands ':'
@@ -1916,7 +1916,7 @@ stmt:
{ stmt_count++;
emit_line_note ($<filename>-1, $<lineno>0);
c_expand_asm_operands ($4, $6, $8, $10,
- $2 == ridpointers[(int)RID_VOLATILE],
+ $2 && C_RID_CODE ($2) == RID_VOLATILE,
input_filename, lineno); }
| GOTO identifier ';'
{ tree decl;