-
Notifications
You must be signed in to change notification settings - Fork 144
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
Building upstream GCC with a really new GCC #2876
Comments
thanks :) marking this as a good first PR because it's a really silly mistake on my part. the fix is quite easy I think. this is the offending code: tl::optional<NodeId> resolved = tl::nullopt;
auto label = ctx.labels.get (expr.get_ident ());
auto value = ctx.values.get (expr.get_ident ());
if (label)
resolved = label;
else if (value)
resolved = value;
// TODO: else emit error?
ctx.map_usage (expr.get_node_id (), *resolved); which is indeed problematic, because if neither the correct fix would be to only call |
with which function should we look into to emit an error for cause a crash. Can you also point me to the code piece you've shown? Thank you! |
this particular piece of code is in for emitting an error, you can look at using the error emission should look something like this: rust_error_at(expr.get_locus (), "could not resolve identifier expression: %qs", expr.get_ident ().as_string ().c_str ()); |
should I assign you the issue @badumbatish? I think it will require building |
Just needs to be a "fairly recent" GCC, from the past few days. I'd also offer to test patches by running them through my CI pipeline with |
oops i didn't see this. Yes i'll try on this issue |
I just realized the make error output shows the file crash location .... |
Closed in #2895 |
Hi!
Using a really up-to-date compiler (
g++ (basepoints/gcc-14-9118-g3232ebd91ed, built at 1708583405) 14.0.1 20240221 (experimental)
) to build GCC including the Rest backend, we get a new warning (cf. http://toolchain.lug-owl.de/laminar/jobs/gcc-x86_64-linux/49):Of course the error is provoked with
--enable-werror-always
, but upstream commit g:0f0ec052b4ad1fb7250a5ad1ec00d276fdc29a09 seems to suggest that fixing this warning is still a TODO.The text was updated successfully, but these errors were encountered: