[mudflap] __mf_strlen + nl_langinfo false positive

2008-10-31 Thread Sergei Trofimovich
Sample session: (sources are below) $ make g++ main.o -g -O0 -fmudflapth -lmudflapth -pthread -o bug $ LANG=C ./bug *** mudflap violation 1 (check/read): time=1225460499.358020 ptr=0x7fe182d90300 size=15 pc=0x7fe183996779 location=`(strlen region)' /usr/lib/gcc/x86_64-pc-linux-gnu/4.

[resend][stl] std::vector::data - nonstandard method.

2008-10-31 Thread Sergei Trofimovich
Hi, today i've occasionally wrote importable code :] std::vector::data() is absent in some other (standard conformant?) STLs. Would be a good idea to rename data() or change specifier (-> protected?). g++ -v: Using built-in specs. Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys