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]

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


> 
> 
> --MziYxCZO8WOaTd4I
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
> 
> 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 providi=
> ng
> a custom specs file.  I have not checked older releases than the 4.1 tree b=
> ut
> most likely they suffer from the same problem.

You should read init_spec in gcc.c:

  /* Initialize here, not in definition.  The IRIX 6 O32 cc sometimes chokes
     on ?: in file-scope variable initializations.  */
  asm_debug = ASM_DEBUG_SPEC;

Which came in from:
r55259 | ro | 2002-07-05 05:33:52 -0700 (Fri, 05 Jul 2002) | 3 lines
http://gcc.gnu.org/ml/gcc-patches/2002-07/msg00208.html

-- Pinski


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