diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-07-19 14:47:15 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-07-19 14:47:15 +0000 |
commit | 703ad42b4be14b9b1e84816dede360721361ed86 (patch) | |
tree | f3d03226f923b6c64639256ed34bd193427950a7 /gcc/cppfiles.c | |
parent | 308ca868d327f306ac4b87741ed828a56e524fd0 (diff) | |
download | gcc-703ad42b4be14b9b1e84816dede360721361ed86.zip gcc-703ad42b4be14b9b1e84816dede360721361ed86.tar.gz gcc-703ad42b4be14b9b1e84816dede360721361ed86.tar.bz2 |
alias.c [...]: Remove unnecessary casts.
* alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
genemit.c genextract.c genoutput.c genrecog.c gensupport.c
ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
postreload.c prefix.c print-tree.c protoize.c ra-build.c
ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
regmove.c regrename.c reload.c reload1.c reorg.c resource.c
sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
casts.
From-SVN: r69587
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 742e5f1..55eaed3 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -459,7 +459,7 @@ read_include_file (cpp_reader *pfile, struct include_file *inc) size = inc->st.st_size; { - buf = (uchar *) xmalloc (size + 1); + buf = xmalloc (size + 1); offset = 0; while (offset < size) { @@ -494,7 +494,7 @@ read_include_file (cpp_reader *pfile, struct include_file *inc) bigger than the majority of C source files. */ size = 8 * 1024; - buf = (uchar *) xmalloc (size + 1); + buf = xmalloc (size + 1); offset = 0; while ((count = read (inc->fd, buf + offset, size - offset)) > 0) { @@ -553,7 +553,7 @@ cpp_included (cpp_reader *pfile, const char *fname) } /* Search directory path for the file. */ - name = (char *) alloca (strlen (fname) + pfile->max_include_len + 2); + name = alloca (strlen (fname) + pfile->max_include_len + 2); for (path = pfile->quote_include; path; path = path->next) { memcpy (name, path->name, path->len); @@ -611,7 +611,7 @@ find_include_file (cpp_reader *pfile, const char *fname, int angle_brackets, } /* Search directory path for the file. */ - name = (char *) alloca (strlen (fname) + pfile->max_include_len + 2); + name = alloca (strlen (fname) + pfile->max_include_len + 2); for (; path; path = path->next) { int len = path->len; @@ -924,14 +924,13 @@ read_name_map (cpp_reader *pfile, const char *dirname) if (! strcmp (map_list_ptr->map_list_name, dirname)) return map_list_ptr->map_list_map; - map_list_ptr = ((struct file_name_map_list *) - xmalloc (sizeof (struct file_name_map_list))); + map_list_ptr = xmalloc (sizeof (struct file_name_map_list)); map_list_ptr->map_list_name = xstrdup (dirname); /* The end of the list ends in NULL. */ map_list_ptr->map_list_map = NULL; - name = (char *) alloca (strlen (dirname) + strlen (FILE_NAME_MAP_FILE) + 2); + name = alloca (strlen (dirname) + strlen (FILE_NAME_MAP_FILE) + 2); strcpy (name, dirname); if (*dirname) strcat (name, "/"); @@ -955,8 +954,7 @@ read_name_map (cpp_reader *pfile, const char *dirname) ; to = read_filename_string (ch, f); - ptr = ((struct file_name_map *) - xmalloc (sizeof (struct file_name_map))); + ptr = xmalloc (sizeof (struct file_name_map)); ptr->map_from = from; /* Make the real filename absolute. */ @@ -1025,7 +1023,7 @@ remap_filename (cpp_reader *pfile, char *name, struct cpp_path *loc) if (p == name) cpp_error (pfile, DL_ICE, "absolute file name in remap_filename"); - dir = (char *) alloca (p - name + 1); + dir = alloca (p - name + 1); memcpy (dir, name, p - name); dir[p - name] = '\0'; from = p + 1; |