Where to declare functions exported by fold-const.c (*_double)
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Fri Apr 13 20:24:00 GMT 2001
These functions:
add_double
neg_double
mul_double
lshift_double
rshift_double
lrotate_double
rrotate_double
are redundantly declared in both rtl.h and tree.h (and are defined in
fold-const.c.)
The functions are used in these files (with counts):
34 ./fold-const.c:
9 ./simplify-rtx.c:
4 java/jcf-parse.c:
3 ch/typeck.c:
3 ./stmt.c:
2 ch/lex.c:
2 ch/decl.c:
2 ch/convert.c:
1 java/jcf-write.c:
1 config/rs6000/rs6000.c:
1 ch/expr.c:
1 ./tree.c:
1 ./explow.c:
My question is what's the best place to declare them: rtl.h, tree.h or
someplace else? Neither rtl.h or tree.h seems to cover all the uses
right now. So either way I'd have to add some includes. I wanted
some input which way people prefer.
Thanks,
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions
More information about the Gcc
mailing list