[Bug c/61280] GCC 4.8.2 suppresses -Wsign-compare caused by macro defined in system header

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 16 17:32:00 GMT 2014


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"
                                             ; }


More information about the Gcc-bugs mailing list