Commit Graph

65923 Commits

Author SHA1 Message Date
Paolo Carlini
11996a3c45 type_traits (is_member_function_pointer): Remove ugly workaround for c++/19076.
2005-02-21  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits (is_member_function_pointer):
	Remove ugly workaround for c++/19076.

From-SVN: r95360
2005-02-21 23:51:51 +00:00
Paolo Carlini
52a8962603 basic_string.tcc (_Rep::_M_destroy): Don't check for this == &_S_empty_rep, it's always false, here.
2005-02-21  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.tcc (_Rep::_M_destroy): Don't
	check for this == &_S_empty_rep, it's always false, here.

From-SVN: r95358
2005-02-21 23:25:08 +00:00
Douglas Gregor
84bafc8d19 cv_func.C: New test.
2005-02-21  Douglas Gregor  <dgregor@cs.indiana.edu>

        * g++.dg/other/cv_func.C: New test.
        * g++.dg/template/mem_func_ptr.C: New test.
        * g++.dg/template/qualttp20.C: We now get the xfail'd warning
        when we are being pedantic; we expect this test to pass now.
        * g++.old-deja/g++.pt/ptrmem5.C: We no longer receive a bogus
        error here.

From-SVN: r95357
2005-02-21 23:15:35 +00:00
Douglas Gregor
9804209d32 re PR c++/19076 (Pointer to member function not matched to pointer to member template)
2005-02-21  Douglas Gregor  <dgregor@cs.indiana.edu>

	PR c++/19076
	PR c++/6628
	* cp-tree.h (cp_apply_type_quals_to_decl): Declared.
	* decl.c (grokdeclarator): Pedwarn about qualifying a function
	type.
	Add qualifiers when declaring a typedef of a function type.
	Member function pointers pick up the qualifiers of the typedef
	used to declare them.
        Don't complain about creating cv-qualified function types.
	Complain about qualified function typedefs that are used to
	declare non-static member functions or free functions.
	Use cp_apply_type_quals_to_decl.
	(start_preparsed_function): Use cp_apply_type_quals_to_decl.
	(grokclassfn): Use cp_apply_type_quals_to_decl.
	* error.c (dump_type_suffix): Print qualifiers for function
	types.
	* pt.c (tsubst_decl): Use cp_apply_type_quals_to_decl.
	(tsubst): When substituting a function type into a member
	pointer type, pass along the qualifiers.
	(unify): Unify member pointers to member function pointers.
	* tree.c (cp_build_qualified_type_real): Function types may be
	qualified. This includes restrict qualifiers.
	* typeck.c (cp_apply_type_quals_to_decl): New function to replace
	use of c_apply_type_quals_to_decl. Drops qualifiers that are being
	added to function types.

From-SVN: r95356
2005-02-21 23:12:27 +00:00
Robert Schuster
89e4aa8109 2005-02-21 Robert Schuster <theBohemian@gmx.net>
* gnu/java/beans/IntrospectionIncubator.java
	(addMethod) Reverts the patch that ntroduced a regression (see bug
	https://savannah.gnu.org/bugs/?func=detailitem&item_id=10938).

From-SVN: r95355
2005-02-21 22:40:35 +00:00
Michael Koch
11e56db0bd 2005-02-21 Michael Koch <konqueror@gmx.de>
* java/awt/Checkbox.java
	(next_checkbox_number): New static variable.
	(generateName): New method.
	(getUniqueLong): Likewise.
	* java/awt/Window.java
	(next_window_number): New static variable.
	(generateName): New method.
	(getUniqueLong): Likewise.

From-SVN: r95354
2005-02-21 21:41:28 +00:00
Eric Botcazou
7442146939 re PR libfortran/19302 (intrinsic_nearest.f90 fails)
PR libfortran/19302
	* intrinsics/c99_functions.c (nextafterf): Special-case infinite
	numbers.

From-SVN: r95353
2005-02-21 21:39:33 +00:00
Stan Cox
10e7039248 * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
From-SVN: r95348
2005-02-21 20:32:05 +00:00
Mark Wielaard
c149185b71 JarFile.java (verifyHashes): Check whether ZipEntry exists.
* java/util/jar/JarFile.java (verifyHashes): Check whether ZipEntry
       exists.

From-SVN: r95347
2005-02-21 20:29:00 +00:00
Steven G. Kargl
95b49c6f9d * io/write.c(output_float): Typo in error message.
From-SVN: r95343
2005-02-21 19:59:58 +00:00
Kazu Hirata
88312d26a5 flow.c (delete_dead_jumptables): Speed up by scanning insns that do not belong to any basic block.
* flow.c (delete_dead_jumptables): Speed up by scanning insns
	that do not belong to any basic block.

From-SVN: r95342
2005-02-21 19:47:40 +00:00
Kazu Hirata
fca01525bf tree-cfg.c (fold_cond_expr_cond): New.
* tree-cfg.c (fold_cond_expr_cond): New.
	(make_edges): Call fold_cond_expr_cond.
	(find_taken_edge): Accept nothing but INTEGER_CST.
	(find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
	and 1.
	(find_taken_edge_switch_expr): Remove a check for INTEGER_CST.

From-SVN: r95339
2005-02-21 18:38:05 +00:00
Andrew Haley
92c91cf7fe Makefile.in: Rebuilt.
2005-02-21  Andrew Haley  <aph@redhat.com>

	* Makefile.in: Rebuilt.
	* Makefile.am (nat_source_files): Added natLogger.cc.
	* java/util/logging/natLogger.cc: New file.
	* java/util/logging/Logger.java (getCallerStackFrame): Now
	native.

From-SVN: r95338
2005-02-21 18:19:01 +00:00
Andreas Tobler
d0a68934cf Makefile.am (all_property_files): Remove left over.
2005-02-21  Andreas Tobler  <a.tobler@schweiz.ch>

	* Makefile.am (all_property_files): Remove left over.
	(classes.stamp): Add stamp for the ONESTEP build, also known as
	--enable-libgcj-multifile.
	* Makefile.in: Regenerated.

From-SVN: r95337
2005-02-21 18:42:20 +01:00
Tobias Schlüter
f65ca04d8d Fix law's ChangeLog date, and
Fix law's ChangeLog date, and
* lib/gfortran-dg.exp (gfortran-dg-test): Split long regexps.

From-SVN: r95335
2005-02-21 17:31:42 +01:00
Jeff Law
0b612e0bc7 cfganal.c (find_unreachable_blocks): Manually CSE load of e->dest.
* cfganal.c (find_unreachable_blocks): Manually CSE load of
        e->dest.

From-SVN: r95334
2005-02-21 09:21:00 -07:00
Michael Koch
32efd4cd48 Button.java, [...]: Fixed formatting issues all over.
2005-02-21  Michael Koch  <konqueror@gmx.de>

	* java/awt/Button.java,
	java/awt/Container.java,
	java/awt/Font.java,
	java/awt/Frame.java,
	java/text/CollationElementIterator.java,
	java/text/RuleBasedCollator.java,
	java/util/PropertyPermission.java:
	Fixed formatting issues all over.

From-SVN: r95333
2005-02-21 16:12:17 +00:00
Jeff Law
40cd9e66fa * gcc.dg/tree-ssa/20041122-1.c: New test for missing optimization.
From-SVN: r95332
2005-02-21 07:55:38 -07:00
Kazu Hirata
a4de48bc6c c-objc-common.h, [...]: Update copyright.
* c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
	genautomata.c, langhooks.c, langhooks.h, system.h,
	config/arm/lib1funcs.asm: Update copyright.

From-SVN: r95331
2005-02-21 14:39:52 +00:00
Kazu Hirata
dfd9f74cff tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
* tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
	(SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
	Adjust their definitions.
	(remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
	(rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.

From-SVN: r95330
2005-02-21 14:33:36 +00:00
Tobias Schlüter
da7fdff6e1 do_iterator: Split loop, markup all lines for which an error locus is printed.
* gfortran.dg/do_iterator: Split loop, markup all lines for
which an error locus is printed.
* gfortran.dg/pr17708.f90: Markup all lines for which an error
locus is printed.
* gfortran.dg/select_4.f90: Likewise.
* lib/gfortran-dg.exp (gfortran-dg-test): Handle gfortran error
locuses in the various permutations.

From-SVN: r95329
2005-02-21 14:03:06 +01:00
Ulrich Weigand
4a22dcdd52 * dbxout.c (dbxout_function_end): Emit Lscope label always.
From-SVN: r95326
2005-02-21 10:06:20 +00:00
Richard Guenther
5dd906880f re PR bootstrap/13770 ([doc] --with-gc not documented)
2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>

	PR bootstrap/13770
	* doc/install.texi: Document --with-gc.

From-SVN: r95325
2005-02-21 10:03:07 +00:00
Mark Wielaard
5fd7c1e7fa FileDescriptor.java (sync): Add real exception to SyncFailedException.
2005-02-21  Mark Wielaard  <mark@klomp.org>

	* java/io/FileDescriptor.java (sync): Add real exception to
	SyncFailedException.

From-SVN: r95324
2005-02-21 08:31:01 +00:00
Michael Koch
171a3e0c44 InputStreamReader.java: Fixed @author tag.
2005-02-21  Michael Koch  <konqueror@gmx.de>

	* java/io/InputStreamReader.java:
	Fixed @author tag.

From-SVN: r95323
2005-02-21 08:27:00 +00:00
Eric Botcazou
bba5e0cad1 re PR libgcj/10353 (Java testsuite failures)
PR libgcj/10353
	* configure.in (noconfigdirs) <sparc-*-solaris2.[0-6]>: Add libgcj.
	* configure: Regenerate.

From-SVN: r95322
2005-02-21 08:12:36 +00:00
Paolo Bonzini
35ef372de4 simplify-rtx.c (simplify_unary_operation): Add a missing "break" statement.
2005-02-21  Paolo Bonzini  <bonzini@gnu.org>

	* simplify-rtx.c (simplify_unary_operation): Add a missing
	"break" statement.

From-SVN: r95321
2005-02-21 07:37:51 +00:00
Eric Botcazou
ee16720759 re PR tree-optimization/18663 (ACATS ICE cc1221d expected integer_cst, have nop_expr in tree_int_cst_lt, at tree.c:3779)
PR tree-optimization/18663
	* tree-ssa-dom.c (extract_range_from_cond): Return 0
	if the type has variable bounds.

From-SVN: r95320
2005-02-21 07:27:14 +00:00
Kazu Hirata
a811c67259 * gcse.c: Remove an obsolete comment.
From-SVN: r95319
2005-02-21 02:02:19 +00:00
Kazu Hirata
a3c28ba275 * gcse.c: Remove an obsolete comment.
From-SVN: r95318
2005-02-21 00:23:50 +00:00
GCC Administrator
f1cc922096 Daily bump.
From-SVN: r95315
2005-02-21 00:16:24 +00:00
Rutger Ovidius
f9dc7b293a re PR libgcj/19728 (libgcj Gnu.java missing SHA-160)
2005-02-20  Rutger Ovidius  <ovidr@users.sourceforge.net>

	PR libgcj/19728:
	* gnu/java/security/provider/Gnu.java (Gnu): Add SHA-160 alias.

From-SVN: r95312
2005-02-20 22:30:49 +00:00
Steven G. Kargl
eebc3ee0cd * symbol.c: Typos in comments.
From-SVN: r95311
2005-02-20 21:59:12 +00:00
Dalibor Topic
7d651220a3 RE.java, [...]: Made 'inner' classes real public static inner classes...
2005-02-20  Dalibor Topic  <robilad@kaffe.org>

	* libraries/javalib/gnu/regexp/RE.java,
	libraries/javalib/java/io/ObjectInputStream.java,
	libraries/javalib/java/security/AllPermission.java,
	libraries/javalib/java/security/BasicPermission.java,
	libraries/javalib/java/security/Permissions.java,
	libraries/javalib/java/text/MessageFormat.java:
	Made 'inner' classes real public static inner classes,
	and made them final where possible, or removed them
	where unused.

From-SVN: r95310
2005-02-20 21:18:30 +00:00
Dorit Naishlos
237eaf79a5 re PR tree-optimization/19951 (ICE in tree_split_edge, at tree-cfg.c:3199 with -ftree-vectorize)
PR tree-optimization/19951
        * g++.dg/vect: New directory.
        * g++.dg/vect/vect.exp: New file.
        * g++.dg/vect/pr19951.cc: New testcase.
        * g++.dg/dg.exp: Also prune vectorizer tests.

From-SVN: r95309
2005-02-20 20:32:41 +00:00
Hans-Peter Nilsson
50c177f744 extend.texi (Function Attributes): The attribute "pure" is below this text, not above.
* doc/extend.texi (Function Attributes) <Attribute const>: The
	attribute "pure" is below this text, not above.

From-SVN: r95308
2005-02-20 19:16:10 +00:00
Steven G. Kargl
687fcae70c * expr.c (gfc_type_convert_binary): Typo in comment.
From-SVN: r95307
2005-02-20 18:26:19 +00:00
John David Anglin
cdcb88d72f pa.c (pa_assemble_integer, get_plabel): Small cleanups.
* pa.c (pa_assemble_integer, get_plabel): Small cleanups.
	(pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
	* som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.

From-SVN: r95306
2005-02-20 17:37:37 +00:00
Zack Weinberg
c5ff069dc4 re PR middle-end/18785 (isdigit builtin function fails with EBCDIC character sets)
PR 18785
libcpp:
	* charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
	(cpp_host_to_exec_charset): New function.
	* include/cpplib.h: Declare cpp_host_to_exec_charset.

gcc:
	* langhooks.h (struct lang_hooks): Add to_target_charset.
	* langhooks.c (lhd_to_target_charset): New function.
	* langhooks-def.h: Declare lhd_to_target_charset.
	(LANG_HOOKS_TO_TARGET_CHARSET): New macro.
	(LANG_HOOKS_INITIALIZER): Update.
	* c-common.c (c_common_to_target_charset): New function.
	* c-common.h: Declare it.
	* c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
	c_common_to_target_charset.

	* defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
	(TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
	Delete definitions.
	* system.h: Poison them.
	* doc/tm.texi: Don't discuss them.
	* builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
	* c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
	(pp_c_char): Do not attempt to generate letter escapes for
	newline, tab, etc.
	* config/arm/arm.c (output_ascii_pseudo_op): Likewise.
	* config/mips/mips.c (mips_output_ascii): Likewise.
gcc/cp:
	* cp-objcp-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
	c_common_to_target_charset.  Delete bogus comment.
gcc/testsuite:
	* gcc.dg/charset/builtin1.c: New test.

From-SVN: r95304
2005-02-20 17:01:32 +00:00
Steven G. Kargl
5920b5d2e8 re PR libfortran/20085 (iargc returns wrong count for number of program arguments)
PR 20085
* intrinsic/args.c (iargc): Off by 1.

From-SVN: r95302
2005-02-20 15:24:02 +00:00
Dorit Naishlos
ac59a95936 re PR tree-optimization/19951 (ICE in tree_split_edge, at tree-cfg.c:3199 with -ftree-vectorize)
PR tree-optimization/19951
        * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
        is abnormal.

From-SVN: r95301
2005-02-20 13:47:28 +00:00
Michael Koch
b7d3bbceb7 FormatCharacterIterator.java: Removed redundant modifiers.
2005-02-20  Michael Koch  <konqueror@gmx.de>

	* gnu/java/text/FormatCharacterIterator.java:
	Removed redundant modifiers.

From-SVN: r95300
2005-02-20 11:26:49 +00:00
Steven Bosscher
a310245f28 re PR middle-end/19698 (Infinite loop in update_life_info)
PR middle-end/19698
	* function.h (struct function): New field `max_loop_depth'.
	* cfgloop.c (establish_preds): Update maximum loop depth seen so far.
	(flow_loops_find): Reset the max loop depth count before finding loops.
	* flow.c (MAX_LIVENESS_ROUNDS): New constant.
	(update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
	(calculate_global_regs_live): Make sure the loop will terminate
	when the initial sets are not empty.

From-SVN: r95299
2005-02-20 11:09:16 +00:00
Thomas Fitzsimmons
9f9348d75a gthread-jni.c (throw): Call g_snprintf instead of snprintf.
2005-02-19  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* jni/gtk-peer/gthread-jni.c (throw): Call g_snprintf instead of
	snprintf.

From-SVN: r95298
2005-02-20 04:14:24 +00:00
GCC Administrator
d1e982cdd9 Daily bump.
From-SVN: r95296
2005-02-20 00:16:19 +00:00
Matt Austern
6bbd10c784 functional (tr1_hashtable_define_trivial_hash): Make hash<T>::operator() a const member function for T a fundamental type
* include/tr1/functional (tr1_hashtable_define_trivial_hash): Make
hash<T>::operator() a const member function for T a fundamental type
* include/tr1/hashtable (extract1st::operator()): Declare const.
(hash_code_base): Declare all member functions const
(hashtable::find): fix call to this->bucket_count()
(hashtable::count): Likewise.
(hashtable::equal_range): m_incr_bucket applies to iterator, not node.
* testsuite/tr1/6_containers/unordered/find/set1.cc: New test.
* testsuite/tr1/6_containers/unordered/find/map1.cc: New test.
* testsuite/tr1/6_containers/unordered/find/multimap1.cc: New test.
* testsuite/tr1/6_containers/unordered/find/multiset1.cc: New test.

From-SVN: r95293
2005-02-19 23:57:23 +00:00
Volker Reichelt
72aff31a37 re PR c++/19299 (ICE with volatile non-PODs pointers)
PR c++/19299
	* g++.dg/inherit/volatile1.C: New test.

	PR c++/19440
	* g++.dg/template/dtor4.C: New test.

From-SVN: r95292
2005-02-19 20:36:56 +00:00
Steven G. Kargl
145cf79b57 check.c (gfc_check_selected_int_kind): New function.
* check.c (gfc_check_selected_int_kind): New function.
	* intrinsic.h: Prototype it.
	* intrinsic.c (add_function): Use it.
	* simplify (gfc_simplify_ceiling,gfc_simplify_floor): Change
	  BT_REAL to BT_INTEGER and use gfc_default_integer_kind.

From-SVN: r95291
2005-02-19 20:29:05 +00:00
Steven G. Kargl
c60d77d4db check.c (gfc_check_int): improve checking of optional kind
* check.c (gfc_check_int): improve checking of optional kind
	* simplify.c (gfc_simplify_int): Change BT_REAL to BT_INTEGER

	* gfortran.dg/int_1.f90: New test.

From-SVN: r95290
2005-02-19 20:07:47 +00:00
Devang Patel
04c90eea07 charset.c (_cpp_convert_input): Check '\r' before inserting '\n' at the end.
* charset.c (_cpp_convert_input): Check '\r' before inserting
      '\n' at the end.
      * gcc.dg/cpp/mac-eol-at-eof.c: New test.

From-SVN: r95289
2005-02-19 11:48:02 -08:00