From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id 603193857C5A for ; Thu, 10 Aug 2023 06:17:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 603193857C5A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1bda51aa6bdso609815ad.2 for ; Wed, 09 Aug 2023 23:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691648269; x=1692253069; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=MJB/5IO+vl6cTigkC/pJHjvwnjy7HJQ0wdTgQ+8A79A=; b=XQCFrYSuoIuCxI+dC2qW6Qfjr7pGgWXO4ZyGu2sJehMoRyg2W0xnGgOTvZcovVnCem OGhZGFtQ1bwV5IYjFKqp1387mRNnFLhG/WduJx2ZW6/dA71dCFSfGPo4+iybVxdr9Ebd 6vWCRj4BwMBhbf/fUdoiendztTqxSQ2uAAHK9HX0ix4shkOssgg9kZxjg1PAfvXyhYxn Y406117QN4D7X64yJe+zCfmq9qhaYZb/BwXarN4PM5PPGUxZA0B6Ia9OmSH92r1sj1Jg 3nqByFNmBoYLoKOf9x4OKUY//mj8ldvhjl4vjYestOmdEnJpVgm7foxKfn0sjEEL0jUQ BT1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691648269; x=1692253069; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MJB/5IO+vl6cTigkC/pJHjvwnjy7HJQ0wdTgQ+8A79A=; b=WoLho+H/Ww7j5+ceK6/tynwYPRCMuNaMPpw9uNEJM4iSOM4bIystV2AGtdJ1I3vUcR lAkZxJ+eZBQ/LfKHM+fIRVSXEBSBlMSCO5V5UZ9jLlgDu6em60hrFfOJ/cj5JSiiVJZB hKj40D4C61HUqpIgBKpbXgWuqPoBqfYMZXz4aJyFBUGS9XNaFSjdThx6lihKSrJeXL0p ZIfElINCILftu17IIEQAnqkqt2xVGjMlgjpcEyJdW8SoVHFpGWA1e5chhmyRxy0447HQ r8DKbH/aS9GO65/UAY6KR2pq0LaVwV0o3N7IYeMq+RnGNSaq8J2n1KimTUBGEnGNIdVx 2ZeQ== X-Gm-Message-State: AOJu0YzmFIBpX5uPIb9s/ZC5l7JYA+d00BcAMNSMI6vddpVtGB10/DlX R+A7YKna5P0SD6IKZCeeneg= X-Google-Smtp-Source: AGHT+IEqF160181dbLfCKL/37y1eYI+S00CQtgSbE+FjhzQWhqpvGOJzMv+tDMxBojdR/LAk1/5jcQ== X-Received: by 2002:a17:902:8609:b0:1b1:9272:55f3 with SMTP id f9-20020a170902860900b001b1927255f3mr946316plo.66.1691648269024; Wed, 09 Aug 2023 23:17:49 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:38b6:1ddd:3df4:1386]) by smtp.gmail.com with ESMTPSA id t12-20020a1709028c8c00b001b9d88a4d1asm693183plo.289.2023.08.09.23.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 23:17:48 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 340DD1142460; Thu, 10 Aug 2023 15:47:46 +0930 (ACST) Date: Thu, 10 Aug 2023 15:47:46 +0930 From: Alan Modra To: cgen@sourceware.org Cc: vapier@gentoo.org Subject: sim: update to reduce generated file differences Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3033.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Put binutils-gdb commit db7858e227f3 (Mike Frysinger 2015-06-12) and 13a590ca65f7 (Mike Frysinger 2017-02-13) in the source rather than generated files. OK? diff --git a/sim-cpu.scm b/sim-cpu.scm index dc5b4ab..bde9f78 100644 --- a/sim-cpu.scm +++ b/sim-cpu.scm @@ -1183,7 +1183,7 @@ CGEN_ATTR_VALUE (NULL, abuf->idesc->attrs, CGEN_INSN_" "attr)") /* If hyper-fast [well not unnecessarily slow] execution is selected, turn off frills like tracing and profiling. */ -/* FIXME: A better way would be to have TRACE_RESULT check for something +/* FIXME: A better way would be to have CGEN_TRACE_RESULT check for something that can cause it to be optimized out. Another way would be to emit special handlers into the instruction \"stream\". */ diff --git a/sim-decode.scm b/sim-decode.scm index 88fdd28..19c0d46 100644 --- a/sim-decode.scm +++ b/sim-decode.scm @@ -157,7 +157,7 @@ void init_idesc (cpu, id, t); /* Now fill in the values for the chosen cpu. */ - for (t = @prefix@_insn_sem, tend = t + sizeof (@prefix@_insn_sem) / sizeof (*t); + for (t = @prefix@_insn_sem, tend = t + ARRAY_SIZE (@prefix@_insn_sem); t != tend; ++t) { init_idesc (cpu, & table[t->index], t);\n" -- Alan Modra Australia Development Lab, IBM