Bug #10871
closed
Incorrect line directives on struct with union
Added by Anton Vasilyev almost 4 years ago.
Updated over 3 years ago.
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
cil.i (651 KB)
cil.i |
|
Anton Vasilyev, 06/30/2021 03:06 PM
|
|
- 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.
- 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).
Also available in: Atom
PDF