This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR target/52555: attribute optimize is overriding command line options



Actually, thinking more about SWITCHABLE_TARGETS, I don't think this works
at all on those targets.  this_target_optab is some random optab from
whatever has been left there by previous function, it can be either the

Eeech... this significantly complicates things.


After some further interaction off-list... attached is a patch using cfun for SWITCHABLE_TARGETs, caching the default optimization node, and using GC for the pointers.

Jakub, I got rid of the suggested ifdef's because I'd prefer the compiler to compile/stress the non-common SWITCHABLE_TARGET case. All targets define SWITCHABLE_TARGET to 0/1, so there should never be an undefined symbol. If you'd prefer the ifdef, I can grudgingly change it back :).

[Richard, unfortunately there are some mips specific changes.]

How does this look y'all?

Attachment: curr
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]