Commit Graph

55391 Commits

Author SHA1 Message Date
Zack Weinberg
d4968a1116 c-decl.c (diagnose_arglist_conflict): Add missing space to diagnostic messages.
* c-decl.c (diagnose_arglist_conflict): Add missing space to
	diagnostic messages.

From-SVN: r75691
2004-01-11 22:40:47 +00:00
Zack Weinberg
70adfc365c * gcc.dg/tls/diag-3.c: Tweak dg-error regexp.
From-SVN: r75690
2004-01-11 22:35:15 +00:00
Ian Lance Taylor
9b913b0302 re PR c++/3478 (Accepts invalid "enum typename")
PR c++/3478
	* g++.dg/parse/error10.C: New test.
	* g++.dg/template/arg2.C: Accept "invalid type" error.

From-SVN: r75689
2004-01-11 20:33:56 +00:00
Ian Lance Taylor
e90c7b8433 re PR c++/3478 (Accepts invalid "enum typename")
PR c++/3478
	* parser.c (cp_parser_decl_specifier_seq): If the first decl_spec
	is error_mark_node, don't add any more decl_specs.
	(cp_parser_init_declarator): After committing to a declaration, if
	the decl_specifiers start with error_mark_node, issue an error and
	change the type to "int".

From-SVN: r75688
2004-01-11 20:33:35 +00:00
Jakub Jelinek
b4544c366a Update Copyright year.
From-SVN: r75685
2004-01-11 20:09:02 +01:00
Jakub Jelinek
1759c760db re PR middle-end/13392 (ICE in convert_from_eh_region_ranges_1, at except.c:1133)
PR middle-end/13392
	* builtins.c (expand_builtin_expect_jump): Handle conditional jumps
	to drop through label.  Don't fall back to SCC even when conditional
	jump has not been found.

	* g++.dg/opt/expect2.C: New test.

From-SVN: r75684
2004-01-11 20:05:34 +01:00
Paolo Carlini
b74a685105 2004-01-11 Paolo Carlini <pcarlini@suse.de>
* Fix a date in the ChangeLog.

From-SVN: r75682
2004-01-11 17:43:11 +00:00
Jan Hubicka
fb544601db * invoke.texi: Fix syntax error in previous patch.
From-SVN: r75681
2004-01-11 17:01:13 +00:00
Gabriel Dos Reis
3b3bfc0eeb std_complex.h (std::complex<>::real): Return a reference.
* include/std/std_complex.h (std::complex<>::real): Return a
        reference. Add non-const overload.
        (std::complex<>::real): Likewise.
        (std::real): Likewise.
        (std::imag): Likewise.
        (std::operator+): Tidy.
        (std::operator-): Likewise.
        (std::operator*): Likewise.
        (std::operator/): Likewise.
        (std::operator>>): Likewise.

From-SVN: r75680
2004-01-11 16:15:42 +00:00
Jan Hubicka
0bcf8261f4 Partial fix for PR opt/10776
Partial fix for PR opt/10776
	* Makefile.in (reload.o): Include param.h
	* params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
	* reload.c: Include params.h.
	(find_equiv_reg): Work limiting check.
	* invoke.texi: Document.

From-SVN: r75679
2004-01-11 15:56:26 +00:00
Paolo Carlini
09625c1681 re PR libstdc++/13582 (basic_filebuf::imbue drops characters)
2004-01-11  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/13582
	* include/bits/fstream.tcc (imbue): Exploit the external
	buffer to imbue 'on the fly' a new locale and convert its
	remainder with the new codecvt facet.
	(underflow): Tweak slightly to deal with this special case.
	* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
	* testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
	* testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.

From-SVN: r75677
2004-01-11 15:17:02 +00:00
Michael Koch
df9bad8183 2004-01-11 Michael Koch <konqueror@gmx.de>
* gnu/java/lang/reflect/TypeSignature.java
	(getEncodingOfClass): Documentation fixed.
	(getClassForEncoding): Give class loader to Class.forName().
	Documentation fixed.

From-SVN: r75675
2004-01-11 14:07:36 +00:00
Sascha Brawer
fc58328a06 CompoundEdit.java (serialVersionUID): Added.
2004-01-11  Sascha Brawer  <brawer@dandelis.ch>

	* javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.

From-SVN: r75671
2004-01-11 12:40:49 +00:00
Richard Sandiford
bd9131c09c mips.c (mips_symbolic_constant_p): Don't allow out-of-bounds accesses to string constants.
* config/mips/mips.c (mips_symbolic_constant_p): Don't allow
	out-of-bounds accesses to string constants.  Simplify mips16
	case accordingly.

From-SVN: r75670
2004-01-11 10:37:49 +00:00
Richard Sandiford
6732ee6043 re PR rtl-optimization/13469 (IRIX 6.5 O32 libjava bootstrap failure: ICE in verify_local_live_at_start, at flow.c:557)
PR optimization/13469
	* toplev.c (rest_of_compilation): Call purge_all_dead_edges after
	reload_cse_regs (-fnon-call-exceptions only).

From-SVN: r75669
2004-01-11 10:22:29 +00:00
Kazu Hirata
14bc67425a lib1.asm: Fix comment formatting.
* config/mcore/lib1.asm: Fix comment formatting.
	* config/mcore/mcore-elf.h: Likewise.
	* config/mcore/mcore.c: Likewise.
	* config/mcore/mcore.h: Likewise.
	* config/mcore/mcore.md: Likewise.

From-SVN: r75668
2004-01-11 08:15:34 +00:00
Zack Weinberg
3c6e6fbf11 c-decl.c (duplicate_decls): Break apart into...
* c-decl.c (duplicate_decls): Break apart into...
	(diagnose_arglist_conflict, validate_proto_after_old_defn)
	(locate_old_defn, diagnose_mismatched_decls, merge_decls):
	... these new functions.  Restructure for comprehensibility.
	Remove various archaic special cases.  Always report the
	location of the previous declaration when a diagnostic is issued.
	(redeclaration_error_message): Fold into diagnose_mismatched_decls.
	(match_builtin_function_types): Delete unnecessary forward declaration.
testsuite:
	* gcc.dg/Wshadow-1.c, gcc.dg/attr-noinline.c, gcc.dg/decl3.c
	* gcc.dg/redecl-1.c, gcc.dg/visibility-7.c, gcc.dg/wtr-static-1.c
	* gcc.dg/noncompile/20020220-1.c, objc.dg/method-1.m:
	Update dg-error regexps.

From-SVN: r75667
2004-01-11 01:18:58 +00:00
Zack Weinberg
1e8dcb41f4 genautomata.c (make_automaton, [...]): Print progress bars with '.' characters instead of '*'.
* genautomata.c (make_automaton, NDFA_to_DFA):
	Print progress bars with '.' characters instead of '*'.
	(build_automaton): Change notes to match.

From-SVN: r75664
2004-01-11 00:52:18 +00:00
Zack Weinberg
9c10179d0a 20021123-2.c: Delete; dup of 20021120-1.c.
* gcc.c-torture/compile/20021123-2.c: Delete; dup of 20021120-1.c.
	* gcc.c-torture/compile/20021123-3.c: Delete; dup of 20021120-2.c.

From-SVN: r75663
2004-01-11 00:47:20 +00:00
GCC Administrator
0fbbe8a492 Daily bump.
From-SVN: r75659
2004-01-11 00:16:12 +00:00
Michael Koch
6a425fbe8d 2004-01-11 Michael Koch <konqueror@gmx.de>
* javax/swing/undo/StateEditable.java
	(RCSID): Removed redundant modifiers.

From-SVN: r75657
2004-01-10 23:11:56 +00:00
Kazu Hirata
a2ab189d04 m32r.md: Use define_constants for unspec and unspec_volatile.
* config/m32r/m32r.md: Use define_constants for unspec and
	unspec_volatile.

From-SVN: r75656
2004-01-10 22:34:13 +00:00
Michael Koch
162fd675e5 2004-01-10 Michael Koch <konqueror@gmx.de>
* javax/print/attribute/EnumSyntax.java
	(getStringTable): Made protected.
	(getEnumValueTable): Likewise.
	* javax/print/attribute/standard/JobKOctetsProcessed.java
	(JobKOctetsProcessed): Don't implement PrintRequestAttribute.
	* javax/print/attribute/standard/JobMediaSheetsCompleted.java
	(JobMediaSheetsCompleted): Made class final.
	* javax/print/attribute/standard/OutputDeviceAssigned.java
	(getName): Fixed typo.
	* javax/print/attribute/standard/RequestingUserName.java
	(serialVersionUID): Fixed value.

From-SVN: r75655
2004-01-10 22:16:01 +00:00
Michael Koch
12e978c568 BasicButtonUI.java, [...]: Fixed import statements.
2004-01-10  Michael Koch  <konqueror@gmx.de>

	* javax/swing/plaf/basic/BasicButtonUI.java,
	javax/swing/plaf/basic/BasicCheckBoxUI.java,
	javax/swing/plaf/basic/BasicListUI.java,
	javax/swing/plaf/basic/BasicOptionPaneUI.java,
	javax/swing/plaf/basic/BasicPanelUI.java,
	javax/swing/plaf/basic/BasicRadioButtonUI.java,
	javax/swing/plaf/basic/BasicScrollPaneUI.java,
	javax/swing/plaf/basic/BasicToggleButtonUI.java,
	javax/swing/plaf/basic/BasicViewportUI.java:
	Fixed import statements.

From-SVN: r75654
2004-01-10 21:59:30 +00:00
Michael Koch
4a8e704126 2004-01-10 Michael Koch <konqueror@gmx.de>
* gnu/java/awt/image/ImageDecoder.java
	(produce): Made public.
	* gnu/java/awt/peer/GLightweightPeer.java,
	gnu/java/awt/peer/gtk/GtkToolkit.java:
	Reformated.

From-SVN: r75653
2004-01-10 21:32:23 +00:00
Michael Koch
5c9092a788 JRadioButtonMenuItem.java, [...]: Fixed import statements.
2004-01-10  Michael Koch  <konqueror@gmx.de>

	* javax/swing/JRadioButtonMenuItem.java,
	javax/swing/JSeparator.java,
	javax/swing/JSplitPane.java,
	javax/swing/JTextPane.java,
	javax/swing/JToolBar.java,
	javax/swing/ListCellRenderer.java,
	javax/swing/ListModel.java,
	javax/swing/MenuElement.java,
	javax/swing/OverlayLayout.java,
	javax/swing/ProgressMonitor.java,
	javax/swing/ProgressMonitorInputStream.java,
	javax/swing/Renderer.java,
	javax/swing/RootPaneContainer.java,
	javax/swing/Scrollable.java,
	javax/swing/SingleSelectionModel.java,
	javax/swing/ToolTipManager.java,
	javax/swing/ViewportLayout.java,
	javax/swing/event/DocumentEvent.java,
	javax/swing/event/SwingPropertyChangeSupport.java,
	javax/swing/event/TreeSelectionEvent.java,
	javax/swing/event/UndoableEditEvent.java,
	javax/swing/text/AbstractDocument.java,
	javax/swing/text/AttributeSet.java,
	javax/swing/text/Caret.java,
	javax/swing/text/ComponentView.java,
	javax/swing/text/DefaultCaret.java,
	javax/swing/text/DefaultEditorKit.java,
	javax/swing/text/Document.java,
	javax/swing/text/EditorKit.java,
	javax/swing/text/GapContent.java,
	javax/swing/text/Keymap.java,
	javax/swing/text/MutableAttributeSet.java,
	javax/swing/text/PlainEditorKit.java,
	javax/swing/text/Segment.java,
	javax/swing/text/Style.java,
	javax/swing/text/StyledDocument.java,
	javax/swing/text/StyledEditorKit.java,
	javax/swing/text/TextAction.java,
	javax/swing/text/View.java: Fixed import statements.

From-SVN: r75651
2004-01-10 21:07:44 +00:00
Jan Hubicka
c8fdcfae25 Fix pasto.
From-SVN: r75650
2004-01-10 20:54:03 +00:00
Jan Hubicka
cf7cb67e97 * expr.c (expand_expr_real): More curefully expand union casts.
From-SVN: r75649
2004-01-10 20:50:53 +00:00
Paolo Carlini
a8d6534992 lwg-active.html, [...]: Import Revision 28.
2004-01-10  Paolo Carlini  <pcarlini@suse.de>

	* docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
	Import Revision 28.

From-SVN: r75648
2004-01-10 20:09:26 +00:00
Kazu Hirata
0574200c81 m32r.md (flush_icache): Use 1 for unspec_volatile.
* config/m32r/m32r.md (flush_icache): Use 1 for
	unspec_volatile.

From-SVN: r75647
2004-01-10 19:12:54 +00:00
Richard Sandiford
2560344b31 * MAINTAINERS: Add myself as a MIPS maintainer.
From-SVN: r75645
2004-01-10 18:47:04 +00:00
David Edelsohn
a2a0019fe4 re PR debug/12860 (stabs register number out of range)
2004-01-10  David Edelsohn  <edelsohn@gnu.org>
            James E Wilson  <wilson@specifixinc.com>

        PR debug/12860
        * dbxout.c (dbxout_symbol): Remove initialization of
        current_sym_code, current_sym_value, and current_sym_addr.
        (dbxout_symbol_location): Same.
        (dbxout_prepare_symbol): Zero current_sym_code,
        current_sym_value, and current_sym_addr.

From-SVN: r75644
2004-01-10 13:34:59 -05:00
Richard Sandiford
bb3f5384ba tree.c (get_unwidened): Reorder conditions so that the null pointer check is done first.
* tree.c (get_unwidened): Reorder conditions so that the null pointer
	check is done first.

From-SVN: r75639
2004-01-10 12:02:34 +00:00
Eric Botcazou
7f03f9a39e * gcc.dg/pragma-re-1.c: Use right pointer type.
From-SVN: r75638
2004-01-10 11:25:49 +00:00
Eric Botcazou
21e430b871 * g++.dg/eh/simd-1.c: Ajust line number for dg-error line.
From-SVN: r75637
2004-01-10 11:02:53 +00:00
Paolo Carlini
b656faa883 re PR libstdc++/13630 (Wrong type for locale::category)
2004-01-10  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/13630
	* include/bits/locale_classes.h (class locale): Fix category typedef.
	* testsuite/22_locale/locale/13630.cc: Add.

From-SVN: r75635
2004-01-10 10:15:35 +00:00
Eric Christopher
fbfb16e2ae toplev.c (rest_of_handle_cfg): Add reg_scan pass if we're running mark_constant_function.
2004-01-09  Eric Christopher  <echristo@redhat.com>

	* toplev.c (rest_of_handle_cfg): Add reg_scan pass
	if we're running mark_constant_function.

From-SVN: r75634
2004-01-10 06:54:02 +00:00
Jeff Bailey
cc23f3c700 re PR target/12561 (gcc/config/t-gnu needs updating to work with --with-sysroot)
2004-01-09  Jeff Bailey  <jbailey@nisa.net>

        PR target/12561
        * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.

From-SVN: r75632
2004-01-09 22:40:24 -08:00
Geoffrey Keating
1a7a2c0f0d * gcc.dg/rs6000-ldouble-1.c: New.
From-SVN: r75631
2004-01-10 05:52:56 +00:00
Andrew Ruder
b39f186824 re PR libobjc/11904 (Problem in sarray_free() function.)
2004-01-09  Andrew Ruder  <aeruder@ksu.edu>

        PR libobjc/11904
        * sarray.c (sarray_free): Free array->is_copy_of latter.

From-SVN: r75630
2004-01-09 21:47:42 -08:00
Geoffrey Keating
f01519dd00 darwin-ldouble.c: Add big comment explaining exactly what is expected as a 'long double'.
* config/rs6000/darwin-ldouble.c: Add big comment explaining
	exactly what is expected as a 'long double'.
	(_xlqadd): When a value to be returned is representable as a
	'double', just return it directly, do not construct it using a union.
	Also, correct final fixup.
	(_xlqmul): Likewise.
	(_xlqdiv): Likewise.
	* real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.

From-SVN: r75629
2004-01-10 05:47:14 +00:00
Andrew Pinski
975421be9e re PR debug/11231 (undefined array size inside struct cause segfault with -g)
2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>

        PR debug/11231
        * dbxout.c (dbxout_type_fields): Return if any item is error_mark_node or the
        type is error_mark_node.

From-SVN: r75628
2004-01-09 21:32:45 -08:00
Geoffrey Keating
7e4bd541a5 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
From-SVN: r75627
2004-01-10 05:11:19 +00:00
Richard Henderson
47069ecbe6 * recog.c (constrain_operands): Validate mem operands.
From-SVN: r75624
2004-01-09 19:14:07 -08:00
Kelley Cook
c31d56ed06 configure.in: Rename file to ...
2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.in:  Rename file to ...
	* configure.ac:  ... this.
	* Makefile.in: Update a comment for above change.
	* README: Likewise.
	* config.in: Regenerate.

From-SVN: r75623
2004-01-10 02:17:41 +00:00
Kelley Cook
a4b0b8f1b5 gcc_update (files_and_dependencies): Update fastjar/configure.in to fastjar/configure.ac
2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>

	* gcc_update (files_and_dependencies): Update fastjar/configure.in
	to fastjar/configure.ac

From-SVN: r75622
2004-01-10 02:12:41 +00:00
Kelley Cook
ce7dcf78d8 configure.in: Rename file to ...
2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.in: Rename file to ...
	* configure.ac: ... this.  Add in AC_PREREQ(2.57)
	* config.h.in: Regenerate.
	* aclocal.m4: Regenerate.
	* Makefile.in: Regenerate.

From-SVN: r75621
2004-01-10 02:09:08 +00:00
Nathanael Nerode
c90501d0fd re PR bootstrap/7817 (Link to gcc man page in g++ man page incorrect)
PR bootstrap/7817
	* Make-lang.in: Copy gcc.1 to g++.1 rather than using .so.

From-SVN: r75620
2004-01-10 01:30:39 +00:00
Giovanni Bajo
731bd3ae02 DR 337 PR c++/9256
DR 337
	PR c++/9256
	* g++.dg/other/abstract1.C: New test.

From-SVN: r75619
2004-01-10 01:22:06 +00:00
Giovanni Bajo
cfb91b67b8 DR 337 PR c++/9256
DR 337
	PR c++/9256
	* pt.c (tsubst): Substitution must fail if we are attempting to
	create an array with element type that is an abstract class type.
	* decl.c (cp_finish_decl): Strip pointers and array types recursively
	before calling abstract_virtuals_error.

From-SVN: r75618
2004-01-10 01:18:08 +00:00