Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package asl for openSUSE:Factory checked in 
at 2026-11-24 12:41:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/asl (Old)
 and      /work/SRC/openSUSE:Factory/.asl.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "asl"

Tue Nov 24 12:41:30 2026 rev:42 rq:1400197 version:1.42_bld317

Changes:
--------
--- /work/SRC/openSUSE:Factory/asl/asl.changes  2026-11-08 19:22:34.477342543 
+0100
+++ /work/SRC/openSUSE:Factory/.asl.new.1340718/asl.changes     2026-11-24 
12:47:10.017166434 +0100
@@ -1,0 +2,15 @@
+Tue Nov 24 05:45:57 UTC 2026 - Martin Hauke <[email protected]>
+
+- Update to version 142-bld317
+  Bugfix
+  * Detect & report invalid multi-character instruction attribute
+    on 68K.
+  * Nameless symbols used inside macros no longer interfere with
+    nameless symbols used outside macros.
+  Addition
+  * Allow C-style hex constants while no explicit target is set.
+  Change
+  * IF statement arguments that cannot be evaluated are now assumed
+    to be false instead of true.
+
+-------------------------------------------------------------------

Old:
----
  asl-current-142-bld316.tar.bz2

New:
----
  asl-current-142-bld317.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ asl.spec ++++++
--- /var/tmp/diff_new_pack.hwmABI/_old  2026-11-24 12:47:10.992207757 +0100
+++ /var/tmp/diff_new_pack.hwmABI/_new  2026-11-24 12:47:10.996207927 +0100
@@ -16,7 +16,7 @@
 #
 
 
-%define rev 316
+%define rev 317
 Name:           asl
 Version:        1.42_bld%{rev}
 Release:        0

++++++ asl-current-142-bld316.tar.bz2 -> asl-current-142-bld317.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/asl-current/asmif.c new/asl-current/asmif.c
--- old/asl-current/asmif.c     2026-10-24 14:28:31.000000000 +0200
+++ new/asl-current/asmif.c     2026-11-19 23:10:26.000000000 +0100
@@ -82,7 +82,7 @@
   Tmp = EvalStrIntExpressionWithFlags(pCond, Int32, &IfOK, &Flags);
   if (mFirstPassUnknown(Flags) || !IfOK)
   {
-    Tmp = 1;
+    Tmp = 0;
     if (mFirstPassUnknown(Flags)) WrError(ErrNum_FirstPassCalc);
   }
 
@@ -95,6 +95,11 @@
   strmaxcpy(ListLine, Flag ? "=>TRUE" : "=>FALSE", STRINGSIZE);
 }
 
+static LongInt set_non_eval_flag(void)
+{
+  strmaxcpy(ListLine, "(NON-EVAL)", STRINGSIZE);
+  return 1;
+}
 
 static void PushIF(LongInt IfExpr)
 {
@@ -115,7 +120,10 @@
   ActiveIF = IfAsm;
 
   if (!IfAsm)
+  {
     IfExpr = 1;
+    set_non_eval_flag();
+  }
   else if (!ChkArgCnt(1, 1))
     IfExpr = 1;
   else
@@ -132,7 +140,8 @@
 
   ActiveIF = IfAsm;
 
-  if (!IfAsm) IfExpr = 1;
+  if (!IfAsm)
+    IfExpr = set_non_eval_flag();
   else if (!ChkArgCnt(1, 1))
     IfExpr = 1;
   else
@@ -158,7 +167,8 @@
 
   ActiveIF = IfAsm;
 
-  if (!IfAsm) if_expr = 1;
+  if (!IfAsm)
+    if_expr = set_non_eval_flag();
   else if (!ChkArgCnt(1, 1))
     if_expr = 1;
   else
@@ -180,7 +190,7 @@
   ActiveIF = IfAsm;
 
   if (!IfAsm)
-    IfExpr = 1;
+    IfExpr = set_non_eval_flag();
   else if (!ChkArgCnt(1, 1))
     IfExpr = 1;
   else
@@ -201,7 +211,7 @@
   ActiveIF = IfAsm;
 
   if (!IfAsm)
-    IfExpr = 1;
+    IfExpr = set_non_eval_flag();
   else if (!ChkArgCnt(1, 1))
     IfExpr = 1;
   else
@@ -233,7 +243,7 @@
   ActiveIF = IfAsm;
 
   if (!IfAsm)
-    IfExpr = 1;
+    IfExpr = set_non_eval_flag();
   else
   {
     Boolean Blank = True;
@@ -261,12 +271,14 @@
   {
     if (FirstIfSave->SaveIfAsm)
       AddBoolFlag(IfAsm = (!FirstIfSave->CaseFound));
+    else
+      (void)set_non_eval_flag();
     FirstIfSave->State = IfState_IFELSE;
   }
   else if (ArgCnt == 1)
   {
     if (!FirstIfSave->SaveIfAsm)
-      IfExpr = 1;
+      IfExpr = set_non_eval_flag();
     else if (FirstIfSave->CaseFound)
       IfExpr = 0;
     else
@@ -309,7 +321,7 @@
   EvalStrExpression(pCond, erg);
   if ((erg->Typ == TempNone) || mFirstPassUnknown(erg->Flags))
   {
-    as_tempres_set_int(erg, 1);
+    as_tempres_set_int(erg, 0);
     if (mFirstPassUnknown(erg->Flags))
       WrError(ErrNum_FirstPassCalc);
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/asl-current/asmpars.c new/asl-current/asmpars.c
--- old/asl-current/asmpars.c   2026-11-07 20:10:13.000000000 +0100
+++ new/asl-current/asmpars.c   2026-11-23 19:47:51.000000000 +0100
@@ -211,11 +211,14 @@
   ChunkList Usage;
 } TCToken, *PCToken;
 
-typedef struct sLocHeap
+typedef struct local_handle_heap
 {
-  struct sLocHeap *Next;
-  LongInt Cont;
-} TLocHeap, *PLocHandle;
+  struct local_handle_heap *p_next;
+  LongInt save_mom_loc_handle,
+          save_fwd_sym_counter,
+          save_back_sym_counter,
+          save_tmp_sym_counter;
+} local_handle_heap_t;
 
 typedef struct sRegDefList
 {
@@ -237,7 +240,7 @@
 /*static*/ PCToken FirstSection;
 static Boolean DoRefs,              /* Querverweise protokollieren */
                RegistersDefined;
-static PLocHandle FirstLocHandle;
+static local_handle_heap_t *p_local_handle_heap;
 static PSymbolStack FirstStack;
 static PCToken MomSection;
 static char *LastGlobSymbol;
@@ -269,7 +272,7 @@
 
   FirstLocSymbol = NULL; MomLocHandle = -1; SetMomSection(-1);
   FirstSection = NULL;
-  FirstLocHandle = NULL;
+  p_local_handle_heap = NULL;
   FirstStack = NULL;
   FirstFunction = NULL;
   DoRefs = True;
@@ -3400,20 +3403,20 @@
 
 static PSymbolEntry FindLocNode(const char *p_name, TempType SearchType)
 {
-  PLocHandle RunLocHandle;
+  local_handle_heap_t *p_run_loc_handle;
   PSymbolEntry Result = NULL;
 
   Result = FindLocNode_FNode(p_name, SearchType, MomLocHandle);
   if (Result)
     return Result;
 
-  RunLocHandle = FirstLocHandle;
-  while ((RunLocHandle) && (RunLocHandle->Cont != -1))
+  p_run_loc_handle = p_local_handle_heap;
+  while (p_run_loc_handle && (p_run_loc_handle->save_mom_loc_handle != -1))
   {
-    Result = FindLocNode_FNode(p_name, SearchType, RunLocHandle->Cont);
+    Result = FindLocNode_FNode(p_name, SearchType, 
p_run_loc_handle->save_mom_loc_handle);
     if (Result)
       break;
-    RunLocHandle = RunLocHandle->Next;
+    p_run_loc_handle = p_run_loc_handle->p_next;
   }
 
   return Result;
@@ -4725,23 +4728,33 @@
 
 void PushLocHandle(LongInt NewLoc)
 {
-  PLocHandle NewLocHandle;
+  local_handle_heap_t *p_new_loc_handle;
 
-  NewLocHandle = (PLocHandle) malloc(sizeof(TLocHeap));
-  NewLocHandle->Cont = MomLocHandle;
-  NewLocHandle->Next = FirstLocHandle;
-  FirstLocHandle = NewLocHandle; MomLocHandle = NewLoc;
+  p_new_loc_handle = (local_handle_heap_t*) malloc(sizeof(*p_new_loc_handle));
+  p_new_loc_handle->save_mom_loc_handle = MomLocHandle;
+  p_new_loc_handle->save_fwd_sym_counter = FwdSymCounter; FwdSymCounter = 0;
+  p_new_loc_handle->save_back_sym_counter = BackSymCounter; BackSymCounter = 0;
+  p_new_loc_handle->save_tmp_sym_counter = TmpSymCounter; TmpSymCounter = 0;
+
+  p_new_loc_handle->p_next = p_local_handle_heap;
+  p_local_handle_heap = p_new_loc_handle;
+
+  MomLocHandle = NewLoc;
 }
 
 void PopLocHandle(void)
 {
-  PLocHandle OldLocHandle;
+  local_handle_heap_t *p_old_loc_handle;
+
+  p_old_loc_handle = p_local_handle_heap;
+  if (!p_old_loc_handle) return;
+  MomLocHandle = p_old_loc_handle->save_mom_loc_handle;
+  FwdSymCounter = p_old_loc_handle->save_fwd_sym_counter;
+  BackSymCounter = p_old_loc_handle->save_back_sym_counter;
+  TmpSymCounter = p_old_loc_handle->save_tmp_sym_counter;
 
-  OldLocHandle = FirstLocHandle;
-  if (!OldLocHandle) return;
-  MomLocHandle = OldLocHandle->Cont;
-  FirstLocHandle = OldLocHandle->Next;
-  free(OldLocHandle);
+  p_local_handle_heap = p_old_loc_handle->p_next;
+  free(p_old_loc_handle);
 }
 
 void ClearLocStack(void)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/asl-current/changelog new/asl-current/changelog
--- old/asl-current/changelog   2026-11-07 20:22:22.000000000 +0100
+++ new/asl-current/changelog   2026-11-23 19:51:09.000000000 +0100
@@ -1,4 +1,15 @@
-2026-11-07  [1.42 Bld 316]
+2026-11-23 [1.42 Bld 317]
+
+- Bugfix      : Detect & report invalid multi-character instruction
+                attribute on 68K.
+- Addition    : Allow C-style hex constants while no explicit target
+                is set.
+- Change      : IF statement arguments that cannot be evaluated are
+                now assumed to be false instead of true.
+- Bugfix      : Nameless symbols used inside macros no longer interfere
+                with nameless symbols used outside macros.
+
+2026-11-07 [1.42 Bld 316]
 
 - Addition    : Add -w[no-]e-register-128 command line switch to
                 enable or disable warnings about possible accidental
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/asl-current/code68k.c new/asl-current/code68k.c
--- old/asl-current/code68k.c   2026-11-02 21:43:28.000000000 +0100
+++ new/asl-current/code68k.c   2026-11-19 21:48:50.000000000 +0100
@@ -6668,7 +6668,18 @@
 
 static Boolean DecodeAttrPart_68K(void)
 {
-  return DecodeMoto16AttrSize(*AttrPart.str.p_str, &AttrPartOpSize[0], False);
+  if (!DecodeMoto16AttrSize(*AttrPart.str.p_str, &AttrPartOpSize[0], False))
+    return False;
+
+  /* Allow multi-character attribute only for FMOVE.P{...} */
+
+  if ((strlen(AttrPart.str.p_str) > 1)
+   && (!Memo("FMOVE") || (AttrPartOpSize[0] != eSymbolSizeFloatDec96Bit) || 
(AttrPart.str.p_str[1] != '{')))
+  {
+    WrStrErrorPos(ErrNum_UndefAttr, &AttrPart);
+    return False;
+  }
+  return True;
 }
 
 static void MakeCode_68K(void)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/asl-current/codenone.c new/asl-current/codenone.c
--- old/asl-current/codenone.c  2026-06-01 21:51:06.000000000 +0200
+++ new/asl-current/codenone.c  2026-11-19 21:55:26.000000000 +0100
@@ -47,6 +47,7 @@
 {
   TurnWords = False;
   SetIntConstMode(eIntConstModeMoto);
+  ModifyIntConstModeByMask(0, 1 << eIntFormatCHex);
 
   PCSymbol = "";
   HeaderID = 0x00;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/asl-current/version.h new/asl-current/version.h
--- old/asl-current/version.h   2026-11-07 20:22:28.000000000 +0100
+++ new/asl-current/version.h   2026-11-23 19:51:00.000000000 +0100
@@ -14,7 +14,7 @@
 
 #define AS_VERSION_MAJOR 1
 #define AS_VERSION_MINOR 42
-#define AS_VERSION_BUILD 316
+#define AS_VERSION_BUILD 317
 
 /* The standard C stringification magic: */
 

Reply via email to