Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* gcc-2.7.1 bug
@ 1996-03-25 19:48 David Mosberger-Tang
  1996-03-25 23:01 ` Erik Troan
  0 siblings, 1 reply; 3+ messages in thread
From: David Mosberger-Tang @ 1996-03-25 19:48 UTC (permalink / raw)


There seems to be an instruction scheduling bug in that version of
gcc.  The bug shows if -O2 is used.  For example, the X11 library
function XGetRGBColormaps() triggers this problem (the `property'
argument passed to XGetWindowProperty will be wrong because of this).
The result is that a "Bad Atom" error is reported when trying to call
this function.  I'll report this bug to the gcc maintainer.  In the
meantime, it may be safer to use -O only.

	--david

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

* Re: gcc-2.7.1 bug
  1996-03-25 19:48 gcc-2.7.1 bug David Mosberger-Tang
@ 1996-03-25 23:01 ` Erik Troan
  0 siblings, 0 replies; 3+ messages in thread
From: Erik Troan @ 1996-03-25 23:01 UTC (permalink / raw)


On Mon, 25 Mar 1996, David Mosberger-Tang wrote:

> There seems to be an instruction scheduling bug in that version of
> gcc.  The bug shows if -O2 is used.  For example, the X11 library
> function XGetRGBColormaps() triggers this problem (the `property'
> argument passed to XGetWindowProperty will be wrong because of this).
> The result is that a "Bad Atom" error is reported when trying to call
> this function.  I'll report this bug to the gcc maintainer.  In the
> meantime, it may be safer to use -O only.

Of course, -O2 won't work if you're building something that requires
inline functions :-)

Erik

-------------------------------------------------------------------------------
   Always hoped that I'd be an apostle. Knew that I would make it if I tried.
     Then when we retire we can write the gospels so they'll all talk about
         us when we die. - "The Last Supper" from Jesus Christ Superstar
|   Erik Troan   =   http://sunsite.unc.edu/ewt/   =   ewt@sunsite.unc.edu    |

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

* Re: gcc-2.7.1 bug
       [not found] <Pine.LNX.3.91.960325180053.6549C-100000@elroy.redhat.com>
@ 1996-03-25 23:46 ` Richard Henderson
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Henderson @ 1996-03-25 23:46 UTC (permalink / raw)


Erik Troan wrote:
> Of course, -O2 won't work if you're building something that requires
> inline functions :-)

Huh?  Besides being more through with optimizations, there
should be no difference between -O and -O2 wrt inlines.

r~

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

end of thread, other threads:[~1996-03-25 23:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-25 19:48 gcc-2.7.1 bug David Mosberger-Tang
1996-03-25 23:01 ` Erik Troan
     [not found] <Pine.LNX.3.91.960325180053.6549C-100000@elroy.redhat.com>
1996-03-25 23:46 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox