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

[C/C++ PATCH] Reorganize c-common.c's convert_and_check (take 2)


:ADDPATCH C/C++:

This is a modified version of Roger Sayle's patch
http://gcc.gnu.org/ml/gcc-patches/2006-11/msg00812.html
that applies without conflicts.

Bootstrapped and tested with --enable-languages=all
--enable-decimal-float for trunk revision 119143 on i686-pc-linux-gnu


2006-11-25 Roger Sayle <roger@eyesopen.com> Manuel Lopez-Ibanez <manu@gcc.gnu.com>

     * c-common.c (constant_fits_type_p): Delete.
     (unsigned_conversion_warning): Delete.
     (conversion_warning): Integrate Wconversion warning from
     unsigned_conversion_warning().
     (convert_and_check): Integrate Woverflow warning from
     unsigned_conversion_warning().  Reorganize and simplify to avoid
     dependence upon the middle-end setting TREE_OVERFLOW on integral
     conversions, by using int_fits_type() directly.

Attachment: wcoercion-5-kill-unsigned_conversion_warning.patch
Description: Binary data


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