re PR pch/51722 (Options "-g3" or "-ggdb3" or "-g3 -gdwarf-2" and other "-g..level3...
authorJakub Jelinek <jakub@redhat.com>
Tue, 3 Jan 2012 13:45:41 +0000 (14:45 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 3 Jan 2012 13:45:41 +0000 (14:45 +0100)
commitc067f6cfb3395947b3e01d5df10263cbdf13bb85
treed355d49f5e1edd515b954e364af97891615a9371
parent5d2eb24bfa271a1ae3f9ec782792e4c39f1166db
re PR pch/51722 (Options "-g3" or "-ggdb3" or "-g3 -gdwarf-2" and other "-g..level3" - internal compiler error)

PR pch/51722
* dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
dwarf2out_undef): Allocate e.info using ggc_strdup instead
of xstrdup.
(output_macinfo_op): Don't ggc_strdup fd->filename.
(optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
then ggc_strdup it.  Don't free inc->info or cur->info.
(output_macinfo): Don't free ref->info or file->info.

From-SVN: r182845
gcc/ChangeLog
gcc/dwarf2out.c