]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/38700 (ICE with __builtin_expect and label)
authorJakub Jelinek <jakub@redhat.com>
Sat, 3 Jan 2009 00:52:51 +0000 (01:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 3 Jan 2009 00:52:51 +0000 (01:52 +0100)
commit5f26a23027acae2712001616c4b13c76cf316cd5
tree86cded00cdc605437b4b88313a78ce8f36fa1dbd
parentfafe34f91a12944c20cd13bd403ee2111ed19ff7
re PR c/38700 (ICE with __builtin_expect and label)

PR c/38700
* builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
and FUNCTION_DECLs.

* gcc.dg/pr38700.c: New test.

From-SVN: r143028
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr38700.c [new file with mode: 0644]