summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-21 12:13:51 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-21 12:13:51 +0000
commit61574916b8ab193ff1f0e487ec717017e90f5447 (patch)
tree574bc4be07a78b77c49fc4fd316f2d5ec46c96b1
parent21d9fe34a73346a3b8c7d2a812747f62a5edff94 (diff)
downloadgcc-61574916b8ab193ff1f0e487ec717017e90f5447.tar.gz
2011-06-21 Basile Starynkevitch <basile@starynkevitch.net>
* melt/warmelt-normatch.melt (scanpat_srcpatconst): Added one more warning on bad match parenthesis. http://groups.google.com/group/gcc-melt-french/browse_thread/thread/92d171b8bda87916 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@175258 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog.MELT6
-rw-r--r--gcc/melt/warmelt-normatch.melt3
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog.MELT b/gcc/ChangeLog.MELT
index 077dad3be4c..045889bb036 100644
--- a/gcc/ChangeLog.MELT
+++ b/gcc/ChangeLog.MELT
@@ -1,5 +1,11 @@
2011-06-21 Basile Starynkevitch <basile@starynkevitch.net>
+ * melt/warmelt-normatch.melt (scanpat_srcpatconst): Added one more
+ warning on bad match parenthesis.
+ http://groups.google.com/group/gcc-melt-french/browse_thread/thread/92d171b8bda87916
+
+
+2011-06-21 Basile Starynkevitch <basile@starynkevitch.net>
* melt/warmelt-normal.melt (normexp_defun): Reject nested defun-s,
so testsuite/melt/tbad-4.melt fails properly.
diff --git a/gcc/melt/warmelt-normatch.melt b/gcc/melt/warmelt-normatch.melt
index 96a01990b00..7a35cbcd173 100644
--- a/gcc/melt/warmelt-normatch.melt
+++ b/gcc/melt/warmelt-normatch.melt
@@ -202,6 +202,9 @@ scanning variables.}#
(unsafe_get_field :named_name rectyp))
(warning_strv sloc "got ctype"
(unsafe_get_field :named_name ctyp))
+ (warning_plain
+ (get_field :loca_location (get_field :pctn_src pcn))
+ "perhaps this MATCH expression is badly parenthesised")
))
)))
(install_method class_source_pattern_constant scan_pattern scanpat_srcpatconst)