Commit Graph

71640 Commits

Author SHA1 Message Date
Eric Botcazou 02f1d17ccc Fix regexp.
From-SVN: r106429
2005-11-03 11:38:14 +00:00
Eric Botcazou bb11103a96 re PR rtl-optimization/23585 (mem_fun* code fine with -O1, bus error with -O2)
PR rtl-optimization/23585
	* rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
	that can't trap plus a constant integer, if the mode has zero size.

From-SVN: r106427
2005-11-03 11:31:46 +00:00
Ulrich Weigand ac746a73f0 re PR target/24620 (internal compiler error: in find_reloads, at reload.c:3730)
ChangeLog:

	PR target/24620
	* config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
	as operand 2.
	("*insv<mode>_reg_extimm"): Likewise.

testsuite/ChangeLog:

	PR target/24620
	* gcc.dg/pr24620.c: New test.

From-SVN: r106422
2005-11-03 04:16:52 +00:00
Joseph Myers a92c58c273 re PR c/24329 (segfault with -Wall and long integer literal)
PR c/24329
	* c-pretty-print.c (pp_c_type_specifier): Do not recurse if
	c_common_type_for_mode returns an unnamed type.

testsuite:
	* gcc.dg/format/unnamed-1.c: New test.

From-SVN: r106421
2005-11-03 03:30:36 +00:00
Richard Henderson 150cdc9e16 re PR target/9350 (-fomit-frame-pointer does not work for main)
PR target/9350
        PR target/24374
        * dwarf2out.c (dwarf2out_reg_save_reg): New.
        (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
        * function.c (assign_parms): Use calls.internal_arg_pointer.
        (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
        code.
        * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
        (TARGET_CALLS): Add it.
        * target.h (struct gcc_target): Add calls.internal_arg_pointer.
        * targhooks.c (default_internal_arg_pointer): New.
        * targhooks.h (default_internal_arg_pointer): Declare.
        * tree.h (dwarf2out_reg_save_reg): Declare.
        * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
        * config/i386/i386.c (dbx_register_map): Add return column.
        (dbx64_register_map, svr4_dbx_register_map): Likewise.
        (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
        (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.        (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
        (ix86_save_reg): Save force_align_arg_pointer.
        (ix86_emit_save_regs): Make regno unsigned.
        (ix86_emit_save_regs_using_mov): Likewise.
        (ix86_expand_prologue): Handle force_align_arg_pointer.
        (ix86_expand_epilogue): Likewise.
        * config/i386/i386.h: (dbx_register_map): Update.
        (dbx64_register_map, svr4_dbx_register_map): Update.
        (struct machine_function): Add force_align_arg_pointer.
        * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
        (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
        (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.

From-SVN: r106420
2005-11-02 17:40:33 -08:00
Mark Mitchell 3a0588c4e0 re PR c++/22434 (ICE in simplify_{,gen_}subreg)
PR c++/22434
	* call.c (build_conditional_expr): Do bad conversions, if there's
	no other choice.
	PR c++/22434
	* g++.dg/expr/cond8.C: New test.

From-SVN: r106418
2005-11-03 01:25:13 +00:00
GCC Administrator 85ffcaf292 Daily bump.
From-SVN: r106414
2005-11-03 00:17:18 +00:00
Mark Mitchell e4ba253407 re PR c++/24560 ("insufficient contextual information to determine type" is not a helpful error message)
PR c++/24560
	* parser.c (cp_parser_postfix_dot_deref_expression): Improve error
	message for use of overloaded functions on LHS of "." operator.
	PR c++/24560
	* g++.dg/parse/dot1.C: New test.

From-SVN: r106408
2005-11-02 23:36:05 +00:00
Jan Hubicka fb530c72ed re PR target/23303 (4.1 generates sall + addl instead of leal)
PR target/23303
	* i386.md: Add peep2 for simplyfing array accesses.
	* gcc.dg/i386-lea.c: New test

From-SVN: r106406
2005-11-02 23:21:22 +00:00
Ulrich Weigand d98ad4101f re PR target/24615 (internal compiler error: in print_shift_count_operand, at config/s390/s390.c:4025)
ChangeLog:

	PR target/24615
	* config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
	* config/s390/s390.c (s390_decompose_shift_count): New function.
	(s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
	(print_shift_count_operand): Use s390_decompose_shift_count.
	* config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
	Use s390_decompose_shift_count.  Do not accept any non-base hard regs.

testsuite/ChangeLog:

	PR target/24615
	* gcc.dg/pr24615.c: New test.

From-SVN: r106405
2005-11-02 23:16:31 +00:00
Ulrich Weigand f55b946535 re PR target/24600 (unrecognizable instruction)
ChangeLog:

	PR target/24600
	* loop.c (loop_givs_rescan): Use force_operand to expand
	complex GIVs.

testsuite/ChangeLog:

	PR target/24600
	* gcc.dg/pr24600.c: New test.

From-SVN: r106404
2005-11-02 23:06:26 +00:00
Andreas Tobler 3532623302 libjava.exp (libjava_find_lib): Add dylib to the shared library extensions.
2005-11-02  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/lib/libjava.exp (libjava_find_lib): Add dylib to the shared
	library extensions.

From-SVN: r106403
2005-11-02 23:02:14 +01:00
Andrew Pinski b426200a44 re PR middle-end/22429 (-1073741824 <= n && n <= 1073741823 is true where n is 1073741824)
PR 22429
        * fold-const.c (build_range_check): Use unsigned when signed
        overflow is undefined also.  If etype is subtype, make sure that
        the subtraction is in the supertype.

From-SVN: r106400
2005-11-02 13:44:17 -08:00
Mark Mitchell 88a33c3406 re PR c++/19253 (bad error message / ICE for invalid template parameter)
PR c++/19253
	* parser.c (cp_parser_postfix_expression): Use
	cp_parser_elaborated_type_specifier to handle typename-types in
	functional casts.
	(cp_parser_enclosed_argument_list): Skip ahead to the end of the
	template argument list if the closing ">" is not found.
	PR c++/19253
	* g++.dg/parse/typename8.C: Compile with -w -fpermissive.
	* g++.dg/parse/typename9.C: New test.
	* g++/dg/parse/typename10.C: Likewise.

From-SVN: r106398
2005-11-02 21:34:51 +00:00
Andrew Pinski eca18fb4b6 re PR fortran/18157 (ice-on-valid code, pointer to user-defined type, fold-struct.c)
2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>

        PR fortran/18157
        * gfortran.fortran-torture/compile/defined_type_1.f90: New test.
        * gfortran.fortran-torture/compile/defined_type_2.f90: New
        test.   
        * gfortran.fortran-torture/compile/defined_type_3.f90:
        New test.

2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>

        PR fortran/18157
        * trans-array.c (gfc_conv_resolve_dependencies): Use the correct
        type for the temporary array.
        * trans-expr.c (gfc_trans_assignment): Pass lss
        instead of lss_section
        to gfc_conv_resolve_dependencies to get the
        correct type.

From-SVN: r106396
2005-11-02 13:01:54 -08:00
Mark Mitchell 86414779a6 re PR c++/24569 (ICE in add_AT_specification, at dwarf2out.c:4966)
PR c++/24569
	* pt.c (instantiate_decl): Use cp_finish_decl, not
	finish_static_data_member_decl. 
	PR c++/24569
	* g++.dg/debug/static1.C: New test.

From-SVN: r106392
2005-11-02 18:30:26 +00:00
Josh Conner c80e917130 crash38.C: moved into proper directory...
* g++.dg/crash38.C: moved into proper directory...
* g++.dg/template/crash42.C: ...here

From-SVN: r106389
2005-11-02 18:24:46 +00:00
Richard Henderson 525e67c1e8 re PR target/24178 (generates code that produces unaligned access exceptions)
PR target/24178
        * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
        by MEM_ALIGN.

From-SVN: r106388
2005-11-02 10:20:07 -08:00
Richard Kenner f85f1ca7b8 (tree_int_cst_sgn): Fix typo in comment.
From-SVN: r106387
2005-11-02 12:53:14 -05:00
Paolo Carlini 3d8aa000c3 [multiple changes]
2005-11-02  Thomas Kho  <tkho@ucla.edu>

	PR libstdc++/23425
	* include/bits/stl_vector.h (vector<>::clear): Open code
	in terms of _Destroy.

2005-11-02  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/vector.tcc (vector<>::_M_fill_assign): Qualify fill_n.

From-SVN: r106379
2005-11-02 10:27:54 +00:00
Hans-Peter Nilsson ced61f82af re PR testsuite/18338 (mmix-knuth-mmixware testsuite failure: gcc.dg/bitfld-4.c and g++.dg/abi/bitfield4.C)
PR target/18338
	* gcc.dg/bitfld-4.c, g++.dg/abi/bitfield4.C: Gate on
	pcc_bitfield_type_matters || default_packed.

From-SVN: r106377
2005-11-02 03:02:00 +00:00
Hans-Peter Nilsson 51b4e4093a re PR testsuite/23304 (testsuite failures: g++.dg/ext/packed3.C, packed4.C, packed8.c and g++.dg/other/crash-4.C)
PR testsuite/23304
	* lib/target-supports.exp (check_effective_default_packed): New proc.
	* g++.dg/ext/packed3.C, g++.dg/ext/packed8.C, g++.dg/other/crash-4.C:
	Gate expected errors on target ! default_packed.
	* g++.dg/ext/packed4.C: Gate on target ! default_packed.

From-SVN: r106376
2005-11-02 02:52:30 +00:00
Hans-Peter Nilsson edc5687ec1 * lib/target-supports.exp
(check_effective_target_pcc_bitfield_type_matters): New proc.
	* gcc.dg/bitfld-3.c: Gate on target pcc_bitfield_type_matters.

From-SVN: r106375
2005-11-02 02:49:24 +00:00
Hans-Peter Nilsson aa5c7673b8 target-supports.exp (check_effective_default_packed): New proc.
* lib/target-supports.exp (check_effective_default_packed): New proc.
	* g++.dg/ext/packed3.C, g++.dg/ext/packed8.C, g++.dg/other/crash-4.C:
	Gate expected errors on target ! default_packed.
	* g++.dg/ext/packed4.C: Gate on target ! default_packed.

From-SVN: r106374
2005-11-02 02:41:44 +00:00
Richard Henderson 745f2a84b9 re PR target/21518 (unable to find a register with -fPIC and -O2 and non inlining static function)
PR 21518
        * loop.c (scan_loop): Do not propagate computations to a hard
        register destination with SMALL_REGISTER_CLASSES.

From-SVN: r106373
2005-11-01 18:12:32 -08:00
GCC Administrator 12674da393 Daily bump.
From-SVN: r106368
2005-11-02 00:17:11 +00:00
Bryce McKinlay 39bfe5c798 gc_priv.h: Increase MAX_ROOT_SETS to 1024.
2005-11-01  Bryce McKinlay  <mckinlay@redhat.com>

        * include/private/gc_priv.h: Increase MAX_ROOT_SETS to 1024.

From-SVN: r106362
2005-11-02 00:06:30 +00:00
Tobias Schlüter c96cfa49c2 decl.c (gfc_match_entry): Function entries don't need an argument list if there's no RESULT clause.
fortran/
	* decl.c (gfc_match_entry): Function entries don't need an argument
	list if there's no RESULT clause.
testsuite/
	* gfortran.fortran-torture/execute/entry_9.f90: Revert previous
	change (r106358).

From-SVN: r106361
2005-11-02 01:04:28 +01:00
Tobias Schlüter 0be8cb80ee re PR fortran/24008 (gfortran too permissive about ENTRY syntax)
fortran/
	PR fortran/24008
	* decl.c (gfc_match_entry): Function entries need an argument list.
testsuite/
	PR fortran/24008
	* gfortran.dg/entry_5.f90: New.
	* gfortran.fortran-torture/execute/entry_9.f90: Fix syntax error.

From-SVN: r106358
2005-11-01 22:55:02 +01:00
Erik Edelmann 6a8697062c re PR fortran/24245 (-fdump-parse-tree gives ICE for CONTAINED functions)
fortran/
2005-11-01  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR 24245
        * trans.c (gfc_generate_code): Move code to create a main
        program symbol from here ...
        * parse.c (main_program_symbol): ... to this new
        function, setting the locus from gfc_current_locus
        instead of ns->code->loc.
        (gfc_parse_file):  Call main_program_symbol for main programs.

From-SVN: r106353
2005-11-01 21:40:06 +00:00
Tobias Schlüter 92119f26f7 re PR fortran/24404 (Poor Error Description, bad error order)
PR fortran/24404
	* resolve.c (resolve_symbol): Output symbol names in more error
	messages, clarify error message.

From-SVN: r106346
2005-11-01 21:05:54 +01:00
Joseph Myers 8a82b045bf rs6000.c (rs6000_rtx_costs): Do not add extra costs for MULT inside PLUS or MINUS.
* config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
	costs for MULT inside PLUS or MINUS.

From-SVN: r106345
2005-11-01 19:57:29 +00:00
Tobias Schlüter 2e71c2a06e dump-parse-tree.c (show_symtree): Revert change unintentionally committed in r106246.
* dump-parse-tree.c (show_symtree): Revert change unintentionally
	committed in r106246.

From-SVN: r106341
2005-11-01 20:05:34 +01:00
Bob Wilson 89d86f1397 * gcc.dg/intmax_t-1.c: Disable for xtensa-*-elf*.
From-SVN: r106337
2005-11-01 18:16:46 +00:00
Bob Wilson 8533368889 xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
* config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
	(TRAMPOLINE_SIZE): Round up to 60.
	* config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.

From-SVN: r106336
2005-11-01 18:07:13 +00:00
Joseph Myers f415efe34c * gcc_update: Include revision number in LAST_UPDATED.
From-SVN: r106327
2005-11-01 12:59:50 +00:00
Paolo Carlini 2747345455 re PR libstdc++/24595 (std::tr1::get_deleter not declared)
2005-11-01  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/24595
	* include/tr1/boost_shared_ptr.h (shared_ptr<>::get_deleter):
	Move out of shared_ptr.
	* testsuite/tr1/2_general_utilities/memory/shared_ptr/misc/24595.cc:
	New.

From-SVN: r106321
2005-11-01 11:01:40 +00:00
Paul Thomas 53096259e6 re PR fortran/21565 (namelist in block data is illegal)
2005-11-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/21565
	* symbol.c (check_conflict): An object cannot be in a namelist and in
	block data.

	PR fortran/18737
	* resolve.c (resolve_symbol): Set the error flag to
	gfc_set_default_type, in the case of an external symbol, so that
	an error message is emitted if IMPLICIT NONE is set.

	PR fortran/14994
	* gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SECNDS to enum.
	* check.c (gfc_check_secnds): New function.
	* intrinsic.c (add_functions): Add call to secnds.
	* iresolve.c (gfc_resolve_secnds): New function.
	* trans-intrinsic (gfc_conv_intrinsic_function): Add call to
	secnds via case GFC_ISYM_SECNDS.
	* intrinsic.texi: Add documentation for secnds.

2005-11-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/14994
	* libgfortran/intrinsics/date_and_time.c: Add interface to
	the functions date_and_time for the intrinsic function secnds.

2005-11-01  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/21565
	gfortran.dg/namelist_blockdata.f90: New test.

	PR fortran/18737
	gfortran.dg/external_implicit_none.f90: New test.

	PR fortran/14994
	* gfortran.dg/secnds.f: New test.

From-SVN: r106317
2005-11-01 05:53:29 +00:00
GCC Administrator 4b2a5715ee Daily bump.
From-SVN: r106306
2005-11-01 00:17:06 +00:00
James E Wilson eef2514298 Restore old AT_frame_base code for targets that don't use dwarf2 unwind info.
Partial fix.
PR debug/24444
* dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
ifdef.  Put ifdefs around call in gen_subprogram_die.
(compute_frame_pointer_to_cfa_displacement): Likewise.
(gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
not defined.

From-SVN: r106299
2005-10-31 15:39:29 -08:00
James E Wilson e5f9a909f1 Rewrite fix for PR 17356, fix for enable checking ada build failure.
cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.

From-SVN: r106297
2005-10-31 15:24:36 -08:00
Jan Hubicka d63f0fe58a re PR middle-end/24093 (cgraph exhausts virtual memory building 197.parser with -profile-use -O3)
PR middle-end/24093
	* cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative

From-SVN: r106291
2005-10-31 21:07:29 +00:00
Jan Hubicka d8ff1871ed re PR target/20928 (ICE: unrecognizable insns with -fPIC -O1)
PR target/20928
	* i386.c (legitimize_pic_address): Deal with large immediates.

	* gcc.c-torture/compile/pr20928.c: New test.

From-SVN: r106284
2005-10-31 18:42:23 +00:00
Jan Hubicka 2b557972cf re PR gcov-profile/20815 (-fprofile-use barfs with "coverage mismatch for function '...' while reading counter 'arcs'.")
PR profile/20815
	* coverage.c (coverage_checksum_string): Fix code to stip random seeds
	from symbol names while computing checkup.

From-SVN: r106283
2005-10-31 18:23:44 +00:00
Mark Kettenis 0432a5de96 from Mark Kettenis <kettenis@gnu.org>
* floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
New variables.

* floatformat.h (enum floatformat_byteorders): Add
floatformat_vax.
(floatformat_vax_aingle, floatformat_vax_double): Declare.

From-SVN: r106281
2005-10-31 12:52:38 -05:00
Andreas Jaeger 44bcbae366 .cvsignore are not needed for subversion, remove them.
From-SVN: r106279
2005-10-31 18:20:58 +01:00
Jan Hubicka f372b26ff8 re PR gcov-profile/24487 (Basic block frequencies inaccurate)
PR profile/24487
	* predict.c (predict_loops): Do not estimate more than
	MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
	* predict.def (MAX_PRED_LOOP_ITERATIONS): Define.

From-SVN: r106276
2005-10-31 14:48:57 +00:00
Richard Kenner 52f661769d (setup_one_parameter): Add comment to last change.
From-SVN: r106274
2005-10-31 09:05:12 -05:00
Andrew MacLeod a56b5394f0 re PR tree-optimization/19097 (Quadratic behavior with many sets for the same register in VRP)
2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
	
	PR tree-optimization/19097
	* tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.

From-SVN: r106272
2005-10-31 13:38:05 +00:00
J"orn Rennecke cd7ec127de optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
2005-10-31  J"orn Rennecke <joern.rennecke@st.com>

	* optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.

From-SVN: r106271
2005-10-31 13:30:14 +00:00