]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/frv/frv.c
re PR target/44758 (frv.md: incompatible enum comparisons / return)
authorJoern Rennecke <amylaar@spamcop.net>
Mon, 8 Nov 2010 18:52:51 +0000 (18:52 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Mon, 8 Nov 2010 18:52:51 +0000 (18:52 +0000)
commit5c5e8419ff673baff17839b5f5db91bfe1e1244f
treed524b6da3e615bc84bb1800e77cbcb076cd61600
parentd079459e5688770099bec5528abfe5397adbd0f6
re PR target/44758 (frv.md: incompatible enum comparisons / return)

2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
    Richard Henderson <rth@redhat.com>

PR target/44758
* config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
(attribute acc_group): Cast value to enum attr_acc_group.
(*movdi_nodouble+6): Use gen_int_mode.
* config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
if RTX_CODE is defined or not.
* config/frv/frv.c (enum frv_io_type): New enum, broken out of
struct frv_io.
(frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
(frv_frame_access, frv_expand_prologue): Remove unused variables.
(frv_expand_block_clear): Likewise.
(frv_trampoline_init): Use LCT_NORMAL.
(struct frv_packet_group): New struct, broken out of type of
frv_packet.
(frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
use cast in loop counter increment.
(frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
assigning to io->type.
(bdesc_set): Use rtx_code UNKNOWN in initializer.
(bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
(bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
(bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
(frv_read_argument): Use expand_normal.

Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r166447
gcc/ChangeLog
gcc/config/frv/frv-protos.h
gcc/config/frv/frv.c
gcc/config/frv/frv.md