diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2007-06-18 14:23:57 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2007-06-18 14:23:57 +0000 |
commit | d2b6890afbb6c7edb0680aeb61c3db221c19bac2 (patch) | |
tree | e4e3473d9da4561994e699c25f3766ac6ad587de /ld | |
parent | cff9318706eebe5aec2326c538f428f6e3522735 (diff) | |
download | binutils-redhat-d2b6890afbb6c7edb0680aeb61c3db221c19bac2.tar.gz |
* ldlex.l, ldgram.y: Add ALIGNOF.
* ldexp.c (exp_print_token, foldname): Likewise.
* ld.texinfo: Likewise.
: ----------------------------------------------------------------------
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ldgram.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index b79fc6ad3b..c6f268b1d7 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 <integer> 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 ')' |