Commit Graph

17410 Commits

Author SHA1 Message Date
Kaveh R. Ghazi
d2cabf1629 Add the ability to GCC_NEED_DECLARATION{S} for looking in arbitrary header...
Add the ability to GCC_NEED_DECLARATION{S} for looking in arbitrary
header files when searching for function declarations.  Use this
functionality to check for getrlimit/setrlimit.
        * aclocal.m4 (GCC_NEED_DECLARATION): Accept an optional second
        argument, which is typically preprocessor code used to draw in
        additional header files when looking for a function declaration.
        (GCC_NEED_DECLARATIONS): Likewise.
        * configure.in (GCC_NEED_DECLARATIONS): Add checks for getrlimit
        and setrlimit, search for them in sys/resource.h.
        * acconfig.h: Add stubs for NEED_DECLARATION_GETRLIMIT and
        NEED_DECLARATION_SETRLIMIT.
        * system.h: Prototype getrlimit/setrlimit if necessary.

From-SVN: r20831
1998-06-30 11:10:55 +00:00
Mark Mitchell
70198e3dd0 * rtl.texi: Don't say that RTX_INTEGRATED_P is unused.
From-SVN: r20830
1998-06-30 10:54:13 +00:00
Robert Lipe
c2bd100ed7 Improvement from Klaus-Georg.
From-SVN: r20826
1998-06-30 10:23:48 +00:00
David Edelsohn
ba1a57076d [multiple changes]
Tue Jun 30 13:11:42 1998  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
        * rs6000/sysv4.h (asm output): add tabs for asm directives.
Tue Jun 30 13:11:42 1998  David Edelsohn <edelsohn@mhpcc.edu>
        * Makefile.in (FLAGS_TO_PASS): Set AR_FLAGS to AR_FOR_TARGET_FLAGS.

From-SVN: r20824
1998-06-30 06:20:04 -04:00
Robert Lipe
ca9cde6b44 Add colons to "build don't link" lines.
From-SVN: r20821
1998-06-30 09:09:10 +00:00
Robert Lipe
95d5a7815c Changes from Alexandre and Klaus-Georg.
From-SVN: r20820
1998-06-30 08:31:49 +00:00
Klaus-Georg Adams
4a6443a19d eb132.C: New test.
* g++.old-deja/g++.robertl/eb132.C: New test.
* g++.old-deja/g++.robertl/eb133.C: Likewise.

From-SVN: r20819
1998-06-30 08:23:18 +00:00
Klaus-Georg Adams
2d4b533de4 New tests from Klaus-Georg.
From-SVN: r20818
1998-06-30 08:20:13 +00:00
Craig Burley
a6fa642003 Fix 980628-*.f:
Mon Jun 29 09:47:33 1998  Craig Burley  <burley@gnu.org>
	Fix 980628-*.f:
	* bld.h: New `pad' field and accessor macros for
	ACCTER, ARRTER, and CONTER ops.
	* bld.c (ffebld_new_accter, ffebld_new_arrter,
	ffebld_new_conter_with_orig): Initialize `pad' field
	to zero.
	* com.c (ffecom_transform_common_): Include initial
	padding (aka modulo aka offset) in size calculation.
	Copy initial padding value into FFE initialization expression
	so the GBE transformation of that expression includes it.
	Make array low bound 0 instead of 1, for consistency.
	(ffecom_transform_equiv_): Include initial
	padding (aka modulo aka offset) in size calculation.
	Copy initial padding value into FFE initialization expression
	so the GBE transformation of that expression includes it.
	Make array low bound 0 instead of 1, for consistency.
	(ffecom_expr_, case FFEBLD_opACCTER): Delete unused `size'
	variable.
	Track destination offset separately, allowing for
	initial padding.
	Don't bother setting initial PURPOSE offset if zero.
	Include initial padding in size calculation.
	(ffecom_expr_, case FFEBLD_opARRTER): Allow for
	initial padding.
	Include initial padding in size calculation.
	Make array low bound 0 instead of 1, for consistency.
	(ffecom_finish_global_): Make array low bound 0 instead
	of 1, for consistency.
	(ffecom_notify_init_storage): Copy `pad' field from old
	ACCTER to new ARRTER.
	(ffecom_notify_init_symbol): Ditto.
	* data.c (ffedata_gather_): Initialize `pad' field in new
	ARRTER to 0.
	(ffedata_value_): Ditto.
	* equiv.c (ffeequiv_layout_local_): When lowering start
	of equiv area, extend lowering to maintain needed alignment.
	* target.c (ffetarget_align): Handle negative offset correctly.
	* global.c (ffeglobal_pad_common): Warn about non-zero
	padding only the first time its seen.
	If new padding larger than old, update old.
	(ffeglobal_save_common): Use correct type for size throughout.
	* global.h: Use correct type for size throughout.
	(ffeglobal_common_pad): New macro.
	(ffeglobal_pad): Delete this unused and broken macro.

From-SVN: r20817
1998-06-30 07:59:40 +00:00
Dave Love
145836925d 980628-7.f, [...]: New tests from Craig.
1998-06-29  Dave Love  <d.love@dl.ac.uk>
	* g77.f-torture/execute/980628-7.f,
	g77.f-torture/execute/980628-8.f,
	g77.f-torture/execute/980628-9.f,
	g77.f-torture/execute/980628-10.f: New tests from Craig.

From-SVN: r20816
1998-06-30 06:14:57 +00:00
Dave Love
a8fdca91e7 New test.
From-SVN: r20815
1998-06-30 06:12:50 +00:00
Kaveh R. Ghazi
51db713ffd Remove autoconf things and OS header stuff (namely NULL) from gansidecl.h:
* gansidecl.h (ATTRIBUTE_UNUSED): Use __unused__ not `unused'.
        Don't define NULL here.  Also, remove all vestiges of autoconf
        based checks for bcmp/bcopy/bzero/index/rindex.
        * system.h: Immediately after including stdio.h, check for and if
        necessary provide a default definition of NULL.

From-SVN: r20814
1998-06-30 06:11:43 +00:00
Michael Meissner
b8705408e8 Call fatal_insn_not_found instead of abort
From-SVN: r20813
1998-06-30 05:26:11 +00:00
Jeffrey A Law
20f2d03a8e choose-temp.c (make_temp_file): Accept new argument for the file suffix to use.
* choose-temp.c (make_temp_file): Accept new argument for the
        file suffix to use.  Allocate space for it and add it to the
        template.
        * mkstemp.c (mkstemps): Renamed from mkstemp.  Accept new argument
        for the length of the suffix.  Update template struture checks
        to handle optinal suffix.
        * collect2.c (make_temp_file): Update prototype.
        (main): Put proper suffixes on temporary files.
        * gcc.c (make_temp_file): Update prototype.
        (do_spec_1): Put proper suffixes on temporary files.
Should fix irix build problems.

From-SVN: r20812
1998-06-29 19:41:45 -06:00
Jeff Law
af24816977 Daily bump.
From-SVN: r20811
1998-06-29 18:45:02 -06:00
Bruno Haible
dbde0d5d34 invoke.texi: Document new implicit structure initialization warning.
* invoke.texi: Document new implicit structure initialization
        warning.

From-SVN: r20810
1998-06-29 18:01:28 -06:00
Jeff Law
9ec36da574 * Merge from gcc2 June 9, 1998 snapshot. See ChangeLog.13 for
details.

From-SVN: r20808
1998-06-29 15:40:49 -06:00
Jeffrey A Law
ad2c71b764 * pa.c, pa.h, pa.md: Convert to gen_rtx_FOO.
From-SVN: r20806
1998-06-29 15:17:27 -06:00
Catherine Moore
2880d0aa37 remove -mtraceback from list of powerpc options
From-SVN: r20805
1998-06-29 14:47:39 -04:00
Catherine Moore
1a75925b16 -mtraceback is not supported.
From-SVN: r20804
1998-06-29 14:08:22 -04:00
Ulrich Drepper
68a4a14125 Update.
From-SVN: r20803
1998-06-29 18:06:37 +00:00
Ulrich Drepper
9ca05bb14e Rewrite __PMT change so that it works with platforms defining __P but
not __PMT.

From-SVN: r20802
1998-06-29 18:06:26 +00:00
Kaveh R. Ghazi
4f70758f37 Warning fixes:
* Makefile.in (fix-header): Don't needlessly depend on cpperror.o.
        * alias.c (CHECK_ALIAS_SETS_FOR_CONSISTENCY): Cast expansion to
        void since it is evaluated in a comma list.
        * mips.h (ASM_GENERATE_INTERNAL_LABEL): Always sprintf `NUM'
        argument as a long and cast `NUM' to long to ensure it is of the
        proper width.  Wrap macro arguments in parens when they appear in
        the expansion.
        * sol2.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
        * sparc.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
        (ASM_DECLARE_RESULT): Fix fprintf format specifier to match
        function argument return type.
        (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_FP_P,
        REGNO_OK_FOR_CCFP_P): Use `(unsigned)' not `U'.
        * cpplib.c (cpp_message_from_errno): Remove unneeded argument to
        cpp_message.
        * dbxout.c: Fix the comments after an #endif to reflect the actual
        condition tested in the preceding #if.
        * except.c (find_all_handler_type_matches): Switch to old-style
        function definition.
        * expr.c (expand_builtin): Remove unused variable `type' twice.
        * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Cast -1 before comparing it
        to an unsigned long.
        * haifa-sched.c (print_insn_chain): Remove unused function.
        * objc/objc-act.c (build_msg_pool_reference): Hide prototype and
        definition.
        * toplev.c: When testing whether to include dbxout.h, also include
        it when XCOFF_DEBUGGING_INFO is defined.
        * unroll.c (unroll_loop): Add parentheses around assignment used
        as truth value.

From-SVN: r20801
1998-06-29 17:36:07 +00:00
Kaveh R. Ghazi
d0902cd14b Warning fixes:
* except.c (build_eh_type_type_ref): Remove unused variable `susp'.
        (process_start_catch_block): Likewise for variables
        `false_label_rtx', `call_rtx' and `return_value_rtx'.

From-SVN: r20800
1998-06-29 17:21:30 +00:00
Dave Love
174be1b32c 980628-3.f: Remove mail headers.
1998-06-29  Dave Love  <d.love@dl.ac.uk>
	* g77.f-torture/execute/980628-3.f: Remove mail headers.

From-SVN: r20796
1998-06-29 14:04:26 +00:00
Dave Love
ba41e17c6d Remove mail headers.
From-SVN: r20795
1998-06-29 14:02:15 +00:00
Brendan Kehoe
37e58443ad revert part of the last checkin
From-SVN: r20794
1998-06-29 09:41:20 -04:00
Brendan Kehoe
a48ebb5650 tree.c (build_srcloc): Make sure we allocate this node on the permanent obstack.
* tree.c (build_srcloc): Make sure we allocate this node on the
	permanent obstack.
fixes OSE compilation failures

From-SVN: r20793
1998-06-29 09:39:23 -04:00
Ulrich Drepper
cb6abb6fd5 Update.
From-SVN: r20792
1998-06-29 11:45:33 +00:00
Ulrich Drepper
e6cc3b8058 (__PMT): New macro. Defined like __P.
Use is for function pointers.

From-SVN: r20791
1998-06-29 11:45:10 +00:00
Catherine Moore
a611ae14b3 config/sparc/lb1spc.asm (.udiv, .div) Replace routines.
From-SVN: r20790
1998-06-29 06:26:45 -04:00
Mark Mitchell
b4213325af rtl.h: Update comment about special gen_rtx variants.
* rtl.h: Update comment about special gen_rtx variants.
	* emit-rtl.c (gen_rtx): Handle MEMs using gen_rtx_MEM.

From-SVN: r20789
1998-06-29 09:44:08 +00:00
Jeff Law
f6b58e7dec Daily bump.
From-SVN: r20785
1998-06-28 18:45:01 -06:00
Jeffrey A Law
39d45901b3 choose-temp.c (choose_temp_base): Restore original variant of this function for compatibility.
* choose-temp.c (choose_temp_base): Restore original variant of
        this function for compatibility.
        (make_temp_file): This is the new, preferred interface to create
        temporary files.
        * collect2.c (choose_temp_base): Delete declaration.
        (make_temp_file): Declare.
        (temp_filename_length, temp_filename): Delete.
        (main): Use make_temp_file to get temporary files.  Use --lang-c
        to force the resulting ctort/dtor file to be compiled with the C
        compiler.  Make sure to remove temporary files on all exit paths.
        * gcc.c (make_temp_file): Provide prototype if MKTEMP_EACH_FILE is
        defined.
        (choose_temp_base): Only provide prototype if MKTEMP_EACH_FILE is
        not defined.
        (do_spec): Use make_temp_file if MKTEMP_EACH_FILE is defined.

From-SVN: r20784
1998-06-28 14:07:32 -06:00
Jeffrey A Law
b0d45b7466 980628-4.f: New test from Craig.
* g77.f-torture/execute/980628-4.f: New test from Craig.
        * g77.f-torture/execute/980628-5.f: Likewise.
        * g77.f-torture/execute/980628-2.f: Likewise.
        * g77.f-torture/execute/980628-0.f: Likewise.
        * g77.f-torture/execute/980628-1.f: Likewise.
        * g77.f-torture/execute/980628-3.f: Likewise.
        * g77.f-torture/execute/980628-6.f: Likewise.

From-SVN: r20783
1998-06-28 13:49:44 -06:00
Jeffrey A Law
3d727c4216 980628-4.f: New test from Craig.
* g77.f-torture/execute/980628-4.f: New test from Craig.
        * g77.f-torture/execute/980628-5.f: Likewise.
        * g77.f-torture/execute/980628-2.f: Likewise.
        * g77.f-torture/execute/980628-0.f: Likewise.
        * g77.f-torture/execute/980628-1.f: Likewise.
        * g77.f-torture/execute/980628-3.f: Likewise.

From-SVN: r20782
1998-06-28 07:57:18 -06:00
Jeffrey A Law
f2843edbf7 980628-4.f: New test from Craig.
* g77.f-torture/execute/980628-4.f: New test from Craig.
        * g77.f-torture/execute/980628-5.f: Likewise.
        * g77.f-torture/execute/980628-2.f: Likewise.

From-SVN: r20781
1998-06-28 06:50:59 -06:00
Jeffrey A Law
95fd960d15 980628-4.f: New test from Craig.
* g77.f-torture/execute/980628-4.f: New test from Craig.
        * g77.f-torture/execute/980628-5.f: Likewise.

From-SVN: r20780
1998-06-28 05:51:02 -06:00
Kaveh R. Ghazi
6cd5dccd5e Consolidate strerror handling, as well as getcwd/getwd.
* configure.in (GCC_NEED_DECLARATIONS): Add strerror, getcwd and
        getwd.
        * acconfig.m4: Add stubs for NEED_DECLARATION_STRERROR,
        NEED_DECLARATION_GETCWD and NEED_DECLARATION_GETWD.
        * cccp.c: Remove strerror()/sys_nerr/sys_errlist decls.
        (my_strerror): Add prototype and make it static.
        * collect2.c: Likewise.
        * cpplib.c: Likewise.
        * gcc.c: Likewise, but keep `my_strerror' extern.
        * protoize.c: Likewise.
        * pexecute.c (my_strerror): Add argument to prototype.
        * system.h: Add prototypes for getcwd, getwd and strerror.  Add
        extern decls for sys_nerr and sys_errlist.  Make abort decl
        explicitly extern.
        * getpwd.c: Remove decls for getwd and getcwd.

From-SVN: r20779
1998-06-28 06:09:57 +00:00
Jeffrey A Law
984e3c38b5 Bump for snapshot
From-SVN: r20777
1998-06-27 20:11:20 -06:00
Jeff Law
64e1559971 Daily bump.
From-SVN: r20776
1998-06-27 18:45:02 -06:00
Jeffrey A Law
135f368e6e stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if _G_USING_THUNKS is not defined.
* stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if
        _G_USING_THUNKS is not defined.
Bring over from egcs-1.0.3 branch since ppc-linux still uses glibc-1.9x.

From-SVN: r20775
1998-06-27 17:51:33 -06:00
Jeffrey A Law
a2c15e736d g77.exp (default_g77_version): Tweak to make it work in a build directory when nothing has been installed yet.
* lib/g77.exp (default_g77_version): Tweak to make it work in a build
        directory when nothing has been installed yet.

From-SVN: r20774
1998-06-27 17:39:42 -06:00
Richard Henderson
0bef9b8d88 jump.c (jump_optimize): Use side_effects_p & may_trap_p instead of rtx_unsafe_p.
* jump.c (jump_optimize): Use side_effects_p & may_trap_p instead
        of rtx_unsafe_p.  Use modified_between_p instead of reg_set_between_p.
        Allow FP moves to be optimized.
        (rtx_unsafe_p): Delete.

From-SVN: r20770
1998-06-27 16:30:37 -07:00
Richard Henderson
97a7f457da * objc/archive.c: Remove <string.h> prototypes.
From-SVN: r20769
1998-06-27 16:04:40 -07:00
Carlo Wood
dfcb37f2a7 libstdc++.exp: Use global variable ld_library_path (not local) that is a lot more persistent...
* lib/libstdc++.exp: Use global variable ld_library_path (not local)
	that is a lot more persistent; dejagnu-980528 needs this.
	* lib/libstdc++.exp (test_stdc++): Use regular expression " -lstdc.."
	to remove -lstdc++ arguments (not " -lstdc.*").

From-SVN: r20768
1998-06-27 17:01:34 -06:00
Carlo Wood
442b2e8635 libio.exp (test_libio): Reset ld_library_path before appending the same path(s) again.
* lib/libio.exp (test_libio): Reset ld_library_path before appending
        the same path(s) again.

From-SVN: r20767
1998-06-27 17:01:02 -06:00
Jeffrey A Law
f89223a978 * tm.texi (NEED_MATH_LIBRARY): Document new target macro.
From-SVN: r20766
1998-06-27 16:42:09 -06:00
Fred Fish
17294adfeb g++spec.c (NEED_MATH_LIBRARY): Define to 1 if not already defined.
* g++spec.c (NEED_MATH_LIBRARY): Define to 1 if not already defined.
        (lang_specific_driver): Initialize need_math with NEED_MATH_LIBRARY.
        (lang_specific_driver): Only add -lm automatically if need_math is
        nonzero.

From-SVN: r20765
1998-06-27 16:36:57 -06:00
Carlo Wood
b5f3e74739 special.exp: Handle newer versions of dejagnu.
* gcc.c-torture/special/special.exp: Handle newer versions of
        dejagnu.

From-SVN: r20764
1998-06-27 16:25:12 -06:00