This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Silvius Rus <rus@google.com> writes:In my first proposal (last week), that was the case. However, I thought it over and realized it exposed too much detail to the user (extensive use of --param) with insufficient practical impact. After I redesigned it, the interface looked very similar to the previous -Wstrict-aliasing implementation.
|[...] | Can you please advise on the following choice of warning levels. | Please let me know which of the following levels you would like to see | in 4.3, in which order. In all cases, the warnings are conditioned by | -fstrict-aliasing. | Thank you, | Silvius
Hi Silvius,
Thanks for taking time for expanding on this.
All of the levels seem good to me. However I would appreciate an explanation about the choice of the levels.
First I thought that the accuracy of the diagnostics improves as
the level increases, meaning less false positives and less false negatives.
However, I'm under the impression that under yourThat is correct.
proposal, the accuracy decreases as the level increases. Is that
reading correct?
My general thinking was that, the compile-time consumed by warning about non-conforming aliasing will increase with the level. So, forI made this choice for consistency with the existent -Wstrict-aliasing. In the previous implementation, level 2 was usually less accurate than level 1, in the sense that it produces more false positives. However, I agree that ordering them by increasing accuracy (and effort) makes good sense by analogy to optimization levels. I have no problem reversing the proposed order, as long as the most accurate one is the default. Let me know if you are OK with this revised order:
example level=1 will be quick but not very precise, and level=4 might
be slow but more accurate. Just like with optimization levels.
What motivates your choice in the other direction?
Thank you! Silvius
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |