From 5e7a685404f466f7b9e4210d1f5e3744f58eea92 Mon Sep 17 00:00:00 2001 From: mikael Date: Wed, 6 Oct 2010 14:19:30 +0000 Subject: [PATCH] 2010-10-06 Mikael Morin * module.c (read_module): Remove useless string duplication. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165028 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/fortran/ChangeLog | 4 ++++ gcc/fortran/module.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 8d8fc7f..b4252ec 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,9 @@ 2010-10-06 Mikael Morin + * module.c (read_module): Remove useless string duplication. + +2010-10-06 Mikael Morin + * gfortranspec.c (append_arg): Remove commented code. 2010-10-06 Mikael Morin diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c index c90fe0d..02f5756 100644 --- a/gcc/fortran/module.c +++ b/gcc/fortran/module.c @@ -4372,8 +4372,8 @@ read_module (void) p = name; /* Exception: Always import vtabs & vtypes. */ - if (p == NULL && (strcmp (xstrndup (name,5), "vtab$") == 0 - || strcmp (xstrndup (name,6), "vtype$") == 0)) + if (p == NULL && (strncmp (name, "vtab$", 5) == 0 + || strncmp (name, "vtype$", 6) == 0)) p = name; /* Skip symtree nodes not in an ONLY clause, unless there -- 2.7.4