===================================================================
@@ -497,7 +497,8 @@ tree_profiling (void)
gcov_type_tmp_var = NULL_TREE;
/* Local pure-const may imply need to fixup the cfg. */
- execute_fixup_cfg ();
+ if (execute_fixup_cfg () & TODO_cleanup_cfg)
+ cleanup_tree_cfg ();
branch_prob ();
if (! flag_branch_probabilities
===================================================================
@@ -0,0 +1,25 @@
+// { dg-options "-O" }
+
+template<typename T> class OwnPtr {
+public:
+ ~OwnPtr();
+};
+template<class T> class GlyphMetricsMap {
+public:
+ GlyphMetricsMap() { }
+ OwnPtr<int> m_pages;
+};
+class SimpleFontData {
+public:
+ void boundsForGlyph() const;
+};
+inline __attribute__((__always_inline__))
+void SimpleFontData::boundsForGlyph() const
+{
+ new GlyphMetricsMap<int>;
+}
+void offsetToMiddleOfGlyph(const SimpleFontData* fontData)
+{
+ fontData->boundsForGlyph();
+}
+int main() {}