public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39380]  New: All programs that link Java and C++ libraries fail when  optimized
@ 2009-03-05  9:42 aph at gcc dot gnu dot org
  2009-03-05  9:44 ` [Bug c++/39380] " aph at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: aph at gcc dot gnu dot org @ 2009-03-05  9:42 UTC (permalink / raw)
  To: gcc-bugs

The attached testcase fails.

This happens because we now instantiate template functions based on
possibly_inlined_p() rather than DECL_INLINE.  In turn this causes us
to generate catch blocks for C++ exceptions, and these can't be mixed
in the same translation unit as Java exceptions.


-- 
           Summary: All programs that link Java and C++ libraries fail when
                    optimized
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aph at gcc dot gnu dot org


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


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

* [Bug c++/39380] All programs that link Java and C++ libraries fail when  optimized
  2009-03-05  9:42 [Bug c++/39380] New: All programs that link Java and C++ libraries fail when optimized aph at gcc dot gnu dot org
@ 2009-03-05  9:44 ` aph at gcc dot gnu dot org
  2009-03-26 15:17 ` aph at gcc dot gnu dot org
  2009-04-16 20:44 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: aph at gcc dot gnu dot org @ 2009-03-05  9:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from aph at gcc dot gnu dot org  2009-03-05 09:44 -------
Created an attachment (id=17399)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17399&action=view)
Test case


-- 


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


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

* [Bug c++/39380] All programs that link Java and C++ libraries fail when  optimized
  2009-03-05  9:42 [Bug c++/39380] New: All programs that link Java and C++ libraries fail when optimized aph at gcc dot gnu dot org
  2009-03-05  9:44 ` [Bug c++/39380] " aph at gcc dot gnu dot org
@ 2009-03-26 15:17 ` aph at gcc dot gnu dot org
  2009-04-16 20:44 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: aph at gcc dot gnu dot org @ 2009-03-26 15:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from aph at gcc dot gnu dot org  2009-03-26 15:17 -------
Subject: Bug 39380

Author: aph
Date: Thu Mar 26 15:17:26 2009
New Revision: 145091

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145091
Log:
2009-03-26  Andrew Haley  <aph@redhat.com>

        PR C++/39380
        * decl2.c (possibly_inlined_p): If java exceptions are in use
        don't inline a decl unless it is explicitly marked inline.
        * lex.c: (pragma_java_exceptions): New variable.
        (handle_pragma_java_exceptions): Set pragma_java_exceptions.
        * cp-tree.h (pragma_java_exceptions): Declare new variable.


Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/lex.c


-- 


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


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

* [Bug c++/39380] All programs that link Java and C++ libraries fail when  optimized
  2009-03-05  9:42 [Bug c++/39380] New: All programs that link Java and C++ libraries fail when optimized aph at gcc dot gnu dot org
  2009-03-05  9:44 ` [Bug c++/39380] " aph at gcc dot gnu dot org
  2009-03-26 15:17 ` aph at gcc dot gnu dot org
@ 2009-04-16 20:44 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-16 20:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2009-04-16 20:44 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


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


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

end of thread, other threads:[~2009-04-16 20:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-05  9:42 [Bug c++/39380] New: All programs that link Java and C++ libraries fail when optimized aph at gcc dot gnu dot org
2009-03-05  9:44 ` [Bug c++/39380] " aph at gcc dot gnu dot org
2009-03-26 15:17 ` aph at gcc dot gnu dot org
2009-04-16 20:44 ` 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).