From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21780 invoked by alias); 1 Apr 2008 03:50:28 -0000 Received: (qmail 21769 invoked by uid 22791); 1 Apr 2008 03:50:27 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 01 Apr 2008 03:49:59 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JgXVV-0007XT-Ai for gcc-help@gcc.gnu.org; Mon, 31 Mar 2008 20:49:57 -0700 Message-ID: <16410995.post@talk.nabble.com> Date: Tue, 01 Apr 2008 03:50:00 -0000 From: se7en_hills To: gcc-help@gcc.gnu.org Subject: Help needed to modify GCC! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: elumalai_selvan@yahoo.com 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: 2008-04/txt/msg00000.txt.bz2 Hello Sir, I'll tell you clearly, our project is to add new C99 features to GCC. We have to add our codes to the current GCC and We are trying to build the GCC codes. We got some idea of where to add our codes. now the problem is after we add our codes we are not getting errors but the symbol table is not getting created. we want the symbol table to print to a file or a stream. we added the following code in c-parse.c //line 2139 YMPRINTF(Title, Token, Value, Location) \ do { \ if (yydebug) \ { \ /*FILE *FP; */ \ /*FP=fopen("symtab.txt","w"); */ \ /*YYFPRINTF(FP,"%s",Title); */\ YYFPRINTF (stderr, "%s ", Title); printf("%s ",Title); \ printf("%d ",Token);\ symcopy (Title);\ yysymprint (stderr, \ Token, Value); \ YYFPRINTF (stderr, "\n"); printf("\n"); \ symcopy("\n"); \ } \ } while (0) line 2285 static void symcopy(text) char *text; { FILE *FP; FP=fopen("/root/GCC/symtab.txt","a"); YYFPRINTF(FP,"%s",text); } Can you suggest any solution ???? Thanks, karthik -- View this message in context: http://www.nabble.com/Help-needed-to-modify-GCC%21-tp16410995p16410995.html Sent from the gcc - Help mailing list archive at Nabble.com. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31600 invoked by alias); 1 Apr 2008 05:01:34 -0000 Received: (qmail 31591 invoked by uid 22791); 1 Apr 2008 05:01:34 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 01 Apr 2008 05:01:11 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JgYcP-0001CI-0A for gcc-help@gcc.gnu.org; Mon, 31 Mar 2008 22:01:09 -0700 Message-ID: <16410995.post@talk.nabble.com> Date: Tue, 01 Apr 2008 08:20:00 -0000 From: se7en_hills To: gcc-help@gcc.gnu.org Subject: Help needed to modify GCC! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: elumalai_selvan@yahoo.com 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: 2008-04/txt/msg00001.txt.bz2 Message-ID: <20080401082000.c0K2A2eLbznBNDeNrr1-vGAgBDPChO8d0OmwEkvEVuY@z> Hello Sir, I'll tell you clearly, our project is to add new C99 features to GCC. We have to add our codes to the current GCC and We are trying to build the GCC codes. We got some idea of where to add our codes. now the problem is after we add our codes we are not getting errors but the symbol table is not getting created. we want the symbol table to print to a file or a stream. we added the following code in c-parse.c //line 2139 YMPRINTF(Title, Token, Value, Location) \ do { \ if (yydebug) \ { \ /*FILE *FP; */ \ /*FP=fopen("symtab.txt","w"); */ \ /*YYFPRINTF(FP,"%s",Title); */\ YYFPRINTF (stderr, "%s ", Title); printf("%s ",Title); \ printf("%d ",Token);\ symcopy (Title);\ yysymprint (stderr, \ Token, Value); \ YYFPRINTF (stderr, "\n"); printf("\n"); \ symcopy("\n"); \ } \ } while (0) line 2285 static void symcopy(text) char *text; { FILE *FP; FP=fopen("/root/GCC/symtab.txt","a"); YYFPRINTF(FP,"%s",text); } Can you suggest any solution ???? Thanks, karthik -- View this message in context: http://www.nabble.com/Help-needed-to-modify-GCC%21-tp16410995p16410995.html Sent from the gcc - Help mailing list archive at Nabble.com.