Bug #10871
closedIncorrect line directives on struct with union
0%
Description
Incorrect line directives on struct with union
struct fxregs_state is located from line 34 in /arch/x86/include/asm/fpu/types.h,
but produced cil file has wrong line 27
Problem could be reproduced on linux-5.12-rc3 drivers/usb/serial/ipw.ko
Files
Updated by Evgeny Novikov almost 4 years ago
- Category set to C back-end
- Assignee set to Evgeny Novikov
- Priority changed from Normal to High
I hope that I will look on this one day in near future.
Updated by Evgeny Novikov over 3 years ago
- Status changed from New to Closed
I fixed the issue in 0f9da42. Hopefully, GCC keeps information on locations for structure declarations for debugging purposes, so, I was able to use it to add missed line directives.
BTW, before this commit many (most) references to structure/union declarations in the CIF output were invalid. Sometimes there could be even implicit references to invalid source filess, e.g. when structure/union declarations were at the beginning of headers (there were not line directives switching sources to new headers).