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/25861] [4.2 Regression] tree check fail at c-common.c:2430



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-01-19 20:20 -------
Caused by:
2005-12-14  Ben Elliston  <bje@au.ibm.com>

        * c-common.c (c_common_truthvalue_conversion): Generalise warning
        for addresses converted to booleans; not just function addresses.
        * c-typeck.c (build_binary_op): Warn for address comparisons which
        can never be NULL (eg. func == NULL or &var == NULL).
        * common.opt (Walways-true): New option.
        * c-opts.c (c_common_handle_option): Set it with -Wall.
        * doc/invoke.texi: Document it.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bje at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25861


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