Skip to content

clang: "-save-temps -g" option leads to "warning: inconsistent use of MD5 checksums" #56378

@hurryman2212

Description

@hurryman2212

Clang version: 14.0.0-1ubuntu1 (target: x86_64-pc-linux-gnu)

How to reproduce the issue: Build any source with -save-temps -g, then warning: inconsistent use of MD5 checksums will be generated in assembly stage.

The root cause for this is probably that the output assembly for -save-temps -g holds two .file directives (with/without build directory", but only the above one holds MD5 sequence.
Output assembly format:

foo:                                   # @foo
.Lfunc_begin0:
	.file	0 "/your/path/your/project" "FILE.c" md5 <MD5_SEQUENCE>
	.file	1 "FILE.c"
        ...

Metadata

Metadata

Assignees

Labels

clang:codegenIR generation bugs: mangling, exceptions, etc.debuginfo

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions