-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
luajit v2.1-20170405 (openresty 1.11.2.3) - unexpected symbol near 'pragma' #10
Comments
minimal reproduction code:
compiler flag: |
@alonbg Have you tried out the latest |
Hi @agentzh , yes I tried the latest v2.1 with the -msse4.2 flag - doesn't reproduce. |
@alonbg Thanks for the report! I can reproduce it on my side. @yangshuxin Will you please take a look at this? It seems that it is triggered by our |
Turn out the string hash is hard-coded in parser.
|
I'm returning back, will make a PR ASAP. |
It would otherwise be impossible to change string-hash algorithm. This change fixes openresty#10 The test does not cover following situation: o. attribute used by MSVC o. attribute used only on x86 system (not familar with those attributes)
@alonbg Will you try @yangshuxin's LuaJIT patch in #11 on your side? Thanks! |
@agentzh - yes. I'll update .. |
@alonbg I believe this is already fixed in the latest v2.1-agentzh branch. I'm closing this. |
Reproduced on openresty_1.11.2.3/luajit/bin/luajit with https://github.com/luapower/blake2/blob/master/blake2.lua
blake2.lua:125: unexpected symbol near 'pragma' at line 14
Does not reproduce on openresty/luajit2 tag v2.1-20170405 without the
-msse4.2
compilation flags or latest commit excluded.compiled on Intel(R) Xeon(R) CPU E3-1225 V2 @ 3.20GHz (supports SSE4.2)
The text was updated successfully, but these errors were encountered: