[cfe-dev] proposal: every warning should have a -W flag

Ted Kremenek kremenek at apple.com
Thu Aug 11 18:07:27 PDT 2011


Sure, there's nothing preventing us from adding aliases for warnings (or, in rare cases, changing warning flags), although ideally GCC will hopefully try and match our choice of warning flags as well when they add new ones.  :)

On Aug 11, 2011, at 5:58 PM, Jonny Yu wrote:

> hi kremenek,
> Thinking one step forward, For the new warnings not existed now, if GCC added the same warning flag later, could Clang support that flag as well?
> I'm asking that because we need use both compilers, if the new options are different, it might break the current command line compatibility.
> Does this make sense?
> 
> Sent from my iPhone
> 
> On 2011-8-12, at 上午4:27, Ted Kremenek <kremenek at apple.com> wrote:
> 
>> On Aug 10, 2011, at 9:25 PM, Miles Bader wrote:
>> 
>>> Clang's gcc-compatibility [both for source and invocation] is absolutely
>>> brilliant for users, and it's done a great job of it so far.  But of
>>> course for every new feature added, there's potential for divergence,
>>> and it would be nice to at keep that in check as much as possible...
>>> 
>>> Is there some established mechanism for coordinating interface changes
>>> with gcc where it would make sense?
>> 
>> For existing warnings, we try and match GCC's flag names.  For new warnings being added to Clang that (to our knowledge) aren't being added to GCC, there is no dialog with the GCC developers to support the same warning flag.  I think dialog between the communities would be helpful in this regard, but I'm not interested in establishing an official process here for coordinating warnings between the two compilers.  Generally speaking it hasn't been a problem at all, and that formal process would likely burden both communities.
>> _______________________________________________
>> 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/20110811/39d64255/attachment.html>


More information about the cfe-dev mailing list