[Bug bootstrap/49914] call to abs(long long) in gcc/fold-const.c

rguenther at suse dot de gcc-bugzilla@gcc.gnu.org
Tue Aug 2 08:41:00 GMT 2011


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

--- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> 2011-08-02 08:40:24 UTC ---
On Mon, 1 Aug 2011, paolo.carlini at oracle dot com wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49914
> 
> Paolo Carlini <paolo.carlini at oracle dot com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |paolo.carlini at oracle dot
>                    |                            |com, rguenth at gcc dot
>                    |                            |gnu.org
> 
> --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-08-01 16:36:54 UTC ---
> So, Richard, what shall we do here? Add to tree.h just:
> 
>   #define ABS(X) ((X >= 0) ? (X) : (-X))
> 
> and use it in all those places? Or a static inline? Better name?

No, I'd say have a abs_hwi in hwint.h and use that (ISTR sebastian pop
adding one in a (pending?) patch)



More information about the Gcc-bugs mailing list