Fix spurious conform test failures

This commit is contained in:
Andreas Schwab 2015-07-27 16:04:40 +02:00
parent ae5eae7cfc
commit fddb87425a
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2015-07-27 Andreas Schwab <schwab@suse.de>
* conform/conformtest.pl (checknamespace): Filter out string
literals while tokenizing.
2015-07-26 Chung-Lin Tang <cltang@codesourcery.com>
* sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.

View File

@ -275,9 +275,8 @@ sub checknamespace {
} else {
# We have to tokenize the line.
my($str) = $_;
my($index) = 0;
my($len) = length ($str);
$str =~ s/"[^"]*"//g;
foreach $token (split(/[^a-zA-Z0-9_]/, $str)) {
if ($token ne "") {
newtoken ($token, @allow);