* ldlex.l, ldgram.y: Add ALIGNOF.
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 18 Jun 2007 14:23:57 +0000 (14:23 +0000)
committerNathan Sidwell <nathan@codesourcery.com>
Mon, 18 Jun 2007 14:23:57 +0000 (14:23 +0000)
* ldexp.c (exp_print_token, foldname): Likewise.
* ld.texinfo: Likewise.
: ----------------------------------------------------------------------

ld/ldgram.y

index b79fc6ad3b37877cc9ea34dd8aa889c38dfd5059..c6f268b1d7cbb63c08657deb0592b623da22033a 100644 (file)
@@ -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 ')'
This page took 0.024492 seconds and 4 git commands to generate.