add a new gcc fe based on gcalc or sample_fe

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

 



Hello,

I tried to add a new gcc fe called uml
I am based on gcalc fe without parser and lexel (I just want to compile int x= 
2)
I understand that I need a main function to give it as a parameter to 
gimplify_fucntion_tree().

I am based on gcalc fe I used the same files ( change names gcalc --> uml, ...)

I used the same calc1.c but I omit the use of Vectors, call of calc_parser(), I 
kept unchaged the standard hooks: finish, handle_option, ... and I changed only 
calc_parse_file() by keeping only the main_fn_dec

when I compile I get error in uml1.c (deals with << s-gtype>> it stop the target 
<< ../../gcc-dev/gcc/uml/uml1.c 


echo timestamp > s-options-h
TARGET_CPU_DEFAULT="" \
    HEADERS="auto-host.h ansidecl.h" DEFINES="" \
    /bin/sh ../../gcc-dev/gcc/mkconfig.sh bconfig.h
bconfig.h is unchanged
gcc -c   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings 
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute 
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings 
-Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H 
-DGENERATOR_FILE -I. -Ibuild -I../../gcc-dev/gcc -I../../gcc-dev/gcc/build 
-I../../gcc-dev/gcc/../include -I../../gcc-dev/gcc/../libcpp/include 
-I/export/home/charfi/Bureau/builduml/./gmp 
-I/export/home/charfi/Bureau/gcc-dev/gmp 
-I/export/home/charfi/Bureau/builduml/./mpfr 
-I/export/home/charfi/Bureau/gcc-dev/mpfr 
-I/export/home/charfi/Bureau/gcc-dev/mpc/src  
-I../../gcc-dev/gcc/../libdecnumber -I../../gcc-dev/gcc/../libdecnumber/bid 
-I../libdecnumber     \
        -o build/genflags.o ../../gcc-dev/gcc/genflags.c
 », nécessaire pour « s-gtype ». Arrêt.r la cible « ../../gcc-dev/gcc/uml/uml1.c
make[3]: quittant le répertoire « /export/home/charfi/Bureau/builduml/gcc »


Any Idea ?

Asma







[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