VirtualBox

Changeset 57072 in vbox for trunk


Ignore:
Timestamp:
Jul 24, 2015 2:16:44 PM (9 years ago)
Author:
vboxsync
Message:

gccplugin: gcc grokking in progress.

Location:
trunk/src/bldprogs
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/VBoxCompilerPlugInsGcc.cpp

    r57035 r57072  
    766766            return false;
    767767        }
     768
     769        tree hArg  = gimple_call_arg(pState->hStmt, iArg);
     770        tree hType = TREE_TYPE(hArg);
     771        dprintf("arg%u: hArg=%p [%s] hType=%p [%s] cls=%s\n", iArg, hArg, tree_code_name[TREE_CODE(hArg)],
     772                hType, tree_code_name[TREE_CODE(hType)], tree_code_class_strings[TREE_CODE_CLASS(TREE_CODE(hType))]);
     773        dprintf("      nm=%p\n", TYPE_NAME(hType));
     774        dprintf("      cb=%p %s value=%ld\n", TYPE_SIZE(hType), tree_code_name[TREE_CODE(TYPE_SIZE(hType))],
     775                MY_INT_TO_SHWI(TREE_INT_CST(TYPE_SIZE(hType))) );
     776        dprintf("      unit=%p %s value=%ld\n", TYPE_SIZE_UNIT(hType), tree_code_name[TREE_CODE(TYPE_SIZE_UNIT(hType))],
     777                MY_INT_TO_SHWI(TREE_INT_CST(TYPE_SIZE_UNIT(hType))) );
     778        tree hTypeNm = TYPE_NAME(hType);
     779        if (hTypeNm)
     780            dprintf("      typenm=%p %s '%s'\n", hTypeNm, tree_code_name[TREE_CODE(hTypeNm)],
     781                    IDENTIFIER_POINTER(DECL_NAME(hTypeNm)));
    768782    }
    769783    return true;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette