summaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-23 13:36:43 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-23 13:36:43 +0000
commitb3208e64a3a662c82718965540839074554c1301 (patch)
treeee35dc776b92a19cb81bb6d592ec5a01e689d130 /gcc/tree-pretty-print.c
parentabfea50531e5e0e5e2e22a3356e221c27b0e72fc (diff)
downloadgcc-b3208e64a3a662c82718965540839074554c1301.tar.gz
2007-08-23 Richard Guenther <rguenther@suse.de>
* tree-pretty-print.c (dump_generic_node): Annotate GIMPLE_MODIFY_STMTs with volatile ops with "{v}". * gcc.dg/tree-ssa/fprinf-1.c: Adjust patterns. * gcc.dg/tree-ssa/fprinf-chk-1.c: Likewise. * gcc.dg/tree-ssa/prinf-1.c: Likewise. * gcc.dg/tree-ssa/prinf-chk-1.c: Likewise. * gcc.dg/tree-ssa/vfprinf-chk-1.c: Likewise. * gcc.dg/tree-ssa/vfprinf-chk-1.c: Likewise. * gcc.dg/tree-ssa/vprinf-chk-1.c: Likewise. * gcc.dg/tree-ssa/vprinf-chk-1.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127741 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r--gcc/tree-pretty-print.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index 540e611d67c..265a56adf26 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -1081,6 +1081,13 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
if (TREE_CODE (node) == GIMPLE_MODIFY_STMT
&& MOVE_NONTEMPORAL (node))
pp_string (buffer, "{nt}");
+ if (TREE_CODE (node) == GIMPLE_MODIFY_STMT)
+ {
+ stmt_ann_t ann;
+ if ((ann = stmt_ann (node))
+ && ann->has_volatile_ops)
+ pp_string (buffer, "{v}");
+ }
pp_space (buffer);
dump_generic_node (buffer, GENERIC_TREE_OPERAND (node, 1), spc, flags,
false);