[Bug c++/59315] [4.9 regression] g++.dg/warn/Wunused-3.C FAILs with -fno-use-cxa-atexit

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 20 14:07:00 GMT 2013


Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
             Target|*-*-solaris2.*              |
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-12-20
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
               Host|*-*-solaris2.*              |
            Summary|[4.9 regression]            |[4.9 regression]
                   |g++.dg/warn/Wunused-3.C     |g++.dg/warn/Wunused-3.C
                   |FAILs on Solaris            |FAILs with
                   |                            |-fno-use-cxa-atexit
     Ever confirmed|0                           |1
              Build|*-*-solaris2.*              |

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This regressed everywhere with -O -Wunused -fno-use-cxa-atexit starting with
r204265, on Solaris that is just the default, while on various other targets it
is not.  mark_used is no longer called on the TREE_STATIC global VAR_DECL,
eventhough it has a non-trivial destructor.  Jason, can you please have a look?

More information about the Gcc-bugs mailing list