Commit 882e337b by Volker Reichelt Committed by Volker Reichelt

re PR libmudflap/26442 (ICE on valid unreachable code (and no name) when compiling with -fmudflap)

	PR libmudflap/26442
	* tree-mudflap.c (mx_register_decls): Guard warning by
	!DECL_ARTIFICIAL check.

	* testsuite/libmudflap.c++/pass60-frag.cxx: New test.

From-SVN: r131249
parent 6b7d5ac9
2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
PR libmudflap/26442
* tree-mudflap.c (mx_register_decls): Guard warning by
!DECL_ARTIFICIAL check.
2008-01-01 Jakub Jelinek <jakub@redhat.com> 2008-01-01 Jakub Jelinek <jakub@redhat.com>
* config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si, * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
...@@ -1045,8 +1045,11 @@ mx_register_decls (tree decl, tree *stmt_list) ...@@ -1045,8 +1045,11 @@ mx_register_decls (tree decl, tree *stmt_list)
/* Add the __mf_register call at the current appending point. */ /* Add the __mf_register call at the current appending point. */
if (tsi_end_p (initially_stmts)) if (tsi_end_p (initially_stmts))
warning (0, "mudflap cannot track %qs in stub function", {
IDENTIFIER_POINTER (DECL_NAME (decl))); if (!DECL_ARTIFICIAL (decl))
warning (0, "mudflap cannot track %qs in stub function",
IDENTIFIER_POINTER (DECL_NAME (decl)));
}
else else
{ {
tsi_link_before (&initially_stmts, register_fncall, tsi_link_before (&initially_stmts, register_fncall,
......
2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
PR libmudflap/26442
* testsuite/libmudflap.c++/pass60-frag.cxx: New test.
2007-10-15 Maciej W. Rozycki <macro@linux-mips.org> 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
* configure: Regenerate following changes to ../config/tls.m4. * configure: Regenerate following changes to ../config/tls.m4.
......
// PR 26442
struct A
{
A();
};
int main()
{
if (0)
A();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment