The attached patch removes some unused headers from libgfortran sources. It 
removes 320 assert.h, 31 stdlib.h, 12 string.h, 4 errno.h, and the occasional 
math.h, unistd.h, and limits.h.

I have audited all files manually, checking for function calls. Patch was 
bootstrapped and regtested on x86_64-apple-darwin16.3.0.
OK to commit?

FX


PS: after that patch, the most often used header (not included in 
libgfortran.h) is stdlib.h, used in 351 out of 436 library source files. Maybe 
that warrants including it in libgfortran.h? (next are string.h with 129 
includes and limits.h with 113)


Attachment: headers.ChangeLog
Description: Binary data

Attachment: headers.diff
Description: Binary data

Reply via email to