public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Stack checking option for ARM
@ 2008-10-01  9:02 Bruce Sutherland
  2008-10-01 15:26 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Bruce Sutherland @ 2008-10-01  9:02 UTC (permalink / raw)
  To: gcc-help

Hello.

In the documentation, the command line optionoverview
(http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Option-Summary.html#Option-Summ
ary) shows a command line option for ARM: -mapcs-stack-check.

However, in the detailed documentation for the ARM options
(http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/ARM-Options.html#ARM-Options),
I cannot find a description for this option.

Does this option actually exist, and how does it work? I found an old post
to the bugs mailing list where a Richard Earnshaw stated that the option was
recognised by gcc, but does not work. It was suggested that the option be
removed from the documentation until it was implemented. I have compiled my
code with it enabled using gcc 4.2.1, and it adds a few bytes to the size of
my binary.

Thanks,

Bruce Sutherland

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Stack checking option for ARM
  2008-10-01  9:02 Stack checking option for ARM Bruce Sutherland
@ 2008-10-01 15:26 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2008-10-01 15:26 UTC (permalink / raw)
  To: Bruce Sutherland; +Cc: gcc-help

"Bruce Sutherland" <bruce.sutherland@rfinnovations.com.au> writes:

> In the documentation, the command line optionoverview
> (http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Option-Summary.html#Option-Summ
> ary) shows a command line option for ARM: -mapcs-stack-check.
>
> However, in the detailed documentation for the ARM options
> (http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/ARM-Options.html#ARM-Options),
> I cannot find a description for this option.
>
> Does this option actually exist, and how does it work? I found an old post
> to the bugs mailing list where a Richard Earnshaw stated that the option was
> recognised by gcc, but does not work. It was suggested that the option be
> removed from the documentation until it was implemented. I have compiled my
> code with it enabled using gcc 4.2.1, and it adds a few bytes to the size of
> my binary.

The option does exist, and it is undocumented.  It doesn't seem to do
anything particularly useful.  It certainly doesn't do any sort of
stack checking.  I haven't looked into the history of why it was
introduced.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-01 15:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-01  9:02 Stack checking option for ARM Bruce Sutherland
2008-10-01 15:26 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).