Bug 198981

Summary: Make Sparse code more portable (avoid gcc extensions)
Product: Tools Reporter: Dibyendu Majumdar (mobile)
Component: SparseAssignee: Dibyendu Majumdar (mobile)
Status: ASSIGNED ---    
Severity: enhancement CC: luc.vanoostenryck, rdunlap
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: N/A Subsystem:
Regression: No Bisected commit-id:

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.