This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
make print-tree.c:print_node print "restrict"
- From: Dan Nicolaescu <dann at godzilla dot ICS dot UCI dot EDU>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 17 Feb 2002 10:51:28 -0800
- Subject: make print-tree.c:print_node print "restrict"
Currently print-tree.c:print_node does not give any info about the
"restrict_flag", so debug_tree can't be used to look for problems with
restricted pointers.
The patch below is most likely incorrect. I hope somebody who
understands the code better can come up with a better fix...
2002-02-16 Dan Nicolaescu <dann@ics.uci.edu>
* print-tree.c (print_node): Print the restrict qualifier.
*** print-tree.c.~1.53.~ Fri Jan 25 09:52:48 2002
--- print-tree.c Sat Feb 16 10:03:07 2002
***************
*** 84,89 ****
--- 84,92 ----
}
else if (class == 't')
{
+ if (TYPE_RESTRICT (node))
+ fputs (" restrict", file);
+
if (TYPE_NAME (node))
{
if (TREE_CODE (TYPE_NAME (node)) == IDENTIFIER_NODE)
***************
*** 514,519 ****
--- 517,525 ----
if (TYPE_PACKED (node))
fputs (" packed", file);
+
+ if (TYPE_RESTRICT (node))
+ fputs (" restrict", file);
if (TYPE_LANG_FLAG_0 (node))
fputs (" type_0", file);