summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-06 14:19:30 +0000
committermikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-06 14:19:30 +0000
commit5e7a685404f466f7b9e4210d1f5e3744f58eea92 (patch)
treeeda5abca351d14ba540db16153d82550ac2d3e51
parentc4ba60aed37a4f450d1f0904f23f61d94027e369 (diff)
downloadppe42-gcc-5e7a685404f466f7b9e4210d1f5e3744f58eea92.tar.gz
ppe42-gcc-5e7a685404f466f7b9e4210d1f5e3744f58eea92.zip
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
* 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
-rw-r--r--gcc/fortran/ChangeLog4
-rw-r--r--gcc/fortran/module.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 8d8fc7fbf5c..b4252ec7f79 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,5 +1,9 @@
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
+ * module.c (read_module): Remove useless string duplication.
+
+2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
+
* gfortranspec.c (append_arg): Remove commented code.
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index c90fe0d298f..02f57566d6c 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
OpenPOWER on IntegriCloud