Skip to content

C front-end: tolerate type differences with asm renaming #7584

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tautschnig
Copy link
Collaborator

The example found in glibc shows how asm renaming may be combined with changes in return type names (even when there isn't actually a bit-level difference amongst the types). Weakening the asm-renamed declaration by marking it "incomplete" works around this problem.

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

The example found in glibc shows how asm renaming may be combined with
changes in return type names (even when there isn't actually a bit-level
difference amongst the types). Weakening the asm-renamed declaration by
marking it "incomplete" works around this problem.
@codecov
Copy link

codecov bot commented Mar 9, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.14 🎉

Comparison is base (f02532a) 78.36% compared to head (05a36c1) 78.50%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7584      +/-   ##
===========================================
+ Coverage    78.36%   78.50%   +0.14%     
===========================================
  Files         1670     1670              
  Lines       191768   191770       +2     
===========================================
+ Hits        150277   150551     +274     
+ Misses       41491    41219     -272     
Impacted Files Coverage Δ
src/ansi-c/c_typecheck_base.cpp 83.13% <100.00%> (+0.06%) ⬆️
src/util/std_expr.h 93.15% <0.00%> (+0.17%) ⬆️
src/util/ssa_expr.cpp 94.17% <0.00%> (+0.97%) ⬆️
src/util/expr.h 97.14% <0.00%> (+1.90%) ⬆️
src/util/type.h 100.00% <0.00%> (+2.98%) ⬆️
src/util/dstring.h 100.00% <0.00%> (+3.22%) ⬆️
src/util/string_utils.cpp 93.51% <0.00%> (+4.62%) ⬆️
src/big-int/bigint.hh 97.36% <0.00%> (+5.26%) ⬆️
src/util/string_container.h 100.00% <0.00%> (+18.18%) ⬆️
src/util/string_container.cpp 51.85% <0.00%> (+18.51%) ⬆️
... and 7 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -646,6 +646,8 @@ void c_typecheck_baset::apply_asm_label(
{
symbol.name=asm_label;
symbol.base_name=asm_label;
if(symbol.type.id() == ID_code)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An explaining comment would be great here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants