This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Reduce alloca 'ted memory in dwarf2out.c
- From: Daniel Jacobowitz <drow at false dot org>
- To: Christophe Jaillet <christophe dot jaillet at wanadoo dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 13 Feb 2005 18:40:42 -0500
- Subject: Re: Reduce alloca 'ted memory in dwarf2out.c
- References: <00ac01c51224$cf65b900$96cefea9@none>
On Mon, Feb 14, 2005 at 12:36:15AM +0100, Christophe Jaillet wrote:
> Description : in gcc/dwarf2out.c, some memory allocated with alloca request
> too much. Just ask for what is needed
>
> Note : the first part of the patch assume that %x of comdat_symbol_number is
> less than 10 bytes
> The second part is always OK.
What benefit does this have? It's on the stack and not long-lived...
--
Daniel Jacobowitz
CodeSourcery, LLC