From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11930 invoked by alias); 14 Jan 2003 12:36:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 11906 invoked by uid 71); 14 Jan 2003 12:36:02 -0000 Resent-Date: 14 Jan 2003 12:36:02 -0000 Resent-Message-ID: <20030114123602.11905.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, esl@tlink.kharkov.ua Resent-Reply-To: gcc-gnats@gcc.gnu.org, esl@pisem.net Received: (qmail 10989 invoked by uid 61); 14 Jan 2003 12:30:40 -0000 Message-Id: <20030114123040.10988.qmail@sources.redhat.com> Date: Tue, 14 Jan 2003 12:36:00 -0000 From: esl@pisem.net Reply-To: esl@pisem.net To: gcc-gnats@gcc.gnu.org Cc: esl@tlink.kharkov.ua X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: esl@tlink.kharkov.ua Subject: optimization/9308: gcc 3.2(.1) compilation fail with message: internal error: Segmentation violation X-SW-Source: 2003-01/txt/msg00870.txt.bz2 List-Id: >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 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 for instructions. >How-To-Repeat: //#include 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: