Skip to content
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

Fixing ODIN II and blifexplorer Compiler Warnings. #2549

Merged
merged 2 commits into from
May 16, 2024

Conversation

navidjafarof
Copy link
Contributor

Description

This pull request is aimed to fix the warnings in ODIN II and blifexplorer.

Related Issue

#2295

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

@github-actions github-actions bot added Odin Odin II Logic Synthesis Tool: Unsorted item lang-cpp C/C++ code external_libs blifexplorer labels May 9, 2024
Copy link
Contributor

@AlexandreSinger AlexandreSinger left a comment

Choose a reason for hiding this comment

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

Hi @navidjafarof , thank you so much for this PR! This fixes all of the warnings in the CI runs, especially the ones described in issue #2518

I made a small note on blif_parser.y and sdc_parser.y. These are being handled specially in another PR since they require changing the minimum version of Bison.

@@ -34,7 +34,7 @@
%define api.namespace {blifparse}

/* Name the parser class */
%define parser_class_name {Parser}
%define api.parser.class {Parser}
Copy link
Contributor

Choose a reason for hiding this comment

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

@navidjafarof As I mentioned in the VTR Industry Sync-Up, the api.parser.class was not added until Bison 3.3. The minimum version of Bison for VTR is currently set to 3.0; and since some users of VTR may be using older versions of Ubuntu it is not trivial to upgrade the version of Bison.

This issue is currently being tracked by PR #2529

We plan on just suppressing the deprecation warnings for liblifparse and libsdcparse (specifically for these files) until all machines are up to date.

@@ -34,7 +34,7 @@
%define api.namespace {sdcparse}

/* Name the parser class */
%define parser_class_name {Parser}
%define api.parser.class {Parser}
Copy link
Contributor

Choose a reason for hiding this comment

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

See the above message regarding the use of api.parser.class

@vaughnbetz
Copy link
Contributor

@AlexandreSinger @navidjafarof : do you want to back out of the api.parser.class changes so we can merge the other changes?

@navidjafarof
Copy link
Contributor Author

@vaughnbetz @AlexandreSinger The PR is ready to merge.

@vaughnbetz
Copy link
Contributor

Thanks @navidjafarof

@vaughnbetz vaughnbetz merged commit 594e96b into master May 16, 2024
100 checks passed
@vaughnbetz vaughnbetz deleted the fix_odin_warnings branch May 16, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blifexplorer external_libs lang-cpp C/C++ code Odin Odin II Logic Synthesis Tool: Unsorted item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants