aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc
AgeCommit message (Collapse)AuthorFilesLines
2000-05-17Keep HP-UX 11 from stomping on C++ math namespaceBruce Korb2-86/+156
From-SVN: r33957
2000-05-17improve the debug displays, ignore SIGPIPE, and fix char_macro_def regexBruce Korb3-23/+44
From-SVN: r33956
2000-05-17fixfixes.c (char_macro_use_fix, [...]): Don't check the return value of sprintf.Kaveh R. Ghazi1-9/+14
* fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix): Don't check the return value of sprintf. Use asprintf to avoid buffer overflows. From-SVN: r33955
2000-05-16corrected and rewrote char_macro_* fixes to parse the text with regexesBruce Korb3-284/+315
From-SVN: r33931
2000-05-16added several "test_text" attributes; changed several fixes to use `c_fix = ↵Bruce Korb4-939/+1282
format' and re-alphabetized the fixes From-SVN: r33930
2000-05-14Add several tests and use the ``c_fix = format'' fixer moreBruce Korb4-126/+237
From-SVN: r33895
2000-05-14implement "wrap" c_fixBruce Korb6-109/+253
From-SVN: r33892
2000-05-12fix up some of the testingBruce Korb6-99/+178
From-SVN: r33886
2000-05-12buglet & relaxed rulesBruce Korb1-22/+44
From-SVN: r33877
2000-05-12misapplied rejected patchBruce Korb1-1/+1
From-SVN: r33874
2000-05-12enhance the format style c_fix & remove unneeded wrapper funcsBruce Korb1-5/+3
From-SVN: r33873
2000-05-12enhance the format style c_fix & remove unneeded wrapper funcsZack Weinberg4-89/+81
From-SVN: r33872
2000-05-11inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.Robert Lipe2-10/+2
* fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO. * fixincl.x: Regenerate. From-SVN: r33865
2000-05-11* fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.Jason Merrill1-1/+1
From-SVN: r33860
2000-05-11* fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.Zack Weinberg2-12/+5
From-SVN: r33858
2000-05-11base diff file (needs workvi ../ChangeLog)Bruce Korb1-0/+348
From-SVN: r33847
2000-05-11Private spelling of autogen :-}Bruce Korb1-1/+1
From-SVN: r33846
2000-05-11regeneratedBruce Korb1-123/+128
From-SVN: r33844
2000-05-11Added support for "make check" and the "format" c_fixBruce Korb8-452/+268
From-SVN: r33843
2000-05-10reg_syntax_t re_syntax_options must be static scopeBruce Korb1-1/+1
From-SVN: r33825
2000-05-09disable hpux8_bogus_inlines on SCOBruce Korb2-10/+26
From-SVN: r33806
2000-05-09Added 'test_text' for many fixesBruce Korb2-29/+161
From-SVN: r33801
2000-05-09fixinc.sco is not needed any moreBruce Korb1-445/+0
From-SVN: r33799
2000-05-08Remove dependencies on dead filesBruce Korb1-16/+10
From-SVN: r33772
2000-05-08disable fixincludes for -*-msdosdjgpp* |Bruce Korb1-14/+14
From-SVN: r33771
2000-05-08code generation reduction & sco script removalBruce Korb3-38/+4
From-SVN: r33766
2000-05-08no longer neededBruce Korb3-4313/+0
From-SVN: r33765
2000-05-05Improve the matching for make target namesBruce Korb1-4/+4
From-SVN: r33718
2000-05-04Remove BOGOSITY code, and Remove code for installing "shell" versionBruce Korb2-106/+2
From-SVN: r33669
2000-05-04Remove `extern double cabs' declarations from math.hBruce Korb3-94/+170
From-SVN: r33667
2000-04-30removed two stale entriesBruce Korb1-38/+4
From-SVN: r33557
2000-04-30Added definitions needed by OSR5Bruce Korb3-286/+566
From-SVN: r33556
2000-04-25use install-bin and install-sh in fixinc's makefileBruce Korb2-44/+40
From-SVN: r33423
2000-04-17aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).Zack Weinberg1-3/+3
* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]). (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of a plain file. * configure.in: Call AC_FUNC_MMAP_FILE. * configure: Regenerate. * config.in: Regenerate. * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP. * fixinc/fixincl.c: Likewise. From-SVN: r33212
2000-04-03server.c (find_shell): New function.Felix Lee1-0/+24
* fixinc/server.c (find_shell): New function. Avoid $SHELL. (run_shell): Use it. From-SVN: r32878
2000-04-02cppinit.c (cpp_start_read): Turn off -Wtraditional if processing C++.Zack Weinberg6-15/+15
* cppinit.c (cpp_start_read): Turn off -Wtraditional if 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. From-SVN: r32870
2000-03-29Initially set the variable "fixincludes" to a non-fileBruce Korb1-1/+1
From-SVN: r32804
2000-03-01remove unused symlinks from generated include dirBruce Korb4-36/+122
From-SVN: r32284
2000-02-27Makefile.in (STMP_FIXINC): New toggle.Zack Weinberg3-12/+12
* Makefile.in (STMP_FIXINC): New toggle. (LIBGCC2_DEPS): Delete all references. (stmp-headers): Delete target. All references either deleted or changed to stmp-int-headers. (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO. (LIBCPP_OBJS): Take out cppalloc.o. (cppalloc.o): Delete target. (stmp-int-hdrs): Depend on $(STMP_FIXINC). (gen-protos, fix-header): Link with libiberty.a. * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC to empty. * cp/Make-lang.in: Delete refs to LIBGCC2_DEPS. * configure.in: Remove refs to strerror. * acconfig.h: Take out NEED_DECLARATION_STRERROR. * system.h: Take out strerror stanza. * cpperror.c (my_strerror): Delete function. (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror. * cppmain.c (main): Call xmalloc_set_program_name first thing. * cppalloc.c: Delete file. * gen-protos.c: Don't provide xrealloc. * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use xstrerror throughout. From-SVN: r32200
2000-02-26the undefine_null bypass pattern needs to match for DOS headersBruce Korb3-9/+9
From-SVN: r32199
2000-02-26Fix copyrightsJeff Law4-4/+4
From-SVN: r32182
2000-02-20regenerateBruce Korb2-0/+2
From-SVN: r32081
2000-02-20va_list typedef needs to be disabledBruce Korb1-0/+2
From-SVN: r32080
2000-02-16* fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".Jason Merrill1-1/+9
From-SVN: r32019
2000-02-11Remove unneeded @fixinc_defs@Andreas Jaeger1-1/+1
From-SVN: r31932
2000-02-10server.c (load_data): Return NULL if the marker line is not found.Alexandre Oliva1-3/+17
* fixinc/server.c (load_data): Return NULL if the marker line is not found. (run_shell): If load_data returns NULL, retry the command once, in a new shell. From-SVN: r31894
2000-02-05Makefile.in (HDR): Add machname.h.Kaveh R. Ghazi1-2/+2
* fixinc/Makefile.in (HDR): Add machname.h. (clean): Likewise. From-SVN: r31800
2000-02-04genfixes (machname.h): Move the functionality from gen-machine.h into this file.Bruce Korb7-85/+101
2000-02-04 Bruce Korb <bkorb@gnu.org> * fixinc/genfixes(machname.h): Move the functionality from gen-machine.h into this file. UNdef MN_NAME_PAT if there are no names to change. Also, be a little kinder when AutoGen is not present. * fixinc/Makefile.in(machname.h): Change the generation rule to use genfixes. * fixinc/fixfixes.c(machine_name): machine_name_fix's functionality now dependent upon whether MN_NAME_PAT is defined. * fixinc/fixtests.c(machine_name): ditto. * fixinc/fixlib.c(mn_get_regexps): conditional on definition of MN_NAME_PAT. * fixinc/fixlib.h(mn_get_regexps): ditto * fixinc/gen-machine.h: DELETED From-SVN: r31793
2000-02-01frame.c (find_fde): Convert for loop to do-while so compiler sees it's ↵Zack Weinberg10-289/+176
always executed at least once. * frame.c (find_fde): Convert for loop to do-while so compiler 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. From-SVN: r31744
2000-02-01fixinc.irix: Use unique filenames for writing into /tmp,Kaveh R. Ghazi5-50/+50
* fixinc.irix: Use unique filenames for writing into /tmp, * fixinc.ptx: Likewise. * fixinc.sco: Likewise. * fixinc.svr4: Likewise. * fixinc.winnt: Likewise. From-SVN: r31742