This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PR 30460: asm_debug is not initialized in gcc.c


Hi there!

Please apply the following patch at least to 4.3, 4.2, and 4.1 because they
all have asm_debug uninitialized possibly leading to a SIGSEGV when providing
a custom specs file.  I have not checked older releases than the 4.1 tree but
most likely they suffer from the same problem.

Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c	(revision 120759)
+++ gcc/gcc.c	(working copy)
@@ -729,7 +729,7 @@
 # define SYSROOT_HEADERS_SUFFIX_SPEC ""
 #endif
 
-static const char *asm_debug;
+static const char *asm_debug = ASM_DEBUG_SPEC;
 static const char *cpp_spec = CPP_SPEC;
 static const char *cc1_spec = CC1_SPEC;
 static const char *cc1plus_spec = CC1PLUS_SPEC;

Robert

-- 
Robert Schiele
Dipl.-Wirtsch.informatiker	mailto:rschiele@gmail.com

"Quidquid latine dictum sit, altum sonatur."

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]