fork-instrumentation.c: New testcase.

* gcc.dg/fork-instrumentation.c: New testcase.
	* builtins.c (expand_builtin): Do not exit early for gcov
	instrumented functions.

From-SVN: r202142
This commit is contained in:
Jan Hubicka 2013-09-01 13:59:27 +02:00 committed by Jan Hubicka
parent f5c7238f2e
commit 63bf9a906c
4 changed files with 24 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-08-31 Jan Hubicka <jh@suse.cz>
* bulitins.c (expand_builtin): Do not early exit for gcov
instrumented functions.
2013-08-31 Marek Polacek <polacek@redhat.com>
* ubsan.c: Include tm_p.h.

View file

@ -5851,6 +5851,13 @@ expand_builtin (tree exp, rtx target, rtx subtarget, enum machine_mode mode,
set of builtins. */
if (!optimize
&& !called_as_built_in (fndecl)
&& fcode != BUILT_IN_FORK
&& fcode != BUILT_IN_EXECL
&& fcode != BUILT_IN_EXECV
&& fcode != BUILT_IN_EXECLP
&& fcode != BUILT_IN_EXECLE
&& fcode != BUILT_IN_EXECVP
&& fcode != BUILT_IN_EXECVE
&& fcode != BUILT_IN_ALLOCA
&& fcode != BUILT_IN_ALLOCA_WITH_ALIGN
&& fcode != BUILT_IN_FREE)

View file

@ -1,3 +1,7 @@
2013-08-31 Jan Hubicka <jh@suse.cz>
* gcc.dg/fork-instrumentation.c: New testcase.
2013-08-30 Uros Bizjak <ubizjak@gmail.com>
* g++.dg/abi/mangle33.C (dg-final): Use match count in scan RE.

View file

@ -0,0 +1,8 @@
/* { dg-do compile } */
/* { dg-options "-O0 -fprofile-generate" } */
int fork(void);
t()
{
fork ();
}
/* { dg-final { scan-assembler "gcov_fork" } } */