From 5d41b3efe4d718fac501a7ee7afd96dbd62ded6e Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Mon, 18 Jun 2007 14:23:57 +0000 Subject: * ldlex.l, ldgram.y: Add ALIGNOF. * ldexp.c (exp_print_token, foldname): Likewise. * ld.texinfo: Likewise. : ---------------------------------------------------------------------- --- ld/ldgram.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ld/ldgram.y') diff --git a/ld/ldgram.y b/ld/ldgram.y index b79fc6a..c6f268b 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -137,7 +137,7 @@ static int error_index; %token NOLOAD DSECT COPY INFO OVERLAY %token DEFINED TARGET_K SEARCH_DIR MAP ENTRY %token NEXT -%token SIZEOF ADDR LOADADDR MAX_K MIN_K +%token SIZEOF ALIGNOF ADDR LOADADDR MAX_K MIN_K %token STARTUP HLL SYSLIB FLOAT NOFLOAT NOCROSSREFS %token ORIGIN FILL %token LENGTH CREATE_OBJECT_SYMBOLS INPUT GROUP OUTPUT CONSTRUCTORS @@ -840,6 +840,8 @@ exp : | SIZEOF_HEADERS { $$ = exp_nameop (SIZEOF_HEADERS,0); } + | ALIGNOF '(' NAME ')' + { $$ = exp_nameop (ALIGNOF,$3); } | SIZEOF '(' NAME ')' { $$ = exp_nameop (SIZEOF,$3); } | ADDR '(' NAME ')' -- cgit v1.1