This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Extending xm_defines syntax to get rid of more xm-files
- To: zackw at Stanford dot EDU
- Subject: Extending xm_defines syntax to get rid of more xm-files
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 18 Mar 2001 22:31:09 -0500 (EST)
- Cc: gcc at gcc dot gnu dot org
Zack,
Some of the remaining xm-files only contain macro defines set to some
value. E.g. i370/xm-mvs.h has #define FATAL_EXIT_CODE 12, and nothing
else. A few other files are similar.
The xm_defines syntax currently accepts a whitespace separated list of
macros to define without values. What if we extended the syntax to
accept MACRO=value elements?
E.g. xm_defines='USG FATAL_EXIT_CODE=12'
and then we can nuke i370/xm-mvs.h, etc al.
I don't know if '=' works passed through Makefile.in into mkconfig.sh,
but if we choose the separator charater right and we're lucky, I think
its just a small tweek to mkconfig.sh to handle this.
Thoughts?
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions