This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/51040] ICE: RTL check: access of elt 1 of 'not' with last elt 0 in gen_rtx_fmt_ee_stat, at ./genrtl.h:33 with __atomic_nand_fetch()
- From: "amacleod at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Nov 2011 16:39:36 +0000
- Subject: [Bug rtl-optimization/51040] ICE: RTL check: access of elt 1 of 'not' with last elt 0 in gen_rtx_fmt_ee_stat, at ./genrtl.h:33 with __atomic_nand_fetch()
- Auto-submitted: auto-generated
- References: <bug-51040-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51040
--- Comment #2 from Andrew Macleod <amacleod at redhat dot com> 2011-11-10 16:39:36 UTC ---
Author: amacleod
Date: Thu Nov 10 16:39:32 2011
New Revision: 181259
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181259
Log:
PR rtl-optimization/51040
* optabs.c (expand_atomic_fetch_op): Patchup code for NAND should be AND
followed by NOT.
* builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
should be AND followed by NOT.
* testsuite/gcc.dg/atomic-noinline[-aux].c: Test no-inline NAND and
patchup code.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/builtins.c
trunk/gcc/optabs.c
trunk/gcc/testsuite/gcc.dg/atomic-noinline-aux.c
trunk/gcc/testsuite/gcc.dg/atomic-noinline.c