]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/ChangeLog
re PR c/59905 (Unfriendly abort when calling a fucntion via a function pointer cast)
authorRichard Biener <rguenther@suse.de>
Thu, 30 Jan 2014 14:17:02 +0000 (14:17 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 30 Jan 2014 14:17:02 +0000 (14:17 +0000)
commitfa337f3ae5fb8c4c3631345e65ec8c75cb40ab69
treee34fbb86afbceba8a29f011b72b2cdeb158c3fcf
parentf30a0ba57a9a407601afd871d6bf49038b258c94
re PR c/59905 (Unfriendly abort when calling a fucntion via a function pointer cast)

2014-01-30  Richard Biener  <rguenther@suse.de>

PR c/59905
* c-typeck.c (build_function_call_vec): Do not replace calls
to a function via an incompatible type with a runtime abort.

* gcc.dg/cast-function-1.c: Adjust to survive DCE.
* gcc.dg/call-diag-2.c: Remove expected warnings about calling
abort.
* gcc.dg/invalid-call-1.c: Likewise.

From-SVN: r207300
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/call-diag-2.c
gcc/testsuite/gcc.dg/cast-function-1.c
gcc/testsuite/gcc.dg/invalid-call-1.c