From 463a83844b73cfcd28ce691d9a387fbd8612c099 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Mon, 19 Jul 1999 08:43:33 +0000 Subject: [PATCH] Fix INTEL_SYNTAX output for i386 backend From-SVN: r28170 --- gcc/ChangeLog | 7 +++++++ gcc/final.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index abaeb4296fc..e1e892a1870 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +Mon Jul 19 09:36:27 1999 Bernd Schmidt + + * final.c (output_asm_insn): When searching for the matching string + for a given dialect, don't run past the end of the list of + alternatives if there are fewer alternatives in the template than + dialects. + 1999-07-17 Alexandre Oliva * gcc.texi: Update e-mail addresses and URLs to gcc.gnu.org. diff --git a/gcc/final.c b/gcc/final.c index a9ae2804dbd..0ed88a2cf6e 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -3399,9 +3399,10 @@ output_asm_insn (template, operands) DIALECT_NUMBER of strings ending with '|'. */ for (i = 0; i < dialect_number; i++) { - while (*p && *p++ != '|') + while (*p && *p != '}' && *p++ != '|') ; - + if (*p == '}') + break; if (*p == '|') p++; } -- 2.30.2