Here's a test (I'm not sending a patch because I don't know where to put this file). The output now looks like this:<div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">

<div><div>error-limit.c:4:8: error: redefinition of 's1'</div></div><div><div>struct s1{};</div></div><div><div>       ^</div></div><div><div>fatal error: too many errors emitted, stopping now</div></div><div><div>

error-limit.c:3:8: note: previous definition is here</div></div><div><div>struct s1{};</div></div><div><div>       ^</div></div><div><div>2 errors generated.</div></div></blockquote><div><div><br></div><div>Note comes after the fatal error, but I don't see an easy way around this. Is this good enough?</div>

<div><br></div><div>I've also noticed a difference in how ferror-limit accepts its parameter depending on how clang is invoked (driver or the front-end):</div></div><div>clang -ferrror-limit=1</div><div>clang -cc1 -ferror-limit 1 (doesn't accept ferror-limit= syntax)</div>

<div>Is this intentional?</div>