This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA] Default target escapes to ASCII


This patch continues my work on target definitions, by defaulting the
C escapes to their ASCII values.  Documentation patch is included.

I'm bootstrapping x86 Linux.  Assuming it passes, OK to commit?

[And I'd appreciate the first patch being looked at for approval.
Thanks.]

Neil.

	* defaults.h: Default escape sequences to ASCII.
	* config/i370/i370.h: Adjust for ASCII default.
	* config/1750a/1750a.h: Remove escape sequence definitions.
	* config/a29k/a29k.h: Similarly.
	* config/alpha/alpha.h: Similarly.
	* config/arc/arc.h: Similarly.
	* config/arm/arm.h: Similarly.
	* config/avr/avr.h: Similarly.
	* config/c4x/c4x.h: Similarly.
	* config/clipper/clipper.h: Similarly.
	* config/convex/convex.h: Similarly.
	* config/d30v/d30v.h: Similarly.
	* config/dsp16xx/dsp16xx.h: Similarly.
	* config/elxsi/elxsi.h: Similarly.
	* config/fr30/fr30.h: Similarly.
	* config/h8300/h8300.h: Similarly.
	* config/i386/i386.h: Similarly.
	* config/i860/i860.h: Similarly.
	* config/i960/i960.h: Similarly.
	* config/ia64/ia64.h: Similarly.
	* config/m32r/m32r.h: Similarly.
	* config/m68hc11/m68hc11.h: Similarly.
	* config/m68k/m68k.h: Similarly.
	* config/m88k/m88k.h: Similarly.
	* config/mcore/mcore.h: Similarly.
	* config/mips/mips.h: Similarly.
	* config/mn10200/mn10200.h: Similarly.
	* config/mn10300/mn10300.h: Similarly.
	* config/ns32k/ns32k.h: Similarly.
	* config/pa/pa.h: Similarly.
	* config/pdp11/pdp11.h: Similarly.
	* config/pj/pj.h: Similarly.
	* config/romp/romp.h: Similarly.
	* config/rs6000/rs6000.h: Similarly.
	* config/sh/sh.h: Similarly.
	* config/sparc/sparc.h: Similarly.
	* config/v850/v850.h: Similarly.
	* config/vax/vax.h: Similarly.
	* config/we32k/we32k.h: Similarly.
	* doc/tm.texi: Update documentation.

============================================================
Index: gcc/defaults.h
--- gcc/defaults.h	2001/06/22 17:18:20	1.42
+++ gcc/defaults.h	2001/06/25 22:27:59
@@ -23,6 +23,17 @@ Boston, MA 02111-1307, USA.  */
 #ifndef GCC_DEFAULTS_H
 #define GCC_DEFAULTS_H
 
+/* Define default standard character escape sequences.  */
+#ifndef TARGET_BELL
+#  define TARGET_BELL 007
+#  define TARGET_BS 010
+#  define TARGET_TAB 011
+#  define TARGET_NEWLINE 012
+#  define TARGET_VT 013
+#  define TARGET_FF 014
+#  define TARGET_CR 015
+#endif
+
 /* Store in OUTPUT a string (made with alloca) containing
    an assembler-name for a local static variable or function named NAME.
    LABELNO is an integer which is different for each call.  */
============================================================
Index: gcc/config/1750a/1750a.h
--- gcc/config/1750a/1750a.h	2001/04/16 18:30:34	1.21
+++ gcc/config/1750a/1750a.h	2001/06/25 22:28:03
@@ -1314,16 +1314,6 @@ enum reg_class { NO_REGS, R2, R0_1, INDE
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL	007
-#define TARGET_BS	010
-#define TARGET_TAB	011
-#define TARGET_NEWLINE	012
-#define TARGET_VT	013
-#define TARGET_FF	014
-#define TARGET_CR	015
-
-
 /* Print operand X (an rtx) in assembler syntax to file FILE.
    CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
    For `%' followed by punctuation, CODE is the punctuation and X is null.
============================================================
Index: gcc/config/a29k/a29k.h
--- gcc/config/a29k/a29k.h	2001/03/07 20:28:19	1.19
+++ gcc/config/a29k/a29k.h	2001/06/25 22:28:17
@@ -1595,15 +1595,6 @@ extern int a29k_debug_reg_map[];
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print operand X (an rtx) in assembler syntax to file FILE.
    CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
    For `%' followed by punctuation, CODE is the punctuation and X is null.  */
============================================================
Index: gcc/config/alpha/alpha.h
--- gcc/config/alpha/alpha.h	2001/06/21 20:34:39	1.121
+++ gcc/config/alpha/alpha.h	2001/06/25 22:28:19
@@ -2236,15 +2236,6 @@ do {									\
 #endif
 
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print operand X (an rtx) in assembler syntax to file FILE.
    CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
    For `%' followed by punctuation, CODE is the punctuation and X is null.  */
============================================================
Index: gcc/config/arc/arc.h
--- gcc/config/arc/arc.h	2001/04/16 18:30:35	1.26
+++ gcc/config/arc/arc.h	2001/06/25 22:28:26
@@ -312,15 +312,6 @@ if (GET_MODE_CLASS (MODE) == MODE_INT		\
 #define PTRDIFF_TYPE "long int"
 #define WCHAR_TYPE "short unsigned int"
 #define WCHAR_TYPE_SIZE 16
-
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
 
 /* Standard register usage.  */
 
============================================================
Index: gcc/config/arm/arm.h
--- gcc/config/arm/arm.h	2001/06/24 09:46:02	1.106
+++ gcc/config/arm/arm.h	2001/06/25 22:28:36
@@ -2721,15 +2721,6 @@ extern int making_const_table;
                  (LOG), (MAX_SKIP));				\
     }
 #endif
-
-/* Target characters.  */
-#define TARGET_BELL	007
-#define TARGET_BS	010
-#define TARGET_TAB	011
-#define TARGET_NEWLINE	012
-#define TARGET_VT	013
-#define TARGET_FF	014
-#define TARGET_CR	015
 
 /* Only perform branch elimination (by making instructions conditional) if
    we're optimising.  Otherwise it's of no use anyway.  */
============================================================
Index: gcc/config/avr/avr.h
--- gcc/config/avr/avr.h	2001/05/04 15:06:34	1.21
+++ gcc/config/avr/avr.h	2001/06/25 22:28:50
@@ -2884,17 +2884,6 @@ valid_machine_decl_attribute (DECL, ATTR
    addresses.  Thus sorting to put the smallest address first allows
    the most combinations to be found.  */
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
-
-
 #define TRAMPOLINE_TEMPLATE(FILE) \
   internal_error ("Trampolines not supported\n")
 
============================================================
Index: gcc/config/c4x/c4x.h
--- gcc/config/c4x/c4x.h	2001/05/04 15:06:34	1.75
+++ gcc/config/c4x/c4x.h	2001/06/25 22:28:59
@@ -2514,17 +2514,6 @@ do { fprintf (asm_out_file, "\t.sdef\t")
 	      "%s\t.val\t.%s\t.scl\t-1%s\t.endef\n",	\
 	      SDB_DELIM, SDB_DELIM, SDB_DELIM); } while (0)
 
-
-/* Define results of standard character escape sequences.  */
-
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* This is the kind of divide that is easiest to do in the general case.  */
 
 #define EASY_DIV_EXPR TRUNC_DIV_EXPR
============================================================
Index: gcc/config/clipper/clipper.h
--- gcc/config/clipper/clipper.h	2000/09/25 08:54:41	1.16
+++ gcc/config/clipper/clipper.h	2001/06/25 22:29:04
@@ -1079,15 +1079,6 @@ do									      \
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print an instruction operand X on file FILE.
    CODE is the code from the %-spec that requested printing this operand;
    if `%z3' was used to print operand 3, then CODE is 'z'.
============================================================
Index: gcc/config/convex/convex.h
--- gcc/config/convex/convex.h	2000/11/30 06:31:19	1.13
+++ gcc/config/convex/convex.h	2001/06/25 22:29:07
@@ -1449,15 +1449,6 @@ enum reg_class {
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print an instruction operand X on file FILE.
    CODE is the code from the %-spec that requested printing this operand;
    if `%z3' was used to print operand 3, then CODE is 'z'. */
============================================================
Index: gcc/config/d30v/d30v.h
--- gcc/config/d30v/d30v.h	2001/06/22 17:38:19	1.20
+++ gcc/config/d30v/d30v.h	2001/06/25 22:29:32
@@ -1021,22 +1021,6 @@ do {									\
    selector because this enables the linker to eliminate duplicate selectors.  */
 /* #define OBJC_SELECTORS_WITHOUT_LABELS */
 
-/* A C constant expression for the integer value for escape sequence
-   `\a'.  */
-#define TARGET_BELL 0x7
-
-/* C constant expressions for the integer values for escape sequences
-   `\b', `\t' and `\n'.  */
-#define TARGET_BS	0x8
-#define TARGET_TAB	0x9
-#define TARGET_NEWLINE	0xa
-
-/* C constant expressions for the integer values for escape sequences
-   `\v', `\f' and `\r'.  */
-#define TARGET_VT	0xb
-#define TARGET_FF	0xc
-#define TARGET_CR	0xd
-
 
 /* D30V register layout.  */
 
============================================================
Index: gcc/config/dsp16xx/dsp16xx.h
--- gcc/config/dsp16xx/dsp16xx.h	2001/04/16 18:30:38	1.22
+++ gcc/config/dsp16xx/dsp16xx.h	2001/06/25 22:29:43
@@ -383,15 +383,6 @@ while (0)
    result of subtracting two pointers */
 
 #define PTRDIFF_TYPE "long int"
-
-#define TARGET_BELL     '\a'
-#define TARGET_BS       '\b'
-#define TARGET_TAB      '\t'
-#define TARGET_NEWLINE  '\n'
-#define TARGET_VT       '\v'
-#define TARGET_FF       '\f'
-#define TARGET_CR       '\r'
-
 
 /* REGISTER USAGE.  */
 
============================================================
Index: gcc/config/elxsi/elxsi.h
--- gcc/config/elxsi/elxsi.h	2000/12/07 01:58:24	1.14
+++ gcc/config/elxsi/elxsi.h	2001/06/25 22:29:43
@@ -921,15 +921,6 @@ enum reg_class { NO_REGS, GENERAL_REGS, 
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print an instruction operand X on file FILE.
    CODE is the code from the %-spec that requested printing this operand;
    if `%z3' was used to print operand 3, then CODE is 'z'.  */
============================================================
Index: gcc/config/fr30/fr30.h
--- gcc/config/fr30/fr30.h	2001/04/04 00:46:26	1.14
+++ gcc/config/fr30/fr30.h	2001/06/25 22:29:51
@@ -341,14 +341,6 @@ extern int target_flags;
    default with the options `-fsigned-char' and `-funsigned-char'.  */
 #define DEFAULT_SIGNED_CHAR 1
 
-#define TARGET_BELL     0x7	/*  '\a'  */
-#define TARGET_BS	0x8	/*  '\b'  */
-#define TARGET_TAB	0x9	/*  '\t'  */
-#define TARGET_NEWLINE	0xa	/*  '\n'  */
-#define TARGET_VT	0xb	/*  '\v'  */
-#define TARGET_FF	0xc	/*  '\f'  */
-#define TARGET_CR	0xd	/*  '\r'  */
-
 /*}}}*/ 
 /*{{{  REGISTER BASICS.  */ 
 
============================================================
Index: gcc/config/h8300/h8300.h
--- gcc/config/h8300/h8300.h	2001/06/13 17:41:19	1.42
+++ gcc/config/h8300/h8300.h	2001/06/25 22:29:56
@@ -1412,15 +1412,6 @@ readonly_data ()							\
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print an instruction operand X on file FILE.
    Look in h8300.c for details.  */
 
============================================================
Index: gcc/config/i370/i370.h
--- gcc/config/i370/i370.h	2001/05/26 01:31:41	1.28
+++ gcc/config/i370/i370.h	2001/06/25 22:30:03
@@ -1042,7 +1042,8 @@ enum reg_class
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
+/* Define standard character escape sequences for non-ASCII targets
+   only.  */
 
 #ifdef TARGET_EBCDIC
 #define TARGET_ESC	39
@@ -1053,14 +1054,6 @@ enum reg_class
 #define TARGET_VT	11
 #define TARGET_FF	12
 #define TARGET_CR	13
-#else 
-#define TARGET_BELL	007
-#define TARGET_BS	010
-#define TARGET_TAB	011
-#define TARGET_NEWLINE	012
-#define TARGET_VT	013
-#define TARGET_FF	014
-#define TARGET_CR	015
 #endif
 
 /* ======================================================== */
============================================================
Index: gcc/config/i386/i386.h
--- gcc/config/i386/i386.h	2001/06/14 10:45:38	1.188
+++ gcc/config/i386/i386.h	2001/06/25 22:30:15
@@ -2955,15 +2955,6 @@ do { long l;						\
 
 #define ASM_OPEN_PAREN ""
 #define ASM_CLOSE_PAREN ""
-
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
 
 /* Print operand X (an rtx) in assembler syntax to file FILE.
    CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
============================================================
Index: gcc/config/i860/i860.h
--- gcc/config/i860/i860.h	2001/05/17 03:15:57	1.17
+++ gcc/config/i860/i860.h	2001/06/25 22:30:20
@@ -1207,15 +1207,6 @@ do { ASM_OUTPUT_ALIGN ((FILE), 2);					\
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print operand X (an rtx) in assembler syntax to file FILE.
    CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
    For `%' followed by punctuation, CODE is the punctuation and X is null.
============================================================
Index: gcc/config/i960/i960.h
--- gcc/config/i960/i960.h	2001/03/15 16:33:02	1.41
+++ gcc/config/i960/i960.h	2001/06/25 22:30:26
@@ -1536,15 +1536,6 @@ extern struct rtx_def *i960_compare_op0,
 
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
-
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL	007
-#define TARGET_BS	010
-#define TARGET_TAB	011
-#define TARGET_NEWLINE	012
-#define TARGET_VT	013
-#define TARGET_FF	014
-#define TARGET_CR	015
 
 /* Output assembler code to FILE to initialize this source file's
    basic block profiling info, if that has not already been done.  */
============================================================
Index: gcc/config/ia64/ia64.h
--- gcc/config/ia64/ia64.h	2001/05/21 03:14:31	1.67
+++ gcc/config/ia64/ia64.h	2001/06/25 22:30:36
@@ -505,22 +505,6 @@ while (0)
    at run-time.  This is used in `cpp'.  */
 /* #define MAX_WCHAR_TYPE_SIZE */
 
-/* A C constant expression for the integer value for escape sequence
-   `\a'.  */
-#define TARGET_BELL 0x7
-
-/* C constant expressions for the integer values for escape sequences
-   `\b', `\t' and `\n'.  */
-#define TARGET_BS	0x8
-#define TARGET_TAB	0x9
-#define TARGET_NEWLINE	0xa
-
-/* C constant expressions for the integer values for escape sequences
-   `\v', `\f' and `\r'.  */
-#define TARGET_VT	0xb
-#define TARGET_FF	0xc
-#define TARGET_CR	0xd
-
 
 /* Register Basics */
 
============================================================
Index: gcc/config/m32r/m32r.h
--- gcc/config/m32r/m32r.h	2001/06/11 16:58:56	1.38
+++ gcc/config/m32r/m32r.h	2001/06/25 22:30:43
@@ -484,15 +484,6 @@ extern enum m32r_sdata m32r_sdata;
 #define PTRDIFF_TYPE "long int"
 #define WCHAR_TYPE "short unsigned int"
 #define WCHAR_TYPE_SIZE 16
-
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
 
 /* Standard register usage.  */
 
============================================================
Index: gcc/config/m68hc11/m68hc11.h
--- gcc/config/m68hc11/m68hc11.h	2001/06/10 10:16:27	1.11
+++ gcc/config/m68hc11/m68hc11.h	2001/06/25 22:30:51
@@ -345,15 +345,6 @@ extern struct processor_costs *m68hc11_c
    where TARGET_SHORT is not available.  */
 #define WCHAR_TYPE              "short int"
 #define WCHAR_TYPE_SIZE         16
-
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL		007
-#define TARGET_BS		010
-#define TARGET_TAB		011
-#define TARGET_NEWLINE		012
-#define TARGET_VT		013
-#define TARGET_FF		014
-#define TARGET_CR		015
 
 
 /* Standard register usage.  */
============================================================
Index: gcc/config/m68k/m68k.h
--- gcc/config/m68k/m68k.h	2001/02/28 22:54:22	1.49
+++ gcc/config/m68k/m68k.h	2001/06/25 22:30:58
@@ -2039,15 +2039,6 @@ do { long l;						\
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Output a float value (represented as a C double) as an immediate operand.
    This macro is a 68k-specific macro.  */
 
============================================================
Index: gcc/config/m88k/m88k.h
--- gcc/config/m88k/m88k.h	2000/11/10 16:01:22	1.30
+++ gcc/config/m88k/m88k.h	2001/06/25 22:31:09
@@ -2238,15 +2238,6 @@ do {									 \
    in assembler code.  */
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
-
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
 
 /* Macros to deal with OCS debug information */
 
============================================================
Index: gcc/config/mcore/mcore.h
--- gcc/config/mcore/mcore.h	2001/05/26 01:31:43	1.6
+++ gcc/config/mcore/mcore.h	2001/06/25 22:31:14
@@ -1404,15 +1404,6 @@ extern long mcore_current_compilation_ti
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Target characters.  */
-#define TARGET_BELL	007
-#define TARGET_BS	010
-#define TARGET_TAB	011
-#define TARGET_NEWLINE	012
-#define TARGET_VT	013
-#define TARGET_FF	014
-#define TARGET_CR	015
-
 /* Print operand X (an rtx) in assembler syntax to file FILE.
    CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
    For `%' followed by punctuation, CODE is the punctuation and X is null.  */
============================================================
Index: gcc/config/mips/mips.h
--- gcc/config/mips/mips.h	2001/06/08 11:52:56	1.113
+++ gcc/config/mips/mips.h	2001/06/25 22:31:31
@@ -3996,15 +3996,6 @@ while (0)
   { "$fp",	30 + GP_REG_FIRST }					\
 }
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL	007
-#define TARGET_BS	010
-#define TARGET_TAB	011
-#define TARGET_NEWLINE	012
-#define TARGET_VT	013
-#define TARGET_FF	014
-#define TARGET_CR	015
-
 /* A C compound statement to output to stdio stream STREAM the
    assembler syntax for an instruction operand X.  X is an RTL
    expression.
============================================================
Index: gcc/config/mn10200/mn10200.h
--- gcc/config/mn10200/mn10200.h	2001/01/01 20:35:32	1.24
+++ gcc/config/mn10200/mn10200.h	2001/06/25 22:31:34
@@ -133,15 +133,6 @@ extern int target_flags;
 
 /* Define this as 1 if `char' should by default be signed; else as 0.  */
 #define DEFAULT_SIGNED_CHAR 0
-
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
 
 /* Standard register usage.  */
 
============================================================
Index: gcc/config/mn10300/mn10300.h
--- gcc/config/mn10300/mn10300.h	2001/05/03 15:19:15	1.44
+++ gcc/config/mn10300/mn10300.h	2001/06/25 22:31:38
@@ -130,15 +130,6 @@ extern int target_flags;
 
 /* Define this as 1 if `char' should by default be signed; else as 0.  */
 #define DEFAULT_SIGNED_CHAR 0
-
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
 
 /* Standard register usage.  */
 
============================================================
Index: gcc/config/ns32k/ns32k.h
--- gcc/config/ns32k/ns32k.h	2001/02/18 18:40:02	1.19
+++ gcc/config/ns32k/ns32k.h	2001/06/25 22:31:45
@@ -1661,15 +1661,6 @@ do {									\
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print an instruction operand X on file FILE.
    CODE is the code from the %-spec that requested printing this operand;
    if `%z3' was used to print operand 3, then CODE is 'z'. */
============================================================
Index: gcc/config/pa/pa.h
--- gcc/config/pa/pa.h	2001/05/07 15:28:50	1.113
+++ gcc/config/pa/pa.h	2001/06/25 22:31:53
@@ -1921,15 +1921,6 @@ while (0)
 /* All HP assemblers use "!" to separate logical lines.  */
 #define IS_ASM_LOGICAL_LINE_SEPARATOR(C) ((C) == '!')
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 #define PRINT_OPERAND_PUNCT_VALID_P(CHAR) \
   ((CHAR) == '@' || (CHAR) == '#' || (CHAR) == '*' || (CHAR) == '^')
 
============================================================
Index: gcc/config/pdp11/pdp11.h
--- gcc/config/pdp11/pdp11.h	2001/04/16 18:30:45	1.24
+++ gcc/config/pdp11/pdp11.h	2001/06/25 22:32:03
@@ -1202,15 +1202,6 @@ fprintf (FILE, "$help$: . = .+8 ; space 
 #define ASM_OPEN_PAREN "["
 #define ASM_CLOSE_PAREN "]"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print operand X (an rtx) in assembler syntax to file FILE.
    CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
    For `%' followed by punctuation, CODE is the punctuation and X is null.
============================================================
Index: gcc/config/pj/pj.h
--- gcc/config/pj/pj.h	2001/03/19 02:19:10	1.9
+++ gcc/config/pj/pj.h	2001/06/25 22:32:03
@@ -1246,15 +1246,6 @@ do { char dstr[30];                     
 /* We don't want the default switch handling.  */
 #undef ASM_OUTPUT_BEFORE_CASE_LABEL
 #undef ASM_OUTPUT_CASE_LABEL
-
-/* Target characters.  */
-#define TARGET_BELL     007
-#define TARGET_BS       010
-#define TARGET_TAB      011
-#define TARGET_NEWLINE  012
-#define TARGET_VT       013
-#define TARGET_FF       014
-#define TARGET_CR       015
 
 /* Print operand X (an rtx) in assembler syntax to file FILE.
    CODE is a letter or star or 0 if no letter was specified.
============================================================
Index: gcc/config/romp/romp.h
--- gcc/config/romp/romp.h	2001/01/01 20:35:35	1.14
+++ gcc/config/romp/romp.h	2001/06/25 22:32:08
@@ -1547,15 +1547,6 @@ struct rt_cargs {int gregs, fregs; };
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print operand X (an rtx) in assembler syntax to file FILE.
    CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
    For `%' followed by punctuation, CODE is the punctuation and X is null.  */
============================================================
Index: gcc/config/rs6000/rs6000.h
--- gcc/config/rs6000/rs6000.h	2001/06/22 17:38:20	1.114
+++ gcc/config/rs6000/rs6000.h	2001/06/25 22:32:19
@@ -2639,15 +2639,6 @@ do {									\
 #define EH_RETURN_DATA_REGNO(N) ((N) < 4 ? (N) + 3 : INVALID_REGNUM)
 #define EH_RETURN_STACKADJ_RTX  gen_rtx_REG (Pmode, 10)
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print operand X (an rtx) in assembler syntax to file FILE.
    CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
    For `%' followed by punctuation, CODE is the punctuation and X is null.  */
============================================================
Index: gcc/config/sh/sh.h
--- gcc/config/sh/sh.h	2001/06/21 19:37:35	1.104
+++ gcc/config/sh/sh.h	2001/06/25 22:32:27
@@ -2170,15 +2170,6 @@ do { char dstr[30];					\
 /* The assembler's parentheses characters.  */
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
-
-/* Target characters.  */
-#define TARGET_BELL	007
-#define TARGET_BS	010
-#define TARGET_TAB	011
-#define TARGET_NEWLINE	012
-#define TARGET_VT	013
-#define TARGET_FF	014
-#define TARGET_CR	015
 
 /* A C statement to be executed just prior to the output of
    assembler code for INSN, to modify the extracted operands so
============================================================
Index: gcc/config/sparc/sparc.h
--- gcc/config/sparc/sparc.h	2001/05/04 15:06:38	1.135
+++ gcc/config/sparc/sparc.h	2001/06/25 22:32:40
@@ -3262,15 +3262,6 @@ do {									\
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 #define PRINT_OPERAND_PUNCT_VALID_P(CHAR) \
   ((CHAR) == '#' || (CHAR) == '*' || (CHAR) == '^' || (CHAR) == '(' || (CHAR) == '_')
 
============================================================
Index: gcc/config/v850/v850.h
--- gcc/config/v850/v850.h	2001/06/22 17:38:20	1.36
+++ gcc/config/v850/v850.h	2001/06/25 22:32:46
@@ -304,15 +304,6 @@ extern struct small_memory_info small_me
 
    On the NEC V850, loads do sign extension, so make this default. */
 #define DEFAULT_SIGNED_CHAR 1
-
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
 
 /* Standard register usage.  */
 
============================================================
Index: gcc/config/vax/vax.h
--- gcc/config/vax/vax.h	2001/06/09 18:30:12	1.21
+++ gcc/config/vax/vax.h	2001/06/25 22:32:51
@@ -1265,15 +1265,6 @@ do {						\
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print an instruction operand X on file FILE.
    CODE is the code from the %-spec that requested printing this operand;
    if `%z3' was used to print operand 3, then CODE is 'z'.
============================================================
Index: gcc/config/we32k/we32k.h
--- gcc/config/we32k/we32k.h	2000/12/07 01:58:24	1.14
+++ gcc/config/we32k/we32k.h	2001/06/25 22:32:55
@@ -965,15 +965,6 @@ do {							\
 #define ASM_OPEN_PAREN "("
 #define ASM_CLOSE_PAREN ")"
 
-/* Define results of standard character escape sequences.  */
-#define TARGET_BELL 007
-#define TARGET_BS 010
-#define TARGET_TAB 011
-#define TARGET_NEWLINE 012
-#define TARGET_VT 013
-#define TARGET_FF 014
-#define TARGET_CR 015
-
 /* Print operand X (an rtx) in assembler syntax to file FILE.
    CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
    For `%' followed by punctuation, CODE is the punctuation and X is null. */
============================================================
Index: gcc/doc/tm.texi
--- gcc/doc/tm.texi	2001/06/25 00:21:28	1.9
+++ gcc/doc/tm.texi	2001/06/25 22:33:28
@@ -25,6 +25,7 @@ includes @file{tm.h} and most compiler s
 * Per-Function Data::   Defining data structures for per-function information.
 * Storage Layout::      Defining sizes and alignments of data.
 * Type Layout::         Defining sizes and properties of basic user data types.
+* Escape Sequences::    Defining the value of target character escape sequences
 * Registers::           Naming and describing the hardware registers.
 * Register Classes::    Defining the classes of hardware registers.
 * Stack and Calling::   Defining which way the stack grows and by how much.
@@ -1515,7 +1516,17 @@ In general, you should not have to defin
 in which function addresses are always even, according to
 @code{FUNCTION_BOUNDARY}, GCC will automatically define this macro to
 @code{ptrmemfunc_vbit_in_pfn}.
+@end table
+
+@node Escape Sequences
+@section Target Character Escape Sequences
+@cindex escape sequences
+
+By default, GCC assumes that the C character escape sequences take on
+their ASCII values for the target.  If this is not correct, you must
+explicitly define all of the macros below.
 
+@table @code
 @findex TARGET_BELL
 @item TARGET_BELL
 A C constant expression for the integer value for escape sequence


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]