public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* optimization/9308: gcc 3.2(.1) compilation fail with message: internal error: Segmentation violation
@ 2003-01-14 12:36 esl
  0 siblings, 0 replies; only message in thread
From: esl @ 2003-01-14 12:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: esl


>Number:         9308
>Category:       optimization
>Synopsis:       gcc 3.2(.1) compilation fail with message: internal error: Segmentation violation
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 14 04:36:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Erokhin
>Release:        gcc version 3.2.1
>Organization:
>Environment:
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.21/specs
Configured with: /devel/gnu/gcc/3.2/gnu/gcc-3.21/configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls
Thread model: single
gcc version 3.2.1
 c:/djgpp/lib/gcc-lib/djgpp/3.21/cpp0.exe -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=1 -D__GXX_ABI_VERSION=102 -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -D__MSDOS__ -D__GO32__ -D__DJGPP__=2 -D__unix__ -Asystem=msdos -Asystem=unix -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -DMSDOS -DGO32 -DDJGPP=2 -Dunix -remap -imacros c:/djgpp/lib/gcc-lib/djgpp/3.21/djgpp.ver lut.c lut.i
GNU CPP version 3.2.1 (cpplib) (80386, BSD syntax)
ignoring nonexistent directory "c:/djgpp/djgpp/include"
#include "..." search starts here:
#include <...> search starts here:
 c:/djgpp/lib/gcc-lib/djgpp/3.21/include
 c:/djgpp/include
End of search list.
 c:/djgpp/lib/gcc-lib/djgpp/3.21/cc1.exe -fpreprocessed lut.i -quiet -dumpbase lut.c -O7 -version -o lut.s
GNU CPP version 3.2.1 (cpplib) (80386, BSD syntax)
GNU C version 3.2.1 (djgpp)
	compiled by GNU C version 3.2.1.
lut.c: In function `LUT_Update':
lut.c:20: internal error: Segmentation violation
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>Description:
compilation  gcc -c -O lut.c with any O level fails with this message:
compilation without O work.

lut.c: In function `LUT_Update':
lut.c:20: internal error: Segmentation violation
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
//#include <allegro.h>

typedef struct RGB
{
   unsigned char r, g, b;
   unsigned char filler;
} RGB;

#define PAL_SIZE     256

typedef RGB PALETTE[PAL_SIZE];

void LUT_Update(int BWFlag) {
   PALETTE pallete;
   int i=0;
   int c;

//   c=pallete[i].r*0.3+pallete[i].g*0.5+pallete[i].b*0.2;
   c=pallete[i].r*0.3;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-14 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-14 12:36 optimization/9308: gcc 3.2(.1) compilation fail with message: internal error: Segmentation violation esl

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).