Bug 2239619 - Clang adds debug information by default
Summary: Clang adds debug information by default
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: clang
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tulio Magno Quites Machado Filho
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-19 12:26 UTC by Guinevere Larsen
Modified: 2023-09-28 00:20 UTC (History)
11 users (show)

Fixed In Version: clang-17.0.1-1.fc39
Clone Of:
Environment:
Last Closed: 2023-09-28 00:20:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Guinevere Larsen 2023-09-19 12:26:58 UTC
When compiling any C code using clang, the compiler will add debug information even when the option `-g` is not given. 

Reproducible: Always

Steps to Reproduce:
1. cat t.cc
int main(){
	return 0;
}
2. clang -c t.cc
3. llvm-dwarfdump t.o
Actual Results:  
llvm-dwarfdump outputs 30 lines' worth of debug information

Expected Results:  
Only 3 lines of boilerplate output, no actual debug information

Comment 1 Tulio Magno Quites Machado Filho 2023-09-19 19:05:11 UTC
A fix and a test have been proposed at:
https://src.fedoraproject.org/rpms/clang/pull-request/215
https://src.fedoraproject.org/tests/clang/pull-request/25

Comment 2 Fedora Update System 2023-09-26 19:11:23 UTC
FEDORA-2023-5080e32ca7 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-5080e32ca7

Comment 3 Fedora Update System 2023-09-26 19:58:53 UTC
FEDORA-2023-5080e32ca7 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2023-09-26 20:48:15 UTC
FEDORA-2023-a0cc241787 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a0cc241787

Comment 5 Fedora Update System 2023-09-27 01:26:29 UTC
FEDORA-2023-a0cc241787 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-a0cc241787`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a0cc241787

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2023-09-28 00:20:59 UTC
FEDORA-2023-a0cc241787 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.