[PATCH (for next stage 1)] Add return type to gimple function dumps
David Malcolm
dmalcolm@redhat.com
Mon Mar 10 20:13:00 GMT 2014
Gimple function dumps contain the types of parameters, but not of the
return type.
The attached patch fixes this omission; here's an example of the
before/after diff:
$ diff -up /tmp/pr23401.c.004t.gimple.old /tmp/pr23401.c.004t.gimple.new
--- /tmp/pr23401.c.004t.gimple.old 2014-03-10 13:40:08.972063541 -0400
+++ /tmp/pr23401.c.004t.gimple.new 2014-03-10 13:39:49.346515464 -0400
@@ -1,3 +1,4 @@
+int
ffff (int i)
{
int D.1731;
Successfully bootstrapped and regrtested on x86_64 Linux (Fedora 20).
A couple of test cases needed tweaking, since they were counting the
number of occurrences of "int" in the gimple dump, which thus changed
for functions returning int (like the one above).
OK for next stage 1?
[motivation: am generating code in my JIT from other program's
representations, and have been debugging type mismatches in function
calls; the precise return types would otherwise have been non-obvious]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-return-types-to-gimple-dumps.patch
Type: text/x-patch
Size: 2338 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140310/f6d91d33/attachment.bin>
More information about the Gcc-patches
mailing list