diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-21 12:13:51 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-21 12:13:51 +0000 |
commit | 61574916b8ab193ff1f0e487ec717017e90f5447 (patch) | |
tree | 574bc4be07a78b77c49fc4fd316f2d5ec46c96b1 | |
parent | 21d9fe34a73346a3b8c7d2a812747f62a5edff94 (diff) | |
download | gcc-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.MELT | 6 | ||||
-rw-r--r-- | gcc/melt/warmelt-normatch.melt | 3 |
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) |