Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gas/config Make some assembler warnings f...



details:   https://anonhg.NetBSD.org/src/rev/2dadd6a415af
branches:  trunk
changeset: 522679:2dadd6a415af
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Feb 24 01:10:31 2002 +0000

description:
Make some assembler warnings fatal errors.  don't allow 4 char register
name in OBJ_AOUT mode.

diffstat:

 gnu/dist/toolchain/gas/config/tc-vax.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r 954735fe5e14 -r 2dadd6a415af gnu/dist/toolchain/gas/config/tc-vax.c
--- a/gnu/dist/toolchain/gas/config/tc-vax.c    Sun Feb 24 01:06:18 2002 +0000
+++ b/gnu/dist/toolchain/gas/config/tc-vax.c    Sun Feb 24 01:10:31 2002 +0000
@@ -408,7 +408,7 @@
    */
   if ((goofed = (*v.vit_error)) != 0)
     {
-      as_warn (_("Ignoring statement due to \"%s\""), v.vit_error);
+      as_fatal (_("Ignoring statement due to \"%s\""), v.vit_error);
     }
   /*
    * We need to use expression() and friends, which require us to diddle
@@ -427,7 +427,7 @@
     {                          /* for each operand */
       if (operandP->vop_error)
        {
-         as_warn (_("Ignoring statement because \"%s\""), operandP->vop_error);
+         as_fatal (_("Aborting because statement has \"%s\""), operandP->vop_error);
          goofed = 1;
        }
       else
@@ -474,7 +474,7 @@
               * instruction operands.
               */
              need_pass_2 = 1;
-             as_warn (_("Can't relocate expression"));
+             as_fatal (_("Can't relocate expression"));
              break;
 
            case O_big:
@@ -652,7 +652,7 @@
            }
          if (input_line_pointer != operandP->vop_expr_end + 1)
            {
-             as_warn ("Junk at end of expression \"%s\"", input_line_pointer);
+             as_fatal ("Junk at end of expression \"%s\"", input_line_pointer);
              goofed = 1;
            }
          operandP->vop_expr_end[1] = c_save;
@@ -2213,6 +2213,8 @@
       c2 = c3;
       c3 = c4;
     }
+  else if (c3 && c4)   /* can't be 4 characters long.  */
+    return retval;
 #endif
 
   if (isupper (c1))



Home | Main Index | Thread Index | Old Index