summaryrefslogtreecommitdiff
path: root/gcc/fixinc/fixincl.x
Commit message (Collapse)AuthorAgeFilesLines
* reorder some files= entrieskorbb2000-06-171-18/+26
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34582 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixinc/inclhack.def (ctrl_quotes_def, io_quotes_def): Modifyghazi2000-06-161-2/+2
| | | | | | | select pattern to also match macro defs with only one argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34576 138bc75d-0d04-0410-961f-82ee72b054a4
* New include hacks for ultrixkorbb2000-06-051-155/+450
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34409 138bc75d-0d04-0410-961f-82ee72b054a4
* regenerate fixincl.xkorbb2000-06-021-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34357 138bc75d-0d04-0410-961f-82ee72b054a4
* rework "make check" for fixinckorbb2000-05-311-74/+128
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34298 138bc75d-0d04-0410-961f-82ee72b054a4
* restore old algorighm for char_macro_*_fix routineskorbb2000-05-301-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34273 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixinc/inclhack.def (sun_malloc): Handle `calloc'.ghazi2000-05-221-0/+1
| | | | | | | (sun_malloc, sysz_stdtypes_for_sun): Add test_text. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34071 138bc75d-0d04-0410-961f-82ee72b054a4
* many applications of c_fix=format + testskorbb2000-05-201-255/+349
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34059 138bc75d-0d04-0410-961f-82ee72b054a4
* yet more applications of c_fix=format + testskorbb2000-05-201-50/+69
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34055 138bc75d-0d04-0410-961f-82ee72b054a4
* more applications of c_fix=format + testskorbb2000-05-201-219/+267
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34053 138bc75d-0d04-0410-961f-82ee72b054a4
* test_text cleanupskorbb2000-05-191-8/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34020 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixinc/inclhack.def (broken_cabs): Update fix to handle commentsghazi2000-05-181-2/+2
| | | | | | | | following the cabs decl which terminate on the following line. Add the corresponding test_text case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33983 138bc75d-0d04-0410-961f-82ee72b054a4
* Keep HP-UX 11 from stomping on C++ math namespacekorbb2000-05-171-86/+136
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33957 138bc75d-0d04-0410-961f-82ee72b054a4
* added several "test_text" attributes; changed several fixes to use `c_fix = ↵korbb2000-05-161-657/+716
| | | | | | | | | format' and re-alphabetized the fixes git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33930 138bc75d-0d04-0410-961f-82ee72b054a4
* Add several tests and use the ``c_fix = format'' fixer morekorbb2000-05-141-78/+86
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33895 138bc75d-0d04-0410-961f-82ee72b054a4
* implement "wrap" c_fixkorbb2000-05-141-34/+31
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33892 138bc75d-0d04-0410-961f-82ee72b054a4
* fix up some of the testingkorbb2000-05-121-78/+82
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33886 138bc75d-0d04-0410-961f-82ee72b054a4
* enhance the format style c_fix & remove unneeded wrapper funcskorbb2000-05-121-4/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33872 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.robertl2000-05-111-9/+2
| | | | | | | * fixincl.x: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33865 138bc75d-0d04-0410-961f-82ee72b054a4
* regeneratedkorbb2000-05-111-123/+128
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33844 138bc75d-0d04-0410-961f-82ee72b054a4
* disable hpux8_bogus_inlines on SCOkorbb2000-05-091-10/+25
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33806 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove `extern double cabs' declarations from math.hkorbb2000-05-041-93/+134
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33667 138bc75d-0d04-0410-961f-82ee72b054a4
* Added definitions needed by OSR5korbb2000-04-301-172/+334
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33556 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppinit.c (cpp_start_read): Turn off -Wtraditional ifzack2000-04-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | processing C++. * cpplib.c (_cpp_handle_directive): Improve warnings for traditional C and indented directives. * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex, fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap, fixinc/inclhack.def: Indent the # of #include_next one space. * cp/rtti.c: Un-indent #if and #endif. * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a syntax error, but an error has already been printed. * cpplex.c (_cpp_parse_assertion): Give a more specific error message when called with nothing remaining on the line. (_cpp_lex_token): If _cpp_parse_assertion fails, return an OTHER token, not an ASSERTION. * cpplib.c (do_assert): When we create a 'base' node, clear its aschain pointer. * gcc.c-torture/compile/981211-1.c: Move to... * gcc.dg/cpp-as1.c: ...here. * gcc.dg/cpp-as2.c: New file. * gcc.dg/cpp-tradwarn1.c: Change warning regexps to match the compiler. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32870 138bc75d-0d04-0410-961f-82ee72b054a4
* the undefine_null bypass pattern needs to match for DOS headerskorbb2000-02-261-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32199 138bc75d-0d04-0410-961f-82ee72b054a4
* regeneratekorbb2000-02-201-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32081 138bc75d-0d04-0410-961f-82ee72b054a4
* * frame.c (find_fde): Convert for loop to do-while so compilerzack2000-02-011-164/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sees it's always executed at least once. * libgcc2.c (BBINBUFSIZE): Kill. (__bb_init_prg): Use fgets. (__bb_exit_trace_func): Don't paste strings. * unroll.c (unroll_loop): Initialize unroll_type, not unroll_number, and tweak logic to match. * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in all failure paths. (ix86_flags_dependant): Likewise. Disentangle control flow. (ix86_sched_reorder): Break guts out to ix86_sched_reorder_pentium and ix86_sched_reorder_ppro. (ix86_sched_reorder_ppro): Initialize pair2 and insnp before any possible use. * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't use string concatenation. Don't save and restore esi. * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def. (machname.h): Remove script to separate file. Use two-step sequence so target is not created if script fails. * fixinc/gen-machname.h: New file. Handle case where no non-reserved identifiers are defined. * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is an empty string, machine_name doesn't need to do anything at all. (is_cxx_header): Add more cases to regexp. * fixinc/fixlib.h: Update prototype. * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of mn_get_regexps. * fixinc/fixincl.c: Define NO_BOGOSITY. * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out. (hp_sysfile): Add missing comma. (math_exception): Put the wrapper ifdefs at the beginning and the end of the file. * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31744 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>zack2000-01-251-220/+427
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31604 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (fixinc.sh): Depend on specs.zack2000-01-201-43/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31542 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.zack2000-01-191-157/+197
| | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31512 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixinc/fixlib.c: Add copyright notice.zack2000-01-171-272/+188
| | | | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31474 138bc75d-0d04-0410-961f-82ee72b054a4
* C++ file type checkingkorbb1999-12-291-115/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31125 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>zack1999-12-171-192/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30999 138bc75d-0d04-0410-961f-82ee72b054a4
* don't skip GLIBC files any more, more C++ header testing, corrected spelling ↵korbb1999-11-291-37/+19
| | | | | | of mach git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30704 138bc75d-0d04-0410-961f-82ee72b054a4
* __FD_ZERO fixes for gnu libc1&2korbb1999-11-221-108/+269
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30613 138bc75d-0d04-0410-961f-82ee72b054a4
* SVR5 Byteorder fixeskorbb1999-11-151-104/+331
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30538 138bc75d-0d04-0410-961f-82ee72b054a4
* Use C-coded tests and fixes for #endif/#else labelskorbb1999-10-221-18/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30130 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixinc/inclhack.def: Restore patch lost during last merge oflaw1999-10-151-1/+1
| | | | | | | | "no_bogosity" branch. * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30005 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixincludes: Add a HPUX 11 fix for inttypes.h.law1999-10-151-77/+117
| | | | | | | | * fixinc/inclhack.def: Same. * fixinc/inclhack.sh, fixinc/fixincl.sh, fixinc/fixincl.x: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30004 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge from no_bogositykorbb1999-10-121-541/+617
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29918 138bc75d-0d04-0410-961f-82ee72b054a4
* Do not trash single-line C-style commentskorbb1999-08-171-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28735 138bc75d-0d04-0410-961f-82ee72b054a4
* IRIX 5.2's <sys/asm.h> contains an asm comment with an apostrophekorbb1999-08-071-73/+112
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28589 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixincludes: Fix the return type of bsearch, char* -> void*.ghazi1999-08-031-0/+1
| | | | | | | * fixinc/inclhack.def: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28440 138bc75d-0d04-0410-961f-82ee72b054a4
* Double the backslash so sed gets a chance to see it.korbb1999-07-061-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27953 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixinc/inclhack.def(stdio_va_list): This patch Removes akorbb1999-06-281-1/+1
| | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27811 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-06-23 Bruce Korb <ddsinc09@ix.netcom.com>korbb1999-06-231-55/+95
| | | | | | | | | | *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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27718 138bc75d-0d04-0410-961f-82ee72b054a4
* *fixinc/inclhack.def(end_else_label): combined else_labelkorbb1999-06-221-150/+108
| | | | | | | | and endif_label and fixed the sed expression. *fixinc/{fixincl.x|inclhack.sh}: regen git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27703 138bc75d-0d04-0410-961f-82ee72b054a4
* Scripts must end with a new-linekorbb1999-06-181-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27596 138bc75d-0d04-0410-961f-82ee72b054a4
* ISCTRL fix and dgux patchkorbb1999-06-171-90/+186
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27577 138bc75d-0d04-0410-961f-82ee72b054a4
* * fixinc/inclhack.def (endif_label): Add additional selector forlaw1999-06-111-1/+1
| | | | | | | | more bogus stuff after #endif statements. * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27486 138bc75d-0d04-0410-961f-82ee72b054a4