Skip to content

llvm-gcc3 determines source filename incorrectly for errors and debug info #1294

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

Closed
llvmbot opened this issue Sep 25, 2006 · 4 comments
Closed
Labels
bugzilla Issues migrated from bugzilla llvm-tools All llvm tools that do not have corresponding tag

Comments

@llvmbot
Copy link
Member

llvmbot commented Sep 25, 2006

Bugzilla Link 922
Resolution FIXED
Resolved on Mar 06, 2010 14:00
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @lattner

Extended Description

The llvm-gcc3 frontend (based on GCC 3.4 sources) does not correctly determine
the source filename for C constructs under certain conditions. This leads to
two errors:

  1. Warning and error messages alert the user to look at the wrong file.
  2. LLVM debugging instructions contain the wrong filename.
@llvmbot
Copy link
Member Author

llvmbot commented Sep 25, 2006

Re-assign bug to myself as I believe I have a fix for it.

@llvmbot
Copy link
Member Author

llvmbot commented Sep 25, 2006

Source file for test
The bug can be reproduced with the following command line (once all files are
uploaded):
llvm-gcc -g -S test.c

The error message for the line containing fluffy will claim to originate from
test1.h and not test.c.

@llvmbot
Copy link
Member Author

llvmbot commented Sep 25, 2006

@llvmbot
Copy link
Member Author

llvmbot commented Sep 25, 2006

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
clementval pushed a commit to clementval/llvm-project that referenced this issue Jan 17, 2022
kitano-metro pushed a commit to RIKEN-RCCS/llvm-project that referenced this issue Feb 14, 2023
kitano-metro pushed a commit to RIKEN-RCCS/llvm-project that referenced this issue Feb 14, 2023
kitano-metro pushed a commit to RIKEN-RCCS/llvm-project that referenced this issue Feb 14, 2023
searlmc1 pushed a commit to ROCm/llvm-project that referenced this issue Mar 24, 2025
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla llvm-tools All llvm tools that do not have corresponding tag
Projects
None yet
Development

No branches or pull requests

1 participant