[cft] rewrite i386 dllimport/dllexport

Richard Henderson rth@redhat.com
Mon Mar 26 16:14:00 GMT 2007


On Sun, Mar 25, 2007 at 10:18:03PM +1200, Danny Smith wrote:
> Unfortunately the changes appear to force all local functions to be
> called as indirect refs.

Arg!  There's a missing "return true":

 (define_predicate "constant_call_address_operand"
   (match_code "symbol_ref")
 {
   if (ix86_cmodel == CM_LARGE || ix86_cmodel == CM_LARGE_PIC)
     return false;
   if (TARGET_DLLIMPORT_DECL_ATTRIBUTES && SYMBOL_REF_DLLIMPORT_P (op))
     return false;
+  return true;
 })



r~



More information about the Gcc-patches mailing list