This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Vectorizing a simple Fortran loop
- From: Steven Bosscher <stevenb at suse dot de>
- To: Leehod Baruch <LEEHOD at il dot ibm dot com>
- Cc: fortran at sources dot redhat dot com, Dorit Naishlos <DORIT at il dot ibm dot com>
- Date: Sun, 20 Mar 2005 14:46:50 +0100 (CET)
- Subject: Re: Vectorizing a simple Fortran loop
- Organization: SuSE Linux AG
- References: <OF04E511A4.F05CAD76-ONC2256FCA.0046A821-C2256FCA.004B31D0@il.ibm.com>
On Mar 20, 2005 02:38 PM, Leehod Baruch <LEEHOD@il.ibm.com> wrote:
> Is there a good explanation for this?
No.
> Is there a way to prevent it from happening?
You did not say what version of GCC you are using. Check if this patch
is in your gcc/fortran/ChangeLog:
2004-01-27 Steven Bosscher <stevenb at suse dot de>
* trans-decl.c (gfc_build_label_decl): Set DECL_ARTIFICAL and
TREE_USED for all labels.
(gfc_trans_entry_master_switch): Use it instead of building a
label by hand.
* trans-io.c (add_case): Likewise.
* trans-stmt.c (gfc_trans_integer_select): Likewise.
If that patch is not in your tree, use a more recent version. Otherwise
file a bug in bugzilla and assign it to me please.
Gr.
Steven