aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc
AgeCommit message (Collapse)AuthorFilesLines
2000-12-14* fixinc/gnu-regex.c: Disable NLS.Kaveh R. Ghazi1-0/+2
From-SVN: r38259
2000-12-14skip stdio_va_list fix if __DJ_va_list found in a headerLaurynas Biveinis2-2/+2
From-SVN: r38242
2000-12-13Fix typoMike Stump1-1/+0
From-SVN: r38235
2000-12-13Use one makefile for fixincBruce Korb11-140/+77
From-SVN: r38231
2000-12-11emit initial value for all fieldsBruce Korb2-131/+131
From-SVN: r38196
2000-12-08safe-ctype.h: New file.Zack Weinberg3-64/+14
include: * safe-ctype.h: New file. libiberty: * safe-ctype.c: New file. * Makefile.in (CFILES): Add safe-ctype.c. (REQUIRED_OFILES): Add safe-ctype.o. * argv.c: Define ISBLANK and use it, not isspace. * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c, strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c) before calling TOLOWER(c)/TOUPPER(c). gcc: * Makefile.in (HOST_RTL): Add safe-ctype.o. (safe-ctype.o): New rule. * system.h: Include safe-ctype.h, not ctype.h. No need to wrap ctype macros. * cpphash.h: Zap IStable and related macros. Define is_* in terms of safe-ctype.h macros. * cppinit.c: Delete the IStable and all related code. * tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and is_space arrays. Delete initialize_char_syntax. Change all references to the above arrays to use macros instead. * tradcpp.h: Define is_idchar, is_idstart, is_space, and is_nvspace in terms of safe_ctype.h's macros. * tradcif.y: is_idchar, is_idstart are macros not arrays. * config/i370/i370.c, config/winnt/dirent.c, config/winnt/fixinc-nt.c, config/winnt/ld.c: Use uppercase ctype macros. If we included ctype.h, include safe-ctype.h instead. * fixinc/fixfixes.c: Use uppercase ctype macros. Don't test ISLOWER(c) before calling TOUPPER(c). * fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk. * fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x). gcc/ch: * lex.c: Don't bother checking whether ISUPPER(c) before calling TOLOWER(c). Don't bother checking whether isascii(c) before testing ISSPACE(c); ISSPACE(c) includes '\n'. gcc/f: * Make-lang.in: Link f/fini with safe-ctype.o. * bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c). * com.c: Use TOUPPER, not ffesrc_toupper. * fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c). * intrin.c: Don't test IN_CTYPE_DOMAIN(c). * src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their initializing code; use TOUPPER and TOLOWER instead of ffesrc_toupper and ffesrc_tolower. * src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_. Don't define ffesrc_toupper or ffesrc_tolower. gcc/java: * jvgenmain.c: Use ISPRINT not isascii. From-SVN: r38124
2000-12-07use "exeext" for variables and "build_exeext" for substitutionBruce Korb3-11/+11
From-SVN: r38113
2000-12-06osf.h: Standarize copyright statement.Rodney Brown2-2/+4
* config/alpha/osf.h: Standarize copyright statement. * config/arc/arc.h: Likewise. * config/arm/elf.h config/arm/coff.h config/arm/aout.h: Likewise. * config/arm/arm.c config/arm/arm.h: Likewise. * config/elxsi/elxsi.h: Likewise. * config/i386/sco.h: Likewise. * config/m68k/crds.h config/m68k/hp320.h config/m68k/lynx.h: Likewise. * config/m68k/m68kv4.h config/m68k/next21.h: Likewise. * config/m68k/sun3.h: Likewise. * config/m88k/dgux.h config/m88k/dguxbcs.h: Likewise. * config/pdp11/2bsd.h config/pdp11/pdp11.h: Likewise. * config/romp/romp.h: Likewise. * config/rs6000/aix41.h: Likewise. * config/sparc/sysv4.h: Likewise. * config/we32k/we32k.c config/we32k/we32k.h: Likewise. * fixinc/gnu-regex.c fixinc/gnu-regex.h: Likewise. * cpplib.h cppexp.c cselib.h profile.c: Likewise. * longlong.h: Likewise. * libgcc2.c: Likewise. From-SVN: r38088
2000-12-07Make the fixinc/Makefile.* files more similarBruce Korb4-21/+20
From-SVN: r38083
2000-12-05Makefile.in (fixinc.sh): Pass $WARN_CFLAGS into fixinc dir.Kaveh R. Ghazi1-1/+1
* Makefile.in (fixinc.sh): Pass $WARN_CFLAGS into fixinc dir. * fixinc/Makefile.in (FIXINC_DEFS): Add $(WARN_CFLAGS). From-SVN: r38045
2000-12-05mkfixinc.sh (*-gnu*): activate fixinc for GNU/Hurd and GNU/Linux.Richard Earnshaw3-6/+4
* fixinc/mkfixinc.sh(*-gnu*): activate fixinc for GNU/Hurd and GNU/Linux. * fixinc/mkfixinc.sh: Run fixinc on netbsd. * fixinc/inclhack.def (machine/ansi.h): Run this rule on all files, to cope with aliased copies. * fixinc/fixincl.x: Regenerate. From-SVN: r38044
2000-12-05enable fixincludes for BeOSBruce Korb4-25/+132
From-SVN: r38038
2000-12-04do not clean autogenerated fixinc filesBruce Korb2-2/+8
From-SVN: r38007
2000-12-03default the build machine triplet, if it is not providedBruce Korb1-4/+6
From-SVN: r37979
2000-12-03pass canonical build name to mkfixinc.sh. Use it for choosing the fix build ↵Laurynas Biveinis1-17/+27
method Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r37976
2000-12-02Prepare for fixincludes on BeOSDaniel Berlin6-51/+97
Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r37959
2000-12-02Kaveh's warning patch from 11/19Bruce Korb4-34/+52
From-SVN: r37958
2000-12-02empty initial versionBruce Korb1-0/+0
From-SVN: r37957
2000-12-02Enable fixincludes for msdosdjgppBruce Korb1-2/+7
From-SVN: r37956
2000-11-30prevent dual double definition protectionJ. David Anglin2-6/+23
Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r37895
2000-11-30Explicitly state srcdir for fixincl.x references - Loren J. RittleLoren J. Rittle1-5/+5
From-SVN: r37894
2000-11-22fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow compilation with older ↵Mike Stump2-2/+2
compilers, such as /bin/cc on SunOS. * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow compilation with older compilers, such as /bin/cc on SunOS. * fixinc/fixfixes.c (FIX_PROC_HEAD): Ditto. Fix one problem with bootstrap on SunOS 4.1.4 system. From-SVN: r37641
2000-11-17* fixinc/mkfixinc.sh: Don't disable fixincludes for any linux*.Richard Henderson1-3/+1
From-SVN: r37533
2000-11-17mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not malloc/realloc.Kaveh R. Ghazi2-21/+6
* mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not malloc/realloc. * cpplib.c (glue_header_name): Likewise. * fixincl.c (run_compiles, start_fixer): Likewise. * fixlib.c (load_file_data): Likewise. * mkdeps.c (munge): Likewise. f: * malloc.c (malloc_init): Call xmalloc, not malloc. From-SVN: r37511
2000-11-15mkfixinc.sh (fixincludes): Add *-*-beos* to list of machines for which ↵Fred Fish1-0/+1
fixincludes is not needed. * fixinc/mkfixinc.sh (fixincludes): Add *-*-beos* to list of machines for which fixincludes is not needed. * config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto. From-SVN: r37481
2000-11-13* fixinc/mkfixinc.sh: Use the ordinary fixincludes on Solaris.Mark Mitchell1-9/+2
From-SVN: r37410
2000-11-12inclhack.def (sunos_matherr_decl): Bypass matherr declarations that use ↵Mark Mitchell2-2/+2
`__MATH_EXCEPTION' in their prototypes, too. * fixinc/inclhack.def (sunos_matherr_decl): Bypass matherr declarations that use `__MATH_EXCEPTION' in their prototypes, too. * fixinc/fixincl.x: Regenerated. From-SVN: r37402
2000-11-12avoid commenting out #endifsBruce Korb3-286/+2
From-SVN: r37401
2000-11-12* fixinc/mkfixinc.sh: Use the ordinary fixincludes on IRIX.Mark Mitchell1-4/+0
From-SVN: r37398
2000-11-11inclhack.def (avoid_wchar_t_type): New fix.Mark Mitchell2-104/+163
* fixinc/inclhack.def (avoid_wchar_t_type): New fix. * fininc/fixincl.x: Regenerated. From-SVN: r37391
2000-11-09* fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.Gerald Pfeifer1-3/+3
From-SVN: r37336
2000-11-03In gcc/:Geoff Keating1-3/+3
* fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'. In gcc/ch/: * Make-lang.in: Remove 'CYGNUS LOCAL' markers. * Makefile.in: Likewise. * configure: Likewise. From-SVN: r37236
2000-10-29toplev.c, [...]: Change comments mentioning C9X to refer to C99 instead.Joseph Myers1-1/+1
* toplev.c, flags.h, fold-const.c, real.c, rtl.c, fixinc/inclhack.def: Change comments mentioning C9X to refer to C99 instead. From-SVN: r37127
2000-10-22genfixes: Remove EGCS reference.Joseph Myers1-1/+1
* fixinc/genfixes: Remove EGCS reference. * install.texi: Remove EGCS reference. * INSTALL: Regenerate. From-SVN: r37007
2000-10-17inclhack.def (hpux_maxint): Also apply fix to values.h.J. David Anglin2-1/+2
* inclhack.def (hpux_maxint): Also apply fix to values.h. * fixincl.x: Rebuilt. From-SVN: r36904
2000-09-29inclhack.def (broken_cabs): Generalize regex.David Edelsohn2-6/+6
* fixinc/inclhack.def (broken_cabs): Generalize regex. * fixinc/fixincl.x: Regenerate. From-SVN: r36669
2000-09-12code cleanupsBruce Korb7-294/+296
From-SVN: r36359
2000-09-05use "#if defined( HAV..." instead of "#if HAV..."Bruce Korb1-1/+1
From-SVN: r36167
2000-09-05PAGESIZE is not portableBruce Korb1-1/+1
From-SVN: r36166
2000-09-05always read header files with poorly chosen sizesBruce Korb1-2/+12
From-SVN: r36163
2000-08-30Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.shGreg McGary2-6/+5
* Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC). * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE. From-SVN: r36077
2000-08-30do not define constJ. David Anglin1-4/+0
From-SVN: r36064
2000-08-24optabs.c (init_optabs): Initialize fixtab...Greg McGary2-2/+2
* optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab, and extendtab within their proper array boundaries. * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds for the entire array. * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE. * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise. * config/avr/avr.c (order_regs_for_local_alloc): Likewise. * config/fr30/fr30.c (fr30_print_operand): Likewise. * config/i386/dgux.c (output_options): Likewise. * config/i386/dgux.h (ASM_FILE_START): Likewise. * config/m88k/m88k.c (output_options): Likewise. * config/m88k/m88k.h (ASM_FILE_START): Likewise. * config/mcore/mcore.c (mcore_output_inline_const_forced, layout_mcore_frame, handle_structs_in_regs): Likewise. * config/mips/mips.c (output_block_move): Likewise. * config/rs6000/rs6000.c (rs6000_override_options, rs6000_file_start): Likewise. * config/sparc/sparc.c (sparc_add_gc_roots): Likewise. * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise. * fixinc/fixtests.c (TEST_TABLE_CT): Likewise. * builtins.c (expand_builtin_setjmp): Likewise. * expr.c (safe_from_p): Likewise. * flow.c (life_analysis): Likewise. * fold-const.c (size_int_type_wide): Likewise. * gcc.c (translate_options, init_spec, set_spec, main): Likewise. * genattrtab.c (make_length_attrs): Likewise. * genopinit.c (gen_insn): Likewise. * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise. * global.c (global_alloc): Likewise. * local-alloc.c (find_free_reg): Likewise. * mips-tdump.c (print_symbol): Likewise. * mips-tfile.c (parse_def, parse_input): Likewise. * reload1.c (NUM_ELIMINABLE_REGS): Likewise. * stmt.c (expand_nl_goto_receiver): Likewise. * stor-layout.c (set_sizetype): Likewise. * varasm.c (decode_reg_name): Likewise. * toplev.c (decode_f_option, decode_W_option, set_target_switch, print_switch_values): Likewise. (NUM_ELEM): Remove macro. (display_help, main): s/NUM_ELEM/ARRAY_SIZE/ From-SVN: r35949
2000-08-23Update to pthread and addition of sys/machine.hBruce Korb2-0/+22
From-SVN: r35910
2000-08-23Fixed the test for aix_pthreadBruce Korb1-1/+2
From-SVN: r35909
2000-08-23Fix sed script for sysv86_string fixEli Zaretskii2-9/+6
From-SVN: r35908
2000-08-23Added a line to the test baseBruce Korb1-0/+1
From-SVN: r35907
2000-08-21prevent the deletion of a file before it is read on DOSEli Zaretskii1-4/+7
From-SVN: r35848
2000-08-21Makefile for i?86-pc-msdosdjgppBruce Korb1-0/+120
From-SVN: r35847
2000-08-14top level:Zack Weinberg3-9/+9
* configure: Make enable_threads and enable_shared defaults explicit. Substitute enable_threads into generated Makefiles. * configure.in: Accept *-*-linux* not just *-*-linux-gnu*. * libtool.m4: Accept *-*-linux* not just *-*-linux-gnu*. gcc: * configure.in: Accept *-*-linux* not just *-*-linux-gnu*. * fixinc/inclhack.def: Likewise. * fixinc/mkfixinc.sh: Likewise. * configure: Regenerate. * fixinc/fixincl.x: Regenerate. * install.texi: Document equivalence of linux and linux-gnu. libio: * configure.in: Accept *-*-linux* not just *-*-linux-gnu*. Honor --disable-threads. libstdc++: * configure.in: Accept *-*-linux* not just *-*-linux-gnu*. Honor --disable-threads. libstdc++-v3: * configure: Regenerate after change to ../libtool.m4. libobjc: * configure: Regenerate after change to ../libtool.m4. From-SVN: r35680