aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc
AgeCommit message (Collapse)AuthorFilesLines
2004-08-31Made fixincludes a toplevel build module.Paolo Bonzini95-19285/+0
toplevel: 2004-08-31 Paolo Bonzini <bonzini@gnu.org> * Makefile.def (build_modules): Add fixincludes. (dependencies): Make gcc depend on fixincludes. * configure.in (build_tools): Add fixincludes. (build_configdirs): Always include build_libs. * Makefile.in: Regenerate. * configure: Regenerate. contrib: 2004-08-04 Paolo Bonzini <bonzini@gnu.org> * gcc_update: Add fixincludes. fixincludes: 2004-08-31 Paolo Bonzini <bonzini@gnu.org> * .cvsignore: New. * Makefile.in: From gcc/fixinc/Makefile.in, making it fully autoconfiscated. * configure.ac: New. * config.h.in: Generate. * configure: Generate. * aclocal.m4: New. * fixlib.h: Remove inclusions of gcc files. * system.h: New. Other files copied from gcc/fixinc. gcc: 2004-08-31 Paolo Bonzini <bonzini@gnu.org> * Makefile.in (build_subdir): New substitution. (fixinc.sh): Simplify heavily since fixincludes is already built. (stmp-fixinc): Depend on specs.ready. (install-mkheaders): Use new location of fixincludes. (clean): Do not descend into fixinc. (FORBUILD): Replace with ../$(build_subdir). * configure.ac (build_subdir): Substitute. (FORBUILD): Do not set. (all_outputs): Remove fixinc/Makefile. (default commands): Do not create links in fixinc. * mkfixinc.sh: New, from fixinc/mkfixinc.sh without the fixincludes configuration steps and substituting @FIXINCL@ in fixinc.in. * fixinc.in: New, from fixinc/fixincl.sh. * fixinc/*: Removed. From-SVN: r86824
2004-08-30Makefile.in (machname.h): Remove.Paolo Bonzini7-86/+67
2004-08-30 Paolo Bonzini <bonzini@gnu.org> * fixinc/Makefile.in (machname.h): Remove. (fixincl.x): Do not pass $@ to genfixes. * fixinc/genfixes: Remove code to produce machname.h. * fixinc/fixincl.sh: Move it here instead. * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence, instead check if pz_mn_name_pat is NULL. Make mn_get_regexps return a bool indicating whether pz_mn_name_pat is NULL. * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence. Declare extern C variables for the ENV_TABLE. * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence, instead use the result of mn_get_regexps. * fixinc/fixtests.c: Likewise. From-SVN: r86771
2004-08-23Makefile.in (BUILD_ERRORS): Set to build-errors.Nathan Sidwell1-1/+1
* Makefile.in (BUILD_ERRORS): Set to build-errors. (errors.o): New target for host. (build-errors.o): New target for build. (genobjs): Replace errors.o with build-errors. (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS). (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o. (fix-headers$(build_exeext)): Add $(BUILD_ERRORS). (fix-header.o): Add errors.h * collect2.c (fancy_abort): Add parameters. * collect2.h (fancy_abort): Don't declare. * errors.h (fancy_abort): Don't declare. * errors.c: Include either bconfig.h or config.h. (fancy_abort): Trim filename. * fix-header.c (v_fatal, fatal): Remove. (progname): Remove definition. (main): Set progname here. * gcc.c (fancy_abort): Add parameters. * gcc.h (fancy_abort): Remove declaration. * gcov.c (fancy_abort): Remove. * rtl.h (fancy_abort): Don't declare. (abort): Don't define. * tree.h (fancy_abort): Don't declare. (abort): Don't define. * system.h (fancy_abort): Declare. (abort): Define to fancy_abort. * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o * java/jv-scan.c (fancy_abort): Add. From-SVN: r86424
2004-08-14inclhack.def (stdio_va_list): Also fix com_err.h...John David Anglin2-3/+11
* fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h, curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h. * fixinc/fixincl.x: Rebuilt. From-SVN: r86009
2004-08-13re PR libfortran/15930 ([irix6.5] gfortran libraries not built)Roger Sayle3-5/+175
PR libgfortran/15930 * fixinc/inclhack.def (irix___generic1, irix___generic2): New. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/internal/math_core.h: New file. Co-Authored-By: David Billinghurst <David.Billinghurst@riotinto.com> From-SVN: r85962
2004-05-03inclhack.def (svr4_profil): Don't apply on IRIX 5/6.Rainer Orth2-4/+14
* fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6. * fixinc/fixincl.x: Regenerate. From-SVN: r81437
2004-04-24inclhack.def (aix_syswait_2): New fix.Roger Sayle3-5/+65
* fixinc/inclhack.def (aix_syswait_2): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/sys/wait.h: Update for new test. Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r81147
2004-04-21Delete all WARN_CFLAGS references from fixinc.James E Wilson1-4/+1
* Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix comment. * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS. (fixincl.o-warn): Delete. From-SVN: r80984
2004-04-07inclhack.def (rpc_xdr_lvalue_cast_a, [...]): New fixes.Joseph Myers3-5/+124
* fixinc/inclhack.def (rpc_xdr_lvalue_cast_a, rpc_xdr_lvalue_cast_b): New fixes. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/rpc/xdr.h: Add new tests. From-SVN: r80490
2004-01-27fixinc.c (test_test): Initialize res.James A. Morrison1-1/+5
2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca> * fixinc/fixinc.c (test_test): Initialize res. (start_flexer): Initialize pz_cmd_save. From-SVN: r76738
2004-01-23inclhack.def (bad_lval): Renamed to ...Rainer Orth4-114/+81
* fixinc/inclhack.def (bad_lval): Renamed to ... (alpha_bad_lval): ... this. Removed file list. Restrict to alpha*-dec-osf*. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/dirent.h: Remove, moving test ... * fixinc/tests/base/testing.h: ... here, reflecting new name. From-SVN: r76450
2004-01-21inclhack.def (hpux10_stdio_declarations, [...]): New hacks.John David Anglin8-5/+601
* fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3, ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time, ultrix_unistd): New hacks. * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK, ULTRIX_CONST2_CHECK): Add checks. * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise. * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise. * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise. * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise. * fixinc/tests/base/locale.h: New file. * fixinc/fixincl.x: Rebuilt. From-SVN: r76298
2004-01-21reorder struct exception hacks and only bypass glibc for proper C++ handlingBruce Korb1-11/+11
From-SVN: r76246
2004-01-20reorder struct exception hacks and only bypass glibc for proper C++ handlingBruce Korb2-76/+82
From-SVN: r76240
2004-01-16inclhack.def (alpha___extern_prefix): Renamed to ...Rainer Orth7-20/+187
* fixinc/inclhack.def (alpha___extern_prefix): Renamed to ... (alpha___extern_prefix_sys_stat): ... this. Apply to <sys/mount.h>, too. Tweak to match more variations. * fixinc/tests/base/sys/stat.h: Adapt for new hackname. * fixinc/inclhack.def (alpha___extern_prefix, alpha___extern_prefix_standards): New hacks to obey __PRAGMA_EXTERN_PREFIX. * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New test. * fixinc/tests/base/standards.h: Likewise. * fixincl/inclhack.def (alpha_pthread): Tweak to match more variations. New testcase. * fixinc/tests/base/pthread.h: Handle it. * fixincl/inclhack.def (bad_lval): Sort file list. Add many missing files up to Tru64 UNIX V5.1B. * gcc/fixinc/tests/base/libgen.h: Renamed to ... * gcc/fixinc/tests/base/dirent.h: ... this to match new file list order. * fixinc/fixincl.x: Regenerate. From-SVN: r75994
2003-12-20New file for the darwin_private_extern fixBruce Korb1-0/+17
From-SVN: r74886
2003-12-20Keep inclhack.def sortable.Bruce Korb1-2/+4
Keep inclhack.def sortable. The segmentation is based on lines containing only a slash and an asterisk From-SVN: r74883
2003-12-19inclhack.def (darwin_macho_dyldh): New.Geoffrey Keating2-5/+65
* fixinc/inclhack.def (darwin_macho_dyldh): New. * fixinc/fixincl.x: Regenerate. From-SVN: r74819
2003-12-12osf.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__ to ISO C94 for C++.Rainer Orth3-5/+80
* config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__ to ISO C94 for C++. * fixinc/inclhack.def (alpha_wchar): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/wchar.h: New file. From-SVN: r74558
2003-11-03re PR bootstrap/12666 (fixincludes problem on IRIX 6.5.19m)Rainer Orth2-6/+4
* fixinc/inclhack.def (stdio_va_list): Allow tab before va_list. Merge two substitutions. * fixinc/fixincl.x: Regenerate. Fixes PR bootstrap/12666. From-SVN: r73226
2003-10-25Results are re-alphabetized, tooBruce Korb1-5/+5
From-SVN: r72932
2003-10-25snprintf alphabetically precedes uintBruce Korb2-62/+62
From-SVN: r72928
2003-10-24mkfixinc.sh: Remove special cases for svr4 and ptx, and related code.Nathanael Nerode3-1752/+0
* fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and related code. * fixinc/fixinc.ptx: Remove. * fixinc/fixinc.svr4: Remove. From-SVN: r72902
2003-10-22obstack.h: Merge the following change from gnulib...Joseph Myers3-5/+85
include: * obstack.h: Merge the following change from gnulib: 2003-10-21 Paul Eggert <eggert@twinsun.com> * obstack.h (obstack_1grow_fast): Properly parenthesize arg. (obstack_ptr_grow_fast, obstack_int_grow_fast): Don't use lvalue casts, as GCC plans to remove support for them in GCC 3.5. Reported by Joseph S. Myers. This bug was also present in the non-GCC version, indicating that this code had always been buggy and had never been widely used. (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank): Use the fast variant of each macro, rather than copying the definiens of the fast variant; that way, we'll be more likely to catch future bugs in the fast variants. gcc: * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of deprecation of casts as lvalues. * fixinc/inclhack.def (obstack_lvalue_cast): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/obstack.h: New test. gcc/testsuite: * gcc.dg/cast-lvalue-1.c: New test. From-SVN: r72826
2003-10-20inclhack.def (hpux11_snprintf): New edit.Zack Weinberg3-5/+72
* fixinc/inclhack.def (hpux11_snprintf): New edit. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf. From-SVN: r72719
2003-10-14re PR bootstrap/9330 ([alpha-osf]small alphaev56-dec-osf5.1 ↵Rainer Orth3-5/+82
--enable-threads=posix problem) * fixinc/inclhack.def (alpha_pthread_gcc): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New testcase. Fixes PR bootstrap/9330. From-SVN: r72465
2003-10-06inclhack.def (stdio_va_list): Removed _ap fix.Rainer Orth2-8/+6
* fixinc/inclhack.def (stdio_va_list): Removed _ap fix. (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21 introduced some multi-line prototypes. * fixinc/fixincl.x: Regenerate. From-SVN: r72165
2003-09-29configure.in: Remove wildcard from Solaris 8-9/Intel and Solaris 2.3/SPARC...Rainer Orth2-4/+6
boehm-gc: * configure.in: Remove wildcard from Solaris 8-9/Intel and Solaris 2.3/SPARC, there are no micro versions. Treat Solaris 10 and up alike. * configure: Regenerate. gcc: * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like Solaris 7-9. * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by wildcards which explicitly match micro versions. * fixinc/fixincl.x: Regenerate. libstdc++-v3: * configure.host: Handle Solaris 2.5 micro releases explicitly. Remove wildcards from Solaris 2.6, 7-9: there were no micro releases. Treat Solaris 10 and up like 7-9. From-SVN: r71914
2003-09-27GNU CC -> GCCKelley Cook2-8/+8
From-SVN: r71850
2003-08-29inclhack.def: Remove special cases for unsupported PTX 1 and PTX 2 (including...Nathanael Nerode2-55/+2
* fixinc/inclhack.def: Remove special cases for unsupported PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3). * fixinc/fixincl.x: Regenerate. From-SVN: r70918
2003-08-28mkfixinc.sh: Remove special case code for unsupported variants of i?86, ↵Nathanael Nerode1-7/+1
powerpcle, and thumb. * fixinc/mkfixinc.sh: Remove special case code for unsupported variants of i?86, powerpcle, and thumb. From-SVN: r70888
2003-08-28mkfixinc.sh: Remove special case code for unsupported arm and hppa variants.Nathanael Nerode1-6/+0
* fixinc/mkfixinc.sh: Remove special case code for unsupported arm and hppa variants. From-SVN: r70887
2003-08-27inclhack.def (ptx_netswap): New disabled fix, ported from fixinc.ptx.Nathanael Nerode2-10/+38
* fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from fixinc.ptx. * fixinc/inclhack.def (undefine_null): Don't generate \r characters. Prettify a little. * fixinc/fixincl.x: Regenerate. From-SVN: r70848
2003-08-27string.h, regset.h: Fix to match produced versions.Nathanael Nerode3-4/+19
* fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h: Fix to match produced versions. * fixinc/inclhack.def (longlong_t): New disabled test, ported from fixinc.svr4. From-SVN: r70839
2003-08-26inclhack.def (ptx_pwd_h): New disabled fix, ported from fixinc.ptx.Nathanael Nerode1-0/+24
* fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported from fixinc.ptx. From-SVN: r70830
2003-08-26inclhack.def (ptx_sys_mc_param_h): New disabled fix, ported from fixinc.ptx.Nathanael Nerode1-0/+24
* fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix, ported from fixinc.ptx. From-SVN: r70827
2003-08-26inclhack.def (svr4_preproc_lint_on, [...]): New disabled fixes, ported from ↵Nathanael Nerode1-0/+28
fixinc.svr4. * fixinc/inclhack.def (svr4_preproc_lint_on, svr4_preproc_lint_off, svr4_preproc_machine): New disabled fixes, ported from fixinc.svr4. From-SVN: r70818
2003-08-25inclhack.def (svr4_sighandler_type): New fix, ported from fixinc.svr4.Nathanael Nerode3-5/+69
* fixinc/inclhack.def (svr4_sighandler_type): New fix, ported from fixinc.svr4. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/sys/signal.h: Regenerate. From-SVN: r70786
2003-08-24inclhack.def (AAB_svr4_replace_byteorder): Enhance comment.Nathanael Nerode2-6/+12
* fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance comment. Enable for DYNIX/ptx systems (when they switch to regular fixincludes). * fixinc/fixincl.x: Regenerate. From-SVN: r70760
2003-08-12fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.Nathanael Nerode3-12/+97
fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable for selected machines. Comment heavily. fixinc/fixincl.x: Rebuild. fixinc/tests/base/fs/rfs/rf_cache.h: New file. From-SVN: r70362
2003-08-11avr.c (avr_init_once): Use xcalloc in lieu of xmalloc/memset.Kaveh R. Ghazi1-2/+1
* config/avr/avr.c (avr_init_once): Use xcalloc in lieu of xmalloc/memset. * config/ia64/ia64.c (ia64_reorg): Likewise. * conflict.c (conflict_graph_new): Likewise. * fixinc/fixincl.c (run_compiles): Likewise. * genattrtab.c (optimize_attrs): Likewise. * genrecog.c (new_decision): Likewise. * haifa-sched.c (schedule_block): Likewise. * hashtable.c (ht_create): Likewise. From-SVN: r70337
2003-08-04inclhack.def (svr4_undeclared_getrnge): Introduce and enable.Nathanael Nerode3-24/+102
* fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable. * fixinc/inclhack.def (static_getrnge): Remove disabled hack. * fixinc/fixincl.x: Rebuild. * fixinc/tests/base/regexp.h: New test. From-SVN: r70153
2003-08-01fixfixes.c, [...]: ANSIfy function prototypes and defintions.Nathanael Nerode8-162/+74
* fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c, fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes and defintions. Add missed (?!) ChangeLog entry from previous commit earlier today: * fixinc/inclhack.def (broken_cabs): Make matching more generous. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/math.h: Regenerate to match test_text change. From-SVN: r70078
2003-08-01inclhack.def (broken_cabs): Make matching more generous.Nathanael Nerode3-7/+12
* fixinc/inclhack.def (broken_cabs): Make matching more generous. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/math.h: Regenerate to match test_text change. From-SVN: r70076
2003-07-31inclhack.def (stdio_va_list): Avoid bogus replacement which triggers on Interix.Nathanael Nerode2-2/+4
* inclhack.def (stdio_va_list): Avoid bogus replacement which triggers on Interix. * fixincl.x: Regenerate. From-SVN: r70023
2003-07-31re PR bootstrap/9330 ([alpha-osf]small alphaev56-dec-osf5.1 ↵Rainer Orth3-5/+76
--enable-threads=posix problem) * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by default. * gthr-posix.c: New file. * gthr-posix.h: Define _REENTRANT if missing. Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK. * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided by gthr-posix.o. * config/alpha/t-osf-pthread: New file. * fixinc/inclhack.def (alpha_pthread): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase. * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads warning. Fixes PR bootstrap/9330. From-SVN: r69998
2003-07-28fixinc.svr4: Remove dead code.Nathanael Nerode2-273/+7
* fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary cleanup of junk after #else and #endif directives. Collapse repeated clauses into for statment. * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment. From-SVN: r69870
2003-07-19fixfixes.c [...]: Remove unnecessary casts.Kaveh R. Ghazi4-14/+13
gcc: * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c fixinc/server.c objc/objc-act.c: Remove unnecessary casts. f: * com.c data.c expr.c fini.c g77spec.c global.c lab.c lex.c name.c sta.c stc.c std.c storag.c stt.c stw.c symbol.c target.c type.c: Remove unnecessary casts. cp: * call.c class.c decl.c decl2.c g++spec.c lex.c parser.c pt.c rtti.c semantics.c typeck.c: Remove unnecessary casts. java: * class.c java-tree.h jcf-write.c jvspec.c: Remove unnecessary casts. treelang: * treetree.c: Remove unnecessary casts. From-SVN: r69593
2003-07-17inclhack.def (solaris_mutex_init_2): Escape braces in regexp that don't form ↵Zack Weinberg2-5/+5
a range expression. * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces in regexp that don't form a range expression. * fixinc/fixincl.def: Regenerate. From-SVN: r69517
2003-07-15inclhack.def (avoid_bool_define, [...]): Bypass with __cplusplus, not "we ↵Nathanael Nerode2-7/+7
must use the C++ compiler's type" * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass with __cplusplus, not "we must use the C++ compiler's type" * fixinc/inclhack.def (void_null): Note that Interix needs this. * fixinc/fixincl.x: Regenerate. From-SVN: r69373