------- Comment #2 from jvdelisle at gcc dot gnu dot org 2010-04-10 01:38 ------- I think the intent of these test is not to compare the strings but to see if the pointers are pointing to the exact same string. You could have a situation where the content of the strings is identical but they are really two different strings (ie two different storage locations)
The question then is one of what is intended in these code hunks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43710