Commit Graph

36364 Commits

Author SHA1 Message Date
Catherine Moore
77f43519e7 Restore ASM_OUTPUT_LABEL_REF definition.
From-SVN: r44162
2001-07-19 16:20:42 -04:00
Geoffrey Keating
c77fbfbea6 reload1.c (eliminate_regs_in_insn): When updating a set to the frame pointer to the hardware frame pointer...
* reload1.c (eliminate_regs_in_insn): When updating a set
	to the frame pointer to the hardware frame pointer, perform
	the update always not just when REPLACE is set.

From-SVN: r44161
2001-07-19 19:46:29 +00:00
Geoffrey Keating
eb4d554e37 reload1.c (choose_reload_regs): Don't inherit a reload that crosses multiple registers if...
* reload1.c (choose_reload_regs): Don't inherit a reload
	that crosses multiple registers if registers past the first
	don't fit in the desired class.

From-SVN: r44160
2001-07-19 19:45:24 +00:00
Jakub Jelinek
8d3216f82d top.c (ffe_decode_option): Disallow lang-independent processing for -ffixed-form.
* top.c (ffe_decode_option): Disallow lang-independent processing
	for -ffixed-form.

From-SVN: r44159
2001-07-19 21:44:12 +02:00
Geoffrey Keating
d54ef62c47 ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode when negating constants.
* ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
	when negating constants.

From-SVN: r44158
2001-07-19 19:43:44 +00:00
Toon Moene
7d46d51652 tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>

	* tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
	* doc/tree.texi: Ditto.
	* f/com.c (ffecom_expr_intrinsic_): Cope with it.

From-SVN: r44156
2001-07-19 18:33:30 +00:00
Mark Kettenis
5442cf157b unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
* unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
	(extract_cie_info): Handle "eh" augmentation properly,
	remember eh_ptr.
	(struct frame_state, __frame_state_for): New.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r44155
2001-07-19 20:20:49 +02:00
Rainer Orth
432fa9f208 osf.h (ASM_OUTPUT_WEAK_ALIAS, [...]): Define.
* config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
	HANDLE_SYSV_PRAGMA): Define.
	* mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
	previous args.
	(copy_object): Caller changed.

	testsuite:
	* g++.old-deja/g++.pt/static3.C: Removed alpha*-*-osf* XFAIL.
	g++.old-deja/g++.pt/static6.C: Likewise.
	* lib/target-supports.exp (check_weak_available): alpha*-*-osf*
	supports weak symbols.

From-SVN: r44153
2001-07-19 18:08:17 +00:00
Jeff Sturm
deaabf1413 re PR java/3731 (gcj should generate class init code for instanceof)
* libjava.lang/PR3731.java: New file.
* libjava.lang/PR3731.out: New file.
* libjava.lang/PR3731.xfail: New file.

From-SVN: r44151
2001-07-19 14:03:08 +00:00
Andreas Schwab
bfabbc3c2a configure.in (assembler dwarf2 debug_line support): Define nop insn for m68k.
* configure.in (assembler dwarf2 debug_line support): Define nop
	insn for m68k.
	* configure: Regenerated.

From-SVN: r44149
2001-07-19 09:59:50 +00:00
Mark Mitchell
b7076960b3 * class.c (finish_struct_anon): Forbid nested classes.
From-SVN: r44148
2001-07-19 07:22:40 +00:00
GCC Administrator
69e6b1d4b2 Daily bump.
From-SVN: r44146
2001-07-19 07:16:10 +00:00
Neil Booth
2b85879e63 Makefile.in (toplev.o, [...]): Don't depend on dwarfout.h.
* Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
	dwarfout.h.
	* dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
	to conditionally compiled block.
	(dbx_debug_hooks, xcoff_debug_hooks): Update.
	* dbxout.h (dbxout_function): Remove.
	* debug.c (do_nothing_debug_hooks): Update.
	* debug.h (struct gcc_debug_hooks): New hooks function_decl,
	global_decl, deferred_inline_function.
	* dwarf2out.c (dwarf2_debug_hooks): Update.
	(dwarf2out_global_decl): New.
	* dwarfout.c: Don't include dwarfout.h.
	(dwarfout_global_decl, dwarfout_function_decl,
	dwarfout_deferred_inline_function): New.
	(dwarf_debug_hooks): Update.
	* dwarfout.h: Remove.
	* final.c: Don't include dwarfout.h.
	* sdbout.c (sdbout_global_decl): New.
	(sdbout_debug_hooks): Update.
	* toplev.c: Don't include dwarfout.h.
	(check_global_declarations, rest_of_compilation): Use new debug hooks.
	(note_deferral_of_defined_inline_function): Remove.
	* toplev.h (note_deferral_of_defined_inline_function): Remove.
	* ch/Makefile.in (lex.o): No dependence on dwarfout.h.
	* ch/lex.c: Don't include dwarfout.h.
	* cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
	(semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
	* cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
	* cp/optimize.c: Include debug.h.
	(maybe_clone_body): Use debug hook.
	* cp/semantics.c: Include debug.h.
	(expand_body): Use debug hook.
	* po/POTFILES.in: Remove dwarfout.h.

From-SVN: r44145
2001-07-19 06:22:04 +00:00
Neil Booth
c60e94a70e c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
* c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
	* c-parse.in (yyerror, _yylex): Similarly.
	* cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
	Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
	Update comments.
	* cpplib.h (CPP_INT, CPP_FLOAT): Remove.
	* cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.

From-SVN: r44144
2001-07-19 06:12:50 +00:00
Mark Mitchell
dbc957f103 class.c (type_requires_array_cookie): New function.
* class.c (type_requires_array_cookie): New function.
	(check_methods): Don't try to figure out whether the type needs a
	cookie here.
	(check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
	* cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
	(TYPE_VEC_NEW_USES_COOKIE): Reimplement.
	* pt.c (instantiate_class_template): Don't set
	TYPE_VEC_DELETE_TAKES_SIZE.
	* NEWS: Document ABI changes from GCC 3.0.

From-SVN: r44142
2001-07-19 04:27:16 +00:00
Jeff Sturm
8458e95401 dwarf2out.c (dwarf2out_abstract_function): Don't emit in-class declaration at -g1.
* dwarf2out.c (dwarf2out_abstract_function): Don't emit
in-class declaration at -g1.  Fixes c++/2814.

From-SVN: r44141
2001-07-19 03:50:07 +00:00
Gabriel Dos Reis
b2a4c43c0d gen-num-limits.cc (set_signals_handler): New function.
* src/gen-num-limits.cc (set_signals_handler): New function.
        Factor out signals setting.  Set signal handler for SIGILL.

Co-Authored-By: Bert De Knuydt <Bert.Deknuydt@esat.kuleuven.ac.be>

From-SVN: r44139
2001-07-19 03:06:01 +00:00
DJ Delorie
27ffc806c4 merge from glibc
From-SVN: r44138
2001-07-18 19:40:00 -04:00
Richard Henderson
560dbedd74 Fix markup for reload_in/out.
From-SVN: r44137
2001-07-18 15:02:07 -07:00
Phil Edwards
4b92a3bf21 howto.html: Fix typo.
2001-07-18  Phil Edwards  <pme@sources.redhat.com>

	* docs/html/27_io/howto.html:  Fix typo.
	* docs/html/faq/index.html:  Minor updates for 3.0 all around.
	* docs/html/faq/index.txt:  Regenerated.

From-SVN: r44135
2001-07-18 21:37:06 +00:00
Richard Henderson
d989f648fa md.texi (reload_in/out): Document restrictions in predicates and constraints for these patterns.
* doc/md.texi (reload_in/out): Document restrictions in predicates
        and constraints for these patterns.  Document empty string matching
        ALL_REGS.

From-SVN: r44134
2001-07-18 14:34:15 -07:00
Toon Moene
31831acf29 configure.in (_XOPEN_SOURCE, [...]): Move these defines before tests which might be affected by them.
2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>

	* libI77/configure.in (_XOPEN_SOURCE, _FILE_OFFSET_BITS): Move
	these defines before tests which might be affected by them.
	(_XOPEN_SOURCE_EXTENDED): Define.
	* libI77/configure, libI77/config.h.in: Regenerate.

From-SVN: r44133
2001-07-18 20:50:54 +00:00
Rainer Orth
20c93f7ce2 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
From-SVN: r44131
2001-07-18 20:43:40 +00:00
Rainer Orth
06c271c3cf natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC 2533 socket options IPV6_JOIN_GROUP...
* java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
	2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
	back to old RFC 2133 variants if missing.

From-SVN: r44130
2001-07-18 20:39:52 +00:00
Xavier Delacour
7ba0b0f7c6 NEWS (Changes in GCC 3.0): Fix typo.
* NEWS (Changes in GCC 3.0): Fix typo.

Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>

From-SVN: r44128
2001-07-18 19:09:25 +00:00
Jan Hubicka
dc42616f43 * cse.c: Undo my previous patch.
From-SVN: r44126
2001-07-18 18:52:41 +00:00
Tom Tromey
e5c83273cf natFileWin32.cc (_access): Renamed.
* java/io/natFileWin32.cc (_access): Renamed.
	(_stat): Likewise.
	* java/io/natFile.cc (_access): Renamed.
	(_stat): Likewise.
	* java/io/File.java (access, stat): Add leading `_' to name.
	Updated all callers.

From-SVN: r44124
2001-07-18 18:35:12 +00:00
Stephen M. Webb
fed3b7b431 ostream.tcc (ostream::put): Fixed error condition check.
2001-07-18  Stephen M. Webb  <stephen@bregmasoft..com>
            Roman Sulzhyk  <roman_sulzhyk@yahoo.com>

        libstdc++/3599
        * include/bits/ostream.tcc (ostream::put): Fixed error condition check.
        * testsuite/27_io/streambuf.cc (test07): Added new regression test.

Co-Authored-By: Roman Sulzhyk <roman_sulzhyk@yahoo.com>

From-SVN: r44122
2001-07-18 17:58:37 +00:00
Tom Tromey
6a65ea5be3 For PR java/2812:
* lex.h: Use HAVE_ICONV, not HAVE_ICONV_H.
	* lex.c (java_new_lexer): Use ICONV_CONST.
	(java_read_char): Likewise.
	* Make-lang.in (jc1$(exeext)): Link against LIBICONV.
	(jv-scan$(exeext)): Likewise.

From-SVN: r44120
2001-07-18 17:18:55 +00:00
Tom Tromey
f91abfce7b For PR java/2812:
* configure: Rebuilt.
	* configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
	instead.
	* aclocal.m4 (AM_ICONV): New macro from Bruno Haible.

From-SVN: r44119
2001-07-18 17:17:03 +00:00
Richard Henderson
0728902f90 flow.c (redirect_edge_and_branch): Bail out on complex edges.
* flow.c (redirect_edge_and_branch): Bail out on complex edges.
	(try_optimize_cfg): Do not remove tail recursive labels before sibcall.
	* jump.c (mark_jump_label): Do not forward branches.

Co-Authored-By: Jan Hubicka <jh@suse.cz>

From-SVN: r44118
2001-07-18 17:11:11 +00:00
Stephen M. Webb
02d92e3b70 All occurrences of the __value_type() and __distance_type() functions...
2001-07-17  Stephen M. Webb   <stephen@bregmasoft.com>r

	All occurrences of the __value_type() and __distance_type()
	functions, which were required to support the HP STL, have been
	removed along with all the auxiliary forwarding functions that
	were required to support their use.

	The __iterator_category() function was pretty much left alone
	because there was no benefit to removing it and its use made code
	just a little more readable.

	Incidences of distance() with nonstandard argument list were
	replaced by calls to the standard function (only in the files
	affected by the removal of the other HP functions).

	The signature of the rotate() algorithm was changed to match the
	standard.

	Headers were reformatted under C++STYLE guidelines (indentation,
	linebreaks, typename keyword).

	* include/bits/stl_algo.h: replaced __value_type() and
	__distance_type() with iterator_traits, eliminated auxiliary
	support functions required to support said function usage.
	Changed nonstandard distance() call to standard call.

	* include/bits/stl_algobase.h: Same.
	* include/bits/stl_heap.h: Same.
	* include/bits/stl_numeric.h: Same.
	* include/bits/stl_uninitialized.h: Same.
	* include/bits/stl_iterator_base_types.h (__value_type()):
	Removed.
	(__distance_type()): Removed.
	(value_type()): Gone.
	(distance_type()): Done in.
	(iterator_category()): Hasta la vista, baby.

	* include/bits/stl_iterator_base_funcs.h (iterator_category()):
	Replaced with __iterator_category().
	* include/backward/iterator.h: moved definition of value_type(),
	distance_type(), and iterator_category() out of std:: and into
	here.
	* testsuite/23_containers/vector_ctor.cc (test03): New testcases.
	* testsuite/23_containers/vector_modifiers.cc (test03): New testcases.
	* testsuite/25_algorithms/rotate.cc: New testcase.
	* testsuite/25_algorithms/copy.cc: New testcase.
	* testsuite/25_algorithms/sort.cc: Same.
	* testsuite/25_algorithms/heap.cc: Same.
	* testsuite/25_algorithms/partition.cc: Same.
	* testsuite/25_algorithms/binary_search.cc: Same.
	* testsuite/26_numerics/sum_diff.cc: Ditto.

From-SVN: r44117
2001-07-18 17:09:02 +00:00
Tom Tromey
860a15368d For PR java/2812:
* libgcj.spec.in (*lib): Added LIBICONV.
	* configure: Rebuilt.
	* configure.in: Call AM_ICONV.  Don't check for iconv function.
	Add parameters to JV_HASH_SYNCHRONIZATION define.
	* acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.

From-SVN: r44116
2001-07-18 17:06:24 +00:00
Jan Hubicka
f06fbeea0d cse.c (delete_trivially_dead_insns): Delete the libcall block when return value is unused.
* cse.c (delete_trivially_dead_insns): Delete the libcall block
	when return value is unused.

From-SVN: r44112
2001-07-18 16:36:33 +00:00
Jan Hubicka
222f7ba9a4 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
From-SVN: r44111
2001-07-18 16:29:50 +00:00
Andreas Jaeger
f7bebb56c0 vtgc1.C: Revert patch from 2001-04-26 since vtable-gc is supported again.
* g++.dg/vtgc1.C: Revert patch from 2001-04-26 since vtable-gc is
        supported again.

From-SVN: r44110
2001-07-18 18:26:45 +02:00
Kaveh R. Ghazi
14efa1ddc3 configure.in (_XOPEN_SOURCE, [...]): Move these defines before tests which might be affected by them.
* libU77/configure.in (_XOPEN_SOURCE, _FILE_OFFSET_BITS): Move
	these defines before tests which might be affected by them.
	(_XOPEN_SOURCE_EXTENDED): Define.

	* libU77/configure, libU77/config.hin: Regenerate.

From-SVN: r44108
2001-07-18 15:16:10 +00:00
Nicola Pero
5f1ecf82e7 Save a function call in common mutex locking/unlocking operations
From-SVN: r44107
2001-07-18 11:55:24 +00:00
Nicola Pero
ba0cf7f7f5 Save a function call on mutex locking/unlocking
From-SVN: r44106
2001-07-18 11:54:03 +00:00
Nicola Pero
8b52df456f Fixed bug in gthr-posix.h - buggy backend thread functions for objective-c
From-SVN: r44105
2001-07-18 11:22:37 +00:00
Nicola Pero
054af13988 Fixed backend function of objc_mutex_trylock which was broken
From-SVN: r44104
2001-07-18 11:21:20 +00:00
GCC Administrator
b8dd1bcdbe Daily bump.
From-SVN: r44100
2001-07-18 07:16:08 +00:00
Andreas Jaeger
a3424c989a * gcc.dg/iftrap-1.c: Fix target line.
From-SVN: r44099
2001-07-18 09:13:09 +02:00
Andreas Jaeger
895b2cfec8 * integrate.c (output_inline_function): Correct type of debug_hooks.
From-SVN: r44098
2001-07-18 08:35:24 +02:00
Toon Moene
493efd37cd combine.c (combine_simplify_rtx): DIV can be treated associatively for floats if...
2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>

	* combine.c (combine_simplify_rtx): DIV can be treated
	associatively for floats if unsafe math optimisations are enabled.

From-SVN: r44097
2001-07-18 05:26:38 +00:00
Richard Henderson
a7c07f1ef0 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
From-SVN: r44096
2001-07-17 20:32:46 -07:00
Richard Henderson
3affaf2934 calls.c (prepare_call_address): New parameter SIBCALLP.
* calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
        don't force the function address into a register.
        (expand_call, emit_library_call_value_1): Update callers.
        * builtins.c (expand_builtin_apply): Likewise.
        * expr.h (prepare_call_address): Update decl.

From-SVN: r44095
2001-07-17 20:24:53 -07:00
Chandra Chavva
2bd2bdd9d2 config.gcc: For *-*-chorusos triplet, get chorus.h file from config directory.
* config.gcc: For *-*-chorusos triplet, get chorus.h file from
        config directory.
        * config/i386/chorus.h: Move up.
        * config/sparc/chorus.h: Likewise.
        * config/rs6000/chorus.h: Likewise.
        * config/chorus.h: Moved here

From-SVN: r44094
2001-07-17 23:10:10 -04:00
Alexandre Petit-Bianco
ba75520fff i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused local `_ebp.'
2001-07-13  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
	local `_ebp.'

(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00070.html )

From-SVN: r44093
2001-07-17 16:59:07 -07:00
Chandra Chavva
001da62afe config.gcc: For *-*-chorusos triplet, get chorus.h file from config directory.
* config.gcc: For *-*-chorusos triplet, get chorus.h file from
        config directory.
        * config/i386/chorus.h: Move up.
        * config/sparc/chorus.h: Likewise.
        * config/rs6000/chorus.h: Likewise.
        * config/chorus.h: Moved here.

From-SVN: r44092
2001-07-17 17:54:37 -04:00