aboutsummaryrefslogtreecommitdiff
path: root/gcc/genrecog.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2000-02-19 01:27:00 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2000-02-18 20:27:00 -0500
commitc8d8ed65a5366c075cce9ee64e871d815fd1f33d (patch)
tree4e76f0295c3501797dbd329a63105f6a7c70f1e9 /gcc/genrecog.c
parent1f51a99218e6eb4214e6a40e9937a7cc419f1e95 (diff)
downloadgcc-c8d8ed65a5366c075cce9ee64e871d815fd1f33d.zip
gcc-c8d8ed65a5366c075cce9ee64e871d815fd1f33d.tar.gz
gcc-c8d8ed65a5366c075cce9ee64e871d815fd1f33d.tar.bz2
bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
* bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned. * cppinit.c (new_pending_define): Add cast to avoid warning. * expmed.c (extract_bit_field): Likewise. * flow.c (enum reorder_skip_type): New type. (skip_insns_between_blcok): New it. Rework to avoid warning about possibly undefined variable. * function.c (assign_parms): Make thisparm_boundary unsigned. * genrecog.c (write_switch): Cast XWINT result to int. * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING. * mips-tfile.c (init_file): Make two versions of FDR intializer: one for MIPS and one for Alpha. (get_tag, copy_object): Add casts to avoid warnings. * optabs.c (init_one_libfunc): Cast NAME to (char *). * reload.c (find_reloads): Make TYPE enum reload_type. * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L". * unroll.c (unroll_loop): Initialize UNROLL_NUMBER. * varasm.c (compare_constant_1): Add cast to avoid warning. * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC to (char *). (alpha_expand_unaligned_load, alpha_expand_unaligned_store): Cast switch operand of size to int. (alpha_expand_epilogue): Always initialize fp_offset and sa_reg. * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort in unhandled case. From-SVN: r32060
Diffstat (limited to 'gcc/genrecog.c')
-rw-r--r--gcc/genrecog.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
index 5db3aa2..540a84a 100644
--- a/gcc/genrecog.c
+++ b/gcc/genrecog.c
@@ -1785,19 +1785,21 @@ write_switch (start, depth)
switch (type)
{
case DT_mode:
- printf("GET_MODE (x%d)", depth);
+ printf ("GET_MODE (x%d)", depth);
break;
case DT_veclen:
- printf("XVECLEN (x%d, 0)", depth);
+ printf ("XVECLEN (x%d, 0)", depth);
break;
case DT_elt_zero_int:
- printf("XINT (x%d, 0)", depth);
+ printf ("XINT (x%d, 0)", depth);
break;
case DT_elt_one_int:
- printf("XINT (x%d, 1)", depth);
+ printf ("XINT (x%d, 1)", depth);
break;
case DT_elt_zero_wide:
- printf("XWINT (x%d, 0)", depth);
+ /* Convert result of XWINT to int for portability since some C
+ compilers won't do it and some will. */
+ printf ("(int) XWINT (x%d, 0)", depth);
break;
default:
abort ();