Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/yasm/patched-yasm/modules/parsers/gas/gas-parser.c

Issue 6170009: Update our yasm copy to yasm 1.1.0 (Part 1: yasm side)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/yasm/patched-yasm/modules/parsers/gas/gas-parser.c
===================================================================
--- third_party/yasm/patched-yasm/modules/parsers/gas/gas-parser.c (revision 71129)
+++ third_party/yasm/patched-yasm/modules/parsers/gas/gas-parser.c (working copy)
@@ -28,7 +28,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <util.h>
-/*@unused@*/ RCSID("$Id: gas-parser.c 2167 2009-01-02 08:36:09Z peter $");
+/*@unused@*/ RCSID("$Id: gas-parser.c 2279 2010-01-19 07:57:43Z peter $");
#include <libyasm.h>
@@ -71,11 +71,11 @@
parser_gas.state = INITIAL;
- parser_gas.rept = NULL;
-
for (i=0; i<10; i++)
parser_gas.local[i] = 0;
+ parser_gas.intel_syntax = 0;
+
parser_gas.is_cpp_preproc =
yasm__strcasecmp(((yasm_preproc_base*)pp)->module->keyword, "cpp") == 0;
parser_gas.is_nasm_preproc =
@@ -83,12 +83,6 @@
gas_parser_parse(&parser_gas);
- /* Check for ending inside a rept */
- if (parser_gas.rept) {
- yasm_error_set(YASM_ERROR_SYNTAX, N_("rept without matching endr"));
- yasm_errwarn_propagate(errwarns, parser_gas.rept->startline);
- }
-
/* Check for ending inside a comment */
if (parser_gas.state == COMMENT) {
yasm_warn_set(YASM_WARN_GENERAL, N_("end of file in comment"));
@@ -114,6 +108,7 @@
/* Define valid preprocessors to use with this parser */
static const char *gas_parser_preproc_keywords[] = {
+ "gas",
"raw",
"cpp",
"nasm",
@@ -125,7 +120,7 @@
"GNU AS (GAS)-compatible parser",
"gas",
gas_parser_preproc_keywords,
- "raw",
+ "gas",
NULL, /* No standard macros */
gas_parser_do_parse
};
@@ -133,7 +128,7 @@
"GNU AS (GAS)-compatible parser",
"gnu",
gas_parser_preproc_keywords,
- "raw",
+ "gas",
NULL, /* No standard macros */
gas_parser_do_parse
};

Powered by Google App Engine
This is Rietveld 408576698