Bug 198981 - Make Sparse code more portable (avoid gcc extensions)
Summary: Make Sparse code more portable (avoid gcc extensions)
Status: ASSIGNED
Alias: None
Product: Tools
Classification: Unclassified
Component: Sparse (show other bugs)
Hardware: All Linux
: P1 enhancement
Assignee: Dibyendu Majumdar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-03 02:25 UTC by Dibyendu Majumdar
Modified: 2018-11-19 23:01 UTC (History)
2 users (show)

See Also:
Kernel Version: N/A
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Dibyendu Majumdar 2018-03-03 02:25:08 UTC
Sparse code relies upon a number of gcc extensions that are not supported by compilers such as MSVC on Windows. By avoiding these features Sparse code can be successfully compiled on Windows using MSVC. This can be beneficial to Sparse as it expands the scope of its use.

This work has already been done by the dmr_C project (https://github.com/dibyendumajumdar/dmr_c) and I am happy to contribute the changes necessary for this. 

Please provide feedback on whether this is desired or not.
Comment 1 Randy Dunlap 2018-03-07 19:06:21 UTC
From a quick look, there are several gcc extensions being used, so I guess that this will have to be decided on a case-by-case basis. (IMHO)
Comment 2 Luc Van Oostenryck 2018-11-19 23:01:00 UTC
Yes, I would be fine with such patch, one for each case.

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