On 19/05/13 19:44, Bram Moolenaar wrote:

I wrote:

Patch 7.3.970

All the tests I could do with the new engine pass.  However, it is
noticeable slower than the old engine.  If this bothers you, set the
'regexpengine' option to one.

If you spot a mistake in regexp pattern matching, please send a
reproducible example, so that we can add it to the tests.


Compiling on linux_x86_64:

gcc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -O2 -fno-strength-reduce -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/regexp.o regexp.c
In file included from regexp.c:7749:0:
regexp_nfa.c: In function ‘nfa_regatom’:
regexp_nfa.c:762:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] regexp_nfa.c:773:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] regexp_nfa.c:819:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
regexp_nfa.c: In function ‘nfa_regpiece’:
regexp_nfa.c:1366:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
In file included from /usr/include/string.h:642:0,
                 from os_unix.h:522,
                 from vim.h:268,
                 from regexp.c:47:
In function ‘strcpy’,
inlined from ‘nfa_recognize_char_class.constprop.24’ at regexp_nfa.c:379:5: /usr/include/bits/string3.h:105:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer [enabled by default]

The above is with "tiny" features but "huge" features give me the same (with a much longer gcc command line).


Best regards,
Tony.
--
"I like your game but we have to change the rules."

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui