From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b5a7187422c2042a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-29 11:37:44 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub1.nntpserver.com!headwall.stanford.edu!unlnews.unl.edu!newsfeed.ksu.edu!nntp.ksu.edu!news.okstate.edu!not-for-mail From: David Starner Newsgroups: comp.lang.ada Subject: Re: reasons for segmentation faults on linux Date: 29 Nov 2001 18:42:20 GMT Organization: Oklahoma State University Message-ID: <9u5vic$a2g1@news.cis.okstate.edu> References: <9eb165bd.0111280403.3f6bc3ea@posting.google.com> <3C04CF6F.C42B1DFC@earthlink.net> <9u3okd$9ic2@news.cis.okstate.edu> <5ee5b646.0111281939.23c5280c@posting.google.com> Reply-To: starner@okstate.edu NNTP-Posting-Host: x8b4e5301.dhcp.okstate.edu User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com comp.lang.ada:17184 Date: 2001-11-29T18:42:20+00:00 List-Id: On 28 Nov 2001 19:39:01 -0800, Robert Dewar wrote: > This is misleading. Stack checking is off in gcc by default > (and gnat always follows general gcc decisions on defaults > for gcc switches, since it would get very confusing if the > defaults were language dependent. If you turn on the switch, you get > stack checking, nothing "infeasible" > about it. GCC didn't check array accesses by default when GNAT was created. (It now can do so for Fortran, but doesn't by default, and does for Java.) Why does GNAT check for array accesses? Stack checking seems more of a language thing than a general gcc decision. Why is there GNAT_STACK_LIMIT? If it were feasible to do it cleanly, then why doesn't GNAT do it that way instead of requiring an additional enivromental variable? -- David Starner - starner@okstate.edu Pointless website: http://dvdeug.dhis.org "I saw a daemon stare into my face, and an angel touch my breast; each one softly calls my name . . . the daemon scares me less." - "Disciple", Stuart Davis