Changeset 85761 in webkit


Ignore:
Timestamp:
May 4, 2011 11:00:44 AM (13 years ago)
Author:
ddkilzer@apple.com
Message:

Part 1 of 2: <http://webkit.org/b/56337> Enable -Werror on ANGLE

Merge ANGLE upstream commits r572, r573, r574, r575.

This unblocks enabling -Werror on ANGLE. Since all changes are
in the upstream repository, they may be safely overwritten
during the next ANGLE update.

  • src/compiler/ConstantUnion.h:

(ConstantUnion::operator==): Added a default case.

  • src/compiler/Intermediate.cpp:

(TIntermBinary::promote): Added parentheses.

  • src/compiler/ParseHelper.cpp:

(TParseContext::precisionErrorCheck): Added a default case.

  • src/compiler/PoolAlloc.cpp:

(TAllocation::checkGuardBlock): Changed '%u' to '%lu' for size_t
variable. Put for loop inside #ifdef GUARD_BLOCKS/#endif macros
to fix tautological-compare warning.
(TAllocation::checkAllocList): Added newline to end of file.

Location:
trunk/Source/ThirdParty/ANGLE
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/ThirdParty/ANGLE/ChangeLog

    r85003 r85761  
     12011-05-04  David Kilzer  <ddkilzer@apple.com>
     2
     3        Part 1 of 2: <http://webkit.org/b/56337> Enable -Werror on ANGLE
     4
     5        Merge ANGLE upstream commits r572, r573, r574, r575.
     6
     7        This unblocks enabling -Werror on ANGLE.  Since all changes are
     8        in the upstream repository, they may be safely overwritten
     9        during the next ANGLE update.
     10
     11        * src/compiler/ConstantUnion.h:
     12        (ConstantUnion::operator==): Added a default case.
     13        * src/compiler/Intermediate.cpp:
     14        (TIntermBinary::promote): Added parentheses.
     15        * src/compiler/ParseHelper.cpp:
     16        (TParseContext::precisionErrorCheck): Added a default case.
     17        * src/compiler/PoolAlloc.cpp:
     18        (TAllocation::checkGuardBlock): Changed '%u' to '%lu' for size_t
     19        variable.  Put for loop inside #ifdef GUARD_BLOCKS/#endif macros
     20        to fix tautological-compare warning.
     21        (TAllocation::checkAllocList): Added newline to end of file.
     22
    1232011-04-26  Dan Bernstein  <mitz@apple.com>
    224
  • trunk/Source/ThirdParty/ANGLE/src/compiler/ConstantUnion.h

    r64560 r85761  
    7070
    7171            break;
     72        default:
     73            return false;
    7274        }
    7375
  • trunk/Source/ThirdParty/ANGLE/src/compiler/Intermediate.cpp

    r76091 r85761  
    10061006        case EOpSubAssign:
    10071007        case EOpDivAssign:
    1008             if (left->isMatrix() && right->isVector() ||
    1009                 left->isVector() && right->isMatrix())
     1008            if ((left->isMatrix() && right->isVector()) ||
     1009                (left->isVector() && right->isMatrix()))
    10101010                return false;
    10111011            setType(TType(basicType, higherPrecision, EvqTemporary, size, left->isMatrix() || right->isMatrix()));
     
    10181018        case EOpLessThanEqual:
    10191019        case EOpGreaterThanEqual:
    1020             if (left->isMatrix() && right->isVector() ||
    1021                 left->isVector() && right->isMatrix())
     1020            if ((left->isMatrix() && right->isVector()) ||
     1021                (left->isVector() && right->isMatrix()))
    10221022                return false;
    10231023            setType(TType(EbtBool, EbpUndefined));
  • trunk/Source/ThirdParty/ANGLE/src/compiler/ParseHelper.cpp

    r76091 r85761  
    275275        }
    276276        break;
     277    default:
     278        return false;
    277279    }
    278280    return false;
  • trunk/Source/ThirdParty/ANGLE/src/compiler/PoolAlloc.cpp

    r76091 r85761  
    152152void TAllocation::checkGuardBlock(unsigned char* blockMem, unsigned char val, const char* locText) const
    153153{
     154#ifdef GUARD_BLOCKS
    154155    for (size_t x = 0; x < guardBlockSize; x++) {
    155156        if (blockMem[x] != val) {
     
    157158
    158159            // We don't print the assert message.  It's here just to be helpful.
    159             sprintf(assertMsg, "PoolAlloc: Damage %s %u byte allocation at 0x%p\n",
     160            sprintf(assertMsg, "PoolAlloc: Damage %s %lu byte allocation at 0x%p\n",
    160161                    locText, size, data());
    161162            assert(0 && "PoolAlloc: Damage in guard block");
    162163        }
    163164    }
     165#endif
    164166}
    165167
Note: See TracChangeset for help on using the changeset viewer.