diff options
author | Dodji Seketeli <dodji@redhat.com> | 2009-09-01 08:45:38 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@gcc.gnu.org> | 2009-09-01 10:45:38 +0200 |
commit | d3bc57f2818b12de38aaaa41dcfecf80dd3114e3 (patch) | |
tree | 37d685fa90f26d4f9c6dc3f84512e93c747c67cf /gcc/dwarf2out.c | |
parent | 71c00b5c9996d96beed71c4998df027363b19091 (diff) | |
download | gcc-d3bc57f2818b12de38aaaa41dcfecf80dd3114e3.zip gcc-d3bc57f2818b12de38aaaa41dcfecf80dd3114e3.tar.gz gcc-d3bc57f2818b12de38aaaa41dcfecf80dd3114e3.tar.bz2 |
Fix bootstrap after patch PR debug/30161
gcc/ChangeLog:
PR bootstrap/41205
Fix AIX bootstrap after PR debug/30161
* dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
that is a GNU extension.
(tmpl_value_parm_die_table): Move the definition of this global
outside #ifdef DWARF2_DEBUGGING_INFO region.
gcc/cp/ChangeLog:
PR bootstrap/41205
* pt.c (make_ith_pack_parameter_name): Don't use strnlen that is a
GNU extension.
From-SVN: r151262
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index c9c0188..0dfe4f6 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -5693,14 +5693,14 @@ static GTY(()) int label_num; /* Cached result of previous call to lookup_filename. */ static GTY(()) struct dwarf_file_data * file_table_last_lookup; +static GTY(()) VEC(die_arg_entry,gc) *tmpl_value_parm_die_table; + #ifdef DWARF2_DEBUGGING_INFO /* Offset from the "steady-state frame pointer" to the frame base, within the current function. */ static HOST_WIDE_INT frame_pointer_fb_offset; -static GTY(()) VEC(die_arg_entry,gc) *tmpl_value_parm_die_table; - /* Forward declarations for functions defined in this file. */ static int is_pseudo_reg (const_rtx); @@ -10387,7 +10387,7 @@ make_ith_pack_parameter_name (tree name, int i) snprintf (numbuf, NUMBUF_LEN, "%i", i); newname_len = IDENTIFIER_LENGTH (name) - + strnlen (numbuf, NUMBUF_LEN) + 2; + + strlen (numbuf) + 2; newname = (char*) alloca (newname_len); snprintf (newname, newname_len, "%s#%i", IDENTIFIER_POINTER (name), i); |