GCC Wikia
Advertisement

このページを編集する際は,編集に関する方針に従ってください.[]

概要[]

  • gcc-4.1.0/gcc/calls.cにて定義
  • CALL_EXPRからフラグをたてる
    • フラグは関数の特性をあらわす

引数[]

実装[]

617 /* Detect flags from a CALL_EXPR.  */
618 
619 int
620 call_expr_flags (tree t)
621 {
622   int flags;
623   tree decl = get_callee_fndecl (t);
624 
625   if (decl)
626     flags = flags_from_decl_or_type (decl);

  • 関数ポインタである可能性

627   else
628     {
629       t = TREE_TYPE (TREE_OPERAND (t, 0));
630       if (t && TREE_CODE (t) == POINTER_TYPE)
631         flags = flags_from_decl_or_type (TREE_TYPE (t));
632       else
633         flags = 0;
634     }
635 
636   return flags;
637 }

{{related}]

Advertisement