Commit Graph

49785 Commits

Author SHA1 Message Date
Alan Modra c6b97fac18 expr.c (move_block_from_reg): Remove "size" parm.
* expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
	Move code handling pieces not larger than a word to..
	* function.c (assign_parms): ..here, but use change_address instead
	of adjust_address and operand_subword, and expand_binop instead of
	expand_shift.  Adjust calls to move_block_from_reg.
	* expr.h (move_block_from_reg): Update declaration.
	(copy_blkmode_from_reg): Formatting.
	* Makefile.in (function.o): Add $(OPTABS_H) to deps.
	* config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
	move_block_from_reg calls.
	* config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
	* config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
	* config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
	* config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
	* config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
	* config/pa/pa.c (hppa_builtin_saveregs): Likewise.
	* config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
	* config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
	* config/sh/sh.c (sh_builtin_saveregs): Likewise.

From-SVN: r66623
2003-05-09 16:07:25 +09:30
GCC Administrator 8ac3815a08 Daily bump.
From-SVN: r66621
2003-05-09 00:16:06 +00:00
DJ Delorie 06d2285347 stormy16.c (xstormy16_expand_builtin_va_arg): Fix to handle arguments for which MUST_PASS_IN_STACK is true (e.g....
* config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
variable-sized types).
(xstormy16_function_arg): New.  Pass them that way too.
* config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
* config/stormy16/stormy16.h (FUNCTION_ARG): Call it.

From-SVN: r66619
2003-05-08 20:00:44 -04:00
DJ Delorie 001db0e079 20020404-1.x: New, skip for 16-bit targets.
* gcc.c-torture/execute/20020404-1.x: New, skip for 16-bit
targets.
* gcc.c-torture/execute/20021024-1.x: Likewise.
* gcc.c-torture/execute/shiftdi.x: Likewise.
* g++.old-deja/g++.mike/p700.C: Handle 16-bit targets.
* g++.old-deja/g++.other/exprstmt1.C: Likewise.
* gcc.dg/20021018-1.c: Likewise.

From-SVN: r66618
2003-05-08 19:38:04 -04:00
Jeff Sturm bd19c9f4f2 Solaris 7 .register fix.
From-SVN: r66617
2003-05-08 20:41:24 +00:00
Aldy Hernandez d0affb9f03 mklibgcc.in: Use mkinstalldirs when installing multilib directories.
2003-05-07  Aldy Hernandez  <aldyh@redhat.com>

        * mklibgcc.in: Use mkinstalldirs when installing multilib
        directories.

From-SVN: r66613
2003-05-08 20:10:57 +00:00
J"orn Rennecke ddf8ec7e57 sh.c (gen_block_redirect, [...]): Use CODE_FOR_jump_compact instead of CODE_FOR_jump
* sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
	instead of CODE_FOR_jump

From-SVN: r66611
2003-05-08 20:36:55 +01:00
Tom Tromey b8e61e1eb3 configure.host: Set with_libffi_default and libgcj_interpreter to "yes".
* configure.host <powerpc64*-*>: Set with_libffi_default and
	libgcj_interpreter to "yes".

From-SVN: r66609
2003-05-08 18:53:44 +00:00
Scott Gilbertson 146b867529 natGC.cc (drawString): Removed obsolete code.
2003-05-08  Scott Gilbertson  <scottg@mantatest.com>

	* gnu/gcj/xlib/natGC.cc (drawString): Removed obsolete code.

From-SVN: r66608
2003-05-08 18:51:51 +00:00
Gabriel Dos Reis 67f7893c06 objc-act.c (error_with_ivar): Don't use error_with_file_and_line.
* objc/objc-act.c (error_with_ivar): Don't use
	error_with_file_and_line.
	(warn_with_method): Don't use warning_with_file_and_line.

From-SVN: r66607
2003-05-08 17:32:30 +00:00
Gabriel Dos Reis c8608cd6ed stmt.c (emit_locus): New macro.
* stmt.c (emit_locus): New macro.
	(emit_filename): Remove.
	(emit_lineno): Likewise.
	(struct stmt_status): Replace members x_emit_filename and
	x_emit_lineno with x_emit_locus.
	(set_file_and_line_for_stmt): Adjust.
	(expand_expr_stmt_value): Don't use warning_with_file_and_file.
	(warn_if_unused_value): Likewise.
	(check_seenlabel): Likewise.

From-SVN: r66603
2003-05-08 17:09:09 +00:00
David O'Brien cb1f476fff Fix an entry.
From-SVN: r66602
2003-05-08 16:27:20 +00:00
Kaveh R. Ghazi 8ce9f2ec48 * g++.dg/other/packed1.C: Mark xfail for sparc*- not sparc-.
From-SVN: r66601
2003-05-08 15:10:01 +00:00
Gabriel Dos Reis 95035b6fb7 c-decl.c (define_label): Tidy.
* c-decl.c (define_label): Tidy.  Don't use any of
	error_with_file_and_line or warning_with_file_and_file.
	(pending_xref_error): Likewise.
	(store_parm_decls): Likewise.
	(current_function_prototype_locus): New object.  Package from
	current_function_prototype_file and current_function_prototype_line.
	(start_function): Use it.
	(current_function_prototype_file): Remove.
	(current_function_prototype_line): Remove;

From-SVN: r66599
2003-05-08 15:04:44 +00:00
Kaveh R. Ghazi 7dc61d6cfb builtins.c (readonly_data_expr): New function.
gcc:
	* builtins.c (readonly_data_expr): New function.
	(expand_builtin_memmove): Optimize any rodata source, not just
	strings.

testsuite
	gcc.c-torture/execute/string-opt-19.c: Add general rodata tests.
	(bcopy): Call memmove.

From-SVN: r66597
2003-05-08 13:45:38 +00:00
Roger Sayle 53415fa1a1 re PR fortran/8485 (g77 doesn't accept INTEGER*8 constant in PARAMETER multiplication)
PR fortran/8485
	* target.h (FFETARGET_REAL_VALUE_FROM_INT_): Cast to
	HOST_WIDE_INT instead of long.
	(FFETARGET_REAL_VALUE_FROM_LONGLONG_): New macro.
	(FFETARGET_LONGLONG_FROM_INTS_): New macro.
	(ffetarget_convert_complex1_integer4): Implement.
	(ffetarget_convert_complex2_integer4): Implement.
	(ffetarget_convert_integer4_complex1): Implement.
	(ffetarget_convert_integer4_complex2): Implement.
	(ffetarget_convert_integer4_real1): Implement.
	(ffetarget_convert_integer4_real2): Implement.
	(ffetarget_convert_real1_integer4): Implement.
	(ffetarget_convert_real2_integer4): Implement.
	* com.c (ffecom_constantunion): Handle INTEGER*8.
	(ffecom_constantunion_with_type): Likewise.

	* g77.f-torture/compile/8485.f: New test case.

From-SVN: r66596
2003-05-08 13:13:59 +00:00
Paolo Carlini db7948c2d8 std_streambuf.h (setg, setp): Don't touch _M_mode.
2003-05-08  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.

From-SVN: r66595
2003-05-08 11:47:45 +00:00
Jason Merrill 8b5e2ce419 init.c (build_new_1): Don't reuse a TARGET_EXPR in an expression.
* init.c (build_new_1): Don't reuse a TARGET_EXPR in an
        expression.  Undo some of the recent reorg.

From-SVN: r66594
2003-05-08 01:58:44 -04:00
David Mosberger 044075ac29 * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
From-SVN: r66590
2003-05-07 18:15:40 -07:00
Richard Henderson 8231b3f9ff i386.c (ix86_split_long_move): Fix base register mode for XFmode splits for TARGET_64BIT.
* config/i386/i386.c (ix86_split_long_move): Fix base register
        mode for XFmode splits for TARGET_64BIT.

From-SVN: r66589
2003-05-07 17:51:15 -07:00
Richard Henderson 0212907f54 sched-ebb.c (schedule_ebb): Supply the correct starting block number to save_line_notes.
* sched-ebb.c (schedule_ebb): Supply the correct starting
        block number to save_line_notes.

From-SVN: r66588
2003-05-07 17:18:48 -07:00
Richard Henderson c079e6feca toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
* toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
        (dump_file): Likewise.

From-SVN: r66587
2003-05-07 17:16:31 -07:00
GCC Administrator c156358adf Daily bump.
From-SVN: r66586
2003-05-08 00:16:08 +00:00
David Mosberger c35b64c256 crtbegin.asm (__do_jv_register_classes): Don't forget to preserve gp.
* config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
        forget to preserve gp.
        * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.

        * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
        .prologue directive.
        Use .skip instead of data8 for .bss section to make Intel
        Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
        explicit in the .mib bundles and remove the unnecessary stop
        bits.  Replace local labels with normal labels, to make ias
        happy.  Don't register __do_global_ctors_aux here, do it in
        crtend.asm instead.

        * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
        __do_global_ctors_aux in .init_array section instead of
        declaring it as a hidden global.  Replace local labels with
        ordinary labels to make ias happy.

From-SVN: r66584
2003-05-07 15:29:33 -07:00
Richard Henderson a944ceb94a except.c: Revert 04-01 and 04-02 forced-unwind changes.
gcc/
        * except.c: Revert 04-01 and 04-02 forced-unwind changes.
        * flags.h, toplev.c, doc/invoke.texi: Likewise.

        * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
        * unwind.inc (_Unwind_DeleteException): Check for null
        exception_cleanup.

        * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
        * unwind.inc (_Unwind_Resume_or_Rethrow): New.
        * unwind.h: Declare them.
        * libgcc-std.ver (GCC_3.3): Export them.

gcc/cp/
        * cfns.gperf: Comment out POSIX thread cancellation points,
        plus abort and raise.
        * cfns.h: Regenerate.

gcc/testsuite/
        * g++.dg/eh/forced1.C: Expect catch-all handlers to run.
        Verify exception_cleanup not called for rethrows.
        * g++.dg/eh/forced2.C: Test that exception_cleanup is called
        when exiting catch block without rethrowing.
        * g++.dg/eh/forced3.C: New.
        * g++.dg/eh/forced4.C: New.

libstdc++-v3/
        * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
        (__cxa_end_catch): Likewise.
        * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
        _Unwind_Resume_or_Rethrow.
        * libsupc++/eh_personality.cc (empty_exception_spec): New.
        (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
        for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
        exceptions.  Don't push terminate/unexpected to cxa functions.
        (__cxa_call_unexpected): Remove foreign exception fixmes.

From-SVN: r66583
2003-05-07 15:11:38 -07:00
Richard Henderson a21d83cd14 Fix typo in last changelog entry.
From-SVN: r66582
2003-05-07 15:03:58 -07:00
Richard Henderson 9330e97701 unwind-dw2.c (_Unwind_GetGR): Cast pointer to _Unwind_Ptr, not _Unwind_Word.
* unwind-dw2.c (_Unwind_GetGR): Cast pointer to _Unwind_Ptr,
        not _Unwind_Word.

From-SVN: r66581
2003-05-07 15:01:37 -07:00
Benjamin Kosnik 7968097540 cons: New.
2003-05-07  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/27_io/ios_base/cons: New.
	* testsuite/27_io/ios_base/cons/assign_neg.cc: New.
	* testsuite/27_io/ios_base/cons/copy_neg.cc: New.

From-SVN: r66580
2003-05-07 21:27:29 +00:00
Zack Weinberg 046e4e367e stmt.c (force_label_rtx): New function, based on logic formerly found in expand_expr.
* stmt.c (force_label_rtx): New function, based on logic
	formerly found in expand_expr.
	* expr.h: Prototype it.
	* expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
	appropriate.
	* varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.

	* print-tree.c (debug_tree): Free the table after we're done
	with it.  Use putc.

treelang:
	* Make-lang.in: Set -Wno-error for treelang/lex.o.

From-SVN: r66579
2003-05-07 21:14:48 +00:00
Jason Merrill 9d70d418db s/burtle/iterative
From-SVN: r66577
2003-05-07 16:30:32 -04:00
Aldy Hernandez 0dfcf38eb2 fix typo
From-SVN: r66576
2003-05-07 20:05:27 +00:00
Aldy Hernandez a1c6e6c575 200305051.c: Fix triplet.
2003-05-07  Aldy Hernandez  <aldyh@redhat.com>

        * gcc.dg/200305051.c: Fix triplet.

From-SVN: r66573
2003-05-07 20:02:34 +00:00
Aldy Hernandez 12850cf2f8 spe.h: Reverse arguments for __ev_subfw.
2003-05-07  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
        Unreverse arguments for __ev_subw.

        * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.

From-SVN: r66570
2003-05-07 18:20:08 +00:00
Josef Zlomek d5d4eae28d splay-tree.c (splay_tree_predecessor): Fix comment.
* splay-tree.c (splay_tree_predecessor): Fix comment.
	(splay_tree_successor): Fix comment.

From-SVN: r66569
2003-05-07 18:19:36 +00:00
Jason Merrill 5cc5a0d00d hashtab.c (burtle_hash): New fn.
libiberty/
        * hashtab.c (burtle_hash): New fn.
        * configure.in: Add AC_C_BIGENDIAN_CROSS.
        * aclocal.m4: Include accross.m4.
        * configure, config.in: Regenerate.
include/
        * hashtab.h (burtle_hash): Prototype.
        (burtle_hash_object): New macro.

From-SVN: r66565
2003-05-07 14:07:58 -04:00
Nick Clifton 54350d487d Update to include R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
R_XSTORMY16_12 relocs.

From-SVN: r66563
2003-05-07 15:12:32 +00:00
Jason Merrill a65fd2d71b call.c (build_conditional_expr): Don't assume that the folded expression has result_type.
* call.c (build_conditional_expr): Don't assume that the folded
        expression has result_type.

From-SVN: r66561
2003-05-07 11:00:10 -04:00
Alan Modra ffea5d1e43 function.c (assign_parms): Correct reversed reg_parm_stack_space test.
* function.c (assign_parms): Correct reversed reg_parm_stack_space
	test.  Add partial in-regs size to stack_args_size.

From-SVN: r66560
2003-05-07 23:07:57 +09:30
Paolo Carlini cd96b185c5 std_fstream.h (_M_is_indeterminate): Remove.
2003-05-07  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_fstream.h (_M_is_indeterminate): Remove.
	* src/fstream.cc
	(basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
	there is no buffer or __testget == !__testinit.

	* src/fstream.cc
	(basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
	automatically sets, if appropriate, _M_out_cur == _M_in_cur.

	* include/std/std_fstream.h (_M_destroy_pback): Don't set
	unnecessarily _M_pback_cur_save and _M_pback_end_save.

	* include/std/std_fstream.h (_M_set_determinate): Minor tweak.

	* include/std/std_sstream.h (_M_sync): Minor tweak.

	* include/bits/fstream.tcc (close): No need to call
	_M_destroy_pback, setting _M_pback_init to false suffices
	to clean up.

From-SVN: r66557
2003-05-07 12:48:58 +00:00
Gerald Pfeifer da635858a5 invoke.texi (Warning Options): Mark -Wmissing-declarations as a C only option.
* doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
	as a C only option.

From-SVN: r66556
2003-05-07 12:28:18 +00:00
Nathan Sidwell 474f141e8d gcov-io.h (GCOV_LOCKED): New #define.
* gcov-io.h (GCOV_LOCKED): New #define.
	(GCOV_LINKAGE): Make sure it is #defined.
	(gcov_write_string, gcov_write_tag, gcov_write_length,
	gcov_read_string, gcov_time): Poison in libgcov.
	(gcov_seek_end): Remove.
	(gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
	(GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
	GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
	GCOV_TAG_SUMMARY_LENGTH): New #defines.
	(gcov_write_tag, gcov_write_length): Not in libgcov.
	* gcov-io.c (gcov_open): Use GCOV_LOCKED.
	(gcov_write_tag, gcov_write_length): Not in libgcov.
	(gcov_write_tag_length): New.
	(gcov_write_summary): Use gcov_write_tag_length.
	* libgcov.c: Always #include gcov-io.h.
	(IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
	(GCOV_LINKAGE): Define to nothing for L_gcov.
	(gcov_exit): Replace gcov_write_tag, gcov_write_length with
	gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
	* gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
	(read_count_file): Likewise.
	* gcov-dump.c (dump_file): Likewise.
	* coverag.c (read_counts_file): Likewise.

From-SVN: r66555
2003-05-07 10:40:09 +00:00
Mark Mitchell 6cbeaa7e52 re PR other/10658 (Change copyright year.)
PR other/10658
	* gcc.c (process_command): Update copyright date.

From-SVN: r66554
2003-05-07 06:10:49 +00:00
Benjamin Kosnik 655d78212b stl_algo.h: Enums as _S_.
2003-05-06  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/stl_algo.h: Enums as _S_.
	* include/bits/stl_tree.h: Same.
	* include/bits/stl_bvector.h: Same.
	* include/bits/ios_base.h: Same.
	* include/bits/stl_alloc.h: Same.
	* include/ext/stl_hashtable.h: Same.
	* src/ios.cc: And here.

	* include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
	* include/bits/sstream.tcc: Same.

        * include/bits/basic_ios.h: Correct spacing for '< ctype'.

	* include/bits/locale_facets.tcc: Replace __temp to __tmp.

	* include/bits/locale_facets.h (__num_base): Remove protected.
	Use _S_[io]* names for enumerations.
	(_S_format_int): Remove.
	* include/bits/locale_facets.tcc: Same.
	* src/locale.cc: Same.

	* include/std/std_sstream.h (stringbuf::str): Tweak formatting.

From-SVN: r66552
2003-05-07 05:01:59 +00:00
Bruce Korb 057c56df52 Correct spurious whitespace differences
From-SVN: r66549
2003-05-07 01:29:58 +00:00
Tom Tromey b5f3edcfe1 * verify.cc: Reverted previous patch.
From-SVN: r66548
2003-05-07 01:25:20 +00:00
Tom Tromey ac7aae5e2b verify.java: New file.
* libjava.lang/verify.java: New file.
	* libjava.lang/verify.out: New file.

From-SVN: r66547
2003-05-07 01:23:16 +00:00
GCC Administrator 0b745a5bcc Daily bump.
From-SVN: r66544
2003-05-07 00:16:07 +00:00
Phil Edwards f9af203f79 Fix typo in previous commit (3.3 not 3.3.0).
From-SVN: r66542
2003-05-06 23:20:14 +00:00
Phil Edwards 26979a179f install.texi (mips-*-*): Add note about libstdc++.
2003-05-06  Phil Edwards  <pme@gcc.gnu.org>

	* doc/install.texi (mips-*-*):  Add note about libstdc++.

From-SVN: r66541
2003-05-06 23:17:59 +00:00
DJ Delorie 14b5683275 stormy16.c (xstormy16_function_profiler): New.
* config/stormy16/stormy16.c (xstormy16_function_profiler): New.
* config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
* config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.

From-SVN: r66538
2003-05-06 18:47:45 -04:00