Bug 85402 - excessive compile time with -Wmissing-braces
Summary: excessive compile time with -Wmissing-braces
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: compile-time-hog, diagnostic
Depends on:
Blocks:
 
Reported: 2018-04-14 08:53 UTC by David Binderman
Modified: 2018-04-18 09:48 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
C source code (159.28 KB, text/plain)
2018-04-14 08:53 UTC, David Binderman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2018-04-14 08:53:53 UTC
Created attachment 43930 [details]
C source code

The attached C code - when compiled by -Wmissing-braces -  can cause 
compile times of over 100 minutes on gcc trunk. -O2 doesn't seem
to be required.

-Wmissing-braces seems to want to print out all parts of a very long
data structure in the user's source code.

Maybe this should be constrained to the first 100 or 1000 elements or so.