Skip to content

Commit a7dbbf0

Browse files
Remove MSATTR from Parser & Lexer
1 parent e198cbb commit a7dbbf0

File tree

5 files changed

+1
-51
lines changed

5 files changed

+1
-51
lines changed

src/formatparse.mly

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ type maybeInit =
273273
%token BUILTIN_VA_ARG BUILTIN_VA_LIST
274274
%token BLOCKATTRIBUTE
275275
%token DECLSPEC
276-
%token <string> MSASM MSATTR
277276
%token PRAGMA
278277

279278

src/frontc/clexer.mll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,6 @@ let init_lexicon _ =
195195
("__int32", fun loc -> INT loc);
196196
("__int64", fun _ -> INT64 (currentLoc ()));
197197
("__int128", fun _ -> INT128 (currentLoc ()));
198-
("_cdecl", fun _ -> MSATTR ("_cdecl", currentLoc ()));
199-
("__cdecl", fun _ -> MSATTR ("__cdecl", currentLoc ()));
200-
("_stdcall", fun _ -> MSATTR ("_stdcall", currentLoc ()));
201-
("__stdcall", fun _ -> MSATTR ("__stdcall", currentLoc ()));
202-
("_fastcall", fun _ -> MSATTR ("_fastcall", currentLoc ()));
203-
("__fastcall", fun _ -> MSATTR ("__fastcall", currentLoc ()));
204-
("__w64", fun _ -> MSATTR("__w64", currentLoc ()));
205198
("__declspec", fun loc -> DECLSPEC loc);
206199
("__forceinline", fun loc -> INLINE loc); (* !! we turn forceinline
207200
* into inline *)

src/frontc/cparser.mly

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ let transformOffsetOf (speclist, dtype) member =
294294
%token BLOCKATTRIBUTE
295295
%token<Cabs.cabsloc> BUILTIN_TYPES_COMPAT BUILTIN_OFFSETOF
296296
%token<Cabs.cabsloc> DECLSPEC
297-
%token<string * Cabs.cabsloc> MSASM MSATTR
298297
%token<string * Cabs.cabsloc> PRAGMA_LINE
299298
%token<Cabs.cabsloc> PRAGMA
300299
%token PRAGMA_EOL
@@ -903,7 +902,6 @@ statement:
903902
{ COMPGOTO (smooth_expression (fst $3), joinLoc $1 $4) }
904903
| ASM asmattr LPAREN asmtemplate asmoutputs RPAREN SEMICOLON
905904
{ ASM ($2, $4, $5, joinLoc $1 $7) }
906-
| MSASM { ASM ([], [fst $1], None, (*handleLoc*)(snd $1))}
907905
| error location SEMICOLON { (NOP $2)}
908906
;
909907

@@ -1304,7 +1302,6 @@ attribute_nocv:
13041302
[ VARIABLE "used" ]), $1 }
13051303
*)*/
13061304
| DECLSPEC paren_attr_list_ne { ("__declspec", $2), $1 }
1307-
| MSATTR { (fst $1, []), snd $1 }
13081305
/* ISO 6.7.3 */
13091306
| THREAD { ("__thread",[]), $1 }
13101307
| QUALIFIER {("__attribute__",[VARIABLE(fst $1)]),snd $1}

test/small1/attr.c

Lines changed: 0 additions & 39 deletions
This file was deleted.

test/testcil.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ sub addToGroup {
211211
addTest("testrun/percentm");
212212
addTest("testrun/percent400");
213213
addTest("testrun/caserange _GNUCC=1");
214-
addTest("test/attr");
214+
215215
addTest("test/attr2 _GNUCC=1");
216216
addTest("test/attr3 _GNUCC=1");
217217
addTest("testrun/attr4 _GNUCC=1");

0 commit comments

Comments
 (0)