Commit Graph

47873 Commits

Author SHA1 Message Date
Gerald Pfeifer
cab60ac6c2 MAINTAINERS: Remove John Carr (who never actually had access to gcc.gnu.org).
* MAINTAINERS: Remove John Carr (who never actually had access to
	gcc.gnu.org).

From-SVN: r62982
2003-02-16 20:10:37 +00:00
Richard Earnshaw
3a1944a602 arm.c (arm_reload_in_hi): Ensure that the scratch register does not overlap the final result register.
* arm.c (arm_reload_in_hi): Ensure that the scratch register does
not overlap the final result register.

From-SVN: r62981
2003-02-16 19:40:11 +00:00
Tom Tromey
97a6e368a6 verify.cc (_Jv_BytecodeVerifier::pop_jump): Removed unused variable.
* verify.cc (_Jv_BytecodeVerifier::pop_jump): Removed unused
	variable.

From-SVN: r62980
2003-02-16 19:34:49 +00:00
Kriang Lerdsuwanakij
0df4ae9648 re PR c++/9459 (typeof in return type specification of template not supported)
PR c++/9459
	* error.c (dump_type_prefix): Handle TYPEOF_TYPE.
	(dump_type_suffix): Likewise.

	* g++.dg/ext/typeof4.C: New test.

From-SVN: r62973
2003-02-16 17:04:27 +00:00
Mark Wielaard
99a7d107b6 + * libjava.mauve/xfails: Add Class.reflect2 and String.getBytes FAILs.
From-SVN: r62970
2003-02-16 14:47:03 +00:00
Richard Henderson
a30a809b66 New file.
From-SVN: r62968
2003-02-16 00:33:17 -08:00
Richard Henderson
ddb9eeddc4 Mark PR last change.
From-SVN: r62966
2003-02-16 00:26:30 -08:00
Arend Bayer
cdd4b0d464 fold-const.c (extract_muldiv_1): Rename from extract_muldiv; rearrange mult arguments for less recursion.
* fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
        rearrange mult arguments for less recursion.
        (extract_muldiv): New.  Prevent runaway recursion.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r62963
2003-02-16 00:24:25 -08:00
Danny Smith
616f273ae7 cygwin.h (TARGET_SUBTARGET_DEFAULT): Set MASK_ALIGN_DOUBLE.
* config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
	MASK_ALIGN_DOUBLE.

From-SVN: r62960
2003-02-16 06:27:19 +00:00
Roger Sayle
881b2a9652 i386.c (x86_ext_80387_constants): Use 80387 insns to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
2003-02-15  Roger Sayle  <roger@eyesopen.com>

	* config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
	to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
	(ext_80387_constants_table): Global table of 80387 special constants
	guarded by ext_80387_constants_init flag when not initialized.
	(init_ext_80387_constants): New function to initialize this table.
	(standard_80387_constant_p): Extend to recognize extra 80387
	constants, in XFmode, on processors where this is a win.
	(standard_80387_constant_opcode): New function to return the
	opcode associated with standard_80387_constant_p.
	(standard_80387_constant_rtx): New function to return the XFmode
	CONST_DOUBLE associated with standard_80387_constant_p.
	(ix86_rtx_costs): Give the new constants the same cost as 1.0.

	* config/i386/i386-protos.h (standard_80387_constant_opcode):
	Prototype here.
	(standard_80387_constant_rtx): Likewise.

	* config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
	*movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
	*movtf_integer): Simplify using new standard_80387_constant_opcode.

	* gcc.dg/i386-387-3.c: New test case.

From-SVN: r62958
2003-02-16 01:35:38 +00:00
Geoffrey Keating
d203738b3a * doc/invoke.texi (Optimize Options): Correct @option syntax.
From-SVN: r62957
2003-02-16 01:11:41 +00:00
Geoffrey Keating
c8e5d1afc5 configure.in (*-*-darwin*): Rename from powerpc*-*-darwin*, don't configure target-libobjc.
* configure.in (*-*-darwin*): Rename from powerpc*-*-darwin*,
	don't configure target-libobjc.
	* configure: Regenerate.

From-SVN: r62956
2003-02-16 01:09:27 +00:00
Richard Henderson
0b077eace8 Makefile.in (cfglayout.o): Depend on TARGET_H.
* Makefile.in (cfglayout.o): Depend on TARGET_H.
        * cfglayout.c: Include target.h.
        (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
        * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
        * target.h (struct gcc_target): Add cannot_copy_insn_p.

        * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
        (TARGET_CANNOT_COPY_INSN_P): New.
        (override_options): Revert 2003-02-08 hack.

From-SVN: r62955
2003-02-15 16:58:29 -08:00
GCC Administrator
a7075aea58 Daily bump.
From-SVN: r62954
2003-02-16 00:17:03 +00:00
David Edelsohn
aac77ea51f - Add copyright notices.
From-SVN: r62946
2003-02-15 17:04:30 -05:00
Richard Henderson
9a71ece17f gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
* gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
        (bypass_conditional_jumps): Accept computed_jump_p insns as well.

From-SVN: r62945
2003-02-15 13:37:22 -08:00
Richard Henderson
99dc72775f bb-reorder.c (find_traces_1_round): Don't connect easy to copy successors with multiple predecessors.
* bb-reorder.c (find_traces_1_round): Don't connect easy to copy
        successors with multiple predecessors.
        (connect_traces): Try harder to copy traces of length 1.

        * function.h (struct function): Add computed_goto_common_label,
        computed_goto_common_reg.
        * function.c (free_after_compilation): Zap them.
        * stmt.c (expand_computed_goto): Use them to produce one
        indirect branch per function.

From-SVN: r62944
2003-02-15 13:22:56 -08:00
David Edelsohn
b54cf83ae6 rs6000.h (processor_type): Add PPC440.
* config/rs6000/rs6000.h (processor_type): Add PPC440.
	* config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
	TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
	TARGET_SCHED_VARIABLE_ISSUE): Define.
	(rs6000_use_dfa_pipeline_interface): New function.
	(rs6000_multipass_dfa_lookahead): New Function.
	(rs6000_variable_issue): New function.
	(rs6000_adjust_cost): Add CMP and DELAYED_CR types.
	(rs6000_issue_rate): Add PPC440.
	* config/rs6000/rs6000.md (unspec list): Correct typo.
	(attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
	store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
	cmp, delayed_cr, mfcr, mtcr.
	(automata_option): Set "ndfa".
	(extendMMNN2): Update attributes.
	(movcc_internal1): Discourage move to non-cr0.  Update
	attributes.
	(movMM_update): Update attributes.
	(cmpMM_internal): Update attributes.
	(sCC CR materialization): Update attributes.
	(branch patterns): Do not discourage non-cr0.
	(cr logical patterns): Prefer destructive register allocation.
	Update attributes.
	(movesi_from_cr): Update attribute.
	(mtcrf_operation): Update attribute.
	(mtcrfsi): Update attribute.
	* config/rs6000/40x.md: New file.
	* config/rs6000/603.md: New file.
	* config/rs6000/6xx.md: New file.
	* config/rs6000/7450.md: New file.
	* config/rs6000/7xx.md: New file.
	* config/rs6000/mpc.md: New file.
	* config/rs6000/power4.md: New file.
	* config/rs6000/rios1.md: New file.
	* config/rs6000/rios2.md: New file.
	* config/rs6000/rs64.md: New file.
	[Some DFA descriptions based on work by Michael Hayes]

From-SVN: r62943
2003-02-15 16:19:01 -05:00
Richard Henderson
5f24e0dcf6 cfgcleanup.c: Include params.h.
* cfgcleanup.c: Include params.h.
        (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
        too many outgoing edges from a block.
        * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
        * params.def (max-crossjump-edges): New.
        * doc/invoke.texi: Document it.

From-SVN: r62942
2003-02-15 13:06:16 -08:00
Richard Henderson
9381bbc998 recog.c (split_all_insns): Include new blocks in life update; do a global life update.
* recog.c (split_all_insns): Include new blocks in life update;
        do a global life update.

From-SVN: r62941
2003-02-15 13:01:48 -08:00
Nathan Sidwell
86ac05753c search.c: ANSIfy function declarations and definitions.
* search.c: ANSIfy function declarations and definitions.
	* cp-tree.h (lookup_field, lookup_member): Last parameter is a bool.
	* call.c (build_method_call, resolve_scoped_fn_name,
	build_java_interface_fn_ref): Adjust lookup_field, lookup_member
	calls.
	* class.c (handle_using_decl): Likewise.
	* decl.c (make_typename_type, make_unmound_class_template,
	start_decl, compute_array_index_type): Likewise.
	* decl2.c (build_expr_from_tree, build_call_from_tree): Likewise.
	* init.c (expand_member_init, build_member_call): Likewise.
	* pt.c (tsubst_copy, tsubst_copy_and_build, do_decl_instantiation,
	resolve_typename_type): Likewise.
	* typeck.c (lookup_destructor, finish_class_member_access_exprm
	build_prememfunc_access_expr): Likewise.

From-SVN: r62939
2003-02-15 18:03:22 +00:00
Mark Wielaard
6ff741aa6c libjava.exp (test_libjava_from_javac): Use regsub not string map.
* lib/libjava.exp (test_libjava_from_javac): Use regsub not string map.
       * libjava.mauve/mauve.exp (mauve_compute_uses): Likewise.
       (test_mauve): Likewise.

From-SVN: r62937
2003-02-15 16:39:28 +00:00
Michael Koch
c68c712ec3 2003-02-15 Michael Koch <konqueror@gmx.de>
* java/awt/datatransfer/DataFlavor.java
	(isRepresentationClassByteBuffer): Removed try-catch block.
	(isRepresentationClassCharBuffer): Removed try-catch block.
	(isRepresentationClassReader): Removed try-catch block.

From-SVN: r62935
2003-02-15 13:26:26 +00:00
Jesse Rosenstock
a59159654b 2003-02-15 Jesse Rosenstock <jmr@ugcs.caltech.edu>
* java/nio/charset/Charset.java
	(isRegistered): Fixed method args and implementation.
	* java/nio/charset/CharsetEncoder.java
	(unmappableCharacterAction): New method.

From-SVN: r62934
2003-02-15 09:39:51 +00:00
Michael Koch
30df932c23 2003-02-15 Michael Koch <konqueror@gmx.de>
* java/awt/CheckboxMenuItem.java
	(CheckBoxMenuItem): Dont implement Serializable.
	(getListeners): New method,
	(getItemListeners): New method.
	* java/awt/Choice.java
	(getListeners): New method,
	(getItemListeners): New method.
	* java/awt/Container.java
	(getListeners): Added exception documentation.
	(setFocusTraversalKeys): Throw exceptions, added documentattion.
	(getFocusTraversalKeys): Added documentation.
	(areFocusTraversalKeysSet): Added documentation.
	(applyComponentOrientation): Added documentation.
	* java/awt/ContainerOrderFocusTraversalPolicy.java
	(implicitDownCycleTraversal): Renamed from downCycle for
	serialization.
	(ContainerOrderFocusTraversalPolicy): Added documentation.
	(accept): Reformated.
	* java/awt/Dialog.java
	(Dialog): Dont implement Serializable.
	(Dialog): Added documentation.
	* java/awt/Font.java
	(Font): Dont use absolute class name.
	* java/awt/Frame.java
	(Frame): Font implement Serializable.
	* java/awt/List.java
	(getListeners): New method,
	(getActionListeners): New method.
	(getItemListeners): New method.
	* java/awt/Menu.java
	(countItems): New deprecated method.
	* java/awt/Scrollbar.java
	(getListeners): New method,
	(getAdjustmentListeners): New method,
	* java/awt/TextComponent.java
	(getListeners): New method,
	(getTextListeners): New method,
	* java/awt/TextField.java
	(getListeners): New method,
	(getActionListeners): New method.
	* java/awt/Window.java
	(windowFocusListener): New member variable.
	(windowStateListener): New member variable.
	(getWindowFocusListeners): New method.
	(getWindowStateListeners): New method.
	(addWindowFocusListener): New method.
	(addWindowStateListener): New method.
	(removeWindowFocusListener): New method.
	(removeWindowStateListener): New method.
	* java/awt/datatransfer/DataFlavor.java
	(isRepresentationClassByteBuffer): New method.
	(isRepresentationClassCharBuffer): New method.
	(isRepresentationClassReader): New method.

From-SVN: r62933
2003-02-15 09:21:55 +00:00
Danny Smith
e898926c9d mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
* config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
	Update copyright.
	* config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a, for
	-mno-cygwin case.

From-SVN: r62932
2003-02-15 04:58:22 +00:00
GCC Administrator
b62b6de0cd Daily bump.
From-SVN: r62931
2003-02-15 00:17:03 +00:00
Falk Hueffner
ce65116b73 re PR rtl-optimization/7702 (gcc-3.2 optimization problem on a DEC alpha under OSF1)
PR optimization/7702
        * reload1.c (reload_cse_simplify_set): Honor
        CANNOT_CHANGE_MODE_CLASS.

From-SVN: r62921
2003-02-14 14:23:48 -08:00
Mark Wielaard
394a76de73 libjava.exp (test_libjava_from_javac): Don't create .o files containing $ characters and always quote class files with...
* lib/libjava.exp (test_libjava_from_javac): Don't create .o files
       containing $ characters and always quote class files with "'"s.

From-SVN: r62919
2003-02-14 22:17:00 +00:00
Alexandre Oliva
fe7496dd9f mn10300.c (mn10300_wide_const_load_uses_clr): New function.
* config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
function.
* config/mn10300/mn10300-protos.h: Declare it.
* config/mn10300/mn10300.md (movdi, movdf): Use it to compute
attribute cc of instructions that may use clr.

From-SVN: r62916
2003-02-14 21:47:48 +00:00
Mark Wielaard
e4402f97c1 mauve.exp (mauve_compute_uses): Add inner class object files by changing all occurances of $ to ^.
* libjava.mauve/mauve.exp (mauve_compute_uses): Add inner class
       object files by changing all occurances of $ to ^.
       (test_mauve): Replace ^ with $ for class file names and quote
       them with "'"s.

From-SVN: r62914
2003-02-14 20:36:00 +00:00
Rainer Orth
70f91f5046 Makefile.tpl (RANLIB): Define.
* Makefile.tpl (RANLIB): Define.
	* Makefile.in: Regenerate.

From-SVN: r62913
2003-02-14 20:35:24 +00:00
Mark Wielaard
ce5b5a5e54 BigDecimal.java (BigDecimal(String)): Always set scale to zero when there is an exponent and the significant is zero.
* java/math/BigDecimal.java (BigDecimal(String)): Always set scale to
       zero when there is an exponent and the significant is zero.
       (divide): Always set scale to newScale even in special ZERO case.

From-SVN: r62908
2003-02-14 18:48:50 +00:00
Kazu Hirata
6017c7192b simplify-rtx.c (simplify_binary_operation): Simplify ~y when (x - (x & y)) is found.
* simplify-rtx.c (simplify_binary_operation): Simplify ~y when
	(x - (x & y)) is found.

From-SVN: r62906
2003-02-14 17:50:30 +00:00
Tom Tromey
b8c86c6d07 System.java (properties): Use Properties.clone.
* java/lang/System.java (properties): Use Properties.clone.
	(setProperties): Likewise.

From-SVN: r62903
2003-02-14 17:43:34 +00:00
Rainer Orth
9fb28a67cc configure.in: Fix typo.
* configure.in: Fix typo.
	* configure: Regenerate.

From-SVN: r62902
2003-02-14 17:28:55 +00:00
Kazu Hirata
60f469fa1e * config/h8300/h8300.md (a peephole2): New.
From-SVN: r62900
2003-02-14 16:22:03 +00:00
Michael Koch
b97991522d natServerSocketChannelImpl.cc: Removed.
2003-02-14  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/natServerSocketChannelImpl.cc: Removed.
	* gnu/java/nio/ServerSocketChannelImpl.java
	(SocketAccept): Removed.
	(accept): Commented out use of SocketAccept.

From-SVN: r62898
2003-02-14 12:07:31 +00:00
Josef Zlomek
6e8647d54a 20030213-1.c: Expect warning for unsupported -fpic on cris-*-elf* cris-*-aout* and mmix-*-*.
* gcc.dg/20030213-1.c: Expect warning for unsupported -fpic on
	cris-*-elf* cris-*-aout* and mmix-*-*.

From-SVN: r62896
2003-02-14 09:17:22 +00:00
Adam Nemet
8fd737543f re PR rtl-optimization/2391 (Exponential compilation time explosion in combine)
PR opt/2391
        * combine.c: Fix spelling in comment.
        (cached_nonzero_bits): New function.
        (cached_num_sign_bit_copies): New function.
	(nonzero_bits_with_known): New macro.
	(num_sign_bit_copies_with_known): New macro.
        (nonzero_bits1): Rename from nonzero_bits.  Add three new
	arguments.  Change calls from nonzero_bits to
	nonzero_bits_with_known.
        (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
	three new arguments.  Change calls from num_sign_bit_copies to
	num_sign_bit_copies_with_known.
        (nonzero_bits): New macro.
        (num_sign_bit_copies): New macro.
        (update_table_tick): Don't traverse identical subexpression more
	than once.
        (get_last_value_validate): Likewise.

From-SVN: r62893
2003-02-14 07:35:44 +00:00
Gabriel Dos Reis
fd295cb213 decl2.c: Include "timevar.h".
* decl2.c: Include "timevar.h".
	(namespace_ancestor): Time name lookup.
	(add_using_namespace): Likewise.
	(lookup_using_namespace): Likewise.
	(qualified_lookup_using_namespace): Likewise.
	(decl_namespace): Likewise.
	(lookup_arg_dependent): Likewise.
	* lex.c (do_identifier): Likewise.
	(do_scoped_id): Likewise.
	* pt.c (lookup_template_class): Likewise.

From-SVN: r62892
2003-02-14 06:04:41 +00:00
Zack Weinberg
ddb0ae00a2 emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
* emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
	* function.h (struct emit_status): Length of regno_pointer_align
	and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
	not regno_pointer_align_length (i.e. length actually used, not
	length as allocated)

	* config/i386/i386.c (struct stack_local_entry): New.
	(struct machine_function): Replace huge array with alist.
	(assign_386_stack_local): Change to match.

From-SVN: r62891
2003-02-14 05:42:30 +00:00
John David Anglin
c20b55c0cf inclhack.def (hpux_long_double): Tighten select and add bypass regexp.
* inclhack.def (hpux_long_double): Tighten select and add bypass
	regexp.
	* fixincl.x: Rebuilt.

From-SVN: r62886
2003-02-14 04:19:03 +00:00
GCC Administrator
684b92c740 Daily bump.
From-SVN: r62885
2003-02-14 00:17:06 +00:00
Tom Tromey
6f2ffb37af verify.cc (state::seen_subrs): New field.
* verify.cc (state::seen_subrs): New field.
	(state::state): Initialize it.
	(state::clean_subrs): New method.
	(state::~state): Call it.
	(state::copy): Copy subroutine list.
	(state::add_subr): New method.
	(state::merge): Only register a change if the current subroutine
	hasn't yet been noted.

From-SVN: r62878
2003-02-13 23:48:39 +00:00
Mark Wielaard
114775850c InputStreamReader.java (getEncoding): Return null when closed.
* java/io/InputStreamReader.java (getEncoding): Return null when
       closed.
       * java/io/OutputStreamWriter.java (getEncoding): Likewise.

From-SVN: r62875
2003-02-13 23:28:57 +00:00
Mark Wielaard
530ee84d75 InflaterInputStream.java (read): Return zero when len is zero.
* java/util/zip/InflaterInputStream.java (read): Return zero when len
       is zero.

From-SVN: r62872
2003-02-13 23:15:20 +00:00
Josef Zlomek
42f86c4856 Testcase for http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01017.html
Testcase for http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01017.html
	* gcc.dg/20030213-1.c: New test.

From-SVN: r62869
2003-02-13 23:05:28 +00:00
Mark Wielaard
8ad2b7a27b BufferedOutputStream.java (write(int)): Only flush when next byte cannot be buffered.
* java/io/BufferedOutputStream.java (write(int)): Only flush when
       next byte cannot be buffered.

From-SVN: r62867
2003-02-13 22:48:36 +00:00
Benjamin Kosnik
1bc8b0ad4e c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
2003-02-13  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
	* include/bits/basic_ios.tcc: Guard use of extern template.
	* include/std/std_iomanip.h: Same.
	* include/bits/streambuf.tcc: Same.
	* include/bits/stl_alloc.h: Same.
	* include/bits/locale_facets.tcc: Same.
	* include/bits/ostream.tcc: Same.
	* include/bits/istream.tcc: Same.
	* include/bits/fstream.tcc: Same.
	* include/bits/basic_string.tcc: Same.

From-SVN: r62865
2003-02-13 21:39:03 +00:00