From c14bc6db67cd8ea10e927487aa4cbf7e3aef931a Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 28 Dec 2002 11:51:18 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 21 +++++++++++++-------- gcc/c-parse.in | 34 ++++++++++------------------------ 2 files changed, 23 insertions(+), 32 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3dfa74d0ae5c..2d3e3be2c981 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-12-28 Andreas Jaeger + + * c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for + correct format. + 2002-12-27 Kazu Hirata * config/h8300/h8300.md (*iorhi_shift_8): Change the name to @@ -50,7 +55,7 @@ 2002-12-26 Andreas Schwab - * config.gcc (powerpc*-*-*, rs6000-*-*): Fix assignment syntax. + * config.gcc (powerpc*-*-*, rs6000-*-*): Fix assignment syntax. 2002-12-25 David Edelsohn @@ -314,7 +319,7 @@ Sun Dec 22 18:23:44 CET 2002 Jan Hubicka * config/alpha/alpha.h (MASK_SMALL_TEXT, TARGET_SMALL_TEXT): New. (TARGET_SWITCHES): Add -msmall-text and -mlarge-text. (PREDICATE_CODES): Update. - * config/alpha/alpha.md (call patterns): Update for + * config/alpha/alpha.md (call patterns): Update for samegp_function_operand rename; use !samegp reloc if TARGET_EXPLICIT_RELOCS. * doc/invoke.text: Document -msmall-text and -mlarge-text. @@ -343,12 +348,12 @@ Sun Dec 22 18:23:44 CET 2002 Jan Hubicka * config/ns32k/NOTES: New file. 2002-12-20 Hartmut Penner - - * doc/invoke.texi: Document -mzarch, -mesa, -mcpu= and -march= + + * doc/invoke.texi: Document -mzarch, -mesa, -mcpu= and -march= option for S/390 and zSeries. * config/s390/s390.c (s390_cpu, s390_cpu_string, s390_arch, s390_arch_string): New variables. - (override_options): Checking for options and setting of + (override_options): Checking for options and setting of appropriate target_flags, cpu and arch flags. * config/s390/s390.h: (processor_type): New enum. (TARGET_SWITCHES): New switches -mesa/zarch. @@ -452,7 +457,7 @@ Thu Dec 19 23:44:09 2002 J"orn Rennecke 2002-12-19 Nathanael Nerode - * configure.in: FORBUILD when build!=host changed from + * configure.in: FORBUILD when build!=host changed from ../$build-alias to ../build-$build_alias to match change made in top directory. * configure: Regenerated. @@ -468,7 +473,7 @@ Thu Dec 19 23:44:09 2002 J"orn Rennecke .CPP extension as C++ source files * cp/lang-spec.h: Same * doc/invoke.texi: Add documentation for .CPP support. - + 2002-12-19 Aldy Hernandez PR 8553 @@ -2294,7 +2299,7 @@ Wed Nov 20 19:07:17 CET 2002 Jan Hubicka (ggc_realloc): Update valgrind annotations. * ggc-page.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD): Define as empty. - (alloc_anon, free_page, ggc_alloc, poison_pages): Add machinery to + (alloc_anon, free_page, ggc_alloc, poison_pages): Add machinery to valgrind-annotate memory. 2002-11-20 Ulrich Weigand diff --git a/gcc/c-parse.in b/gcc/c-parse.in index f2ffed0ba170..70dfe905dfcc 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 { $$ = 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; } }