Help needed: banishing RTL from the front ends

Paolo Bonzini bonzini@gnu.org
Tue May 25 15:19:00 GMT 2010


On Tue, May 25, 2010 at 16:59, Andreas Schwab <schwab@redhat.com> wrote:
> Steven Bosscher <stevenb.gcc@gmail.com> writes:
>
>> So I guess this plan of mine is not going to work...
>> Other ideas?
>
> Add $(CFLAGS-$(@F)) to the .c.o rule

Actually $@ is fine, since you want cp/tree.o to have different flags
from tree.o.

> and define CFLAGS-foo for each foo
> in $(ALL_HOST_FRONTEND_OBJS).  Though the latter is a bit tricky if you
> want to do it automatically.

That would be something like

$(foreach file,$(ALL_HOST_FRONTEND_OBJS),$(eval CFLAGS-$(file) += ...))

(All on one line, no spaces after commas!)

Paolo



More information about the Gcc mailing list