public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* egcs 970828 and X11 on linux/x86
@ 1997-08-31  2:07 H.J. Lu
  1997-08-31 13:17 ` Shared C++ libs on i386-pc-solaris2.5.1 James Macnicol
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: H.J. Lu @ 1997-08-31  2:07 UTC (permalink / raw)
  To: egcs

Hi,

On linux/x86, I bootstapped egcs 970828 with -O -g and used that egcs
to compile egcs with -O6 -fomit-frame-pointer. Then I used that
compiler to compile XFree86 3.3.1 with -O6 -fno-exceptions. I didn't
see any problems with the rebuilt XFree86 3.3.1.

BTW, I applied Jim's patch to i386.c:

Wed Aug 27 14:52:54 1997  Jim Wilson  

	* i386.c (ix86_expand_epilogue): Emit blockage instruction when pic.

Without it, shared libraries may be miscompiled with -O2/-O3 or above.

-- 
H.J. Lu (hjl@gnu.ai.mit.edu)

^ permalink raw reply	[flat|nested] 5+ messages in thread
* erase operation in STL
@ 1997-08-31 18:57 Weiwen Liu
  1997-08-31 21:31 ` egcs 970828 and X11 on linux/x86 Jeffrey A Law
  0 siblings, 1 reply; 5+ messages in thread
From: Weiwen Liu @ 1997-08-31 18:57 UTC (permalink / raw)
  To: egcs

I have a problem when class vector of STL is used with egcs-970828.

In the following program, a vector av of two elements is created.
Then the first element is erased.  Naturally I expect the destructor
for the first element is called, but instead STL calls the destructor
of the second element.  When the program exits, the destructor for the
second element (now becoming the first element) is called again.

I have no access of other implementation of STL.  Could someone tell
me if this behavior is correct?

Weiwen
=====================
#include 
#include 

class A
{
public:
    A(int n)
            :itsA(n)
    {}
    ~A()
    {cout  av;
    cout 

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

end of thread, other threads:[~1997-08-31 21:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-31  2:07 egcs 970828 and X11 on linux/x86 H.J. Lu
1997-08-31 13:17 ` Shared C++ libs on i386-pc-solaris2.5.1 James Macnicol
1997-08-31 16:37 ` Small patch for NetBSD Allen Briggs
1997-08-31 18:57 ` Strange warning (variable might be clobbered by `longjmp' or `vfork') Kamil Iskra
1997-08-31 18:57 erase operation in STL Weiwen Liu
1997-08-31 21:31 ` egcs 970828 and X11 on linux/x86 Jeffrey A Law

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).