Commit Graph

32576 Commits

Author SHA1 Message Date
Jeff Law
d40fb37362 Daily bump.
From-SVN: r38529
2000-12-29 01:45:07 -07:00
Alexandre Oliva
f523247a94 function.c (assign_parms): Convert arguments passed by reference to the right mode.
* function.c (assign_parms): Convert arguments passed by
reference to the right mode.

From-SVN: r38528
2000-12-29 08:38:19 +00:00
Geoffrey Keating
fb8b656c65 c-parse.in (select_or_iter_stmt): Use truthvalue_conversion on the condition of a FOR statement...
2000-12-28  Geoffrey Keating  <geoffk@redhat.com>

	* c-parse.in (select_or_iter_stmt): Use truthvalue_conversion
	on the condition of a FOR statement, so that it gets typechecked
	and optimised.

2000-12-28  Geoffrey Keating  <geoffk@redhat.com>

	* gcc.dg/noncompile/20001228-1.c: New test.

From-SVN: r38527
2000-12-29 08:27:40 +00:00
Alexandre Oliva
6894017546 c-decl.c (grokdeclarator): Prevent crash in case of overflow in array size.
* c-decl.c (grokdeclarator): Prevent crash in case of overflow in
array size.

From-SVN: r38526
2000-12-29 08:03:56 +00:00
Mark Mitchell
7e7d951756 Add comment
From-SVN: r38525
2000-12-29 06:09:44 +00:00
Mark Mitchell
414ea4aa86 pt.c (register_local_specialization): Don't return a value.
* pt.c (register_local_specialization): Don't return a value.
	(lookup_template_class): Use move-to-front heuristic when looking
	up template instantiations.
	(instantiate_decl): Only push_to_top_level when we're actually
	going to instantiate the template.

From-SVN: r38524
2000-12-29 06:08:00 +00:00
Alexandre Oliva
6b5273c31e calls.c (emit_library_call_value_1): Add to call_fusage the stack slot assigned to argument passed by reference.
* calls.c (emit_library_call_value_1): Add to call_fusage the
stack slot assigned to argument passed by reference.

From-SVN: r38523
2000-12-29 04:36:00 +00:00
Hans-Peter Nilsson
cd372c39a8 * g++.dg/vtgc1.C: New test.
From-SVN: r38522
2000-12-29 02:57:08 +00:00
Hans-Peter Nilsson
6f18f7e9b7 search.c (binfo_for_vtable): Return least derived class, not most.
* search.c (binfo_for_vtable): Return least derived class, not
	most.  Handle secondary vtables.

From-SVN: r38521
2000-12-29 02:41:05 +00:00
Jeffrey Oldham
328a8516f5 toplev.h (extern really_sorry): Remove extern declaration for nonexistent function.
2000-12-28  Jeffrey Oldham  <oldham@codesourcery.com>

	* toplev.h (extern really_sorry): Remove extern declaration for
        nonexistent function.

From-SVN: r38520
2000-12-29 01:45:53 +00:00
Geoffrey Keating
3ba35c91c1 Alan forgot his name...
From-SVN: r38519
2000-12-28 23:58:29 +00:00
Geoffrey Keating
f33f0c3a01 * gcc.dg/20001228-1.c: New test.
From-SVN: r38518
2000-12-28 23:56:49 +00:00
Geoffrey Keating
bc5137ae0f * gcc.c-torture/execute/20001228-1.c: New test.
From-SVN: r38517
2000-12-28 23:50:38 +00:00
Jeff Sturm
4c58589f1a DriverManager.java (getConnection): Don't set user/password properties if null.
2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>

	* java/sql/DriverManager.java (getConnection): Don't set
	user/password properties if null.

From-SVN: r38516
2000-12-28 22:21:36 +00:00
Robert Lipe
347d73aac2 jartool.c (MAXPATHLEN): Provide if not defined.
2000-12-28  Robert Lipe <robertl@sco.com>

        * jartool.c (MAXPATHLEN): Provide if not defined.

From-SVN: r38515
2000-12-28 21:47:37 +00:00
Jeffrey Oldham
212addfac7 varasm.c (initializer_constant_valid_p): Indicate subtraction of pointers to the same string constant is absolute.
2000-12-28  Jeffrey Oldham  <oldham@codesourcery.com>

	* varasm.c (initializer_constant_valid_p): Indicate subtraction of
	pointers to the same string constant is absolute.

From-SVN: r38514
2000-12-28 19:35:56 +00:00
Jeffrey Oldham
5da01bc1fb test_summary: Export filesuffix, not fileprefix.
2000-12-28  Jeffrey Oldham  <oldham@codesourcery.com>

	* test_summary: Export filesuffix, not fileprefix.

From-SVN: r38513
2000-12-28 19:28:11 +00:00
Joseph Myers
26f6672d2e c-common.c (enum format_type): Add strfmon_format_type.
* c-common.c (enum format_type): Add strfmon_format_type.
	(decl_attributes): Handle format attributes strfmon and
	__strfmon__.
	(FMT_FLAG_USE_DOLLAR, FMT_FLAG_ZERO_WIDTH_BAD,
	FMT_FLAG_EMPTY_PREC_OK): Define.
	(format_char_info): Update comment for flag_chars.
	(format_flag_spec): Add skip_next_char.
	(format_kind_info): Add left_precision_char.
	(printf_flag_specs, scanf_flag_specs, strftime_flag_specs,
	format_types): Update for these new structure members and flags.
	(time_char_table): Make const.
	(strfmon_length_specs, strfmon_flag_specs, strfmon_flag_pairs,
	monetary_char_table): New.
	(format_types): Add details of strfmon formats.
	(init_function_format_info): Create default attribute for strfmon.
	(check_format_info_main): Check the new flags.  Handle
	skip_next_char and left precision.
	* toplev.c (documented_lang_options): Update description of
	-Wformat.
	* extend.texi: Document strfmon format attributes.  Document
	attribute forms such as __printf__.  Clarify format_arg attribute
	documentation.
	* invoke.texi (-Wformat): Update for strfmon formats.

testsuite:
	* gcc.dg/format-strfmon-1.c: New test.

From-SVN: r38512
2000-12-28 18:48:05 +00:00
Andreas Jaeger
df7978d9b7 expmed.c (store_bit_field): Fix last patch.
2000-12-28  Andreas Jaeger  <aj@suse.de>

	* expmed.c (store_bit_field): Fix last patch.

From-SVN: r38511
2000-12-28 09:51:59 +01:00
Alexandre Oliva
78362efbc6 crt1.asm (start_l): __SH4_SINGLE_ONLY__' was missing the trailing __'.
* config/sh/crt1.asm (start_l): `__SH4_SINGLE_ONLY__' was missing
the trailing `__'.

From-SVN: r38510
2000-12-28 08:47:14 +00:00
Jeff Law
1e2677023f Daily bump.
From-SVN: r38509
2000-12-28 01:45:15 -07:00
Warren Levy
ed55bdc47f re PR libgcj/1358 (java.util.Date.toString() doesn't seem to behave properly.)
Fix for PR libgcj/1358:
	* java/lang/System.java: Update Copyright date properly.
	* java/util/Calendar.java: Fix typo in comment.
	(set): Set 24-hour clock hour instead of 12-hour clock hour.
	* java/util/GregorianCalendar.java (GregorianCalendar): Properly
	initialize times.  Spec says to set H:M:S values to zero only if
	a date is given.
	* java/util/TimeZone.java (getDefaultDisplayName): Casts to char
	needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
	* java/util/natGregorianCalendar.cc (computeTime): Properly handle
	timezones and GMT offsets, being careful to account for units of
	milliseconds vs. seconds.

From-SVN: r38508
2000-12-28 05:55:56 +00:00
Alan Lehotsky
5da1e2c489 expmed.c (store_bit_field): Correctly compute smallest mode that is sufficient to contain all bits we are...
* expmed.c (store_bit_field): Correctly compute smallest mode that
	is sufficient to contain all bits we are storing.

From-SVN: r38507
2000-12-28 00:55:03 -05:00
Bryce McKinlay
6147e9d0c9 re PR libgcj/1516 (Method.invoke won't accept boolean parameters)
Fix for PR libgcj/1516:
	* java/lang/reflect/natMethod.cc (primitives): Remove void entry.
	Add boolean entry.
	(can_widen): Declared inline. Remove redundant checks for void
	arguments and char->short conversion. Add special case for boolean
	conversions.
	(ffi_type): Declared inline.
	(_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.

From-SVN: r38506
2000-12-28 04:34:33 +00:00
Bryce McKinlay
867e24ad3d natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can not be assigned to Object.
* java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
	not be assigned to Object.

From-SVN: r38505
2000-12-28 04:33:53 +00:00
Kaveh R. Ghazi
6385a28ffb builtins.c (build_function_call_expr): New function.
* builtins.c (build_function_call_expr): New function.  Use it
	everywhere in lieu of manually constructing a CALL_EXPR.

From-SVN: r38504
2000-12-28 02:45:37 +00:00
Chandrakala Chavva
57ec470999 calls.c (store_one_arg): If parm is passed both in stack and in register and offset is greater than...
* calls.c (store_one_arg):  If parm is passed both in stack and in
        register and offset is greater than reg_parm_stack_space, split
        the offset and call emit_push_insn().

From-SVN: r38503
2000-12-27 20:51:55 -05:00
Ben Elliston
bc53668ead * MAINTAINERS: Add myself under ``Write After Approval''.
From-SVN: r38502
2000-12-28 09:00:13 +11:00
Nick Clifton
37f25cb9ae Handle jump insns that are PARALLEL.
From-SVN: r38501
2000-12-27 18:22:51 +00:00
Alexandre Oliva
715e2ab149 rtl.c (copy_most_rtx, [...]): Copy frame_related flag.
* rtl.c (copy_most_rtx, shallow_copy_rtx): Copy frame_related
flag.

From-SVN: r38500
2000-12-27 16:35:00 +00:00
Bruce Korb
46159c151d "test" is better at testing for directories than "ls"
From-SVN: r38499
2000-12-27 15:46:42 +00:00
Bruce Korb
47986760dd accommodate ancient bourne shells
From-SVN: r38498
2000-12-27 15:40:02 +00:00
Kaveh R. Ghazi
ce94d12f67 stdio-opt-1.c: Test __builtin_ style too.
* gcc.c-torture/execute/stdio-opt-1.c: Test __builtin_ style too.
	* gcc.c-torture/execute/stdio-opt-2.c: Likewise.
	* gcc.c-torture/execute/string-opt-1.c: Likewise.
	* gcc.c-torture/execute/string-opt-2.c: Likewise.
	* gcc.c-torture/execute/string-opt-3.c: Likewise.
	* gcc.c-torture/execute/string-opt-4.c: Likewise.
	* gcc.c-torture/execute/string-opt-6.c: Likewise.
	* gcc.c-torture/execute/string-opt-7.c: Likewise.
	* gcc.c-torture/execute/string-opt-8.c: Likewise.
	* gcc.c-torture/execute/string-opt-9.c: Likewise.
	* gcc.c-torture/execute/string-opt-10.c: Likewise.
	* gcc.c-torture/execute/string-opt-11.c: Likewise.
	* gcc.c-torture/execute/string-opt-12.c: Likewise.

	* gcc.c-torture/execute/string-opt-3.c: Test rindex.
	* gcc.c-torture/execute/string-opt-4.c: Test index.

From-SVN: r38497
2000-12-27 15:29:52 +00:00
Bernd Schmidt
0a1bb917fc Avoid unnecessary dependencies on COND_EXEC insns.
From-SVN: r38496
2000-12-27 12:55:16 +00:00
Geoffrey Keating
6cbadf36b2 [multiple changes]
2000-12-27  Geoffrey Keating  <geoffk@redhat.com>

	* config/rs6000/rs6000.md (define_attr "length"): Correct
	calculation.

2000-12-26  Geoffrey Keating  <geoffk@redhat.com>

	* gcc.c-torture/compile/20001226-1.c: New test.

From-SVN: r38495
2000-12-27 11:01:03 +00:00
Jeff Law
b370937715 Daily bump.
From-SVN: r38494
2000-12-27 01:45:09 -07:00
Petter Reinholdtsen
c4f58426c1 SQLWarning.java: Fixed typo in comment.
2000-12-26  Petter Reinholdtsen  <pere@hungry.com>

	* java/sql/SQLWarning.java: Fixed typo in comment.

From-SVN: r38493
2000-12-27 01:58:23 +00:00
Michael Sokolov
dac45916f0 bsearch.c: New file.
* bsearch.c: New file.
* configure.in (funcs): Add bsearch.
(AC_CHECK_FUNCS): Likewise.
* configure, config.in: Regenerate.

From-SVN: r38492
2000-12-26 17:16:22 -05:00
Kazu Hirata
3e39bdb96a h8300.c: Fix a comment typo.
2000-12-26  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.c: Fix a comment typo.
	(get_shift_alg): Do not output extra whitespace after one line
	of assembly code.  Output a tab after an opcode instead of a
	space.
	(emit_a_shift): Output a tab after an opcode instead of a space.

From-SVN: r38491
2000-12-26 18:14:54 +00:00
Kazu Hirata
a3027199a5 h8300.c (get_shift_alg): Fix a typo in the assembly code for 12-bit ASHIFTRT in HImode.
2000-12-26  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.c (get_shift_alg): Fix a typo in the assembly
	code for 12-bit ASHIFTRT in HImode.

From-SVN: r38490
2000-12-26 17:54:45 +00:00
Jeff Law
e8f15a94c8 Daily bump.
From-SVN: r38489
2000-12-26 01:45:07 -07:00
Tom Tromey
b3b90f82f4 MenuItem.java (paramString): Now protected.
* java/awt/MenuItem.java (paramString): Now protected.

	* java/awt/MenuShortcut.java: Implements Serializable.

	* java/awt/MenuBar.java: Rewrote from scratch.

	* java/awt/MenuComponent.java (removeNotify): Wrote.
	Implements Serializable.

	* java/awt/GridBagConstraints.java (GridBagConstraints): New
	constructor.

	* java/awt/CheckboxMenuItem.java: Wrote.

From-SVN: r38488
2000-12-26 07:18:16 +00:00
Tom Tromey
5472d1951a MenuContainer.java: Fixed typo.
* java/awt/MenuContainer.java: Fixed typo.

	* Makefile.in: Rebuilt.
	* Makefile.am (awt_java_source_files): Added SystemColor.java.
	* java/awt/SystemColor.java: New file.

	* java/awt/Color.java (rgba): Now package-private.

	* java/awt/event/InputEvent.java (isAltGraphDown): New method.

	* java/awt/event/ContainerEvent.java (getContainer): Renamed from
	getComponent.

	* java/awt/MenuItem.java (addNotify): New method.
	(MenuItem(String,MenuShortcut)): New constructor.
	(setLabel): Notify peer of change.
	(setEnabled): Likewise.

	* java/awt/GridLayout.java (toString): New method.

	* java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
	(FlowLayout): Check for LEADING and TRAILING.
	(setAlignment): Likewise.
	(layoutContainer): Handle component orientation.

	* java/awt/Component.java (orientatin): New field.
	(setComponentOrientation): Wrote.
	(getComponentOrientation): Wrote.

	* java/awt/Event.java (Event): Implements Serializable.
	(consumed): New field for serialization.
	* java/awt/Dimension.java (Dimension): Implements Serializable.
	* java/awt/Cursor.java (Cursor): Implements Serializable.
	* java/awt/Container.java (Container): No longer abstract.

	* java/awt/Choice.java: Wrote.
	* java/awt/Checkbox.java: Wrote.
	* java/awt/ItemSelectable.java: Documented.
	* java/awt/CheckboxGroup.java: Wrote.

	* java/awt/CardLayout.java (layoutContainer): Directly use fields
	in other classes.
	(getSize): Likewise.

From-SVN: r38486
2000-12-26 00:25:13 +00:00
Jeff Sturm
83050e0d93 FileDescriptor.java: Initialize fd to -1.
2000-12-24  Jeff Sturm  <jeff.sturm@commerceone.com>

	* java/io/FileDescriptor.java: Initialize fd to -1.
	Remove default constructor.

From-SVN: r38485
2000-12-26 00:24:01 +00:00
Jeff Law
9a1a15c926 Daily bump.
From-SVN: r38484
2000-12-25 01:45:07 -07:00
Jeff Law
88d1747717 Daily bump.
From-SVN: r38483
2000-12-24 01:45:08 -07:00
Bryce McKinlay
d27fd99a03 Shorten primitive array allocation path:
* decl.c (init_decl_processing): Use _Jv_NewPrimArray not _Jv_NewArray
        to create new primitive arrays.
        * expr.c (build_newarray): If generating native code, call
        soft_newarray_node with a reference to the primitive TYPE identifier
        instead of type_value.

From-SVN: r38482
2000-12-24 00:43:40 +00:00
Joseph Myers
93b0dee779 * java/lang/mprec.h: Change C9X reference to refer to C99.
From-SVN: r38481
2000-12-23 23:38:51 +00:00
Marek Michalkiewicz
33d5e2dcda avr.c (out_movqi_r_mr, [...]): Use %o instead of %4 in output templates...
* config/avr/avr.c (out_movqi_r_mr, out_movhi_r_mr, out_movsi_r_mr,
	out_movsi_mr_r, out_movqi_mr_r, out_movhi_mr_r): Use %o instead of
	%4 in output templates, do not modify operands passed by the caller.

From-SVN: r38480
2000-12-23 22:58:17 +03:00
Jason Merrill
dee75dd556 xfail
From-SVN: r38479
2000-12-23 05:32:15 -05:00