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

Manuel López-Ibáñez lopezibanez@gmail.com
Sat Nov 25 01:54:00 GMT 2006


This is a modified version of Roger Sayle's patch
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
      (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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wcoercion-5-kill-unsigned_conversion_warning.patch
Type: application/octet-stream
Size: 6713 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061125/7b0da5d5/attachment.obj>

More information about the Gcc-patches mailing list