Skip to content

Linking: fix up all types before handling functions or objects #7579

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

Function parameters may require application of type fixes: our linking ensures that all types have a unique tag, and some parameter's types may require such tag updates. We used to do this for objects already, but need to apply it to parameters as well. Also, the order matters: all types need to be sorted out first before attempting objects or functions.

Spotted while trying to compile a particular version of Xen 4.11.

  • 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.

@tautschnig tautschnig added bugfix aws Bugs or features of importance to AWS CBMC users labels Mar 7, 2023
@tautschnig tautschnig assigned kroening and tautschnig and unassigned kroening Mar 7, 2023
@tautschnig tautschnig force-pushed the bugfixes/linking branch 2 times, most recently from 08c7cdc to 79cf301 Compare March 7, 2023 12:53
@codecov
Copy link

codecov bot commented Mar 7, 2023

Codecov Report

Attention: Patch coverage is 94.44444% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 78.47%. Comparing base (6aeace1) to head (79cf301).
Report is 1 commits behind head on develop.

❗ Current head 79cf301 differs from pull request most recent head fe5c1a1. Consider uploading reports for the commit fe5c1a1 to get more accurate results

Files Patch % Lines
src/linking/linking.cpp 94.44% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7579      +/-   ##
===========================================
+ Coverage    78.23%   78.47%   +0.24%     
===========================================
  Files         1720     1670      -50     
  Lines       188342   191778    +3436     
  Branches     18442        0   -18442     
===========================================
+ Hits        147353   150503    +3150     
- Misses       40989    41275     +286     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tautschnig tautschnig assigned kroening and unassigned tautschnig Mar 7, 2023
@tautschnig tautschnig self-assigned this Mar 8, 2023
@harmim
Copy link
Contributor

harmim commented Mar 8, 2023

It seems this fixed my problem with building Xen 4.11. Thanks @tautschnig.

@tautschnig tautschnig removed their assignment Jan 24, 2024
Function parameters may require application of type fixes: our linking
ensures that all types have a unique tag, and some parameter's types may
require such tag updates. We used to do this for objects already, but
need to apply it to parameters as well. Also, the order matters: all
types need to be sorted out first before attempting objects or
functions.

Spotted while trying to compile a particular version of Xen 4.11.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Bugs or features of importance to AWS CBMC users bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants