mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
6b7d5ac969
commit
882e337b65
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
* config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
|
||||
|
|
|
@ -1045,8 +1045,11 @@ mx_register_decls (tree decl, tree *stmt_list)
|
|||
|
||||
/* Add the __mf_register call at the current appending point. */
|
||||
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
|
||||
{
|
||||
tsi_link_before (&initially_stmts, register_fncall,
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
* configure: Regenerate following changes to ../config/tls.m4.
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
// PR 26442
|
||||
|
||||
struct A
|
||||
{
|
||||
A();
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
if (0)
|
||||
A();
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue