This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Mixed mode arithmetic - GCC 3.3.3-3 bug?
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: <rick at glentng dot com>
- Cc: <gcc-bugs at gcc dot gnu dot org>
- Date: Tue, 30 Mar 2004 07:59:54 +0200
- Subject: Re: Mixed mode arithmetic - GCC 3.3.3-3 bug?
- References: <OIELJPDNHCGBKHDLBCKEKEFIDGAA.rick@glentng.com>
> Gives this result with GCC 3.3.3-3 on RH9 (and also with GCC gcc-3.2.2-5):
>
> Integer Subtraction
> DDN = -25536
> DDN = 30000
> Real Subtraction
> DDN = -25536
> DDN = -32768
>
> Whereas on Solaris9 with Forte 2 Update 6 compiler I get this (which is
> what I would expect):
>
> Integer Subtraction
> DDN = -25536
> DDN = 30000
> Real Subtraction
> DDN = -25536
> DDN = 30000
>
> Is this a bug in GCC or I am not understanding its behaviour properly ?
Yep, this is a bug in the compiler. Please file a formal bug report with
Bugzilla at http://gcc.gnu.org/bugzilla/ .
Thanks in advance.
--
Eric Botcazou