www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/09/06/15:43:31

Message-Id: <m11Nv72-00023XC@chkw386.ch.pwr.wroc.pl>
Date: Mon, 6 Sep 99 09:30
From: strasbur AT chkw386 DOT ch DOT pwr DOT wroc DOT pl (Krzysztof Strasburger)
To: pgcc AT delorie DOT com
Subject: Bug in pgcc-2.95.1
Reply-To: pgcc AT delorie DOT com

I just downloaded and compiled pgcc-2.95.1. Compiled my program.
Everything went fine with arch=pentiumpro, but the compilation with
arch=pentium gave signal 11 on very simple code (this is something new,
because even pgcc-1.1 compiled it clean). After a short investigation
i found that the options -fsoftware-pipe and -fopt-jumps-out are
the reason (both must be used!) of the crash.
And the question: which option should be avoided?
Krzysztof

The code is f2c translated, so it may look a bit strange.

/* Table of constant values */

static int c__1 = 1;

int backtr_(w, v, c__, num, ndim)
double *w, *v, *c__;
int *num, *ndim;
{
    /* Initialized data */

    static double zero = 0.;

    /* System generated locals */
    int i__1;

    /* Local variables */
    int k;
    extern /* Subroutine */ int vfill_(), daxpy_();
    int nk;

    /* Parameter adjustments */
    --c__;
    --v;
    --w;

    /* Function Body */
    vfill_(&w[1], &zero, num);
    nk = 1;
    i__1 = *ndim;
    for (k = 1; k <= i__1; ++k) {
	daxpy_(num, &v[k], &c__[nk], &c__1, &w[1], &c__1);
	nk += *num;
    }
    return 0;
}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019