Use fnmatch for name matching.
[platform/upstream/gcc.git] / fixincludes / ChangeLog
1 2007-01-05  Bruce Korb <bkorb@gnu.org>, 
2             Daniel Franke <franke.daniel@gmail.com>
3
4         PR target/30008
5         * fixincl.tpl (List): separate file name patterns with a NUL byte instead
6         of a vertical bar ("|").
7         * fixincl.c (fix_applies, machine_matches): Use fnmatch for name matching.
8         * fixincl.x: Regenerate.
9         * inclhack.def (glibc_c99_inline_[1234], broken_cabs, broken_nan,
10         kandr_concat, sco_math): Replace lists of specfic file names by search
11         patterns.
12
13 2006-12-12  Olivier Hainque  <hainque@adacore.com>
14
15         * fixincludes/mkfixinc.sh: Add "*-*-vxworks*" to the list of
16         targets for which a no-op fixer is appropriate.
17         
18 2006-11-07  Richard Guenther  <rguenther@suse.de>
19
20         * inclhack.def (glibc_c99_inline_2): Adjust for glibc 2.3
21         systems.
22         * fixincl.x: Regenerate.
23
24 2006-11-02  Geoffrey Keating  <geoffk@apple.com>
25
26         * inclhack.def (glibc_c99_inline_1): New.
27         * inclhack.def (glibc_c99_inline_2): New.
28         * inclhack.def (glibc_c99_inline_3): New.
29         * inclhack.def (glibc_c99_inline_4): New.
30         * fixincl.x: Regenerate.
31         * tests/base/bits/string2.h: New.
32         * tests/base/sys/sysmacros.h: New.
33         * tests/base/sys/stat.h: Update.
34
35 2006-11-01  Steve Ellcey  <sje@cup.hp.com>
36
37         * tests/base/sys/socket.h: Update.
38
39 2006-10-31  Steve Ellcey  <sje@cup.hp.com>
40
41         * inclhack.def (hpux11_extern_sendfile): New.
42         (hpux11_extern_sendpath): New.
43         * fixincl.x: Regenerate.
44
45 2006-10-29  Joseph Myers  <joseph@codesourcery.com>
46
47         * inclhack.def (AAB_fd_zero_asm_posix_types_h): Bypass on x86_64.
48         * fixincl.x: Regenerate.
49
50 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
51
52         * Makefile.in: Added empty "pdf" target.
53
54 2006-10-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
55
56         PR target/29300
57         * inclhack.def (hpux_pthread_initializers): New hack.
58         * tests/base/sys/pthread.h: New file.
59
60         * fixincl.x: Regenerate.
61
62 2006-10-03  Uros Bizjak <uros@kss-loka.si>
63
64         * inclhack.def (glibc_mutex_init): Also fix
65         PTHREAD_MUTEX_(RECURSIVE|ERRORCHECK|ADAPTIVE)_NP and
66         PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP initializers.
67         * tests/base/pthread.h: Update.
68
69         * fixincl.x: Regenerate.
70
71 2006-10-01  Uros Bizjak <uros@kss-loka.si>
72
73         * inclhack.def (glibc_mutex_init): New fix.
74         * tests/base/pthread.h: Update.
75
76         * fixincl.x: Regenerate.
77
78 2006-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
79
80         * inclhack.def (solaris_mutex_init_2): Update for Solaris9.
81         Prevent it from running on solaris10 or later.
82         (solaris_once_init_2): Fix comment.
83         * tests/base/pthread.h: Update.
84
85         * fixincl.x: Regenerate.
86
87 2006-09-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
88
89         * inclhack.def (solaris_once_init_2): New fix.
90         * tests/base/pthread.h: Update.
91
92         * fixincl.x: Regenerate.
93
94 2006-09-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
95
96         * inclhack.def (solaris_mutex_init_2): Remove test for
97         PTHREAD_RWLOCK_INITIALIZER.
98         (solaris_rwlock_init_1): New.
99         * tests/base/pthread.h: Update.
100
101         * inclhack.def (solaris_once_init_1): New.
102         * tests/base/pthread.h: Adjust for new fix.
103         
104         * fixincl.x: Regenerate.
105
106 2006-07-17  Roger Sayle  <roger@eyesopen.com>
107
108         * tests/base/errno.h: New file.
109         * tests/base/architecture/ppc/math.h: Likewise.
110         * tests/base/ia64/sys/getppdp.h: Likewise.
111
112 2006-07-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
113
114         PR bootstrap/20437
115         * Makefile.in (configure, config.h.in): Change into $(srcdir)
116         before autoconf or autoheader call.
117
118 2006-06-23  Steve Ellcey  <sje@cup.hp.com>
119
120         PR target/28084
121         * inclhack.def (hpux_extern_errno): New.
122         * fixincl.x: Regenerate.
123
124 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
125
126         * Makefile.in: Add dvi info html and install-html to .PHONY
127         Add install-html target.
128
129 2006-05-16  Mike Stump  <mrs@apple.com>
130
131         * configure.ac: Add -Wno-overlength-strings.
132         * configure: Regenerate.
133
134 2006-05-14  Bernhard Fischer  <aldot@gcc.gnu.org>
135
136         * README: Fix typo.
137
138 2006-02-18  Steve Ellcey  <sje@cup.hp.com>
139
140         PR target/26189
141         * inclhack.def (hpux_spu_info): New.
142         * fixincl.x: Regenerate
143
144 2006-01-31  Marcin Dalecki  <martin@dalecki.de>
145
146         * configure.ac: Check for asprintf, basename, vasprintf.
147         * config.h.in: Regenerate.
148         * configure: Regenerate.
149
150 2006-01-19  Andrew Pinski  <pinskia@physics.uc.edu>
151
152         PR target/15642
153         * inclhack.def (AAB_darwin7_9_long_double_funcs [replace]): Define
154         __APPLE_CC_ as 1345.
155         (broken_nan): New.
156         * fixincl.x: Regenerate.
157
158 2005-11-24  Bruce Korb  <bkorb@gnu.org>
159
160         * fixincl.c (write_replacement): "here strings" in AutoGen
161         often/generally don't have a terminating newline.  Check the
162         last byte for '\n'.
163
164 2005-11-13  Andreas Jaeger  <aj@suse.de>
165
166         * check.tpl: Handle CVS additionally.
167
168 2005-11-05  Andreas Jaeger  <aj@suse.de>
169
170         * check.tpl: Adopt for move to subversion.
171
172 2005-09-15  Joseph S. Myers  <joseph@codesourcery.com>
173
174         PR c++/23139
175         * inclhack.def (huge_val_hex, huge_valf_hex, huge_vall_hex): New
176         fixes.
177         * fixincl.x: Regenerate.
178         * tests/base/bits/huge_val.h: New file.
179
180 2005-08-14  Kelley Cook  <kcook@gcc.gnu.org>
181
182         * All files: Update with new FSF address.
183
184 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
185
186         * Makefile.in (WARN_CFLAGS): New.
187         (.c.o): Add $(WARN_CFLAGS).
188         * aclocal.m4: Include ../config/warnings.m4.
189         * configure.ac: Invoke ACX_PROG_CC_WARNING_OPTS,
190         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
191         ACX_PROG_CC_WARNINGS_ARE_ERRORS.
192         * fixopts.c (initialize_opts): Fix old-style definintion.
193
194         * configure: Regenerate.
195
196 2005-06-24  Geoffrey Keating  <geoffk@geoffk.org>
197
198         * inclhack.def (AAB_darwin7_9_long_double_funcs): New.
199         (AAB_darwin7_9_long_double_funcs_2): New.
200         * fixincl.x: Regenerate.
201
202 2005-06-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
203
204         PR libfortran/15266
205         * inclhack.def (broken_cabs): Mention IRIX 5/6 problem.
206         Use double quotes in select so \t matches tabs.
207         Add IRIX testcase.
208         * fixincl.x: Regenerate.
209         * tests/base/math.h [BROKEN_CABS_CHECK]: Adapt for new testcase.
210
211 2005-05-22  Danny Smith  <dannysmith@users.souceforge.net>
212
213         PR target/21683
214         * fixincl.c: Don't include <sys/wait.h> if SEPARATE_FIX_PROC.
215
216 2005-05-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
217             Joseph S. Myers  <joseph@codesourcery.com>
218
219         PR target/19933
220         PR target/21315
221         * inclhack.def: New fixes solaris_math_[1-9].
222         * fixincl.x: Regenerate.
223         * tests/base/iso/math_c99.h: New.
224
225 2005-05-19  Kelley Cook  <kcook@gcc.gnu.org>
226
227         * aclocal.m4: Remove superfluous reference to accross.m4.
228
229 2005-05-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
230
231         * fixlib.c (load_file_data): Use XRESIZVEC in lieu of xrealloc.
232         * server.c (load_data): Likewise.
233         (run_shell): Use XCNEW (char) in lieu of xcalloc (1, 1).
234         * fixincl.c: #include <sys/wait.h>
235         (run_compiles): Use XCNEWVEC instead of xcalloc.
236         (fix_with_system, start_fixer): Use XNEWVEC instead of xmalloc.
237         * fixfixes.c (FIX_PROC_HEAD, main): Likewise.
238
239 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
240
241         * inclhack.def (stdio_stdarg_h, stdio_va_list): Bypass on
242         *-*-solaris2.1[0-9]*, not just *-*-solaris2.1[0-9].
243         * fixincl.x: Regenerate.
244
245 2005-05-06  Bruce Korb  <bkorb@gnu.org>
246         Joseph S. Myers <joseph@codesourcery.com>
247
248         * fixinc/inclhack.def: Correct backslashes
249         * fixinc/fixincl.x: regen
250
251 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
252
253         * system.h (fopen, fdopen, freopen): Define these to the unlocked
254         libiberty functions.
255
256 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
257
258         * configure.ac (fixincludes_UNLOCKED_FUNCS): New.
259         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for fixincludes_UNLOCKED_FUNCS.
260         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
261         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
262         _unlocked function.
263         (fwrite_unlocked): Fix prototype.
264
265         * configure, config.h.in: Regenerate.
266
267 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
268
269         * Makefile.in: Set gcc_version directly, not via substitution.
270         (libsubdir): Use $(gcc_version), not $(version).
271         (mkheaders.almost): New rule.
272         (mkheaders): Generate from mkheaders.almost.
273         (clean): Also delete mkheaders.almost.
274         * aclocal.m4: Do not include ../config/gcc-version.m4.
275         * configure.ac: Do not invoke TL_AC_GCC_VERSION.  Generate
276         mkheaders.almost from mkheaders.in.
277         * configure: Regenerate.
278
279 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
280
281         PR target/20166
282         * inclhack.def: Add fix for array of incomplete structures
283         in function prototype in pthread.h.
284         * fixincl.x: Regenerate.
285         * tests/base/pthread.h: Adjust.
286
287 2005-03-15  Joseph S. Myers  <joseph@codesourcery.com>
288
289         * inclhack.def (hpux_htonl): New fix.
290         * tests/base/netinet/in.h: New test.
291         * fixincl.x: Regenerate.
292
293 2005-02-23  James E Wilson  <wilson@specifixinc.com>
294
295         * Makefile.in (full-stamp, test-stamp, $(AF)): Add $(CFLAGS) to link.
296
297 2004-12-13  Andrew Pinski  <pinskia@physics.uc.edu>
298
299         PR 18458
300         * Makefile.in (install): Add @EXEEXT@ to the end of the program name,
301         fixincl.
302
303 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
304
305         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
306         * aclocal.m4: Include ../config/gcc-version.m4.
307         * configure: Regenerate.
308
309 2004-11-26  Mark Mitchell  <mark@codesourcery.com>
310
311         * inclhack.def (gnu_types): Do not use on Solaris 2.1x.
312         (stdio_va_list): Likewise.
313         (stdio_stdarg.h): Likewise.
314         (solaris_stdio_tag): Add bypass.
315         * fixincl.x: Regenerated.
316
317 2004-11-23  Geoffrey Keating  <geoffk@apple.com>
318
319         * mkfixinc.sh: Check error code from 'cat'.  Don't try running
320         built fixincl program.
321         * mkheaders.in: Use @SHELL@ rather than ${SHELL} to avoid picking
322         up csh from user.
323
324 2004-11-20  Roger Sayle  <roger@eyesopen.com>
325
326         * inclhack.def (alpha_pthread_init): Fix technical problems with
327         the last check-in caused by CVS variable substitution.
328         * fixincl.x: Likewise.
329         * tests/base/pthread.h: Likewise.
330
331 2004-11-20  Roger Sayle  <roger@eyesopen.com>
332             Bruce Korb  <bkorb@gnu.org>
333
334         * inclhack.def (alpha_pthread_init): New fix.
335         * fixincl.x: Regenerate.
336         * tests/base/pthread.h: Update for new test.
337
338 2004-11-15  Bruce Korb  <bkorb@gnu.org>
339
340         * fixincl.c(fix_with_system): correct misuse of variables and
341         incorrect application of "sizeof()".
342
343 2004-11-13  Joseph S. Myers  <joseph@codesourcery.com>
344
345         * inclhack.def (hpux_maxint, limits_ifndefs, math_huge_val_ifndef,
346         svr4__p, undefine_null): Remove.
347         * fixincl.x: Regenerate.
348         * tests/base/AvailabilityMacros.h, tests/base/com_err.h: New.
349         * tests/base/sys/param.h: Remove.
350         * tests/base/curses.h, tests/base/math.h, tests/base/testing.h,
351         tests/base/sys/limits.h: Update.
352
353 2004-11-12  Mike Stump  <mrs@apple.com>
354
355         * Makefile.in (html): Add html generation support.
356
357 2004-11-12  Joseph S. Myers  <joseph@codesourcery.com>
358
359         * inclhack.def (sco_math): Bypass on __GNUG__.
360         (sysz_stdlib_for_sun): Bypass on _CLASSIC_ANSI_TYPES.
361         * fixincl.x: Regenerate.
362
363 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
364
365         * inclhack.def (hpux8_bogus_inlines): Bypass on __GNUG__.
366         (int_abort_free_and_exit, sun_malloc, sysv68_string): Bypass on
367         _CLASSIC_ANSI_TYPES.
368         (sun_auth_proto): Bypass on __cplusplus.
369         * fixincl.x: Regenerate.
370
371 2004-11-05  Geoffrey Keating  <geoffk@apple.com>
372
373         * Makefile.in (mostlyclean): Add fixinc.sh.
374         (clean): Add mkheaders.
375         (distclean): New.
376         (dvi): New.
377         (info): New.
378         (installcheck): New.
379
380 2004-11-05  Paolo Bonzini  <bonzini@gnu.org>
381
382         * Makefile.in (mostlyclean, distclean): New targets.
383
384 2004-11-04  Geoffrey Keating  <geoffk@apple.com>
385
386         * configure.ac: Add code to determine noncanonical_target,
387         local_prefix, gcc_version; process mkheaders.in to make mkheaders.
388         * configure: Regenerate.
389         * fixinc.in: Move here from gcc/; fix many cross-hosting bugs.
390         * mkfixinc.sh: Move here from gcc/; update for changes to fixinc.in.
391         * mkheaders.in: Move here from gcc/; remove some unnecessary macros;
392         update for changes to fixinc.in.
393         * Makefile.in: Add many new macros.
394         (install): New target.
395         (mkheaders): New target.
396         (fixinc.sh): New target.
397         (all): Add mkheaders and fixinc.sh.
398         * README-fixinc: Move here from gcc/.
399
400 2004-11-01  Mike Stump  <mrs@apple.com>
401
402         * inclhack.def (stdio_va_list): Break out clients from here...
403         (stdio_va_list_clients): ...to here.  Also, don't fix if stdarg.h is
404         included or ifdef va_start.
405         * fixincl.x: Regenerate.
406
407 2004-10-28  Mike Stump  <mrs@apple.com>
408
409         * inclhack.def (void_null): Avoid changing NULL on C++ friendly
410         systems.
411         * fixincl.x: Regenerate.
412
413 2004-10-27  Geoffrey Keating  <geoffk@apple.com>
414
415         * inclhack.def (darwin_gcc4_breakage): New.
416         * fixincl.x: Regenerate.
417
418 2004-10-27  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
419
420         PR bootstrap/17832
421
422         * fixfixes.c (main): Check for _PC_NAME_MAX.
423
424 2004-10-27  Paolo Bonzini  <bonzini@gnu.org>
425
426         PR other/17991
427
428         * configure.ac: Fix typo.
429         * configure: Regenerate.
430         * fixincl.c (fix_with_system): tSCC is not a pointer.  Fix.
431
432 2004-10-20  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
433
434         PR bootstrap/17832
435
436         * fixincl.c (SIGCHLD): Remove definition.
437         (initialize): Remove SIGIOT and SIGPIPE checks.
438         (create_file): Fix mkdir() for Win32.
439         (internal_fix): Use dup2() instead of fcntl().
440
441         * fixlib.h (SIGQUIT): Define if undefined.
442         (SIGIOT): Same.
443         (SIGPIPE): Same.
444         (SIGALRM): Same.
445         (SIGKILL): Same.
446
447         * procopen.c (chain_open): Use dup2() instead of fcntl().
448
449 2004-08-14  Paolo Bonzini  <bonzini@gnu.org>
450
451         PR other/17991
452
453         * Makefile.in (ALLOBJ, TESTOBJ, FIXOBJ): Add fixopts.o.
454         Update copyright year.
455         * fixfixes.c (main): Call initialize_opts from fixopts.c.
456         * fixincl.c (initialize): Call initialize_opts from fixopts.c,
457         do not include code for parsing options (environment vars).
458         (fix_with_system): Use a search path for applyfix, so that you
459         can run the test suite with two-process fixincludes.
460         * fixopts.c: New file.
461         * configure.ac: Add --enable-twoprocess.  Export ac_exeext
462         to config.h.  Default to --enable-twoprocess for MinGW32.
463         * config.h.in: Regenerate.
464         * configure: Regenerate.
465
466 2004-10-04  Loren J. Rittle  <ljrittle@acm.org>
467
468         * tests/base/sys/cdefs.h: Update from test area.
469
470 2004-09-17  Roger Sayle  <roger@eyesopen.com>
471
472         * inclhack.def (linux_ia64_ucontext): New fix.
473         * fixincl.x: Regenerate.
474         * tests/base/sys/ucontext.h: New file.
475
476 2004-09-15  Roger Sayle  <roger@eyesopen.com>
477
478         * tests/base/sys/time.h: Correct mismatch in 2004-09-10 check-in.
479         * tests/base/stdlib.h: Likewise.
480
481 2004-09-13  Loren J. Rittle  <ljrittle@acm.org>
482
483         * inclhack.def (freebsd_gcc4_breakage): Add.
484         * fixincl.x: Regenerate.
485         * tests/base/sys/cdefs.h: Update for new test.
486
487 2004-09-10  Adam Nemet  <anemet@lnxw.com>
488
489         * inclhack.def (lynx_void_int): Remove.
490         (lynxos_fcntl_proto): Remove.
491         (lynxos_no_warning_in_sys_time_h): New fix.
492         (lynxos_missing_putenv): New fix.
493         * fixincl.x: Regenerate.
494         * tests/base/fcntl.h: Remove.
495         * tests/base/sys/time.h: Update from test area.
496         * tests/base/curses.h: Likewise.
497         * tests/base/stdlib.h: Likewise.
498
499 2004-09-03  Jan Beulich  <jbeulich@novell.com>
500
501         * inclhack.def: Suppress exception_structure and math_exception
502         for NetWare headers.
503         * fixincl.x: Regenerate.
504
505 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
506
507         * .cvsignore: New.
508         * Makefile.in: From gcc/fixinc/Makefile.in, making it fully
509         autoconfiscated.
510         * configure.ac: New.
511         * config.h.in: Generate.
512         * configure: Generate.
513         * aclocal.m4: New.
514         * fixlib.h: Remove inclusions of gcc files.
515         * system.h: New.
516
517         Other files copied from gcc/fixinc.