Skip to content

[Diagnostics] Emit mismatch diagnostics as notes with --no-warn-mismatch#1307

Open
Steven Ramirez Rosa (Steven6798) wants to merge 1 commit into
qualcomm:mainfrom
Steven6798:issue-1264
Open

[Diagnostics] Emit mismatch diagnostics as notes with --no-warn-mismatch#1307
Steven Ramirez Rosa (Steven6798) wants to merge 1 commit into
qualcomm:mainfrom
Steven6798:issue-1264

Conversation

@Steven6798

Copy link
Copy Markdown
Contributor

Diagnostics affected by --no-warn-mismatch
(e.g., incompatible_architecture_versions) are no longer suppressed entirely.

Instead, downgrade them to notes and always emit them, ensuring users have visibility into mismatch information without treating it as actionable warnings or errors.

Fix: #1264

Diagnostics affected by --no-warn-mismatch
(e.g., incompatible_architecture_versions) are no longer
suppressed entirely.

Instead, downgrade them to notes and always emit them, ensuring
users have visibility into mismatch information without treating
it as actionable warnings or errors.

Fix: qualcomm#1264

Signed-off-by: Steven Ramirez Rosa <ramirezr@qti.qualcomm.com>

CHECK: Error: cannot recognize the format of file {{[` -\(\)_A-Za-z0-9.\\/:]+}}.3.o'. object format or given target machine ({{[` -\(\)_A-Za-z0-9.\\/:]+}}) is incompatible.
NOERR-NOT: Error: cannot recognize the format of file
NOERR: Note: cannot recognize the format of file {{.*}}'. object format or given target machine ({{.*}}) is incompatible.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't the link error out if we cannot read the input file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We are following GNU LD for the behavior of this flag.

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

Successfully merging this pull request may close these issues.

Downgrade severity of errors affected by --no-warn-mismatch

3 participants