public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
@ 2006-03-22  5:06 ` pinskia at gcc dot gnu dot org
  2006-06-04 18:17 ` mmitchel at gcc dot gnu dot org
                   ` (40 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-22  5:06 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792]  New: [4.2 Regression] C++ is broken on *-*-darwin*
@ 2006-03-22  5:06 pinskia at gcc dot gnu dot org
  2006-03-22  5:06 ` [Bug target/26792] " pinskia at gcc dot gnu dot org
                   ` (41 more replies)
  0 siblings, 42 replies; 43+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-22  5:06 UTC (permalink / raw)
  To: gcc-bugs

_Unwind_GetIPInfo changed the ABI for libgcc and it is hard to add it to the
new libgcc for 10.4.

See
http://gcc.gnu.org/ml/gcc-patches/2006-02/msg02041.html

I am filing this so we keep track of this and this is a blocker for 4.2 for
being released.


-- 
           Summary: [4.2 Regression] C++ is broken on *-*-darwin*
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: link-failure
          Severity: blocker
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: *-*-darwin*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
  2006-03-22  5:06 ` [Bug target/26792] " pinskia at gcc dot gnu dot org
@ 2006-06-04 18:17 ` mmitchel at gcc dot gnu dot org
  2006-06-05  9:45 ` jakub at gcc dot gnu dot org
                   ` (39 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-06-04 18:17 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
  2006-03-22  5:06 ` [Bug target/26792] " pinskia at gcc dot gnu dot org
  2006-06-04 18:17 ` mmitchel at gcc dot gnu dot org
@ 2006-06-05  9:45 ` jakub at gcc dot gnu dot org
  2006-06-06  1:20 ` geoffk at gcc dot gnu dot org
                   ` (38 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-06-05  9:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2006-06-05 09:35 -------
If darwin doesn't care about the PR other/26208 problem, it can certainly
just #define _Unwind_GetIPInfo(ctx, ip) (*(ip) = 0, _Unwind_GetIP (ctx)
in its own unwind.h or something similar.
But if it cares, it needs to allow libgcc_s symbol additions.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-06-05  9:45 ` jakub at gcc dot gnu dot org
@ 2006-06-06  1:20 ` geoffk at gcc dot gnu dot org
  2006-06-13  2:15 ` howarth at nitro dot med dot uc dot edu
                   ` (37 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2006-06-06  1:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from geoffk at gcc dot gnu dot org  2006-06-06 01:17 -------
Clearly, we cannot add any symbols to the 10.4 libgcc_s.  10.4 has already
shipped, and we do not have a time travel device.

By default, gcc compiles for the earliest OS version it knows about.  For C++,
that means 10.3.9/10.4.  This is best for users.

Thus, by default, you cannot use any new symbols in libgcc_s.

The problem occurs because libstdc++ wants to use the new symbol by default.  I
can think of a bunch of solutions to the problem:
1. Have libstdc++ use autoconf to detect the presence of the new symbol and use
it only if it exists.
2. Decide that the purpose of libstdc++ is to be installed only on new (not yet
existing) system versions, and pass appropriate flags to the compiler to make
this happen.  Of course, this might make testing hard for people still using
10.4.
3. Decide that libstdc++ and libgcc go together, and hack libstdc++'s link to
use libgcc_s.1.dylib directly.  Apple doesn't do this internally, we're
shipping 4.0.0 libstdc++ and 4.0.1 libgcc.   Apple's libstdc++ is binary
incompatible with FSF libstdc++ (in small but important ways) and so the effect
of this might be that no-one can use FSF libstdc++ or FSF libgcc on Darwin at
all.
4. Declare that we don't care.  The problem right now affects only people with
the MACOSX_DEPLOYMENT_TARGET environment variable set which they probably
shoudn't have set while building FSF GCC.

I think we should go for (1), although (4) has certain advantages...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-06-06  1:20 ` geoffk at gcc dot gnu dot org
@ 2006-06-13  2:15 ` howarth at nitro dot med dot uc dot edu
  2006-06-13 16:55 ` howarth at nitro dot med dot uc dot edu
                   ` (36 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-06-13  2:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from howarth at nitro dot med dot uc dot edu  2006-06-13 02:10 -------
    It appears that on Macintel, simply unsetting MACOSX_DEPLOYMENT_TARGET is
insufficient to
eliminate the undefined symbols for _Unwind_GETIPInfo when building gcj. This
doesn't  happen
on ppc Darwin. Currently the fink developers have decided to leave
MACOSX_DEPLOYMENT_TARGET set to 10.4 and use the
http://gcc.gnu.org/ml/gcc-patches/2006-02/msg02041.html patch. Would it be
better for them to unset MACOSX_DEPLOYMENT_TARGET
and use Jakub's recommendation of adding...

#define _Unwind_GetIPInfo(ctx, ip) (*(ip) = 0, _Unwind_GetIP (ctx)

to a darwin specific unwind.h? I am trying to get them from forking the
libstdc++ in fink.
                   Jack


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-06-13  2:15 ` howarth at nitro dot med dot uc dot edu
@ 2006-06-13 16:55 ` howarth at nitro dot med dot uc dot edu
  2006-06-21 21:27 ` sje at cup dot hp dot com
                   ` (35 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-06-13 16:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from howarth at nitro dot med dot uc dot edu  2006-06-13 16:44 -------
Geoff,
    Does any other os, that uses gcc, version libgcc_s in the manner that Apple
does?
Simply not setting MACOSX_DEPLOYMENT_TARGET during the build of gcc 4.2 doesn't
make the problem go away. The resulting libstdc++.6.dylib and libgcc_s.1.dylib
libraries
have _Unwind_GetIPInfo symbols whereas libgcc_s.10.4.dylib and
libgcc_s.10.5.dylib
don't. This precludes safely using MACOSX_DEPLOYMENT_TARGET  at all with gcc
4.2.
I know you said you won't assign this to yourself until it happens to you.
However it
isn't happening to you because you don't want it to. Apple really needs to deal
with the
breakage caused by their decision to version libgcc_s.
                        Jack


(In reply to comment #2)
> Clearly, we cannot add any symbols to the 10.4 libgcc_s.  10.4 has already
> shipped, and we do not have a time travel device.
> 
> By default, gcc compiles for the earliest OS version it knows about.  For C++,
> that means 10.3.9/10.4.  This is best for users.
> 
> Thus, by default, you cannot use any new symbols in libgcc_s.
> 
> The problem occurs because libstdc++ wants to use the new symbol by default.  I
> can think of a bunch of solutions to the problem:
> 1. Have libstdc++ use autoconf to detect the presence of the new symbol and use
> it only if it exists.
> 2. Decide that the purpose of libstdc++ is to be installed only on new (not yet
> existing) system versions, and pass appropriate flags to the compiler to make
> this happen.  Of course, this might make testing hard for people still using
> 10.4.
> 3. Decide that libstdc++ and libgcc go together, and hack libstdc++'s link to
> use libgcc_s.1.dylib directly.  Apple doesn't do this internally, we're
> shipping 4.0.0 libstdc++ and 4.0.1 libgcc.   Apple's libstdc++ is binary
> incompatible with FSF libstdc++ (in small but important ways) and so the effect
> of this might be that no-one can use FSF libstdc++ or FSF libgcc on Darwin at
> all.
> 4. Declare that we don't care.  The problem right now affects only people with
> the MACOSX_DEPLOYMENT_TARGET environment variable set which they probably
> shoudn't have set while building FSF GCC.
> 
> I think we should go for (1), although (4) has certain advantages...
> 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-06-13 16:55 ` howarth at nitro dot med dot uc dot edu
@ 2006-06-21 21:27 ` sje at cup dot hp dot com
  2006-06-30  5:36 ` pinskia at gcc dot gnu dot org
                   ` (34 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: sje at cup dot hp dot com @ 2006-06-21 21:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from sje at cup dot hp dot com  2006-06-21 21:18 -------
Created an attachment (id=11724)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11724&action=view)
libstdc++ macro to test for _Unwind_GetIPInfo

I have attached a macro that could be put in libstdc++-v3/acinclude.m4 and
called from configure to check for the existence of _Unwind_GetIPInfo.  I
haven't submitted it as a patch because I don't know how to handle Java. 
libjava also uses _Unwind_GetIPInfo but the java configure script doesn't seem
to allow for compiling and linking test programs in order to check for
routines.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-06-21 21:27 ` sje at cup dot hp dot com
@ 2006-06-30  5:36 ` pinskia at gcc dot gnu dot org
  2006-07-17 16:26 ` sje at cup dot hp dot com
                   ` (33 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-30  5:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-06-30 03:10 -------
I think this can be confirmed now.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-06-30 03:10:46
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-06-30  5:36 ` pinskia at gcc dot gnu dot org
@ 2006-07-17 16:26 ` sje at cup dot hp dot com
  2006-07-19 23:25 ` howarth at nitro dot med dot uc dot edu
                   ` (32 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: sje at cup dot hp dot com @ 2006-07-17 16:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from sje at cup dot hp dot com  2006-07-17 16:25 -------
Proposed patch at http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00734.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-07-17 16:26 ` sje at cup dot hp dot com
@ 2006-07-19 23:25 ` howarth at nitro dot med dot uc dot edu
  2006-07-19 23:50 ` mrs at apple dot com
                   ` (31 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-07-19 23:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from howarth at nitro dot med dot uc dot edu  2006-07-19 23:25 -------
I can confirm on MacOS X 10.4 that Steve's proposed patch works fine
with the current gcc trunk. I can successfully bootstrap while 
MACOSX_DEPLOYMENT_TARGET is set to 10.4 and no regressions 
occur when the 'make check' is done afterwards without
MACOSX_DEPLOYMENT_TARGET being set. Only libgcc_s.1.dylib
ends up with __Unwind_GetIPInfo being defined. The libgcc_s.10.4.dylib
and libgcc_s.10.5.dylib files do not. However I guess we should ask
Geoff if Apple would like __Unwind_GetIPInfo defined in libgcc_s.10.5.dylib
since that library is unreleased.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2006-07-19 23:25 ` howarth at nitro dot med dot uc dot edu
@ 2006-07-19 23:50 ` mrs at apple dot com
  2006-07-21 21:07 ` sje at gcc dot gnu dot org
                   ` (30 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: mrs at apple dot com @ 2006-07-19 23:50 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 271 bytes --]



------- Comment #9 from mrs at apple dot com  2006-07-19 23:50 -------
We can't define __Unwind_GetIPInfo in libgcc_s.10.5.dylib at this time.  If we
create a situation in which we can, rest assured, we will.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2006-07-19 23:50 ` mrs at apple dot com
@ 2006-07-21 21:07 ` sje at gcc dot gnu dot org
  2006-07-21 21:12 ` sje at gcc dot gnu dot org
                   ` (29 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: sje at gcc dot gnu dot org @ 2006-07-21 21:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from sje at gcc dot gnu dot org  2006-07-21 21:07 -------
Subject: Bug 26792

Author: sje
Date: Fri Jul 21 21:07:15 2006
New Revision: 115653

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115653
Log:
        PR target/26792
        * unwind_ipinfo.m4: New.

Added:
    trunk/config/unwind_ipinfo.m4
Modified:
    trunk/config/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2006-07-21 21:07 ` sje at gcc dot gnu dot org
@ 2006-07-21 21:12 ` sje at gcc dot gnu dot org
  2006-07-22 21:00 ` echristo at apple dot com
                   ` (28 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: sje at gcc dot gnu dot org @ 2006-07-21 21:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from sje at gcc dot gnu dot org  2006-07-21 21:11 -------
Subject: Bug 26792

Author: sje
Date: Fri Jul 21 21:11:46 2006
New Revision: 115654

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115654
Log:
        PR target/26792
        * configure.ac: Use GCC_CHECK_UNWIND_GETIPINFO to
        define HAVE_GETIPINFO.
        * aclocal.m4: Add include of ../config/unwind_ipinfo.m4.
        * config.h.in: Regenerate.
        * configure: Regenerate.
        * Makefile.in: Regenerate.
        * libmath/Makefile.in: Regenerate.
        * include/Makefile.in: Regenerate.
        * src/Makefile.in: Regenerate.
        * libsupc++/Makefile.in: Regenerate.
        * testsuite/Makefile.in: Regenerate.
        * po/Makefile.in: Regenerate.
        * libsupc++/eh_personality.cc: Check HAVE_GETIPINFO.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/Makefile.in
    trunk/libstdc++-v3/aclocal.m4
    trunk/libstdc++-v3/config.h.in
    trunk/libstdc++-v3/configure
    trunk/libstdc++-v3/configure.ac
    trunk/libstdc++-v3/include/Makefile.in
    trunk/libstdc++-v3/libmath/Makefile.in
    trunk/libstdc++-v3/libsupc++/Makefile.in
    trunk/libstdc++-v3/libsupc++/eh_personality.cc
    trunk/libstdc++-v3/po/Makefile.in
    trunk/libstdc++-v3/src/Makefile.in
    trunk/libstdc++-v3/testsuite/Makefile.in


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2006-07-21 21:12 ` sje at gcc dot gnu dot org
@ 2006-07-22 21:00 ` echristo at apple dot com
  2006-07-22 22:10 ` pinskia at gcc dot gnu dot org
                   ` (27 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: echristo at apple dot com @ 2006-07-22 21:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from echristo at apple dot com  2006-07-22 21:00 -------
This looks fixed to me.


-- 

echristo at apple dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2006-07-22 21:00 ` echristo at apple dot com
@ 2006-07-22 22:10 ` pinskia at gcc dot gnu dot org
  2006-07-24  4:54 ` echristo at apple dot com
                   ` (26 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-22 22:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pinskia at gcc dot gnu dot org  2006-07-22 22:09 -------
Actually libstdc++ is only part of the problem, the other part is libjava. 
Eric if you are going to close something, you should test it.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] C++ is broken on *-*-darwin*
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2006-07-22 22:10 ` pinskia at gcc dot gnu dot org
@ 2006-07-24  4:54 ` echristo at apple dot com
  2006-09-11 22:31 ` [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions sje at cup dot hp dot com
                   ` (25 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: echristo at apple dot com @ 2006-07-24  4:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from echristo at apple dot com  2006-07-24 04:54 -------
The bug says c++, feel like opening another one or fixing the title on the bug
you opened?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (15 preceding siblings ...)
  2006-07-24  4:54 ` echristo at apple dot com
@ 2006-09-11 22:31 ` sje at cup dot hp dot com
  2006-09-16 20:39 ` howarth at nitro dot med dot uc dot edu
                   ` (24 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: sje at cup dot hp dot com @ 2006-09-11 22:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from sje at cup dot hp dot com  2006-09-11 22:31 -------
Bryce, have you looked at ifdef'ing the use of _Unwind_GetIPInfo in the Java
library?  Would you be willing to do so?  I have created an autoconf test
(GCC_CHECK_UNWIND_GETIPINFO) in trunk/config/unwind_ipinfo.m4 and the C++
runtime library is checking for HAVE_GETIPINFO before using it.  I believe the
un-ifdef'ed use of this function in the java library is the reason this PR is
still open.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (16 preceding siblings ...)
  2006-09-11 22:31 ` [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions sje at cup dot hp dot com
@ 2006-09-16 20:39 ` howarth at nitro dot med dot uc dot edu
  2006-09-18  3:50 ` bryce at mckinlay dot net dot nz
                   ` (23 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-16 20:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from howarth at nitro dot med dot uc dot edu  2006-09-16 20:39 -------
Is this what we are waiting for? I came up with that by just placing 
wrappers around the changes submitted on...

http://gcc.gnu.org/viewcvs/trunk/libjava/stacktrace.cc?r1=115069&r2=115235&pathrev=115235

and

http://gcc.gnu.org/bugzilla/attachment.cgi?id=10915

so that the previous code was in place when HAVE_GETIPINFO is false.

Index: exception.cc
===================================================================
--- exception.cc        (revision 116995)
+++ exception.cc        (working copy)
@@ -231,7 +231,11 @@ PERSONALITY_FUNCTION (int version,

   // Parse the LSDA header.
   p = parse_lsda_header (context, language_specific_data, &info);
+  #ifdef HAVE_GETIPINFO
   ip = _Unwind_GetIPInfo (context, &ip_before_insn);
+  #else
+  ip = _Unwind_GetIP (context) - 1;
+  #endif
   if (! ip_before_insn)
     --ip;
   landing_pad = 0;
Index: stacktrace.cc
===================================================================
--- stacktrace.cc       (revision 116995)
+++ stacktrace.cc       (working copy)
@@ -131,6 +131,7 @@ _Jv_StackTrace::UnwindTraceFn (struct _U
   else
 #endif
     {
+#ifdef HAVE_GETIPINFO
       _Unwind_Ptr ip;
       int ip_before_insn = 0;
       ip = _Unwind_GetIPInfo (context, &ip_before_insn);
@@ -139,9 +140,13 @@ _Jv_StackTrace::UnwindTraceFn (struct _U
       // to ensure we get the correct line number for the call itself.
       if (! ip_before_insn)
        --ip;
-
+#endif
       state->frames[pos].type = frame_native;
+#ifdef HAVE_GETIPINFO
       state->frames[pos].ip = (void *) ip;
+#else
+      state->frames[pos].ip = (void *) _Unwind_GetIP (context);
+#endif
       state->frames[pos].start_ip = func_addr;
     }

@@ -217,6 +222,12 @@ _Jv_StackTrace::getLineNumberForFrame(_J
       else
         offset = (_Unwind_Ptr) ip - (_Unwind_Ptr) info.base;

+#ifndef HAVE_GETIPINFO
+      // The unwinder gives us the return address. In order to get the right
+      // line number for the stack trace, roll it back a little.
+      offset -= 1;
+#endif
+
       finder->lookup (binaryName, (jlong) offset);
       *sourceFileName = finder->getSourceFile();
       *lineNum = finder->getLineNum();


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (17 preceding siblings ...)
  2006-09-16 20:39 ` howarth at nitro dot med dot uc dot edu
@ 2006-09-18  3:50 ` bryce at mckinlay dot net dot nz
  2006-09-18  4:34 ` howarth at nitro dot med dot uc dot edu
                   ` (22 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bryce at mckinlay dot net dot nz @ 2006-09-18  3:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from bryce at mckinlay dot net dot nz  2006-09-18 03:49 -------
(In reply to comment #15)

Yes, I think the #ifdef is a reasonable solution. Stack traces will be
inaccurate when GetIPInfo is unavailable, but I don't see any easy way around
that. 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (18 preceding siblings ...)
  2006-09-18  3:50 ` bryce at mckinlay dot net dot nz
@ 2006-09-18  4:34 ` howarth at nitro dot med dot uc dot edu
  2006-09-18  4:40 ` howarth at nitro dot med dot uc dot edu
                   ` (21 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-18  4:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from howarth at nitro dot med dot uc dot edu  2006-09-18 04:34 -------
Created an attachment (id=12288)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12288&action=view)
Patch to revert to _Unwind_GetIP when HAVE_GETIPINFO undefined


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (19 preceding siblings ...)
  2006-09-18  4:34 ` howarth at nitro dot med dot uc dot edu
@ 2006-09-18  4:40 ` howarth at nitro dot med dot uc dot edu
  2006-09-18  4:58 ` howarth at nitro dot med dot uc dot edu
                   ` (20 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-18  4:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #19 from howarth at nitro dot med dot uc dot edu  2006-09-18 04:40 -------
Tested the patch on Darwin 8 with no regressions. Verified that the
_Unwind_GetIPInfo
symbols are absent for libgcj with HAVE_GETIPINFO undefined. While the patch is
over
10 lines, I would argue that I only wrote the lines with the preprocessor
statements and
the rest is simply a return of previously existing code from others.

LAST_UPDATED: Tue Sep  5 01:41:47 UTC 2006 (revision 116689)

Native configuration is powerpc-apple-darwin8

                === libjava tests ===


Running target unix

                === libjava Summary ===

# of expected passes            6989
# of expected failures          12
# of untested testcases         8

Compiler version: gcc libjava 
Platform: powerpc-apple-darwin8
configure flags: --prefix=/sw --prefix=/sw/lib/gcc4 --with-gmp=/sw
--with-included-gettext --host=powerpc-apple-darwin8
--with-as=/sw/lib/odcctools/bin/as --with-ld=/sw/lib/odcctools/bin/ld
--with-nm=/sw/lib/odcctools/bin/nm '--mandir=\${prefix}/share/man'
'--infodir=\${prefix}/share/info' --with-libiconv-prefix=/sw
--disable-bootstrap --enable-languages=c,c++,fortran,java,objc


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (20 preceding siblings ...)
  2006-09-18  4:40 ` howarth at nitro dot med dot uc dot edu
@ 2006-09-18  4:58 ` howarth at nitro dot med dot uc dot edu
  2006-09-19 16:11 ` howarth at nitro dot med dot uc dot edu
                   ` (19 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-18  4:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #20 from howarth at nitro dot med dot uc dot edu  2006-09-18 04:58 -------
Created an attachment (id=12289)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12289&action=view)
clean up whitespace in Changelog for patch to revert to _Unwind_GetIP when
HAVE_GETIPINFO undefined


-- 

howarth at nitro dot med dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #12288|0                           |1
        is obsolete|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (21 preceding siblings ...)
  2006-09-18  4:58 ` howarth at nitro dot med dot uc dot edu
@ 2006-09-19 16:11 ` howarth at nitro dot med dot uc dot edu
  2006-09-21  4:16 ` howarth at nitro dot med dot uc dot edu
                   ` (18 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-19 16:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #21 from howarth at nitro dot med dot uc dot edu  2006-09-19 16:11 -------
Steve has checked in the changes to config/unwind_ipinfo.m4, so I believe all
we need
now is...

Index: libjava/configure.ac
===================================================================
--- libjava/configure.ac        (revision 117056)
+++ libjava/configure.ac        (working copy)
@@ -1480,6 +1480,9 @@
 # See if we support thread-local storage.
 GCC_CHECK_TLS

+# For _Unwind_GetIPInfo.
+GCC_CHECK_UNWIND_GETIPINFO
+
 # Check if linker supports static linking on a per library basis
 LD_START_STATIC_SPEC=
 LD_FINISH_STATIC_SPEC=

I'll test that with tonight's gcc trunk build using MACOSX_DEPLOYMENT_TARGET
unset which should create both a libstdc++ and libgcj with the
_Unwind_GetIPInfo
symbols. This should complete the fix for this PR.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (22 preceding siblings ...)
  2006-09-19 16:11 ` howarth at nitro dot med dot uc dot edu
@ 2006-09-21  4:16 ` howarth at nitro dot med dot uc dot edu
  2006-09-21 13:03 ` howarth at nitro dot med dot uc dot edu
                   ` (17 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-21  4:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #22 from howarth at nitro dot med dot uc dot edu  2006-09-21 04:16 -------
        Okay, the autoconf changes for libstdc++ and libgcj actually work okay.
The test program uses the static libgcc.a to link (which lacks the
__Unwind_GetIP symbol) so that HAVE_GETIPINFO remains undefined regardless of
whether  MACOSX_DEPLOYMENT_TARGET is set or not. I believe this is the behavior
we want on Darwin since the alternative of allowing MACOSX_DEPLOYMENT_TARGET
unset to cause __Unwind_GetIP  to be used in libstdc++ and libgcj would create
libraries that couldn't be used when MACOSX_DEPLOYMENT_TARGET was set to 10.4
or 10.5. I'll post the patches to gcc-patches shortly.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (23 preceding siblings ...)
  2006-09-21  4:16 ` howarth at nitro dot med dot uc dot edu
@ 2006-09-21 13:03 ` howarth at nitro dot med dot uc dot edu
  2006-09-26 23:27 ` howarth at nitro dot med dot uc dot edu
                   ` (16 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-21 13:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #23 from howarth at nitro dot med dot uc dot edu  2006-09-21 13:03 -------
Proposed patches are posted at...

http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00906.html
http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00908.html

...which together should allow this PR to be finally closed.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (24 preceding siblings ...)
  2006-09-21 13:03 ` howarth at nitro dot med dot uc dot edu
@ 2006-09-26 23:27 ` howarth at nitro dot med dot uc dot edu
  2006-09-27 21:24 ` tromey at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-26 23:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #24 from howarth at nitro dot med dot uc dot edu  2006-09-26 23:27 -------
Created an attachment (id=12333)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12333&action=view)
revised libjava patch preventing double deincrementation


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (25 preceding siblings ...)
  2006-09-26 23:27 ` howarth at nitro dot med dot uc dot edu
@ 2006-09-27 21:24 ` tromey at gcc dot gnu dot org
  2006-09-27 21:43 ` tromey at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-09-27 21:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #25 from tromey at gcc dot gnu dot org  2006-09-27 21:24 -------
Subject: Bug 26792

Author: tromey
Date: Wed Sep 27 21:24:23 2006
New Revision: 117259

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117259
Log:
2006-09-26  Jack Howarth  <howarth@bromo.med.uc.edu>

        PR target/26792:
        * exception.cc (PERSONALITY_FUNCTION): use _Unwind_GetIP
        if HAVE_GETIPINFO not defined.
        * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Likewise.
        (_Jv_StackTrace::getLineNumberForFrame): Likewise.
        * configure.ac: use GCC_CHECK_UNWIND_GETIPINFO.
        * aclocal.m4, configure, include/config.h.in, Makefile.in:
        Rebuilt.

Modified:
    trunk/libjava/ChangeLog
    trunk/libjava/Makefile.in
    trunk/libjava/aclocal.m4
    trunk/libjava/configure
    trunk/libjava/configure.ac
    trunk/libjava/exception.cc
    trunk/libjava/gcj/Makefile.in
    trunk/libjava/include/Makefile.in
    trunk/libjava/include/config.h.in
    trunk/libjava/stacktrace.cc
    trunk/libjava/testsuite/Makefile.in


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (26 preceding siblings ...)
  2006-09-27 21:24 ` tromey at gcc dot gnu dot org
@ 2006-09-27 21:43 ` tromey at gcc dot gnu dot org
  2006-09-28  4:42 ` howarth at nitro dot med dot uc dot edu
                   ` (13 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-09-27 21:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #26 from tromey at gcc dot gnu dot org  2006-09-27 21:43 -------
Fix checked in.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (27 preceding siblings ...)
  2006-09-27 21:43 ` tromey at gcc dot gnu dot org
@ 2006-09-28  4:42 ` howarth at nitro dot med dot uc dot edu
  2006-10-11 21:06 ` tromey at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-28  4:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #27 from howarth at nitro dot med dot uc dot edu  2006-09-28 04:41 -------
One last minor nit with regards to the autoconf changes for both libstdc++-v3
and libjava. I notice that in config.log in libstdc++-v3 for example, I get...

configure:31103: checking for _Unwind_GetIPInfo
configure:31130: 
/sw/src/fink.build/gcc4-4.1.9999-20060927/darwin_objdir/./gcc/xgcc
-shared-libgcc -B/sw/src/fink.build/gcc4-4.1.99
99-20060927/darwin_objdir/./gcc -nostdinc++
-L/sw/src/fink.build/gcc4-4.1.9999-20060927/darwin_objdir/powerpc-apple-darwin8/libstdc+
+-v3/src
-L/sw/src/fink.build/gcc4-4.1.9999-20060927/darwin_objdir/powerpc-apple-darwin8/libstdc++-v3/src/.libs
-B/sw/lib/gcc4/power
pc-apple-darwin8/bin/ -B/sw/lib/gcc4/powerpc-apple-darwin8/lib/ -isystem
/sw/lib/gcc4/powerpc-apple-darwin8/include -isystem /sw/lib
/gcc4/powerpc-apple-darwin8/sys-include -o conftest -g -O2  -fno-exceptions  
conftest.cc -lm  >&5
/sw/lib/odcctools/bin/ld: warning -L: directory name
(/sw/src/fink.build/gcc4-4.1.9999-20060927/darwin_objdir/powerpc-apple-darwin8/
libstdc++-v3/src) does not exist
/sw/lib/odcctools/bin/ld: warning -L: directory name
(/sw/src/fink.build/gcc4-4.1.9999-20060927/darwin_objdir/powerpc-apple-darwin8/
libstdc++-v3/src/.libs) does not exist
/sw/lib/odcctools/bin/ld: Undefined symbols:
__Unwind_GetIPInfo

which suggests that configure is attempting to use directories before they
exist. Is that worth fixing in both libstdc++-v3 and libjava?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (28 preceding siblings ...)
  2006-09-28  4:42 ` howarth at nitro dot med dot uc dot edu
@ 2006-10-11 21:06 ` tromey at gcc dot gnu dot org
  2007-01-19 15:26 ` aph at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-10-11 21:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #28 from tromey at gcc dot gnu dot org  2006-10-11 21:06 -------
I doubt those configure warnings are very important.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (29 preceding siblings ...)
  2006-10-11 21:06 ` tromey at gcc dot gnu dot org
@ 2007-01-19 15:26 ` aph at gcc dot gnu dot org
  2007-03-31  9:57 ` schwab at suse dot de
                   ` (10 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: aph at gcc dot gnu dot org @ 2007-01-19 15:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #29 from aph at gcc dot gnu dot org  2007-01-19 15:25 -------
Subject: Bug 26792

Author: aph
Date: Fri Jan 19 15:25:34 2007
New Revision: 120968

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120968
Log:
2006-07-21  Steve Ellcey  <sje@cup.hp.com>

        PR target/26792
        * unwind_ipinfo.m4: New.


Added:
    branches/redhat/gcc-4_1-branch-java-merge-20070117/config/unwind_ipinfo.m4
      - copied unchanged from r115653, trunk/config/unwind_ipinfo.m4
Modified:
    branches/redhat/gcc-4_1-branch-java-merge-20070117/config/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (30 preceding siblings ...)
  2007-01-19 15:26 ` aph at gcc dot gnu dot org
@ 2007-03-31  9:57 ` schwab at suse dot de
  2007-04-02 15:36 ` sje at cup dot hp dot com
                   ` (9 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: schwab at suse dot de @ 2007-03-31  9:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #30 from schwab at suse dot de  2007-03-31 10:57 -------
The configure check is finding the definition of _Unwind_GetIPInfo in libgcc_s
(from unwind-compat.o) when configuring with --with-system-libunwind.


-- 

schwab at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |27880
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
Bug 26792 depends on bug 27880, which changed state.

Bug 27880 Summary: [4.2 regression] undefined reference to `_Unwind_GetIPInfo'
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27880

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (31 preceding siblings ...)
  2007-03-31  9:57 ` schwab at suse dot de
@ 2007-04-02 15:36 ` sje at cup dot hp dot com
  2007-04-02 19:42 ` schwab at suse dot de
                   ` (8 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: sje at cup dot hp dot com @ 2007-04-02 15:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #31 from sje at cup dot hp dot com  2007-04-02 16:36 -------
When configuring with --with-system-libunwind, GCC should not include
unwind-compat.o (or any unwind code) in the build of libgcc_s.  Then the
configure check will work correctly.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (32 preceding siblings ...)
  2007-04-02 15:36 ` sje at cup dot hp dot com
@ 2007-04-02 19:42 ` schwab at suse dot de
  2007-04-24 21:51 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: schwab at suse dot de @ 2007-04-02 19:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #32 from schwab at suse dot de  2007-04-02 20:42 -------
unwind-compat is _required_ for the system libunwind.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (33 preceding siblings ...)
  2007-04-02 19:42 ` schwab at suse dot de
@ 2007-04-24 21:51 ` mmitchel at gcc dot gnu dot org
  2007-04-24 23:14 ` geoffk at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-04-24 21:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #33 from mmitchel at gcc dot gnu dot org  2007-04-24 22:51 -------
Geoff, do you intend to backport these Darwin patches to 4.2.0?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (34 preceding siblings ...)
  2007-04-24 21:51 ` mmitchel at gcc dot gnu dot org
@ 2007-04-24 23:14 ` geoffk at gcc dot gnu dot org
  2007-04-25  0:04 ` howarth at nitro dot med dot uc dot edu
                   ` (5 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2007-04-24 23:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #34 from geoffk at gcc dot gnu dot org  2007-04-25 00:14 -------
I don't know what patches you're referring to, so no.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (35 preceding siblings ...)
  2007-04-24 23:14 ` geoffk at gcc dot gnu dot org
@ 2007-04-25  0:04 ` howarth at nitro dot med dot uc dot edu
  2007-04-25  0:19 ` howarth at nitro dot med dot uc dot edu
                   ` (4 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2007-04-25  0:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #35 from howarth at nitro dot med dot uc dot edu  2007-04-25 01:04 -------
(In reply to comment #33)
> Geoff, do you intend to backport these Darwin patches to 4.2.0?
> 

Mark,
    Are you under the impression that the libstdc++-v3 and libjava patches were
only applied to trunk? That isn't the case as those went into 4.2 branch some
time ago as r115654 and r117259. The only
outstanding issue I see is comment 31 which doesn't seem to be Darwin specific.
            Jack


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (36 preceding siblings ...)
  2007-04-25  0:04 ` howarth at nitro dot med dot uc dot edu
@ 2007-04-25  0:19 ` howarth at nitro dot med dot uc dot edu
  2007-04-25  0:42 ` mrs at apple dot com
                   ` (3 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2007-04-25  0:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #36 from howarth at nitro dot med dot uc dot edu  2007-04-25 01:19 -------
(In reply to comment #31)
> When configuring with --with-system-libunwind, GCC should not include
> unwind-compat.o (or any unwind code) in the build of libgcc_s.  Then the
> configure check will work correctly.
> 

Steve,
     Does this problem merit a P1 blocker status? For that specific issue,
can't we
downgrade this bug report to P2? Is it essential that --with-system-libunwind
work in gcc 4.2.0 or could that just be retargeted for gcc 4.2.1?
                                  Jack


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (37 preceding siblings ...)
  2007-04-25  0:19 ` howarth at nitro dot med dot uc dot edu
@ 2007-04-25  0:42 ` mrs at apple dot com
  2007-04-25  0:57 ` mrs at apple dot com
                   ` (2 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: mrs at apple dot com @ 2007-04-25  0:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #37 from mrs at apple dot com  2007-04-25 01:42 -------
libgcc_s.10.5.dylib now includes __Unwind_GetIPInfo on mainline and in 4.2...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (38 preceding siblings ...)
  2007-04-25  0:42 ` mrs at apple dot com
@ 2007-04-25  0:57 ` mrs at apple dot com
  2007-04-25  1:07 ` howarth at nitro dot med dot uc dot edu
  2007-04-25 14:46 ` schwab at suse dot de
  41 siblings, 0 replies; 43+ messages in thread
From: mrs at apple dot com @ 2007-04-25  0:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #38 from mrs at apple dot com  2007-04-25 01:56 -------
I think a non-working --with-system-libunwind corner case on darwin is a P4 at
best?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (39 preceding siblings ...)
  2007-04-25  0:57 ` mrs at apple dot com
@ 2007-04-25  1:07 ` howarth at nitro dot med dot uc dot edu
  2007-04-25 14:46 ` schwab at suse dot de
  41 siblings, 0 replies; 43+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2007-04-25  1:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #39 from howarth at nitro dot med dot uc dot edu  2007-04-25 02:06 -------
Mike,
    Why don't you close this report as RESOLVED and create another one just for
the non-working --with-system-libunwind issue as a P4. That might help prevent
folks from constantly reopening this PR as a P1.
               Jack


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

* [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions
  2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
                   ` (40 preceding siblings ...)
  2007-04-25  1:07 ` howarth at nitro dot med dot uc dot edu
@ 2007-04-25 14:46 ` schwab at suse dot de
  41 siblings, 0 replies; 43+ messages in thread
From: schwab at suse dot de @ 2007-04-25 14:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #40 from schwab at suse dot de  2007-04-25 15:46 -------
Closing for now.


-- 

schwab at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26792


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

end of thread, other threads:[~2007-04-25 14:46 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-22  5:06 [Bug target/26792] New: [4.2 Regression] C++ is broken on *-*-darwin* pinskia at gcc dot gnu dot org
2006-03-22  5:06 ` [Bug target/26792] " pinskia at gcc dot gnu dot org
2006-06-04 18:17 ` mmitchel at gcc dot gnu dot org
2006-06-05  9:45 ` jakub at gcc dot gnu dot org
2006-06-06  1:20 ` geoffk at gcc dot gnu dot org
2006-06-13  2:15 ` howarth at nitro dot med dot uc dot edu
2006-06-13 16:55 ` howarth at nitro dot med dot uc dot edu
2006-06-21 21:27 ` sje at cup dot hp dot com
2006-06-30  5:36 ` pinskia at gcc dot gnu dot org
2006-07-17 16:26 ` sje at cup dot hp dot com
2006-07-19 23:25 ` howarth at nitro dot med dot uc dot edu
2006-07-19 23:50 ` mrs at apple dot com
2006-07-21 21:07 ` sje at gcc dot gnu dot org
2006-07-21 21:12 ` sje at gcc dot gnu dot org
2006-07-22 21:00 ` echristo at apple dot com
2006-07-22 22:10 ` pinskia at gcc dot gnu dot org
2006-07-24  4:54 ` echristo at apple dot com
2006-09-11 22:31 ` [Bug target/26792] [4.2 Regression] need to use autoconf when using newly-added libgcc functions sje at cup dot hp dot com
2006-09-16 20:39 ` howarth at nitro dot med dot uc dot edu
2006-09-18  3:50 ` bryce at mckinlay dot net dot nz
2006-09-18  4:34 ` howarth at nitro dot med dot uc dot edu
2006-09-18  4:40 ` howarth at nitro dot med dot uc dot edu
2006-09-18  4:58 ` howarth at nitro dot med dot uc dot edu
2006-09-19 16:11 ` howarth at nitro dot med dot uc dot edu
2006-09-21  4:16 ` howarth at nitro dot med dot uc dot edu
2006-09-21 13:03 ` howarth at nitro dot med dot uc dot edu
2006-09-26 23:27 ` howarth at nitro dot med dot uc dot edu
2006-09-27 21:24 ` tromey at gcc dot gnu dot org
2006-09-27 21:43 ` tromey at gcc dot gnu dot org
2006-09-28  4:42 ` howarth at nitro dot med dot uc dot edu
2006-10-11 21:06 ` tromey at gcc dot gnu dot org
2007-01-19 15:26 ` aph at gcc dot gnu dot org
2007-03-31  9:57 ` schwab at suse dot de
2007-04-02 15:36 ` sje at cup dot hp dot com
2007-04-02 19:42 ` schwab at suse dot de
2007-04-24 21:51 ` mmitchel at gcc dot gnu dot org
2007-04-24 23:14 ` geoffk at gcc dot gnu dot org
2007-04-25  0:04 ` howarth at nitro dot med dot uc dot edu
2007-04-25  0:19 ` howarth at nitro dot med dot uc dot edu
2007-04-25  0:42 ` mrs at apple dot com
2007-04-25  0:57 ` mrs at apple dot com
2007-04-25  1:07 ` howarth at nitro dot med dot uc dot edu
2007-04-25 14:46 ` schwab at suse dot de

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