public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Log message fix
@ 2009-06-17 20:06 Masaki Muranaka
  2009-06-18  5:39 ` Doug Evans
  0 siblings, 1 reply; 6+ messages in thread
From: Masaki Muranaka @ 2009-06-17 20:06 UTC (permalink / raw)
  To: cgen

[-- Attachment #1: Type: text/plain, Size: 105 bytes --]

Hello,

This is a small and obvious fix. Is ChangeLog entry needed?

--
Masaki Muranaka
Monami software


[-- Attachment #2: desc-cpu.scm.diff --]
[-- Type: application/octet-stream, Size: 1021 bytes --]

Index: desc-cpu.scm
===================================================================
RCS file: /cvs/src/src/cgen/desc-cpu.scm,v
retrieving revision 1.22
diff -u -p -r1.22 desc-cpu.scm
--- desc-cpu.scm	28 Oct 2005 19:30:02 -0000	1.22
+++ desc-cpu.scm	17 Jun 2009 20:05:04 -0000
@@ -965,7 +965,7 @@ init_tables (void)
 ; Then they'd be usable and we wouldn't have to special case them here.
 
 (define (cgen-desc.h)
-  (logit 1 "Generating " (current-arch-name) " desc.h ...\n")
+  (logit 1 "Generating " (current-arch-name) "-desc.h ...\n")
   (string-write
    (gen-c-copyright "CPU data header for @arch@."
 		  CURRENT-COPYRIGHT CURRENT-PACKAGE)
@@ -1018,7 +1018,7 @@ init_tables (void)
 ; no place to put this file.  To be revisited when we do have such a place.
 
 (define (cgen-desc.c)
-  (logit 1 "Generating " (current-arch-name) " desc.c ...\n")
+  (logit 1 "Generating " (current-arch-name) "-desc.c ...\n")
   (string-write
    (gen-c-copyright "CPU data for @arch@."
 		  CURRENT-COPYRIGHT CURRENT-PACKAGE)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Log message fix
  2009-06-17 20:06 [PATCH] Log message fix Masaki Muranaka
@ 2009-06-18  5:39 ` Doug Evans
  2009-06-18  7:57   ` Masaki Muranaka
  0 siblings, 1 reply; 6+ messages in thread
From: Doug Evans @ 2009-06-18  5:39 UTC (permalink / raw)
  To: Masaki Muranaka; +Cc: cgen

Masaki Muranaka wrote:
> Hello,
>
> This is a small and obvious fix. Is ChangeLog entry needed?
>
> --
> Masaki Muranaka
> Monami software
>
>   

Hi.  Thanks for the patch.
It's actually a style issue whether to print this message the former way 
or the new way with your patch.
I realize cgen is inconsistent about this.  Darn.
E.g. For examples, grep "logit.*Generating" *.scm

I don't mind going with your patch, the output is clearer.

Technically speaking, all patches require a ChangeLog entry.
But I can write one for you for this one.  No worries.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Log message fix
  2009-06-18  5:39 ` Doug Evans
@ 2009-06-18  7:57   ` Masaki Muranaka
  2009-06-18 15:35     ` Doug Evans
  2009-06-20 21:36     ` Doug Evans
  0 siblings, 2 replies; 6+ messages in thread
From: Masaki Muranaka @ 2009-06-18  7:57 UTC (permalink / raw)
  To: Doug Evans; +Cc: cgen

[-- Attachment #1: Type: text/plain, Size: 714 bytes --]

Hello,
Thanks for your comment.
I re-generated the patch to get more consistency.

On 2009/06/18, at 14:39, Doug Evans wrote:

> Masaki Muranaka wrote:
>> Hello,
>>
>> This is a small and obvious fix. Is ChangeLog entry needed?
>>
>> --
>> Masaki Muranaka
>> Monami software
>>
>>  
>
> Hi.  Thanks for the patch.
> It's actually a style issue whether to print this message the former way or the new way with your patch.
> I realize cgen is inconsistent about this.  Darn.
> E.g. For examples, grep "logit.*Generating" *.scm
>
> I don't mind going with your patch, the output is clearer.
>
> Technically speaking, all patches require a ChangeLog entry.
> But I can write one for you for this one.  No worries.
>
>

[-- Attachment #2: log-message-fix.patch --]
[-- Type: application/octet-stream, Size: 8072 bytes --]

Index: desc-cpu.scm
===================================================================
RCS file: /cvs/src/src/cgen/desc-cpu.scm,v
retrieving revision 1.22
diff -u -p -r1.22 desc-cpu.scm
--- desc-cpu.scm	28 Oct 2005 19:30:02 -0000	1.22
+++ desc-cpu.scm	18 Jun 2009 07:52:56 -0000
@@ -965,7 +965,7 @@ init_tables (void)
 ; Then they'd be usable and we wouldn't have to special case them here.
 
 (define (cgen-desc.h)
-  (logit 1 "Generating " (current-arch-name) " desc.h ...\n")
+  (logit 1 "Generating " (current-arch-name) "-desc.h ...\n")
   (string-write
    (gen-c-copyright "CPU data header for @arch@."
 		  CURRENT-COPYRIGHT CURRENT-PACKAGE)
@@ -1018,7 +1018,7 @@ init_tables (void)
 ; no place to put this file.  To be revisited when we do have such a place.
 
 (define (cgen-desc.c)
-  (logit 1 "Generating " (current-arch-name) " desc.c ...\n")
+  (logit 1 "Generating " (current-arch-name) "-desc.c ...\n")
   (string-write
    (gen-c-copyright "CPU data for @arch@."
 		  CURRENT-COPYRIGHT CURRENT-PACKAGE)
Index: sid-cpu.scm
===================================================================
RCS file: /cvs/src/src/cgen/sid-cpu.scm,v
retrieving revision 1.18
diff -u -p -r1.18 sid-cpu.scm
--- sid-cpu.scm	14 Jul 2006 18:49:32 -0000	1.18
+++ sid-cpu.scm	18 Jun 2009 07:52:56 -0000
@@ -71,7 +71,7 @@
 ; Generate <cpu>-desc.h.
 
 (define (cgen-desc.h)
-  (logit 1 "Generating " (gen-cpu-name) " desc.h ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-desc.h ...\n")
 
   (string-write
    (gen-c-copyright "Misc. entries in the @arch@ description file."
@@ -287,7 +287,7 @@ namespace @arch@ {
 ; Generate <cpu>-cpu.h
 
 (define (cgen-cpu.h)
-  (logit 1 "Generating " (gen-cpu-name) " cpu.h ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-cpu.h ...\n")
   (assert-keep-one)
 
   ; Turn parallel execution support on if cpu needs it.
@@ -545,7 +545,7 @@ typedef struct @prefix@_trace_record {
 ; Generate <cpu>-defs.h
 
 (define (cgen-defs.h)
-  (logit 1 "Generating " (gen-cpu-name) " defs.h ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-defs.h ...\n")
   (assert-keep-one)
 
   ; Turn parallel execution support on if cpu needs it.
@@ -672,7 +672,7 @@ using namespace cgen;
 ")))
 
 (define (cgen-write.cxx)
-  (logit 1 "Generating " (gen-cpu-name) " write.cxx ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-write.cxx ...\n")
   (assert-keep-one)
 
   (sim-analyze-insns!)
@@ -784,7 +784,7 @@ using namespace cgen;
 ; Each instruction is implemented in its own function.
 
 (define (cgen-semantics.cxx)
-  (logit 1 "Generating " (gen-cpu-name) " semantics.cxx ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-semantics.cxx ...\n")
   (assert-keep-one)
 
   (sim-analyze-insns!)
@@ -1408,7 +1408,7 @@ restart:
 ; Generate sem-switch.cxx.
 
 (define (cgen-sem-switch.cxx)
-  (logit 1 "Generating " (gen-cpu-name) " sem-switch.cxx ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-sem-switch.cxx ...\n")
 
   (sim-analyze-insns!)
   (if (with-sem-frags?)
Index: sid-decode.scm
===================================================================
RCS file: /cvs/src/src/cgen/sid-decode.scm,v
retrieving revision 1.15
diff -u -p -r1.15 sid-decode.scm
--- sid-decode.scm	15 Jun 2005 21:28:19 -0000	1.15
+++ sid-decode.scm	18 Jun 2009 07:52:57 -0000
@@ -667,7 +667,7 @@ void
 ; Entry point.  Generate decode.h.
 
 (define (cgen-decode.h)
-  (logit 1 "Generating " (gen-cpu-name) " decode.h ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-decode.h ...\n")
 
   (sim-analyze-insns!)
 
@@ -723,7 +723,7 @@ typedef UINT @prefix@_insn_word;
 ; Entry point.  Generate decode.cxx.
 
 (define (cgen-decode.cxx)
-  (logit 1 "Generating " (gen-cpu-name) " decode.cxx ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-decode.cxx ...\n")
 
   (sim-analyze-insns!)
 
Index: sid-model.scm
===================================================================
RCS file: /cvs/src/src/cgen/sid-model.scm,v
retrieving revision 1.10
diff -u -p -r1.10 sid-model.scm
--- sid-model.scm	7 Nov 2006 21:12:08 -0000	1.10
+++ sid-model.scm	18 Jun 2009 07:52:57 -0000
@@ -487,7 +487,7 @@ const MACH " (gen-sym mach) "_mach =
 ; Generate model.cxx
 
 (define (cgen-model.cxx)
-  (logit 1 "Generating " (gen-cpu-name) " model.cxx ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-model.cxx ...\n")
   (assert-keep-one)
 
   ; Turn parallel execution support on if cpu needs it.
@@ -520,7 +520,7 @@ using namespace @cpu@; // FIXME: namespa
 )
 
 (define (cgen-model.h)
-  (logit 1 "Generating " (gen-cpu-name) " model.h ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-model.h ...\n")
   (assert-keep-one)
 
   (string-write
Index: sim-cpu.scm
===================================================================
RCS file: /cvs/src/src/cgen/sim-cpu.scm,v
retrieving revision 1.9
diff -u -p -r1.9 sim-cpu.scm
--- sim-cpu.scm	16 Jul 2003 05:35:48 -0000	1.9
+++ sim-cpu.scm	18 Jun 2009 07:52:57 -0000
@@ -800,7 +800,7 @@ SEM_FN_NAME (@prefix@,init_idesc_table) 
 ; Generate cpu-<cpu>.h
 
 (define (cgen-cpu.h)
-  (logit 1 "Generating " (gen-cpu-name) " cpu.h ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-cpu.h ...\n")
 
   (sim-analyze-insns!)
 
@@ -843,7 +843,7 @@ SEM_FN_NAME (@prefix@,init_idesc_table) 
 ; Generate defs-<isa>.h.
 
 (define (cgen-defs.h)
-  (logit 1 "Generating " (obj:name (current-isa)) " defs.h ...\n")
+  (logit 1 "Generating " (obj:name (current-isa)) "-defs.h ...\n")
 
   (sim-analyze-insns!)
 
@@ -874,7 +874,7 @@ SEM_FN_NAME (@prefix@,init_idesc_table) 
 ; Generate cpu-<cpu>.c
 
 (define (cgen-cpu.c)
-  (logit 1 "Generating " (gen-cpu-name) " cpu.c ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-cpu.c ...\n")
 
   (sim-analyze-insns!)
 
@@ -903,7 +903,7 @@ SEM_FN_NAME (@prefix@,init_idesc_table) 
 ; Generate read.c
 
 (define (cgen-read.c)
-  (logit 1 "Generating " (gen-cpu-name) " read.c ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-read.c ...\n")
 
   (sim-analyze-insns!)
 
@@ -981,7 +981,7 @@ SEM_FN_NAME (@prefix@,init_idesc_table) 
 ; Generate write.c
 
 (define (cgen-write.c)
-  (logit 1 "Generating " (gen-cpu-name) " write.c ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-write.c ...\n")
 
   (sim-analyze-insns!)
 
@@ -1033,7 +1033,7 @@ void
 ; Each instruction is implemented in its own function.
 
 (define (cgen-semantics.c)
-  (logit 1 "Generating " (gen-cpu-name) " semantics.c ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-semantics.c ...\n")
 
   (sim-analyze-insns!)
 
@@ -1082,7 +1082,7 @@ CGEN_ATTR_VALUE (NULL, abuf->idesc->attr
 ; This file consists of just the switch().  It is included by mainloop.c.
 
 (define (cgen-sem-switch.c)
-  (logit 1 "Generating " (gen-cpu-name) " sem-switch.c ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-sem-switch.c ...\n")
 
   (sim-analyze-insns!)
 
Index: sim-decode.scm
===================================================================
RCS file: /cvs/src/src/cgen/sim-decode.scm,v
retrieving revision 1.9
diff -u -p -r1.9 sim-decode.scm
--- sim-decode.scm	8 Jul 2003 16:19:35 -0000	1.9
+++ sim-decode.scm	18 Jun 2009 07:52:57 -0000
@@ -537,7 +537,7 @@ const IDESC *
 ; Entry point.  Generate decode.h.
 
 (define (cgen-decode.h)
-  (logit 1 "Generating " (gen-cpu-name) " decode.h ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-decode.h ...\n")
 
   (sim-analyze-insns!)
 
@@ -564,7 +564,7 @@ const IDESC *
 ; Entry point.  Generate decode.c.
 
 (define (cgen-decode.c)
-  (logit 1 "Generating " (gen-cpu-name) " decode.c ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-decode.c ...\n")
 
   (sim-analyze-insns!)
 
Index: sim-model.scm
===================================================================
RCS file: /cvs/src/src/cgen/sim-model.scm,v
retrieving revision 1.6
diff -u -p -r1.6 sim-model.scm
--- sim-model.scm	16 Jul 2003 05:35:48 -0000	1.6
+++ sim-model.scm	18 Jun 2009 07:52:57 -0000
@@ -367,7 +367,7 @@ const MACH " (gen-sym mach) "_mach =
 ; Generate model.c
 
 (define (cgen-model.c)
-  (logit 1 "Generating " (gen-cpu-name) " model.c ...\n")
+  (logit 1 "Generating " (gen-cpu-name) "-model.c ...\n")
 
   (sim-analyze-insns!)
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Log message fix
  2009-06-18  7:57   ` Masaki Muranaka
@ 2009-06-18 15:35     ` Doug Evans
  2009-07-07  0:19       ` Masaki Muranaka
  2009-06-20 21:36     ` Doug Evans
  1 sibling, 1 reply; 6+ messages in thread
From: Doug Evans @ 2009-06-18 15:35 UTC (permalink / raw)
  To: Masaki Muranaka; +Cc: cgen

Masaki Muranaka wrote:
> Hello,
> Thanks for your comment.
> I re-generated the patch to get more consistency.
>   

Yikes.  I think I goofed in the sense that at least for the sims the 
files don't have a "$cpu-" prefix.
E.g. In the gdb tree, ls src/sim/m32r.
Opcode files need the prefix because they all live in the same directory.
That's not the case with the sims.

Ummm, "Sorry about that Chief". :-(

I realize it's just a debugging printf, but OTOH "consistency is good".
How about something that works regardless of what the file is.
Maybe something like:

(logit 1 "Generating " (gen-cpu-name) "'s cpu.h ...\n")

Or some such ...

I can do that if you want.  Saves you from having to retype everything 
again.
Apologies.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Log message fix
  2009-06-18  7:57   ` Masaki Muranaka
  2009-06-18 15:35     ` Doug Evans
@ 2009-06-20 21:36     ` Doug Evans
  1 sibling, 0 replies; 6+ messages in thread
From: Doug Evans @ 2009-06-20 21:36 UTC (permalink / raw)
  To: Masaki Muranaka; +Cc: cgen

Masaki Muranaka wrote:
> Hello,
> Thanks for your comment.
> I re-generated the patch to get more consistency.
>
>   

Hi.  I checked in something that's a bit of a hybrid.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Log message fix
  2009-06-18 15:35     ` Doug Evans
@ 2009-07-07  0:19       ` Masaki Muranaka
  0 siblings, 0 replies; 6+ messages in thread
From: Masaki Muranaka @ 2009-07-07  0:19 UTC (permalink / raw)
  To: Doug Evans; +Cc: cgen

Hello,

On 2009/06/19, at 0:35, Doug Evans wrote:

> Masaki Muranaka wrote:
>> Hello,
>> Thanks for your comment.
>> I re-generated the patch to get more consistency.
>>  
>
> Yikes.  I think I goofed in the sense that at least for the sims the files don't have a "$cpu-" prefix.
> E.g. In the gdb tree, ls src/sim/m32r.
> Opcode files need the prefix because they all live in the same directory.
> That's not the case with the sims.

I see about them. I read your commit and I think it is reasonable.
Thanks,




--
Masaki Muranaka
Monami software


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-07  0:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-17 20:06 [PATCH] Log message fix Masaki Muranaka
2009-06-18  5:39 ` Doug Evans
2009-06-18  7:57   ` Masaki Muranaka
2009-06-18 15:35     ` Doug Evans
2009-07-07  0:19       ` Masaki Muranaka
2009-06-20 21:36     ` Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).