[PATCH] Fix PR middle-end/26635

Eric Botcazou ebotcazou@adacore.com
Sun Apr 2 06:37:00 GMT 2006

> If it's OK with the other maintainers I'd prefer this to just be a simple
> global variable, like flag_evaluation_order  in flags.h rather than new
> command line option.  It should behave identically, can get for C/C++ in
> the same way, and provides the  same less intrusive workaround for the
> release branches. 

Revised patch attached.

2006-04-02  Eric Botcazou  <ebotcazou@adacore.com>

        PR middle-end/26635
	* flags.h (flag_modv): Declare.
        * c-common.c (c_common_nodes_and_builtins): Set flag_modv to 1.
        * convert.c (convert_to_integer): Don't narrow the type of a
        PLUS_EXPR or MINUS_EXPR if !flag_modv and the unwidened type
        is signed.
	* toplev.c (flag_modv): New global variable.

Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f217-005-2.diff
Type: text/x-diff
Size: 3704 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060402/1b350175/attachment.bin>

More information about the Gcc-patches mailing list