aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-03-19 12:43:55 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-03-19 12:43:55 +0000
commit8db99db275183d379d0b6f2cd80942f6f5f5b4b2 (patch)
tree44ab1abac4ea78664a7aac624e55999489833429 /gcc/cppfiles.c
parentb03a08ee0f0d0c64d3d0df60730d078b26c49876 (diff)
downloadgcc-8db99db275183d379d0b6f2cd80942f6f5f5b4b2.zip
gcc-8db99db275183d379d0b6f2cd80942f6f5f5b4b2.tar.gz
gcc-8db99db275183d379d0b6f2cd80942f6f5f5b4b2.tar.bz2
Warning fixes:
* cccp.c (create_definition): Cast to U_CHAR* when assigning to one. * cppfiles.c (read_and_prescan): Likewise. Start a #define in column 0. * cpplib.c (cpp_define): Cast to U_CHAR* when assigning to one. (cpp_push_buffer): Likewise for cpp_buffer*. (do_include): Change the type of `fbeg' and `fend' to unsigned char*. (do_endif): Cast to char* when assigning to one. (do_assert): Likewise. (do_unassert): Likewise. (cpp_read_check_assertion): Change the type of `name' to U_CHAR*. Don't do unnecessary cast to char* anymore. * genrecog.c (make_insn_sequence): Cast to char** when assigning to one. Cast the first argument of bzero to PTR. * loop.c (strength_reduce): Remove unused variable `note'. * reload1.c (new_insn_chain): Cast to struct insn_chain* when assigning to one. * rtl.c (copy_rtx): Use memcpy instead of bcopy. From-SVN: r25860
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index f03b1e2..aac49bd 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -814,7 +814,7 @@ read_and_prescan (pfile, fp, desc, len)
int desc;
size_t len;
{
- U_CHAR *buf = xmalloc (len);
+ U_CHAR *buf = (U_CHAR *) xmalloc (len);
U_CHAR *ip, *op, *line_base;
U_CHAR *ibase;
unsigned int line, deferred_newlines;
@@ -829,11 +829,11 @@ read_and_prescan (pfile, fp, desc, len)
/* Table of characters that can't be handled in the inner loop.
Keep these contiguous to optimize the performance of the code generated
for the switch that uses them. */
- #define SPECCASE_EMPTY 0
- #define SPECCASE_NUL 1
- #define SPECCASE_CR 2
- #define SPECCASE_BACKSLASH 3
- #define SPECCASE_QUESTION 4
+#define SPECCASE_EMPTY 0
+#define SPECCASE_NUL 1
+#define SPECCASE_CR 2
+#define SPECCASE_BACKSLASH 3
+#define SPECCASE_QUESTION 4
U_CHAR speccase[256];
offset = 0;