gimple.c (gimple_call_builtin_p): New function.
authorJan Hubicka <jh@suse.cz>
Mon, 31 May 2010 16:13:24 +0000 (18:13 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 31 May 2010 16:13:24 +0000 (16:13 +0000)
* gimple.c (gimple_call_builtin_p): New function.
* gimple.h (gimple_call_builtin_p): Declare.
* tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
to exit.
(execute_warn_function_return): BUILT_IN_RETURN is return.
(split_critical_edges): Return edges are not critical.
(is_ctrl_altering_stmt): Builtin_in_return is altering.
(gimple_verify_flow_info): Handle built_in_return.
(execute_warn_function_return): Handle built_in_return.
* ipa-pure-const.c (check_call): Ignore builtin_return.

* gcc.dg/builtin-apply4.c: Compile with -Wmissing-return.

From-SVN: r160078

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtin-apply4.c

index 809ccb8640ead868cacc36585ee78b1feeb254ff..2a07c2e6bdd79da855232cf28e9e8dbbd6f1f5c3 100644 (file)
@@ -1,3 +1,16 @@
+2010-05-31  Jan Hubicka  <jh@suse.cz>
+
+       * gimple.c (gimple_call_builtin_p): New function.
+       * gimple.h (gimple_call_builtin_p): Declare.
+       * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
+       to exit.
+       (execute_warn_function_return): BUILT_IN_RETURN is return.
+       (split_critical_edges): Return edges are not critical.
+       (is_ctrl_altering_stmt): Builtin_in_return is altering.
+       (gimple_verify_flow_info): Handle built_in_return.
+       (execute_warn_function_return): Handle built_in_return.
+       * ipa-pure-const.c (check_call): Ignore builtin_return.
+
 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/44337
index abeee7e7f9bf75bee558013d1080640c3eed9e7f..48e9cc7c88a604c4111b515ccac1557e9f092d6c 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-31  Jan Hubicka  <jh@suse.cz>
+
+       * gcc.dg/builtin-apply4.c: Compile with -Wmissing-return.
+
 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/44337
index 859b508f333c061826e1abe40af826b93a82db9e..7a14356e28cf27cf93c0851bcf1e7c86fdef6a76 100644 (file)
@@ -1,5 +1,5 @@
 /* PR tree-optimization/20076 */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -Wmissing-noreturn" } */
 /* { dg-options "-O2 -mno-mmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
 /* { dg-do run } */