From: Charles Sandmann Subject: Re: [bug] ebp optimization problem To: rollins AT grue DOT caltech DOT edu (hr) Date: Sun, 30 Apr 1995 15:33:10 -0500 (CDT) Cc: mlist-djgpp AT nntp-server DOT caltech DOT edu > Using the -fomit-frame-pointer caused ebp to be used for indexing > an array in the data segment, however, no ds: override was produced: > This causes a stack fault under DPMI but doesn't crash otherwise. > The C code to produce this follows. This is a know limitation with V1.x and DPMI. You cannot use -fomit-frame-pointer with DPMI unless you create some custom code to replace the SS selector with the DS selector. GCC assumes a flat 32 bit address space - and that all selectors point to the same memory.