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

Preprocessor redefinition warning message #846

Closed
veripoolbot opened this issue Nov 12, 2014 · 4 comments
Closed

Preprocessor redefinition warning message #846

veripoolbot opened this issue Nov 12, 2014 · 4 comments
Assignees

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Adam Krolnik
Original Redmine Issue: 846 from https://www.veripool.org
Original Date: 2014-11-12
Original Assignee: Wilson Snyder (@wsnyder)


The existing message, while helpful, could be a bit more.

Currently:
%Warning: x.v:17: Redefining `CLK

It would be helpful show the prior and new values since they are already in the code:
%Warning: x.v:17: Redefining CLK to TOP.CLKIN; was `DSP_CLK

In Verilog/Getopt.pm
<529 warn "%Warning: ".$self->fileline().": Redefining `$token\n";

529 warn "%Warning: ".$self->fileline().": Redefining `$token to $value; was $oldval\n";

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2014-11-13T12:00:33Z


Some defines especially in UVM are crazy-large, like 1KB or larger, so I don't want to do this in general.

How about doing this only if the define values are say < 80 bytes or so and do not contain newlines?

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Adam Krolnik
Original Date: 2014-11-13T15:57:10Z


Yes, or maybe if they are large, show the prior definition location and the new.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2014-11-14T00:21:33Z


In git towards 3.407.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2014-11-15T13:37:18Z


In 4.308.

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

No branches or pull requests

2 participants