From b2b263e1cfd9fd2f0987c3a9526db4f13bfdfdf6 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Tue, 26 Jun 2001 06:36:44 +0000 Subject: [PATCH] defaults.h: Default escape sequences to ASCII. * 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. From-SVN: r43569 --- gcc/ChangeLog | 43 ++++++++++++++++++++++++++++++++++++ gcc/config/1750a/1750a.h | 10 --------- gcc/config/a29k/a29k.h | 9 -------- gcc/config/alpha/alpha.h | 9 -------- gcc/config/arc/arc.h | 9 -------- gcc/config/arm/arm.h | 9 -------- gcc/config/avr/avr.h | 11 --------- gcc/config/c4x/c4x.h | 11 --------- gcc/config/clipper/clipper.h | 9 -------- gcc/config/convex/convex.h | 9 -------- gcc/config/d30v/d30v.h | 16 -------------- gcc/config/dsp16xx/dsp16xx.h | 9 -------- gcc/config/elxsi/elxsi.h | 9 -------- gcc/config/fr30/fr30.h | 8 ------- gcc/config/h8300/h8300.h | 9 -------- gcc/config/i370/i370.h | 11 ++------- gcc/config/i386/i386.h | 9 -------- gcc/config/i860/i860.h | 9 -------- gcc/config/i960/i960.h | 9 -------- gcc/config/ia64/ia64.h | 16 -------------- gcc/config/m32r/m32r.h | 9 -------- gcc/config/m68hc11/m68hc11.h | 9 -------- gcc/config/m68k/m68k.h | 9 -------- gcc/config/m88k/m88k.h | 9 -------- gcc/config/mcore/mcore.h | 9 -------- gcc/config/mips/mips.h | 9 -------- gcc/config/mn10200/mn10200.h | 9 -------- gcc/config/mn10300/mn10300.h | 9 -------- gcc/config/ns32k/ns32k.h | 9 -------- gcc/config/pa/pa.h | 9 -------- gcc/config/pdp11/pdp11.h | 9 -------- gcc/config/pj/pj.h | 9 -------- gcc/config/romp/romp.h | 9 -------- gcc/config/rs6000/rs6000.h | 9 -------- gcc/config/sh/sh.h | 9 -------- gcc/config/sparc/sparc.h | 9 -------- gcc/config/v850/v850.h | 9 -------- gcc/config/vax/vax.h | 9 -------- gcc/config/we32k/we32k.h | 9 -------- gcc/defaults.h | 11 +++++++++ gcc/doc/tm.texi | 11 +++++++++ 41 files changed, 67 insertions(+), 360 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cef8ae54b24..a6bfbf70088 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,46 @@ +2001-06-26 Neil Booth + + * 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. + 2001-06-26 Gabriel Dos Reis * diagnostic.c (digit_buffer): Remove as global. Move to... diff --git a/gcc/config/1750a/1750a.h b/gcc/config/1750a/1750a.h index ea2e8bb5eee..c410378f740 100644 --- a/gcc/config/1750a/1750a.h +++ b/gcc/config/1750a/1750a.h @@ -1314,16 +1314,6 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA #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. diff --git a/gcc/config/a29k/a29k.h b/gcc/config/a29k/a29k.h index 3ee8bf7444f..5cf9906e2ac 100644 --- a/gcc/config/a29k/a29k.h +++ b/gcc/config/a29k/a29k.h @@ -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. */ diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index 20278da517a..f11fa184db3 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -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. */ diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index 04121fdc707..9026cf813fc 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -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. */ diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index ed444db8029..2057ae67c2f 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -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. */ diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h index 09399805744..79c868928e6 100644 --- a/gcc/config/avr/avr.h +++ b/gcc/config/avr/avr.h @@ -2884,17 +2884,6 @@ valid_machine_decl_attribute (DECL, ATTRIBUTES, IDENTIFIER, ARGS) 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") diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h index b344f4d4e04..49b903ee7d9 100644 --- a/gcc/config/c4x/c4x.h +++ b/gcc/config/c4x/c4x.h @@ -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 diff --git a/gcc/config/clipper/clipper.h b/gcc/config/clipper/clipper.h index 78ec8d060b7..f411fe3c33c 100644 --- a/gcc/config/clipper/clipper.h +++ b/gcc/config/clipper/clipper.h @@ -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'. diff --git a/gcc/config/convex/convex.h b/gcc/config/convex/convex.h index eb4d9363ce9..beed9a3feb2 100644 --- a/gcc/config/convex/convex.h +++ b/gcc/config/convex/convex.h @@ -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'. */ diff --git a/gcc/config/d30v/d30v.h b/gcc/config/d30v/d30v.h index ca015b6f4d1..3efa6d70fce 100644 --- a/gcc/config/d30v/d30v.h +++ b/gcc/config/d30v/d30v.h @@ -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. */ diff --git a/gcc/config/dsp16xx/dsp16xx.h b/gcc/config/dsp16xx/dsp16xx.h index 8aa0556800b..d5aa7c68b45 100644 --- a/gcc/config/dsp16xx/dsp16xx.h +++ b/gcc/config/dsp16xx/dsp16xx.h @@ -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. */ diff --git a/gcc/config/elxsi/elxsi.h b/gcc/config/elxsi/elxsi.h index 8aefa21dfbb..332172c361b 100644 --- a/gcc/config/elxsi/elxsi.h +++ b/gcc/config/elxsi/elxsi.h @@ -921,15 +921,6 @@ enum reg_class { NO_REGS, GENERAL_REGS, ALL_REGS, LIM_REG_CLASSES }; #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'. */ diff --git a/gcc/config/fr30/fr30.h b/gcc/config/fr30/fr30.h index 4d0e21fafd6..57d3f967a86 100644 --- a/gcc/config/fr30/fr30.h +++ b/gcc/config/fr30/fr30.h @@ -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. */ diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 74252e6d1fd..d4d3fc1547e 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -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. */ diff --git a/gcc/config/i370/i370.h b/gcc/config/i370/i370.h index 4f65617ec36..71e95c44dd1 100644 --- a/gcc/config/i370/i370.h +++ b/gcc/config/i370/i370.h @@ -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 /* ======================================================== */ diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 41404ac5505..10556e63b94 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -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. diff --git a/gcc/config/i860/i860.h b/gcc/config/i860/i860.h index 063e886b599..510a863b033 100644 --- a/gcc/config/i860/i860.h +++ b/gcc/config/i860/i860.h @@ -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. diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h index d006b23873f..8a1d0beed50 100644 --- a/gcc/config/i960/i960.h +++ b/gcc/config/i960/i960.h @@ -1536,15 +1536,6 @@ extern struct rtx_def *i960_compare_op0, *i960_compare_op1; #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. */ diff --git a/gcc/config/ia64/ia64.h b/gcc/config/ia64/ia64.h index 60c98581fda..20c40849aff 100644 --- a/gcc/config/ia64/ia64.h +++ b/gcc/config/ia64/ia64.h @@ -506,22 +506,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 */ diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h index 45983022bd6..238160592e8 100644 --- a/gcc/config/m32r/m32r.h +++ b/gcc/config/m32r/m32r.h @@ -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. */ diff --git a/gcc/config/m68hc11/m68hc11.h b/gcc/config/m68hc11/m68hc11.h index e0618043d21..0e9a65b5094 100644 --- a/gcc/config/m68hc11/m68hc11.h +++ b/gcc/config/m68hc11/m68hc11.h @@ -345,15 +345,6 @@ extern struct processor_costs *m68hc11_cost; 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. */ diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h index f12981e08bb..133e16ff297 100644 --- a/gcc/config/m68k/m68k.h +++ b/gcc/config/m68k/m68k.h @@ -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. */ diff --git a/gcc/config/m88k/m88k.h b/gcc/config/m88k/m88k.h index 59c0f59c499..73015c16734 100644 --- a/gcc/config/m88k/m88k.h +++ b/gcc/config/m88k/m88k.h @@ -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 */ diff --git a/gcc/config/mcore/mcore.h b/gcc/config/mcore/mcore.h index 94816e95938..ce1234ac393 100644 --- a/gcc/config/mcore/mcore.h +++ b/gcc/config/mcore/mcore.h @@ -1404,15 +1404,6 @@ extern long mcore_current_compilation_timestamp; #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. */ diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 8375bbf921d..b39f8f258f1 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -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. diff --git a/gcc/config/mn10200/mn10200.h b/gcc/config/mn10200/mn10200.h index fe552ce0d46..20639b8ea24 100644 --- a/gcc/config/mn10200/mn10200.h +++ b/gcc/config/mn10200/mn10200.h @@ -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. */ diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h index 9826db6cad0..55a427ad929 100644 --- a/gcc/config/mn10300/mn10300.h +++ b/gcc/config/mn10300/mn10300.h @@ -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. */ diff --git a/gcc/config/ns32k/ns32k.h b/gcc/config/ns32k/ns32k.h index a85e1121364..9a377b5a901 100644 --- a/gcc/config/ns32k/ns32k.h +++ b/gcc/config/ns32k/ns32k.h @@ -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'. */ diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 1691ba46a9a..d006fbeb20e 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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) == '^') diff --git a/gcc/config/pdp11/pdp11.h b/gcc/config/pdp11/pdp11.h index 08b7849b0d9..58ce77ff6b3 100644 --- a/gcc/config/pdp11/pdp11.h +++ b/gcc/config/pdp11/pdp11.h @@ -1202,15 +1202,6 @@ fprintf (FILE, "$help$: . = .+8 ; space for tmp moves!\n") \ #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. diff --git a/gcc/config/pj/pj.h b/gcc/config/pj/pj.h index a5f5ebaa3e7..8bd28f1c575 100644 --- a/gcc/config/pj/pj.h +++ b/gcc/config/pj/pj.h @@ -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. diff --git a/gcc/config/romp/romp.h b/gcc/config/romp/romp.h index 1ba8769f460..ce9fcd7de8c 100644 --- a/gcc/config/romp/romp.h +++ b/gcc/config/romp/romp.h @@ -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. */ diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 260262a1b3d..230cdc8c941 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -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. */ diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index 2e9f76e1fee..0707977bcf9 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -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 diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index a8107561d21..ac0bcb0415a 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -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) == '_') diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h index 4c94e80e458..9b348c7aab4 100644 --- a/gcc/config/v850/v850.h +++ b/gcc/config/v850/v850.h @@ -304,15 +304,6 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max]; 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. */ diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h index a3a9dde538d..4cbb1041eb2 100644 --- a/gcc/config/vax/vax.h +++ b/gcc/config/vax/vax.h @@ -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'. diff --git a/gcc/config/we32k/we32k.h b/gcc/config/we32k/we32k.h index 5da5d27f831..e448cabe36f 100644 --- a/gcc/config/we32k/we32k.h +++ b/gcc/config/we32k/we32k.h @@ -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. */ diff --git a/gcc/defaults.h b/gcc/defaults.h index cf104249886..75c42253fdf 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -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. */ diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 68064458dd3..1b1c5663e0b 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -25,6 +25,7 @@ includes @file{tm.h} and most compiler source files include * 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 define this macro. On architectures 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 -- 2.30.2