aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@gcc.gnu.org>2002-12-28 11:51:18 +0100
committerAndreas Jaeger <aj@gcc.gnu.org>2002-12-28 11:51:18 +0100
commitc14bc6db67cd8ea10e927487aa4cbf7e3aef931a (patch)
treeae195d26b462225c33fed6ef9994fae4cc2319dc /gcc/c-parse.in
parent53fbfb580b16fa56065e344fa8b6bf7ee5909496 (diff)
downloadgcc-c14bc6db67cd8ea10e927487aa4cbf7e3aef931a.zip
gcc-c14bc6db67cd8ea10e927487aa4cbf7e3aef931a.tar.gz
gcc-c14bc6db67cd8ea10e927487aa4cbf7e3aef931a.tar.bz2
c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for correct format.
* c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for correct format. From-SVN: r60570
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in34
1 files changed, 10 insertions, 24 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index f2ffed0..70dfe90 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1459,7 +1459,7 @@ notype_initdcl:
so that the header files compile. */
maybe_attribute:
/* empty */
- { $$ = NULL_TREE; }
+ { $$ = NULL_TREE; }
| attributes
{ $$ = $1; }
;
@@ -2335,7 +2335,7 @@ select_or_iter_stmt:
'(' expr ')' ';'
{ DO_COND ($1) = c_common_truthvalue_conversion ($3); }
| do_stmt_start error
- { }
+ { }
| FOR
{ $<ttype>$ = build_stmt (FOR_STMT, NULL_TREE, NULL_TREE,
NULL_TREE, NULL_TREE);
@@ -2402,7 +2402,7 @@ stmt:
$$ = build_asm_stmt ($2, $4, $6, $8, NULL_TREE); }
/* This is the case with clobbered registers as well. */
| ASM_KEYWORD maybe_type_qual '(' expr ':' asm_operands ':'
- asm_operands ':' asm_clobbers ')' ';'
+ asm_operands ':' asm_clobbers ')' ';'
{ stmt_count++;
$$ = build_asm_stmt ($2, $4, $6, $8, $10); }
| GOTO identifier ';'
@@ -3113,7 +3113,7 @@ myparm:
optparmlist:
/* empty */
{
- $$ = NULL_TREE;
+ $$ = NULL_TREE;
}
| ',' ELLIPSIS
{
@@ -3126,7 +3126,7 @@ optparmlist:
}
parmlist_2
{
- /* returns a tree list node generated by get_parm_info */
+ /* returns a tree list node generated by get_parm_info */
$$ = $3;
poplevel (0, 0, 0);
}
@@ -3891,25 +3891,11 @@ yyprint (file, yychar, yyl)
case CONSTANT:
fprintf (file, " %s", GET_MODE_NAME (TYPE_MODE (TREE_TYPE (t))));
if (TREE_CODE (t) == INTEGER_CST)
- fprintf (file,
-#if HOST_BITS_PER_WIDE_INT == 64
-#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
- " 0x%x%016x",
-#else
-#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG
- " 0x%lx%016lx",
-#else
- " 0x%llx%016llx",
-#endif
-#endif
-#else
-#if HOST_BITS_PER_WIDE_INT != HOST_BITS_PER_INT
- " 0x%lx%08lx",
-#else
- " 0x%x%08x",
-#endif
-#endif
- TREE_INT_CST_HIGH (t), TREE_INT_CST_LOW (t));
+ {
+ fputs (" ", file);
+ fprintf (file, HOST_WIDE_INT_PRINT_DOUBLE_HEX,
+ TREE_INT_CST_HIGH (t), TREE_INT_CST_LOW (t));
+ }
break;
}
}