Commit Graph

55 Commits

Author SHA1 Message Date
Bruce Korb
66f788b0b3 Check the last byte for '\n'
From-SVN: r107492
2005-11-25 05:57:10 +00:00
Bruce Korb
f375f46240 Regenerate fixincl.x from current template
From-SVN: r107491
2005-11-25 05:47:47 +00:00
Andreas Jaeger
42068fd90a check.tpl: Handle CVS additionally.
* check.tpl: Handle CVS additionally.

From-SVN: r106855
2005-11-13 09:43:28 +01:00
Andreas Jaeger
541c886c9f check.tpl: Adopt for move to subversion.
* check.tpl: Adopt for move to subversion.

From-SVN: r106527
2005-11-05 13:21:02 +01:00
Andreas Jaeger
44bcbae366 .cvsignore are not needed for subversion, remove them.
From-SVN: r106279
2005-10-31 18:20:58 +01:00
Joseph Myers
77923c2938 re PR target/23139 (-pedantic -ffast-math breaks working code)
fixincludes:
	PR c++/23139
	* inclhack.def (huge_val_hex, huge_valf_hex, huge_vall_hex): New
	fixes.
	* fixincl.x: Regenerate.
	* tests/base/bits/huge_val.h: New file.

gcc/testsuite:
	* g++.dg/warn/huge-val1.C: New test.

From-SVN: r104315
2005-09-15 20:09:27 +01:00
Kelley Cook
df065c820f All files: Update with new FSF address.
2005-08-14  Kelley Cook  <kcook@gcc.gnu.org>

	* All files: Update with new FSF address.

From-SVN: r103096
2005-08-15 00:50:43 +00:00
Bruce Korb
776c2384b2 Finish checkin of date: 2005/06/14 23:59:47; author: ro;
for rev 1.23 of inclhack.def:  adjust tests/base/math.h for new
content for AAB_darwin7_9_long_double_funcs_2 fix.

From-SVN: r102833
2005-08-07 19:14:12 +00:00
Kaveh R. Ghazi
87fbb651f8 Makefile.in (WARN_CFLAGS): New.
* Makefile.in (WARN_CFLAGS): New.
	(.c.o): Add $(WARN_CFLAGS).
	* aclocal.m4: Include ../config/warnings.m4.
	* configure.ac: Invoke ACX_PROG_CC_WARNING_OPTS,
	ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
	ACX_PROG_CC_WARNINGS_ARE_ERRORS.
	* fixopts.c (initialize_opts): Fix old-style definintion.

	* configure: Regenerate.

From-SVN: r102088
2005-07-16 14:17:51 +00:00
Geoffrey Keating
246e0bd879 inclhack.def (AAB_darwin7_9_long_double_funcs): New.
* inclhack.def (AAB_darwin7_9_long_double_funcs): New.
	(AAB_darwin7_9_long_double_funcs_2): New.
	* fixincl.x: Regenerate.

From-SVN: r101305
2005-06-24 23:43:15 +00:00
Rainer Orth
11f4453b3c re PR target/15266 (libgfortran doesn't compile on IRIX 5.3)
PR libfortran/15266
	* inclhack.def (broken_cabs): Mention IRIX 5/6 problem.
	Use double quotes in select so \t matches tabs.
	Add IRIX testcase.
	* fixincl.x: Regenerate.
	* tests/base/math.h [BROKEN_CABS_CHECK]: Adapt for new testcase.

From-SVN: r100960
2005-06-14 23:59:48 +00:00
Danny Smith
8ba8f7e557 re PR bootstrap/21683 (build failure on i386-mingw (sys/wait.h header))
PR target/21683
        * fixincl.c: Don't include <sys/wait.h> if SEPARATE_FIX_PROC.

From-SVN: r100066
2005-05-22 17:01:02 +00:00
Eric Botcazou
925a448751 re PR target/19933 (Problem with define of HUGE_VAL in math_c99.)
fixincludes/
	PR target/19933
	PR target/21315
	* inclhack.def: New fixes solaris_math_[1-9].
	* fixincl.x: Regenerate.
	* tests/base/iso/math_c99.h: New.

gcc/testsuite/
	* gcc.dg/c99-math.h: New
	* gcc.dg/c99-math-float-1.c: New test.
	* gcc.dg/c99-math-double-1.c: Likewise.
	* gcc.dg/c99-math-long-double-1.c: Likewise.

Co-Authored-By: Joseph Myers <joseph@codesourcery.com>

From-SVN: r99953
2005-05-19 07:05:45 +00:00
Kelley Cook
08862f3c97 aclocal.m4: Remove superfluous reference to accross.m4.
2005-05-19  Kelley Cook  <kcook@gcc.gnu.org>

	* aclocal.m4: Remove superfluous reference to accross.m4.

From-SVN: r99945
2005-05-19 03:38:34 +00:00
Gabriel Dos Reis
03a9fcb862 fixlib.c (load_file_data): Use XRESIZVEC in lieu of xrealloc.
* fixlib.c (load_file_data): Use XRESIZVEC in lieu of xrealloc.
        * server.c (load_data): Likewise.
        (run_shell): Use XCNEW (char) in lieu of xcalloc (1, 1).
        * fixincl.c: #include <sys/wait.h>
        (run_compiles): Use XCNEWVEC instead of xcalloc.
        (fix_with_system, start_fixer): Use XNEWVEC instead of xmalloc.
        * fixfixes.c (FIX_PROC_HEAD, main): Likewise.

From-SVN: r99740
2005-05-15 18:28:36 +00:00
Joseph Myers
5fabfd4cda inclhack.def (stdio_stdarg_h, [...]): Bypass on *-*-solaris2.1[0-9]*, not just *-*-solaris2.1[0-9].
* inclhack.def (stdio_stdarg_h, stdio_va_list): Bypass on
	*-*-solaris2.1[0-9]*, not just *-*-solaris2.1[0-9].
	* fixincl.x: Regenerate.

From-SVN: r99487
2005-05-10 01:26:08 +01:00
Bruce Korb
7673b71ce9 Fix backslash expression in here string
[[Split portion of a mixed commit.]]

Co-Authored-By: Joseph Myers <joseph@codesourcery.com>

From-SVN: r99322.2
2005-05-06 16:33:18 +00:00
Kaveh R. Ghazi
042630ad4a system.h (fopen, [...]): Define these to the unlocked libiberty functions.
fixincludes:
	* system.h (fopen, fdopen, freopen): Define these to the unlocked
	libiberty functions.

gcc:
	* system.h (fopen, fdopen, freopen): Define these to the unlocked
	libiberty functions.

libcpp:
	* system.h (fopen, fdopen, freopen): Define these to the unlocked
	libiberty functions.

From-SVN: r98407
2005-04-19 12:37:08 +00:00
Kaveh R. Ghazi
0d667716cb configure.ac (fixincludes_UNLOCKED_FUNCS): New.
fixincludes:
	* configure.ac (fixincludes_UNLOCKED_FUNCS): New.
	(AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for fixincludes_UNLOCKED_FUNCS.
	* system.h (putchar, getc, getchar, clearerr, feof, fileno,
	fflush, fgetc, fgets, ferror, fread): Redefine to the associated
	_unlocked function.
	(fwrite_unlocked): Fix prototype.

	* configure, config.h.in: Regenerate.

gcc:
	PR/17092
	* configure.ac (gcc_UNLOCKED_FUNCS): New.
	(AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
	* system.h (putchar, getc, getchar, clearerr, feof, fileno,
	fflush, fgetc, fgets, ferror, fread): Redefine to the associated
	_unlocked function.
	(fwrite_unlocked): Fix prototype.

	* configure, config.in: Regenerate.

libcpp:
	* configure.ac (libcpp_UNLOCKED_FUNCS): New.
	(AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
	* system.h (putchar, getc, getchar, clearerr, feof, fileno,
	fflush, fgetc, fgets, ferror, fread): Redefine to the associated
	_unlocked function.
	(fwrite_unlocked): Fix prototype.

	* configure, config.in: Regenerate.

From-SVN: r97986
2005-04-11 21:46:59 +00:00
Zack Weinberg
90ee136828 Makefile.in: Set gcc_version directly, not via substitution.
* Makefile.in: Set gcc_version directly, not via substitution.
	(libsubdir): Use $(gcc_version), not $(version).
	(mkheaders.almost): New rule.
	(mkheaders): Generate from mkheaders.almost.
	(clean): Also delete mkheaders.almost.
	* aclocal.m4: Do not include ../config/gcc-version.m4.
	* configure.ac: Do not invoke TL_AC_GCC_VERSION.  Generate
	mkheaders.almost from mkheaders.in.
	* configure: Regenerate.

From-SVN: r96819
2005-03-21 17:50:19 +00:00
Richard Guenther
14bfd7c70d re PR target/20166 (Bootstrap failure due to lack of fixinclude of pthread problem)
2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>

	PR target/20166
	* inclhack.def: Add fix for array of incomplete structures
	in function prototype in pthread.h.
	* fixincl.x: Regenerate.
	* tests/base/pthread.h: Adjust.

From-SVN: r96812
2005-03-21 16:46:09 +00:00
Joseph Myers
7fbdc950de inclhack.def (hpux_htonl): New fix.
* inclhack.def (hpux_htonl): New fix.
	* tests/base/netinet/in.h: New test.
	* fixincl.x: Regenerate.

From-SVN: r96522
2005-03-15 17:37:03 +00:00
James E Wilson
27f0dff4a2 Fix problem found by CFLAGS=-fmudflap build.
* Makefile.in (full-stamp, test-stamp, $(AF)): Add $(CFLAGS) to link.

From-SVN: r95475
2005-02-23 14:30:01 -08:00
Andrew Pinski
098b96ab3d re PR bootstrap/18458 ("make install" -> fixincl missing extension)
2004-12-13  Andrew Pinski  <pinskia@physics.uc.edu>

        PR 18458
        * Makefile.in (install): Add @EXEEXT@ to the end of the program name,
        fixincl.

From-SVN: r92090
2004-12-13 07:42:10 -08:00
Richard Sandiford
afabd8e62c Introduce and use config/gcc-version.m4.
From-SVN: r91625
2004-12-02 11:05:13 +00:00
Mark Mitchell
9fcc7481f8 inclhack.def (gnu_types): Do not use on Solaris 2.1x.
2004-11-26  Mark Mitchell  <mark@codesourcery.com>

	* inclhack.def (gnu_types): Do not use on Solaris 2.1x.
	(stdio_va_list): Likewise.
	(stdio_stdarg.h): Likewise.
	(solaris_stdio_tag): Add bypass.
	* fixincl.x: Regenerated.

From-SVN: r91351
2004-11-26 22:00:51 +00:00
Geoffrey Keating
b2cfdb12c2 mkfixinc.sh: Check error code from 'cat'.
* mkfixinc.sh: Check error code from 'cat'.  Don't try running
	built fixincl program.
	* mkheaders.in: Use @SHELL@ rather than ${SHELL} to avoid picking
	up csh from user.

From-SVN: r91109
2004-11-23 22:45:53 +00:00
Roger Sayle
743348ea53 inclhack.def (alpha_pthread_init): Fix technical problems with the last check-in caused by CVS variable substitution.
* inclhack.def (alpha_pthread_init): Fix technical problems with
	the last check-in caused by CVS variable substitution.
	* fixincl.x: Likewise.
	* tests/base/pthread.h: Likewise.

From-SVN: r90989
2004-11-21 23:01:44 +00:00
Roger Sayle
1fda9d7bbb inclhack.def (alpha_pthread_init): New fix.
* inclhack.def (alpha_pthread_init): New fix.
	* fixincl.x: Regenerate.
	* tests/base/pthread.h: Update for new test.

Co-Authored-By: Bruce Korb <bkorb@gnu.org>

From-SVN: r90981
2004-11-21 16:25:07 +00:00
Bruce Korb
ecb0d20e5d remove confusing and unnecessary backslashes
From-SVN: r90790
2004-11-17 05:06:41 +00:00
Bruce Korb
43c1b5d299 correct misuse of variables
From-SVN: r90789
2004-11-17 04:20:36 +00:00
Joseph Myers
68f674e990 inclhack.def (hpux_maxint, [...]): Remove.
* inclhack.def (hpux_maxint, limits_ifndefs, math_huge_val_ifndef,
	svr4__p, undefine_null): Remove.
	* fixincl.x: Regenerate.
	* tests/base/AvailabilityMacros.h, tests/base/com_err.h: New.
	* tests/base/sys/param.h: Remove.
	* tests/base/curses.h, tests/base/math.h, tests/base/testing.h,
	tests/base/sys/limits.h: Update.

From-SVN: r90594
2004-11-13 20:41:01 +00:00
Mike Stump
251089a007 * Makefile.in (html): Add html generation support.
From-SVN: r90576
2004-11-13 07:33:27 +00:00
Joseph Myers
492d5b4f62 inclhack.def (sco_math): Bypass on __GNUG__.
* inclhack.def (sco_math): Bypass on __GNUG__.
	(sysz_stdlib_for_sun): Bypass on _CLASSIC_ANSI_TYPES.
	* fixincl.x: Regenerate.

From-SVN: r90550
2004-11-12 22:26:01 +00:00
Joseph Myers
793387fa35 inclhack.def (hpux8_bogus_inlines): Bypass on __GNUG__.
* inclhack.def (hpux8_bogus_inlines): Bypass on __GNUG__.
	(int_abort_free_and_exit, sun_malloc, sysv68_string): Bypass on
	_CLASSIC_ANSI_TYPES.
	(sun_auth_proto): Bypass on __cplusplus.
	* fixincl.x: Regenerate.

From-SVN: r90371
2004-11-09 23:14:06 +00:00
Geoffrey Keating
ea595d4ff3 Makefile.in (mostlyclean): Add fixinc.sh.
* Makefile.in (mostlyclean): Add fixinc.sh.
	(clean): Add mkheaders.
	(distclean): New.
	(dvi): New.
	(info): New.
	(installcheck): New.

From-SVN: r90142
2004-11-05 20:42:15 +00:00
Paolo Bonzini
54f88091c5 Makefile.def (host fixincludes): Specify missing targets.
2004-11-05  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.def (host fixincludes): Specify missing targets.
	* Makefile.in: Regenerate.

fixincludes/ChangeLog:
2004-11-05  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.in (mostlyclean, distclean): New targets.

From-SVN: r90127
2004-11-05 16:35:51 +00:00
Geoffrey Keating
53c7ffe7dd Index: ChangeLog
2004-11-04  Geoffrey Keating  <geoffk@apple.com>

	* Makefile.def: Build fixincludes for the host, too.
	* Makefile.in: Regenerate.
	* configure.in (host_tools): Add fixincludes.
	* configure: Regenerate.

Index: fixincludes/ChangeLog
2004-11-04  Geoffrey Keating  <geoffk@apple.com>

	* configure.ac: Add code to determine noncanonical_target,
	local_prefix, gcc_version; process mkheaders.in to make mkheaders.
	* configure: Regenerate.
	* fixinc.in: Move here from gcc/; fix many cross-hosting bugs.
	* mkfixinc.sh: Move here from gcc/; update for changes to fixinc.in.
	* mkheaders.in: Move here from gcc/; remove some unnecessary macros;
	update for changes to fixinc.in.
	* Makefile.in: Add many new macros.
	(install): New target.
	(mkheaders): New target.
	(fixinc.sh): New target.
	(all): Add mkheaders and fixinc.sh.
	* README-fixinc: Move here from gcc/.

Index: gcc/ChangeLog
2004-11-04  Geoffrey Keating  <geoffk@apple.com>

	* Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
	(install-mkheaders): Install the version built for the
	host, not for the build machine.
	* configure.ac: Always run fixincludes.
	(all_outputs): Remove mkheaders.
	* configure: Regenerate.
	* fixinc.in: Move to fixincludes/.
	* mkfixinc.sh: Likewise.
	* mkheaders.in: Likewise.
	* README-fixinc: Likewise.

From-SVN: r90117
2004-11-05 04:49:19 +00:00
Mike Stump
40d0542950 inclhack.def (stdio_va_list): Break out clients from here...
* inclhack.def (stdio_va_list): Break out clients from here...
        (stdio_va_list_clients): ...to here.  Also, don't fix if stdarg.h is
        included or ifdef va_start.

From-SVN: r89954
2004-11-01 19:01:15 +00:00
Mike Stump
976c217af8 Back out controversial fix.
From-SVN: r89851
2004-10-29 21:16:51 +00:00
Mike Stump
d1ea459307 inclhack.def (stdio_va_list): Don't fix if stdarg.h is included or ifdef va_start.
* inclhack.def (stdio_va_list): Don't fix if stdarg.h is
          included or ifdef va_start.

From-SVN: r89803
2004-10-29 02:42:54 +00:00
Mike Stump
31eec874a1 inclhack.def: Avoid changing NULL on C++ friendly systems.
* inclhack.def: Avoid changing NULL on C++ friendly systems.
        * fixincl.x: Regenerate.

From-SVN: r89786
2004-10-28 21:44:31 +00:00
Geoffrey Keating
005c1a13e5 Index: fixincludes/ChangeLog
2004-10-27  Geoffrey Keating  <geoffk@apple.com>

	* inclhack.def (darwin_gcc4_breakage): New.
	* fixincl.x: Regenerate.

Index: gcc/ChangeLog
2004-10-27  Geoffrey Keating  <geoffk@apple.com>

	* config/rs6000/rs6000.c (rs6000_attribute_table): Add
	SUBTARGET_ATTRIBUTE_TABLE.
	* config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
	(SUBTARGET_ATTRIBUTE_TABLE): Define.
	* config/darwin.c (darwin_handle_weak_import_attribute): New.
	(HAVE_DEAD_STRIP): Delete.
	(no_dead_strip): Don't test HAVE_DEAD_STRIP.
	* config/darwin-protos.h (darwin_handle_weak_import_attribute):
	Prototype.

Index: gcc/testsuite/ChangeLog
2004-10-27  Geoffrey Keating  <geoffk@apple.com>

	* gcc.dg/darwin-weakimport-1.c: New.

From-SVN: r89716
2004-10-27 23:02:39 +00:00
Aaron W. LaFramboise
13cf7262ac re PR bootstrap/17832 (Bootstrap broken by fixincludes failures)
PR bootstrap/17832

	* fixfixes.c (main): Check for _PC_NAME_MAX.
----------------------------------------------------------------------

From-SVN: r89706
2004-10-27 14:13:57 -06:00
Paolo Bonzini
5ae4c56561 re PR other/17991 (Two-process fixincludes broken: pz_mn_name_pat undefined)
2004-10-27  Paolo Bonzini  <bonzini@gnu.org>

	PR other/17991

	* configure.ac: Fix typo.
	* configure: Regenerate.
	* fixincl.c (fix_with_system): tSCC is not a pointer.  Fix.

From-SVN: r89680
2004-10-27 14:42:56 +00:00
Aaron W. LaFramboise
f4a8f2791c re PR bootstrap/17832 (Bootstrap broken by fixincludes failures)
PR bootstrap/17832

	* fixincl.c (SIGCHLD): Remove definition.
	(initialize): Remove SIGIOT and SIGPIPE checks.
	(create_file): Fix mkdir() for Win32.
	(internal_fix): Use dup2() instead of fcntl().

	* fixlib.h (SIGQUIT): Define if undefined.
	(SIGIOT): Same.
	(SIGPIPE): Same.
	(SIGALRM): Same.
	(SIGKILL): Same.

	* procopen.c (chain_open): Use dup2() instead of fcntl().

From-SVN: r89326
2004-10-20 02:21:09 -06:00
Paolo Bonzini
ad643a75f7 re PR other/17991 (Two-process fixincludes broken: pz_mn_name_pat undefined)
2004-08-14  Paolo Bonzini  <bonzini@gnu.org>

        PR other/17991

	* Makefile.in (ALLOBJ, TESTOBJ, FIXOBJ): Add fixopts.o.
	Update copyright year.
	* fixfixes.c (main): Call initialize_opts from fixopts.c.
	* fixincl.c (initialize): Call initialize_opts from fixopts.c,
	do not include code for parsing options (environment vars).
	(fix_with_system): Use a search path for applyfix, so that you
	can run the test suite with two-process fixincludes.
	* fixopts.c: New file.
	* configure.ac: Add --enable-twoprocess.  Export ac_exeext
	to config.h.  Default to --enable-twoprocess for MinGW32.
	* config.h.in: Regenerate.
	* configure: Regenerate.

From-SVN: r89087
2004-10-15 07:58:38 +00:00
Loren J. Rittle
789701151d * tests/base/sys/cdefs.h: Update from test area.
From-SVN: r88542
2004-10-05 03:13:43 +00:00
Roger Sayle
fa71a5c3eb inclhack.def (linux_ia64_ucontext): New fix.
* inclhack.def (linux_ia64_ucontext): New fix.
	* fixincl.x: Regenerate.
	* tests/base/sys/ucontext.h: New file.

From-SVN: r87677
2004-09-17 22:58:40 +00:00
Roger Sayle
9544bea1fa time.h: Correct mismatch in 2004-09-10 check-in.
* tests/base/sys/time.h: Correct mismatch in 2004-09-10 check-in.
	* tests/base/stdlib.h: Likewise.

From-SVN: r87568
2004-09-15 22:12:58 +00:00