Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117694
b: refs/heads/master
c: fa25b99
h: refs/heads/master
v: v3
  • Loading branch information
Denys Vlasenko authored and James Bottomley committed Oct 23, 2008
1 parent ad1bb2d commit 0e5a792
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a36756b8b3d7178d9c101d1e2a7a83fd7b17706
refs/heads/master: fa25b99a503f68594a1787e6f31159a5aec77928
10 changes: 10 additions & 0 deletions trunk/drivers/scsi/aic7xxx/aicasm/aicasm_gram.y
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ void yyerror(const char *string);

%token T_ACCESS_MODE

%token T_DONT_GENERATE_DEBUG_CODE

%token T_MODES

%token T_DEFINE
Expand Down Expand Up @@ -357,6 +359,7 @@ reg_attribute:
| size
| count
| access_mode
| dont_generate_debug_code
| modes
| field_defn
| enum_defn
Expand Down Expand Up @@ -410,6 +413,13 @@ access_mode:
}
;

dont_generate_debug_code:
T_DONT_GENERATE_DEBUG_CODE
{
cur_symbol->dont_generate_debug_code = 1;
}
;

modes:
T_MODES mode_list
{
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/scsi/aic7xxx/aicasm/aicasm_scan.l
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ download { return T_DOWNLOAD; }
address { return T_ADDRESS; }
count { return T_COUNT; }
access_mode { return T_ACCESS_MODE; }
dont_generate_debug_code { return T_DONT_GENERATE_DEBUG_CODE; }
modes { return T_MODES; }
RW|RO|WO {
if (strcmp(yytext, "RW") == 0)
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ symtable_dump(FILE *ofile, FILE *dfile)
aic_print_include(dfile, stock_include_file);
SLIST_FOREACH(curnode, &registers, links) {

if (curnode->symbol->dont_generate_debug_code)
continue;

switch(curnode->symbol->type) {
case REGISTER:
case SCBLOC:
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ typedef struct symbol {
struct label_info *linfo;
struct cond_info *condinfo;
struct macro_info *macroinfo;
}info;
} info;
int dont_generate_debug_code;
} symbol_t;

typedef struct symbol_ref {
Expand Down

0 comments on commit 0e5a792

Please sign in to comment.