From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11911 invoked by alias); 16 Feb 2008 22:33:59 -0000 Received: (qmail 11801 invoked by uid 48); 16 Feb 2008 22:33:13 -0000 Date: Sat, 16 Feb 2008 22:33:00 -0000 Message-ID: <20080216223313.11800.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/29549] matmul slow for complex matrices In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jb at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg01823.txt.bz2 ------- Comment #10 from jb at gcc dot gnu dot org 2008-02-16 22:33 ------- Actually, we could compile the entire libgfortran with -fcx-fortran-rules as well: Index: Makefile.am =================================================================== --- Makefile.am (revision 132367) +++ Makefile.am (working copy) @@ -28,6 +28,9 @@ AM_CPPFLAGS = -iquote$(srcdir)/io -I$(sr -I$(srcdir)/$(MULTISRCTOP)../gcc/config \ -I$(MULTIBUILDTOP)../../$(host_subdir)/gcc -D_GNU_SOURCE +# Fortran rules for complex multiplication and division +AM_CFLAGS += -fcx-fortran-rules + gfor_io_src= \ io/close.c \ io/file_pos.c \ Regtested on i686-pc-linux-gnu. This might benefit other intrinsics using complex multiplication and division as well, e.g. PRODUCT. I'll go ahead and write some documentation as well, and submit the entire thing once 4.4 opens; assigning to myself. -- jb at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jb at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2006-11-04 14:15:02 |2008-02-16 22:33:12 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29549