This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Un-guarded reference to uncaught_exception() in ostream header
AbandonedPublic

Authored by rmaprath on Sep 22 2015, 5:22 AM.

Details

Reviewers
None
Summary

The ostream header contains an un-guarded reference to uncaught_exception() which causes it to drag in the exception handling machinery even when not required (i.e. when compiling with -fno-exceptions). There are no tests for this fix as the behaviour is only visible at link time (unnecessary symbols present and increased image size).

Diff Detail

Event Timeline

rmaprath updated this revision to Diff 35366.Sep 22 2015, 5:22 AM
rmaprath retitled this revision from to [libc++] Un-guarded reference to uncaught_exception() in ostream header.
rmaprath updated this object.
rmaprath added a subscriber: cfe-commits.
rmaprath updated this revision to Diff 35367.Sep 22 2015, 5:26 AM

Updated patch with bit more context (-U20).

Gentle ping.

rmaprath abandoned this revision.Nov 3 2015, 10:21 AM