public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33506]  New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes
@ 2007-09-19 23:17 jakub at gcc dot gnu dot org
  2007-09-20  0:08 ` [Bug c++/33506] " jakub at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-19 23:17 UTC (permalink / raw)
  To: gcc-bugs

extern int foo (char *) __attribute__ ((warn_unused_result));
extern int bar (char *) throw () __attribute__ ((warn_unused_result));
extern int bar (char *) throw ();

fails to compile with 4.2/4.3 (instead of warn_unused_result
any other attribute that has type_required set can be used, like nonnull,
regparm, ...).  The problem is that attribs will modify the type
using build_type_attribute_variant, which, being a middle-end rather than FE
function, doesn't know about TYPE_RAISES_EXCEPTIONS.


-- 
           Summary: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with
                    attributes
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


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

* [Bug c++/33506] [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes
  2007-09-19 23:17 [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes jakub at gcc dot gnu dot org
@ 2007-09-20  0:08 ` jakub at gcc dot gnu dot org
  2007-09-24 15:16 ` jakub at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-20  0:08 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2007-
                   |                            |09/msg01584.html
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-09-20 00:08:24
               date|                            |


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


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

* [Bug c++/33506] [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes
  2007-09-19 23:17 [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes jakub at gcc dot gnu dot org
  2007-09-20  0:08 ` [Bug c++/33506] " jakub at gcc dot gnu dot org
@ 2007-09-24 15:16 ` jakub at gcc dot gnu dot org
  2007-09-26 19:08 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-24 15:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2007-09-24 15:16 -------
Subject: Bug 33506

Author: jakub
Date: Mon Sep 24 15:16:23 2007
New Revision: 128718

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128718
Log:
        PR c++/33506
        * langhooks.h (struct lang_hooks_for_types): Add type_hash_eq
        field.
        * langhooks-def.h (LANG_HOOKS_TYPE_HASH_EQ): Define.
        (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_TYPE_HASH_EQ.
        * tree.c (type_hash_eq): For FUNCTION_TYPE use
        lang_hooks.type.type_hash_eq in addition to generic tests.

        * cp-tree.h (cxx_type_hash_eq): New prototype.
        * cp-objcp-common.h (LANG_HOOKS_TYPE_HASH_EQ): Redefine.
        * tree.c (cxx_type_hash_eq): New function.

        * g++.dg/ext/attrib29.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ext/attrib29.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-objcp-common.h
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/tree.c
    trunk/gcc/langhooks-def.h
    trunk/gcc/langhooks.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c


-- 


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


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

* [Bug c++/33506] [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes
  2007-09-19 23:17 [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes jakub at gcc dot gnu dot org
  2007-09-20  0:08 ` [Bug c++/33506] " jakub at gcc dot gnu dot org
  2007-09-24 15:16 ` jakub at gcc dot gnu dot org
@ 2007-09-26 19:08 ` pinskia at gcc dot gnu dot org
  2007-09-27  9:20 ` [Bug c++/33506] [4.2 " jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-26 19:08 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.2


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


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

* [Bug c++/33506] [4.2 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes
  2007-09-19 23:17 [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes jakub at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-09-26 19:08 ` pinskia at gcc dot gnu dot org
@ 2007-09-27  9:20 ` jakub at gcc dot gnu dot org
  2007-09-28  4:12 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-27  9:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2007-09-27 09:20 -------
Fixed on the trunk.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.2.0
      Known to work|                            |4.3.0
            Summary|[4.2/4.3 Regression]        |[4.2 Regression]
                   |TYPE_RAISES_EXCEPTIONS      |TYPE_RAISES_EXCEPTIONS
                   |dumped with attributes      |dumped with attributes


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


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

* [Bug c++/33506] [4.2 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes
  2007-09-19 23:17 [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes jakub at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-09-27  9:20 ` [Bug c++/33506] [4.2 " jakub at gcc dot gnu dot org
@ 2007-09-28  4:12 ` mmitchel at gcc dot gnu dot org
  2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-09-28  4:12 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=33506


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

* [Bug c++/33506] [4.2 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes
  2007-09-19 23:17 [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes jakub at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-09-28  4:12 ` mmitchel at gcc dot gnu dot org
@ 2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
  2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-10-09 19:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mmitchel at gcc dot gnu dot org  2007-10-09 19:20 -------
Change target milestone to 4.2.3, as 4.2.2 has been released.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.2                       |4.2.3


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


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

* [Bug c++/33506] [4.2 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes
  2007-09-19 23:17 [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes jakub at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
@ 2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
  2008-05-19 20:29 ` jsm28 at gcc dot gnu dot org
  2009-03-30 22:25 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-01 17:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2008-02-01 16:54 -------
4.2.3 is being released now, changing milestones of open bugs to 4.2.4.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.3                       |4.2.4


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


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

* [Bug c++/33506] [4.2 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes
  2007-09-19 23:17 [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes jakub at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
@ 2008-05-19 20:29 ` jsm28 at gcc dot gnu dot org
  2009-03-30 22:25 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jsm28 at gcc dot gnu dot org  2008-05-19 20:23 -------
4.2.4 is being released, changing milestones to 4.2.5.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.4                       |4.2.5


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


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

* [Bug c++/33506] [4.2 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes
  2007-09-19 23:17 [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes jakub at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2008-05-19 20:29 ` jsm28 at gcc dot gnu dot org
@ 2009-03-30 22:25 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-30 22:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2009-03-30 22:25 -------
Closing 4.2 branch, fixed in 4.3.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|4.2.0                       |4.2.0 4.2.5
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.3.0


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


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

end of thread, other threads:[~2009-03-30 22:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-19 23:17 [Bug c++/33506] New: [4.2/4.3 Regression] TYPE_RAISES_EXCEPTIONS dumped with attributes jakub at gcc dot gnu dot org
2007-09-20  0:08 ` [Bug c++/33506] " jakub at gcc dot gnu dot org
2007-09-24 15:16 ` jakub at gcc dot gnu dot org
2007-09-26 19:08 ` pinskia at gcc dot gnu dot org
2007-09-27  9:20 ` [Bug c++/33506] [4.2 " jakub at gcc dot gnu dot org
2007-09-28  4:12 ` mmitchel at gcc dot gnu dot org
2007-10-09 19:30 ` mmitchel at gcc dot gnu dot org
2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:29 ` jsm28 at gcc dot gnu dot org
2009-03-30 22:25 ` jsm28 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).