This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: SH: use register names instead of numbers
- To: zackw at stanford dot edu (Zack Weinberg)
- Subject: Re: SH: use register names instead of numbers
- From: Joern Rennecke <amylaar at redhat dot com>
- Date: Mon, 20 Nov 2000 22:23:42 +0000 (GMT)
- Cc: aoliva at redhat dot com (Alexandre Oliva), amylaar at redhat dot com (Joern Rennecke), gcc-patches at gcc dot gnu dot org
> For this specific problem, I'd like to see a construct like this:
>
> (define_constants [
> (foo 12)
> (bar 23)
> (baz 34)
> ...
> ])
That'd be alright with me from an rtl interface standpoint, and it should
be easy to modify my rtl.c patch to get there...
however, Alexandre's patch highlighted the desirability to be able to share
constants with C files. So it would be nice to be able to include a
header file and pick out #defines from there.
How about:
(read_c_include_file "foo.h")
It could than use the #defines it finds and ignore lines that start with
other stuff, so you can use whatever comment style you like.