X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fdepend.c;h=09ef8ae8d5d829a865b89a52c21622a3fc0ff167;hb=7243d0118af6f72e3e72db1eb66941fec4530963;hp=2dd35a4470c67b0c7011b67a317019607053c3e1;hpb=3b4dbbbf59aef4308bae6654bdc7968797504a3c;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/depend.c b/gas/depend.c index 2dd35a4470..09ef8ae8d5 100644 --- a/gas/depend.c +++ b/gas/depend.c @@ -1,5 +1,5 @@ /* depend.c - Handle dependency tracking. - Copyright (C) 1997-2016 Free Software Foundation, Inc. + Copyright (C) 1997-2018 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -67,7 +67,7 @@ register_dependency (const char *filename) return; } - dep = (struct dependency *) xmalloc (sizeof (struct dependency)); + dep = XNEW (struct dependency); dep->file = xstrdup (filename); dep->next = dep_chain; dep_chain = dep; @@ -121,8 +121,8 @@ quote_string_for_make (FILE *file, const char *src) if (file) putc (c, file); i++; - /* Fall through. This can mishandle things like "$(" but - there's no easy fix. */ + /* Fall through. */ + /* This can mishandle things like "$(" but there's no easy fix. */ default: ordinary_char: /* This can mishandle characters in the string "\0\n%*?[\\~";