public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: se7en_hills <elumalai_selvan@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: Help needed to modify GCC!
Date: Tue, 01 Apr 2008 08:20:00 -0000	[thread overview]
Message-ID: <16410995.post@talk.nabble.com> (raw)
Message-ID: <20080401082000.c0K2A2eLbznBNDeNrr1-vGAgBDPChO8d0OmwEkvEVuY@z> (raw)


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.

             reply	other threads:[~2008-04-01  5:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-01  3:50 se7en_hills [this message]
2008-04-01  8:20 ` se7en_hills

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16410995.post@talk.nabble.com \
    --to=elumalai_selvan@yahoo.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).