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

--- Comment #19 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Uroš Bizjak from comment #18)
> Created attachment 60331 [details]
> Prototype patch
> 
> Prototype patch that disables constraints, unwanted with
> flag_force_indirect_call.

HJ, can you please review GOT parts? E.g.:

 (define_insn "*call_got_x32"
   [(call (mem:QI (zero_extend:DI
                   (match_operand:SI 0 "GOT_memory_operand" "Bg")))
         (match_operand 1))]
-  "TARGET_X32"
+  "TARGET_X32 && !flag_force_indirect_call"

These are mostly TARGET_X32 and in the above case, I have simply disabled the
insn. This may or may not be correct. There are several other insns, now
disabled for flag_force_indirect_call, but I'm not entirely sure these changes
are correct.

Reply via email to