emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warnings compiling Emacs 22 on amd64


From: Stefan Monnier
Subject: Re: warnings compiling Emacs 22 on amd64
Date: Tue, 16 Jan 2007 09:50:01 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

>     #define FIXNUM_OVERFLOW_P(i) \
>       ((EMACS_INT)(int)(i) > MOST_POSITIVE_FIXNUM \
>        || (EMACS_INT)(int)(i) < MOST_NEGATIVE_FIXNUM)

This would break code where `i' is a long.

In any case, the first thing to do is to bring it to the attention of the
gcc maintainers.  Even if they don't provide any workaround, it's important
that they know about such problems.  Otherwise they may be tempted to add
warnings for code like

         int x = 3;
         int y = SOME_MACRO (x);

         if (y > 6) ...

where SOME_MACRO may end up just returning `x' depending on some
compilation flag.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]