https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108080
--- Comment #19 from Patrick Palka <ppalka at gcc dot gnu.org> --- (In reply to ak from comment #18) > How about just making it a warning and ignore? In most cases this is not > fatal. The only exception would be options that are required for correctness. > > This patch fixes the simple test case, except it can't figure out the > location and the warning is printed multiple times. Still better than a ICE > however. Ah yeah, OPTIMIZATION_NODE trees don't have a location... We would need to obtain the location from the containing tree I think. To avoid printing the warning multiple times we could only print it when streaming_p().