From: Andreas Krebbel Date: Mon, 25 Mar 2019 10:09:43 +0000 (+0000) Subject: S/390: Improve debug output for builtin matching X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cd76da88aab5a7402eb006bda131422123fb362;p=gcc.git S/390: Improve debug output for builtin matching gcc/ChangeLog: 2019-03-25 Andreas Krebbel * config/s390/s390-c.c (s390_fn_types_compatible): Print the expected and found types with -mdebug during builtin matching. From-SVN: r269908 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fd07440fe42..fc88d64398f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-03-25 Andreas Krebbel + + * config/s390/s390-c.c (s390_fn_types_compatible): Print the + expected and found types with -mdebug during builtin matching. + 2019-03-25 Richard Biener PR middle-end/89790 diff --git a/gcc/config/s390/s390-c.c b/gcc/config/s390/s390-c.c index aafe346eea8..fc9ad67b771 100644 --- a/gcc/config/s390/s390-c.c +++ b/gcc/config/s390/s390-c.c @@ -810,7 +810,13 @@ s390_fn_types_compatible (enum s390_builtin_ov_type_index typeindex, mismatch: if (TARGET_DEBUG_ARG) - fprintf (stderr, " mismatch in operand: %d\n", i + 1); + { + fprintf (stderr, " mismatch in operand: %d incoming: ", i + 1); + print_generic_expr (stderr, in_type, TDF_VOPS|TDF_MEMSYMS); + fprintf (stderr, " expected: "); + print_generic_expr (stderr, b_arg_type, TDF_VOPS|TDF_MEMSYMS); + fprintf (stderr, "\n"); + } return INT_MAX; }