Changes in / [8633f060:b03eed6]


Ignore:
Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/Common/SemanticError.h

    r8633f060 rb03eed6  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Apr 19 17:52:03 2018
    13 // Update Count     : 19
     12// Last Modified On : Tue Aug 29 22:03:36 2017
     13// Update Count     : 17
    1414//
    1515
     
    5252        {"self-assign"         , "self assignment of expression: %s"           , Severity::Warn},
    5353        {"reference-conversion", "rvalue to reference conversion of rvalue: %s", Severity::Warn},
    54         {"qualifiers-zero_t-one_t", "questionable use of type qualifier %s with %s", Severity::Warn},
    5554};
    5655
     
    5857        SelfAssignment,
    5958        RvalueToReferenceConversion,
    60         BadQualifiersZeroOne,
    6159        NUMBER_OF_WARNINGS, //This MUST be the last warning
    6260};
  • src/Common/utility.h

    r8633f060 rb03eed6  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Apr 19 16:21:44 2018
    13 // Update Count     : 37
     11// Last Modified By : Andrew Beach
     12// Last Modified On : Thr Aug 17 11:38:00 2017
     13// Update Count     : 34
    1414//
    1515
     
    436436}
    437437
    438 // -----------------------------------------------------------------------------
    439 // O(1) polymorphic integer log2, using clz, which returns the number of leading 0-bits, starting at the most
    440 // significant bit (single instruction on x86)
    441 
    442 template<typename T>
    443 inline constexpr T log2(const T & t) {
    444         if ( std::is_integral<T>::value ) {
    445                 const constexpr int r = sizeof(t) * __CHAR_BIT__ - 1;
    446                 if ( sizeof(T) == sizeof(unsigned int ) ) return r - __builtin_clz( t );
    447                 if ( sizeof(T) == sizeof(unsigned long) ) return r - __builtin_clzl( t );
    448                 if ( sizeof(T) == sizeof(unsigned long long) ) return r - __builtin_clzll( t );
    449         } // if
    450         return -1;
    451 }
    452438
    453439
  • src/Parser/DeclarationNode.cc

    r8633f060 rb03eed6  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Apr 19 15:09:29 2018
    13 // Update Count     : 1062
     12// Last Modified On : Thu Feb 22 15:37:17 2018
     13// Update Count     : 1033
    1414//
    1515
     
    4747const char * DeclarationNode::aggregateNames[] = { "struct", "union", "trait", "coroutine", "monitor", "thread", "NoAggregateNames" };
    4848const char * DeclarationNode::typeClassNames[] = { "otype", "dtype", "ftype", "NoTypeClassNames" };
    49 const char * DeclarationNode::builtinTypeNames[] = { "__builtin_va_list", "zero_t", "one_t", "NoBuiltinTypeNames" };
     49const char * DeclarationNode::builtinTypeNames[] = { "__builtin_va_list", "NoBuiltinTypeNames" };
    5050
    5151UniqueName DeclarationNode::anonymous( "__anonymous" );
     
    561561
    562562        checkQualifiers( type, q->type );
    563         if ( (builtin == Zero || builtin == One) && error.length() == 0 ) {
    564                 SemanticWarning( yylloc, Warning::BadQualifiersZeroOne, Type::QualifiersNames[log2( q->type->qualifiers.val )], builtinTypeNames[builtin] );
    565 //              appendError( error, string( "questionable qualifiers" ) );
    566         } // if
    567563        addQualifiersToType( q->type, type );
    568564
  • src/Parser/TypeData.cc

    r8633f060 rb03eed6  
    1010// Created On       : Sat May 16 15:12:51 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Apr 17 23:00:52 2018
    13 // Update Count     : 602
     12// Last Modified On : Thu Feb 22 15:49:00 2018
     13// Update Count     : 597
    1414//
    1515
     
    395395                break;
    396396          case Builtin:
    397                 os << DeclarationNode::builtinTypeNames[builtintype];
     397                os << "gcc builtin type";
    398398                break;
    399399          default:
Note: See TracChangeset for help on using the changeset viewer.