This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR middle-end/10472: __builtin_stpcpy RTL


2003-05-04  Roger Sayle  <roger@eyesopen.com>

PR middle-end/10472
        * builtins.c (expand_builtin_memcpy):  Call force_operand on
        expressions and use simplify_gen_binop to create the addition.

        * gcc.c-torture/compile/20030504-1.c: New test case.

The test case - now called 20030518-1.c - fails on sh-elf with an
ICE.

simplify_gen_binary is called with mode=VOIDmode, which is eventually
passed down to trunc_int_for_mode.

(gdb) frame 5
#5  0x080c4298 in expand_builtin_memcpy (arglist=0x401b762c, target=0x0, 
    mode=VOIDmode, endp=2) at ../../srcw/gcc/builtins.c:2350
2350                  result = simplify_gen_binary (MINUS, GET_MODE (result),
(gdb) call debug_rtx(result)
(nil)
(gdb) call debug_rtx(len_rtx)
(const_int 3 [0x3])
(gdb) call debug_rtx(dest_addr)
(reg:SI 166)

-- 
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]