Commit graph

66187 commits

Author SHA1 Message Date
Alexandre Oliva
6b21174689 decl.c (grokvardecl): Don't exempt anonymous types from having linkage for variables that have...
gcc/cp/ChangeLog:
* decl.c (grokvardecl): Don't exempt anonymous types from having
linkage for variables that have linkage other than "C".
gcc/testsuite/ChangeLog:
* g++.dg/lookup/anon2.C: Don't let access checks make it look like
the test passes.
* g++.dg/other/anon3.C: Accept a warning.

From-SVN: r95462
2005-02-23 18:57:43 +00:00
Roger Sayle
61961eff56 re PR target/20018 ([ia64] unable to find a register to spill in class`PR_REG')
PR target/20018
	PR rtl-optimization/20097
	* simplify-rtx.c (simplify_relational_operation_1): Avoid creating
	BImode SUBREGs of SImode registers which confuse the ia64 backend.

From-SVN: r95461
2005-02-23 18:20:52 +00:00
David Edelsohn
1628a835c0 t-aix43 (SHLIB_INSTALL): Create directory for shared library.
* t-aix43 (SHLIB_INSTALL): Create directory for shared library.
	* t-aix52 (SHLIB_INSTALL): Same.

From-SVN: r95460
2005-02-23 13:18:24 -05:00
Thomas Fitzsimmons
bc71e4a22b re PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored)
2005-02-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

	PR libgcj/16923
	* gcj.texi (Invocation): Add descriptions of JvVMInitArgs and
	JvVMOption.

2005-02-23  Thomas Fitzsimmons  <fitzsim@redhat.com>

	PR libgcj/16923
	* jni.cc (JNI_CreateJavaVM): Check JNI version.  Cast args to
	JvVMInitArgs.  Pass args to _Jv_CreateJavaVM and check return
	value.  Move argument parsing code to prims.cc.
	* prims.cc (no_properties): Remove.
	(_Jv_Compiler_Properties): Initialize to NULL.
	(_Jv_Properties_Count): Initialize to 0.
	(parse_verbose_args): New function.
	(parse_init_args): New function.
	(_Jv_CreateJavaVM): Call parse_init_args.
	(_Jv_RunMain): Check return value of _Jv_CreateJavaVM.
	* gcj/cni.h (JvVMOption): New struct.
	(JvVMInitArgs): Likewise.
	(JvCreateJavaVM): Declare vm_args as JvVMInitArgs* rather than
	void*.
	* libjava/gcj/javaprims.h (_Jv_VMOption): New struct.
	(_Jv_VMInitArgs): Likewise.
	* include/java-props.h (_Jv_Properties_Count): Declare.
	* java/lang/natRuntime.cc (insertSystemProperties): Use
	_Jv_Properties_Count in for loop exit condition.
	* testsuite/libjava.jni/jni.exp
	(gcj_invocation_compile_c_to_binary): New procedure.
	(gcj_invocation_test_one): Likewise.
	(gcj_jni_run): Run JNI invocation API tests.
	* testsuite/libjava.jni/invocation/PR16923.c,
	testsuite/libjava.jni/invocation/PR16923.java,
	testsuite/libjava.jni/invocation/PR16923.out: New test.

From-SVN: r95459
2005-02-23 17:36:26 +00:00
Paolo Carlini
c150a271b1 type_traits: Implement is_convertible.
2005-02-23  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits: Implement is_convertible.
	* testsuite/tr1/4_metaprogramming/relationships_between_types/
	is_convertible/is_convertible.cc: New.
	* testsuite/tr1/4_metaprogramming/relationships_between_types/
	is_convertible/typedefs.cc: Likewise.
	* testsuite/testsuite_tr1.h: Add class DerivedType.

	* include/tr1/type_traits (is_function): Don't mistake references
	to function types for function types.
	* testsuite/tr1/4_metaprogramming/primary_type_categories/
	is_function/is_function.cc: Add testcase.

From-SVN: r95458
2005-02-23 17:23:44 +00:00
Kazu Hirata
f439764ffa genpreds.c: Update copyright.
gcc/
	* genpreds.c: Update copyright.

cp/
	* cp-objcp-common.h, error.c: Update copyright.

fortran/
	* intrinsic.h, st.c: Update copyright.

treelang/
	* parse.y: Update copyright.

From-SVN: r95457
2005-02-23 15:14:47 +00:00
Kazu Hirata
ea2d006db4 * gcc.dg/pr20017.c: Fix a comment typo.
From-SVN: r95456
2005-02-23 14:58:03 +00:00
Andrew Haley
962eea0a03 re PR libffi/20104 (gij fails on ppc and not on x86)
2005-02-22  Andrew Haley  <aph@redhat.com>

	PR libffi/20104
        * src/powerpc/ffi.c (ffi_prep_cif_machdep): Bump alignment to
        odd-numbered register pairs for 64-bit integer types.

From-SVN: r95455
2005-02-23 14:05:13 +00:00
Andreas Tobler
1b05e8bf3c re PR libffi/20104 (gij fails on ppc and not on x86)
2005-02-23  Andreas Tobler  <a.tobler@schweiz.ch>

	PR libffi/20104
	* testsuite/libffi.call/return_ll1.c: New test case.

From-SVN: r95454
2005-02-23 14:56:01 +01:00
Michael Beach
3f9f087b7a re PR target/20159 (sol2-ci.asm not correctly assembled)
PR target/20159
	* config/sparc/t-elf (startup files): Assemble with CPP.

From-SVN: r95450
2005-02-23 11:53:55 +00:00
Bud Davis
b26b100076 list_read_4.f90: Change to f90 comments.
2005-02-23  Bud Davis  <bdavis@gfortran.org>

        * gfortran.dg/list_read_4.f90: Change to f90 comments.

From-SVN: r95449
2005-02-23 10:45:07 +00:00
Paul Schlie
d2f3024f27 Allow darwin targeted ports to build tk, itcl and libgui.
From-SVN: r95448
2005-02-23 10:12:44 +00:00
Paolo Bonzini
bb56fc3933 genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
2005-02-23  Paolo Bonzini  <bonzini@gnu.org>

	* genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
	(write_predicate_expr): Likewise.

From-SVN: r95447
2005-02-23 09:09:17 +00:00
Eric Botcazou
40205a3638 re PR ada/19902 (ACATS cxa3004 cxb3006 fail at compile time "ambiguous expression")
PR ada/19902
	* ada/acats/tests/cxa/cxa3004.a: Remove.
	* ada/acats/tests/cxb/cxb30061.am: Likewise.

From-SVN: r95446
2005-02-23 09:00:22 +00:00
Michael Koch
1144f8d5ca Makefile.am: Added new file gnu/java/nio/ChannelReader.java.
2005-02-23  Michael Koch  <konqueror@gmx.de>

	* Makefile.am: Added new file gnu/java/nio/ChannelReader.java.
	* Makefile.in: Regenerated.

From-SVN: r95445
2005-02-23 08:33:26 +00:00
Robert Schuster
c34fdf0b7d ChannelReader: Fixed comments.
2005-02-23  Robert Schuster  <thebohemian@gmx.net>

	* gnu/java/nio/ChannelReader: Fixed comments.

2005-02-23  Robert Schuster  <thebohemian@gmx.net>

	* java/nio/channels/Channels: Added FIXMEs about
	stub method implementation.
	(newReader): Implemented.
	* gnu/java/nio/ChannelReader: New class.

From-SVN: r95444
2005-02-23 08:26:36 +00:00
Michael Koch
16b31d8f3e SimpleDateFormat.java: Removed unused import.
2005-02-23  Michael Koch  <konqueror@gmx.de>

	* java/text/SimpleDateFormat.java:
	Removed unused import.

From-SVN: r95443
2005-02-23 07:18:05 +00:00
Mark Mitchell
af477510b7 re PR c++/20073 (ICE initializing const array)
PR c++/20073
	* decl.c (start_decl_1): Don't clear TREE_READONLY.
	(cp_finish_decl): Likewise.
	(complete_vars): Call cp_apply_type_quals_to_decl.
	* typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in
	cases where that's not valid.

From-SVN: r95442
2005-02-23 06:55:07 +00:00
Mark Mitchell
6793599535 re PR c++/20073 (ICE initializing const array)
PR c++/20073
	* decl.c (start_decl_1): Don't clear TREE_READONLY.
	(cp_finish_decl): Likewise.
	(complete_vars): Call cp_apply_type_quals_to_decl.
	* typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in
	cases where that's not valid.

	PR c++/20073
	* g++.dg/init/const1.C: New test.

From-SVN: r95441
2005-02-23 06:52:08 +00:00
Benjamin Kosnik
bba6afa6ac check_performance: Tweaks.
2005-02-22  Benjamin Kosnik  <bkoz@redhat.com>

	* scripts/check_performance: Tweaks.

	* testsuite/27_io/basic_ostream/inserters_other/wchar_t/2.cc: Name
	output file with extension that clean rules can find.

From-SVN: r95440
2005-02-23 06:14:01 +00:00
Mark Mitchell
744b12b65f re PR c++/19991 (Enum not accepted in array-size)
PR c++/19991
	* init.c (integral_constant_value): Iterate if the value of a decl
	is itself a constant.

	PR c++/20152
	* parser.c (cp_parser_class_head): Check for redefintions here.
	* semantics.c (begin_class_definition): Not here.

	PR c++/20153
	* decl2.c (build_anon_union_vars): Add type parameter.
	(finish_anon_union): Pass it.

	PR c++/20148
	* error.c (dump_expr): Do not print the body of a BIND_EXPR.
	Handle STATEMENT_LIST.

	PR c++/19991
	* g++.dg/parse/constant7.C: New test.

	PR c++/20152
	* g++.dg/parse/error27.C: New test.
	* g++.dg/template/qualttp15.C: Adjust error markers.
	* g++.old-deja/g++.other/struct1.C: Likewise.

	PR c++/20153
	* g++.dg/template/error17.C: New test.

	PR c++/20148
	* g++.dg/parser/error26.C: New test.

From-SVN: r95438
2005-02-23 05:30:48 +00:00
Diego Novillo
90c1d75a9b re PR tree-optimization/20100 (LIM is pulling out a pure function even though there is something which can modify global memory)
PR tree-optimization/20100
	PR tree-optimization/20115
	* tree-optimize.c (init_tree_optimization_passes): Remove
	pass_maybe_create_global_var.
	* tree-pass.h (pass_maybe_create_global_var): Remove.
	* tree-ssa-alias.c (aliases_computed_p): Declare.
	(struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
	(count_calls_and_maybe_create_global_var): Remove.
	(pass_maybe_create_global_var): Remove.
	(init_alias_info): Do not declare aliases_computed_p.
	(maybe_create_global_var): If the function contains no
	call-clobbered variables and a mix of pure/const and regular
	function calls, create .GLOBAL_VAR.
	Mark all call-clobbered variables for renaming.
	(merge_pointed_to_info): Update comment.
	(add_pointed_to_var): Likewise.
	(is_escape_site): Likewise.
	Accept struct alias_info * instead of size_t *.
	Update all users.
	Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
	as necessary.
	* tree-ssa-operands.c (get_call_expr_operands): If
	ALIASES_COMPUTED_P is false, do not add call-clobbering
	operands.
	* tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
	(delete_tree_ssa): Likewise.

testsuite/ChangeLog

	PR tree-optimization/20100
	PR tree-optimization/20115
	* gcc.dg/pr20115.c: New test.
	* gcc.dg/pr20115-1.c: New test.
	* gcc.dg/pr20100.c: New test.
	* gcc.dg/tree-ssa/20040517-1.c: Expect virtual operands for
	call-clobbered variables after alias1.

From-SVN: r95437
2005-02-23 00:08:32 -05:00
Bud Davis
397763d2af [multiple changes]
2004-02-22  Paul Thomas <paulthomas2@wannado.fr>
            Bud Davis  <bdavis@gfortran.org>

        * io/list_read.c (read_real): Handle separators properly
        in list directed read.

2005-02-22  Bud Davis  <bdavis@gfortran.org>

        * gfortran.dg/list_read_4.f90: new test.

From-SVN: r95436
2005-02-23 04:09:17 +00:00
James E Wilson
e59ba1bccd Fix FreeBSD __LDBL_MAX__ -pedantic -save-temps bug.
* toplev.c (backend_init): Don't call init_adjust_machine_modes here.
(do_compile): Do call it here.

From-SVN: r95432
2005-02-22 17:35:07 -08:00
Kazu Hirata
78d5a34be5 re PR rtl-optimization/20017 (internal compiler error: in rtl_verify_flow_info, at cfgrtl.c:2212)
gcc/
	PR rtl-optimization/20017.
	* passes.c (rest_of_handle_combine, rest_of_handle_cse,
	rest_of_handle_cse2, rest_of_handle_gcse): Call
	delete_dead_jumptables immediately before calling cleanup_cfg.

testsuite/
	PR rtl-optimization/20017.
	* gcc.dg/pr20017.c: New.

From-SVN: r95431
2005-02-23 01:28:59 +00:00
Devang Patel
263fb23d4a re PR tree-optimization/19952 (ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709)
PR 19952
       * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
       all labels
       * g++.dg/tree-ssa/pr19952.C: New test.

From-SVN: r95430
2005-02-22 17:10:39 -08:00
Doug Gregor
a47e0c22a0 Add myself as write-after-approval
From-SVN: r95429
2005-02-23 01:06:05 +00:00
Thomas Fitzsimmons
3f8dfdd4df re PR awt/20029 (Robot needs XTest)
2005-02-22  Thomas Fitzsimmons  <fitzsim@redhat.com>

	PR libgcj/20029:
	* Makefile.am (lib_gnu_java_awt_peer_gtk_la_CFLAGS): Add X_CFLAGS.
	(lib_gnu_java_awt_peer_gtk_la_LDFLAGS): Add X_LIBS and -lXtst.
	* Makefile.in: Regenerate.
	* configure.ac: Check for libXtst.
	* configure: Regenerate.

From-SVN: r95428
2005-02-23 01:05:46 +00:00
GCC Administrator
732272ca15 Daily bump.
From-SVN: r95426
2005-02-23 00:16:30 +00:00
David Edelsohn
466db3c1d5 * config/rs6000/aix.h (WINT_TYPE): Define.
From-SVN: r95421
2005-02-22 19:00:43 -05:00
Stan Shebs
d9168963fa rs6000.c (rs6000_override_options): Default to natural alignment for 64-bit Darwin.
* config/rs6000/rs6000.c (rs6000_override_options): Default to
        natural alignment for 64-bit Darwin.
        (rs6000_parse_alignment_option): Warn about uses of -malign-power
        on 64-bit Darwin.
        * doc/invoke.texi: Document this.

From-SVN: r95420
2005-02-22 23:38:02 +00:00
Richard Henderson
38f925677d re PR libstdc++/20091 (18_support/14026.cc execution test fails)
PR libstdc++/20091
        * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't special case
        decrement of uncaughtExceptions for rethrow.

From-SVN: r95419
2005-02-22 15:17:14 -08:00
Mark Mitchell
b671e5a499 parser.c (cp_parser_direct_declarator): Always complain about non-constant array bounds when in a function scope.
* parser.c (cp_parser_direct_declarator): Always complain about
	non-constant array bounds when in a function scope.
	* semantics.c (finish_id_expression): Do not mark dependent names
	as non-constant.

From-SVN: r95417
2005-02-22 21:43:55 +00:00
Mark Wielaard
245b65adcc AlgorithmParameterGenerator.java (getInstance): Mention provider when throwing NoSuchProviderException.
2005-02-22  Mark Wielaard  <address@bogus.example.com>

	* java/security/AlgorithmParameterGenerator.java (getInstance):
	Mention provider when throwing NoSuchProviderException.
	* java/security/AlgorithmParameters.java (getInstance): Likewise.
	* java/security/KeyFactory.java (getInstance): Likewise.
	* java/security/KeyStore.java (getInstance): Likewise.
	* java/security/SecureRandom.java (getInstance): Likewise.
	* java/security/cert/CertificateFactory.java (getInstance): Likewise.

From-SVN: r95416
2005-02-22 21:35:04 +00:00
Jeroen Frijters
b5abfc2344 Proxy.java, [...]: Don't catch java.lang.ThreadDeath.
2005-02-22  Jeroen Frijters  <jeroen@frijters.net>

	* java/lang/reflect/Proxy.java,
	java/net/URL.java,
	java/security/SecureRandom.java,
	java/util/Timer.java,
	java/util/prefs/AbstractPreferences.java:
	Don't catch java.lang.ThreadDeath.

From-SVN: r95415
2005-02-22 21:11:29 +00:00
DJ Delorie
19b3ffbcaf c-common.c (c_common_type_for_mode): Pass the mode's precision to make_[un]signed_type, not the mode itself.
* c-common.c (c_common_type_for_mode): Pass the mode's precision
to make_[un]signed_type, not the mode itself.

From-SVN: r95412
2005-02-22 15:10:45 -05:00
David Gilbert
118ca7d014 2005-02-22 David Gilbert <david.gilbert@object-refinery.com>
* java/awt/font/TransformAttribute.java,
	(TransformAttribute(AffineTransform)): throw
	IllegalArgumentException for null transform.
	(getTransform): return a copy of transform.
	Added doc comments to all.

From-SVN: r95408
2005-02-22 19:07:40 +00:00
Jeroen Frijters
b22dcb1f30 2005-02-22 Jeroen Frijters <jeroen@frijters.net>
* java/io/Externalizable.java,
	java/io/Serializable.java
	(serialVersionUID): Removed.
	* java/rmi/server/RemoteObject.java,
	java/rmi/server/UID.java
	(serialVersionUID): Made private.
	* java/rmi/server/RemoteRef.java,
	java/rmi/server/ServerRef.java
	(serialVersionUID): Set proper value.
	* java/security/interfaces/DSAPrivateKey.java,
	java/security/interfaces/DSAPublicKey.java,
	java/security/interfaces/RSAMultiPrimePrivateCrtKey.java,
	java/security/interfaces/RSAPrivateCrtKey.java,
	java/security/interfaces/RSAPrivateKey.java,
	java/security/interfaces/RSAPublicKey.java,
	javax/crypto/SecretKey.java
	(serialVersionUID): Added.

From-SVN: r95406
2005-02-22 18:58:53 +00:00
Tom Tromey
af43b1adeb * java/lang/Object.h (_JvObjectPrefix): Declare as extern "Java".
From-SVN: r95405
2005-02-22 18:29:43 +00:00
Tom Tromey
84b6a4d217 re PR java/20056 ('verification failed: incompatible type on stack' with --indirect-dispatch)
PR java/20056:
	* verify-impl.c (EITHER): New define.
	(types_compatible): Handle it.
	(check_field_constant): Use it.

From-SVN: r95404
2005-02-22 18:14:37 +00:00
Tom Tromey
de64691796 re PR java/20056 ('verification failed: incompatible type on stack' with --indirect-dispatch)
PR java/20056:
	* verify.cc (type::EITHER): New constant.
	(check_field_constant): Use it.
	(type::compatible): Handle it.

From-SVN: r95403
2005-02-22 18:14:04 +00:00
Michael Koch
0947959a37 PolicyFile.java, [...]: Fixed copyright header.
2005-02-22  Michael Koch  <konqueror@gmx.de>

	* gnu/java/security/PolicyFile.java,
	gnu/java/security/pkcs/PKCS7SignedData.java,
	gnu/java/security/pkcs/SignerInfo.java:
	Fixed copyright header.

From-SVN: r95399
2005-02-22 17:52:40 +00:00
Paolo Carlini
909a9d44ff functional: Fix License to GPL with exception.
2005-02-22  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/functional: Fix License to GPL with exception.
	* include/tr1/hashtable: Likewise.
	* include/tr1/tuple: Likewise.
	* include/tr1/type_traits: Likewise.
	* include/tr1/type_traits_fwd.h: Likewise.
	* include/tr1/unordered_map: Likewise.
	* include/tr1/unordered_set: Likewise.
	* include/tr1/utility: Likewise.

From-SVN: r95398
2005-02-22 17:07:07 +00:00
Kazu Hirata
35bea1710d tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
* tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
	(coalesce_ssa_name): Don't check for
	SSANORM_USE_COALESCE_LIST.
	(rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.

From-SVN: r95397
2005-02-22 16:48:34 +00:00
Kazu Hirata
e2c879a133 cfg.c (cached_make_edge): Call make_edge if edge cache is not available.
* cfg.c (cached_make_edge): Call make_edge if edge cache is
	not available.  Use tail calls wherever possible.
	(make_edge): Call unchecked_make_edge to create an edge.

From-SVN: r95396
2005-02-22 15:42:25 +00:00
Diego Novillo
554beb3a44 tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
* tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
	(rewrite_into_ssa): ... here.

From-SVN: r95395
2005-02-22 10:11:06 -05:00
Jeroen Frijters
627851cd7f 2005-02-22 Jeroen Frijters <jeroen@frijters.net>
* java/beans/PropertyDescriptor.java
	(PropertyDescriptor,setReadMethod): Set propertyType.

From-SVN: r95393
2005-02-22 14:06:53 +00:00
Michael Koch
a010a29561 2005-02-22 Michael Koch <konqueror@gmx.de>
* java/nio/DirectByteBufferImpl.java
	(owner): Fixed formatting of javadoc.
	* java/text/DateFormat.java
	(getAvailableLocales): Fixed formatting.
	* java/text/SimpleDateFormat.java:
	Fixed formatting and import statement order.
	* java/util/Calendar.java
	(Calendar): Fixed javadoc to be HTML compliant.
	* java/util/SimpleTimeZone.java:
	Fixed javadocs.

From-SVN: r95392
2005-02-22 13:02:11 +00:00
Paolo Carlini
44f3667679 auto_ptr_neg.cc: Add missing dg-do compile directive.
2005-02-22  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
	auto_ptr_neg.cc: Add missing dg-do compile directive.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
	auto_ptr_rvalue_neg.cc: Likewise.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/assign/
	shared_ptr_neg.cc: Likewise.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/cons/
	auto_ptr_neg.cc: Likewise.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
	reset_neg.cc: Likewise.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/modifiers/
	swap_neg.cc: Likewise.

From-SVN: r95391
2005-02-22 12:50:56 +00:00
Roman Kennke
18d9cf3f1a 2005-02-22 Roman Kennke <roman@ontographics.com>
* javax/swing/plaf/basic/BasicLookAndFeel.java
	(initComponentDefaults): Fixed Button left and right margin.

From-SVN: r95389
2005-02-22 12:16:00 +00:00