This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [cft] rewrite i386 dllimport/dllexport
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~