https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122516

--- Comment #16 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #13)
> (In reply to Georg-Johann Lay from comment #12)
> > 
> > .previous is supported since Binutils 2.12, which was released in 2002
> > 
> > https://sourceware.org/binutils/docs-2.12/as.info/Previous.html
> > 
> > So maybe HAVE_GNU_AS && HAVE_GNU_LD && TARGET_ASM_NAMED_SECTION is a
> > reasonable proxy?  Or rolling own test, similar to
> > gcc/configure.ac::HAVE_GAS_SUBSECTION_ORDERING.
> 
> Yes I think `HAVE_GNU_AS && HAVE_GNU_LD && TARGET_ASM_NAMED_SECTION` will
> work. Can you roll a patch for this? I can't approve it but I am willing to
> champion it.

I think it doesn't work since TARGET_ASM_NAMED_SECTION is a target hook and not
a preprocessor predicate.  So a configure test would be needed.

Reply via email to