diff options
author | Sam James <sam@gentoo.org> | 2023-08-02 12:06:23 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-08-02 12:06:23 +0100 |
commit | b5c37946cce4b41af0436529b139fa3d23e61f73 (patch) | |
tree | 02129ebadb74e7d3f2430cf8221799ce186600e3 /ld/ldgram.y | |
parent | 675b9d612cc59446e84e2c6d89b45500cb603a8d (diff) | |
download | gdb-b5c37946cce4b41af0436529b139fa3d23e61f73.zip gdb-b5c37946cce4b41af0436529b139fa3d23e61f73.tar.gz gdb-b5c37946cce4b41af0436529b139fa3d23e61f73.tar.bz2 |
Revert "2.41 Release sources"
This reverts commit 675b9d612cc59446e84e2c6d89b45500cb603a8d.
See https://sourceware.org/pipermail/binutils/2023-August/128761.html.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r-- | ld/ldgram.y | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index 081176b..2b4b507 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -27,6 +27,7 @@ #define DONTDECLARE_MALLOC #include "sysdep.h" +#include "libiberty.h" #include "bfd.h" #include "bfdlink.h" #include "ctf-api.h" @@ -58,6 +59,8 @@ static char *error_names[ERROR_NAME_MAX]; static int error_index; #define PUSH_ERROR(x) if (error_index < ERROR_NAME_MAX) error_names[error_index] = x; error_index++; #define POP_ERROR() error_index--; + +static void yyerror (const char *); %} %union { bfd_vma integer; @@ -108,7 +111,7 @@ static int error_index; %type <section_phdr> phdr_opt %type <integer> opt_nocrossrefs -%right <token> PLUSEQ MINUSEQ MULTEQ DIVEQ '=' LSHIFTEQ RSHIFTEQ ANDEQ OREQ +%right <token> PLUSEQ MINUSEQ MULTEQ DIVEQ '=' LSHIFTEQ RSHIFTEQ ANDEQ OREQ XOREQ %right <token> '?' ':' %left <token> OROR %left <token> ANDAND @@ -747,6 +750,8 @@ assign_op: { $$ = '&'; } | OREQ { $$ = '|'; } + | XOREQ + { $$ = '^'; } ; @@ -1504,9 +1509,8 @@ opt_semicolon: ; %% -void -yyerror(arg) - const char *arg; +static void +yyerror (const char *arg) { if (ldfile_assumed_script) einfo (_("%P:%s: file format not recognized; treating as linker script\n"), |