This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/5900] [g77 & gfortran] Lapack regressions since g77 2.95.2
- From: "Thomas dot Koenig at online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Feb 2005 10:17:35 -0000
- Subject: [Bug fortran/5900] [g77 & gfortran] Lapack regressions since g77 2.95.2
- References: <20020309112600.5900.schmid@snake.iap.physik.tu-darmstadt.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From Thomas dot Koenig at online dot de 2005-02-10 10:17 -------
It appears the problem is caused by one of the
optimization options that cannot be controlled with
flags.
One suspect is this code snippet from gcc/config/ia64.c :
static bool
ia64_rtx_costs (rtx x, int code, int outer_code, int *total)
{
switch (code)
...
case DIV:
case UDIV:
case MOD:
case UMOD:
/* We make divide expensive, so that divide-by-constant will be
optimized to a multiply. */
*total = COSTS_N_INSNS (60);
return true;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5900