This is the mail archive of the gcc-bugs@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]

[Bug target/77882] [Aarch64] Add 'naked' function attribute


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

--- Comment #3 from Christophe Monat <christophe.monat at st dot com> ---
Andrew,

(In reply to Andrew Pinski from comment #2)
> I really think the naked attribute as not useful at all. I think it was a
> bad idea. Why not write a .s file which does what you want?

Well, from the discussions I read (for instance in bug #25967) before posting
this, I was more or less expecting this remark. I agree that some arguments
there are not valid.

In a nutshell, I wrote quite a lot of tricky testing code (dealing manually
with functions prologues/epilogues, etc..) for the ARM target (Ramana : please
pardon the misused 'legacy' adjective) using this feature, and I would like to
have a similar installment for ARM64.

I am also generally simply bothered at the idea of putting decoration at the
beginning of an assembly file, and starting from .c enables me to have the
appropriate tags automatically emitted when I switch from target to target.
--C

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