From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28590 invoked by alias); 8 Jun 2011 11:09:43 -0000 Received: (qmail 28582 invoked by uid 22791); 8 Jun 2011 11:09:43 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_MV,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Jun 2011 11:09:28 +0000 Received: by ywg8 with SMTP id 8so138880ywg.20 for ; Wed, 08 Jun 2011 04:09:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.192.228 with SMTP id i64mr2593568yhn.111.1307531368041; Wed, 08 Jun 2011 04:09:28 -0700 (PDT) Received: by 10.147.32.17 with HTTP; Wed, 8 Jun 2011 04:09:28 -0700 (PDT) Date: Wed, 08 Jun 2011 12:25:00 -0000 Message-ID: Subject: compilation error From: Rony Paul To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00189.txt.bz2 Dear All, could you please tell me what type of error is the following code returning? make[5]: Entering directory `/home/kosarker/Work/build-gcc/gcc' /home/kosarker/Work/build-gcc/./gcc/xgcc -B/home/kosarker/Work/build-gcc/./gcc/ -B/usr/local/spu/bin/ -B/usr/local/spu/lib/ -isystem /usr/local/spu/include -isystem /usr/local/spu/sys-include -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I/home/kosarker/Work/build-gcc/spu/mea64/libgcc -I../../gcc-4.5.0/gcc -I../../gcc-4.5.0/gcc//home/kosarker/Work/build-gcc/spu/mea64/libgcc -I../../gcc-4.5.0/gcc/../include -I../../gcc-4.5.0/gcc/../libcpp/include -I../../gcc-4.5.0/gcc/../libdecnumber -I../../gcc-4.5.0/gcc/../libdecnumber/dpd -I../libdecnumber -g -O2 -mea64 -g0 -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -Dinhibit_libc \ -c ../../gcc-4.5.0/gcc/crtstuff.c -DCRT_BEGIN \ -o /home/kosarker/Work/build-gcc/spu/mea64/libgcc/crtbegin.o ../../gcc-4.5.0/gcc/crtstuff.c:249:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[5]: *** [/home/kosarker/Work/build-gcc/spu/mea64/libgcc/crtbegin.o] Error 1 make[5]: Leaving directory `/home/kosarker/Work/build-gcc/gcc' make[4]: *** [gcc-extra-parts] Error 2 make[4]: Leaving directory `/home/kosarker/Work/build-gcc/spu/mea64/libgcc' make[3]: *** [multi-do] Error 1 make[3]: Leaving directory `/home/kosarker/Work/build-gcc/spu/libgcc' make[2]: *** [all-multi] Error 2 make[2]: Leaving directory `/home/kosarker/Work/build-gcc/spu/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/home/kosarker/Work/build-gcc' make: *** [all] Error 2 ---------------------------------------------------------------------------------------------------------------------------------------------- what I did that in the file c-typeck.c I have added some code, like following : previously it was : else if (codel == POINTER_TYPE && coder == INTEGER_TYPE) { /* An explicit constant 0 can convert to a pointer, or one that results from arithmetic, even including a cast to integer type. */ WARN_FOR_ASSIGNMENT (location, 0, G_("passing argument %d of %qE makes " "pointer from integer without a cast"), G_("assignment makes pointer from integer " "without a cast//// konica diff address space"), G_("initialization makes pointer from " "integer without a cast"), G_("return makes pointer from integer " "without a cast")); } I have replaced it with : else if (codel == POINTER_TYPE && coder == INTEGER_TYPE) { /* An explicit constant 0 can convert to a pointer, or one that results from arithmetic, even including a cast to integer type. */ tree ttl = TREE_TYPE (type); tree ttr = TREE_TYPE (rhstype); tree mvl = ttl; tree mvr = ttr; bool is_opaque_pointer; int target_cmp = 0; /* Cache comp_target_types () result. */ addr_space_t asl; addr_space_t asr; asl = TYPE_ADDR_SPACE (ttl); asr = TYPE_ADDR_SPACE (ttr); if (asr != asl ) { WARN_FOR_ASSIGNMENT (location, 0, G_("passing argument %d of %qE makes " "pointer from integer without a cast"), G_("assignment makes pointer from integer " "without a cast"), G_("initialization makes pointer from " "integer without a cast"), G_("return makes pointer from integer " "without a cast")); }