This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Update pass manager to handle generate_summary/transform functions
- From: "Rafael Espindola" <espindola at google dot com>
- To: "Jan Hubicka" <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, dnovillo at google dot com, zadeck at naturalbridge dot com
- Date: Mon, 7 Jul 2008 11:07:58 +0100
- Subject: Re: Update pass manager to handle generate_summary/transform functions
- References: <20080405065456.GI30149@kam.mff.cuni.cz>
This patch produces a very interesting regression. If I compile the
following code with -Wall -Werror -O2, it will print "note: 'abc' was
declared here" but not the rest of the warning. cc1plus also returns
0, despite -Werror.
--------------------------------------------------------------------------
class basic_streambuf {
public: virtual ~basic_streambuf() {
}
};
class basic_ostream {
# 492 "foo" 3
};
class basic_stringbuf : public basic_streambuf {
};
class ostringstream {
private: basic_stringbuf _M_stringbuf;
};
void f(long double __v);
inline void f4(long value) {
ostringstream s;
f (value);
}
inline void f3( const long& value) {
f4(value);
};
# 39 "foo2"
void f2() {
long abc;
f3(abc);
}
long test123;
void f1() {
f3(test123);
}
--------------------------------------------------------------------------
Cheers,
--
Rafael Avila de Espindola
Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland
Registered in Dublin, Ireland
Registration Number: 368047