Commit b82fd22e authored by Kevin Modzelewski's avatar Kevin Modzelewski

Enable -Wmismatched-tags

parent f337e148
...@@ -203,7 +203,7 @@ CLANG_DEPS := $(CLANGPP_EXE) $(abspath $(dir $(CLANGPP_EXE))/../../built_release ...@@ -203,7 +203,7 @@ CLANG_DEPS := $(CLANGPP_EXE) $(abspath $(dir $(CLANGPP_EXE))/../../built_release
# settings to make clang and ccache play nicely: # settings to make clang and ccache play nicely:
CLANG_CCACHE_FLAGS := -Qunused-arguments CLANG_CCACHE_FLAGS := -Qunused-arguments
CLANG_EXTRA_FLAGS := -Wno-mismatched-tags -enable-tbaa -ferror-limit=$(ERROR_LIMIT) $(CLANG_CCACHE_FLAGS) CLANG_EXTRA_FLAGS := -enable-tbaa -ferror-limit=$(ERROR_LIMIT) $(CLANG_CCACHE_FLAGS)
ifeq ($(COLOR),1) ifeq ($(COLOR),1)
CLANG_EXTRA_FLAGS += -fcolor-diagnostics CLANG_EXTRA_FLAGS += -fcolor-diagnostics
else else
......
...@@ -128,7 +128,7 @@ public: ...@@ -128,7 +128,7 @@ public:
}; };
class ICSetupInfo; class ICSetupInfo;
class CompiledFunction; struct CompiledFunction;
void registerCompiledPatchpoint(CompiledFunction* cf, uint8_t* start_addr, uint8_t* slowpath_start_addr, void registerCompiledPatchpoint(CompiledFunction* cf, uint8_t* start_addr, uint8_t* slowpath_start_addr,
uint8_t* continue_addr, uint8_t* slowpath_rtn_addr, const ICSetupInfo*, uint8_t* continue_addr, uint8_t* slowpath_rtn_addr, const ICSetupInfo*,
StackInfo stack_info, std::unordered_set<int> live_outs); StackInfo stack_info, std::unordered_set<int> live_outs);
......
...@@ -26,7 +26,7 @@ namespace pyston { ...@@ -26,7 +26,7 @@ namespace pyston {
class TypeRecorder; class TypeRecorder;
class ICInfo; class ICInfo;
class ICSlotInfo; struct ICSlotInfo;
class ICSlotRewrite; class ICSlotRewrite;
class ICInvalidator; class ICInvalidator;
......
...@@ -19,7 +19,6 @@ namespace pyston { ...@@ -19,7 +19,6 @@ namespace pyston {
class AST_Module; class AST_Module;
class BoxedModule; class BoxedModule;
class CompiledFunction;
void initCodegen(); void initCodegen();
void teardownCodegen(); void teardownCodegen();
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
namespace pyston { namespace pyston {
class CompiledFunction; struct CompiledFunction;
class CLFunction; class CLFunction;
class OSRExit; class OSRExit;
......
...@@ -34,7 +34,7 @@ namespace pyston { ...@@ -34,7 +34,7 @@ namespace pyston {
class CFGBlock; class CFGBlock;
class GCBuilder; class GCBuilder;
class PatchpointInfo; struct PatchpointInfo;
class ScopeInfo; class ScopeInfo;
class TypeAnalysis; class TypeAnalysis;
......
...@@ -27,7 +27,7 @@ class GCVisitor; ...@@ -27,7 +27,7 @@ class GCVisitor;
class Box; class Box;
class BoxedDict; class BoxedDict;
class LineInfo; struct LineInfo;
Box* interpretFunction(llvm::Function* f, int nargs, Box* closure, Box* generator, Box* arg1, Box* arg2, Box* arg3, Box* interpretFunction(llvm::Function* f, int nargs, Box* closure, Box* generator, Box* arg1, Box* arg2, Box* arg3,
Box** args); Box** args);
......
...@@ -24,7 +24,7 @@ class Function; ...@@ -24,7 +24,7 @@ class Function;
namespace pyston { namespace pyston {
class StackMap; struct StackMap;
class OSREntryDescriptor { class OSREntryDescriptor {
private: private:
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
namespace pyston { namespace pyston {
class CompiledFunction; struct CompiledFunction;
class CompilerType; class CompilerType;
struct StackMap; struct StackMap;
class TypeRecorder; class TypeRecorder;
......
...@@ -121,7 +121,7 @@ class BoxedModule; ...@@ -121,7 +121,7 @@ class BoxedModule;
class BoxedFunction; class BoxedFunction;
class ICGetattr; class ICGetattr;
class ICSlotInfo; struct ICSlotInfo;
class CFG; class CFG;
class AST; class AST;
...@@ -253,7 +253,7 @@ public: ...@@ -253,7 +253,7 @@ public:
}; };
typedef std::vector<CompiledFunction*> FunctionList; typedef std::vector<CompiledFunction*> FunctionList;
class CallRewriteArgs; struct CallRewriteArgs;
class CLFunction { class CLFunction {
public: public:
int num_args; int num_args;
...@@ -386,9 +386,9 @@ public: ...@@ -386,9 +386,9 @@ public:
class HiddenClass; class HiddenClass;
extern HiddenClass* root_hcls; extern HiddenClass* root_hcls;
class SetattrRewriteArgs; struct SetattrRewriteArgs;
class GetattrRewriteArgs; struct GetattrRewriteArgs;
class DelattrRewriteArgs; struct DelattrRewriteArgs;
struct HCAttrs { struct HCAttrs {
public: public:
......
...@@ -103,7 +103,7 @@ constexpr const size_t sizes[] = { ...@@ -103,7 +103,7 @@ constexpr const size_t sizes[] = {
}; };
#define NUM_BUCKETS (sizeof(sizes) / sizeof(sizes[0])) #define NUM_BUCKETS (sizeof(sizes) / sizeof(sizes[0]))
class LargeObj; struct LargeObj;
class Heap { class Heap {
private: private:
Block* heads[NUM_BUCKETS]; Block* heads[NUM_BUCKETS];
...@@ -127,7 +127,7 @@ private: ...@@ -127,7 +127,7 @@ private:
} }
~ThreadBlockCache(); ~ThreadBlockCache();
}; };
friend class ThreadBlockCache; friend struct ThreadBlockCache;
// TODO only use thread caches if we're in GRWL mode? // TODO only use thread caches if we're in GRWL mode?
threading::PerThreadSet<ThreadBlockCache, Heap*> thread_caches; threading::PerThreadSet<ThreadBlockCache, Heap*> thread_caches;
......
...@@ -81,13 +81,13 @@ extern "C" bool isSubclass(BoxedClass* child, BoxedClass* parent); ...@@ -81,13 +81,13 @@ extern "C" bool isSubclass(BoxedClass* child, BoxedClass* parent);
extern "C" BoxedClosure* createClosure(BoxedClosure* parent_closure); extern "C" BoxedClosure* createClosure(BoxedClosure* parent_closure);
extern "C" Box* getiter(Box* o); extern "C" Box* getiter(Box* o);
class SetattrRewriteArgs; struct SetattrRewriteArgs;
void setattrInternal(Box* obj, const std::string& attr, Box* val, SetattrRewriteArgs* rewrite_args); void setattrInternal(Box* obj, const std::string& attr, Box* val, SetattrRewriteArgs* rewrite_args);
class BinopRewriteArgs; struct BinopRewriteArgs;
extern "C" Box* binopInternal(Box* lhs, Box* rhs, int op_type, bool inplace, BinopRewriteArgs* rewrite_args); extern "C" Box* binopInternal(Box* lhs, Box* rhs, int op_type, bool inplace, BinopRewriteArgs* rewrite_args);
class CallRewriteArgs; struct CallRewriteArgs;
Box* typeCallInternal(BoxedFunction* f, CallRewriteArgs* rewrite_args, ArgPassSpec argspec, Box* arg1, Box* arg2, Box* typeCallInternal(BoxedFunction* f, CallRewriteArgs* rewrite_args, ArgPassSpec argspec, Box* arg1, Box* arg2,
Box* arg3, Box** args, const std::vector<const std::string*>* keyword_names); Box* arg3, Box** args, const std::vector<const std::string*>* keyword_names);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment