[ree] PR rtl-optimization/78038: Handle global register dataflow definitions in ree
[official-gcc.git] / libbacktrace / ChangeLog
blob24059bb140dabc6f2762b4b33cdde315c5e5e073
1 2016-09-11  Carlos Liam  <carlos@aarzee.me>
3         * all: Remove meaningless trailing whitespace.
5 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
7         PR target/71161
8         * elf.c (phdr_callback) [__i386__]: Add
9         __attribute__((__force_align_arg_pointer__)).
11 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
14         avoid possible crash.
15         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
16         missing debug info anymore.
18 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
20         * mmap.c (MAP_FAILED): Define if not defined.
22 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
24         Update copyright years.
26 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
28         * configure.ac: Specify that DJGPP do not have mmap
29         even when sys/mman.h exists.
30         * configure: Regenerate
32 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
34         PR libgfortran/68115
35         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
36         * configure: Regenerate.
37         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
38         to void.
40 2015-09-17  Ian Lance Taylor  <iant@google.com>
42         * posix.c (backtrace_open): Cast second argument of open() to int.
44 2015-09-11  Ian Lance Taylor  <iant@google.com>
46         * Makefile.am (backtrace.lo): Depend on internal.h.
47         (sort.lo, stest.lo): Add explicit dependencies.
48         * Makefile.in: Rebuild.
50 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
52         * backtrace.c: #include <sys/types.h>.
54 2015-09-08  Ian Lance Taylor  <iant@google.com>
56         PR other/67457
57         * backtrace.c: #include "internal.h".
58         (struct backtrace_data): Add can_alloc field.
59         (unwind): If can_alloc is false, don't try to get file/line
60         information.
61         (backtrace_full): Set can_alloc field in bdata.
62         * alloc.c (backtrace_alloc): Don't call error_callback if it is
63         NULL.
64         * mmap.c (backtrace_alloc): Likewise.
65         * internal.h: Update comments for backtrace_alloc and
66         backtrace_free.
68 2015-09-08  Ian Lance Taylor  <iant@google.com>
70         PR other/67457
71         * mmap.c (backtrace_alloc): Correct test for mmap failure.
73 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
75         * configure.ac: For spu-*-* targets, set have_fcntl to no.
76         * configure: Regenerate.
78 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
80         * configure.ac: Remove [disable-shared] argument to LT_INIT.
81         Remove setting PIC_FLAG when building as target library.
82         * configure: Regenerate.
84 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
86         * configure.ac: Only compile with -fPIC if the target
87         supports it.
88         * configure: Regenerate.
90 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
92         * configure.ac: Set have_mmap to no on spu-*-* targets.
93         * configure: Regenerate.
95 2015-08-13  Ian Lance Taylor  <iant@google.com>
97         * dwarf.c (read_function_entry): Add vec_inlined parameter.
98         Change all callers.
100 2015-06-11  Martin Sebor  <msebor@redhat.com>
102         PR sanitizer/65479
103         * dwarf.c (struct line): Add new field idx.
104         (line_compare): Use it.
105         (add_line): Set it.
106         (read_line_info): Reset it.
108 2015-05-29  Tristan Gingold  <gingold@adacore.com>
110         * pecoff.c: New file.
111         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
112         * Makefile.in: Regenerate.
113         * filetype.awk: Detect pecoff.
114         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
115         Add pecoff.
116         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
117         true.
118         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
119         * configure: Regenerate.
120         * pecoff.c: New file.
122 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
124         * Makefile.in: Regenerated with automake-1.11.6.
125         * aclocal.m4: Likewise.
126         * configure: Likewise.
128 2015-01-24  Matthias Klose  <doko@ubuntu.com>
130         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
131         * configure: Regenerate.
133 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
135         Update copyright years.
137 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
139         PR bootstrap/63784
140         * configure: Regenerated.
142 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
144         * ChangeLog.jit: New.
146 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
148         PR target/63610
149         * configure: Regenerate.
151 2014-10-23  Ian Lance Taylor  <iant@google.com>
153         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
154         Fix to return void *.
156 2014-05-08  Ian Lance Taylor  <iant@google.com>
158         * mmap.c (backtrace_free): If freeing a large aligned block of
159         memory, call munmap rather than holding onto it.
160         (backtrace_vector_grow): When growing a vector, double the number
161         of pages requested.  When releasing the old version of a grown
162         vector, pass the correct size to backtrace_free.
164 2014-03-07  Ian Lance Taylor  <iant@google.com>
166         * sort.c (backtrace_qsort): Use middle element as pivot.
168 2014-03-06  Ian Lance Taylor  <iant@google.com>
170         * sort.c: New file.
171         * stest.c: New file.
172         * internal.h (backtrace_qsort): Declare.
173         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
174         (read_line_info, read_function_entry): Likewise.
175         (read_function_info, build_dwarf_data): Likewise.
176         * elf.c (elf_initialize_syminfo): Likewise.
177         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
178         (stest_SOURCES, stest_LDADD): Define.
179         (check_PROGRAMS): Add stest.
181 2014-02-07  Misty De Meo  <misty@brew.sh>
183         PR target/58710
184         * configure.ac: Use AC_LINK_IFELSE in check for
185         _Unwind_GetIPInfo.
186         * configure: Regenerate.
188 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
190         Update copyright years
192 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
194         * elf.c (ET_DYN): Undefine and define again.
195         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
196         return early -1 without closing the descriptor.
197         (struct phdr_data): Add exe_descriptor.
198         (phdr_callback): If pd->exe_descriptor is not -1, for very first
199         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
200         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
201         call to elf_add.
202         (backtrace_initialize): Adjust call to elf_add.  If it returns
203         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
205 2013-12-05  Ian Lance Taylor  <iant@google.com>
207         * alloc.c (backtrace_vector_finish): Add error_callback and data
208         parameters.  Call backtrace_vector_release.  Return address base.
209         * mmap.c (backtrace_vector_finish): Add error_callback and data
210         parameters.  Return address base.
211         * dwarf.c (read_function_info): Get new address base from
212         backtrace_vector_finish.
213         * internal.h (backtrace_vector_finish): Update declaration.
215 2013-11-27  Ian Lance Taylor  <iant@google.com>
217         * dwarf.c (find_address_ranges): New static function, broken out
218         of build_address_map.
219         (build_address_map): Call it.
220         * btest.c (check): Check for missing filename or function, rather
221         than crashing.
222         (f3): Check that enough frames were returned.
224 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
226         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
227         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
228         last argument.
229         * btest.c (struct symdata): Add size field.
230         (callback_three): Add symsize argument.  Copy it to the data->size
231         field.
232         (f23): Set symdata.size to 0.
233         (test5): Likewise.  If sizeof (int) > 1, lookup address of
234         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
235         values.
237         * atomic.c: Include sys/types.h.
239 2013-11-18  Ian Lance Taylor  <iant@google.com>
241         * configure.ac: Check for support of __atomic extensions.
242         * internal.h: Declare or #define atomic functions for use in
243         backtrace code.
244         * atomic.c: New file.
245         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
246         (dwarf_fileline, backtrace_dwarf_add): Likewise.
247         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
248         (backtrace_initialize): Likewise.
249         * fileline.c (fileline_initialize): Likewise.
250         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
251         * configure, config.h.in, Makefile.in: Rebuild.
253 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
255         * elf.c (SHN_UNDEF): Define.
256         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
257         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
258         (elf_add): Adjust caller.
260         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
262 2013-11-16  Ian Lance Taylor  <iant@google.com>
264         * backtrace.h (backtrace_create_state): Correct comment about
265         threading.
267 2013-11-15  Ian Lance Taylor  <iant@google.com>
269         * backtrace.h (backtrace_syminfo): Update comment and parameter
270         name to take any address, not just a PC value.
271         * elf.c (STT_OBJECT): Define.
272         (elf_nosyms): Rename parameter pc to addr.
273         (elf_symbol_search): Rename local variable pc to addr.
274         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
275         (elf_syminfo): Rename parameter pc to addr.
276         * btest.c (global): New global variable.
277         (test5): New test.
278         (main): Call test5.
280 2013-10-17  Ian Lance Taylor  <iant@google.com>
282         * elf.c (elf_add): Don't get the wrong offsets if a debug section
283         is missing.
285 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
287         * configure.ac: Add --enable-host-shared, setting up
288         pre-existing PIC_FLAG variable within Makefile.am et al.
289         * configure: Regenerate.
291 2013-09-20  Alan Modra  <amodra@gmail.com>
293         * configure: Regenerate.
295 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
297         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
299 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
301         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
302         dl_iterate_phdr callbacks.
304 2013-03-25  Ian Lance Taylor  <iant@google.com>
306         * alloc.c: #include <sys/types.h>.
307         * mmap.c: Likewise.
309 2013-01-31  Ian Lance Taylor  <iant@google.com>
311         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
312         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
314 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
316         PR other/56076
317         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
318         attribute was not seen.
320 2013-01-16  Ian Lance Taylor  <iant@google.com>
322         * dwarf.c (struct unit): Add filename and abs_filename fields.
323         (build_address_map): Set new fields when reading unit.
324         (dwarf_lookup_pc): If we don't find an entry in the line table,
325         just return the main file name.
327 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
329         Update copyright years.
331 2013-01-01  Ian Lance Taylor  <iant@google.com>
333         PR bootstrap/54834
334         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
335         $(MULTIBUILDTOP)/../../gcc/include.
336         * Makefile.in: Rebuild.
338 2013-01-01  Ian Lance Taylor  <iant@google.com>
340         PR other/55536
341         * mmap.c (backtrace_alloc): Don't call sync functions if not
342         threaded.
343         (backtrace_free): Likewise.
345 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
347         * mmapio.c: Define MAP_FAILED if not defined.
349 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
351         PR bootstrap/54926
352         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
353         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
354         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
355         accepts it.
356         * Makefile.in: Regenerated.
357         * configure: Regenerated.
359 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
361         PR bootstrap/54926
362         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
363         * Makefile.in: Regenerated.
365 2012-11-20  Ian Lance Taylor  <iant@google.com>
367         * dwarf.c (read_attribute): Always clear val.
369 2012-11-13  Ian Lance Taylor  <iant@google.com>
371         PR other/55312
372         * configure.ac: Only add -Werror if building a target library.
373         * configure: Rebuild.
375 2012-11-12  Ian Lance Taylor  <iant@google.com>
376             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
377             Gerald Pfeifer  <gerald@pfeifer.com>
379         * configure.ac: Check for getexecname.
380         * fileline.c: #include <errno.h>.  Define getexecname if not
381         available.
382         (fileline_initialize): Try to find the executable in a few
383         different ways.
384         * print.c (error_callback): Only print the filename if it came
385         from the backtrace state.
386         * configure, config.h.in: Rebuild.
388 2012-10-29  Ian Lance Taylor  <iant@google.com>
390         * mmap.c (backtrace_vector_release): Correct last patch: add
391         aligned, not size.
393 2012-10-29  Ian Lance Taylor  <iant@google.com>
395         * mmap.c (backtrace_vector_release): Make sure freed block is
396         aligned on 8-byte boundary.
398 2012-10-26  Ian Lance Taylor  <iant@google.com>
400         PR other/55087
401         * posix.c (backtrace_open): Add does_not_exist parameter.
402         * elf.c (phdr_callback): Do not warn if shared library could not
403         be opened.
404         * fileline.c (fileline_initialize): Update calls to
405         backtrace_open.
406         * internal.h (backtrace_open): Update declaration.
408 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
410         PR target/55061
411         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
412         * configure: Regenerate.
414 2012-10-24  Ian Lance Taylor  <iant@google.com>
416         PR target/55061
417         * configure.ac: Check whether -funwind-tables option works.
418         * configure: Rebuild.
420 2012-10-11  Ian Lance Taylor  <iant@google.com>
422         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
423         * configure: Rebuild.
425 2012-10-10  Ian Lance Taylor  <iant@google.com>
427         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
428         lower case.
430 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
432         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
434 2012-10-09  Ian Lance Taylor  <iant@google.com>
436         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
437         (backtrace_dwarf_add): Likewise.
439 2012-10-09  Ian Lance Taylor  <iant@google.com>
441         Add support for tracing through shared libraries.
442         * configure.ac: Check for link.h and dl_iterate_phdr.
443         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
444         ELF macros before #defining them.
445         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
446         dl_iterate_phdr.
447         (struct elf_syminfo_data): Add next field.
448         (elf_initialize_syminfo): Initialize next field.
449         (elf_add_syminfo_data): New static function.
450         (elf_add): New static function, broken out of
451         backtrace_initialize.  Call backtrace_dwarf_add instead of
452         backtrace_dwarf_initialize.
453         (struct phdr_data): Define.
454         (phdr_callback): New static function.
455         (backtrace_initialize): Call elf_add.
456         * dwarf.c (struct dwarf_data): Add next and base_address fields.
457         (add_unit_addr): Add base_address parameter.  Change all callers.
458         (add_unit_ranges, build_address_map): Likewise.
459         (add_line): Add ddata parameter.  Change all callers.
460         (read_line_program, add_function_range): Likewise.
461         (dwarf_lookup_pc): New static function, broken out of
462         dwarf_fileline.
463         (dwarf_fileline): Call dwarf_lookup_pc.
464         (build_dwarf_data): New static function.
465         (backtrace_dwarf_add): New function.
466         (backtrace_dwarf_initialize): Remove.
467         * internal.h (backtrace_dwarf_initialize): Don't declare.
468         (backtrace_dwarf_add): Declare.
469         * configure, config.h.in: Rebuild.
471 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
473         * btest.c (f23): Avoid uninitialized variable warning.
475 2012-10-04  Ian Lance Taylor  <iant@google.com>
477         * dwarf.c: If the system header files do not declare strnlen,
478         provide our own version.
480 2012-10-03  Ian Lance Taylor  <iant@google.com>
482         * dwarf.c (read_uleb128): Fix overflow test.
483         (read_sleb128): Likewise.
484         (build_address_map): Don't change unit_buf.start.
486 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
488         PR other/54761
489         * configure.ac (EXTRA_FLAGS): New.
490         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
491         * configure, Makefile.in: Regenerate.
493 2012-09-29  Ian Lance Taylor  <iant@google.com>
495         PR other/54749
496         * fileline.c (fileline_initialize): Pass errnum as -1 when
497         reporting that we could not read executable information after a
498         previous failure.
500 2012-09-27  Ian Lance Taylor  <iant@google.com>
502         PR bootstrap/54732
503         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
504         * Makefile.am: Add dependencies for all objects.
505         * configure, aclocal.m4, Makefile.in: Rebuild.
507 2012-09-27  Ian Lance Taylor  <iant@google.com>
509         PR other/54726
510         * elf.c (backtrace_initialize): Set *fileln_fn, not
511         state->fileln_fn.
513 2012-09-19  Ian Lance Taylor  <iant@google.com>
515         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
516         as a target library.
517         * configure: Rebuild.
519 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
520             Ian Lance Taylor  <iant@google.com>
522         * configure.ac (GCC_HEADER_STDINT): Invoke.
523         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
524         * btest.c: Don't include <stdint.h>.
525         * dwarf.c: Likewise.
526         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
528 2012-09-18  Ian Lance Taylor  <iant@google.com>
530         PR bootstrap/54623
531         * Makefile.am (AM_CPPFLAGS): Define.
532         (AM_CFLAGS): Remove -I options.
533         * Makefile.in: Rebuild.
535 2012-09-18  Ian Lance Taylor  <iant@google.com>
537         * posix.c (O_BINARY): Define if not defined.
538         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
539         HAVE_FCNTL is defined.
540         * configure.ac: Test for the fcntl function.
541         * configure, config.h.in: Rebuild.
543 2012-09-18  Ian Lance Taylor  <iant@google.com>
545         * btest.c (test1, test2, test3, test4): Add the unused attribute.
547 2012-09-18  Ian Lance Taylor  <iant@google.com>
549         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
551 2012-09-18  Ian Lance Taylor  <iant@google.com>
553         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
554         * mmapio.c: Don't define _GNU_SOURCE.
555         * configure, config.h.in: Rebuild.
557 2012-09-18  Ian Lance Taylor  <iant@google.com>
559         * configure.ac: Check whether strnlen is declared.
560         * dwarf.c: Declare strnlen if not declared.
561         * configure, config.h.in: Rebuild.
563 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
565         * fileline.c: Include <stdlib.h>.
566         * mmap.c: Likewise.
568 2012-09-17  Ian Lance Taylor  <iant@google.com>
570         PR bootstrap/54611
571         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
572         parameter.
574 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
576         PR bootstrap/54611
577         * nounwind.c (backtrace_simple): Add state parameter.
579 2012-09-17  Ian Lance Taylor  <iant@google.com>
581         PR bootstrap/54609
582         * unknown.c (unknown_fileline): Add state parameter, remove
583         fileline_data parameter, name error_callback parameter.
584         (backtrace_initialize): Add state parameter.
586 2012-09-17  Ian Lance Taylor  <iant@google.com>
588         * Initial implementation.
590 Copyright (C) 2012-2016 Free Software Foundation, Inc.
592 Copying and distribution of this file, with or without modification,
593 are permitted in any medium without royalty provided the copyright
594 notice and this notice are preserved.