public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/64276] New: would be better to use __cpp_exceptions rather than __EXCEPTIONS to determine whether exceptions are available
@ 2014-12-11 19:41 richard-gccbugzilla at metafoo dot co.uk
  2014-12-12  3:50 ` [Bug libstdc++/64276] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: richard-gccbugzilla at metafoo dot co.uk @ 2014-12-11 19:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64276

            Bug ID: 64276
           Summary: would be better to use __cpp_exceptions rather than
                    __EXCEPTIONS to determine whether exceptions are
                    available
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: richard-gccbugzilla at metafoo dot co.uk
                CC: redi at gcc dot gnu.org

libstdc++ uses __EXCEPTIONS to determine wither exceptions are available, and
uses __GXX_RTTI to determine if RTTI is available. __EXCEPTIONS is ambiguous;
it can mean either "generate cleanups on exception unwind paths" or "allow C++
exception handling syntax", and some compilers allow these flags to be set
independently. It would be more portable (and would set a better example) to
use __cpp_exceptions and __cpp_rtti rather than these macros, now that GCC
supports them.


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

end of thread, other threads:[~2014-12-12 16:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-11 19:41 [Bug libstdc++/64276] New: would be better to use __cpp_exceptions rather than __EXCEPTIONS to determine whether exceptions are available richard-gccbugzilla at metafoo dot co.uk
2014-12-12  3:50 ` [Bug libstdc++/64276] " pinskia at gcc dot gnu.org
2014-12-12  7:52 ` jakub at gcc dot gnu.org
2014-12-12 11:26 ` redi at gcc dot gnu.org
2014-12-12 15:59 ` redi at gcc dot gnu.org
2014-12-12 16:00 ` redi at gcc dot gnu.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).