VirtualBox

Ignore:
Timestamp:
Oct 11, 2017 4:11:23 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118325
Message:

Global: replace fall-through comments with RT_FALL_THRU().
bugref:8192: gcc warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/cpu/cidet-core.cpp

    r65651 r69046  
    11171117                if (pThis->fTestCfg & CIDET_TESTCFG_SEG_PRF_ES)
    11181118                    return true;
    1119                 /* fall thru */
     1119                RT_FALL_THRU();
    11201120            case X86_SREG_ES:
    11211121                pThis->uSegPrf = X86_SREG_CS;
    11221122                if (pThis->fTestCfg & CIDET_TESTCFG_SEG_PRF_CS)
    11231123                    return true;
    1124                 /* fall thru */
     1124                RT_FALL_THRU();
    11251125            case X86_SREG_CS:
    11261126                pThis->uSegPrf = X86_SREG_SS;
    11271127                if (pThis->fTestCfg & CIDET_TESTCFG_SEG_PRF_SS)
    11281128                    return true;
    1129                 /* fall thru */
     1129                RT_FALL_THRU();
    11301130            case X86_SREG_SS:
    11311131                pThis->uSegPrf = X86_SREG_DS;
    11321132                if (pThis->fTestCfg & CIDET_TESTCFG_SEG_PRF_DS)
    11331133                    return true;
    1134                 /* fall thru */
     1134                RT_FALL_THRU();
    11351135            case X86_SREG_DS:
    11361136                pThis->uSegPrf = X86_SREG_FS;
    11371137                if (pThis->fTestCfg & CIDET_TESTCFG_SEG_PRF_FS)
    11381138                    return true;
    1139                 /* fall thru */
     1139                RT_FALL_THRU();
    11401140            case X86_SREG_FS:
    11411141                pThis->uSegPrf = X86_SREG_GS;
    11421142                if (pThis->fTestCfg & CIDET_TESTCFG_SEG_PRF_GS)
    11431143                    return true;
    1144                 /* fall thru */
     1144                RT_FALL_THRU();
    11451145            case X86_SREG_GS:
    11461146                break;
     
    19191919    switch (pThis->pCurInstr->cbOpcode)
    19201920    {
    1921         case 3: off++; /* fall thru */
    1922         case 2: off++; /* fall thru */
     1921        case 3: off++; RT_FALL_THRU();
     1922        case 2: off++; RT_FALL_THRU();
    19231923        case 1: off++;
    19241924            break;
     
    20372037    switch (pThis->pCurInstr->cbOpcode)
    20382038    {
    2039         case 3: pThis->abInstr[off++] = *pbOpcode++; /* fall thru */
    2040         case 2: pThis->abInstr[off++] = *pbOpcode++; /* fall thru */
     2039        case 3: pThis->abInstr[off++] = *pbOpcode++; RT_FALL_THRU();
     2040        case 2: pThis->abInstr[off++] = *pbOpcode++; RT_FALL_THRU();
    20412041        case 1: pThis->abInstr[off++] = *pbOpcode++;
    20422042            break;
     
    20592059            {
    20602060                case 0: break;
    2061                 case 8: pThis->abInstr[off + 3] = (uDispValue >> 56) & UINT8_C(0xff); /* fall thru */
    2062                 case 7: pThis->abInstr[off + 3] = (uDispValue >> 48) & UINT8_C(0xff); /* fall thru */
    2063                 case 6: pThis->abInstr[off + 3] = (uDispValue >> 40) & UINT8_C(0xff); /* fall thru */
    2064                 case 5: pThis->abInstr[off + 3] = (uDispValue >> 32) & UINT8_C(0xff); /* fall thru */
    2065                 case 4: pThis->abInstr[off + 3] = (uDispValue >> 24) & UINT8_C(0xff); /* fall thru */
    2066                 case 3: pThis->abInstr[off + 2] = (uDispValue >> 16) & UINT8_C(0xff); /* fall thru */
    2067                 case 2: pThis->abInstr[off + 1] = (uDispValue >>  8) & UINT8_C(0xff); /* fall thru */
     2061                case 8: pThis->abInstr[off + 3] = (uDispValue >> 56) & UINT8_C(0xff); RT_FALL_THRU();
     2062                case 7: pThis->abInstr[off + 3] = (uDispValue >> 48) & UINT8_C(0xff); RT_FALL_THRU();
     2063                case 6: pThis->abInstr[off + 3] = (uDispValue >> 40) & UINT8_C(0xff); RT_FALL_THRU();
     2064                case 5: pThis->abInstr[off + 3] = (uDispValue >> 32) & UINT8_C(0xff); RT_FALL_THRU();
     2065                case 4: pThis->abInstr[off + 3] = (uDispValue >> 24) & UINT8_C(0xff); RT_FALL_THRU();
     2066                case 3: pThis->abInstr[off + 2] = (uDispValue >> 16) & UINT8_C(0xff); RT_FALL_THRU();
     2067                case 2: pThis->abInstr[off + 1] = (uDispValue >>  8) & UINT8_C(0xff); RT_FALL_THRU();
    20682068                case 1: pThis->abInstr[off] = uDispValue & UINT8_C(0xff);
    20692069                    break;
     
    20842084            switch (pThis->aOperands[iOp].cb)
    20852085            {
    2086                 case 8: pThis->abInstr[off + 3] = (uImmValue >> 56) & UINT8_C(0xff); /* fall thru */
    2087                 case 7: pThis->abInstr[off + 3] = (uImmValue >> 48) & UINT8_C(0xff); /* fall thru */
    2088                 case 6: pThis->abInstr[off + 3] = (uImmValue >> 40) & UINT8_C(0xff); /* fall thru */
    2089                 case 5: pThis->abInstr[off + 3] = (uImmValue >> 32) & UINT8_C(0xff); /* fall thru */
    2090                 case 4: pThis->abInstr[off + 3] = (uImmValue >> 24) & UINT8_C(0xff); /* fall thru */
    2091                 case 3: pThis->abInstr[off + 2] = (uImmValue >> 16) & UINT8_C(0xff); /* fall thru */
    2092                 case 2: pThis->abInstr[off + 1] = (uImmValue >>  8) & UINT8_C(0xff); /* fall thru */
     2086                case 8: pThis->abInstr[off + 3] = (uImmValue >> 56) & UINT8_C(0xff); RT_FALL_THRU();
     2087                case 7: pThis->abInstr[off + 3] = (uImmValue >> 48) & UINT8_C(0xff); RT_FALL_THRU();
     2088                case 6: pThis->abInstr[off + 3] = (uImmValue >> 40) & UINT8_C(0xff); RT_FALL_THRU();
     2089                case 5: pThis->abInstr[off + 3] = (uImmValue >> 32) & UINT8_C(0xff); RT_FALL_THRU();
     2090                case 4: pThis->abInstr[off + 3] = (uImmValue >> 24) & UINT8_C(0xff); RT_FALL_THRU();
     2091                case 3: pThis->abInstr[off + 2] = (uImmValue >> 16) & UINT8_C(0xff); RT_FALL_THRU();
     2092                case 2: pThis->abInstr[off + 1] = (uImmValue >>  8) & UINT8_C(0xff); RT_FALL_THRU();
    20932093                case 1: pThis->abInstr[off] = uImmValue & UINT8_C(0xff);
    20942094                    break;
Note: See TracChangeset for help on using the changeset viewer.

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