> Date: Fri, 16 Feb 2024 11:16:22 +0100 > From: Jakub Jelinek <ja...@redhat.com>
> Given the recent discussions on IRC started with Andrew P. mentioning that > an asm goto outputs test should have { target lra } and the lra effective > target in GCC 11/12 only returning 0 for PA and in 13/14 for PA/AVR, while > we clearly have 14 other targets which don't support LRA and a couple of > further ones which have an -mlra/-mno-lra switch (whatever default they > have), seems to me the effective target is quite broken. Definitely, good riddance to that list. I suggested a little over a year ago to generalize check_effective_target_lra to get rid of that flawed target list but was effectively shut down with a review request that'd *keep* the faulty non-lra target list. :-( "https://gcc.gnu.org/pipermail/gcc-patches/2023-February/611531.html" TL;DR: I based LRA-ness on EBB being scanned in LRA but not for reload (same empty foo), i.e. matching the string "EBB 2 3". I don't know which method more stable, but that didn't require -O2 nor -fdump-rtl-reload-details. Having said that, I'm glad there's now a generic, working (non-target-list-dependent) effective_target lra. brgds, H-P