[cfe-dev] RFC: switch default C language mode from gnu99 to gnu11

Sean Silva chisophugis at gmail.com
Thu Oct 16 19:25:49 PDT 2014


On Thu, Oct 16, 2014 at 4:15 PM, Chris Lattner <clattner at apple.com> wrote:

>
> On Oct 16, 2014, at 1:29 PM, Chandler Carruth <chandlerc at google.com>
> wrote:
>
>
> On Thu, Oct 16, 2014 at 1:25 PM, Richard Smith <richard at metafoo.co.uk>
> wrote:
>
>> I suspect that: (a) the ones we want to run in all modes is "all tests,
>> unless otherwise specified",
>>
>
> I'm not sure why. CodeGen certainly doesn't seem very interesting here?
>
>
>> and (b) it is too expensive to do so by default (it would increase our
>> testing time by probably around 4x).
>>
>
> I'm not sure it would.
>
>
> The question isn’t the absolute amount of time it adds, the question is
> whether the added time is paid for by additional bugs found.  I can’t
> imagine that testing all tests as C11 and C99 would find many bugs.  The
> standards are too similar, and therefore doing this by default would just
> be a waste of testing time.
>


As a simple sanity test, it would make sense to hack up a prototype that
does the proposed run-in-different-language-modes-automatically with
coverage info, and then aggregate the coverage data and compare it to a
control run.

Alternatively, it would be useful to exhibit at least a bug or two that
would have been found by this extra testing (or which are uncovered by a
quick prototype).

-- Sean Silva


>
> -Chris
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141016/bef1042d/attachment.html>


More information about the cfe-dev mailing list