This is the mail archive of the gcc-bugs@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]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]