This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR18785: Support non-native execution charsets
- From: Roger Sayle <roger at eyesopen dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 Dec 2004 17:08:35 -0700 (MST)
- Subject: Re: [PATCH] PR18785: Support non-native execution charsets
On Wed, 22 Dec 2004, Zack Weinberg wrote:
> > Finally, the source code to tree-browser.c is the only source file
> > in the gcc/gcc/ tree that refers to EBCDIC (now that i370 support
> > has been dropped), and is currently using an obsolete form of the
> > test for host charset (i.e. different from libiberty, libcpp and
> > this patch). This divergence is cleaned up below.
>
> I think you should check this piece in by itself; it's obviously
> correct and is independent of the rest of the patch.
Done. Auditing in progress...
2004-12-22 Roger Sayle <roger@eyesopen.com>
* tree-browser.c: Remove obsolete #ifdef HOST_EBCDIC code.
Index: tree-browser.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-browser.c,v
retrieving revision 2.4
diff -c -3 -p -r2.4 tree-browser.c
*** tree-browser.c 9 Dec 2004 10:54:36 -0000 2.4
--- tree-browser.c 23 Dec 2004 01:04:51 -0000
*************** struct tb_command {
*** 53,63 ****
};
#define DEFTBCODE(code, str, help) { help, str, sizeof(str) - 1, code },
- #ifdef HOST_EBCDIC
- static struct tb_command tb_commands[] =
- #else
static const struct tb_command tb_commands[] =
- #endif
{
#include "tree-browser.def"
};
--- 53,59 ----
*************** struct tb_tree_code {
*** 77,87 ****
};
#define DEFTREECODE(SYM, STRING, TYPE, NARGS) { SYM, STRING, sizeof (STRING) - 1 },
- #ifdef HOST_EBCDIC
- static struct tb_tree_code tb_tree_codes[] =
- #else
static const struct tb_tree_code tb_tree_codes[] =
- #endif
{
#include "tree.def"
};
--- 73,79 ----
Roger
--