Commit Graph

58596 Commits

Author SHA1 Message Date
Ranjit Mathew
edf74484b2 java-tree.h (DECL_LOCAL_FINAL_IUD): New macro to test if a local variable was initialised upon declaration.
* java-tree.h (DECL_LOCAL_FINAL_IUD): New macro to test if a
	local variable was initialised upon declaration.
	* parse.y (declare_local_variables): Set DECL_LOCAL_FINAL_IUD if
	variable was final and initialised upon declaration.
	* check-init.c (check_final_reassigned): Give error only if a blank
	final is not definitely unassigned or if an initialised final is
	reassigned.
	(check_bool_init): Respect JLS2 16.1.7 requirements for boolean
	assignment expressions. Remove case MODIFY_EXPR, label do_default.
	(check_init): Perform initialised-variable-removing-optimisation
	only on non-final local variables.

Co-Authored-By: Per Bothner <per@bothner.com>

From-SVN: r82416
2004-05-29 05:11:41 +00:00
Andrew Pinski
27e1a8d2ee c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
2005-05-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.

From-SVN: r82415
2004-05-28 20:51:05 -07:00
Andrew Pinski
f935f97b9f re PR target/15720 (function marked inline which is called directly isn't emitted)
2005-05-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/15720
        * config/darwin.c (machopic_indirect_call_target): Copy
        the SYMBOL_REF_DECL from the original RTX for the new
        stub RTX.

From-SVN: r82414
2004-05-28 19:55:23 -07:00
Ziemowit Laski
b63e5497f3 altivec-10.C: New test.
[gcc/testsuite/ChangeLog]
2004-05-28  Ziemowit Laski  <zlaski@apple.com>

        * g++.dg/ext/altivec-10.C: New test.

From-SVN: r82413
2004-05-29 01:50:59 +00:00
Paul Brook
f659a11ff2 Typo in last patch.
From-SVN: r82412
2004-05-29 01:24:15 +00:00
Paul Brook
353c3b7e16 trans-common.c (find_equivalence): Find multiple rules.
* trans-common.c (find_equivalence): Find multiple rules.
testsuite/
	* gfortran.fortran-torture/execute/equiv_1.f90: New test.

From-SVN: r82411
2004-05-29 01:21:51 +00:00
GCC Administrator
b1243dd57b Daily bump.
From-SVN: r82407
2004-05-29 00:16:16 +00:00
Bryce McKinlay
70c39ccb6a Fix formatting.
From-SVN: r82404
2004-05-29 01:04:32 +01:00
Bryce McKinlay
138c4fd484 jcf-write.c (generate_bytecode_conditional): Handle binops UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, and LTGT_EXPR.
* jcf-write.c (generate_bytecode_conditional): Handle binops
	UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, and LTGT_EXPR.
	(generate_bytecode_insns): Likewise.

From-SVN: r82402
2004-05-29 00:59:49 +01:00
Mark Mitchell
b3dd05b10a re PR c++/15471 (Incorrect member pointer offsets in anonymous structs/unions)
PR c++/15471
	* typeck.c (unary_complex_lvalue): Use context_for_name_lookup
	when determining the scope to use for a pointer to member.
	(lookup_anon_field): Give it external linkage.
	* cp-tree.h (lookup_anon_field): Declare it.
	* expr.c (cplus_expand_constant): Use it.

From-SVN: r82401
2004-05-28 23:34:39 +00:00
DJ Delorie
5182fafe48 * stor-layout.c (place_field): Revert erroneous commit.
From-SVN: r82398
2004-05-28 19:12:14 -04:00
Ziemowit Laski
690c364e3e altivec-16.c: New test.
[gcc/testsuite/ChangeLog]
2004-05-28  Ziemowit Laski  <zlaski@apple.com>

        * gcc.dg/altivec-16.c: New test.

From-SVN: r82396
2004-05-28 23:08:58 +00:00
Mark Mitchell
c1cca8d4eb re PR c++/15083 (spurious "statement has no effect" warning)
PR c++/15083
	* decl2.c (delete_sanity): Set TREE_SIDE_EFFECTS on a DELETE_EXPR,
	even in a templat.e
	* init.c (build_new): Likewise.

	PR c++/15640
	* name-lookup.c (arg_assoc): Robustify.

	PR c++/15471
	* typeck.c (unary_complex_lvalue): Use context_for_name_lookup
	when determining the scope to use for a pointer to member.

	PR c++/15083
	* g++.dg/warn/noeffect5.C: New test.

	PR c++/15471
	* g++.dg/expr/ptrmem4.C: New test.

	PR c++/15640
	* g++.dg/template/operator3.C: New test.

From-SVN: r82391
2004-05-28 22:35:50 +00:00
Janis Johnson
763ee179ed target-supports.exp (check_vmx_hw_available): New.
2004-05-28  Janis Johnson  <janis187@us.ibm.com>

	* lib/target-supports.exp (check_vmx_hw_available): New.
	* gcc.dg/vmx/vmx.exp: Use it to determine default action.

From-SVN: r82390
2004-05-28 22:31:44 +00:00
Janis Johnson
8dc84ef1bf target-supports.exp (check_alias_available, [...]): Use unique names for temporary files.
2004-05-28  Janis Johnson  <janis187@us.ibm.com>

	* lib/target-supports.exp (check_alias_available,
	check_iconv_available, check_named_sections_available): Use
	unique names for temporary files.

From-SVN: r82388
2004-05-28 22:28:22 +00:00
Ziemowit Laski
6b1db06ffd altivec-15.c: New test.
2004-05-28  Ziemowit Laski  <zlaski@apple.com>

	* gcc.dg/altivec-15.c: New test.

From-SVN: r82387
2004-05-28 22:19:05 +00:00
Aldy Hernandez
5557d6723d fix typo in last commit....
From-SVN: r82386
2004-05-28 22:18:24 +00:00
Ziemowit Laski
bfefd4d590 altivec.h (vec_ctf, [...]): Remove type checks for integral parameters and literals from '..._args_eq' macros.
2004-05-28  Ziemowit Laski  <zlaski@apple.com>

	* config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
	vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
	vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
	vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
	vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
	vec_ste): Remove type checks for integral parameters and literals
	from '..._args_eq' macros.

From-SVN: r82385
2004-05-28 22:17:21 +00:00
Aldy Hernandez
e851b37384 * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
From-SVN: r82384
2004-05-28 22:05:45 +00:00
Aldy Hernandez
9e6f2e7dca decl.c (cp_make_fname_decl): Free return value from fname_as_string.
* decl.c (cp_make_fname_decl): Free return value from
	fname_as_string.

From-SVN: r82382
2004-05-28 21:58:15 +00:00
Aldy Hernandez
0d0bc03606 function.cc: New.
* testsuite/g++.dg/charset/function.cc: New.

	* testsuite/gcc.dg/charset/function.c: New.

	* c-decl.c (c_make_fname_decl): Free return value from
	fname_as_string.

	* cp/decl.c (cp_make_fname_decl): Free return value from
	fname_as_string.

	* c-common.c (fname_as_string): Translate if necessary.

From-SVN: r82381
2004-05-28 21:56:59 +00:00
Geoffrey Keating
4bb4ae964a * stringpool.c: Add comments to PCH saving/restoring routines.
From-SVN: r82380
2004-05-28 21:41:42 +00:00
Bryce McKinlay
711e31876f check-init.c (check_init): Handle binops UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, and LTGT_EXPR.
* check-init.c (check_init): Handle binops UNLT_EXPR, UNLE_EXPR,
    	UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, and LTGT_EXPR.

From-SVN: r82379
2004-05-28 21:52:49 +01:00
Andrew Pinski
2fec96c1b9 c-common.c (c_estimate_num_insns_1): Kill.
2004-05-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * c-common.c (c_estimate_num_insns_1): Kill.
        (c_estimate_num_insns): Kill.
        * c-common.h (c_estimate_num_insns): Kill.

From-SVN: r82377
2004-05-28 13:32:20 -07:00
Andrew Pinski
45863ba363 gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING when checking for...
2004-05-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
        when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
        Remove comment about not checking for
        _POSIX_PRIORITY_SCHEDULING.
        * gthr-posix.c: Likewise.

From-SVN: r82376
2004-05-28 13:18:23 -07:00
Mark Mitchell
0c1a1ecd80 re PR c++/14668 (no warning anymore for reevaluation of declaration)
PR c++/14668
	* parser.c (cp_parser_simple_type_specifier): Call
	maybe_note_name_used_in_class.

	PR c++/14668
	* g++.dg/lookup/redecl1.C: New test.
	* g++.old-deja/g++.benjamin/tem04.C: Add error marker.

From-SVN: r82375
2004-05-28 20:17:18 +00:00
Andrew Pinski
09b01df889 gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING when checking for...
2004-05-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
        when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
        Remove comment about not checking for
        _POSIX_PRIORITY_SCHEDULING.
        * gthr-posix.c: Likewise.

From-SVN: r82373
2004-05-28 13:11:14 -07:00
Bryce McKinlay
ca60dce284 gcj.texi (Object allocation): Remove _Jv_AllocBytes.
* gcj.texi (Object allocation): Remove _Jv_AllocBytes.
	(Mixing with C++): Document JvAllocBytes and RawDataManaged.

	* gcj/cni.h (JvAllocBytes): New public CNI function. Calls
	_Jv_AllocBytes.
	* gnu/gcj/RawDataManaged.java: New file.
	* java/lang/Thread.java (data): Declare as RawDataManaged.
	* java/lang/natThread.cc (init_native): Cast natThread data to
	RawDataManaged, not jobject.
	* Makefile.am (ordinary_java_source_files): Add RawDataManaged.
	* Makefile.in: Rebuilt.

From-SVN: r82372
2004-05-28 19:53:06 +01:00
Dale Johannesen
0919ed7222 New, from PR 14498.
From-SVN: r82368
2004-05-28 17:09:22 +00:00
Jason Merrill
72e89c7cf0 tweak
From-SVN: r82367
2004-05-28 13:02:05 -04:00
Tom Marshall
9fd8f60d1d re PR c++/15214 (Warning non-virtual-dtor too strict)
PR c++/15214
        * class.c (finish_struct_1): Warn only if the dtor is non-private or
        the class has friends.

From-SVN: r82366
2004-05-28 13:01:20 -04:00
Paolo Bonzini
d1a7edafe6 re PR rtl-optimization/15649 (ICE with __builtin_isgreater and -ffast-math)
gcc/ChangeLog:
2004-05-27  Paolo Bonzini  <bonzini@gnu.org>
	    Roger Sayle  <roger@eyesopen.com>

	PR rtl-optimization/15649
	Add LTGT_EXPR and improve pretty-printing of unordered
	comparisons.
	* c-common.c (c_common_truthvalue_conversion):
	Handle LTGT_EXPR.
	* c-typeck.c (build_binary_op): Likewise.
	* dojump.c (do_jump): Likewise.
	* expr.c (expand_expr_real_1, do_store_flag): Likewise.
	* predict.c (tree_predict_by_opcode): Likewise.
	* real.c (real_compare): Likewise.
	* tree-cfg.c (verify_expr): Likewise.
	* tree-inline.c (estimate_num_insns_1): Likewise.
	* tree-pretty-print.c (dump_generic_node): Likewise.
	Handle ORDERED_EXPR, UNORDERED_EXPR.
	(op_symbol): Print unordered comparisons differently
	than ordered ones.
	* tree.def (LTGT_EXPR): New '<' tree code.
	* doc/c-tree.texi (Expressions): Document floating-point
	comparison nodes.

	Fold comparisons between floating point values.
	* fold-const.c (enum comparison_code): New, from
	#define'd constants.  Define compcodes for unordered
	comparisons and for invalid transformations.
	(invert_tree_comparison): Add "honor_nans" parameter.
	(fold_truthop): Revamp to work on floating-point types too.
	(comparison_to_compcode): Support unordered comparisons.
	Use new enum comparison_code.
	(compcode_to_comparison): Likewise.
	(combine_compcodes): New function.
	(invert_truthvalue): Let invert_tree_comparison decide
	whether it is valid to fold the comparison.  Fold ORDERED
	and UNORDERED even if flag_unsafe_math_optimizations is off,
	and the remaining even if flag_unsafe_math_optimizations
	is off but we are under -fno-trapping-math.
	(fold_relational_const): Integer modes do not honor NaNs.

gcc/testsuite/ChangeLog:
2004-05-27  Paolo Bonzini  <bonzini@gnu.org>

	* gcc.c-torture/compare-fp-1.c, gcc.c-torture/compare-fp-2.c,
	gcc.c-torture/compare-fp-3.c, gcc.c-torture/compare-fp-4.c,
	gcc.c-torture/compare-fp-3.x, gcc.c-torture/compare-fp-4.x,
	gcc.c-torture/pr15649-1.c: New.

Co-Authored-By: Roger Sayle <roger@eyesopen.com>

From-SVN: r82365
2004-05-28 16:37:08 +00:00
Paul Brook
2966b00e88 * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
From-SVN: r82361
2004-05-28 16:00:00 +00:00
Paul Brook
3c7ad43e58 arm.c (thumb_force_lr_save): New function.
* config/arm/arm.c (thumb_force_lr_save): New function.
	(arm_get_frame_offsets, thumb_unexpanded_epilogue,
	thumb_output_function_prologue): Use it.
	(thumb_expand_prologue): Set lr_save_eliminated.

From-SVN: r82360
2004-05-28 15:44:35 +00:00
Richard Sandiford
a97a3e73b5 mips.md (extendsidi2): Tie the source and destination of the register alternative.
* config/mips/mips.md (extendsidi2): Tie the source and destination
	of the register alternative.  Split it into nothing.

From-SVN: r82359
2004-05-28 10:04:48 +00:00
Richard Sandiford
6c2511d34e rtl.h (skip_consecutive_labels): Declare.
* rtl.h (skip_consecutive_labels): Declare.
	* emit-rtl.c (skip_consecutive_labels): New function.
	* reorg.c (relax_delay_slots, dbr_schedule): Use it.
	* jump.c (follow_jumps): Say what null return values mean.

From-SVN: r82357
2004-05-28 06:27:31 +00:00
Kaz Kojima
4fbf3498e4 re PR target/13250 ([3.4 only] [SH] Gcc code for rotation clobbers the register, but gcc continues to use the register as if it was not clobbered)
PR target/13250
	* config/sh/sh.md (rotlsi3): Use emit_move_insn.

From-SVN: r82356
2004-05-28 05:47:36 +00:00
Benjamin Kosnik
e8a382b780 re PR libstdc++/15675 (Doxygen graph are invalid in the libstdc++-v3 online docs)
2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/15675
	* docs/html/documentation.html: Update doxygen links for 3.4.0.

From-SVN: r82355
2004-05-28 04:25:18 +00:00
Jan Beulich
a9c70186f4 create_testsuite_files: Tweak.
2004-05-27  Jan Beulich  <jbeulich@novell.com>

	* scripts/create_testsuite_files: Tweak.

From-SVN: r82354
2004-05-28 04:21:50 +00:00
Kaz Kojima
cc2121787f t-linux (SHLIB_MAPFILES): Use sh specific libgcc-std.ver.
* config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
	libgcc-std.ver.
	* config/sh/libgcc-std.ver: New file.

From-SVN: r82350
2004-05-28 03:21:07 +00:00
Bryce McKinlay
aed3065793 except.c: Revert change of 2004-05-26.
* except.c: Revert change of 2004-05-26.
	* config/i386/i386.md: Revert change of 2004-05-27.

From-SVN: r82349
2004-05-28 02:14:02 +01:00
GCC Administrator
431b736152 Daily bump.
From-SVN: r82345
2004-05-28 00:16:14 +00:00
Jerry Quinn
b9f065beda SimpleTimeZone.java: Reverting my last change until I can fix it properly.
2004-05-27  Jerry Quinn  <jlquinn@optonline.net>

	* java/util/SimpleTimeZone.java: Reverting my last change until I
	can fix it properly.

From-SVN: r82340
2004-05-27 20:32:20 +00:00
Bryce McKinlay
13f05fd0df configure.ac: Remove --enable-tree-browser option.
* configure.ac: Remove --enable-tree-browser option.
	Define TREEBROWSER when ac_tree_checking is defined.
	* configure: Rebuilt.

From-SVN: r82338
2004-05-27 20:47:36 +01:00
Olivier Hainque
7c50e202bc expr.c (store_constructor): Restore sanity check on the size of the type before clearing.
* expr.c (store_constructor): Restore sanity check on
	the size of the type before clearing.

From-SVN: r82335
2004-05-27 19:28:51 +00:00
Adam Nemet
18db8f19af re PR c++/12883 (destructor of array object not called if no prior instantiation of the template has happened)
PR c++/12883
	* g++.dg/init/array14.C: New test.

From-SVN: r82334
2004-05-27 19:10:49 +00:00
Adam Nemet
81b4398d1e re PR c++/12883 (destructor of array object not called if no prior instantiation of the template has happened)
PR c++/12883
	* decl.c (complete_array_type): Set TYPE_NEEDS_CONSTRUCTING and
	TYPE_HAS_NONTRIVIAL_DESTRUCTOR based on the underlying type.

From-SVN: r82333
2004-05-27 19:08:57 +00:00
Daniel Jacobowitz
30f1bddcb7 configure.in: Fix sed invocation for GFORTRAN_FOR_TARGET.
* configure.in: Fix sed invocation for GFORTRAN_FOR_TARGET.
	* configure: Regenerate.

From-SVN: r82330
2004-05-27 18:20:33 +00:00
Arnaud Charlet
8a36a0ccd8 [multiple changes]
2004-05-27  Vincent Celier  <celier@gnat.com>

	* vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
	COMMENTS_LAYOUT=UNTOUCHED

	* symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
	symbols-vms-alpha.adb

2004-05-27  Thomas Quinot  <quinot@act-europe.fr>

	* sem.ads: Clarify documentation on checks suppression.

	* einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.

2004-05-27  Ed Schonberg  <schonberg@gnat.com>

	* sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
	the case of multiple derivations.
	(Is_Object_Reference): For a selected component, verify that the prefix
	is itself an object and not a value.

	* sem_ch12.adb (Same_Instantiated_Constant): New name for
	Same_Instantiated_Entity.
	(Same_Instantiated_Variable): Subsidiary to
	Check_Formal_Package_Instance, to recognize actuals for in-out generic
	formals that are obtained from a previous formal package.
	(Instantiate_Subprogram_Body): Emit proper error when
	generating code and the proper body of a stub is missing.

	* sem_ch4.adb (Remove_Address_Interpretations): If the operation still
	has a universal interpretation, do the disambiguation here.

	* exp_ch4.adb (Expand_N_Type_Conversion,
	Expand_N_Unchecked_Type_Conversion): Special handling when target type
	is Address, to avoid typing anomalies when Address is a visible integer
	type.

	* exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
	to determine whether a subprogram should not be marked Pure, even when
	declared in a pure package.

2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>

	* gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.

	* gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
	Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
	Update the documentation about the Ravenscar profile, following the
	definition found in AI-249.

	* sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
	setting the Profile (Ravenscar). This must be done in addition to
	setting the required restrictions.

	* rtsfind.ads: Add the set of operations defined in package
	Ada.Interrupts.

	* exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
	restriction.

2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>

	lang-specs.h: Always require -c or -S and always redirect to /dev/null
	if -gnatc or -gnats is passed.

2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>

	* sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
	a significant reference. Warnings are now properly emitted when a
	discriminated type is not referenced.

	* lib-xref.adb (Generate_Reference): A deferred constant completion,
	record representation clause or record type discriminant does not
	produce a reference to its corresponding entity. Warnings are now
	properly emitted when deferred constants and record types are not
	referenced.

2004-05-27  Geert Bosch  <bosch@gnat.com>

	* Makefile.in: Use long version of libm routines on ia64 gnu/linux.
	Fixes ACATS Annex G tests.

2004-05-27  Robert Dewar  <dewar@gnat.com>

	* rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
	handling WITH

2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>

	* s-interr.adb (Server_Task): Take into account case of early return
	from sigwait under e.g. linux.

2004-05-27  Sergey Rybin  <rybin@act-europe.fr>

	* gnat_ugn.texi: Add description for the new gnatpp options:
	 -rnb - replace the original source without creating its backup copy
	 -c0 - do not format comments

From-SVN: r82324
2004-05-27 15:09:26 +02:00
Bryce McKinlay
062583ea1c decl.c (struct binding_level): Add GTY marker.
* decl.c (struct binding_level): Add GTY marker. Compile
	binding_depth unconditionally.
	(current_binding_level, free_binding_level, global_binding_level):
	Likewise.
	(clear_binding_level): Unconditionally set binding_depth.
	(make_binding_level): Use ggc_alloc_cleared, not xmalloc.

From-SVN: r82323
2004-05-27 14:05:34 +01:00