summaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-06 18:03:55 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-06 18:03:55 +0000
commit8934cb0c1a05849af6e704514c5e71ad7fbb04a1 (patch)
tree7fa5d8f5f3c3151a83a03d4b9ff54f281c145164 /gcc/builtins.c
parenta7ec4a7ed7c16e661c59ae7a2e5b61950cdfb73d (diff)
downloadgcc-8934cb0c1a05849af6e704514c5e71ad7fbb04a1.tar.gz
* builtins.c (built_in_class_names, built_in_names): Constify a
char*. * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not int. (_mcleanup): Ensure value matches format specifier in sprintf. * cpphash.c (special_symbol): Don't needlessly cast away const-ness. * cppinit.c (base_name): Delete unused prototype. * mkdeps.c (deps_init): Make definition K&R safe. * tree.h (built_in_class_names, built_in_names): Constify a char*. f: * ansify.c (die_unless): Don't use ANSI string concatenation. (die): Mark with ATTRIBUTE_NORETURN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32364 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index c77d51c496d..a38f3c4b861 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -57,10 +57,10 @@ Boston, MA 02111-1307, USA. */
#endif
/* Define the names of the builtin function types and codes. */
-char *built_in_class_names[4]
+const char *const built_in_class_names[4]
= {"NOT_BUILT_IN", "BUILT_IN_FRONTEND", "BUILT_IN_MD", "BUILT_IN_NORMAL"};
-char *built_in_names[(int) END_BUILTINS] =
+const char *const built_in_names[(int) END_BUILTINS] =
{"BUILT_IN_ALLOCA", "BUILT_IN_ABS", "BUILT_IN_FABS", "BUILT_IN_LABS",
"BUILT_IN_FFS", "BUILT_IN_DIV", "BUILT_IN_LDIV", "BUILT_IN_FFLOOR",
"BUILT_IN_FCEIL", "BUILT_IN_FMOD", "BUILT_IN_FREM", "BUILT_IN_MEMCPY",