public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/7926: i486 instructions in header files make c++ programs crash on i386
@ 2002-09-16  0:26 mschill4
  0 siblings, 0 replies; 4+ messages in thread
From: mschill4 @ 2002-09-16  0:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7926
>Category:       libstdc++
>Synopsis:       i486 instructions in header files make c++ programs crash on i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 16 00:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Manuel Tobias Schiller
>Release:        gcc-3.2
>Organization:
>Environment:
i388 running Linux 2.2.21 and glibc 2.2.5
>Description:
When configuring and building gcc 3.2 on a i386-linux machine
c++ programs fail because you use 486 code in inline assembler
statements in your atomicity headers (xadd, cmpxchg and others)
libjava has the same problems. It would be nice if you could
rework the header files to use non-atomic i386 instructions
if such behaviour is required. A special configure option
would do, too. If you need help how the appropriate headers
for i386 might look like, mail me, but I haven't got the
files around here at the university, so it might take some
time to send them in...
>How-To-Repeat:
You can't repeat it unless you still have an old i386 around...
>Fix:
rework i386 atomicity header files to make a distinction
between i386 and i486 and newer...
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: libstdc++/7926: i486 instructions in header files make c++ programs crash on i386
@ 2002-11-19 12:28 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2002-11-19 12:28 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-prs, mschill4

Synopsis: i486 instructions in header files make c++ programs crash on i386

State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Mon Nov 11 15:05:25 2002
State-Changed-Why:
    This is fixed on mainline.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7926


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

* Re: libstdc++/7926: i486 instructions in header files make c++ programs crash on i386
@ 2002-11-01 17:45 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2002-11-01 17:45 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-prs, mschill4, nobody

Synopsis: i486 instructions in header files make c++ programs crash on i386

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Fri Nov  1 17:45:53 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: analyzed->feedback
State-Changed-By: bkoz
State-Changed-When: Fri Nov  1 17:45:53 2002
State-Changed-Why:
    This target, i386, should have been using the generic configuration, not the i486 files. I switched it. 
    
    -benjamin

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7926


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

* Re: libstdc++/7926: i486 instructions in header files make c++ programs crash on i386
@ 2002-09-16  9:53 pme
  0 siblings, 0 replies; 4+ messages in thread
From: pme @ 2002-09-16  9:53 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mschill4, nobody

Synopsis: i486 instructions in header files make c++ programs crash on i386

State-Changed-From-To: open->analyzed
State-Changed-By: pme
State-Changed-When: Mon Sep 16 09:53:09 2002
State-Changed-Why:
    Thank you for your bug report.
    
    We already make a distinction between i386 and higher.
    If we compare those two files:
    
       % cd libstdc++-v3/config/cpu
       % diff i386/atomicity.h i486/atomicity.h
       1c1
       < // Low-level functions for atomic operations: x86, x < 4 version  -*- C++ -*-
       ---
       > // Low-level functions for atomic operations: x86, x >= 4 version  -*- C++ -*-
       58,59d57
       <
       <
       %
    
    Well, crumbs.  That's embarassing.
    
    I have not done any CVS archaeology to find out when
    this happened, but I'm sure it was a long time ago.
    (Those files are rarely changed.)  And it's gone undetected
    this long because there are only five i386 machines still
    in use, and you have one of them.  :-)
    
    Somebody more familiar with i386 will have to rewrite
    those instructions.  And remove those two useless blank
    lines.  :-)

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7926


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

end of thread, other threads:[~2002-11-11 23:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-16  0:26 libstdc++/7926: i486 instructions in header files make c++ programs crash on i386 mschill4
2002-09-16  9:53 pme
2002-11-01 17:45 bkoz
2002-11-19 12:28 bkoz

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