Commit Graph

43707 Commits

Author SHA1 Message Date
Tom Tromey
04a704a4aa For PR libgcj/7073:
* resolve.cc (_Jv_PrepareClass): Only resolve superclass if it
	exists.
	* defineclass.cc (handleClassBegin): Superclass for interface is
	`null'.

From-SVN: r54835
2002-06-20 15:10:49 +00:00
Kriang Lerdsuwanakij
aa16c0facc re PR c++/6892 (ICE from #include inside switch(){} inside template function)
PR c++/6892
	* pt.c (tsubst_expr): Handle FILE_STMT.

From-SVN: r54832
2002-06-20 14:44:37 +00:00
Kriang Lerdsuwanakij
342cea9509 re PR c++/6723 (ICE on source code successfully compiled by previous versions)
PR c++/6723
	* pt.c (lookup_template_class): Don't build complete argument of
	BOUND_TEMPLATE_TEMPLATE_PARM if appeared as a default template
	argument.

	* g++.dg/template/ttp4.C: New test.

From-SVN: r54831
2002-06-20 14:38:06 +00:00
Andreas Jaeger
5bc93be506 com.c (ffecom_prepare_expr_,ffecom_expr_power_integer_): Remove #ifdefed HAHA sections.
* com.c (ffecom_prepare_expr_,ffecom_expr_power_integer_):
	Remove #ifdefed HAHA sections.

From-SVN: r54829
2002-06-20 14:31:28 +02:00
Rainer Orth
8433a25e2a sol2.h: New file.
* config/sol2.h: New file.
	* config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
	(sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
	(sparc-*-chorusos*): Likewise.
	(sparc-*-elf*): Likewise.
	(sparc-*-rtems*, sparc-*-rtemself*): Likewise.
	(sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
	(sparc-hal-solaris2*): Likewise.
	(sparc-*-solaris2*): Likewise.
	(sparclite-*-elf*): Likewise.
	(sparc86x-*-elf*): Likewise.
	(sparc64-*-elf*): Likewise.

	* config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
	config/sol2.h.
	(ASM_SPEC): Override config/sol2.h version for now.
	Removed obsolete GAS_REJECTS_MINUS_S variant.
	(WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
	(HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
	(TARGET_OS_CPP_BUILTINS): Likewise.
	Assert system=unix.
	(CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
	(LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
	config/sol2.h.
	(SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
	(ASM_CPU_SPEC): Define.
	(SUBTARGET_EXTRA_SPECS): Define.

	* config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
	in config/sparc/sol2.h.
	(ASM_SPEC): Moved to config/sol2.h.
	(CPP_CPU_SPEC): Simplified.
	(STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
	consistency.
	(STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
	(STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
	STARTFILE_ARCH64_SPEC.
	(STARTFILE_SPEC): Moved to config/sol2.h
	(SUBTARGET_EXTRA_SPECS): Add startfile_arch.
	(LINK_ARCH32_SPEC): Moved to config/sol2.h.
	(LINK_ARCH64_SPEC): Simplified.
	(LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
	(LINK_SPEC): Moved to config/sol2.h

	* config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
	config/sol2.h.
	Use BITS_PER_WORD for size.
	(WINT_TYPE, WINT_TYPE_SIZE): Likewise.
	(HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
	(CPP_PREDEFINES): Removed OS-specific part handled by
	TARGET_OS_CPP_BUILTINS.
	(CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
	(CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
	(ASM_SPEC): Moved to config/sol2.h.
	(PREFERRED_DEBUGGING_TYPE): Likewise.
	(STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
	(SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
	(TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
	(TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h

	* config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
	* config/i386/sol2gas.h: Removed.

From-SVN: r54827
2002-06-20 11:03:40 +00:00
Jan Hubicka
b6bb1d5618 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
From-SVN: r54826
2002-06-20 10:15:59 +00:00
Nathanael Nerode
a857724284 com.c: Remove #ifdef HOHO sections.
2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>

	* com.c: Remove #ifdef HOHO sections.

From-SVN: r54824
2002-06-20 11:13:57 +02:00
Richard Henderson
74d86f4fc1 c-common.c (c_common_get_alias_set): Correctly handle characters.
* c-common.c (c_common_get_alias_set): Correctly handle characters.
        Rearrange order of expressions; don't handle vectors here.
        * alias.c (get_alias_set): Let vectors match their components.

From-SVN: r54821
2002-06-20 00:30:04 -07:00
GCC Administrator
3b4008995c Daily bump.
From-SVN: r54820
2002-06-20 07:27:58 +00:00
Chris Demetriou
1867b6243b mips.c (mips_emit_prefetch): Use hints which match desired locality.
2002-06-19  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.c (mips_emit_prefetch): Use hints which
	match desired locality.

From-SVN: r54815
2002-06-19 19:48:29 -07:00
Dhananjay R. Deshpande
2c1d2fcb8f h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
* config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
	(h8300_insert_attributes): New.

From-SVN: r54814
2002-06-20 02:43:13 +00:00
Akim Demaille
84d901be21 c-parse.in (initelt: identifier ':' initval): Add an empty action to fix a type clash.
2002-06-19  Akim Demaille  <akim@epita.fr>

	* c-parse.in (initelt: identifier ':' initval): Add an empty
	action to fix a type clash.
	(aliasdecl, classdef): Add the missing closing `;'.
	Whitespace changes.
	* gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
	$$ = $1 type clashes.

cp:
	* parse.y (TYPENAME): Rename as tTYPENAME to avoid the clash with
	decl.h's TYPENAME.
	* spew.c, lex.c: Adjust.
	* parse.y (explicit_instantiation): Add empty action to override
	the default $$ = $1 where it introduces a type clash.

From-SVN: r54811
2002-06-20 01:30:57 +00:00
Nathanael Nerode
ef40bc6512 * configure.in: replace ${topsrcdir} with ${srcdir}
From-SVN: r54810
2002-06-19 19:57:38 -04:00
Nathanael Nerode
7a0be4657d configure.in: Move definition of libstdcxx_flags right above usage, rather than waaay earlier.
* configure.in: Move definition of libstdcxx_flags
right above usage, rather than waaay earlier.

From-SVN: r54809
2002-06-19 19:53:29 -04:00
DJ Delorie
0c639b897e * configure.in: Rearrange a little.
From-SVN: r54808
2002-06-19 19:47:43 -04:00
Nathanael Nerode
e1848dde7a * configure.in: Pull definition of is_cross_compiler earlier.
From-SVN: r54807
2002-06-19 19:39:42 -04:00
Nathanael Nerode
8bc2fff120 * configure.in: Rearrange a little.
From-SVN: r54806
2002-06-19 19:24:14 -04:00
Eric Christopher
8f2e3902df mips.c (symbol_operand): New function.
2002-06-19  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.c (symbol_operand): New function.
	(mips_emit_prefetch): Ditto.
	* config/mips/mips-protos.h: Define.
	* config/mips/mips.h (ISA_HAS_PREFETCH): Define.
	(CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
	(LEGITIMIZE_ADDRESS): Ditto.
	* config/mips/mips.md (prefetch, prefetch_si_address,
	prefetch_si, prefetch_di_address, prefetch_di): New patterns.

From-SVN: r54805
2002-06-19 23:18:00 +00:00
Nathanael Nerode
ba3292dbb7 configure.in: Remove references to librx.
* configure.in: Remove references to librx.
* Makefile.in: Remove references to librx.

From-SVN: r54804
2002-06-19 19:06:06 -04:00
Eric Christopher
c894819cd5 fp-bit.h: Add unordered defines for gofast.
2002-06-19  Eric Christopher  <echristo@redhat.com>

	* config/fp-bit.h: Add unordered defines for gofast.

From-SVN: r54803
2002-06-19 23:01:59 +00:00
Vladimir Makarov
4005971c07 genautomata.c (DECL_UNIT, [...]): New macros with checking and without it.
2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>

	* genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
	DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
	DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
	REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
	checking and without it.
	(decl_name, decl_mode_check_failed, regexp_name,
	regexp_mode_check_failed): New functions.
	(gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
	gen_presence_set, gen_absence_set, gen_automaton,
	gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
	gen_regexp_sequence, gen_reserv, gen_insn_reserv,
	automaton_decl_hash, automaton_decl_eq_p): Use the macros.
	(find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
	(insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
	(find_insn_decl): Ditto.  Set up mode of work_insn_decl.
	(decl_hash, decl_eq_p): Use the macros.
	(find_decl): Ditto.  Set up mode of work_decl.
	(process_excls, process_presence_absence, process_decls,
	check_automaton_usage, process_regexp, process_regexp_decls,
	check_usage, loop_in_regexp, check_loops_in_regexps,
	process_regexp_cycles, add_advance_cycle_insn_decl,
	initiate_states, initiate_excl_sets,
	initiate_presence_absence_sets, copy_insn_regexp, transform_1,
	transform_2): Use the macros.
	(transform_3): Ditto.  Check mode before making transformations of
	ALLOF.
	(regexp_transform_func, transform_insn_regexps,
	process_unit_to_form_the_same_automaton_unit_lists,
	form_the_same_automaton_unit_lists_from_regexp,
	form_the_same_automaton_unit_lists,
	process_seq_for_forming_states, process_alts_for_forming_states,
	create_alt_states, form_ainsn_with_same_reservs, make_automaton,
	form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
	estimate_one_automaton_bound, compare_max_occ_cycle_nums,
	units_to_automata_heuristic_distr, create_ainsns,
	units_to_automata_distr, create_automata): Use the macros.
	(form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
	(longest_path_length, min_issue_delay_pass_states,
	output_dead_lock_vect, output_tables, output_insn_code_cases,
	output_internal_insn_latency_func, output_print_reservation_func,
	output_description, output_automaton_units, generate): Use the
	macros.
	(make_insn_alts_attr): Ditto.  Check case when there are not
	alternatives in the reservation.
	(make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
	make_bypass_attr, form_important_insn_automata_lists,
	expand_automata): Use the macros.

From-SVN: r54802
2002-06-19 22:37:30 +00:00
Denis Chertykov
11d8b40806 config.sub: Add support for avr target.
* config.sub: Add support for avr target.
	Import from master sources, rev 1.255

From-SVN: r54801
2002-06-20 00:46:38 +04:00
Tim Josling
015089dd48 Clean up configure.in checks for bad languages; fix typos in treelang.
From-SVN: r54800
2002-06-19 20:30:23 +00:00
Steve Ellcey
a616effa58 configure.in (HAVE_FINITE*, [...]): Remove definitions in hpux11 cross-build because these functions do not exist...
2002-06-19  Steve Ellcey  <sje@cup.hp.com>

	* configure.in (HAVE_FINITE*, HAVE_ISINF*, HAVE_ISNAN*):  Remove
	definitions in hpux11 cross-build because these functions do
	not exist on hpux11 (but some exist on hpux10); move defaults out
	into existing sections.
	* configure:  Regenerate.

From-SVN: r54799
2002-06-19 20:30:13 +00:00
Matt Kraai
d90a95fbea tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of builtin_define and builtin_define_std.
* doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
	builtin_define and builtin_define_std.

From-SVN: r54798
2002-06-19 20:14:19 +00:00
Andrew Pinski
7999462c22 * cpptrad.c (_cpp_replacement_text_len): initialize len.
From-SVN: r54797
2002-06-19 19:59:45 +00:00
Jason Merrill
9c8d079c42 Makefile.in (unstrap, restrap): New targets.
* Makefile.in (unstrap, restrap): New targets.
        (bootstrap): Mention restrap.

From-SVN: r54795
2002-06-19 15:00:09 -04:00
Matt Kraai
3c9ab9b53c * except.c (ehl_free): Remove.
From-SVN: r54794
2002-06-19 18:48:28 +00:00
Phil Edwards
93da83395a configure, .cvsignore: Revert previous change...
2002-06-19  Phil Edwards  <pme@gcc.gnu.org>

	* configure, .cvsignore:  Revert previous change...
	* Makefile:  ...delete.

From-SVN: r54792
2002-06-19 18:10:09 +00:00
Ian Dall
f01a0d8d2c ns32k.md: Give "*xxx" names to all unnamed insn's.
* config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
        (sCOND): Restrict operand class so that gcc knows how to reload them.
        (bitfield_set): Merge two unnamed insn's using alternatives.
        (call_value): Remove constraint on unused uperand.
        (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
        (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.

        * longlong.h (count_trailing_zeros): Escape newline and beautify.

From-SVN: r54788
2002-06-19 10:45:15 -07:00
Nathanael Nerode
b4caab5c94 * configure.in: Eliminate ${gasdir} variable.
From-SVN: r54786
2002-06-19 13:39:21 -04:00
Mark Mitchell
62363d9980 * Makefile.in (QMTEST_DIR): Simplify definition.
From-SVN: r54783
2002-06-19 16:09:21 +00:00
Benjamin Kosnik
93b855862a std_cwchar.h: Guard.
2002-06-18  Benjamin Kosnik  <bkoz@redhat.com>

	* include/c/std_cwchar.h: Guard. Add mbstate_t bits.
	* include/c/std_cwctype.h: Guard.

	* libsupc++/eh_alloc.cc: Tweak include order.
	* libsupc++/pure.cc: Use cstdio.
	* libsupc++/new_op.cc: Remove malloc forward declaration, as
	cstdlib brings it in. Use std::malloc.

	* src/Makefile.am (sources): Remove cmath.cc.
	* src/Makefile.in: Regenerate.
	* src/cmath.cc: Remove.

From-SVN: r54782
2002-06-19 15:19:53 +00:00
Jakub Jelinek
ccf160f16c * g++.dg/opt/vt1.C: Fix regexp.
From-SVN: r54781
2002-06-19 16:45:06 +02:00
Nick Clifton
099bd6563c (CUMULATIVE_ARGS): Replace typedef with #define.
From-SVN: r54779
2002-06-19 10:00:42 +00:00
GCC Administrator
00cc20a549 Daily bump.
From-SVN: r54776
2002-06-19 07:19:42 +00:00
Neil Booth
278c466207 cpphash.h (struct cpp_reader): Make date and time strings.
* cpphash.h (struct cpp_reader): Make date and time strings.
	(_cpp_builtin_macro_text, _cpp_copy_replacement_text,
	_cpp_replacement_text_len): New.
	* cppinit.c (cpp_create_reader): Update.
	(init_builtins): Register appropriate builtins for -traditional-cpp.
	* cppmacro.c (new_number_token): Remove.
	(_cpp_builtin_macro_text): New.
	(builtin_macro): Use it.
	(cpp_macro_definition): Update to handle traditional macros.
	* cppmain.c (cb_line_change): Don't do column positioning for
	traditional output.
	* cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
	state ls_fun_close.
	(skip_whitespace): Fix.
	(maybe_start_funlike): Don't set state.parsing_args.
	(scan_out_logical_line): Remove duplicate error.  Use lex_state
	rather than state.parsing_args.
	(push_replacement_text): Handle builtins.
	(_cpp_replacement_text_len, _cpp_copy_replacement_text): New.

From-SVN: r54771
2002-06-19 05:40:08 +00:00
Phil Edwards
9d7b4c5a4f configure.target: Force mips to use the generic cpu routines.
2002-06-18  Phil Edwards  <pme@gcc.gnu.org>

	* configure.target:  Force mips to use the generic cpu routines.

From-SVN: r54769
2002-06-19 01:30:39 +00:00
Hans-Peter Nilsson
afd1930f1b fp-bit.c (_fpmul_parts, [...]): Mark with attribute __always_inline__.
* config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
	attribute __always_inline__.

Co-Authored-By: Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

From-SVN: r54768
2002-06-19 00:51:03 +00:00
Kaveh R. Ghazi
90227c6967 pure-1.c: Make functions static again.
* gcc.c-torture/execute/pure-1.c: Make functions static again.
	Don't use attribute `noinline'.

From-SVN: r54767
2002-06-19 00:43:33 +00:00
Dave Brolley
ee77717163 merge from src
From-SVN: r54766
2002-06-18 17:58:44 -04:00
Bob Wilson
5ee924c2fb xtensa.h (FUNCTION_PROFILER): Respect flag_pic when generating the call to _mcount.
* config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
        when generating the call to _mcount.
        (NO_PROFILE_COUNTERS): Define.

From-SVN: r54765
2002-06-18 21:18:46 +00:00
Phil Edwards
26e4af5477 configure: Remove garbage from previous commit.
2002-06-18  Phil Edwards  <pme@gcc.gnu.org>

	* configure:  Remove garbage from previous commit.

From-SVN: r54763
2002-06-18 20:41:47 +00:00
Richard Henderson
32c36ac87a print-rtl.c (print_rtx): Adjust NOTE argument numbers for 2002-06-02 change.
* print-rtl.c (print_rtx): Adjust NOTE argument numbers for
        2002-06-02 change.

From-SVN: r54762
2002-06-18 13:12:13 -07:00
Phil Edwards
bb20b7dafd configure: For in-source builds, make a subdir and re-exec there.
2002-06-18  Phil Edwards  <pme@gcc.gnu.org>

	* configure:  For in-source builds, make a subdir and re-exec there.
	* Makefile:  New file.  Pass targets through to build directory.
	* .cvsignore:  No longer ignore "Makefile".

From-SVN: r54759
2002-06-18 20:02:21 +00:00
J"orn Rennecke
c985dc5e74 t-sh (MULTILIB_EXCEPTIONS): Set to ml.
* t-sh (MULTILIB_EXCEPTIONS): Set to ml.
	config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
	* config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
	* config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.

From-SVN: r54758
2002-06-18 20:56:54 +01:00
Phil Edwards
2c839a4e1f configure.host: Delete file.
2002-06-18  Phil Edwards  <pme@gcc.gnu.org>

	* configure.host:  Delete file.
	* configure.target:  More documentation.  Factor out common parts of
	script into "intelligent" settings about defaults.  Remove redundancy.

	* acinclude.m4:  Update comments.  Do not call configure.host.
	(GLIBCPP_ENABLE_SYMVERS):  If disabled, do not bother checking for
	libgcc_s.
	* configure.in:  Slight reformatting, more comments.  Factor out
	"config/" from all the directories.
	* docs/html/17_intro/porting.texi:  Update and expand.
	* testsuite/Makefile.am (AM_RUNTESTFLAGS):  Move empty setting
	from configure.host.

	* aclocal.m4, configure, docs/html/17_intro/porting.html,
	testsuite/Makefile.in:  Regenerate.

From-SVN: r54757
2002-06-18 19:07:12 +00:00
J"orn Rennecke
e3ba8d11f8 sh-protos.h (sh_pr_interrupt): Declare.
* sh-protos.h (sh_pr_interrupt): Declare.
	* sh.c (sh_pr_interrupt): New function.
	(print_operand, calc_live_regs, sh_expand_prologue): Use it.
	(sh_hard_regno_rename_ok): Likewise.
	* sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.

From-SVN: r54756
2002-06-18 20:03:18 +01:00
Tom Tromey
ab928b3241 javaprims.h: Updated class declaration list.
* gcj/javaprims.h: Updated class declaration list.
	* Makefile.in: Rebuilt.
	* Makefile.am (core_java_source_files): Removed
	BasicMapEntry.java.
	* java/util/BasicMapEntry.java: Removed.

From-SVN: r54753
2002-06-18 17:06:44 +00:00
Jeff Sturm
347258aef0 natPlainDatagramSocketImpl.cc (receive): Check bounds of argument to FD_SET.
* java/net/natPlainDatagramSocketImpl.cc (receive):
	Check bounds of argument to FD_SET.
	(setOption): Throw exception if socket is closed.

	* java/net/natPlainSocketImpl.cc (accept, read):
	Check bounds of argument to FD_SET.
	(setOption): Throw exception if socket is closed.

From-SVN: r54750
2002-06-18 16:25:00 +00:00