[AArch64] PR target/79913: VEC_SELECT bugs in aarch64 patterns
[official-gcc.git] / libbacktrace / ChangeLog
blob25cd92119803b4ee419a9885d54138755ecfd8e3
1 2017-03-08  Sam Thursfield  <sam.thursfield@codethink.co.uk>
3         * btest.c (test5): Replace #ifdef guard with 'unused' attribute
4         to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
6 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
8         Update copyright years.
10 2016-11-15  Matthias Klose  <doko@ubuntu.com>
12         * configure: Regenerate.
14 2016-09-11  Carlos Liam  <carlos@aarzee.me>
16         * all: Remove meaningless trailing whitespace.
18 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
20         PR target/71161
21         * elf.c (phdr_callback) [__i386__]: Add
22         __attribute__((__force_align_arg_pointer__)).
24 2016-03-02  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
26         * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
27         avoid possible crash.
28         (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
29         missing debug info anymore.
31 2016-02-06  John David Anglin  <danglin@gcc.gnu.org>
33         * mmap.c (MAP_FAILED): Define if not defined.
35 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
37         Update copyright years.
39 2015-12-18  Andris Pavenis  <andris.pavenis@iki.fi>
41         * configure.ac: Specify that DJGPP do not have mmap
42         even when sys/mman.h exists.
43         * configure: Regenerate
45 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
47         PR libgfortran/68115
48         * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
49         * configure: Regenerate.
50         * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
51         to void.
53 2015-09-17  Ian Lance Taylor  <iant@google.com>
55         * posix.c (backtrace_open): Cast second argument of open() to int.
57 2015-09-11  Ian Lance Taylor  <iant@google.com>
59         * Makefile.am (backtrace.lo): Depend on internal.h.
60         (sort.lo, stest.lo): Add explicit dependencies.
61         * Makefile.in: Rebuild.
63 2015-09-09  Hans-Peter Nilsson  <hp@axis.com>
65         * backtrace.c: #include <sys/types.h>.
67 2015-09-08  Ian Lance Taylor  <iant@google.com>
69         PR other/67457
70         * backtrace.c: #include "internal.h".
71         (struct backtrace_data): Add can_alloc field.
72         (unwind): If can_alloc is false, don't try to get file/line
73         information.
74         (backtrace_full): Set can_alloc field in bdata.
75         * alloc.c (backtrace_alloc): Don't call error_callback if it is
76         NULL.
77         * mmap.c (backtrace_alloc): Likewise.
78         * internal.h: Update comments for backtrace_alloc and
79         backtrace_free.
81 2015-09-08  Ian Lance Taylor  <iant@google.com>
83         PR other/67457
84         * mmap.c (backtrace_alloc): Correct test for mmap failure.
86 2015-08-31  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
88         * configure.ac: For spu-*-* targets, set have_fcntl to no.
89         * configure: Regenerate.
91 2015-08-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
93         * configure.ac: Remove [disable-shared] argument to LT_INIT.
94         Remove setting PIC_FLAG when building as target library.
95         * configure: Regenerate.
97 2015-08-26  Hans-Peter Nilsson  <hp@axis.com>
99         * configure.ac: Only compile with -fPIC if the target
100         supports it.
101         * configure: Regenerate.
103 2015-08-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
105         * configure.ac: Set have_mmap to no on spu-*-* targets.
106         * configure: Regenerate.
108 2015-08-13  Ian Lance Taylor  <iant@google.com>
110         * dwarf.c (read_function_entry): Add vec_inlined parameter.
111         Change all callers.
113 2015-06-11  Martin Sebor  <msebor@redhat.com>
115         PR sanitizer/65479
116         * dwarf.c (struct line): Add new field idx.
117         (line_compare): Use it.
118         (add_line): Set it.
119         (read_line_info): Reset it.
121 2015-05-29  Tristan Gingold  <gingold@adacore.com>
123         * pecoff.c: New file.
124         * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
125         * Makefile.in: Regenerate.
126         * filetype.awk: Detect pecoff.
127         * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
128         Add pecoff.
129         * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
130         true.
131         * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
132         * configure: Regenerate.
133         * pecoff.c: New file.
135 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
137         * Makefile.in: Regenerated with automake-1.11.6.
138         * aclocal.m4: Likewise.
139         * configure: Likewise.
141 2015-01-24  Matthias Klose  <doko@ubuntu.com>
143         * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
144         * configure: Regenerate.
146 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
148         Update copyright years.
150 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
152         PR bootstrap/63784
153         * configure: Regenerated.
155 2014-11-11  David Malcolm  <dmalcolm@redhat.com>
157         * ChangeLog.jit: New.
159 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
161         PR target/63610
162         * configure: Regenerate.
164 2014-10-23  Ian Lance Taylor  <iant@google.com>
166         * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
167         Fix to return void *.
169 2014-05-08  Ian Lance Taylor  <iant@google.com>
171         * mmap.c (backtrace_free): If freeing a large aligned block of
172         memory, call munmap rather than holding onto it.
173         (backtrace_vector_grow): When growing a vector, double the number
174         of pages requested.  When releasing the old version of a grown
175         vector, pass the correct size to backtrace_free.
177 2014-03-07  Ian Lance Taylor  <iant@google.com>
179         * sort.c (backtrace_qsort): Use middle element as pivot.
181 2014-03-06  Ian Lance Taylor  <iant@google.com>
183         * sort.c: New file.
184         * stest.c: New file.
185         * internal.h (backtrace_qsort): Declare.
186         * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
187         (read_line_info, read_function_entry): Likewise.
188         (read_function_info, build_dwarf_data): Likewise.
189         * elf.c (elf_initialize_syminfo): Likewise.
190         * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
191         (stest_SOURCES, stest_LDADD): Define.
192         (check_PROGRAMS): Add stest.
194 2014-02-07  Misty De Meo  <misty@brew.sh>
196         PR target/58710
197         * configure.ac: Use AC_LINK_IFELSE in check for
198         _Unwind_GetIPInfo.
199         * configure: Regenerate.
201 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
203         Update copyright years
205 2013-12-06  Jakub Jelinek  <jakub@redhat.com>
207         * elf.c (ET_DYN): Undefine and define again.
208         (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
209         return early -1 without closing the descriptor.
210         (struct phdr_data): Add exe_descriptor.
211         (phdr_callback): If pd->exe_descriptor is not -1, for very first
212         call if dlpi_name is NULL just call elf_add with the exe_descriptor,
213         otherwise backtrace_close the exe_descriptor if not -1.  Adjust
214         call to elf_add.
215         (backtrace_initialize): Adjust call to elf_add.  If it returns
216         -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
218 2013-12-05  Ian Lance Taylor  <iant@google.com>
220         * alloc.c (backtrace_vector_finish): Add error_callback and data
221         parameters.  Call backtrace_vector_release.  Return address base.
222         * mmap.c (backtrace_vector_finish): Add error_callback and data
223         parameters.  Return address base.
224         * dwarf.c (read_function_info): Get new address base from
225         backtrace_vector_finish.
226         * internal.h (backtrace_vector_finish): Update declaration.
228 2013-11-27  Ian Lance Taylor  <iant@google.com>
230         * dwarf.c (find_address_ranges): New static function, broken out
231         of build_address_map.
232         (build_address_map): Call it.
233         * btest.c (check): Check for missing filename or function, rather
234         than crashing.
235         (f3): Check that enough frames were returned.
237 2013-11-19  Jakub Jelinek  <jakub@redhat.com>
239         * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
240         * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
241         last argument.
242         * btest.c (struct symdata): Add size field.
243         (callback_three): Add symsize argument.  Copy it to the data->size
244         field.
245         (f23): Set symdata.size to 0.
246         (test5): Likewise.  If sizeof (int) > 1, lookup address of
247         ((uintptr_t) &global) + 1.  Verify symdata.val and symdata.size
248         values.
250         * atomic.c: Include sys/types.h.
252 2013-11-18  Ian Lance Taylor  <iant@google.com>
254         * configure.ac: Check for support of __atomic extensions.
255         * internal.h: Declare or #define atomic functions for use in
256         backtrace code.
257         * atomic.c: New file.
258         * dwarf.c (dwarf_lookup_pc): Use atomic functions.
259         (dwarf_fileline, backtrace_dwarf_add): Likewise.
260         * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
261         (backtrace_initialize): Likewise.
262         * fileline.c (fileline_initialize): Likewise.
263         * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
264         * configure, config.h.in, Makefile.in: Rebuild.
266 2013-11-18  Jakub Jelinek  <jakub@redhat.com>
268         * elf.c (SHN_UNDEF): Define.
269         (elf_initialize_syminfo): Add base_address argument.  Ignore symbols
270         with st_shndx == SHN_UNDEF.  Add base_address to address fields.
271         (elf_add): Adjust caller.
273         * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
275 2013-11-16  Ian Lance Taylor  <iant@google.com>
277         * backtrace.h (backtrace_create_state): Correct comment about
278         threading.
280 2013-11-15  Ian Lance Taylor  <iant@google.com>
282         * backtrace.h (backtrace_syminfo): Update comment and parameter
283         name to take any address, not just a PC value.
284         * elf.c (STT_OBJECT): Define.
285         (elf_nosyms): Rename parameter pc to addr.
286         (elf_symbol_search): Rename local variable pc to addr.
287         (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
288         (elf_syminfo): Rename parameter pc to addr.
289         * btest.c (global): New global variable.
290         (test5): New test.
291         (main): Call test5.
293 2013-10-17  Ian Lance Taylor  <iant@google.com>
295         * elf.c (elf_add): Don't get the wrong offsets if a debug section
296         is missing.
298 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
300         * configure.ac: Add --enable-host-shared, setting up
301         pre-existing PIC_FLAG variable within Makefile.am et al.
302         * configure: Regenerate.
304 2013-09-20  Alan Modra  <amodra@gmail.com>
306         * configure: Regenerate.
308 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
310         * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
312 2013-07-23  Alexander Monakov  <amonakov@ispras.ru>
314         * elf.c (backtrace_initialize): Pass elf_fileline_fn to
315         dl_iterate_phdr callbacks.
317 2013-03-25  Ian Lance Taylor  <iant@google.com>
319         * alloc.c: #include <sys/types.h>.
320         * mmap.c: Likewise.
322 2013-01-31  Ian Lance Taylor  <iant@google.com>
324         * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
325         (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
327 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
329         PR other/56076
330         * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
331         attribute was not seen.
333 2013-01-16  Ian Lance Taylor  <iant@google.com>
335         * dwarf.c (struct unit): Add filename and abs_filename fields.
336         (build_address_map): Set new fields when reading unit.
337         (dwarf_lookup_pc): If we don't find an entry in the line table,
338         just return the main file name.
340 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
342         Update copyright years.
344 2013-01-01  Ian Lance Taylor  <iant@google.com>
346         PR bootstrap/54834
347         * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
348         $(MULTIBUILDTOP)/../../gcc/include.
349         * Makefile.in: Rebuild.
351 2013-01-01  Ian Lance Taylor  <iant@google.com>
353         PR other/55536
354         * mmap.c (backtrace_alloc): Don't call sync functions if not
355         threaded.
356         (backtrace_free): Likewise.
358 2012-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
360         * mmapio.c: Define MAP_FAILED if not defined.
362 2012-12-11  Jakub Jelinek  <jakub@redhat.com>
364         PR bootstrap/54926
365         * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
366         * configure.ac: If --with-target-subdir, add -frandom-seed=$@
367         to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
368         accepts it.
369         * Makefile.in: Regenerated.
370         * configure: Regenerated.
372 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
374         PR bootstrap/54926
375         * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
376         * Makefile.in: Regenerated.
378 2012-11-20  Ian Lance Taylor  <iant@google.com>
380         * dwarf.c (read_attribute): Always clear val.
382 2012-11-13  Ian Lance Taylor  <iant@google.com>
384         PR other/55312
385         * configure.ac: Only add -Werror if building a target library.
386         * configure: Rebuild.
388 2012-11-12  Ian Lance Taylor  <iant@google.com>
389             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
390             Gerald Pfeifer  <gerald@pfeifer.com>
392         * configure.ac: Check for getexecname.
393         * fileline.c: #include <errno.h>.  Define getexecname if not
394         available.
395         (fileline_initialize): Try to find the executable in a few
396         different ways.
397         * print.c (error_callback): Only print the filename if it came
398         from the backtrace state.
399         * configure, config.h.in: Rebuild.
401 2012-10-29  Ian Lance Taylor  <iant@google.com>
403         * mmap.c (backtrace_vector_release): Correct last patch: add
404         aligned, not size.
406 2012-10-29  Ian Lance Taylor  <iant@google.com>
408         * mmap.c (backtrace_vector_release): Make sure freed block is
409         aligned on 8-byte boundary.
411 2012-10-26  Ian Lance Taylor  <iant@google.com>
413         PR other/55087
414         * posix.c (backtrace_open): Add does_not_exist parameter.
415         * elf.c (phdr_callback): Do not warn if shared library could not
416         be opened.
417         * fileline.c (fileline_initialize): Update calls to
418         backtrace_open.
419         * internal.h (backtrace_open): Update declaration.
421 2012-10-26  Jack Howarth  <howarth@bromo.med.uc.edu>
423         PR target/55061
424         * configure.ac: Check for _Unwind_GetIPInfo function declaration.
425         * configure: Regenerate.
427 2012-10-24  Ian Lance Taylor  <iant@google.com>
429         PR target/55061
430         * configure.ac: Check whether -funwind-tables option works.
431         * configure: Rebuild.
433 2012-10-11  Ian Lance Taylor  <iant@google.com>
435         * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
436         * configure: Rebuild.
438 2012-10-10  Ian Lance Taylor  <iant@google.com>
440         * elf.c: Rename all Elf typedefs to start with b_elf, and be all
441         lower case.
443 2012-10-10  Hans-Peter Nilsson  <hp@bitrange.com>
445         * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
447 2012-10-09  Ian Lance Taylor  <iant@google.com>
449         * dwarf.c (dwarf_fileline): Add cast to avoid warning.
450         (backtrace_dwarf_add): Likewise.
452 2012-10-09  Ian Lance Taylor  <iant@google.com>
454         Add support for tracing through shared libraries.
455         * configure.ac: Check for link.h and dl_iterate_phdr.
456         * elf.c: #include <link.h> if system has dl_iterate_phdr.  #undef
457         ELF macros before #defining them.
458         (dl_phdr_info, dl_iterate_phdr): Define if system does not have
459         dl_iterate_phdr.
460         (struct elf_syminfo_data): Add next field.
461         (elf_initialize_syminfo): Initialize next field.
462         (elf_add_syminfo_data): New static function.
463         (elf_add): New static function, broken out of
464         backtrace_initialize.  Call backtrace_dwarf_add instead of
465         backtrace_dwarf_initialize.
466         (struct phdr_data): Define.
467         (phdr_callback): New static function.
468         (backtrace_initialize): Call elf_add.
469         * dwarf.c (struct dwarf_data): Add next and base_address fields.
470         (add_unit_addr): Add base_address parameter.  Change all callers.
471         (add_unit_ranges, build_address_map): Likewise.
472         (add_line): Add ddata parameter.  Change all callers.
473         (read_line_program, add_function_range): Likewise.
474         (dwarf_lookup_pc): New static function, broken out of
475         dwarf_fileline.
476         (dwarf_fileline): Call dwarf_lookup_pc.
477         (build_dwarf_data): New static function.
478         (backtrace_dwarf_add): New function.
479         (backtrace_dwarf_initialize): Remove.
480         * internal.h (backtrace_dwarf_initialize): Don't declare.
481         (backtrace_dwarf_add): Declare.
482         * configure, config.h.in: Rebuild.
484 2012-10-04  Gerald Pfeifer  <gerald@pfeifer.com>
486         * btest.c (f23): Avoid uninitialized variable warning.
488 2012-10-04  Ian Lance Taylor  <iant@google.com>
490         * dwarf.c: If the system header files do not declare strnlen,
491         provide our own version.
493 2012-10-03  Ian Lance Taylor  <iant@google.com>
495         * dwarf.c (read_uleb128): Fix overflow test.
496         (read_sleb128): Likewise.
497         (build_address_map): Don't change unit_buf.start.
499 2012-10-02  Uros Bizjak  <ubizjak@gmail.com>
501         PR other/54761
502         * configure.ac (EXTRA_FLAGS): New.
503         * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
504         * configure, Makefile.in: Regenerate.
506 2012-09-29  Ian Lance Taylor  <iant@google.com>
508         PR other/54749
509         * fileline.c (fileline_initialize): Pass errnum as -1 when
510         reporting that we could not read executable information after a
511         previous failure.
513 2012-09-27  Ian Lance Taylor  <iant@google.com>
515         PR bootstrap/54732
516         * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
517         * Makefile.am: Add dependencies for all objects.
518         * configure, aclocal.m4, Makefile.in: Rebuild.
520 2012-09-27  Ian Lance Taylor  <iant@google.com>
522         PR other/54726
523         * elf.c (backtrace_initialize): Set *fileln_fn, not
524         state->fileln_fn.
526 2012-09-19  Ian Lance Taylor  <iant@google.com>
528         * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
529         as a target library.
530         * configure: Rebuild.
532 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
533             Ian Lance Taylor  <iant@google.com>
535         * configure.ac (GCC_HEADER_STDINT): Invoke.
536         * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
537         * btest.c: Don't include <stdint.h>.
538         * dwarf.c: Likewise.
539         * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
541 2012-09-18  Ian Lance Taylor  <iant@google.com>
543         PR bootstrap/54623
544         * Makefile.am (AM_CPPFLAGS): Define.
545         (AM_CFLAGS): Remove -I options.
546         * Makefile.in: Rebuild.
548 2012-09-18  Ian Lance Taylor  <iant@google.com>
550         * posix.c (O_BINARY): Define if not defined.
551         (backtrace_open): Pass O_BINARY to open.  Only call fcntl if
552         HAVE_FCNTL is defined.
553         * configure.ac: Test for the fcntl function.
554         * configure, config.h.in: Rebuild.
556 2012-09-18  Ian Lance Taylor  <iant@google.com>
558         * btest.c (test1, test2, test3, test4): Add the unused attribute.
560 2012-09-18  Ian Lance Taylor  <iant@google.com>
562         * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
564 2012-09-18  Ian Lance Taylor  <iant@google.com>
566         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
567         * mmapio.c: Don't define _GNU_SOURCE.
568         * configure, config.h.in: Rebuild.
570 2012-09-18  Ian Lance Taylor  <iant@google.com>
572         * configure.ac: Check whether strnlen is declared.
573         * dwarf.c: Declare strnlen if not declared.
574         * configure, config.h.in: Rebuild.
576 2012-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
578         * fileline.c: Include <stdlib.h>.
579         * mmap.c: Likewise.
581 2012-09-17  Ian Lance Taylor  <iant@google.com>
583         PR bootstrap/54611
584         * nounwind.c (backtrace_full): Rename from backtrace.  Add state
585         parameter.
587 2012-09-17  Gerald Pfeifer  <gerald@pfeifer.com>
589         PR bootstrap/54611
590         * nounwind.c (backtrace_simple): Add state parameter.
592 2012-09-17  Ian Lance Taylor  <iant@google.com>
594         PR bootstrap/54609
595         * unknown.c (unknown_fileline): Add state parameter, remove
596         fileline_data parameter, name error_callback parameter.
597         (backtrace_initialize): Add state parameter.
599 2012-09-17  Ian Lance Taylor  <iant@google.com>
601         * Initial implementation.
603 Copyright (C) 2012-2017 Free Software Foundation, Inc.
605 Copying and distribution of this file, with or without modification,
606 are permitted in any medium without royalty provided the copyright
607 notice and this notice are preserved.