projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34536f9
)
(main): Use strncmp when testing for gstabs+ vs gstabs.
author
Richard Stallman
<rms@gnu.org>
Mon, 9 Nov 1992 20:10:20 +0000
(20:10 +0000)
committer
Richard Stallman
<rms@gnu.org>
Mon, 9 Nov 1992 20:10:20 +0000
(20:10 +0000)
From-SVN: r2727
gcc/toplev.c
patch
|
blob
|
history
diff --git
a/gcc/toplev.c
b/gcc/toplev.c
index 1c340fa618ffe95b650e03d332a27d34f42e9c88..2b3f7111f6b6e2a804ba9c40e3e86a820c067d4d 100644
(file)
--- a/
gcc/toplev.c
+++ b/
gcc/toplev.c
@@
-3126,7
+3126,8
@@
You Lose! You must define PREFERRED_DEBUGGING_TYPE!
if (write_symbols == DBX_DEBUG && !strncmp (str, "ggdb", len)
&& len >= 2)
use_gnu_debug_info_extensions = 1;
- else if (write_symbols == DBX_DEBUG && !strcmp (str, "gstabs+"))
+ else if (write_symbols == DBX_DEBUG && !strncmp (str, "gstabs+", len)
+ && len >= 7)
use_gnu_debug_info_extensions = 1;
else if (write_symbols == DBX_DEBUG
&& !strncmp (str, "gstabs", len) && len >= 2)