Commit Graph

72022 Commits

Author SHA1 Message Date
Diego Novillo 8c5285e1cb re PR tree-optimization/24840 (ICE process_assert_insertions_for, at tree-vrp.c:2807)
PR 24840
	* tree-vrp.c (infer_value_range): Return false if STMT is a
	block terminator and its basic block has no successors.

testsuite/

	PR 24840
	* gcc.dg/tree-ssa/pr24840.c: New test.

From-SVN: r106930
2005-11-14 21:59:03 -05:00
Mike Stump 1f4c2c57da i386.c (override_options): -masm=intel isn't supported on darwin.
* config/i386/i386.c (override_options): -masm=intel isn't
	supported on darwin.
	* doc/invoke.texi (i386 and x86-64 Options): Likewise.

From-SVN: r106927
2005-11-15 01:44:36 +00:00
Joseph Myers 3bea02d1f4 crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and vfork after including auto-host.h.
* crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
	vfork after including auto-host.h.

From-SVN: r106924
2005-11-15 01:21:29 +00:00
Janis Johnson f2025db263 re PR testsuite/24841 (dg-require compilation-test trigged on test with additional-sources barfs)
PR testsuite/24841
	* gcc.dg/attr-weakref-1.c: Rearrange test directives.

From-SVN: r106923
2005-11-15 01:18:45 +00:00
Alan Modra 46de9b3caf re PR rtl-optimization/22002 (internal consistency failure with -funroll-loops)
PR rtl-optimization/22002
	* combine.c (distribute_notes): Detect cases where a reg dies
	two or more times in a bb, including on the insn we are combining,
	and place the death note on the correct range.

From-SVN: r106921
2005-11-15 11:29:21 +10:30
Dale Johannesen 12431170a7 20051113-1.c: New.
2005-11-14  Dale Johannesen  <dalej@apple.com>

        * gcc.c-torture/execute/20051113-1.c:  New.

From-SVN: r106920
2005-11-15 00:47:17 +00:00
Dale Johannesen 69498c64a3 expmed.c (store_bit_field): Add offset unconditionally for memory targets.
2005-11-14  Dale Johannesen  <dalej@apple.com>

        * expmed.c (store_bit_field):  Add offset unconditionally for
        memory targets.
        (extract_bit_field):  Don't force extzv or extv operand into
        a register if field is too big.

From-SVN: r106919
2005-11-15 00:45:55 +00:00
GCC Administrator 53acd3845f Daily bump.
From-SVN: r106914
2005-11-15 00:17:08 +00:00
Mark Mitchell 2f1b1731e6 re PR c++/24687 (ICE after error)
PR c++/24687
	* pt.c (check_explicit_specialization): Don't check for C linkage.
	(push_template_decl_real): Likewise.
	* parser.c (cp_parser_explicit_specialization): Check here.
	(cp_parser_template_declaration_after_export): And here.
	PR c++/24687
	* g++.dg/template/crash43.C: New test.

From-SVN: r106909
2005-11-15 00:15:09 +00:00
Mark Mitchell 37edf0a6c4 parser.c (cp_lexer_get_preprocessor_token): Initialize keyword field.
* parser.c (cp_lexer_get_preprocessor_token): Initialize keyword
	field.

From-SVN: r106907
2005-11-15 00:04:43 +00:00
Jason Merrill 63752e29bb re PR c++/24580 (virtual base class cause exception not to be caught)
PR c++/24580
        * method.c (locate_ctor): Skip all artificial parms, not just
        'this'.

From-SVN: r106901
2005-11-14 15:07:45 -05:00
Janne Blomqvist 8520690170 re PR libfortran/21468 (vectorizing libfortran)
2005-11-14  Janne Blomqvist  <jb@gcc.gnu.org>

        PR fortran/21468
        * Makefile.am: Add -ftree-vectorize for compiling matmul.
        * m4/matmul.m4: Add const and restrict to type declarations as
        appropriate.
        * m4/matmull.m4: Likewise.
        * Makefile.in: Regenerated.
        * generated/matmul_*.c: Likewise.

From-SVN: r106898
2005-11-14 21:48:31 +02:00
Mohan Embar d0568f737a natVMNetworkInterfaceWin32.cc: Include java/net/VMNetworkInterface.h.
* java/net/natVMNetworkInterfaceWin32.cc: Include
	java/net/VMNetworkInterface.h.

From-SVN: r106895
2005-11-14 17:19:11 +00:00
Mohan Embar 99b8b611f5 natPlainSocketImplWin32.cc: Updated copyright.
* gnu/java/net/natPlainSocketImplWin32.cc: Updated copyright.
	(read): Handle count == 0 case.

Co-Authored-By: David Daney <ddaney@avtrex.com>

From-SVN: r106894
2005-11-14 17:15:18 +00:00
Daniel Jacobowitz f16fe45f32 arm.c (pic_labelno): New.
* config/arm/arm.c (pic_labelno): New.
	(arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
	LABEL_REF.  Pass only the labelno to PIC insns.
	(arm_call_tls_get_addr, legitimize_tls_address): Likewise.
	(arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
	* arm.md (UNSPEC_PIC_LABEL): New constant.
	(pic_add_dot_plus_four, pic_add_dot_plus_eight)
	(tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
	Use the correct label prefix.

From-SVN: r106893
2005-11-14 17:07:42 +00:00
Daniel Jacobowitz e66e1c6806 arm.c (legitimize_tls_address): Use correct rtx for REQ_EQUIV note.
* config/arm/arm.c (legitimize_tls_address): Use correct rtx for
	REQ_EQUIV note.

From-SVN: r106892
2005-11-14 16:32:49 +00:00
Gerald Pfeifer ba0966205a cpplib.h (struct cpp_callbacks): Annotate error with ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0).
* include/cpplib.h (struct cpp_callbacks): Annotate error with
	ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0).

Co-Authored-By: Ian Lance Taylor <ian@airs.com>

From-SVN: r106891
2005-11-14 16:28:55 +00:00
Daniel Jacobowitz b967586450 * gcc.c-torture/unsorted/unsorted.exp: Sort tests before running them.
From-SVN: r106890
2005-11-14 16:28:48 +00:00
Mark Mitchell e2d281617f * parser.c (eof_token): Add initializer for ambiguous_p.
From-SVN: r106889
2005-11-14 15:29:03 +00:00
Richard Earnshaw a112ad758a loop-invariant.c: Include tm_p.h.
* loop-invariant.c: Include tm_p.h.
	* Makefile.in: Updated.

From-SVN: r106888
2005-11-14 15:03:06 +00:00
Richard Earnshaw 3912d29147 loop-invariant.c: Include tm_p.h.
* loop-invariant.c: Include tm_p.h.
	* Makefile.in: Updated.

From-SVN: r106887
2005-11-14 14:52:15 +00:00
Robert Dewar e0ac6309e2 re PR ada/18434 (Ada: cannot build gnattools on Tru64 UNIX V5.1B)
2005-11-14  Robert Dewar  <dewar@adacore.com>

	PR ada/18434
	* osint-m.adb: Add pragma Elaborate_All for Osint

From-SVN: r106886
2005-11-14 14:05:58 +01:00
Mark Mitchell e1f0e7a6a7 re PR c++/24817 (g++ accepts multiple function template declarations even if exception-specification doesn't match.)
PR c++/24817
	* decl.c (check_redeclaration_exception_specification): New
	function.
	(duplicate_decls): Use it.
	* error.c (fndecl_to_string): Print the template parameter list.
	PR c++/24817
	* g++.dg/eh/spec8.C: New test.

From-SVN: r106884
2005-11-14 05:45:45 +00:00
Hans-Peter Nilsson c748a2c7c5 * gcc.dg/pack-test-1.c: Gate on ! default_packed.
From-SVN: r106883
2005-11-14 04:23:39 +00:00
Mark Mitchell 91b1ca65f3 re PR c++/20293 (Wrong diagnostic for ambiguous access)
PR c++/20293
	* cxx-pretty-print.c (pp_cxx_statement): Print qualifying scopes
	for namespaces.
	(pp_cxx_original_namespace_definition): Likewise.
	* name-lookup.c (ambiguous_decl): Don't issue error messages;
	instead return lists of ambiguous candidates.
	(select_decl): Handle ambiguous namespace lookups.
	* parser.c (cp_token): Add ambiguous_p.
	(cp_lexer_get_preprocessor_token): Set it.
	(cp_parser_diagnose_invalid_type_name): Avoid duplicate messages
	when a qualified name uses an invalid scope. 
	(cp_parser_primary_expression): Print ambiguous candidates.
	(cp_parser_type_parameter): Adjust comment to reflect new
	parameter name for cp_parser_lookup_name.
	(cp_parser_template_argument): Likewise.
	(cp_parser_elaborated_type_specifier): Likewise.
	(cp_parser_namespace_name): Likewise.
	(cp_parser_class_name): Print ambiguous candidates.
	(cp_parser_lookup_name): Rename ambiguous_p parameter to
	ambiguous_decls.  Use it to return a list of ambiguous candiates
	when a lookup is ambiguous.
	(cp_parser_lookup_name_simple): Adjust comment to reflect new
	parameter name for cp_parser_lookup_name.
	
	PR c++/20293
	* g++.dg/parse/ambig4.C: New test.
	* g++.dg/tc1/dr101.C: Adjust error markers.
	* g++.dg/lookup/strong-using-2.C: Likewise.
	* g++.dg/lookup/ambig5.C: Likewise.
	* g++.dg/lookup/ambig4.C: Likewise.
	* g++.dg/parse/crash22.C: Likewise.

From-SVN: r106879
2005-11-14 01:45:19 +00:00
Hans-Peter Nilsson 43258b67a9 * gcc.dg/pr19340.c: Skip for mmix-*-* and cris-*-*.
From-SVN: r106877
2005-11-14 01:04:09 +00:00
GCC Administrator a334b64ca5 Daily bump.
From-SVN: r106874
2005-11-14 00:17:15 +00:00
John David Anglin 5dcc96058c pa.c (store_reg): Revise generation of frame notes in large frames.
* pa.c (store_reg): Revise generation of frame notes in large frames.
	(set_reg_plus_d): Likewise.

From-SVN: r106867
2005-11-13 18:06:55 +00:00
Andrew MacLeod e84d806450 re PR tree-optimization/24709 (4.1.0 HEAD crashes with enable-checking on huge switch statement)
PR tree-optimization/24709
	* tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
	loop check.

From-SVN: r106865
2005-11-13 16:09:14 +00:00
Paolo Carlini 81daf4baea [multiple changes]
2005-11-13  Jonathan Wakely  <redi@gcc.gnu.org>

	* include/tr1/boost_shared_ptr.h (get_deleter):
	Declare before shared_ptr.
	(shared_ptr<>): Declare get_deleter as friend.
	(shared_ptr<>:_M_get_deleter): Private.

2005-11-13  Douglas Gregor  <doug.gregor@gmail.com>

	PR libstdc++/24818
        * include/tr1/ref_wrap_iterate.h
        (reference_wrapper::operator()()): Don't dereferene the result of
        get() before calling it; it's already a reference.
        * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
        Test nullary calls to reference_wrappers.

From-SVN: r106863
2005-11-13 12:14:51 +00:00
Paolo Carlini 3270a66b55 [multiple changes]
2005-11-13  Jonathan Wakely  <redi@gcc.gnu.org>

	* include/tr1/boost_shared_ptr.h (get_deleter):
	Declare before shared_ptr.
	(shared_ptr<>): Declare get_deleter as friend.
	(shared_ptr<>:_M_get_deleter): Private.

2005-11-13  Douglas Gregor  <doug.gregor@gmail.com>

	PR libstdc++/24818
        * include/tr1/ref_wrap_iterate.h
        (reference_wrapper::operator()()): Don't dereferene the result of
        get() before calling it; it's already a reference.
        * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
        Test nullary calls to reference_wrappers.

From-SVN: r106862
2005-11-13 12:14:15 +00:00
Eric Botcazou 7a9018e45b gthr-posix95.h: Remove declaration of pthread_mutexattr_settype and duplicate declaration of...
* gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
	and duplicate declaration of pthread_self.

From-SVN: r106861
2005-11-13 10:16:43 +00:00
Eric Botcazou 51caaefe17 re PR middle-end/24003 (17 ACATS regressions (fixed point or decimal artihmetic))
PR middle-end/24003
	* calls.c (expand_call): If TARGET is a MEM and some part of the
	argument area has been saved, force TARGET to a register.


Co-Authored-By: Ian Lance Taylor <ian@airs.com>

From-SVN: r106860
2005-11-13 09:55:11 +00:00
Francois-Xavier Coudert 5d723e5434 fget.c: New file.
* intrinsics/fget.c: New file.
	* intrinsics/ftell.c: New file.
	* io/unix.c (stream_offset): New function.
	* io/io.h: Add prototype for stream_offset.
	* Makefile.am: Add intrinsics/fget.c and intrinsics/ftell.c.
	* Makefile.in: Regenerate.

	* intrinsic.c (add_functions): Add COMPLEX, FTELL, FGETC, FGET,
	FPUTC, FPUT, AND, XOR and OR intrinsic functions.
	(add_subroutines): Add FGETC, FGET, FPUTC, FPUT and FTELL intrinsic
	subroutines.
	* gfortran.h: Add GFC_ISYM_AND, GFC_ISYM_COMPLEX, GFC_ISYM_FGET,
	GFC_ISYM_FGETC, GFC_ISYM_FPUT, GFC_ISYM_FPUTC, GFC_ISYM_FTELL,
	GFC_ISYM_OR, GFC_ISYM_XOR.
	* iresolve.c (gfc_resolve_and, gfc_resolve_complex,
	gfc_resolve_or, gfc_resolve_fgetc, gfc_resolve_fget,
	gfc_resolve_fputc, gfc_resolve_fput, gfc_resolve_ftell,
	gfc_resolve_xor, gfc_resolve_fgetc_sub, gfc_resolve_fget_sub,
	gfc_resolve_fputc_sub, gfc_resolve_fput_sub, gfc_resolve_ftell_sub):
	New functions.
	* check.c (gfc_check_complex, gfc_check_fgetputc_sub,
	gfc_check_fgetputc, gfc_check_fgetput_sub, gfc_check_fgetput,
	gfc_check_ftell, gfc_check_ftell_sub, gfc_check_and): New functions.
	* simplify.c (gfc_simplify_and, gfc_simplify_complex, gfc_simplify_or,
	gfc_simplify_xor): New functions.
	* trans-intrinsic.c (gfc_conv_intrinsic_function): Add cases for
	GFC_ISYM_AND, GFC_ISYM_COMPLEX, GFC_ISYM_FGET, GFC_ISYM_FGETC,
	GFC_ISYM_FPUT, GFC_ISYM_FPUTC, GFC_ISYM_FTELL, GFC_ISYM_OR and
	GFC_ISYM_XOR.
	* intrinsic.h: Add prototypes for all functions added to iresolve.c,
	simplify.c and check.c.

	* gfortran.dg/complex_intrinsic_1.f90: New test.
	* gfortran.dg/complex_intrinsic_2.f90: New test.
	* gfortran.dg/fgetc_1.f90: New test.
	* gfortran.dg/fgetc_2.f90: New test.
	* gfortran.dg/fgetc_3.f90: New test.
	* gfortran.dg/ftell_1.f90: New test.
	* gfortran.dg/ftell_2.f90: New test.
	* gfortran.dg/gnu_logical_1.F: New test.
	* gfortran.dg/gnu_logical_2.f90: New test.

From-SVN: r106859
2005-11-13 09:33:19 +00:00
Razya Ladelsky a8bd670c5a ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type checking.
2005-11-13  Razya Ladelsky <razya@il.ibm.com>

        * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
        checking.

From-SVN: r106858
2005-11-13 09:08:42 +00:00
Andreas Jaeger 42068fd90a check.tpl: Handle CVS additionally.
* check.tpl: Handle CVS additionally.

From-SVN: r106855
2005-11-13 09:43:28 +01:00
Jason Merrill d3e4cd0137 re PR c++/22489 (ICE in dwarf2out_finish with using namespace in a local class and compiler built constructors)
PR c++/22489
        * dwarf2out.c (gen_subprogram_die): Force a declaration die for
        lazily declared methods.
        (force_decl_die): Stop if forcing out the context already make a
        DIE for the decl.
        (force_type_die): Likewise.

From-SVN: r106853
2005-11-13 02:34:50 -05:00
Andrew Pinski 646c38e94e re PR middle-end/24820 (SEGV in integer_valued_real_p at gcc/builtins.c:6711)
2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/24820
        * testsuite/gcc.dg/pr24820.c: New test.
2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/24820
        * builtins.c (integer_valued_real_p): Add break in
        REAL_CST having TREE_OVERFLOW set.

From-SVN: r106851
2005-11-12 22:18:48 -08:00
GCC Administrator a8db974a4a Daily bump.
From-SVN: r106847
2005-11-13 00:17:13 +00:00
Zdenek Dvorak 85a43114c9 tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting addressing modes during calculation of costs.
* tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
	addressing modes during calculation of costs.

	* testsuite/gcc.dg/tree-ssa/loop-2.c: Fix outcome.
	* testsuite/gcc.dg/tree-ssa/loop-3.c: Change type of loop control
	variable.

From-SVN: r106842
2005-11-12 23:27:13 +00:00
Eric Botcazou 4cfe2e7514 function.c (assign_stack_local_1): Restrict sanity check on frame size overflow to 32-bit and above platforms.
* function.c (assign_stack_local_1): Restrict sanity check
	on frame size overflow to 32-bit and above platforms.

From-SVN: r106840
2005-11-12 22:58:48 +00:00
John David Anglin 86b5dedbee nested-func-4.c: Add dg-options for hppa*-*-hpux*.
testsuite/24614
	* gcc.dg/nested-func-4.c: Add dg-options for hppa*-*-hpux*.

From-SVN: r106837
2005-11-12 21:54:23 +00:00
Hans-Peter Nilsson fa7682c729 cris.exp: New file.
* gcc.target/cris/cris.exp: New file.
	* gcc.target/cris/rld-legit1.c: New test.
	* gcc.target/cris/rld-legit2.c: New test.

From-SVN: r106836
2005-11-12 21:10:23 +00:00
Hans-Peter Nilsson 15883505db cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
* config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
	* config/cris/cris.c: Include reload.h.
	(cris_initial_elimination_offset): New function.
	* config/cris/cris-protos.h: (cris_initial_elimination_offset):
	Prototype.

From-SVN: r106835
2005-11-12 21:09:11 +00:00
Jakub Jelinek 73bebd55f0 re PR c++/24780 (ICE set_mem_attributes_minus_bitpos)
PR c++/24780
	* typeck.c (complete_type): Set TYPE_NEEDS_CONSTRUCTING
	and TYPE_HAS_NONTRIVIAL_DESTRUCTOR flags for all variants
	of array type.

	* g++.dg/opt/pr24780.C: New test.

From-SVN: r106833
2005-11-12 21:44:55 +01:00
Jakub Jelinek f74dcfb701 re PR c++/24761 (templates and inline-asm and "+")
PR c++/24761
	* pt.c (tsubst_copy_asm_operands): New function.
	(tsubst_expr) <case ASM_EXPR>: Use it.

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

From-SVN: r106831
2005-11-12 21:42:23 +01:00
Richard Guenther 6375779a59 gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
2005-11-12  Richard Guenther  <rguenther@suse.de>

	* gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.

From-SVN: r106829
2005-11-12 19:29:30 +00:00
Steven G. Kargl 02c92593ed re PR libfortran/24787 ([libfortran] SCAN is broken)
PR libfortran/24787
* intrinsics/string_intrinsics.c (string_scan): Off by one; Fix
  typos in nearby comment.

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

From-SVN: r106828
2005-11-12 19:16:40 +00:00
Jan Hubicka 230dedb327 expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize to compare against 0 when possible.
* expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
	to compare against 0 when possible.
	* gcc.target/i386/minmax-1.c: New.
	* gcc.target/i386/minmax-2.c: New.

From-SVN: r106827
2005-11-12 17:35:06 +00:00
Jie Zhang df25924573 bfin.h (REGISTER_NAMES, [...]): Rearrange I/B/L registers.
* config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
	HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
	REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
	* config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
	in the new order.

From-SVN: r106824
2005-11-12 16:08:35 +00:00