This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/44974] [4.6 Regression] Function with attribute noreturn omits a call to another function with noreturn
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2010 18:49:59 -0000
- Subject: [Bug middle-end/44974] [4.6 Regression] Function with attribute noreturn omits a call to another function with noreturn
- References: <bug-44974-13747@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from jakub at gcc dot gnu dot org 2010-08-20 18:49 -------
Subject: Bug 44974
Author: jakub
Date: Fri Aug 20 18:49:46 2010
New Revision: 163415
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163415
Log:
PR middle-end/44974
* builtins.c (expand_builtin): Don't optimize away
calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
* gcc.dg/pr44974.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr44974.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/builtins.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44974