This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/49914] call to abs(long long) in gcc/fold-const.c
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 2 Aug 2011 08:41:10 +0000
- Subject: [Bug bootstrap/49914] call to abs(long long) in gcc/fold-const.c
- Auto-submitted: auto-generated
- References: <bug-49914-4@http.gcc.gnu.org/bugzilla/>
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)