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: 'stack overflow' message for Darwin; host hooks


On Wednesday, February 5, 2003, at 11:32  PM, Fergus Henderson wrote:

On 05-Feb-2003, Geoffrey Keating <gkeating@apple.com> wrote:

Is there some important reason why you don't want this signal handler to be
the default handler for all applications on Darwin, not just for GCC?
Why not patch Darwin's libc rather than GCC?
That would be a decision for other applications. Most applications, don't use unbounded amounts of stack space the way that GCC can.

(It's worth pointing out that, as the comment says, this code will not necessarily work for programs other than GCC.)

Index: config/rs6000/host-darwin.c
...
+/* On Darwin/powerpc, a stack fault can be detected as a SIGSEGV that
+   faulted on an instruction that's either
+   or
+   stwux %r1,xxx,%r1
+*/
There seems to be something missing in that comment: either *what* or stwux...?
Shouldn't the comment here match the code below?
Oops!  I thought I had deleted that comment.  I'll patch it shortly.


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