-
Notifications
You must be signed in to change notification settings - Fork 31
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
misattributed warning line when forgetting to use -fopencilk
#196
Comments
There's no good way to fix this issue. The misattribution here is happening when the code is compiled with no debug symbols. Compiling with |
Two thoughts, but I understand that this is probably not a very important issue. Could the warning text get a note that it is probably the use of a cilk_for or cilk_spwan command? People may use cilk without knowing what Tapir is |
We offer two different headers, |
I don't see how modifying the headers or macro definitions affects this specific warning, which is coming from the back-end of the compiler, not the clang front-end. We might be able to introduce a different warning that clang itself would report. IIRC, we already use something like a |
I would agree that this is not an urgent issue and would rather get the new version without this fix then wait for it. I guess trying to clarify what I think a a good fix in the long term would be, though a relatively low importance . If a user specifies a cilk keyword and does not compile with I wonder if this could actually go a step further and be a warning instead of an error, and the serial semantics would automatically just work. |
If the |
That behavior sounds like it may cause problems for our infrastructure for regression-testing Clang, as well as for build systems that try to incorporate OpenCilk. We would need to chase down those issues to verify that the change doesn't cause other problems. To a lesser extent, I'm also concerned with the impact that change would have on people developing alternative front-ends to the compiler. If the alternative front-ends are sidestepping Clang altogether, then this change wouldn't matter, but we might have problems with new front-ends that build on top of Clang. |
The following code
gives the warning of
I would expect it to point at the line with the cilk_for, not the start of the function.
The same behavior also happens when using cilk_spawn as in
giving a warning of
The text was updated successfully, but these errors were encountered: