Help needed to modify GCC!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux