Project

General

Profile

Actions

Bug #10871

closed

Incorrect line directives on struct with union

Added by Anton Vasilyev almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Category:
C back-end
Start date:
06/30/2021
Due date:
% Done:

0%

Estimated time:
Detected in build:
git
Platform:
Published in build:

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
Actions #1

Updated by Evgeny Novikov almost 3 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.

Actions #2

Updated by Evgeny Novikov over 2 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).

Actions

Also available in: Atom PDF