This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR target/47364: [x32] internal compiler error: in emit_move_insn, at expr.c:3355
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Jul 2011 08:30:39 +0200
- Subject: Re: PATCH: PR target/47364: [x32] internal compiler error: in emit_move_insn, at expr.c:3355
- References: <20110728034822.GA13060@intel.com>
On Thu, Jul 28, 2011 at 5:48 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> We should only expand strlen to Pmode. ?Otherwise, we got
>
> [hjl@gnu-6 ilp32-38]$ cat x.i
> char one[50] = "ijk";
> int
> main (void)
> {
> ?return __builtin_strlen (one) != 3;
> }
> [hjl@gnu-6 ilp32-38]$ /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -S -o x.s -mx32 -O2 x.i
> x.i: In function ‘main’:
> x.i:5:27: internal compiler error: in emit_move_insn, at expr.c:3333
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://gcc.gnu.org/bugs.html> for instructions.
>
> OK for trunk?
>
> 2011-07-27 ?H.J. Lu ?<hongjiu.lu@intel.com>
>
> ? ? ? ?PR target/47364
> ? ? ? ?* config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
OK.
Thanks,
Uros.