Commit Graph

14497 Commits

Author SHA1 Message Date
Jeffrey A Law
bda2ffefc8 * version.c: Bump for snapshot.
From-SVN: r15932
1997-10-16 09:39:00 -06:00
Jeff Law
1510f52e3e configure.in: Create compatibility code in bits/libc-lock.h file.
* configure.in: Create compatibility code in bits/libc-lock.h file.


        * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
        not defined.

        * filedoalloc.c (_IO_file_doallocate): Don't call
        _IO_cleanup_registration_needed if __linux__ is defined.

        * iofclose.c (fclose): Make it weak alias of _IO_fclose if
        __ELF__ is defined.

        * iovsprintf.c (vsprintf): Make it weak alias of _IO_vsprintf
        if __ELF__ is defined.

        * iovsscanf.c (vsscanf): Make it weak alias of _IO_vsscanf if
        __ELF__ is defined.

        * config/linuxlibc1.mt (MT_CFLAGS): Defined as -D_G_HAVE_MMAP.
        (IO_OBJECTS): Add filedoalloc.o fileops.o genops.o iofclose.o
        iovsprintf.o iovsscanf.o strops.o.

From-SVN: r15931
1997-10-16 09:30:26 -06:00
Paul Koning
022abf9081 Make-lang.in (stmp-f2c.h): Don't configure the runtime directory if LANGUAGES does not include f77.
* Make-lang.in (stmp-f2c.h): Don't configure the runtime
        directory if LANGUAGES does not include f77.

From-SVN: r15930
1997-10-16 02:02:09 -06:00
Ian Lance Taylor
a6e74b833c asprintf.c: Consistently use either stdarg or varargs.
* asprintf.c: Consistently use either stdarg or varargs.

Bring over from devo.

From-SVN: r15929
1997-10-16 01:39:03 -06:00
Jason Merrill
2636fde4ba method.c (build_overload_value): Handle TEMPLATE_CONST_PARMs here.
* method.c (build_overload_value): Handle TEMPLATE_CONST_PARMs here.
	(build_overload_int): Not here.

Wed Oct 15 00:35:28 1997  Mike Stump  <mrs@wrs.com>

	* class.c (build_type_pathname): Remove.
	(prepare_fresh_vtable): Fix problem with complex MI vtable names.

From-SVN: r15928
1997-10-16 03:20:46 -04:00
Richard Kenner
96b63cd7a2 pa.c (move_operand): Respect -mdisable-indexing.
* pa.c (move_operand): Respect -mdisable-indexing.
        * pa.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
Bring over from gcc2.  Fixes ada -O2 bootstrap.

From-SVN: r15927
1997-10-15 21:37:28 -06:00
David Edelsohn
f192bf8b22 Add patch from Edelsohn
From-SVN: r15918
1997-10-16 01:37:11 +00:00
Richard Henderson
2ea844d394 alpha.c (final_prescan_insn): Gut, remove and transform to ...
* alpha.c (final_prescan_insn): Gut, remove and transform to ...
        (alpha_handle_trap_shadows): ... a new function.  Handle the entire
        function in one go.  Emit RTL for trapb, instead of printf directly.
        (alpha_reorg): New function.  Call alpha_handle_trap_shadows.
        (trap_pending): Kill global variable.
        (output_epilog): Don't call final_prescan_insn.
        (struct shadow_summary): Elide $31 and $f31; now it fits in a word.
        * alpha.h (FINAL_PRESCAN_INSN): Remove.
        (MACHINE_DEPENENT_REORG): Define.
        * alpha.md (jsr patterns with trapb): Stupid and useless.  Kill.
        (trapb): New insn.

From-SVN: r15917
1997-10-15 18:23:23 -07:00
Richard Henderson
74835ed802 alpha.h (ISSUE_RATE): Define.
* alpha.h (ISSUE_RATE): Define.
        * alpha.c (alpha_adjust_cost): Handle EV5 mult delay; don't apply
        EV4 adjustments to EV5.
        * alpha.md: Remove all scaling from function unit delays.  Rework
        EV5 function units to match the CPU.
        (umuldi3_highpart): EV5 added the IMULH insn class.

From-SVN: r15916
1997-10-15 18:16:42 -07:00
Richard Henderson
ee80685a3b Forgot to commit last night.
From-SVN: r15915
1997-10-15 17:47:47 -06:00
Jeffrey A Law
cdc0de30d8 pa.c (following_call): Fail if the CALL_INSN is an indirect call.
* pa.c (following_call): Fail if the CALL_INSN is an indirect
        call.
Brought over from devo.

From-SVN: r15914
1997-10-15 17:41:10 -06:00
Jason Merrill
af4142d50b restore dwarf2 prototypes
From-SVN: r15912
1997-10-15 13:19:40 -04:00
Richard Henderson
0e52c1777d signal_.c (G77_signal_0): Make return type sig_pf as well.
* libF77/signal_.c (G77_signal_0): Make return type sig_pf as well.
        * libI77/fio.h: Include <string.h> if STDC_HEADERS.
        * libU77/chmod_.c: Likewise.

From-SVN: r15911
1997-10-15 10:02:53 -06:00
Richard Henderson
38bf38c1bc man.c (find_man_formatter): Don't cast getenv(), but provide a minimal declaration at top level.
* info/man.c (find_man_formatter): Don't cast getenv(), but provide
        a minimal declaration at top level.

        * makeinfo/makeinfo.c: Don't redefine alloca if it is already defined.

From-SVN: r15910
1997-10-15 09:49:40 -06:00
Jeff Law
87a0d1ac69 Remove code accidentally added twice.
From-SVN: r15909
1997-10-15 09:44:05 -06:00
Jeff Law
434fc96fca No .Sanitize files in egcs.
From-SVN: r15908
1997-10-14 22:26:58 -06:00
Brendan Kehoe
32066e1ae2 parse.y (unary_expr): Give a pedwarn if someone tries to use the &&label GNU extension.
* parse.y (unary_expr): Give a pedwarn if someone tries to use the
	&&label GNU extension.

From-SVN: r15907
1997-10-14 21:26:06 -04:00
Brendan Kehoe
6640eba99b fix two typos
From-SVN: r15906
1997-10-14 16:45:22 -04:00
Jason Merrill
1f479842ab regen
From-SVN: r15905
1997-10-14 15:19:35 -04:00
Mark Mitchell
1f06b26767 decl.c (pushtag): Unset DECL_ASSEMBLER_NAME before setting it, so as to avoid incorrect manglings.
Tue Oct 14 12:01:00 1997  Mark Mitchell  <mmitchell@usa.net>

	* decl.c (pushtag): Unset DECL_ASSEMBLER_NAME before setting it,
	so as to avoid incorrect manglings.
	* method.c (build_decl_overload_real): Don't mangle return types
	for constructors.

From-SVN: r15904
1997-10-14 15:12:56 -04:00
Mark Mitchell
041c97f2fb cplus-dem.c (demangle_signature): Don't look for return types on constructors.
* cplus-dem.c (demangle_signature): Don't look for return types on
	constructors.  Handle member template constructors.

From-SVN: r15903
1997-10-14 15:12:27 -04:00
Jason Merrill
438998a93d and these
From-SVN: r15902
1997-10-14 15:11:36 -04:00
Jason Merrill
19ddc834bc cplus-dem.c (demangle_signature): Don't look for return types on constructors.
Tue Oct 14 12:01:00 1997  Mark Mitchell  <mmitchell@usa.net>

	* cplus-dem.c (demangle_signature): Don't look for return types on
	constructors.  Handle member template constructors.

and update from devo.

From-SVN: r15901
1997-10-14 15:10:45 -04:00
Jason Merrill
e66d884e7b cp-tree.h (scratchalloc, [...]): Define as macros for now.
* cp-tree.h (scratchalloc, build_scratch_list, make_scratch_vec,
	scratch_tree_cons): Define as macros for now.
	* call.c, class.c, cvt.c, decl.c, decl2.c, except.c, expr.c, init.c,
	lex.c, method.c, parse.y, pt.c, rtti.c, search.c, tree.c, typeck.c,
	typeck2.c: Use them and the expression_obstack variants.

From-SVN: r15900
1997-10-14 14:59:03 -04:00
Jason Merrill
22ef8a131a tree.h: Declare them.
* tree.h: Declare them.

Oop.

From-SVN: r15899
1997-10-14 14:52:33 -04:00
Jason Merrill
f06327624c * tree.c (expr_tree_cons, build_expr_list, expralloc): New fns.
From-SVN: r15898
1997-10-14 14:43:16 -04:00
Benjamin Kosnik
378ec56d93 Bring over test cases
From-SVN: r15897
1997-10-14 18:41:30 +00:00
Benjamin Kosnik
dae1d6f685 decl.c (store_return_init): Allow classes with explicit ctors to be used with the named return values extension.
* decl.c (store_return_init): Allow classes with explicit ctors to
  be used with the named return values extension.

From-SVN: r15896
1997-10-14 18:36:34 +00:00
Jeff Law
31c0e01bc5 new test from egcs-bug archives.
From-SVN: r15895
1997-10-14 11:35:26 -06:00
Richard Henderson
9abbaac7c2 Make-lang.in (g77*): Copied from cp/Make-lang.in g++*.
* Make-lang.in (g77*): Copied from cp/Make-lang.in g++*.
        * g77spec.c: New file, mostly copied from g++spec.c
        * g77.c: Removed.

From-SVN: r15893
1997-10-13 12:09:13 -06:00
Jeff Law
8c0a849156 Bring over from devo.
From-SVN: r15892
1997-10-13 10:03:04 -06:00
Doug Evans
d60bee3a82 (INCOMING_RETURN_ADDR_RTX,INCOMING_FRAME_SP_OFFSET): Move definitions
to a more sane place.

From-SVN: r15891
1997-10-10 22:33:24 +00:00
Doug Evans
992b2778ce * sparc/t-sp64 (LIBGCC2_CFLAGS): Delete.
From-SVN: r15890
1997-10-10 20:49:12 +00:00
Doug Evans
dec883836b configure.in: Handle --with-newlib.
* configure.in: Handle --with-newlib.
	* Makefile.in (LIBGCC2_CFLAGS): Add @inhibit_libc@.

	* sparc/t-sp64 (LIBGCC2_CFLAGS): Delete.

From-SVN: r15889
1997-10-10 20:48:55 +00:00
Jason Merrill
7ac63bcadb * pt.c (instantiate_decl): Fix previous change.
From-SVN: r15888
1997-10-10 15:22:04 -04:00
Jason Merrill
9cd60aa99b bastring.h: Use ibegin internally.
* std/bastring.h: Use ibegin internally.  Return passed iterator
	instead of recalculating it were appropriate.
	* std/bastring.cc: Adjust for erase.

	From Yotam Medini:
	* std/bastring.h: Replace remove with erase.

From-SVN: r15887
1997-10-10 03:44:56 -04:00
Jason Merrill
38bab5d4c6 * tstring.cc (identitytest): s/remove/erase/.
From-SVN: r15886
1997-10-10 03:43:28 -04:00
Jason Merrill
da8c445d07 stdexcepti.cc (__out_of_range): New fn.
* stdexcepti.cc (__out_of_range): New fn.
	(__length_error): New fn.

	* std/bastring.h (OUTOFRANGE): Fix logic.  Use throwing functions.
	(LENGTHERROR): Likewise.
	Revert Oct 2 changes.
	* string: Revert Oct 2 changes.

	* std/{f,d,ld}complex.h: Replace guiding fns if not -ansi.

From-SVN: r15885
1997-10-10 02:56:56 -04:00
Brendan Kehoe
5b76d03baa add GPL comment at the top
From-SVN: r15884
1997-10-09 21:18:29 -04:00
Brendan Kehoe
e050253aa5 add an initial very rough description of how `explicit' is handled
From-SVN: r15883
1997-10-09 20:05:55 -04:00
Jason Merrill
fee23f5442 pt.c (tsubst): Fix thinko.
* pt.c (tsubst): Fix thinko.
	(instantiate_decl): Really use the original template.

	* call.c (build_new_method_call): Use simple constructor_name for
	error messages.

From-SVN: r15882
1997-10-09 15:13:22 -04:00
Jeffrey A Law
c89078531b method.c (build_underscore_int): Don't use ANSI specific features.
* method.c (build_underscore_int): Don't use ANSI specific
        features.

From-SVN: r15881
1997-10-08 22:45:14 -06:00
Jeffrey A Law
0e1f3f5eb4 Fix typo.
From-SVN: r15880
1997-10-08 14:37:08 -06:00
Jeffrey A Law
12504ae0b9 * version.c: Bump for snapshot.
From-SVN: r15878
1997-10-08 08:55:00 -06:00
Jason Merrill
3bd1e206cb decl2.c (finish_prevtable_vardecl): Check DECL_REALLY_EXTERN for our key method; it might have been inlined by -O3.
* decl2.c (finish_prevtable_vardecl): Check DECL_REALLY_EXTERN
	for our key method; it might have been inlined by -O3.

From-SVN: r15877
1997-10-08 03:19:53 -04:00
Jason Merrill
ffb690bd08 [multiple changes]
Tue Oct  7 23:00:12 1997  Mark Mitchell  <mmitchell@usa.net>

	* decl.c (make_typename_type): Do not try to call lookup_field for
	non-aggregate types.

Tue Oct  7 22:52:10 1997  Jason Merrill  <jason@yorick.cygnus.com>

	* typeck.c (build_reinterpret_cast): Tweak.

Tue Oct  7 22:45:31 1997  Alexandre Oliva  <oliva@dcc.unicamp.br>

	* typeck.c (build_reinterpret_cast): converting a void pointer
	to function pointer with a reinterpret_cast produces a warning
	if -pedantic is issued

Tue Oct  7 22:43:43 1997  Bruno Haible  <bruno@linuix.mathematik.uni-karlsruhe.de>

	* typeck.c (c_expand_return): Don't warn about returning a
	reference-type variable as a reference.

From-SVN: r15876
1997-10-08 02:04:28 -04:00
Jeff Law
51cbea761b One more thinko.
From-SVN: r15875
1997-10-07 23:23:19 -06:00
Jeff Law
253a01b4a6 Fix thinko in last change.
From-SVN: r15874
1997-10-07 23:18:17 -06:00
Jason Merrill
a6f025879b method.c (build_static_name): Fix typo.
* method.c (build_static_name): Fix typo.

1997-10-07  Brendan Kehoe  <brendan@lisa.cygnus.com>

	* decl.c (duplicate_decls): Make sure DECL_LANG_SPECIFIC is set on
	OLDDECL before we try to do DECL_USE_TEMPLATE.

From-SVN: r15873
1997-10-08 00:26:17 -04:00
Richard Henderson
7e9e3823c7 Makefile.in (CGFLAGS): Don't force -g0.
* Makefile.in (CGFLAGS): Don't force -g0.
        * libF77/Makefile.in, libI77/Makefile.in, libU77/Makefile.in: Likewise.

From-SVN: r15872
1997-10-07 18:20:24 -06:00