public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* Re: stdbool.h
       [not found]   ` <20020202223920.A28914@nevyn.them.org>
@ 2002-02-02 21:50     ` Alexandre Oliva
  0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2002-02-02 21:50 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: matthew green, binutils, gdb-patches, cgen

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

On Feb  3, 2002, Daniel Jacobowitz <drow@mvista.com> wrote:

> Seconded with what Alexandre said.

Here's the patch that implements my suggestion.  Ok to install?

Build-tested with the recently-contributed cgen-based sh64-elf
otherwise-hyphenated :-) simulator.  I had to enable it in
sim/configure.in first, though; it appears that Ben forgot to
contribute the configure.in changes that enabled it :-(


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: cgen-bool.patch --]
[-- Type: text/x-patch, Size: 1129 bytes --]

Index: include/opcode/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* cgen.h (CGEN_ATTR, CGEN_ATTR_TYPE, CGEN_ATTR_BOOLS): Replace
	bool with bool_val.

Index: include/opcode/cgen.h
===================================================================
RCS file: /home/aoliva/cygnus/uberbaum/include/opcode/cgen.h,v
retrieving revision 1.16
diff -u -p -r1.16 cgen.h
--- include/opcode/cgen.h 28 Jan 2002 19:15:46 -0000 1.16
+++ include/opcode/cgen.h 3 Feb 2002 05:40:09 -0000
@@ -113,7 +113,7 @@ typedef int CGEN_ATTR_VALUE_TYPE;
 typedef struct
 {
   /* Boolean attributes.  */
-  unsigned int bool;
+  unsigned int bool_val;
   /* Non-boolean integer attributes.  */
   CGEN_ATTR_VALUE_TYPE nonbool[1];
 } CGEN_ATTR;
@@ -124,12 +124,12 @@ typedef struct
    in one host int).  */
 
 #define CGEN_ATTR_TYPE(n) \
-struct { unsigned int bool; \
+struct { unsigned int bool_val; \
 	 CGEN_ATTR_VALUE_TYPE nonbool[(n) ? (n) : 1]; }
 
 /* Return the boolean attributes.  */
 
-#define CGEN_ATTR_BOOLS(a) ((a)->bool)
+#define CGEN_ATTR_BOOLS(a) ((a)->bool_val)
 
 /* Non-boolean attribute numbers are offset by this much.  */
 

[-- Attachment #3: Type: text/plain, Size: 289 bytes --]


-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-03  5:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020129120903.A26983@nevyn.them.org>
     [not found] ` <27154.1012699611@redhat.com>
     [not found]   ` <20020202223920.A28914@nevyn.them.org>
2002-02-02 21:50     ` stdbool.h Alexandre Oliva

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).