Changeset f988834 for src/AST


Ignore:
Timestamp:
Jan 19, 2024, 2:44:41 AM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
ac939461
Parents:
59c8dff (diff), e8b3717 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
src/AST
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Attribute.cpp

    r59c8dff rf988834  
    3838
    3939bool Attribute::isValidOnFuncParam() const {
    40         // attributes such as aligned, cleanup, etc. produce GCC errors when they appear
    41         // on function parameters. Maintain here a whitelist of attribute names that are
    42         // allowed to appear on parameters.
     40        // Attributes produce GCC errors when they appear on function
     41        // parameters. Names on the previous allow-list implementation:
     42        // unused, noreturn, __vector_size__
    4343        std::string norm = normalizedName();
    44         return norm == "unused" || norm == "noreturn";
     44        return norm != "aligned" && norm != "packed" && norm != "used";
    4545}
    4646
  • src/AST/Decl.hpp

    r59c8dff rf988834  
    2929#include "StorageClasses.hpp"
    3030#include "Visitor.hpp"
    31 #include "Common/utility.h"
    3231
    3332// Must be included in *all* AST classes; should be #undef'd at the end of the file
  • src/AST/Pass.proto.hpp

    r59c8dff rf988834  
    1919#include "Common/Iterate.hpp"
    2020#include "Common/Stats/Heap.h"
     21#include "Common/utility.h"
    2122namespace ast {
    2223        template<typename core_t> class Pass;
Note: See TracChangeset for help on using the changeset viewer.