This is the mail archive of the gcc-bugs@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]

[Bug hsa/70402] HSA: SBR instruction can be undefined


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70402

--- Comment #1 from Martin LiÅka <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Apr  4 08:46:51 2016
New Revision: 234707

URL: https://gcc.gnu.org/viewcvs?rev=234707&root=gcc&view=rev
Log:
Fix PR hsa/70402

        PR hsa/70402
        * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
        value that is really in range handled by SBR instruction.
        * hsa-brig.c (emit_switch_insn): Do not emit unconditional
        jump.
        * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
        * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/hsa-brig.c
    trunk/gcc/hsa-dump.c
    trunk/gcc/hsa-gen.c
    trunk/gcc/hsa.h

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