Commit 2cd76da8 by Andreas Krebbel Committed by Andreas Krebbel

S/390: Improve debug output for builtin matching

gcc/ChangeLog:

2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>

	* config/s390/s390-c.c (s390_fn_types_compatible): Print the
	expected and found types with -mdebug during builtin matching.

From-SVN: r269908
parent f22e586c
2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
* 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 <rguenther@suse.de> 2019-03-25 Richard Biener <rguenther@suse.de>
PR middle-end/89790 PR middle-end/89790
......
...@@ -810,7 +810,13 @@ s390_fn_types_compatible (enum s390_builtin_ov_type_index typeindex, ...@@ -810,7 +810,13 @@ s390_fn_types_compatible (enum s390_builtin_ov_type_index typeindex,
mismatch: mismatch:
if (TARGET_DEBUG_ARG) 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; return INT_MAX;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment