This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/51712] -Wtype-limits should not trigger for types of implementation-defined signedness
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 May 2012 22:37:06 +0000
- Subject: [Bug c/51712] -Wtype-limits should not trigger for types of implementation-defined signedness
- Auto-submitted: auto-generated
- References: <bug-51712-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51712
--- Comment #8 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-05-03 22:37:06 UTC ---
Author: manu
Date: Thu May 3 22:37:01 2012
New Revision: 187125
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187125
Log:
2012-05-04 Manuel LÃpez-IbÃÃez <manu@gcc.gnu.org>
PR c/51712
c-family/
* c-common.c (expr_original_type): New.
(shorten_compare): Do not warn for enumeration types.
testsuite/
* c-c++-common/pr51712.c: New.
Added:
trunk/gcc/testsuite/c-c++-common/pr51712.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/testsuite/ChangeLog