aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc
AgeCommit message (Collapse)AuthorFilesLines
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
2003-07-14[multiple changes]Nathanael Nerode3-141/+3
2003-07-14 Douglas Rupp <rupp@gnat.com> * fixinc/server.c (server_setup): Don't use non-POSIX NULL first argument to getcwd; use fixed buffer instead. 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org> * fixinc/mkfixinc.sh: Treat OpenBSD normally. * fixinc/fixinc.wrap: Delete. From-SVN: r69339
2003-07-13inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass (for OpenBSD).Nathanael Nerode2-4/+4
* fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass (for OpenBSD). * fixinc/fixincl.x: Rebuild. From-SVN: r69284
2003-07-12inclhack.def (alpha_sbrk): Note that OpenBSD needs this fix.Nathanael Nerode1-0/+1
* fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this fix. From-SVN: r69274
2003-07-12inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in (on OpenBSD).Nathanael Nerode2-6/+13
* fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in (on OpenBSD). From-SVN: r69270
2003-07-12* fixinc/inclhack.def (gnu_types): Improve comment.Nathanael Nerode1-1/+6
From-SVN: r69269
2003-07-11mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.Nathanael Nerode2-8/+1
* fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*. Move i?86-*-interix* to the don't-fix list. * fixinc/fixinc.interix: Delete with extreme prejudice. From-SVN: r69216
2003-07-09inclhack.def (limits_ifndefs): Add select test.Nathanael Nerode2-8/+15
* fixinc/inclhack.def (limits_ifndefs): Add select test. * fixinc/fixincl.x: Rebuild. From-SVN: r69154
2003-07-09inclhack.def (math_exception): Improve bypass and comment.Nathanael Nerode2-5/+6
* fixinc/inclhack.def (math_exception): Improve bypass and comment. * fixinc/fixincl.x: Rebuild. From-SVN: r69151
2003-07-08Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.Zack Weinberg10-6371/+34
* Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies. * fixinc/Makefile.in: Remove all references to gnu-regex.[och]. * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp. * fixinc/fixlib.h: Include xregex.h not gnu-regex.h. * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline): Escape { and } characters which are not part of range expressions. * fixinc/fixincl.x: Regenerate. From-SVN: r69099
2003-07-08mkfixinc.sh: Remove winnt support.Nathanael Nerode2-237/+0
* fixinc/mkfixinc.sh: Remove winnt support. * fixinc/fixinc.winnt: Delete with extreme prejudice. From-SVN: r69070
2003-07-02inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> ↵Rainer Orth2-5/+16
too. * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> too. (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and <internal/wchar_core.h> too. Substitute va_list uses in inline definition. * fixinc/fixincl.x: Regenerate. From-SVN: r68811
2003-06-17alloc-pool.c: Don't check HAVE_LONG_DOUBLE.Kaveh R. Ghazi1-4/+0
gcc: * alloc-pool.c: Don't check HAVE_LONG_DOUBLE. * fixinc/gnu-regex.c: Don't define `volatile'. * ggc-page.c: Don't check HAVE_LONG_DOUBLE. * ggc-simple.c: Likewise. * system.h: Don't define `volatile'. * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete. * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't call these macros. * config.in, configure: Regenerated. include: * ansidecl.h: Delete HAVE_LONG_DOUBLE GCC bootstrap support. From-SVN: r68085
2003-05-28inclhack.def: Add missing declaration of getpagesize() to unistd.h on ↵Eric Botcazou5-6/+153
Solaris 2.5.1. * fixinc/inclhack.def: Add missing declaration of getpagesize() to unistd.h on Solaris 2.5.1. Fix prototype of recv() and send() in sys/socket.h on Solaris 2.5.1 and 2.6. * fixinc/tests/base/unistd.h: Add solaris_unistd fix test. * fixinc/tests/base/sys/socket.h: Add solaris_socket test. * fixinc/check.tpl: Use 'diff -c', not 'diff -u'. * fixinc/fixincl.x: Regenerate. From-SVN: r67206
2003-05-23Makefile.in: Correct description.Nathanael Nerode7-36/+38
2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org> * fixinc/Makefile.in: Correct description. * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c, fixinc/genfixes: Replace "GNU CC" with "GCC". From-SVN: r67139
2003-05-22re PR other/2873 ([3.3 only][fixinclude] Bogus fixinclude of stdio.h from ↵Zack Weinberg2-13/+40
glibc 2.2.3) PR other/2873 * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass expressions to prevent triggering on recent curses.h, linux/nls.h, or X11/Xlib.h. (stdio_va_list): Add _G_va_list to bypass pattern. (strict_ansi_not): Add bypass pattern for __SCO_VERSION__. * fixinc/fixincl.x: Regenerate. From-SVN: r67090
2003-05-10Properly remove previous patch.Richard Kenner1-8/+0
From-SVN: r66667
2003-05-10defer a mistake until laterBruce Korb1-7/+7
From-SVN: r66666
2003-05-10revert: vxxscale.h, [...]: New files.Richard Kenner2-2/+4
Revert: 2003-05-09 Olivier Hainque <hainque@act-europe.fr> * config/arm/vxxscale.h, config/arm/vxxscale-coff.h: New files. * config/arm/vxxscale-elf.h, config/arm/t-vxxscale-elf: Likewise. * config.gcc (xscale-coff-vxworks, xscale-wrs-vxworks): New new cases. * fixinc/fixinc.copy: New file. * fixinc/mkfixinc.sh (*-vxworks*): New case, using above. From-SVN: r66661