This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61280] GCC 4.8.2 suppresses -Wsign-compare caused by macro defined in system header
- 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: Tue, 16 Dec 2014 17:32:46 +0000
- Subject: [Bug c/61280] GCC 4.8.2 suppresses -Wsign-compare caused by macro defined in system header
- Auto-submitted: auto-generated
- References: <bug-61280-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61280
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |manu at gcc dot gnu.org
Resolution|--- |FIXED
--- Comment #1 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
This seems fixed in GCC 5.0 since now the preprocessed output tracks the
system-header bit within macros:
# 1 "test.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "test.c"
# 1 "test.h" 1
# 2 "test.h" 3
# 2 "test.c" 2
int foo(int i, unsigned j) { return
# 2 "test.c" 3
((
# 2 "test.c"
i
# 2 "test.c" 3
) < (
# 2 "test.c"
j
# 2 "test.c" 3
))
# 2 "test.c"
; }