diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-11-19 18:30:04 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-11-19 18:30:04 +0000 |
commit | a5a9cb26e59353c633db9c6eb2eac959d1b3e697 (patch) | |
tree | d38cca3a838be751caa81283f2773ddf401654df /gcc | |
parent | 94e1e142fad70bb55a1e321e17cd876e74872b54 (diff) | |
download | gcc-a5a9cb26e59353c633db9c6eb2eac959d1b3e697.zip gcc-a5a9cb26e59353c633db9c6eb2eac959d1b3e697.tar.gz gcc-a5a9cb26e59353c633db9c6eb2eac959d1b3e697.tar.bz2 |
unix.h (ASM_FILE_START): Const-ify.
* a29k/unix.h (ASM_FILE_START): Const-ify.
* i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
* i386/isc.h (ASM_FILE_START): Const-ify.
* i386/sun386.h (ASM_FILE_START): Likewise.
* m32r.md: Likewise.
* m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
* m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
* m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
* mn10200.md: Initialize variable.
From-SVN: r47178
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/config/a29k/unix.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/beos-elf.h | 4 | ||||
-rw-r--r-- | gcc/config/i386/isc.h | 4 | ||||
-rw-r--r-- | gcc/config/i386/sun386.h | 4 | ||||
-rw-r--r-- | gcc/config/m32r/m32r.md | 4 | ||||
-rw-r--r-- | gcc/config/m68k/auxas.h | 2 | ||||
-rw-r--r-- | gcc/config/m68k/auxgas.h | 2 | ||||
-rw-r--r-- | gcc/config/m68k/tower.h | 2 | ||||
-rw-r--r-- | gcc/config/mn10200/mn10200.md | 2 |
10 files changed, 25 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 12f897d..63bbd14 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2001-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * a29k/unix.h (ASM_FILE_START): Const-ify. + * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon. + * i386/isc.h (ASM_FILE_START): Const-ify. + * i386/sun386.h (ASM_FILE_START): Likewise. + * m32r.md: Likewise. + * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets. + * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise. + * m68k/tower.h (REGISTER_NAMES): Remove semi-colon. + * mn10200.md: Initialize variable. + Mon Nov 19 18:06:21 CET 2001 Jan Hubicka <jh@suse.cz> * gcse.c (try_replace_reg): Copy RTX before creating note. diff --git a/gcc/config/a29k/unix.h b/gcc/config/a29k/unix.h index 29165e9..eae03bf 100644 --- a/gcc/config/a29k/unix.h +++ b/gcc/config/a29k/unix.h @@ -53,7 +53,7 @@ Boston, MA 02111-1307, USA. */ #undef ASM_FILE_START #define ASM_FILE_START(FILE) \ -{ char *p, *after_dir = main_input_filename; \ +{ const char *p, *after_dir = main_input_filename; \ if (TARGET_29050) \ fprintf (FILE, "\t.cputype 29050\n"); \ for (p = main_input_filename; *p; p++) \ diff --git a/gcc/config/i386/beos-elf.h b/gcc/config/i386/beos-elf.h index 519c666..be51b4a 100644 --- a/gcc/config/i386/beos-elf.h +++ b/gcc/config/i386/beos-elf.h @@ -188,7 +188,7 @@ Boston, MA 02111-1307, USA. */ { "/boot/develop/headers/posix", 0, 0, 0 },\ { "/boot/develop/headers", 0, 0, 0 }, \ { 0, 0, 0, 0 } \ - }; + } #else /* CROSS_COMPILE */ #undef INCLUDE_DEFAULTS #define INCLUDE_DEFAULTS \ @@ -230,7 +230,7 @@ Boston, MA 02111-1307, USA. */ { CROSS_INCLUDE_DIR "/posix", 0, 0, 0 },\ { CROSS_INCLUDE_DIR , 0, 0, 0 }, \ { 0, 0, 0, 0 } \ - }; + } #endif /* Whee. LIBRARY_PATH is Be's LD_LIBRARY_PATH, which of course will diff --git a/gcc/config/i386/isc.h b/gcc/config/i386/isc.h index 542a1c0..eea9811 100644 --- a/gcc/config/i386/isc.h +++ b/gcc/config/i386/isc.h @@ -74,8 +74,8 @@ #undef ASM_FILE_START #define ASM_FILE_START(FILE) \ do { \ - int len = strlen (main_input_filename); \ - char *na = main_input_filename + len; \ + const int len = strlen (main_input_filename); \ + const char *na = main_input_filename + len; \ char shorter[15]; \ /* NA gets MAIN_INPUT_FILENAME sans directory names. */\ while (na > main_input_filename) \ diff --git a/gcc/config/i386/sun386.h b/gcc/config/i386/sun386.h index 182f83b..86d8d95 100644 --- a/gcc/config/i386/sun386.h +++ b/gcc/config/i386/sun386.h @@ -59,8 +59,8 @@ do \ #define ASM_FILE_START(FILE) \ do { \ { \ - int len = strlen (main_input_filename); \ - char *na = main_input_filename + len; \ + const int len = strlen (main_input_filename); \ + const char *na = main_input_filename + len; \ char shorter[15]; \ /* NA gets MAIN_INPUT_FILENAME sans directory names. */\ while (na > main_input_filename) \ diff --git a/gcc/config/m32r/m32r.md b/gcc/config/m32r/m32r.md index 470a05d..2d10057 100644 --- a/gcc/config/m32r/m32r.md +++ b/gcc/config/m32r/m32r.md @@ -1510,7 +1510,7 @@ "" "* { - char *br,*invbr; + const char *br,*invbr; char asmtext[40]; switch (GET_CODE (operands[1])) @@ -1557,7 +1557,7 @@ "" "* { - char *br,*invbr; + const char *br,*invbr; char asmtext[40]; switch (GET_CODE (operands[1])) diff --git a/gcc/config/m68k/auxas.h b/gcc/config/m68k/auxas.h index 91b9e8b..3f368c7 100644 --- a/gcc/config/m68k/auxas.h +++ b/gcc/config/m68k/auxas.h @@ -74,7 +74,7 @@ Boston, MA 02111-1307, USA. */ #undef LOCAL_LABEL_PREFIX #define LOCAL_LABEL_PREFIX "L%" -#define ADDITIONAL_REGISTER_NAMES { "%a6", 14, "%a7", 15 } +#define ADDITIONAL_REGISTER_NAMES { {"%a6", 14}, {"%a7", 15} } #undef ASM_OUTPUT_INT #define ASM_OUTPUT_INT(FILE,VALUE) \ diff --git a/gcc/config/m68k/auxgas.h b/gcc/config/m68k/auxgas.h index 28d9f9e..b828848 100644 --- a/gcc/config/m68k/auxgas.h +++ b/gcc/config/m68k/auxgas.h @@ -37,7 +37,7 @@ Boston, MA 02111-1307, USA. */ #define NO_DOT_IN_LABEL #endif -#define ADDITIONAL_REGISTER_NAMES { "%fp", 14, "%a7", 15 } +#define ADDITIONAL_REGISTER_NAMES { {"%fp", 14}, {"%a7", 15} } #define ASM_MOV_INSN "movel" diff --git a/gcc/config/m68k/tower.h b/gcc/config/m68k/tower.h index 1c76368..7ae1a9e 100644 --- a/gcc/config/m68k/tower.h +++ b/gcc/config/m68k/tower.h @@ -88,7 +88,7 @@ Boston, MA 02111-1307, USA. */ #define REGISTER_NAMES \ {"%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%d6", "%d7", \ "%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%a6", "%sp", \ - "%fp0", "%fp1", "%fp2", "%fp3", "%fp4", "%fp5", "%fp6", "%fp7"}; + "%fp0", "%fp1", "%fp2", "%fp3", "%fp4", "%fp5", "%fp6", "%fp7"} #undef REGISTER_PREFIX #define REGISTER_PREFIX "%" diff --git a/gcc/config/mn10200/mn10200.md b/gcc/config/mn10200/mn10200.md index 2412198..0f5f4d0 100644 --- a/gcc/config/mn10200/mn10200.md +++ b/gcc/config/mn10200/mn10200.md @@ -264,7 +264,7 @@ default: { - long val; + long val = 0; REAL_VALUE_TYPE rv; if (GET_CODE (operands[1]) == CONST_DOUBLE) |