Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:stanford-ppl/Green-Marl

  • Loading branch information...
commit e50006d071e95114fc3fb79b5033e3454839c3dd 2 parents 5be88fd + 98aacc8
@hongsup hongsup authored
View
4 src/Makefile
@@ -127,6 +127,10 @@ $(OBJ)/%.o : %.cc
clean:
rm $(OBJ)/*.o
+veryclean:
+ -rm $(OBJ)/*.o
+ -rm $(PARSE)/gm_grammer.tab.c
+ -rm $(PARSE)/gm_lex.c
#-----------------------------------------
# rules to make parser
View
7 src/backend_gps/gm_gps_sym_analyze_check_usage.cc
@@ -17,8 +17,8 @@
//---------------------------------------------------------------------
class gps_merge_symbol_usage_t : public gps_apply_bb_ast
{
- static bool const IS_SCALAR = true;
- static bool const IS_FIELD = false;
+ static bool const IS_SCALAR;
+ static bool const IS_FIELD;
public:
gps_merge_symbol_usage_t(gm_gps_beinfo* i) {
@@ -280,6 +280,9 @@ class gps_merge_symbol_usage_t : public gps_apply_bb_ast
bool target_is_edge ;
};
+const bool gps_merge_symbol_usage_t::IS_SCALAR = true;
+const bool gps_merge_symbol_usage_t::IS_FIELD = false;
+
void gm_gps_opt_analyze_symbol_usage::process(ast_procdef* p)
{
View
9 src/parse/gm_grammer.y
@@ -11,14 +11,7 @@
#define YYERROR_VERBOSE 1
extern void GM_lex_begin_user_text();
- void yyerror(const char* str)
- {
- GM_print_parse_error(str);
- }
- int yywrap()
- {
- return 1;
- }
+ extern void yyerror(const char* str);
extern int yylex();
%}
View
4 src/parse/gm_lex.l
@@ -280,6 +280,10 @@ void GM_print_parse_error(const char* err_msg)
}
+void yyerror(const char* str) {
+ GM_print_parse_error(str);
+}
+
void GM_lex_begin_user_text() {
BEGIN(USER_TEXT_MODE);
MarkToken();
Please sign in to comment.
Something went wrong with that request. Please try again.