Add -std=c17, -std=gnu17.
[gcc.git] / libvtv / ChangeLog
1 2017-01-21 Jakub Jelinek <jakub@redhat.com>
2
3 PR other/79046
4 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
5 of cat to get version from BASE-VER file.
6 * testsuite/Makefile.in: Regenerated.
7
8 2017-01-17 Jakub Jelinek <jakub@redhat.com>
9
10 PR other/79046
11 * configure.ac: Add GCC_BASE_VER.
12 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
13 get version from BASE-VER file.
14 * testsuite/Makefile.in: Regenerated.
15 * configure: Regenerated.
16 * Makefile.in: Regenerated.
17
18 2017-01-04 Jakub Jelinek <jakub@redhat.com>
19
20 Update copyright years.
21
22 2016-11-15 Matthias Klose <doko@ubuntu.com>
23
24 * configure: Regenerate.
25
26 2016-05-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27
28 * Makefile.am (toolexeclib_LTLIBRARIES): Only set if
29 ENABLE_VTABLE_VERIFY.
30 Simplify.
31 * Makefile.in: Regenerate.
32
33 2015-12-02 Matthias Klose <doko@ubuntu.com>
34
35 * configure.ac: Move AM_ENABLE_MULTILIB before
36 GCC_LIBSTDCXX_RAW_CXX_FLAGS.
37 * configure: Regenerate.
38
39 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40
41 * configure.tgt (*-*-solaris2.[1-9]*): Declare supported.
42 * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS.
43 <*-*-solaris2*>: Check for init priority support.
44 Check for getexecname, __fortify_fail, _obstack_begin.
45 (VTV_NO_OBSTACK): New conditional.
46 * configure: Regenerate.
47 * Makefile.am [VTV_NO_OBSTACK] (obstack.c): Use new condition.
48 Create empty config.h
49 * Makefile.in: Regenerate.
50
51 * vtv_rts.cc [HAVE_GETEXECNAME] (program_invocation_name): New
52 variable.
53 (read_section_offset_and_length) [HAVE_GETEXECNAME]: Set it.
54 (dl_iterate_phdr_callback) [HAVE_GETEXECNAME]: Set it.
55
56 (__fortify_fail): Wrap in HAVE___FORTIFY_FAIL
57 [!HAVE___FORTIFY_FAIL]: Provide non-Cygwin implementation.
58
59 (read_section_offset_and_length): Assert sh_size >= VTV_PAGE_SIZE.
60 (iterate_modules): Fix typo.
61 Use VTV_PAGE_SIZE.
62 (dl_iterate_phdr_callback): Fix typo.
63 Use VTV_PAGE_SIZE.
64 (__VLTChangePermission): Fix typos.
65
66 2015-11-09 Alan Modra <amodra@gmail.com>
67
68 * vtv_malloc.cc (obstack_chunk_free): Correct param type.
69 (__vtv_malloc_init): Use obstack_specify_allocation.
70
71 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
72
73 * configure.tgt (aarch64*-*-linux): Enable.
74 (arm*-*-linux*): Enable.
75
76 2015-10-09 David Malcolm <dmalcolm@redhat.com>
77
78 * testsuite/lib/libvtv.exp: Load multiline.exp before prune.exp,
79 using load_gcc_lib.
80
81 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
82
83 Update copyrights.
84
85 2015-08-01 Caroline Tice <cmtice@google.com>
86
87 PR 66521
88 * Makefile.am: Update to match latest tree.
89 * Makefile.in: Regenerate.
90 * testsuite/lib/libvtv: Brought up to date.
91 * vtv_malloc.cc (VTV_DEBUG): Update function call to match renamed
92 function (old bug!).
93 * vtv_rts.cc (debug_functions, debug_init, debug_verify_vtable): Update
94 initializations to work correctly with VTV_DEBUG defined.
95
96 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
97
98 * Makefile.in: Regenerated with automake-1.11.6.
99 * aclocal.m4: Likewise.
100 * configure: Likewise.
101 * testsuite/Makefile.in: Likewise.
102 * testsuite/other-tests/Makefile.in: Likewise.
103
104 2015-02-09 Thomas Schwinge <thomas@codesourcery.com>
105
106 * Makefile.in: Regenerate.
107 * aclocal.m4: Likewise.
108 * configure: Likewise.
109 * testsuite/Makefile.in: Likewise.
110
111 2015-01-29 Caroline Tice <cmtice@google.com>
112
113 Committing VTV Cywin/Ming patch for Patrick Wollgast
114 * libvtv/Makefile.in : Regenerate.
115 * libvtv/configure : Regenerate.
116
117 2015-01-28 Caroline Tice <cmtice@google.com>
118
119 Committing VTV Cywin/Ming patch for Patrick Wollgast
120 * libvtv/Makefile.am : Add libvtv.la to toolexeclib_LTLIBRARIES, if
121 VTV_CYGMIN is set. Define libvtv_la_LIBADD, libvtv_la_LDFLAGS,
122 libvtv_stubs_la_LDFLAGS and libvtv_stubs_la_SOURCES if VTV_CYGMIN is
123 set. Add obstac.c to libvtv_la_SOURCES if VTV_CYGMIN is set.
124 * libvtv/aclocal.m4 : Regenerate.
125 * libvtv/configure.ac : Add ACX_LT_HOST_FLAGS. Define VTV_CYGMIN.
126 * libvtv/configure.tgt : (x86_64-*-cygwin*, i?86-*-cygwin*,
127 x86_64-*-mingw*)
128 (i?86-*-mingw*): Add to supported targets.
129 * libvtv/vtv_fail.cc : Skip inclusion of execinfo.h on Cygwin and MinGW.
130 (log_error_message): Skip calls to backtrace and backtrace_symbols_fd
131 on Cygwin and MinGW.
132 * libvtv/vtv_malloc.cc : Include windows.h and skip sys/mman.h
133 inclusion on Cygwin and MinGW. Add sysconf port on Cygwin and MinGW.
134 (obstack_chunk_alloc): Exchange call to mmap with call to VirtualAlloc
135 on Cygwin and MinGW.
136 (__vtv_malloc_init): Exchange call to sysconf with call to port of
137 sysconf on Cygwin and MinGW.
138 * libvtv/vtv_malloc.h : Declare mprotect and define PROT_READ and
139 PROT_WRITE on Cygwin and MinGW.
140 * libvtv/map.h : Include stdint.h on MinGW.
141 * libvtv/rts.cc : Include windows.h, winternl.h and psapi.h, skip
142 include of execinfo.h, sys/mman.h and link.h on Cygwin and MinGW. Add
143 port of __fortify_fail on Cygwin and MinGW. Change ElfW (Addr) to
144 uintptr_t on Cygwin and MinGW.
145 (read_section_offset_and_length): Add port for Cygwin and MinGW
146 (iterate_modules): New function.
147 (vtv_unprotect_vtable_vars): Use iterate_modules instead of
148 dl_iterate_phdr on Cygwin and MinGW.
149 (vtv_protect_vtable_vars): Likewise.
150 (count_all_pages): Likewise.
151 (dl_iterate_phdr_count_pages): Don't build on Cygwin and MinGW.
152 * libvtv/utils.cc : Include windows.h and skip execinfo.h inclusion on
153 Cygwin and MinGW.
154 (__vtv_open_log): Exchange call to getuid and getpid with
155 GetCurrentProcessId and adjust call to snprintf accordingly on Cygwin
156 and MinGW. Adjust calls to mkdir on MinGW. Adjust call to open on
157 Cygwin and MinGW.
158 (__vtv_add_to_log): Adjust call to snprintf on Cygwin and MinGW.
159 (__vtv_log_verification_failure): Don't generate a backtrace on Cygwin
160 and MinGW.
161
162 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
163
164 * testsuite/lib/libvtv.exp: Load target-utils.exp
165
166 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
167
168 PR bootstrap/63784
169 * configure: Regenerated.
170
171 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
172
173 PR target/63610
174 * configure: Regenerate.
175
176 2013-09-25 Caroline Tice <cmtice@google.com>
177
178 * Makefile.am: Reinstate ENABLE_VTABLE_VERIFY checks, to make
179 sure testsuite is not run if libstdc++ and libgcc were not built
180 with vtable verification.
181 * Makefile.in: Regenerated.
182 * configure.ac: Reinstate checks for --enable-vtable-verify flag,
183 to make sure testsuite is not run if libstdc++ and libgcc were not
184 built with vtable verification.
185 * configure: Regenerated.
186
187 2013-09-24 Caroline Tice <cmtice@google.com>
188
189 * Makefile.am: Change libvtv_includedir to the directory used by
190 the other libraries rather than the top include directory.
191 * Makefile.in: Regenerated.
192
193 2013-09-20 Alan Modra <amodra@gmail.com>
194
195 * configure: Regenerate.
196
197 2013-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
198
199 * configure.tgt: Remove *-*-*android* from supported targets.
200
201 2013-09-09 H.J. Lu <hongjiu.lu@intel.com>
202
203 PR other/58374
204 * configure.ac: Move VTV_SUPPORTED check after AC_CANONICAL_SYSTEM.
205 * configure: Regenerated.
206
207 2013-09-08 Caroline Tice <cmtice@google.com>
208
209 * testsuite/event-main.cc: Move to libvtv.cc subdirectory.
210 * testsuite/environment.cc: Ditto.
211 * testsuite/template-list2.cc: Ditto.
212 * testsuite/event.h: Ditto.
213 * testsuite/dataentry.cc: Ditto.
214 * testsuite/event-private.h: Ditto.
215 * testsuite/virtual_inheritance.cc: Ditto.
216 * testsuite/povray-derived.cc: Ditto.
217 * testsuite/nested_vcall_test.cc: Ditto.
218 * testsuite/template-list-iostream.cc: Ditto.
219 * testsuite/parts-test-extra-parts-views.h: Ditto.
220 * testsuite/virtfunc-test.cc: Ditto.
221 * testsuite/parts-test-extra-parts.h: Ditto.
222 * testsuite/const_vtable.cc: Ditto.
223 * testsuite/template-list.cc: Ditto.
224 * testsuite/dup_name.cc: Ditto.
225 * testsuite/thunk.cc: Ditto.
226 * testsuite/parts-test-main.h: Ditto.
227 * testsuite/mul_inh.cc: Ditto.
228 * testsuite/test1.cc: Ditto.
229 * testsuite/bb_tests.cc: Ditto.
230 * testsuite/v8-test-2.cc: Ditto.
231 * testsuite/thunk_vtable_map_attack.cc: Ditto.
232 * testsuite/xlan-test.cc: Ditto.
233 * testsuite/parts-test-main.cpp: Move to libvtv.cc subdirectory and
234 change file extension from .cc to .cpp.
235 * testsuite/event-definitions.cpp: Ditto.
236 * testsuite/event-main.cpp: Ditto.
237 * testsuite/derived-main.cpp: Ditto.
238 * testsuite/derived-lib.cpp: Ditto.
239 * testsuite/event-private.cpp: Ditto.
240 * testsuite/parts-test-extra-parts-views.cpp: Ditto.
241 * testsuite/parts-test-extra-parts.cpp: Ditto.
242 * testsuite/parts-test.list: Move to libvtv.cc subdirectory. Change
243 file extensions inside file from .cc to .cpp.
244 * testsuite/event.list: Ditto.
245 * testsuite/derived.list: Ditto.
246 * testsuite/register_pair.cc: Move to libvtv.cc; rename file to
247 register_set_pair.cc; include stdlib.h, stdio.h stdint.h string.h
248 (KEY_TYPE_FIXED_SIZE): New define.
249 (key_buffer, name_string, fake_names): New global variables.
250 (generate_names): New function.
251 (vtv_string_hans): New function.
252 (main): Add call to generate_names. Update middle for-loop to
253 initialize new parameters for __VLTRegisterPair... calls; move calls
254 to __VLTRegisterPair... to middle for-loop. Add calls to
255 __VLTRegisterSet...
256 * testsuite/register_pair_mt.cc: Ditto; renamed to
257 register_set_pair_mt.cc
258 * testsuite/libvtv.cc/vtv.exp: New file.
259 * testsuite/libvtv.mempool.cc/mempool.exp: New file.
260 * testsuite/libvtv.mt.cc/mt.exp: New file.
261 * testsuite/lib/libvtv.exp: New file.
262 * testsuite/lib/libvtv-dg.exp: New file.
263 * testsuite/config/default.exp: New file.
264 * testsuite/Makefile.am: New file. (Old file was moved to other-tests
265 subdirectory.)
266 * testsuite/Makefile.in: New file (generated).
267 * testsuite/mempool_negative.c: Change to C++ file; move to
268 libvtv.mempool.cc; include vtv-change-permission.h.
269 (main): Add call to __VLTChangePermission.
270 * testsuite/mempool_positive.c: Change to C++ file; move to
271 libvtv.mempool.cc; include vtv-change-permission.h.
272 (main): Add call to __VLTChangePermission.
273 * testsuite/temp_deriv3.cc: Move to other-tests subdirectory.
274 * testsuite/environment-fail-64.s: Ditto.
275 * testsutite/dlopen.cc: Ditto.
276 * testsuite/so.cc: Ditto.
277 * testsuite/temp_deriv2.cc: Ditto.
278 * testsuite/field-test.cc: Ditto.
279 * testsuite/dlopen_mt.cc: Ditto.
280 * testsuite/environment-fail-32.s: Ditto.
281 * testsuite/temp_deriv.cc: Ditto.
282 * testsuite/replace-fail.cc: Ditto.
283 * testsuite/other-tests/Makefile.am: New file. Copied from the
284 Makefile.am that used to be in testsuite directory.
285 * testsuite/other-tests/Makefile.in: Generated. (New file).
286 * testsuite/other-tests/README: New file.
287
288 2013-09-07 Paolo Carlini <paolo.carlini@oracle.com>
289
290 * testsuite/Makefile.am: Remove #if ENABLE_VTABLE_VERIFY check around
291 definition of check-am:.
292 * testsuite/Makefile.in: Regenerate.
293
294 2013-09-06 Caroline Tice <cmtice@google.com>
295
296 * Makefile.am: Remove #if ENABLE_VTABLE_VERIFY checks around
297 definitions of SUBDIRS, libvtv_la_SOURCES and libvtv_include_HEADERS.
298 * Makefile.in: Regenerate.
299 * configure.ac: Remove checks and tests for --enable-vtable-verify.
300 * configure: Regenerate.
301
302 2013-08-20 Caroline Tice <cmtice@google.com>
303
304 * Makefile.am (DEFS): Add "@DEFS@", to inherit defintions.
305 * Makefile.in: Regenerate.
306 * configure.ac: Add check for __secure_getenv and secure_getenv.
307 * configure: Regenerate.
308 * vtv_utils.cc : Include stdlib.h
309 (HAVE_SECURE_GETENV): Add checks and definitions for secure_getenv.
310 (log_dirs): Remove file static constant.
311 (__vtv_open_log): Increase size of log file name. Add the user
312 and process ids to the file name. Do not put the log files in /tmp.
313 Instead try to get the directory name from an environment variable; if
314 that fails try to use stderr. Add O_NOFOLLOW to the flags
315 for 'open'. Update function comment.
316 * vtv_rts.cc (log_memory_protection_data): Remove %d from file name.
317
318 2013-08-08 Benjamin Kosnik <bkoz@redhat.com>
319 Michael Meissner <meissner@linux.vnet.ibm.com>
320
321 * configure.tgt : Simplify, just use VTV_SUPPORTED.
322
323 2013-08-07 Benjamin Kosnik <bkoz@redhat.com>
324
325 * Makefile.am (SUBDIRS): Protect with ENABLE_VTABLE_VERIFY.
326 * Makefile.in: Regenerate.
327 * acinclude.m4 (LIBVTV_CONFIGURE): Move parts to..
328 * configure.ac: ...here. Make configure more verbose, re-order.
329 * configure: Regenerate.
330
331 2013-08-02 Caroline Tice <cmtice@google.com>
332 Benjamin Kosnik <bkoz@redhat.com>
333 Luis Lozano <llozano@google.com>
334 Geoff Pike <gpike@google.com>
335
336 Initial check-in of new vtable verification feature.
337 * configure.ac : New file.
338 * acinclude.m4 : New file.
339 * Makefile.am : New file.
340 * aclocal.m4 : New file.
341 * configure.tgt : New file.
342 * configure: New file (generated).
343 * Makefile.in: New file (generated).
344 * vtv_set.h : New file.
345 * vtv_utils.cc : New file.
346 * vtv_utils.h : New file.
347 * vtv_malloc.cc : New file.
348 * vtv_rts.cc : New file.
349 * vtv_malloc.h : New file.
350 * vtv_rts.h : New file.
351 * vtv_fail.cc : New file.
352 * vtv_fail.h : New file.
353 * vtv_map.h : New file.
354 * scripts/run-testsuite.sh : New file.
355 * scripts/sum-vtv-counts.c : New file.
356 * testsuite/parts-test-main.h : New file.
357 * testusite/dataentry.cc : New file.
358 * testsuite/temp_deriv.cc : New file.
359 * testsuite/register_pair.cc : New file.
360 * testsuite/virtual_inheritance.cc : New file.
361 * testsuite/field-test.cc : New file.
362 * testsuite/nested_vcall_test.cc : New file.
363 * testsuite/template-list-iostream.cc : New file.
364 * testsuite/register_pair_inserts.cc : New file.
365 * testsuite/register_pair_inserts_mt.cc : New file.
366 * testsuite/event.list : New file.
367 * testsuite/parts-test-extra-parts-views.cc : New file.
368 * testsuite/parts-test-extra-parts-views.h : New file.
369 * testsuite/environment-fail-32.s : New file.
370 * testsuite/parts-test-extra-parts.h : New file.
371 * testsuite/temp_deriv2.cc : New file.
372 * testsuite/dlopen_mt.cc : New file.
373 * testsuite/event.h : New file.
374 * testsuite/template-list.cc : New file.
375 * testsuite/replace-fail.cc : New file.
376 * testsuite/Makefile.am : New file.
377 * testsuite/Makefile.in: New file (generated).
378 * testsuite/mempool_negative.c : New file.
379 * testsuite/parts-test-main.cc : New file.
380 * testsuite/event-private.cc : New file.
381 * testsuite/thunk.cc : New file.
382 * testsuite/event-defintiions.cc : New file.
383 * testsuite/event-private.h : New file.
384 * testsuite/parts-test.list : New file.
385 * testusite/register_pair_mt.cc : New file.
386 * testsuite/povray-derived.cc : New file.
387 * testsuite/event-main.cc : New file.
388 * testsuite/environment.cc : New file.
389 * testsuite/template-list2.cc : New file.
390 * testsuite/thunk_vtable_map_attack.cc : New file.
391 * testsuite/parts-test-extra-parts.cc : New file.
392 * testsuite/environment-fail-64.s : New file.
393 * testsuite/dlopen.cc : New file.
394 * testsuite/so.cc : New file.
395 * testsuite/temp_deriv3.cc : New file.
396 * testsuite/const_vtable.cc : New file.
397 * testsuite/mempool_positive.c : New file.
398 * testsuite/dup_name.cc : New file.
399