This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: complex arithmetic in gcc (and various standards)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Jan van Dijk <jan at etpmod dot phys dot tue dot nl>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 2 Oct 2006 10:57:28 +0000 (UTC)
- Subject: Re: complex arithmetic in gcc (and various standards)
- References: <200610021054.56353.jan@etpmod.phys.tue.nl>
On Mon, 2 Oct 2006, Jan van Dijk wrote:
> * the C99 and C++ standards say *nothing* about the details of compex
> multiplication
The C99 standard says that real operands aren't converted to complex, but
as I note in bug 24581, the compiler doesn't expect PLUS_EXPR and
MULT_EXPR to have arguments of different types, so the front ends might
need adapting to handle real * complex and real + complex specially.
Patches welcome, see <http://gcc.gnu.org/contribute.html>.
--
Joseph S. Myers
joseph@codesourcery.com