aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc
AgeCommit message (Collapse)AuthorFilesLines
2000-01-26Makefile.in (machname.h): SunOS 4 sed can't handle a file with one line and ↵Zack Weinberg3-6/+6
no trailing newline. * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a file with one line and no trailing newline. Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>. * fixinc/fixtests.c (machine_name_test): Fix fencepost error checking if the match is on the line. * fixinc/gnu-regex.c: Provide regerror not __regerror. From-SVN: r31628
2000-01-25inclhack.def: Fixes to play nicer with FreeBSD, and corrections to comments.Zack Weinberg6-374/+609
2000-01-25 Zack Weinberg <zack@wolery.cumb.org> * inclhack.def: Fixes to play nicer with FreeBSD, and corrections to comments. (cxx_unready): Add select expression. (irix_sockaddr): Add bypass expression. (machine_ansi_h_va_list): New fix. (stdio_va_list): No need to edit _BSD_VA_LIST_. Split out addition of "#include <stdarg.h>" to... (stdio_stdarg_h): ... here. (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply to stdlib.h also. Do not munge _BSD_SIZE_T_. (sysz_stdlib_for_sun): Delete duplicate fix for unprotected size_t. (ultrix_ifdef): Tighten up select expression. * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of re_ct and max_mach to avoid use of shell. Make printed names match names in inclhack.def. Use static copyright date. Don't count c_test and test expressions as requiring regex_t slots. Add some commentary. * inclhack.tpl: Do not include the 'This script contains N fixup scripts' line if PROGRAM is defined. Use static copyright date. From-SVN: r31604
2000-01-24fixfixes.c (fix_char_macro_uses): Correct regular expression to allow ↵Zack Weinberg1-1/+2
underscores in macro names. * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular expression to allow underscores in macro names. (fix_char_macro_defines): Increment scanning pointer. From-SVN: r31580
2000-01-22fixincl.c: Move declarations of 'pz_fname' and 'pz_scan' into scope of ↵Zack Weinberg1-3/+3
entire function. * fixinc/fixincl.c: Move declarations of 'pz_fname' and 'pz_scan' into scope of entire function. Only affects compiles with -DDEBUG. From-SVN: r31564
2000-01-22Test for directory before trying to cd into itJim Wilson3-3/+24
From-SVN: r31561
2000-01-22* fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.Zack Weinberg1-1/+0
From-SVN: r31554
2000-01-20Makefile.in (fixinc.sh): Depend on specs.Zack Weinberg10-197/+236
* Makefile.in (fixinc.sh): Depend on specs. * fixinc/Makefile.in: Add rule to create machname.h. (fixlib.o): Depend on machname.h. * fixinc/fixtests.c (machine_name): New test. * fixinc/fixfixes.c (machine_name): New fix. * fixinc/fixlib.c (mn_get_regexps): New helper function for the machine_name test and fix. * fixinc/fixlib.h: Prototype it. * fixinc/inclhack.def (machine_name): Use the C test and fix. * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild. * gcc.c (do_spec_1) [case P]: Take care not to create identifiers with three leading or trailing underscores. * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC. (fixincl): Don't specify libraries twice on link line. (gnu-regex.o): Remove special rule. * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was defined by config.h. Do not define _REGEX_RE_COMP. (regcomp): Allocate and initialize a fastmap. * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP. From-SVN: r31542
2000-01-19Makefile.in: Correct dependencies of fixincl and fixincl.o.Zack Weinberg8-348/+538
* fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o. * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes. (fix_char_macro_defines, fix_char_macro_uses): New functions. * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp. Recognize Emacs mode markers also. * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of C++ comments in C++ headers. Call is_cxx_header only if necessary. * fixinc/inclhack.def (avoid_bool): Add select for the problem and bypass for ncurses. (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with... (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes): ... these, which use the new C fixes. (math_exception): Escape literal '+' in bypass expression. * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate. From-SVN: r31512
2000-01-17fixlib.c: Add copyright notice.Zack Weinberg9-515/+391
* fixinc/fixlib.c: Add copyright notice. (compile_re): New function. * fixinc/fixlib.h: Prototype compile_re. * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c: Use compile_re to compile regular expressions. * fixinc/fixincl.c (egrep_test): Don't bother asking regexec where the pattern matched. * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy, use 'replace'. (ultrix_ansi_compat): Likewise. (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test, add egrep test. (interactv_add2, interactv_add3): Delete. (x11_sprintf): Don't use filename glob. * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh: Regenerate. From-SVN: r31474
2000-01-13fixincludes (va_list): Use __not_va_list__ for the dummy.Jason Merrill4-10/+10
* fixincludes (va_list): Use __not_va_list__ for the dummy. * fixinc/*: Likewise. From-SVN: r31401
1999-12-29C++ file type checkingBruce Korb11-369/+407
From-SVN: r31125
1999-12-17fixtests.c (is_cxx_header): New fn, split out of double_slash_test.Zack Weinberg9-421/+724
1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu> * fixtests.c (is_cxx_header): New fn, split out of double_slash_test. (else_endif_label): Allow "#endif // comment" in C++ headers, as determined by is_cxx_header. * fixfixes.c (else_endif_label_fix): Update comment. * fixincl.c: Don't output VERB_PROGRESS lines if stdout is not a tty. * genfixes: Correct double thinko in commandline parsing. * hackshell.tpl: Generate correct sh syntax for bypass entries. * inclhack.def (all): Whenever an inserted preprocessor conditional is split over multiple lines, use double backslashes in this file so the fixed header will be readable. (AAB_fd_zero_glibc_1_0): Rename to AAB_fd_zero_asm_posix_types_h and add bypass entry for correct version of this header. (AAB_fd_zero_glibc_1_x): Rename to AAB_fd_zero_gnu_types_h. (AAB_fd_zero_glibc_2_0): Rename to AAB_fd_zero_selectbits_h. (hpux8_bogus_inlines): New fix, split from... (ultrix_atof_param) ... here. (math_expression): Add bypass entry keyed to glibc comment indicating the problem has been dealt with; disable unnecessary sed operations; update commentary. (math_gcc_ifndefs): Rename to math_huge_val_from_dbl_max, add select and bypass entries, simplify shell operation. (math_huge_val_ifndef): Split from math_gcc_ifndefs. (ip_missing_semi, rs6000_param, tinfo_cplusplus, ultrix_atof_param): Add select entry. (stdio_va_list, sunos_mather_decl): Add bypass entry. (systypes_for_aix, sysv86_string, tinfo_cplusplus): Put the comments with the fixes they describe. * fixincl.x, fixincl.sh, inclhack.sh: Regen. From-SVN: r30999
1999-11-29don't skip GLIBC files any more, more C++ header testing, corrected spelling ↵Bruce Korb6-64/+36
of mach From-SVN: r30704
1999-11-22fixinc.x86-linux-gnu folded into inclhack.defBruce Korb1-143/+0
From-SVN: r30614
1999-11-22__FD_ZERO fixes for gnu libc1&2Bruce Korb5-264/+593
From-SVN: r30613
1999-11-15SVR5 Byteorder fixesRobert Lipe4-227/+852
Co-Authored-By: Bruce Korb <autogen@linuxbox.com> From-SVN: r30538
1999-11-11Added verbose levels for status messagesBruce Korb1-21/+121
From-SVN: r30490
1999-11-04Allow for systems that do not have S_IR* defined valuesBruce Korb2-4/+21
Do not call realloc with a NULL pointer From-SVN: r30391
1999-11-01Patch from Philippe De Muyter <phdm@macqel.be>Philippe De Muyter3-13/+12
From-SVN: r30322
1999-10-25oops - typoBruce Korb1-1/+1
From-SVN: r30166
1999-10-25Provide a means for specifying -D options to AutoGenBruce Korb1-13/+51
From-SVN: r30165
1999-10-22Use C-coded tests and fixes for #endif/#else labelsBruce Korb6-81/+334
From-SVN: r30130
1999-10-19use genfixes within Makefile.in and move comments to READMEBruce Korb4-126/+231
From-SVN: r30086
1999-10-15inclhack.def: Restore patch lost during last merge of "no_bogosity" branch.Loren J. Rittle3-3/+3
* fixinc/inclhack.def: Restore patch lost during last merge of "no_bogosity" branch. * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt. From-SVN: r30005
1999-10-15fixincludes: Add a HPUX 11 fix for inttypes.h.Gavin Romig-Koch4-153/+236
* fixincludes: Add a HPUX 11 fix for inttypes.h. * fixinc/inclhack.def: Same. * fixinc/inclhack.sh, fixinc/fixincl.sh, fixinc/fixincl.x: Regenerate. From-SVN: r30004
1999-10-12merging from no_bogosityBruce Korb2-2/+7
From-SVN: r29924
1999-10-12Protect the definitions of the t_bool enumBruce Korb1-0/+3
[[Split portion of a mixed commit.]] From-SVN: r29923.2
1999-10-12Merge from no_bogosityBruce Korb1-0/+3
From-SVN: r29919
1999-10-12Merge from no_bogosityBruce Korb12-1699/+2473
From-SVN: r29918
1999-09-27fixinc.irix (stdio.h): Hack stdio.h to avoid problems with va_list.Jeffrey A Law1-0/+37
* fixinc/fixinc.irix (stdio.h): Hack stdio.h to avoid problems with va_list. From-SVN: r29683
1999-09-16system.h (CTYPE_CONV, [...]): New macros.Kaveh R. Ghazi2-6/+7
* system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use CTYPE_CONV in all ctype macros. * cccp.c (initialize_char_syntax): Use uppercase ctype macro from system.h. * cexp.y (initialize_random_junk): Likewise. * c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise. * i370.c (handle_pragma): Likewise. * i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise. * v850.c (override_options): Likewise. * doprint.c (_doprnt): Likewise. * fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files): Likewise. * fixinc/server.c (load_data): Likewise. * fold-const.c (real_hex_to_f): Likewise. * genattr.c (write_upcase, gen_attr): Likewise. * genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr, write_upcase): Likewise. * genemit.c (print_code): Likewise. * genopinit.c (gen_insn): Likewise. * genpeep.c (print_code): Likewise. * genrecog.c (print_code): Likewise. * optabs.c (init_libfuncs): Likewise. ch: * lex.c (maybe_downcase, getlc, handle_generic_pragma, check_newline): Likewise. f: * bad.c (ffebad_finish): Likewise. * fini.c (main): Likewise. * intrin.c (ffeintrin_init_0): Likewise. * lex.c (ffelex_hash_): Likewise. * src.c (ffesrc_init_1): Likewise. From-SVN: r29463
1999-08-30Make fixinc/ work when autogen is not installed.Jim Wilson1-3/+8
* fixinc/Makefile.in (subdir): New. (fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP). (Makefile): New. From-SVN: r28986
1999-08-24mkfixinc.sh: Don't fix uwin headers.Mumit Khan1-0/+1
* fixinc/mkfixinc.sh: Don't fix uwin headers. * i386/uwin.h (MD_STARTFILE_PREFIX): Define. (LINK_SPEC): Add -u _main when building executables. (ASM_DECLARE_FUNCTION): Update from Cygwin. (ASM_FILE_END): Use the default for ix86-pe. * i386/xm-uwin.h (HAVE_BCOPY): Undefine. From-SVN: r28836
1999-08-17Do not trash single-line C-style commentsLoren J. Rittle4-4/+8
From-SVN: r28735
1999-08-11inclhack.tpl: Only install assert.h conditionally.Bruce Korb3-15/+21
* fixinc/inclhack.tpl: Only install assert.h conditionally. * fixinc/inclhack.sh: Regenerated. * fixinc/fixincl.sh: Regenerated. From-SVN: r28659
1999-08-07IRIX 5.2's <sys/asm.h> contains an asm comment with an apostropheBruce Korb3-144/+218
From-SVN: r28589
1999-08-07server.c (server_setup): Do not prefix function used as parameter with `&'.Philippe De Muyter1-1/+1
* fixinc/server.c (server_setup): Do not prefix function used as parameter with `&'. From-SVN: r28578
1999-08-03fixincludes: Fix the return type of bsearch, char* -> void*.Kaveh R. Ghazi4-1/+4
* fixincludes: Fix the return type of bsearch, char* -> void*. * fixinc/inclhack.def: Likewise. From-SVN: r28440
1999-07-27add EOL to keep patch happy.Jeff Law1-1/+1
From-SVN: r28294
1999-07-06Double the backslash so sed gets a chance to see it.Bruce Korb2-2/+2
From-SVN: r27953
1999-07-06Double the backslash so sed gets a chance to see it.Bruce Korb1-1/+1
From-SVN: r27952
1999-07-01fixinc.svr4: Fix <arpa/inet.h> by deleting protos for htons and ntohs.Robert Lipe1-0/+31
P * fixinc.svr4: Fix <arpa/inet.h> by deleting protos for htons and ntohs. From-SVN: r27915
1999-06-28inclhack.def (stdio_va_list): This patch Removes a semicolon from the BSD ↵David O'Brien4-5/+4
VA_LIST replacement expression. * fixinc/inclhack.def(stdio_va_list): This patch Removes a semicolon from the BSD VA_LIST replacement expression. * fixinc/inclhack.sh: regen * fixinc/fixincl.x: regen * fixinc/mkfixinc.sh: Have `i[34567]86-*-freebsd*' machines now use the fixincl program. From-SVN: r27811
1999-06-23inclhack.def: Add fix development commentaryBruce Korb3-125/+245
1999-06-23 Bruce Korb <ddsinc09@ix.netcom.com> *fixinc/inclhack.def: Add fix development commentary (read_ret_type): reactivate and add selection clause (zzz_*): tweak output file name to match what is used in hackshell.tpl *fixinc/{fixincl.x|inclhack.sh}: regen From-SVN: r27718
1999-06-22inclhack.def (end_else_label): combined else_label and endif_label and fixed ↵Bruce Korb3-293/+215
the sed expression. *fixinc/inclhack.def(end_else_label): combined else_label and endif_label and fixed the sed expression. *fixinc/{fixincl.x|inclhack.sh}: regen From-SVN: r27703
1999-06-20Makefile.in (gnu-regex.o): Do not define STDC_HEADERS in compiler flags.Philippe De Muyter1-1/+1
x * fixinc/Makefile.in (gnu-regex.o): Do not define STDC_HEADERS in compiler flags. * system.h (WSTOPSIG): New macro. From-SVN: r27653
1999-06-18Scripts must end with a new-lineBruce Korb3-5/+5
From-SVN: r27596
1999-06-18Enable yesterday's patch for fast-fix on DG/UXBruce Korb1-5/+0
From-SVN: r27590
1999-06-17ISCTRL fix and dgux patchBruce Korb3-219/+429
From-SVN: r27577
1999-06-10inclhack.def (endif_label): Add additional selector for more bogus stuff ↵Jeffrey A Law3-3/+9
after #endif statements. * fixinc/inclhack.def (endif_label): Add additional selector for more bogus stuff after #endif statements. * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt. From-SVN: r27486