This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
optimization/9308: gcc 3.2(.1) compilation fail with message: internal error: Segmentation violation
- From: esl at pisem dot net
- To: gcc-gnats at gcc dot gnu dot org
- Cc: esl at tlink dot kharkov dot ua
- Date: 14 Jan 2003 12:30:40 -0000
- Subject: optimization/9308: gcc 3.2(.1) compilation fail with message: internal error: Segmentation violation
- Reply-to: esl at pisem dot net
>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: