12016-06-03  Release Manager
2
3	* GCC 5.4.0 released.
4
52016-05-18  Uros Bizjak  <ubizjak@gmail.com>
6
7	PR target/71161
8	* elf.c (phdr_callback) [__i386__]: Add
9	__attribute__((__force_align_arg_pointer__)).
10
112015-12-04  Release Manager
12
13	* GCC 5.3.0 released.
14
152015-07-16  Release Manager
16
17	* GCC 5.2.0 released.
18
192015-04-22  Release Manager
20
21	* GCC 5.1.0 released.
22
232015-01-24  Matthias Klose  <doko@ubuntu.com>
24
25	* configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
26	* configure: Regenerate.
27
282015-01-05  Jakub Jelinek  <jakub@redhat.com>
29
30	Update copyright years.
31
322014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
33
34	PR bootstrap/63784
35	* configure: Regenerated.
36
372014-11-11  David Malcolm  <dmalcolm@redhat.com>
38
39	* ChangeLog.jit: New.
40
412014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
42
43	PR target/63610
44	* configure: Regenerate.
45
462014-10-23  Ian Lance Taylor  <iant@google.com>
47
48	* internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
49	Fix to return void *.
50
512014-05-08  Ian Lance Taylor  <iant@google.com>
52
53	* mmap.c (backtrace_free): If freeing a large aligned block of
54	memory, call munmap rather than holding onto it.
55	(backtrace_vector_grow): When growing a vector, double the number
56	of pages requested.  When releasing the old version of a grown
57	vector, pass the correct size to backtrace_free.
58
592014-03-07  Ian Lance Taylor  <iant@google.com>
60
61	* sort.c (backtrace_qsort): Use middle element as pivot.
62
632014-03-06  Ian Lance Taylor  <iant@google.com>
64
65	* sort.c: New file.
66	* stest.c: New file.
67	* internal.h (backtrace_qsort): Declare.
68	* dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
69	(read_line_info, read_function_entry): Likewise.
70	(read_function_info, build_dwarf_data): Likewise.
71	* elf.c (elf_initialize_syminfo): Likewise.
72	* Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
73	(stest_SOURCES, stest_LDADD): Define.
74	(check_PROGRAMS): Add stest.
75
762014-02-07  Misty De Meo  <misty@brew.sh>
77
78	PR target/58710
79	* configure.ac: Use AC_LINK_IFELSE in check for
80	_Unwind_GetIPInfo.
81	* configure: Regenerate.
82
832014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
84
85	Update copyright years
86
872013-12-06  Jakub Jelinek  <jakub@redhat.com>
88
89	* elf.c (ET_DYN): Undefine and define again.
90	(elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
91	return early -1 without closing the descriptor.
92	(struct phdr_data): Add exe_descriptor.
93	(phdr_callback): If pd->exe_descriptor is not -1, for very first
94	call if dlpi_name is NULL just call elf_add with the exe_descriptor,
95	otherwise backtrace_close the exe_descriptor if not -1.  Adjust
96	call to elf_add.
97	(backtrace_initialize): Adjust call to elf_add.  If it returns
98	-1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
99
1002013-12-05  Ian Lance Taylor  <iant@google.com>
101
102	* alloc.c (backtrace_vector_finish): Add error_callback and data
103	parameters.  Call backtrace_vector_release.  Return address base.
104	* mmap.c (backtrace_vector_finish): Add error_callback and data
105	parameters.  Return address base.
106	* dwarf.c (read_function_info): Get new address base from
107	backtrace_vector_finish.
108	* internal.h (backtrace_vector_finish): Update declaration.
109
1102013-11-27  Ian Lance Taylor  <iant@google.com>
111
112	* dwarf.c (find_address_ranges): New static function, broken out
113	of build_address_map.
114	(build_address_map): Call it.
115	* btest.c (check): Check for missing filename or function, rather
116	than crashing.
117	(f3): Check that enough frames were returned.
118
1192013-11-19  Jakub Jelinek  <jakub@redhat.com>
120
121	* backtrace.h (backtrace_syminfo_callback): Add symsize argument.
122	* elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
123	last argument.
124	* btest.c (struct symdata): Add size field.
125	(callback_three): Add symsize argument.  Copy it to the data->size
126	field.
127	(f23): Set symdata.size to 0.
128	(test5): Likewise.  If sizeof (int) > 1, lookup address of
129	((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
130	values.
131
132	* atomic.c: Include sys/types.h.
133
1342013-11-18  Ian Lance Taylor  <iant@google.com>
135
136	* configure.ac: Check for support of __atomic extensions.
137	* internal.h: Declare or #define atomic functions for use in
138	backtrace code.
139	* atomic.c: New file.
140	* dwarf.c (dwarf_lookup_pc): Use atomic functions.
141	(dwarf_fileline, backtrace_dwarf_add): Likewise.
142	* elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
143	(backtrace_initialize): Likewise.
144	* fileline.c (fileline_initialize): Likewise.
145	* Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
146	* configure, config.h.in, Makefile.in: Rebuild.
147
1482013-11-18  Jakub Jelinek  <jakub@redhat.com>
149
150	* elf.c (SHN_UNDEF): Define.
151	(elf_initialize_syminfo): Add base_address argument.  Ignore symbols
152	with st_shndx == SHN_UNDEF.  Add base_address to address fields.
153	(elf_add): Adjust caller.
154
155	* elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
156
1572013-11-16  Ian Lance Taylor  <iant@google.com>
158
159	* backtrace.h (backtrace_create_state): Correct comment about
160	threading.
161
1622013-11-15  Ian Lance Taylor  <iant@google.com>
163
164	* backtrace.h (backtrace_syminfo): Update comment and parameter
165	name to take any address, not just a PC value.
166	* elf.c (STT_OBJECT): Define.
167	(elf_nosyms): Rename parameter pc to addr.
168	(elf_symbol_search): Rename local variable pc to addr.
169	(elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
170	(elf_syminfo): Rename parameter pc to addr.
171	* btest.c (global): New global variable.
172	(test5): New test.
173	(main): Call test5.
174
1752013-10-17  Ian Lance Taylor  <iant@google.com>
176
177	* elf.c (elf_add): Don't get the wrong offsets if a debug section
178	is missing.
179
1802013-10-15  David Malcolm  <dmalcolm@redhat.com>
181
182	* configure.ac: Add --enable-host-shared, setting up
183	pre-existing PIC_FLAG variable within Makefile.am et al.
184	* configure: Regenerate.
185
1862013-09-20  Alan Modra  <amodra@gmail.com>
187
188	* configure: Regenerate.
189
1902013-07-23  Alexander Monakov  <amonakov@ispras.ru>
191
192	* elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
193
1942013-07-23  Alexander Monakov  <amonakov@ispras.ru>
195
196	* elf.c (backtrace_initialize): Pass elf_fileline_fn to
197	dl_iterate_phdr callbacks.
198
1992013-03-25  Ian Lance Taylor  <iant@google.com>
200
201	* alloc.c: #include <sys/types.h>.
202	* mmap.c: Likewise.
203
2042013-01-31  Ian Lance Taylor  <iant@google.com>
205
206	* dwarf.c (read_function_info): Permit fvec parameter to be NULL.
207	(dwarf_lookup_pc): Don't use ddata->fvec if threaded.
208
2092013-01-25  Jakub Jelinek  <jakub@redhat.com>
210
211	PR other/56076
212	* dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
213	attribute was not seen.
214
2152013-01-16  Ian Lance Taylor  <iant@google.com>
216
217	* dwarf.c (struct unit): Add filename and abs_filename fields.
218	(build_address_map): Set new fields when reading unit.
219	(dwarf_lookup_pc): If we don't find an entry in the line table,
220	just return the main file name.
221
2222013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
223
224	Update copyright years.
225
2262013-01-01  Ian Lance Taylor  <iant@google.com>
227
228	PR bootstrap/54834
229	* Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
230	$(MULTIBUILDTOP)/../../gcc/include.
231	* Makefile.in: Rebuild.
232
2332013-01-01  Ian Lance Taylor  <iant@google.com>
234
235	PR other/55536
236	* mmap.c (backtrace_alloc): Don't call sync functions if not
237	threaded.
238	(backtrace_free): Likewise.
239
2402012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
241
242	* mmapio.c: Define MAP_FAILED if not defined.
243
2442012-12-11  Jakub Jelinek  <jakub@redhat.com>
245
246	PR bootstrap/54926
247	* Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
248	* configure.ac: If --with-target-subdir, add -frandom-seed=$@
249	to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
250	accepts it.
251	* Makefile.in: Regenerated.
252	* configure: Regenerated.
253
2542012-12-07  Jakub Jelinek  <jakub@redhat.com>
255
256	PR bootstrap/54926
257	* Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
258	* Makefile.in: Regenerated.
259
2602012-11-20  Ian Lance Taylor  <iant@google.com>
261
262	* dwarf.c (read_attribute): Always clear val.
263
2642012-11-13  Ian Lance Taylor  <iant@google.com>
265
266	PR other/55312
267	* configure.ac: Only add -Werror if building a target library.
268	* configure: Rebuild.
269
2702012-11-12  Ian Lance Taylor  <iant@google.com>
271	    Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
272	    Gerald Pfeifer  <gerald@pfeifer.com>
273
274	* configure.ac: Check for getexecname.
275	* fileline.c: #include <errno.h>.  Define getexecname if not
276	available.
277	(fileline_initialize): Try to find the executable in a few
278	different ways.
279	* print.c (error_callback): Only print the filename if it came
280	from the backtrace state.
281	* configure, config.h.in: Rebuild.
282
2832012-10-29  Ian Lance Taylor  <iant@google.com>
284
285	* mmap.c (backtrace_vector_release): Correct last patch: add
286	aligned, not size.
287
2882012-10-29  Ian Lance Taylor  <iant@google.com>
289
290	* mmap.c (backtrace_vector_release): Make sure freed block is
291	aligned on 8-byte boundary.
292
2932012-10-26  Ian Lance Taylor  <iant@google.com>
294
295	PR other/55087
296	* posix.c (backtrace_open): Add does_not_exist parameter.
297	* elf.c (phdr_callback): Do not warn if shared library could not
298	be opened.
299	* fileline.c (fileline_initialize): Update calls to
300	backtrace_open.
301	* internal.h (backtrace_open): Update declaration.
302
3032012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
304
305	PR target/55061
306	* configure.ac: Check for _Unwind_GetIPInfo function declaration.
307	* configure: Regenerate.
308
3092012-10-24  Ian Lance Taylor  <iant@google.com>
310
311	PR target/55061
312	* configure.ac: Check whether -funwind-tables option works.
313	* configure: Rebuild.
314
3152012-10-11  Ian Lance Taylor  <iant@google.com>
316
317	* configure.ac: Do not use dl_iterate_phdr on Solaris 10.
318	* configure: Rebuild.
319
3202012-10-10  Ian Lance Taylor  <iant@google.com>
321
322	* elf.c: Rename all Elf typedefs to start with b_elf, and be all
323	lower case.
324
3252012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
326
327	* elf.c (elf_add_syminfo_data): Add casts to avoid warning.
328
3292012-10-09  Ian Lance Taylor  <iant@google.com>
330
331	* dwarf.c (dwarf_fileline): Add cast to avoid warning.
332	(backtrace_dwarf_add): Likewise.
333
3342012-10-09  Ian Lance Taylor  <iant@google.com>
335
336	Add support for tracing through shared libraries.
337	* configure.ac: Check for link.h and dl_iterate_phdr.
338	* elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
339	ELF macros before #defining them.
340	(dl_phdr_info, dl_iterate_phdr): Define if system does not have
341	dl_iterate_phdr.
342	(struct elf_syminfo_data): Add next field.
343	(elf_initialize_syminfo): Initialize next field.
344	(elf_add_syminfo_data): New static function.
345	(elf_add): New static function, broken out of
346	backtrace_initialize.  Call backtrace_dwarf_add instead of
347	backtrace_dwarf_initialize.
348	(struct phdr_data): Define.
349	(phdr_callback): New static function.
350	(backtrace_initialize): Call elf_add.
351	* dwarf.c (struct dwarf_data): Add next and base_address fields.
352	(add_unit_addr): Add base_address parameter.  Change all callers.
353	(add_unit_ranges, build_address_map): Likewise.
354	(add_line): Add ddata parameter.  Change all callers.
355	(read_line_program, add_function_range): Likewise.
356	(dwarf_lookup_pc): New static function, broken out of
357	dwarf_fileline.
358	(dwarf_fileline): Call dwarf_lookup_pc.
359	(build_dwarf_data): New static function.
360	(backtrace_dwarf_add): New function.
361	(backtrace_dwarf_initialize): Remove.
362	* internal.h (backtrace_dwarf_initialize): Don't declare.
363	(backtrace_dwarf_add): Declare.
364	* configure, config.h.in: Rebuild.
365
3662012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
367
368	* btest.c (f23): Avoid uninitialized variable warning.
369
3702012-10-04  Ian Lance Taylor  <iant@google.com>
371
372	* dwarf.c: If the system header files do not declare strnlen,
373	provide our own version.
374
3752012-10-03  Ian Lance Taylor  <iant@google.com>
376
377	* dwarf.c (read_uleb128): Fix overflow test.
378	(read_sleb128): Likewise.
379	(build_address_map): Don't change unit_buf.start.
380
3812012-10-02  Uros Bizjak  <ubizjak@gmail.com>
382
383	PR other/54761
384	* configure.ac (EXTRA_FLAGS): New.
385	* Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
386	* configure, Makefile.in: Regenerate.
387
3882012-09-29  Ian Lance Taylor  <iant@google.com>
389
390	PR other/54749
391	* fileline.c (fileline_initialize): Pass errnum as -1 when
392	reporting that we could not read executable information after a
393	previous failure.
394
3952012-09-27  Ian Lance Taylor  <iant@google.com>
396
397	PR bootstrap/54732
398	* configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
399	* Makefile.am: Add dependencies for all objects.
400	* configure, aclocal.m4, Makefile.in: Rebuild.
401
4022012-09-27  Ian Lance Taylor  <iant@google.com>
403
404	PR other/54726
405	* elf.c (backtrace_initialize): Set *fileln_fn, not
406	state->fileln_fn.
407
4082012-09-19  Ian Lance Taylor  <iant@google.com>
409
410	* configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
411	as a target library.
412	* configure: Rebuild.
413
4142012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
415	    Ian Lance Taylor  <iant@google.com>
416
417        * configure.ac (GCC_HEADER_STDINT): Invoke.
418        * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
419        * btest.c: Don't include <stdint.h>.
420        * dwarf.c: Likewise.
421        * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
422
4232012-09-18  Ian Lance Taylor  <iant@google.com>
424
425	PR bootstrap/54623
426	* Makefile.am (AM_CPPFLAGS): Define.
427	(AM_CFLAGS): Remove -I options.
428	* Makefile.in: Rebuild.
429
4302012-09-18  Ian Lance Taylor  <iant@google.com>
431
432	* posix.c (O_BINARY): Define if not defined.
433	(backtrace_open): Pass O_BINARY to open.  Only call fcntl if
434	HAVE_FCNTL is defined.
435	* configure.ac: Test for the fcntl function.
436	* configure, config.h.in: Rebuild.
437
4382012-09-18  Ian Lance Taylor  <iant@google.com>
439
440	* btest.c (test1, test2, test3, test4): Add the unused attribute.
441
4422012-09-18  Ian Lance Taylor  <iant@google.com>
443
444	* dwarf.c: Correct test of HAVE_DECL_STRNLEN.
445
4462012-09-18  Ian Lance Taylor  <iant@google.com>
447
448	* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
449	* mmapio.c: Don't define _GNU_SOURCE.
450	* configure, config.h.in: Rebuild.
451
4522012-09-18  Ian Lance Taylor  <iant@google.com>
453
454	* configure.ac: Check whether strnlen is declared.
455	* dwarf.c: Declare strnlen if not declared.
456	* configure, config.h.in: Rebuild.
457
4582012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
459
460	* fileline.c: Include <stdlib.h>.
461	* mmap.c: Likewise.
462
4632012-09-17  Ian Lance Taylor  <iant@google.com>
464
465	PR bootstrap/54611
466	* nounwind.c (backtrace_full): Rename from backtrace.  Add state
467	parameter.
468
4692012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
470
471	PR bootstrap/54611
472	* nounwind.c (backtrace_simple): Add state parameter.
473
4742012-09-17  Ian Lance Taylor  <iant@google.com>
475
476	PR bootstrap/54609
477	* unknown.c (unknown_fileline): Add state parameter, remove
478	fileline_data parameter, name error_callback parameter.
479	(backtrace_initialize): Add state parameter.
480
4812012-09-17  Ian Lance Taylor  <iant@google.com>
482
483	* Initial implementation.
484