Commit Graph

53828 Commits

Author SHA1 Message Date
Paolo Carlini cc27f5a21c locale_facets.tcc (time_get::_M_extract_num): Absolutely avoid dereferencing end iterators.
2003-10-28  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (time_get::_M_extract_num):
	Absolutely avoid dereferencing end iterators.
	(time_get::_M_extract_name): Likewise.

	* include/bits/locale_facets.tcc
	(time_get::_M_extract_via_format, case 'e'): Don't try to
	be smart wrt returning the right __beg in case of parse
	error, time_get::_M_extract_num must be fixed instead.

From-SVN: r73004
2003-10-28 12:23:31 +00:00
Richard Earnshaw 699a49253d arm.c (arm_output_epilogue): When using a frame pointer...
* arm.c (arm_output_epilogue): When using a frame pointer, don't emit
an extra stack adjustment insn if the stack pointer is already
pointing at the right place.
(use_return_insn): Allow a return insn to be used when we have a
frame pointer if the stack pointer is in the right place.
(output_return_instruction): Handle it.

From-SVN: r73003
2003-10-28 09:47:45 +00:00
Andreas Jaeger 578e817091 ggc-zone.c (check_cookies): Add missing variable.
* ggc-zone.c (check_cookies): Add missing variable.
	Add void to prototypes.

From-SVN: r73000
2003-10-28 08:43:11 +01:00
Kaveh R. Ghazi 525996eb67 irix6-libc-compat.c (inet_makeaddr): Prototype.
* config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
	* crtstuff.c (__do_global_ctors_1): Move prototype.
	* unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
	appropriate.
	* unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
	Mark parameter with __attribute__((unused)).

From-SVN: r72999
2003-10-28 03:47:37 +00:00
Zack Weinberg 40fe4dd5a8 * c-decl.c (pushdecl): Clarify comment.
From-SVN: r72998
2003-10-28 01:05:12 +00:00
GCC Administrator f4d0b3d4fd Daily bump.
From-SVN: r72996
2003-10-28 00:16:07 +00:00
Paolo Carlini 0c6b814ac9 re PR libstdc++/12778 (1022 bootstrap failure building libstdc++-v3/src/basic_file.cc)
2003-10-27  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/12778
	* acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

From-SVN: r72994
2003-10-27 23:11:52 +00:00
Benjamin Kosnik 0f09879bd2 TODO: Add links.
2003-10-27  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/html/17_intro/TODO: Add links.
	* testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
	Uncomment.

From-SVN: r72991
2003-10-27 21:43:33 +00:00
Paolo Carlini f20d2b7871 re PR libstdc++/12750 (time_get::_M_extract_via_format doesn't deal with 'e')
2003-10-27  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/12750
	* include/bits/locale_facets.tcc
	(time_get::_M_extract_via_format): Deal with code 'e'.
	* testsuite/22_locale/time_get/get_date/char/12750.cc: New.
	* testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.

	* include/bits/locale_facets.tcc
	(time_get::_M_extract_via_format): Tweak to absolutely avoid
	dereferencing end iterators.

	* include/bits/locale_facets.h (__verify_grouping):
	Const-ify second parameter.
	* include/bits/locale_facets.tcc (__verify_grouping): Ditto.
	* src/locale-inst.cc (__verify_grouping): Ditto.

2003-10-27  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get::_M_extract_float):
	Various things: 1- Avoid absolutely end iterator dereferences;
	2- Improve performance-wise the code skipping leading zeros;
	3- Fix two bugs wrt early bail out in case of parsing errors
	(see testcases); 4- General clean up.
	(num_get::_M_extract_int): Likewise, except 3-. Additionally,
	use __builtin_expect to favor base 10 inputs.
	* testsuite/22_locale/num_get/get/char/7.cc: New.
	* testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.

From-SVN: r72987
2003-10-27 16:21:14 +00:00
Arnaud Charlet 436d77152e * doc/install.texi: Update instructions for Ada cross builds
From-SVN: r72986
2003-10-27 16:35:26 +01:00
Arnaud Charlet 934ef487f3 * README.ada: Removed, integrated in ../doc/sourcebuild.texi
From-SVN: r72985
2003-10-27 15:56:06 +01:00
Arnaud Charlet d0a74d7e1d re PR ada/5909 (Ada has no test suite.)
PR ada/5909:
	* doc/sourcebuild.texi: Document Ada test suite.

From-SVN: r72984
2003-10-27 15:51:26 +01:00
Arnaud Charlet ecad994dd1 re PR ada/5909 (Ada has no test suite.)
* Makefile.generic: Add missing substitution on object_deps handling.

	PR ada/5909:
	* Make-lang.in (check-ada): Enable ACATS test suite.

	* exp_ch3.adb:
	(Freeze_Array_Type): We do not need an initialization routine for types
	derived from String or Wide_String. They should be treated the same
	as String and Wide_String themselves. This caused problems with the
	use of Initialize_Scalars.

	* exp_ch5.adb:
	(Expand_Assign_Record): Do component-wise assignment of non-byte aligned
	composites. This allows use of component clauses that are not byte
	aligned.

	* sem_prag.adb:
	(Analyze_Pragma, case Pack): Generate warning and ignore pack if there
	is an attempt to pack an array of atomic objects.

	* make.adb, prj-env.adb, prj-env.ads: Minor reformatting

	* g-dirope.adb:
	(Basename): Check for drive letters in a pathname only on DOS based OS.

	* make.adb:
	(Gnatmake): When unable to change dir to the object dir, display the
	content of the parent dir of the obj dir, to try to understand why this
	happens.

	* Make-lang.in: Makefile automatically updated

	* sem_ch12.adb:
	(Inline_Instance_Body): Indicate that the save/restore of use_clauses
	should not be done in Save/Restore_Scope_Stack, because it is performed
	locally.

	* sem_ch8.adb:
	(Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
	whether use clauses should be removed/restored.

	* sem_ch8.ads:
	(Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
	whether use clauses should be removed/restored.

From-SVN: r72983
2003-10-27 15:27:17 +01:00
Stephane Carrez e1ffc70a2d m68hc11.c: Convert to ISO C90.
* config/m68hc11/m68hc11.c: Convert to ISO C90.
	* config/m68hc11/m68hc11-protos.h: Likewise.

From-SVN: r72981
2003-10-27 13:26:19 +01:00
Eric Botcazou 65b193498b Added my e-mail address.
From-SVN: r72980
2003-10-27 12:23:02 +00:00
Jan Hubicka aa888d0f03 toplev.c (enum dump_file_index, dump_file): Fix ordering of webizer pass dump.
* toplev.c (enum dump_file_index, dump_file):  Fix ordering of
	webizer pass dump.

From-SVN: r72979
2003-10-27 12:05:11 +00:00
Arnaud Charlet c011a52f85 re PR ada/5909 (Ada has no test suite.)
PR ada/5909:
	* README.ada, ada/acats: Import ACATS 2.5 for GCC Ada test suite.

From-SVN: r72978
2003-10-27 12:32:59 +01:00
Arnaud Charlet 8d39e92bc3 re PR ada/5909 (Ada has no test suite.)
PR ada/5909:
Import ACATS 2.5 for GCC Ada test suite.

From-SVN: r72977
2003-10-27 12:29:00 +01:00
Mark Wielaard 57b4edef7d Reported by Helmer Kraemer <hkraemer@freenet.de>
Reported by Helmer Kraemer <hkraemer@freenet.de>
       * java/util/jar/JarInputStream.java (readManifest): Don't call
       closeEntry().

       * java/util/zip/DeflaterOutputStream.java (inbufWrite): New method.
       (finish): Use inbufWrite().
       (write(int)): Likewise.
       (write(byte[],int,int)): Likewise.

From-SVN: r72976
2003-10-27 11:02:44 +00:00
Jakub Jelinek b19ee4bd24 reload1.c (struct elim_table): Change offset, initial_offset and previous_offset fields to HOST_WIDE_INT.
* reload1.c (struct elim_table): Change offset, initial_offset and
	previous_offset fields to HOST_WIDE_INT.
	(offsets_at): Change from int to HOST_WIDE_INT.
	(reload): Adjust offsets_at initialization.
	(eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
	(verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
	* config/i386/i386.c (ix86_compute_frame_layout): Change offset type
	to HOST_WIDE_INT.  Don't save regs using mov for huge frame sizes
	if TARGET_64BIT.
	(pro_epilogue_adjust_stack): New function.
	(ix86_expand_prologue, ix86_expand_epilogue): Use it.
	* config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
	(pro_epilogue_adjust_stack_1): Remove * in front of name.
	(pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
	(pro_epilogue_adjust_stack_rex64_2): New insn.

	* config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.

	* config/i386/i386.c (ix86_expand_call): Replace 40 with
	FIRST_REX_INT_REG + 3 /* R11 */.

	* gcc.c-torture/compile/20031023-1.c: New test.
	* gcc.c-torture/compile/20031023-2.c: New test.
	* gcc.c-torture/compile/20031023-3.c: New test.
	* gcc.c-torture/compile/20031023-4.c: New test.

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

From-SVN: r72975
2003-10-27 11:52:48 +01:00
Richard Henderson 501e79efe7 alpha.md (attr cannot_copy): New.
* config/alpha/alpha.md (attr cannot_copy): New.
        (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
        prologue_ldgp_er_2, prologue_ldgp_1): Set it.
        * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.

From-SVN: r72974
2003-10-26 22:49:41 -08:00
Mark Mitchell 40f781eb84 Remove incorrect entry
From-SVN: r72973
2003-10-27 06:40:55 +00:00
Daniel Berlin b6f611637e ggc-zone.c: New file, zone allocating collector.
2003-10-26  Daniel Berlin  <dberlin@dberlin.org>

	* ggc-zone.c:  New file, zone allocating collector.
	* configure: Accept zone option for --with-gc
	* configure.in: Ditto.
	* ggc.h (ggc_pch_count_object): Pass bool indicating
	stringiness. Update all callers.
	(ggc_pch_alloc_object): Ditto.
	(ggc_pch_write_object): Ditto.
	(ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
	type.
	(ggc_alloc_rtvec): Ditto.
	(ggc_alloc_tree): Use zone allocation, since some things using this macro
	aren't a single typecode.
	* ggc-none.c (ggc_alloc_typed): New function.
	(ggc_alloc_zone): Ditto.
	* ggc-page.c: Ditto on both functions.

From-SVN: r72971
2003-10-27 00:26:52 +00:00
GCC Administrator 60b6a81550 Daily bump.
From-SVN: r72969
2003-10-27 00:16:37 +00:00
Gunther Nikl 5704768051 m68k.c (m68k_compute_frame_layout): Ensure FPU related frame information is always valid.
* config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
	frame information is always valid.
	(m68k_output_function_prologue): Remove superfluous TARGET_68881
	test; fix formatting.

From-SVN: r72965
2003-10-26 23:19:25 +01:00
Gunther Nikl 8580250412 m68k.c (m68k_compute_frame_layout): Swap reg_mask and reg_rev_mask computation.
* config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
	reg_rev_mask computation.
	(m68k_output_function_prologue): Fix usage of current_frame (one typo
	and one missing); use reg_rev_mask not reg_mask.
	(m68k_output_function_epilogue): Fix usage of current_frame;
	use fpu_rev_mask not fpu_mask.

From-SVN: r72964
2003-10-26 23:08:07 +01:00
Bernardo Innocenti a89e3f2128 m68k.c (m68k_output_function_prologue): Eliminate num_saved_regs, use current_frame.reg_no instead.
* config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
	num_saved_regs, use current_frame.reg_no instead.

From-SVN: r72963
2003-10-26 23:02:05 +01:00
Bernardo Innocenti 24f9c4df33 extend.texi (interrupt_handler): Add m68k to the list of processors implementing it.
* doc/extend.texi (interrupt_handler): Add m68k to the
	list of processors implementing it.
	* doc/invoke.texi (-msep-data): Document new m68k option.
	(-mno-sep-data): Likewise.
	(-mid-shared-library): Likewise.
	(-mno-id-shared-library): Likewise.
	(-mshared-library-id): Likewise.

Co-Authored-By: Paul Dale <pauli@snapgear.com>

From-SVN: r72962
2003-10-26 20:03:43 +01:00
Andreas Jaeger 36f9cf4ada unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned comparison.
* unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
	comparison.
	(_Unwind_SetGR): Likewise.

From-SVN: r72960
2003-10-26 19:06:11 +01:00
Andreas Jaeger 9f6e5a8c5b Add ChangeLog mark.
From-SVN: r72957
2003-10-26 17:24:58 +01:00
Andreas Jaeger 8870499634 mmintrin.h (_mm_set1_pi8): Fix comment.
2003-10-26  Ottavio Campana <ottavio@campana.vi.it>

	* config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.

From-SVN: r72956
2003-10-26 17:18:31 +01:00
Gunther Nikl 97c5509198 m68k.c (m68k_output_function_prologue): Move front comment from here to...
* config/m68k/m68k.c (m68k_output_function_prologue): Move front
	comment from here to...
	(m68k_save_reg): ...here. Fix comment formatting.
	(m68k_output_function_prologue): Fix comment formatting.
	(m68k_output_function_epilogue): Likewise.
	(const_method): Likewise.

From-SVN: r72954
2003-10-26 17:03:21 +01:00
Kazu Hirata b36c208a36 toplev.c (default_get_pch_validity): Guard the use of target_options with #ifdef TARGET_OPTIONS.
* toplev.c (default_get_pch_validity): Guard the use of
	target_options with #ifdef TARGET_OPTIONS.
	(default_pch_valid_p): Likewise.

From-SVN: r72953
2003-10-26 15:40:14 +00:00
Andreas Jaeger b6b3c13865 * Makefile.in: Remove duplicated lines.
From-SVN: r72952
2003-10-26 15:53:53 +01:00
Joseph Myers 43a936179e * nl.po: Update.
From-SVN: r72951
2003-10-26 11:19:49 +00:00
Kriang Lerdsuwanakij 58e1d54ce9 re PR c++/10371 (misleading error message for illegal member access)
PR c++/10371
	* semantics.c (finish_non_static_data_member): Handle when
	both processing_template_decl and qualifying_scope are true.

	* g++.dg/lookup/scoped8.C: New test.

From-SVN: r72950
2003-10-26 11:04:36 +00:00
Paolo Carlini f883c8dce3 1.cc: Clean up.
2003-10-26  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/22_locale/money_put/put/char/1.cc: Clean up.
	* testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.

From-SVN: r72949
2003-10-26 10:33:30 +00:00
Andreas Jaeger 38f9cd4cac dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
2003-10-26  Andreas Jaeger  <aj@suse.de>
	    Zack Weinberg  <zack@codesourcery.com>
	    Andreas Tobler <toa@pop.agri.ch>

	* dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
	(output_die): Likewise.
	(print_die): Likewise.

Co-Authored-By: Andreas Tobler <toa@pop.agri.ch>
Co-Authored-By: Zack Weinberg <zack@codesourcery.com>

From-SVN: r72948
2003-10-26 11:17:38 +01:00
Andreas Jaeger 0ab5b679d9 tree.h (dwarf2out_def_cfa, [...]): Update prototypes for recent dwarf2out.c change.
* tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
	dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
	dwarf2out.c change.

From-SVN: r72946
2003-10-26 09:31:11 +01:00
Andreas Jaeger d7d4cd78a1 * toplev.c (default_pch_valid_p): Fix warning.
From-SVN: r72945
2003-10-26 07:47:17 +01:00
Bryce McKinlay 12afcb31e5 * java/util/TreeMap.java: Doc fixes. HashMap -> TreeMap.
From-SVN: r72944
2003-10-26 02:48:31 +00:00
Bryce McKinlay e0f23fcd49 AccessibleObject.java (secureSetAccessible): Don't check for AccessibleObject.
* java/lang/reflect/AccessibleObject.java (secureSetAccessible):
	Don't check for AccessibleObject. Update javadocs.

From-SVN: r72943
2003-10-26 02:28:45 +00:00
Bryce McKinlay b9b5672b49 Constructor.java (toString): Avoid extra whitespace on constructor with no modifiers.
2003-10-26  Bryce McKinlay  <bryce@mckinlay.net.nz>

	* java/lang/reflect/Constructor.java (toString): Avoid extra
	whitespace on constructor with no modifiers.
	* java/lang/reflect/natConstructor.java (newInstance): Look up
	caller and perform accessibility check only if constructor is
	non-public and accessible flag is not set.

2003-10-26  Bryce McKinlay  <bryce@mckinlay.net.nz>

	* jni.cc (_Jv_JNI_CallAnyMethodV, _Jv_JNI_CallAnyMethodA,
	_Jv_JNI_CallAnyVoidMethodV, _Jv_JNI_CallAnyVoidMethodA): Don't
	use _Jv_LookupDeclaredMethod(). Call _Jv_CallAnyMethodA with
	is_virtual_call argument.
	* include/jvm.h (_Jv_isVirtualMethod): Moved and renamed from
	natClass.cc.
	* java/lang/natClass.cc (_Jv_LayoutVTableMethods): Use
	_Jv_isVirtualMethod.
	* java/lang/reflect/natMethod.cc (invoke): Don't use
	_Jv_LookupDeclaredMethod.
	(_Jv_CallAnyMethodA): New is_virtual_call argument. If specified,
	look up method in target object's vtable.

From-SVN: r72942
2003-10-26 02:25:42 +00:00
Roger Sayle 077a148bf5 simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate RTL nodes.
* simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
	RTL nodes.  If an operator's operands are unchanged, return the
	original argument unchanged.

From-SVN: r72941
2003-10-26 01:31:02 +00:00
GCC Administrator 6cadb6e375 Daily bump.
From-SVN: r72939
2003-10-26 00:16:07 +00:00
Graham Stott 81bfdfbee7 Fix bootstrap failure.
* expmed.c (store_bit_field): Don't compare bitsize against
       modes with zero bit-size.

       (extract_bit_field): Likewise

From-SVN: r72937
2003-10-25 23:14:14 +00:00
Joseph Myers b97e55dac0 be.po, [...]: Update.
* be.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po, sv.po,
	tr.po: Update.
	* gcc.pot: Regenerate.

From-SVN: r72936
2003-10-25 22:41:53 +01:00
Jan Hubicka 799f628aea dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
* dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
	(cfa_loc): Likewise.
	(reg_save, stack_adjust_offset, queue_reg_save): Replace long by
	HOST_WIDE_INT.
	(args_size, old_args_size): change type to HOST_WIDE_INT.
	(dwarf2out_def_cfa, dwarf2out_args_size,
	dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
	(dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
	(add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
	AT_offset): Use HOST_WIDE_INT.
	(based_loc_descr): offset is HOST_WIDE_INT.
	(add_data_member): Likewise.
	(add_const_value_attribute): Simplify.

From-SVN: r72935
2003-10-25 21:32:02 +00:00
Richard Henderson fe9f516f68 i386.c (ix86_eax_live_at_start_p): New.
* config/i386/i386.c (ix86_eax_live_at_start_p): New.
        (ix86_expand_prologue): Save and restore eax around stack probe
        if it's live.

From-SVN: r72933
2003-10-25 12:42:39 -07:00
Bruce Korb e54918abd4 Results are re-alphabetized, too
From-SVN: r72932
2003-10-25 18:45:39 +00:00