Commit Graph

75561 Commits

Author SHA1 Message Date
Joseph Myers 0bf5baf8bc be.po, [...]: Update.
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
	rw.po, sv.po, tr.po, zh_CN.po, zh_TW.po: Update.

From-SVN: r114966
2006-06-24 16:39:43 +01:00
Paul Thomas 32fdfa2dfa re PR fortran/28118 (ICE calling subroutine defined via explicit interface)
2006-06-24  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28118
	* trans-array.c (gfc_conv_expr_descriptor): When building temp,
	use the substring reference to calculate the length if the
	expression does not have a charlen.

2006-06-24  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28118
	* gfortran.dg/actual_array_substr_1.f90: New test.

From-SVN: r114964
2006-06-24 13:04:37 +00:00
Olivier Hainque 61c25908fd gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
* gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
	(gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
	aggregate types.

	* tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
	ARRAY_REF, so have the callback called for the low bound expression.

	* gnat.dg/scalar_mode_agg_compare_loop.adb: New test.
	* gnat.dg/scalar_mode_agg_compare.adb: New test.

From-SVN: r114963
2006-06-24 12:47:48 +00:00
Francois-Xavier Coudert 7606c786fd ierrno.c: Don't include "io/io.h".
* intrinsics/ierrno.c: Don't include "io/io.h".
	* intrinsics/sleep.c: Likewise.
	* intrinsics/perror.c: Likewise.
	* intrinsics/stat.c: Likewise.
	* intrinsics/kill.c: Likewise.
	* intrinsics/time.c: Likewise.
	* intrinsics/fnum.c: Likewise.
	* intrinsics/rename.c: Likewise.
	* intrinsics/symlnk.c: Likewise.
	* intrinsics/chdir.c: Likewise.
	* intrinsics/link.c: Likewise.
	* intrinsics/random.c: Don't include "io/io.h". Include	<gthr.h>.
	* intrinsics/rand.c: Likewise.

From-SVN: r114962
2006-06-24 12:34:51 +00:00
Francois-Xavier Coudert 3e7cb1c7e7 re PR fortran/28094 (Modulo of real(kind=10) variables doesn't work)
PR fortran/28094

	* trans-intrinsic.c (gfc_conv_intrinsic_mod): Support cases where
	there is no integer kind equal to the resulting real kind.
	* intrinsic.c (add_functions): MODULO is not allowed as an actual
	argument.

	* Makefile.am: Add _mod_r10.F90 and _mod_r16.F90.
	* Makefile.in: Regenerate.
	* generated/_mod_r10.F90: New file.
	* generated/_mod_r16.F90: New file.

From-SVN: r114961
2006-06-24 08:27:32 +00:00
GCC Administrator 35157c5e55 Daily bump.
From-SVN: r114959
2006-06-24 00:17:25 +00:00
Benjamin Kosnik 3a58a61437 re PR libstdc++/27984 (installed libstdc++ testing broken)
2006-06-23  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/27984
	* testsuite/lib/libstdc++.exp (libstdc++_init): Adjust
	testing includes.
	* docs/html/test.html: Adjust for testsuite changes.

From-SVN: r114955
2006-06-24 00:13:08 +00:00
Steve Ellcey c5f8391c77 re PR c++/28114 (ICE with struct definition in argument of template function)
PR c++/28114
	* name-lookup.c (pushtag): Return if we have error_mark_node.

From-SVN: r114953
2006-06-23 21:58:25 +00:00
Steve Ellcey e135a63713 re PR c++/27019 (ICE with designated initializers)
PR c++/27019
	* typeck2.c (process_init_constructor_array): Set ce->value on errors.

From-SVN: r114952
2006-06-23 21:53:36 +00:00
Janis Johnson 5fc89bfdd7 tree.h (DECIMAL_FLOAT_TYPE_P): New.
* tree.h (DECIMAL_FLOAT_TYPE_P): New.
	* c-typeck.c (c_common_type): Disallow operations on decimal float
	types and other float types.
	* convert.c (convert_to_real): Don't ignore conversions involving
	decimal float types.

testsuite:
	* gcc.dg/dfp/usual-arith-conv-bad.c: New test.

From-SVN: r114951
2006-06-23 21:17:53 +00:00
Steven G. Kargl 17bbca7480 re PR fortran/27981 (Strange error message for illegal integer constant)
2006-06-23  Steven G. Kargl  <kargls@comcast.net>

	PR fortran/27981
	* match.c (gfc_match_if):  Handle errors in assignment in simple if.

2006-06-23  Steven G. Kargl  <kargls@comcast.net>

	PR fortran/27981
	* gfortran.dg/simpleif_2.f90: New test.

From-SVN: r114950
2006-06-23 21:05:04 +00:00
Lee Millward ad0178f8cc error22.C: Fix typo.
* g++.dg/template/error22.C: Fix typo.

From-SVN: r114949
2006-06-23 19:37:58 +00:00
Volker Reichelt 0b9cb8c266 re PR c++/28112 (ICE with invalid argument in attribute)
PR c++/28112
	* parser.c (cp_parser_attribute_list): Skip attributes with invalid
	arguments.  Fix comment.

	* g++.dg/ext/attrib23.C: New test.

From-SVN: r114941
2006-06-23 17:02:38 +00:00
Steve Ellcey e10e3ac826 re PR target/28084 (/usr/include/errno.h:28: error: previous declaration of 'int errno' with 'C++' linkage)
PR target/28084
	* inclhack.def (hpux_extern_errno): New.
	* fixincl.x: Regenerate.

From-SVN: r114939
2006-06-23 16:21:54 +00:00
Olivier Hainque a441447f7f tree.c (max_int_size_in_bytes): New function, inspired from code in function.c:assign_temp.
* tree.c (max_int_size_in_bytes): New function, inspired from
        code in function.c:assign_temp.
        * tree.h (max_int_size_in_bytes): Declare.
        * function.c (assign_temp): Use it.
        * gimplify.c (create_tmp_var): Relax the assertions on the type
        properties, not mandating constant size any more.
        (force_constant_size): New static function.
        (gimple_add_tmp_var): Use it, forcing variable size to a
        constant upper bound if it is not constant on entry.

        * ada/misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
        not been able to get a constant upper bound from TYPE_SIZE_UNIT.

	* gnat.dg/varsize_temp.adb: New test.

From-SVN: r114938
2006-06-23 16:18:49 +00:00
Volker Reichelt a3d536f1c1 re PR c++/11468 (Deriving from CNI class java::lang::Object causing an ICE)
PR c++/11468
	* init.c (build_new_1): Handle error_mark_nodes returned by
	build_java_class_ref.
	(build_java_class_ref): Do not abort compilation, but return
	error_mark_node.  Improve error message.  Fix indentation.

	* g++.dg/other/java2.C: New test.

From-SVN: r114937
2006-06-23 15:59:51 +00:00
Andrew Haley 6de5f432f1 java-tree.h (update_aliases): Remove
2006-06-21  Andrew Haley  <aph@redhat.com>

        * java-tree.h (update_aliases): Remove
        * expr.c (expand_iinc): Remove call to update_aliases().
        (STORE_INTERNAL): Likewise.
        * decl.c (update_aliases, initialize_local_variable) 
        (maybe_pushlevels): Set DECL_VALUE_EXPR for debugging decls.

From-SVN: r114931
2006-06-23 12:14:44 +00:00
Andreas Schwab 410ed785dd Remove conflict marker.
From-SVN: r114928
2006-06-23 09:41:38 +00:00
Danny Smith 4e2bb0a4b8 re PR target/27789 (attribute handling fallout from DECL_INITIAL changes)
PR target/27789
	* config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
	for initialization and setting of one_only flag to ...
	(i386_pe_encode_section_info): ...here.
	(i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
	Recheck that the symbol has not been defined.

cp
	* decl.c (start_decl): Check that dllimports are not initialized.

testsuite
	* g++.dg/ext/dllimport4.C. Add more tests for invalid
	initialization.

From-SVN: r114927
2006-06-23 08:25:33 +00:00
Richard Guenther ecf7b86fb8 ggc-page.c (init_ggc): Do not round up the extra_order_size_table sizes to MAX_ALIGNMENT.
2006-06-23  Richard Guenther  <rguenther@suse.de>

	* ggc-page.c (init_ggc): Do not round up the extra_order_size_table
	sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
	alignment requests instead.  Add verification code.
	Add struct tree_function_decl and struct tree_binfo size to
	extra_order_size_table.  Add missing element to size_lookup
	table.

From-SVN: r114926
2006-06-23 08:22:12 +00:00
Roger Sayle e577c8c0bb re PR middle-end/28131 (FAIL: gcc.c-torture/execute/va-arg-25.c compilation (ICE))
2006-06-22  Roger Sayle  <roger@eyesopen.com>
	    John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR middle-end/28131
	* expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
	call to lang_hooks.types.type_for_mode returned NULL_TREE.


Co-Authored-By: John David Anglin <dave.anglin@nrc-cnrc.gc.ca>

From-SVN: r114923
2006-06-23 02:01:30 +00:00
Ben Elliston f64ad1d319 decNumber.h (decNumberNegate): Remove.
libdecnumber/
	* decNumber.h (decNumberNegate): Remove.
gcc/
	* dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
	negate dn -- manipulate it directly.

From-SVN: r114922
2006-06-23 11:46:00 +10:00
Roger Sayle 8c3390831f re PR target/27531 (sparc: undefined reference to .LL226 with -O2)
2006-06-22  Roger Sayle  <roger@eyesopen.com>
	    Steven Bosscher  <stevenb.gcc@gmail.com>

	PR target/27531
	* reload1.c (gen_reload): Call mark_jump_label on the new insns
	generated by gen_move_insn to add REG_LABEL notes if necessary.

	* gcc.dg/pr27531-1.c: New test case.


Co-Authored-By: Steven Bosscher <stevenb.gcc@gmail.com>

From-SVN: r114921
2006-06-23 01:19:57 +00:00
GCC Administrator 70259b264e Daily bump.
From-SVN: r114919
2006-06-23 00:17:25 +00:00
John David Anglin f4d8cdf89b MAINTAINERS (OS Port Maintainers): Add myself as hpux maintainer.
* MAINTAINERS (OS Port Maintainers): Add myself as hpux maintainer.

From-SVN: r114913
2006-06-22 23:36:36 +00:00
Steve Ellcey 4fe5abb79e * MAINTAINERS (OS Port Maintainers): Add myself as hpux maintainer.
From-SVN: r114909
2006-06-22 21:38:17 +00:00
Gerald Pfeifer 14d92b1532 Fix my 2006-05-22 entry for doc/install.texi (hijacked -> gone).
From-SVN: r114905
2006-06-22 20:56:04 +00:00
Bob Wilson 03c8b1be89 lib1funcs.asm (MIN_ESA): Delete.
* config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
	(leaf_entry): Remove use of MIN_ESA.

From-SVN: r114903
2006-06-22 19:41:00 +00:00
Thomas Fitzsimmons f23d4dca7e jni.exp (gcj_jni_invocation_test_one): Link against -ljvm, not -lgcj.
2006-06-22  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
	Link against -ljvm, not -lgcj.

From-SVN: r114902
2006-06-22 19:22:42 +00:00
Asher Langton 5270c302f0 re PR fortran/24748 (substring of implicitly typed variable not rejected)
PR fortran/24748
	* primary.c (gfc_match_rvalue): Don't call match_substring for
	implicit non-character types.

	PR fortran/24748
	* gfortran.dg/implicit_8.f90: New.

From-SVN: r114901
2006-06-22 18:30:18 +00:00
Thomas Fitzsimmons 752c5e547d Makefile.am (libjvm_la_LDFLAGS): Do not set -rpath to toolexeclibdir.
2006-06-22  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* Makefile.am (libjvm_la_LDFLAGS): Do not set -rpath to
	toolexeclibdir.
	* Makefile.in: Regenerate.

From-SVN: r114900
2006-06-22 18:24:32 +00:00
Lee Millward 9a171ca4b0 re PR c++/27821 (ICE with invalid ptr-to-member)
PR c++/27821
* decl.c (grokdeclarator): Return error_mark_node on
invalid uses of the scope resolution operator.

From-SVN: r114899
2006-06-22 18:05:17 +00:00
Zdenek Dvorak 0ef9029680 re PR rtl-optimization/28121 (verify_flow_info failed (wrong amount of branch edges after unconditional jump 2))
PR rtl-optimization/28121
	* cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
	the entry edge.

	* gcc.dg/pr28121.c: New test.

From-SVN: r114898
2006-06-22 17:54:45 +00:00
Lee Millward a8fe5a30f2 re PR c++/27805 (ICE with ptr-to-member of incomplete class)
PR c++/27805
* typeck2.c (build_m_component_ref): Use error_operand_p.

From-SVN: r114897
2006-06-22 17:48:41 +00:00
Tom Tromey 6d82bb8521 natField.cc (getAddr): Allow setting of final field when it is accessible.
* java/lang/reflect/natField.cc (getAddr): Allow setting of final
	field when it is accessible.

From-SVN: r114896
2006-06-22 16:59:15 +00:00
Jonathan Lennox 746907b225 hash_prime_size_policy_imp.hpp: Cast to size_t instead.
2006-06-22  Jonathan Lennox  <lennox@cs.columbia.edu>
	    Paolo Carlini  <pcarlini@suse.de>

	* include/ext/pb_ds/detail/resize_policy/
	hash_prime_size_policy_imp.hpp: Cast to size_t instead.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>

From-SVN: r114894
2006-06-22 15:59:22 +00:00
DJ Delorie a1ec220c20 muldiv.md (mulhisi3_i): Only use registers for dest (TN-16C-A156A/E).
* config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
(TN-16C-A156A/E).
(mulhisi3_r): Likewise.

From-SVN: r114891
2006-06-22 11:33:36 -04:00
Ami Tavory 11343881d3 hash_prime_size_policy_imp.hpp: Fix for 64-bit machines.
2006-06-22  Ami Tavory  <atavory@gmail.com>
	
	* include/ext/pb_ds/detail/resize_policy/
	hash_prime_size_policy_imp.hpp: Fix for 64-bit machines.

From-SVN: r114888
2006-06-22 11:17:24 +00:00
Volker Reichelt 728da67271 re PR c++/28111 (ICE with invalid friend in template class)
PR c++/28111
	* pt.c (determine_specialization): Check for invalid decls.

	* g++.dg/template/friend43.C: New test.

From-SVN: r114887
2006-06-22 09:55:42 +00:00
Volker Reichelt 3e9ac7e525 re PR c++/28110 (ICE with invalid template constant parameter)
PR c++/28110
	* pt.c (unify) <case TEMPLATE_PARM_INDEX>: Check for invalid
	parameters.

	* g++.dg/template/crash53.C: New test.

From-SVN: r114885
2006-06-22 09:47:51 +00:00
Volker Reichelt 717f805313 re PR c++/28109 (ICE with typeid of incomplete type)
PR c++/28109
	* rtti.c (get_tinfo_decl_dynamic): Robustify.

	* g++.dg/rtti/incomplete1.C: New test.

From-SVN: r114882
2006-06-22 09:28:02 +00:00
François-Xavier Coudert 1f444077fe re PR fortran/26769 (Implement transpose() and reshape() for real instead of using integer)
PR libfortran/26769
	* ChangeLog: Forgotten in the previous commit.

From-SVN: r114881
2006-06-22 06:05:54 +00:00
Francois-Xavier Coudert ecebfb8be1 re PR fortran/26769 (Implement transpose() and reshape() for real instead of using integer)
PR libfortran/26769

	* iresolve.c (gfc_resolve_reshape): Call reshape_r4 and
	reshape_r8 instead of reshape_4 and reshape_8.
	(gfc_resolve_transpose): Likewise for transpose.

	* Makefile.am: Add r4 and r8 versions of reshape and transpose.
	* Makefile.in: Regenerate.
	* generated/reshape_r4.c: New file.
	* generated/reshape_r8.c: New file.
	* generated/transpose_r4.c: New file.
	* generated/transpose_r8.c: New file.

From-SVN: r114880
2006-06-22 06:04:02 +00:00
GCC Administrator 8ac046f2f1 Daily bump.
From-SVN: r114877
2006-06-22 00:17:19 +00:00
Paolo Carlini e0480f3fdc postypes.h (operator==(const fpos<>&, const fpos<>&), [...]): Add.
2006-06-21  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/postypes.h (operator==(const fpos<>&, const fpos<>&),
	operator!=(const fpos<>&, const fpos<>&)): Add.
	* testsuite/27_io/fpos/mbstate_t/6.cc: New.

From-SVN: r114871
2006-06-21 22:21:45 +00:00
Richard Sandiford 35fa89150a re PR middle-end/28034 (section anchors break -fprofile-generate)
gcc/
	PR middle-end/28034
	* coverage.c (coverage_counter_alloc): Leave the index type
	unspecified.
	(coverage_counter_alloc): Use null arguments for operands 2 and 3
	of the ARRAY_REF.

From-SVN: r114870
2006-06-21 21:27:19 +00:00
Keith Seitz 7691d0d3c9 pthread_stop_world.c (GC_suspend_handler): Redirect to suspension routine if signal is received and thread is flagged...
* pthread_stop_world.c (GC_suspend_handler): Redirect to suspension
        routine if signal is received and thread is flagged SUSPENDED.
        (suspend_self): New function.
        (GC_suspend_thread): New function.
        (GC_resume_thread): New function.
        * include/gc.h (GC_suspend_thread): Declare.
        (GC_resumet_thread): Declare.
        * include/private/pthread_support.h (SUSPENDED): New GC_thread
        flag.

From-SVN: r114869
2006-06-21 20:56:37 +00:00
Francois-Xavier Coudert c3238e32eb trans-expr.c (gfc_conv_missing_dummy, [...]): Replace calls to convert on constant integer nodes by build_int_cst.
* trans-expr.c (gfc_conv_missing_dummy, gfc_conv_unary_op,
	gfc_conv_cst_int_power, gfc_conv_string_tmp,
	gfc_conv_function_call): Replace calls to convert on constant
	integer nodes by build_int_cst.
	* trans-stmt.c (gfc_trans_do): Likewise.
	* trans-io.c (set_internal_unit, transfer_namelist_element):
	Likewise.
	* trans-decl.c (build_entry_thunks): Likewise.

From-SVN: r114868
2006-06-21 20:44:31 +00:00
Joseph Myers 27aeb9c047 * sv.po: Update.
From-SVN: r114864
2006-06-21 20:45:55 +01:00
Andrew Pinski 17d6caa1a3 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
* doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
        section from the "Options for Code Generation Conventions".

From-SVN: r114863
2006-06-21 12:32:13 -07:00