diff --git a/gcc/genopinit.c b/gcc/genopinit.c index 13ebc0a1ad6..b07b8404ffb 100644 --- a/gcc/genopinit.c +++ b/gcc/genopinit.c @@ -63,28 +63,31 @@ void fancy_abort (); used for comparisons. In that case, %c and %C are the lower-case and upper-case forms of the comparison, respectively. */ +/* The reason we use \% is to avoid sequences of the form %-capletter-% + which SCCS treats as magic. This gets warnings which you should ignore. */ + char *optabs[] = -{ "extendtab[(int) %B][(int) %A][0] = CODE_FOR_%(extend%a%b2%)", - "extendtab[(int) %B][(int) %A][1] = CODE_FOR_%(zero_extend%a%b2%)", - "fixtab[(int) %A][(int) %B][0] = CODE_FOR_%(fix%F%a%I%b2%)", - "fixtab[(int) %A][(int) %B][1] = CODE_FOR_%(fixuns%F%a%b2%)", - "fixtrunctab[(int) %A][(int) %B][0] = CODE_FOR_%(fix_trunc%F%a%I%b2%)", - "fixtrunctab[(int) %A][(int) %B][1] = CODE_FOR_%(fixuns_trunc%F%a%I%b2%)", - "floattab[(int) %B][(int) %A][0] = CODE_FOR_%(float%I%a%F%b2%)", - "floattab[(int) %B][(int) %A][1] = CODE_FOR_%(floatuns%I%a%F%b%)", +{ "extendtab[(int) %B][(int) %A][0] = CODE_FOR_%(extend%a\%b2%)", + "extendtab[(int) %B][(int) %A][1] = CODE_FOR_%(zero_extend%a\%b2%)", + "fixtab[(int) %A][(int) %B][0] = CODE_FOR_%(fix%F\%a%I\%b2%)", + "fixtab[(int) %A][(int) %B][1] = CODE_FOR_%(fixuns%F\%a%b2%)", + "fixtrunctab[(int) %A][(int) %B][0] = CODE_FOR_%(fix_trunc%F\%a%I\%b2%)", + "fixtrunctab[(int) %A][(int) %B][1] = CODE_FOR_%(fixuns_trunc%F\%a%I\%b2%)", + "floattab[(int) %B][(int) %A][0] = CODE_FOR_%(float%I\%a%F\%b2%)", + "floattab[(int) %B][(int) %A][1] = CODE_FOR_%(floatuns%I\%a%F\%b%)", "add_optab->handlers[(int) %A].insn_code = CODE_FOR_%(add%a3%)", "sub_optab->handlers[(int) %A].insn_code = CODE_FOR_%(sub%a3%)", "smul_optab->handlers[(int) %A].insn_code = CODE_FOR_%(mul%a3%)", "smul_widen_optab->handlers[(int) %B].insn_code = CODE_FOR_%(mul%a%b3%)%N", "umul_widen_optab->handlers[(int) %B].insn_code = CODE_FOR_%(umul%a%b3%)%N", - "sdiv_optab->handlers[(int) %A].insn_code = CODE_FOR_%(div%I%a3%)", - "udiv_optab->handlers[(int) %A].insn_code = CODE_FOR_%(udiv%I%a3%)", + "sdiv_optab->handlers[(int) %A].insn_code = CODE_FOR_%(div%I\%a3%)", + "udiv_optab->handlers[(int) %A].insn_code = CODE_FOR_%(udiv%I\%a3%)", "sdivmod_optab->handlers[(int) %A].insn_code = CODE_FOR_%(divmod%a4%)", "udivmod_optab->handlers[(int) %A].insn_code = CODE_FOR_%(udivmod%a4%)", "smod_optab->handlers[(int) %A].insn_code = CODE_FOR_%(mod%a3%)", "umod_optab->handlers[(int) %A].insn_code = CODE_FOR_%(umod%a3%)", - "flodiv_optab->handlers[(int) %A].insn_code = CODE_FOR_%(div%F%a3%)", - "ftrunc_optab->handlers[(int) %A].insn_code = CODE_FOR_%(ftrunc%F%a2%)", + "flodiv_optab->handlers[(int) %A].insn_code = CODE_FOR_%(div%F\%a3%)", + "ftrunc_optab->handlers[(int) %A].insn_code = CODE_FOR_%(ftrunc%F\%a2%)", "and_optab->handlers[(int) %A].insn_code = CODE_FOR_%(and%a3%)", "ior_optab->handlers[(int) %A].insn_code = CODE_FOR_%(ior%a3%)", "xor_optab->handlers[(int) %A].insn_code = CODE_FOR_%(xor%a3%)", @@ -94,12 +97,12 @@ char *optabs[] = "lshr_optab->handlers[(int) %A].insn_code = CODE_FOR_%(lshr%a3%)", "rotl_optab->handlers[(int) %A].insn_code = CODE_FOR_%(rotl%a3%)", "rotr_optab->handlers[(int) %A].insn_code = CODE_FOR_%(rotr%a3%)", - "smin_optab->handlers[(int) %A].insn_code = CODE_FOR_%(smin%I%a3%)", - "smin_optab->handlers[(int) %A].insn_code = CODE_FOR_%(min%F%a3%)", - "smax_optab->handlers[(int) %A].insn_code = CODE_FOR_%(smax%I%a3%)", - "smax_optab->handlers[(int) %A].insn_code = CODE_FOR_%(max%F%a3%)", - "umin_optab->handlers[(int) %A].insn_code = CODE_FOR_%(umin%I%a3%)", - "umax_optab->handlers[(int) %A].insn_code = CODE_FOR_%(umax%I%a3%)", + "smin_optab->handlers[(int) %A].insn_code = CODE_FOR_%(smin%I\%a3%)", + "smin_optab->handlers[(int) %A].insn_code = CODE_FOR_%(min%F\%a3%)", + "smax_optab->handlers[(int) %A].insn_code = CODE_FOR_%(smax%I\%a3%)", + "smax_optab->handlers[(int) %A].insn_code = CODE_FOR_%(max%F\%a3%)", + "umin_optab->handlers[(int) %A].insn_code = CODE_FOR_%(umin%I\%a3%)", + "umax_optab->handlers[(int) %A].insn_code = CODE_FOR_%(umax%I\%a3%)", "neg_optab->handlers[(int) %A].insn_code = CODE_FOR_%(neg%a2%)", "abs_optab->handlers[(int) %A].insn_code = CODE_FOR_%(abs%a2%)", "sqrt_optab->handlers[(int) %A].insn_code = CODE_FOR_%(sqrt%a2%)",