https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88156
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-w64-mingw32
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2018-11-23
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Can you reproduce with the following C testcase? Indeed on x86_64-linux I do
not see this issue. Can you check what __WCHAR_TYPE__ expands to for you
(preprocess the testcase)?
int string_hash(const __WCHAR_TYPE__* data) {
int h = 0;
if (!data){
return 0;
}
while (*data != 0) {
h = (h * 7) ^ *data;
++data;
}
if (h < 0) {
h = -h;
}
return h;
}
int main(int argc, char *argv[])
{
int hash = string_hash(L"PROBABILIT");
__builtin_printf("hash=%d\n", hash);
return 0;
}