This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
sid cgen cpus broken by absence of pic libiberty
- From: Doug Evans <dje at transmeta dot com>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: sid at sources dot redhat dot com, cgen at sources dot redhat dot com
- Date: Wed, 2 Feb 2005 00:40:53 -0800 (PST)
- Subject: sid cgen cpus broken by absence of pic libiberty
- References: <vt28y67phl6.fsf@zenia.home>
Jim Blandy writes:
> *************** cgen_parse_keyword (CGEN_CPU_DESC cd ATT
> *** 216,222 ****
> /* Allow letters, digits, and any special characters. */
> while (((p - start) < (int) sizeof (buf))
> && *p
> ! && (ISALNUM (*p)
> || *p == '_'
> || strchr (keyword_table->nonalpha_chars, *p)))
> ++p;
> --- 216,224 ----
> /* Allow letters, digits, and any special characters. */
> while (((p - start) < (int) sizeof (buf))
> && *p
> ! && (('a' <= *p && *p <= 'z')
> ! || ('A' <= *p && *p <= 'Z')
> ! || ('0' <= *p && *p <= '9')
> || *p == '_'
> || strchr (keyword_table->nonalpha_chars, *p)))
> ++p;
>
> Does that sound reasonable (well, reasonable with a clothespin on the
> nose) to folks?
Well, I'd still tuck the code away in macro or whatever.
Or, use just plain ctype. This is just one example so
who knows what libiberty actually brings to the party
in all the affected cases though.
Seems pretty sad though, eh?
Maybe the thing to do is create one's own mini-libiberty
that one controls and so isn't sacked with the politics or
whatever of binutils. Keeping the naming close to libiberty
would allow an easier transition back to libiberty if such
a day arrives.