Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
gas: make sure we clear EF_RISCV_RVC when not active
Browse files Browse the repository at this point in the history
The -mrvc flag will enable EF_RISCV_RVC, but the -mno-rvc flag does not
clear it.  Make sure the bit setting is not one way.
  • Loading branch information
vapier committed Nov 22, 2015
1 parent 534c7e0 commit 662dc53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gas/config/tc-riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ riscv_set_rvc (bfd_boolean rvc_value)
{
if (rvc_value)
elf_flags |= EF_RISCV_RVC;
else
elf_flags &= ~EF_RISCV_RVC;

riscv_opts.rvc = rvc_value;
}
Expand Down

0 comments on commit 662dc53

Please sign in to comment.