public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12485] New: MIPS -mxgot causes "bad" exception handling code.
@ 2003-10-01 21:48 ddaney at avtrex dot com
  2003-10-01 21:53 ` [Bug c++/12485] " ddaney at avtrex dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ddaney at avtrex dot com @ 2003-10-01 21:48 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: MIPS -mxgot causes "bad" exception handling code.
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ddaney at avtrex dot com
                CC: gcc-bugs at gcc dot gnu dot org,rsandifo at redhat dot
                    com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: mipsisa32el-linux

$ mipsel-linux-gcc --version                                     
mipsel-linux-gcc (GCC) 3.4 20030930 (experimental)


When compiling libgcj for the mipsisa32el-linux target I have to use -mxgot to
avoid GOT overflow problems.

However the use of -mxgot results in a reference to "__cxa_call_unexpected" to
be generated which in turn requires linking against libsupc++ and libstdc++.

The use of libgcj should not cause dependencies on these extra libraries.

I reduced the problem to the test case I will attach.


When I compile like this:
[daney@dl proton]$ mipsel-linux-gcc -fnon-call-exceptions -mxgot -c natFileXX.cc 
[daney@dl proton]$ mipsel-linux-nm natFileXX.o
         U __cxa_call_unexpected
00000000 V DW.ref.__gxx_personality_v0
         U _gp_disp
         U __gxx_personality_v0
00000000 W stat
         U _Unwind_Resume
         U __xstat
00000000 T _ZN4File5_statEi
00000090 T _ZN4File7canReadEv
00000000 V _ZTI4File
00000000 V _ZTS4File
00000000 V _ZTV4File
         U _ZTVN10__cxxabiv117__class_type_infoE

I get a reference to "__cxa_call_unexpected" (BAD).

If I compile like this:
[daney@dl proton]$ mipsel-linux-gcc -fnon-call-exceptions -c natFileXX.cc 
[daney@dl proton]$ mipsel-linux-nm natFileXX.o
00000000 V DW.ref.__gxx_personality_v0
         U _gp_disp
         U __gxx_personality_v0
00000000 W stat
         U __xstat
00000000 T _ZN4File5_statEi
00000088 T _ZN4File7canReadEv
00000000 V _ZTI4File
00000000 V _ZTS4File
00000000 V _ZTV4File
         U _ZTVN10__cxxabiv117__class_type_infoE

I get no references to "__cxa_call_unexpected" (GOOD).


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

* [Bug c++/12485] MIPS -mxgot causes "bad" exception handling code.
  2003-10-01 21:48 [Bug c++/12485] New: MIPS -mxgot causes "bad" exception handling code ddaney at avtrex dot com
@ 2003-10-01 21:53 ` ddaney at avtrex dot com
  2003-10-02 11:11 ` rsandifo at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ddaney at avtrex dot com @ 2003-10-01 21:53 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From ddaney at avtrex dot com  2003-10-01 21:53 -------
Created an attachment (id=4880)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4880&action=view)
Test Case


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

* [Bug c++/12485] MIPS -mxgot causes "bad" exception handling code.
  2003-10-01 21:48 [Bug c++/12485] New: MIPS -mxgot causes "bad" exception handling code ddaney at avtrex dot com
  2003-10-01 21:53 ` [Bug c++/12485] " ddaney at avtrex dot com
@ 2003-10-02 11:11 ` rsandifo at gcc dot gnu dot org
  2003-10-03  6:55 ` [Bug target/12485] " cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2003-10-02 11:11 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


rsandifo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rsandifo at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED


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

* [Bug target/12485] MIPS -mxgot causes "bad" exception handling code.
  2003-10-01 21:48 [Bug c++/12485] New: MIPS -mxgot causes "bad" exception handling code ddaney at avtrex dot com
  2003-10-01 21:53 ` [Bug c++/12485] " ddaney at avtrex dot com
  2003-10-02 11:11 ` rsandifo at gcc dot gnu dot org
@ 2003-10-03  6:55 ` cvs-commit at gcc dot gnu dot org
  2003-10-03  7:00 ` rsandifo at gcc dot gnu dot org
  2003-10-17 18:19 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-03  6:55 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-10-03 06:55 -------
Subject: Bug 12485

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rsandifo@gcc.gnu.org	2003-10-03 06:55:02

Modified files:
	gcc            : ChangeLog 
	gcc/config/mips: mips.c 

Log message:
	PR target/12485
	* config/mips/mips.c (mips_load_got): GOT accesses can't trap.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1265&r2=2.1266
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/mips/mips.c.diff?cvsroot=gcc&r1=1.319&r2=1.320


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

* [Bug target/12485] MIPS -mxgot causes "bad" exception handling code.
  2003-10-01 21:48 [Bug c++/12485] New: MIPS -mxgot causes "bad" exception handling code ddaney at avtrex dot com
                   ` (2 preceding siblings ...)
  2003-10-03  6:55 ` [Bug target/12485] " cvs-commit at gcc dot gnu dot org
@ 2003-10-03  7:00 ` rsandifo at gcc dot gnu dot org
  2003-10-17 18:19 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2003-10-03  7:00 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


rsandifo at gcc dot gnu dot org changed:

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


------- Additional Comments From rsandifo at gcc dot gnu dot org  2003-10-03 07:00 -------
Patch applied to head.


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

* [Bug target/12485] MIPS -mxgot causes "bad" exception handling code.
  2003-10-01 21:48 [Bug c++/12485] New: MIPS -mxgot causes "bad" exception handling code ddaney at avtrex dot com
                   ` (3 preceding siblings ...)
  2003-10-03  7:00 ` rsandifo at gcc dot gnu dot org
@ 2003-10-17 18:19 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 18:19 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4


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

end of thread, other threads:[~2003-10-17 18:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-01 21:48 [Bug c++/12485] New: MIPS -mxgot causes "bad" exception handling code ddaney at avtrex dot com
2003-10-01 21:53 ` [Bug c++/12485] " ddaney at avtrex dot com
2003-10-02 11:11 ` rsandifo at gcc dot gnu dot org
2003-10-03  6:55 ` [Bug target/12485] " cvs-commit at gcc dot gnu dot org
2003-10-03  7:00 ` rsandifo at gcc dot gnu dot org
2003-10-17 18:19 ` pinskia at gcc dot gnu dot org

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