Commit Graph

70382 Commits

Author SHA1 Message Date
Kazuhiro Inaoka 2a6a63c1ae re PR target/23309 (m32r-linux-gcc ICE: in extract_insn, at recog.c)
PR 23309
* config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when deciding
  which instruction sequence to use.

From-SVN: r102943
2005-08-10 08:20:18 +00:00
Volker Reichelt a23e08d92d re PR c++/20646 (ICE on illegal code: "extern static" struct member)
PR c++/20646
	* decl.c (grokdeclarator): Reset storage_class after error.

	* g++.dg/other/mult-stor1.C: New test.

From-SVN: r102935
2005-08-10 00:20:32 +00:00
GCC Administrator e04f4a0c4d Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r102932.2
2005-08-10 00:16:43 +00:00
Andrew Pinski 61403f5e03 pr18299-1.c: Move to ...
2005-08-09  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc.c-torture/pr18299-1.c: Move to ...
        * gcc.c-torture/compile/pr18299-1.c: Here.

From-SVN: r102927
2005-08-09 16:28:16 -07:00
Thomas Koenig 303eed0652 character_passing.f90: Fix types for LSAME.
2005-08-09  Thomas Koenig  <Thomas.Koenig@online.de>

	* gfortran/fortran.torture/execute/character_passing.f90:
	Fix types for LSAME.

From-SVN: r102925
2005-08-09 20:53:52 +00:00
Andrew Pinski 4e7feced54 part of PR objc/21992
2005-08-09  Andrew Pinski  <pinskia@physics.uc.edu>

        part of PR objc/21992
        * objc-act.c (handle_class_ref): The ref decl is always referenced.

From-SVN: r102920
2005-08-09 10:53:25 -07:00
Andrew Pinski 18a6e93f23 c99_classification_macros_c.cc: xfail on *-*-darwin*.
2005-08-09  Andrew Pinski  <pinskia@physics.uc.edu>

        * testsuite/26_numerics/cmath/c99_classification_macros_c.cc:
        xfail on *-*-darwin*.

From-SVN: r102919
2005-08-09 10:51:27 -07:00
François-Xavier Coudert ae8b87895f check.c (gfc_check_ttynam_sub, [...]): Add check functions for new intrinsics TTYNAM and ISATTY.
* check.c (gfc_check_ttynam_sub, gfc_check_isatty): Add check
	functions for new intrinsics TTYNAM and ISATTY.
	* intrinsic.c (add_functions, add_subroutines): Add new
	intrinsics.
	* intrinsic.h: Add prototypes for new check and resolve
	functions.
	* iresolve.c (gfc_resolve_isatty, gfc_resolve_ttynam_sub): New
	resolve functions for intrinsics TTYNAM and ISATTY.
	* gfortran.h (gfc_generic_isym_id): Add symbol for ISATTY.
	* trans-intrinsic.c: Add case for GFC_ISYM_ISATTY.
	* Makefile.am: Add file intrinsics/tty.c to Makefile process.
	* Makefile.in: Regenerate.
	* io/io.h: Prototypes for new functions stream_isatty and
	stream_ttyname.
	* io/unix (stream_isatty, stream_ttyname): New functions to call
	isatty() and ttyname() on a given unit.
	* intrinsics/tty.c: New file to implement g77 intrinsics TTYNAM
	and ISATTY.

From-SVN: r102915
2005-08-09 17:33:17 +00:00
Dorit Nuzman 0ed414a4f6 tree-vect-transform.c (vect_create_epilog_for_reduction): Set BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
* tree-vect-transform.c (vect_create_epilog_for_reduction): Set
        BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.

From-SVN: r102913
2005-08-09 15:58:59 +00:00
Andrew Pinski 323dff9a7c try-catch-8.m: Enable for all targets.
2005-08-09  Andrew Pinski  <pinskia@physics.uc.edu>

        * objc.dg/try-catch-8.m: Enable for all targets.

From-SVN: r102912
2005-08-09 06:37:14 -07:00
Richard Guenther 9bc150501a c-common.c (builtin_function_2): Remove.
2005-08-09  Richard Guenther  <rguenther@suse.de>

	* c-common.c (builtin_function_2): Remove.
	(def_builtin_1): New function.
	(c_common_nodes_and_builtins): Use def_builtin_1 to
	build builtin functions.

From-SVN: r102911
2005-08-09 12:05:09 +00:00
Jie Zhang 07da68fd8d uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
* config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
	* config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
	* config/bfin/bfin.c (bfin_return_in_memory): Update to really match
	Visual DSP.

From-SVN: r102906
2005-08-09 09:47:52 +00:00
Jakub Jelinek 1e39a15138 scanner.c (preprocessor_line): Don't write beyond the end of flag buffer.
* scanner.c (preprocessor_line): Don't write beyond the end of flag
	buffer.

From-SVN: r102902
2005-08-09 10:08:28 +02:00
Jakub Jelinek 6a26ea58f6 ppc_closure.S (ffi_closure_SYSV): Use DW_CFA_offset_extended_sf rather than DW_CFA_GNU_negative_offset_extended.
* src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
	DW_CFA_offset_extended_sf rather than
	DW_CFA_GNU_negative_offset_extended.
	* src/powerpc/sysv.S (ffi_call_SYSV): Likewise.

From-SVN: r102900
2005-08-09 10:06:16 +02:00
James A. Morrison 2f133f4681 tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use fold_binary instead of fold_build2 since we don't care about the resulting tree.
2005-08-09  James A. Morrison  <phython@gcc.gnu.org>

        * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
        fold_binary instead of fold_build2 since we don't care about the
        resulting tree.
        (loop_niter_by_eval): Likewise.
        (compare_trees): Likewise.
        (proved_non_wrapping_p): Likewise.

From-SVN: r102897
2005-08-09 04:24:56 +00:00
James A. Morrison f14e694e82 re PR c/23161 (Labels and empty statement warnings)
2005-08-09  James A. Morrison  <phython@gcc.gnu.org>

        PR c/23161
        PR c/23165
        * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
        if the if is really empty.

From-SVN: r102896
2005-08-09 04:21:26 +00:00
Steven Bosscher 2ef571e2c2 re PR tree-optimization/23234 (ICE in verify_flow_info())
gcc/
	PR tree-optimization/23234
	* tree-ssa-math-opts.c (place_reciprocal): New enum.
	(execute_cse_reciprocals_1): Replace the 'phi' argument with an
	argument of the new enum.
	(execute_cse_reciprocals): Add reciprocals for function arguments
	on the unique successor edge of the entry block.  Update other calls
	to execute_cse_reciprocals_1.

testsuite/
	PR tree-optimization/23234
	* gcc.dg/tree-ssa/pr23234.c: New test.

From-SVN: r102895
2005-08-09 03:28:38 +00:00
Jerry DeLisle 3d092c45bf re PR libfortran/23154 (Currupt string and segfault in formatted read.)
2005-08-08  Jerry DeLisle  <jvdelisle@verizon.net>

        PR libfortran/23154
        * io/transfer.c (data_transfer_init): Initialize
        current_unit->bytes_left for a read.

From-SVN: r102893
2005-08-09 01:56:04 +00:00
GCC Administrator 7c2d3f19a1 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r102889.2
2005-08-09 00:16:16 +00:00
Richard Henderson a9c5ddf90c re PR middle-end/22439 (ICE with char VLA and __SIZE_TYPE__ argument (so no cast))
PR 22439
        * gimplify.c (gimplify_one_sizepos): Preserve the original type.

From-SVN: r102879
2005-08-08 14:38:24 -07:00
Bob Wilson 224694090c * expr.c (write_complex_part): Return after handling MEM.
From-SVN: r102878
2005-08-08 19:47:59 +00:00
Josh Conner 2d88fcc27d re PR rtl-optimization/23241 (Invalid code generated for comparison of uchar to 255)
PR rtl-optimization/23241
	* combine.c (simplify_comparison): Fix error in determining
	whether to lift a subreg from comparison.

From-SVN: r102869
2005-08-08 18:30:09 +00:00
Josh Conner bf460b19f0 re PR rtl-optimization/23241 (Invalid code generated for comparison of uchar to 255)
PR rtl-optimization/23241
	* gcc.dg/char-compare.c: New test.

From-SVN: r102868
2005-08-08 18:28:46 +00:00
Volker Reichelt a85cb0d7f0 re PR c++/22508 (ICE after invalid operator new)
PR c++/22508
	* init.c (build_new_1): Check for empty candidate list.

	* g++.dg/init/new13.C: New test.

From-SVN: r102863
2005-08-08 17:03:33 +00:00
David Edelsohn 7a4eca6648 re PR target/18506 (Altivec definitions of vec_init)
PR target/18506
	* config/rs6000/altivec.md (vec_init<mode>): New.
	(vec_set<mode>): New.
	(vec_extract<mode>): New.
	* config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
	(rs6000_expand_vector_set): New.
	(rs6000_expand_vector_extract): New.
	(rs6000_legitimate_offset_address_p): Offset addresses are valid
	for Altivec modes before reload.
	(altivec_expand_vec_init_builtin): New.
	(get_element_number): New.
	(altivec_expand_vec_set_builtin): New.
	(altivec_expand_vec_ext_builtin): New.
	(altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
	builtins.
	(altivec_init_builtins): Init vec_init, vec_set, and vec_ext
	builtins.
	* config/rs6000/rs6000.h (rs6000_builtins): Add
	ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
	ALTIVEC_BUILTIN_VEC_EXT_<mode>.
	* config/rs6000/rs6000-protos.h: Declare new functions.

From-SVN: r102861
2005-08-08 12:36:26 -04:00
Jan Hubicka 47efdea45e i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
* i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
	(legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
	* i386.md (movdi*): Use pic_32bit_operand.
	* predicates.md (pic_32bit_operand): New.

From-SVN: r102860
2005-08-08 16:29:51 +00:00
Nathan Sidwell 063fb392d2 class.c (build_class_ref): Wrap the primary class type in a NOP_EXPR.
* class.c (build_class_ref): Wrap the primary class type in a
	NOP_EXPR.
	* parse.y (java_complete_lhs) <COMPONENT_REF case>: Extract the
	primary class type from the NOP_EXPR in which it was placed.

From-SVN: r102859
2005-08-08 14:56:18 +00:00
Nathan Sidwell f303a99631 re PR c++/21166 (g++ gives error on reference to packed structure elements)
.:	PR c++/21166
	* stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
testsuite:
	PR c++/21166
	* g++.dg/other/crash-4.C: Adjust
	* g++/dg/ext/packed9.C: New.

From-SVN: r102858
2005-08-08 14:22:35 +00:00
Paolo Bonzini 4de997d137 configure.in (CC_FOR_TARGET, [...]): Find them with NCN_STRICT_CHECK_TARGET_TOOL, like the other target tools...
2005-08-08  Paolo Bonzini  <bonzini@gnu.org>

	* configure.in (CC_FOR_TARGET, CXX_FOR_TARGET, GCJ_FOR_TARGET,
	GCC_FOR_TARGET, RAW_CXX_FOR_TARGET, GFORTRAN_FOR_TARGET): Find
	them with NCN_STRICT_CHECK_TARGET_TOOL, like the other target
	tools; remove code to manually set them.
	(Target tools): Look in the environment for them.
	* Makefile.tpl (CC_FOR_TARGET, CXX_FOR_TARGET, GCJ_FOR_TARGET,
	GCC_FOR_TARGET, RAW_CXX_FOR_TARGET, GFORTRAN_FOR_TARGET): Redefine.
	(AS_FOR_TARGET, LD_FOR_TARGET, NM_FOR_TARGET): Look into gcc
	build directory.
	(CONFIGURED_CC_FOR_TARGET, CONFIGURED_CXX_FOR_TARGET,
	CONFIGURED_GCJ_FOR_TARGET, CONFIGURED_GCC_FOR_TARGET,
	CONFIGURED_GFORTRAN_FOR_TARGET, USUAL_CC_FOR_TARGET,
	USUAL_CXX_FOR_TARGET, USUAL_GCJ_FOR_TARGET, USUAL_GCC_FOR_TARGET,
	USUAL_RAW_CXX_FOR_TARGET, USUAL_GFORTRAN_FOR_TARGET): New.
	(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE,
	RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE, RECURSE_FLAGS): Delete.
	* configure: Regenerate.
	* Makefile.in: Regenerate.

From-SVN: r102855
2005-08-08 09:19:17 +00:00
Richard Sandiford e6a854210d re PR middle-end/21964 (broken tail call at -O2 or more)
PR middle-end/21964
	* gcc.c-torture/execute/pr21964-1.c: New test.

From-SVN: r102850
2005-08-08 07:45:22 +00:00
Richard Sandiford 7a7c5ab01a re PR c/22458 (ICE on missing brace)
PR c/22458
	* gcc.dg/pr22458-1.c: New test.

From-SVN: r102845
2005-08-08 07:38:30 +00:00
James A. Morrison a5ad726923 tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
2005-08-07  James A. Morrison  <phython@gcc.gnu.org>

        * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
        (test_for_singularity): Use fold_build2.

From-SVN: r102844
2005-08-08 04:43:23 +00:00
John David Anglin 914a6ee8a5 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
From-SVN: r102841
2005-08-08 02:19:39 +00:00
GCC Administrator f366779337 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r102838.2
2005-08-08 00:16:16 +00:00
Steven G. Kargl c7877252d4 Forgot to remove and add these files in the previous commit.
* io/backspace.c: File removed, contents moved to ...
	* io/endfile.c: Ditto.
	* io/rewind.c: Ditto.
	* io/file_pos.c: New file, ... here.

From-SVN: r102836
2005-08-07 22:59:00 +00:00
Janne Blomqvist 6403ec5ff6 [multiple changes]
2005-08-07   Janne Blomqvist <jblomqvi@cc.hut.fi>

        PR fortran/22390
        * dump-parse-tree.c (gfc_show_code_node): Add case for FLUSH.
        * gfortran.h: Add enums for FLUSH.
        * io.c (gfc_free_filepos,match_file_element,match_filepos): Modify
        comment appropriately.  (gfc_match_flush): New function.
        * match.c (gfc_match_if): Add match for flush.
        * match.h: Add prototype.
        * parse.c (decode_statement): Add flush to 'f' case.
        (next_statement): Add case for flush. (gfc_ascii_statement): Likewise.
        * resolve.c (resolve_code): Add flush case.
        * st.c (gfc_free_statement): Add flush case.
        * trans-io.c: Add prototype for flush.
        (gfc_build_io_library_fndecls): Build fndecl for flush.
        (gfc_trans_flush): New function.
        * trans-stmt.h: Add prototype.
        * trans.c (gfc_trans_code): Add case for flush.

2005-08-07  Janne Blomqvist  <jblomqvi@cc.hut.fi>

        PR fortran/22390
        * io/backspace.c: File removed, contents moved to ...
        * io/endfile.c: Ditto.
        * io/rewind.c: Ditto.
        * io/file_pos.c: New file, ... here.
        * Makefile.am: Add file_pos.c to list, remove obsolete files.
        * Makefile.in: Regenerated.

2005-08-07  Janne Blomqvist <jblomqvi@cc.hut.fi>
            Steven G. Kargl <kargls@comcast.net>

        PR fortran/22390
        * gfortran.dg/flush_1.f90: New test.

Co-Authored-By: Steven G. Kargl <kargls@comcast.net>

From-SVN: r102835
2005-08-07 22:56:19 +00:00
Danny Smith f18faab7c4 cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
* config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
	(COMMON_ASM_OP) Define.
	* config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
	(ix86_encode_section_info): Likewise.
	(TARGET_ENCODE_SECTION_INFO): Conditionally define as
	SUBTARGET_ENCODE_SECTION_INFO.

From-SVN: r102834
2005-08-07 21:13:27 +00:00
Bruce Korb 776c2384b2 Finish checkin of date: 2005/06/14 23:59:47; author: ro;
for rev 1.23 of inclhack.def:  adjust tests/base/math.h for new
content for AAB_darwin7_9_long_double_funcs_2 fix.

From-SVN: r102833
2005-08-07 19:14:12 +00:00
Richard Henderson 455c08cb64 re PR middle-end/21894 (Invalid operand to binary operator with nested function)
PR 21894
        * tree-nested.c (convert_local_reference): Save and restore val_only
        around component_ref and friends.  Clear walk_subtrees by default.

From-SVN: r102832
2005-08-07 12:01:09 -07:00
James A. Morrison febfc59a95 tree-convert.c (convert): Use fold_build1 instead of fold (build1.
2005-08-07  James A. Morrison  <phython@gcc.gnu.org>

        * tree-convert.c (convert): Use fold_build1 instead of
        fold (build1.

From-SVN: r102831
2005-08-07 16:36:33 +00:00
Peter O'Gorman 3300bf0737 Make Darwin -bundle option work. Patch from Peter O'Gorman.
PR 21366
* gcc.c (process_command): Check the argument to -b has a dash.
* doc/invoke.texi: Update -b and -V docs.

From-SVN: r102829
2005-08-06 19:39:12 -07:00
James E Wilson e2ba06d66d Delete unused obsolete files for irix5cross64 configure target.
* config/mips/cross64.h, config/mips/t-cross64: Delete.

From-SVN: r102828
2005-08-06 17:26:01 -07:00
GCC Administrator c633f011cb Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r102825.2
2005-08-07 00:17:18 +00:00
Francois-Xavier Coudert e087fdd81c io.h: Change DEFAULT_TEMPDIR to /tmp instead of /var/tmp.
* io/io.h: Change DEFAULT_TEMPDIR to /tmp instead of /var/tmp.
	* io/unix.c (tempfile): Look at the TEMP environment variable
	to find the temporary files directory. Whitespace correction.

From-SVN: r102822
2005-08-06 22:57:46 +00:00
Volker Reichelt 9f6206d9df re PR c++/23191 (ICE on invalid throw in template)
PR c++/23191
	* pt.c (tsubst) <case METHOD_TYPE>: Check for error_mark_node
	before calling build_exception_variant.

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

From-SVN: r102819
2005-08-06 22:38:44 +00:00
Volker Reichelt bf2f7328ff re PR c++/19498 (ICE on invalid reference in template parameter)
PR c++/19498
	* pt.c (tsubst_decl) <case TEMPLATE_DECL>: Return ERROR_MARK_NODE
	if substitution of template args did not succeed.

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

From-SVN: r102818
2005-08-06 22:22:47 +00:00
Michael Matz 8402b3e18a * method.c (use_thunk): Call init_insn_lengths.
From-SVN: r102817
2005-08-06 21:25:09 +00:00
Michael Matz 3e0a6ca6ae genattrtab.c (write_attr_get, [...]): Use insn_code member only if only one insn is associated with the value.
* genattrtab.c (write_attr_get, write_attr_case): Use insn_code
	member only if only one insn is associated with the value.

From-SVN: r102816
2005-08-06 21:11:54 +00:00
Francois-Xavier Coudert 9da375252f * primary.c (match_hollerith_constant): Fix typo.
From-SVN: r102814
2005-08-06 19:18:45 +00:00
James A. Morrison b53b1b04f5 re PR treelang/23072 (multiple runs of treelang testsuite does not work...)
2005-08-06  James A. Morrison  <phython@gcc.gnu.org>

        PR treelang/23072
        * Make-lang.in: Remove old testing cruft.

From-SVN: r102813
2005-08-06 18:25:31 +00:00