public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* bugs in double dimension arrays optimization
@ 2000-08-07 3:06 Vincent Diepeveen
0 siblings, 0 replies; only message in thread
From: Vincent Diepeveen @ 2000-08-07 3:06 UTC (permalink / raw)
To: gcc-bugs, gcc
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1969 bytes --]
Hello i figured out where my program crashes if i
use the latest snapshot:
#define white 0
#define black 1
typedef {
..
int stuklijst[2][16];
..
} Game;
Game *partij;
int PieceList[2][32];
int pieceid[64];
// *partij has its allocated memory in shared memory.
..
for( i = white ; i <= black ; i++ ) {
..code..
for( j = 0 ; j < 16 ; j++ ) {
PieceList[i][j] = partij->stuklijst[i][j]; <== this line it crashes
pieceid[PieceList[i][j]] = id2index[j];
}
..
}
If i shuffle the code inside the 'i' loop
then code also crashes.
As soon as i put a 'printf' inside the 'i', then
it doesn't crash there.
Note that i is getting used over
and over again in all kind of loops.
Compilerflags: -g -O2
>From patha@softlab.ericsson.se Mon Aug 07 04:15:00 2000
From: Patrik Hagglund <patha@softlab.ericsson.se>
To: gcc-bugs@gcc.gnu.org
Subject: va_list declared twice on SunOS 5.7
Date: Mon, 07 Aug 2000 04:15:00 -0000
Message-id: <20000807111534.80039583E@hunny.softlab.se>
X-SW-Source: 2000-08/msg00143.html
Content-length: 387
The following code declares va_list twice on SunOS 5.7:
#define _XOPEN_SOURCE 500
#include <stdarg.h>
#include <stdio.h>
/usr/include/stdio.h:118: warning: redefinition of `va_list'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.96/include/stdarg.h:90: warning: `va_list' previously declared here
I get the same result for gcc-2.95.2 and egcs-20000626.
--
Patrik Hägglund
>From diep@xs4all.nl Mon Aug 07 05:31:00 2000
From: Vincent Diepeveen <diep@xs4all.nl>
To: gcc-bugs@gcc.gnu.org, gcc@gcc.gnu.org
Subject: correction bugreport loop bugs
Date: Mon, 07 Aug 2000 05:31:00 -0000
Message-id: <3.0.32.20000807143304.009d7100@pop.xs4all.nl>
X-SW-Source: 2000-08/msg00144.html
Content-length: 192
my bugreport was based upon snapshot is from 31/7/2000
One correction: Compilerflags used were NOT ONLY -g -O2
but the full compileroptions are:
-g -O2 -mpentiumpro -march=pentiumpro
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-08-07 3:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-07 3:06 bugs in double dimension arrays optimization Vincent Diepeveen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).