[0/2] PIC cleanup

Message ID 20220830174830.224541-1-vineetg@rivosinc.com
Headers
Series PIC cleanup |

Message

Vineet Gupta Aug. 30, 2022, 5:48 p.m. UTC
  Hi,

A couple of cleanup patches when trying to understand -mexplicit-relocs
and code model.

 - 1/2 should be strightfwd
 - 2/2 might be slightly controversial.

Tested with a bunch of rv32/rv64 configs: same results before after,
granted pic might not really be getting tested here.

               ========= Summary of gcc testsuite =========
                            | # of unexpected case / # of unique unexpected case
                            |          gcc |          g++ |     gfortran |
 rv64imafdc/  lp64d/ medlow |   12 /    10 |11016 /  2776 |    0 /     0 |
 rv32imafdc/ ilp32d/ medlow |    9 /     7 |10959 /  2764 |    0 /     0 |
   rv32imac/  ilp32/ medlow |    9 /     7 |10959 /  2764 |    0 /     0 |
   rv64imac/   lp64/ medlow |   13 /    11 |11016 /  2776 |    0 /     0 |

Thx,
-Vineet

Vineet Gupta (2):
  RISC-V: remove deprecate pic code model macro
  RISC-V: remove CM_PIC as it doesn't do much

 gcc/config/riscv/riscv-c.cc   | 7 -------
 gcc/config/riscv/riscv-opts.h | 3 +--
 gcc/config/riscv/riscv.cc     | 2 +-
 3 files changed, 2 insertions(+), 10 deletions(-)