gcc.git
22 years agos390.c (s390_final_chunkify): Re-run shorten_branches after emitting ltorg insns.
Ulrich Weigand [Wed, 13 Feb 2002 17:55:02 +0000 (17:55 +0000)]
s390.c (s390_final_chunkify): Re-run shorten_branches after emitting ltorg insns.

* config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
after emitting ltorg insns.

* config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
*cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
*muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
*abssf2): Fix "op_type" attribute.

From-SVN: r49739

22 years agodecl.c (builtin_function): Set TREE_THIS_VOLATILE on return fns.
Jason Merrill [Wed, 13 Feb 2002 17:36:20 +0000 (12:36 -0500)]
decl.c (builtin_function): Set TREE_THIS_VOLATILE on return fns.

        * decl.c (builtin_function): Set TREE_THIS_VOLATILE on return fns.
        (finish_function): Don't warn if current_function_returns_null.

From-SVN: r49738

22 years agojni.cc (_Jv_JNI_AttachCurrentThread): env->locals assigned correctly.
Martin Kahlert [Wed, 13 Feb 2002 17:34:52 +0000 (17:34 +0000)]
jni.cc (_Jv_JNI_AttachCurrentThread): env->locals assigned correctly.

2002-02-13  Martin Kahlert  <martin.kahlert@infineon.com>

* jni.cc (_Jv_JNI_AttachCurrentThread): env->locals assigned
correctly.

From-SVN: r49737

22 years ago* typeck2.c (digest_init): Do handle values of vector type.
Jason Merrill [Wed, 13 Feb 2002 17:32:24 +0000 (12:32 -0500)]
* typeck2.c (digest_init): Do handle values of vector type.

From-SVN: r49736

22 years agore PR libgcj/5671 (verify.cc problem merging local variables)
Todd Stock [Wed, 13 Feb 2002 17:12:27 +0000 (17:12 +0000)]
re PR libgcj/5671 (verify.cc problem merging local variables)

2002-02-13  Todd Stock  <toddastock@yahoo.com>

Fix for PR libgcj/5671:
* verify.cc (state::merge): Handle case where we're merging
against an interface.

From-SVN: r49735

22 years agomkconfig.sh: Avoid using a subshell redirect.
Douglas B Rupp [Wed, 13 Feb 2002 15:37:41 +0000 (10:37 -0500)]
mkconfig.sh: Avoid using a subshell redirect.

* mkconfig.sh: Avoid using a subshell redirect.
($output.T): Change to $(output)T.
(ENABLE_NLS): Remove unneeded undef.

From-SVN: r49734

22 years agovms.h (MD_EXEC_PREFIX, [...]): Define.
Douglas B Rupp [Wed, 13 Feb 2002 15:32:02 +0000 (10:32 -0500)]
vms.h (MD_EXEC_PREFIX, [...]): Define.

* config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
* config/alpha/x-vms (libsubdir): Define.

From-SVN: r49733

22 years agovms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle register frame procedures.
Douglas B Rupp [Wed, 13 Feb 2002 15:19:27 +0000 (10:19 -0500)]
vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle register frame procedures.

* config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
register frame procedures. Optimize retrieving context.

From-SVN: r49732

22 years agot-vms (MULTILIB_OPTIONS): Define.
Douglas B Rupp [Wed, 13 Feb 2002 15:14:49 +0000 (10:14 -0500)]
t-vms (MULTILIB_OPTIONS): Define.

* config/alpha/t-vms (MULTILIB_OPTIONS): Define.
(MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
* config/alpha/vms.h (ASM_FILE_START): Write .arch directive.

From-SVN: r49731

22 years agoalias.c (find_base_term, [...]): Make same change as for find_base_value.
Richard Kenner [Wed, 13 Feb 2002 14:50:53 +0000 (14:50 +0000)]
alias.c (find_base_term, [...]): Make same change as for find_base_value.

* alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
Make same change as for find_base_value.

From-SVN: r49730

22 years agoh8300.h (MODES_TIEABLE_P): Accept a combination of QImode and SImode.
Kazu Hirata [Wed, 13 Feb 2002 13:07:48 +0000 (13:07 +0000)]
h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and SImode.

* config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
of QImode and SImode.

From-SVN: r49729

22 years agoh8300.c (h8300_adjust_insn_length): Correct the length computation of movsi.
Kazu Hirata [Wed, 13 Feb 2002 12:51:53 +0000 (12:51 +0000)]
h8300.c (h8300_adjust_insn_length): Correct the length computation of movsi.

* config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
length computation of movsi.
* config/h8300/h8300.md (movsi_h8300hs): Correct the length.

From-SVN: r49728

22 years agoh8300.md (subqi3): Tighten the predicate for operands[2] to register_operand.
Kazu Hirata [Wed, 13 Feb 2002 12:42:33 +0000 (12:42 +0000)]
h8300.md (subqi3): Tighten the predicate for operands[2] to register_operand.

* config/h8300/h8300.md (subqi3): Tighten the predicate for
operands[2] to register_operand.

From-SVN: r49727

22 years agotypeck2.c (digest_init, [...]): Treat vectors like arrays.
Jason Merrill [Wed, 13 Feb 2002 12:05:01 +0000 (07:05 -0500)]
typeck2.c (digest_init, [...]): Treat vectors like arrays.

        * typeck2.c (digest_init, process_init_constructor): Treat vectors
        like arrays.

From-SVN: r49726

22 years ago* i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
Jan Hubicka [Wed, 13 Feb 2002 10:09:16 +0000 (11:09 +0100)]
* i386.md (fop_*_comm_*): allow nonimmediate in the first operand.

From-SVN: r49725

22 years agoDaily bump.
GCC Administrator [Wed, 13 Feb 2002 08:16:17 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r49722

22 years agodata.c (ffedata_eval_offset_): Only convert index...
Toon Moene [Wed, 13 Feb 2002 07:39:56 +0000 (08:39 +0100)]
data.c (ffedata_eval_offset_): Only convert index...

2002-02-13  Toon Moene  <toon@moene.indiv.nluug.nl>

* data.c (ffedata_eval_offset_): Only convert index,
low and high bound in data statements to default integer
if they are constants.  Use a copy of the data structure.

From-SVN: r49721

22 years agodbg_mlc.c (GC_debug_generic_malloc): Removed.
Bryce McKinlay [Wed, 13 Feb 2002 05:38:39 +0000 (05:38 +0000)]
dbg_mlc.c (GC_debug_generic_malloc): Removed.

* dbg_mlc.c (GC_debug_generic_malloc): Removed.

* sparc_mach_dep.S: Rename from sparc_mach_dep.s as it is a
preprocessor file.
* mips_sgi_mach_dep.S: Likewise.
* Makefile.am: Update for above changes.
* Makefile.in: Rebuilt.

From-SVN: r49720

22 years agors6000.md: Use predicate altivec_register_operand for altivec_lvx* and altivec_stvx*.
Aldy Hernandez [Wed, 13 Feb 2002 04:00:27 +0000 (04:00 +0000)]
rs6000.md: Use predicate altivec_register_operand for altivec_lvx* and altivec_stvx*.

2002-02-12  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.md: Use predicate altivec_register_operand
        for altivec_lvx* and altivec_stvx*.
        ("*movv4si_internal"): Add constraint for loading from GPRs.
        ("*movv8hi_internal1"): Same.
        ("*movv16qi_internal1"): Same.
        ("*movv4sf_internal1"): Same.

        * config/rs6000/rs6000.c (altivec_register_operand): New.

        * config/rs6000/rs6000.h (PREDICATE_CODES): Add
        altivec_register_operand.

From-SVN: r49719

22 years agommix.c (mmix_assemble_integer): Don't handle SYMBOL_REF.
Hans-Peter Nilsson [Wed, 13 Feb 2002 02:11:51 +0000 (02:11 +0000)]
mmix.c (mmix_assemble_integer): Don't handle SYMBOL_REF.

* config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
handle SYMBOL_REF.

From-SVN: r49718

22 years ago* exception.cc (std::abort): Mark as noreturn.
Tom Tromey [Wed, 13 Feb 2002 00:29:42 +0000 (00:29 +0000)]
* exception.cc (std::abort): Mark as noreturn.

From-SVN: r49717

22 years agoweak1.C: weak attributes not supported on cygwin
David Billinghurst [Tue, 12 Feb 2002 22:46:25 +0000 (22:46 +0000)]
weak1.C: weak attributes not supported on cygwin

2002-02-12  David Billinghurst <David.Billinghurst@riotinto.com>

* g++.dg/warn/weak1.C: weak attributes not supported on cygwin

From-SVN: r49716

22 years agoc-typeck.c (digest_init): Handle vectors.
Stan Shebs [Tue, 12 Feb 2002 22:26:12 +0000 (22:26 +0000)]
c-typeck.c (digest_init): Handle vectors.

        * c-typeck.c (digest_init): Handle vectors.
        (really_start_incremental_init): Same.
        (pop_init_level): Same.
        (process_init_element): Same.

        * varasm.c (output_constant): Same.

        * expr.c (clear_storage): Same.
        (store_constructor): Same.

        * gcc.dg/altivec-3.c: New.

From-SVN: r49715

22 years agoexplow.c (hard_function_value): Add comment explaining signed/unsigned comparison.
Eric Christopher [Tue, 12 Feb 2002 21:55:29 +0000 (21:55 +0000)]
explow.c (hard_function_value): Add comment explaining signed/unsigned comparison.

2002-02-12  Eric Christopher  <echristo@redhat.com>

* explow.c (hard_function_value): Add comment explaining
signed/unsigned comparison.

From-SVN: r49714

22 years agojump.c (never_reached_warning): Add finish argument.
Jakub Jelinek [Tue, 12 Feb 2002 21:39:42 +0000 (22:39 +0100)]
jump.c (never_reached_warning): Add finish argument.

* jump.c (never_reached_warning): Add finish argument.
If finish is NULL, stop on CODE_LABEL, otherwise stop before first
real insn after end.
* rtl.h (never_reached_warning): Adjust prototype.
* cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
* cfgrtl.c (flow_delete_block): Pass b->end as finish to
never_reached_warning.

* gcc.dg/Wunreachable-1.c: New test.
* gcc.dg/Wunreachable-2.c: New test.

From-SVN: r49713

22 years ago* gcc.dg/c90-const-expr-3.c, gcc.dg/c99-const-expr-3.c: New tests.
Joseph Myers [Tue, 12 Feb 2002 21:33:12 +0000 (21:33 +0000)]
* gcc.dg/c90-const-expr-3.c, gcc.dg/c99-const-expr-3.c: New tests.

From-SVN: r49712

22 years ago* config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
Graham Stott [Tue, 12 Feb 2002 20:59:07 +0000 (20:59 +0000)]
* config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.

From-SVN: r49711

22 years agoconfigure.in: Re-apply 2001-06-26 configure change.
Richard Henderson [Tue, 12 Feb 2002 18:40:38 +0000 (10:40 -0800)]
configure.in: Re-apply 2001-06-26 configure change.

        * configure.in: Re-apply 2001-06-26 configure change.
        * configure: Rebuild.

From-SVN: r49709

22 years agoh8300.c (shift_alg_hi): Improve the 15-bit logical shifts on H8/300.
Kazu Hirata [Tue, 12 Feb 2002 15:31:54 +0000 (15:31 +0000)]
h8300.c (shift_alg_hi): Improve the 15-bit logical shifts on H8/300.

* config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
logical shifts on H8/300.
(shift_alg_si): Improve several shifts on H8/300.
(get_shift_alg): Likewise.

From-SVN: r49708

22 years ago* config/pa/pa.c (compute_movstrsi_length): Fix typos.
Graham Stott [Tue, 12 Feb 2002 15:21:04 +0000 (15:21 +0000)]
* config/pa/pa.c (compute_movstrsi_length): Fix typos.

From-SVN: r49707

22 years agoalias.c (find_base_value, [...]): Handle #ifdef POINTERS_EXTEND_UNSIGNED.
Richard Kenner [Tue, 12 Feb 2002 15:18:42 +0000 (15:18 +0000)]
alias.c (find_base_value, [...]): Handle #ifdef POINTERS_EXTEND_UNSIGNED.

* alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
Handle #ifdef POINTERS_EXTEND_UNSIGNED.

From-SVN: r49706

22 years agodecl-1.c: Add do-compile tag.
Benjamin Kosnik [Tue, 12 Feb 2002 09:02:04 +0000 (09:02 +0000)]
decl-1.c: Add do-compile tag.

2002-02-12  Benjamin Kosnik  <bkoz@redhat.com>
    Neil Booth  <neil.booth@bnpparibas.com>

* gcc.dg/decl-1.c: Add do-compile tag.

From-SVN: r49705

22 years agoDaily bump.
GCC Administrator [Tue, 12 Feb 2002 08:17:01 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r49704

22 years ago* gcc.dg/decl-1.c: New test.
Neil Booth [Tue, 12 Feb 2002 07:36:38 +0000 (07:36 +0000)]
* gcc.dg/decl-1.c: New test.

From-SVN: r49702

22 years agoWin32Process.java: Filled in a placeholder implementation so Win32 will build.
Adam Megacz [Tue, 12 Feb 2002 06:10:45 +0000 (06:10 +0000)]
Win32Process.java: Filled in a placeholder implementation so Win32 will build.

2002-02-12  Adam Megacz <adam@xwt.org>

        * java/lang/Win32Process.java: Filled in a placeholder
        implementation so Win32 will build.

From-SVN: r49701

22 years agonatFilePosix.cc: Copied this from natFile.cc.
Adam Megacz [Tue, 12 Feb 2002 05:52:33 +0000 (05:52 +0000)]
natFilePosix.cc: Copied this from natFile.cc.

2002-02-12  Adam Megacz <adam@xwt.org>

    * java/io/natFilePosix.cc: Copied this from natFile.cc.
    * java/io/natFile.cc: Removed from repository.
    * configure.in: Added AC_LINK_FILES for natFile${PLATFORM}.

From-SVN: r49700

22 years ago* sparc_mach_dep.S: Delete incorrectly named file.
Bryce McKinlay [Tue, 12 Feb 2002 04:43:53 +0000 (04:43 +0000)]
* sparc_mach_dep.S: Delete incorrectly named file.

From-SVN: r49699

22 years agoImported GC 6.1 Alpha 3. Finally.
Bryce McKinlay [Tue, 12 Feb 2002 04:37:57 +0000 (04:37 +0000)]
Imported GC 6.1 Alpha 3. Finally.

From-SVN: r49698

22 years agostl_algo (__stl_threshold): Declare external.
Benjamin Kosnik [Tue, 12 Feb 2002 04:35:58 +0000 (04:35 +0000)]
stl_algo (__stl_threshold): Declare external.

2002-02-11   Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/stl_algo (__stl_threshold): Declare external.
(__stl_chunk_size): Same.
* include/bits/stl_bvector.h (__WORD_BIT): Same.
* include/bits/stl_tree.h (_S_rb_tree_red): Same.
(_S_rb_tree_black): Same.
* src/stl-inst.cc (__stl_threshold): Define.
(__stl_chunk_size): Same.
(__WORD_BIT): Same.
(_S_rb_tree_red): Same.
(_S_rb_tree_black): Same.

* config/io/basic_file_libio.h (__basic_file): Add declarations.
* include/bits/basic_file.h: Remove.
* config/io/c_io_stdio.h: Remove _GLIBCPP_BASIC_FILE_ENCAPSULATION
Declare generic types, specialization.
        * config/io/basic_file_stdio.cc: Definitions.
* config/io/c_io_libio.h: Remove _GLIBCPP_BASIC_FILE_INHERITANCE.
Declare generic types.
* include/Makefile.am (bits_headers): Remove basic_file.h.
(extra_target_headers): Change basic_file_model.h to basic_file.h.
(stamp-target): Same.

* include/bits/stl_alloc.h: Tweaks.
* include/bits/localefwd.h: Same.

From-SVN: r49697

22 years agowin32.cc: Added two #includes to make win32.cc compile.
Adam Megacz [Tue, 12 Feb 2002 04:35:32 +0000 (04:35 +0000)]
win32.cc: Added two #includes to make win32.cc compile.

2002-02-12  Adam Megacz <adam@xwt.org>

        * win32.cc: Added two #includes to make win32.cc compile.

From-SVN: r49696

22 years agoboehm.cc (initialized, [...]): Removed unused declarations.
Bryce McKinlay [Tue, 12 Feb 2002 04:14:52 +0000 (04:14 +0000)]
boehm.cc (initialized, [...]): Removed unused declarations.

* boehm.cc (initialized, obj_kind_x, obj_free_list): Removed unused
declarations.
(_Jv_InitGC): Don't bother locking, as this is always called from a
single-thread. Turn off GC_all_interior_pointers. Remove dead code.

From-SVN: r49695

22 years agoc99-flex-array-2.c: Add -std=iso9899:1999
David Billinghurst [Tue, 12 Feb 2002 04:09:34 +0000 (04:09 +0000)]
c99-flex-array-2.c: Add -std=iso9899:1999

2002-02-12  David Billinghurst <David.Billinghurst@riotinto.com>

        * gcc.dg/c99-flex-array-2.c: Add -std=iso9899:1999

From-SVN: r49694

22 years agowin32.h: Added _Jv_platform_gettimeofday.
Adam Megacz [Tue, 12 Feb 2002 02:25:07 +0000 (02:25 +0000)]
win32.h: Added _Jv_platform_gettimeofday.

2002-02-11  Adam Megacz <adam@xwt.org>

        * include/win32.h: Added _Jv_platform_gettimeofday.
        * win32.cc (_Jv_platform_gettimeofday): Added dummy function.

From-SVN: r49693

22 years agonatFileWin32.cc, [...]: Added #undef STRICT to make windows.h and java/lang/reflect...
Adam Megacz [Tue, 12 Feb 2002 02:17:21 +0000 (02:17 +0000)]
natFileWin32.cc, [...]: Added #undef STRICT to make windows.h and java/lang/reflect/Modifier.h cooperate.

2002-02-11  Adam Megacz <adam@xwt.org>

    * java/io/natFileWin32.cc, java/io/natFileDescriptorWin32.cc:
    Added #undef STRICT to make windows.h and
    java/lang/reflect/Modifier.h cooperate.

From-SVN: r49692

22 years agonatFileWin32.cc: Created a placeholder class with lots of FIXMEs.
Adam Megacz [Tue, 12 Feb 2002 01:54:18 +0000 (01:54 +0000)]
natFileWin32.cc: Created a placeholder class with lots of FIXMEs.

2002-02-11  Adam Megacz <adam@xwt.org>

        * java/io/natFileWin32.cc: Created a placeholder class with lots
        of FIXMEs.

From-SVN: r49691

22 years agoclass.c (build_utf8_ref): Move declaration of decl_size
David Billinghurst [Mon, 11 Feb 2002 22:53:09 +0000 (22:53 +0000)]
class.c (build_utf8_ref): Move declaration of decl_size

2002-02-12  David Billinghurst <Davod.Billinghurst@riotinto.com>

* class.c(build_utf8_ref): Move declaration of decl_size

From-SVN: r49688

22 years agommix.c (mmix_assemble_integer): Handle non-CONST_INT through default_assemble_integer.
Hans-Peter Nilsson [Mon, 11 Feb 2002 22:38:30 +0000 (22:38 +0000)]
mmix.c (mmix_assemble_integer): Handle non-CONST_INT through default_assemble_integer.

* config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
non-CONST_INT through default_assemble_integer.
<case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
<case 8>: Abort for CONST_DOUBLE.

From-SVN: r49687

22 years agoMakefile.in: Removed libstdc++-v3 dependancy for libjava and boehm-gc
Adam Megacz [Mon, 11 Feb 2002 22:32:11 +0000 (22:32 +0000)]
Makefile.in: Removed libstdc++-v3 dependancy for libjava and boehm-gc

2002-02-11  Adam Megacz <adam@xwt.org>

        * gcc/Makefile.in: Removed libstdc++-v3 dependancy for libjava
        and boehm-gc

From-SVN: r49686

22 years agoexception.cc (_Jv_Throw, [...]): Changed std::abort() to simply abort().
Adam Megacz [Mon, 11 Feb 2002 22:28:58 +0000 (22:28 +0000)]
exception.cc (_Jv_Throw, [...]): Changed std::abort() to simply abort().

2002-02-11  Adam Megacz <adam@xwt.org>

    * exception.cc (_Jv_Throw, PERSONALITY_FUNCTION): Changed
    std::abort() to simply abort(). Also added "fake" std::abort() so
    we can #include unwind-pe.h without having to link against
    libstdc++-v3.

From-SVN: r49685

22 years agogcc.c (init_gcc_specs): Add static libgcc to link when "-shared" is specified.
John David Anglin [Mon, 11 Feb 2002 22:14:25 +0000 (22:14 +0000)]
gcc.c (init_gcc_specs): Add static libgcc to link when "-shared" is specified.

* gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
is specified.
* config/pa/pa-linux.h (LIB_SPEC): Delete.
* config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.

From-SVN: r49684

22 years ago* gcc.pot: Regenerate.
Zack Weinberg [Mon, 11 Feb 2002 19:49:47 +0000 (19:49 +0000)]
* gcc.pot: Regenerate.

From-SVN: r49683

22 years agolocale_facets.tcc (collate::do_hash): Fix.
Aaron W. LaFramboise [Mon, 11 Feb 2002 18:56:24 +0000 (18:56 +0000)]
locale_facets.tcc (collate::do_hash): Fix.

2002-02-11  Aaron W LaFramboise  <AWLaFramboise@aol.com>

* include/bits/locale_facets.tcc (collate::do_hash): Fix.
* testsuite/22_locale/collate_members_char.cc (test03): New test.
* testsuite/22_locale/collate_members_wchar_t.cc (test03): Same.

From-SVN: r49682

22 years agoconfigure.in: support for win32, saner cross-compile options
Adam Megacz [Mon, 11 Feb 2002 18:31:10 +0000 (18:31 +0000)]
configure.in: support for win32, saner cross-compile options

2002-02-11  Adam Megacz <adam@xwt.org>

        * gcc/boehm-gc/configure.in: support for win32, saner
        cross-compile options

From-SVN: r49681

22 years agore PR libobjc/4039 (installation location of libobjc is wrong)
Franz Sirl [Mon, 11 Feb 2002 18:10:05 +0000 (18:10 +0000)]
re PR libobjc/4039 (installation location of libobjc is wrong)

2002-02-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

PR libobjc/4039
* aclocal.m4: Replace with version copied from libstdc++-v3.
* configure.in: Update for changes to aclocal and Makefile.
* configure: Regenerate.
* Makefile.in: Correct install of multilibs and shared libs, use
INSTALL_DATA for include files.

From-SVN: r49680

22 years agostormy16.md (zero_extendqihi2): New.
Andrew Haley [Mon, 11 Feb 2002 17:04:31 +0000 (17:04 +0000)]
stormy16.md (zero_extendqihi2): New.

2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>

        * config/stormy16/stormy16.md (zero_extendqihi2): New.

From-SVN: r49679

22 years agoparse.y (reserved_declspecs): Don't handle attributes.
Jason Merrill [Mon, 11 Feb 2002 15:52:20 +0000 (10:52 -0500)]
parse.y (reserved_declspecs): Don't handle attributes.

        * parse.y (reserved_declspecs): Don't handle attributes.
        (reserved_typespecquals): Handle them here.
        * Make-lang.in (parse.c): Adjust expected conflicts.

From-SVN: r49678

22 years agomention NRVO
Jason Merrill [Mon, 11 Feb 2002 15:24:37 +0000 (10:24 -0500)]
mention NRVO

From-SVN: r49677

22 years agoregrename.c (regrename_optimize): Don't accept a part-clobbered register if the repla...
Alexandre Oliva [Mon, 11 Feb 2002 13:35:14 +0000 (13:35 +0000)]
regrename.c (regrename_optimize): Don't accept a part-clobbered register if the replaced register is not part...

* regrename.c (regrename_optimize): Don't accept a
part-clobbered register if the replaced register is not part
clobbered.

From-SVN: r49676

22 years agocalls.c (store_one_arg): In the non-BLKmode non-partial case...
Alexandre Oliva [Mon, 11 Feb 2002 13:33:07 +0000 (13:33 +0000)]
calls.c (store_one_arg): In the non-BLKmode non-partial case...

* calls.c (store_one_arg): In the non-BLKmode non-partial case,
take padding into account when computing the argument value.

From-SVN: r49675

22 years ago* config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
Alexandre Oliva [Mon, 11 Feb 2002 08:37:07 +0000 (08:37 +0000)]
* config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.

From-SVN: r49674

22 years agoDaily bump.
GCC Administrator [Mon, 11 Feb 2002 08:16:16 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r49672

22 years agors6000.c (altivec_init_builtins): Handle __builtin_altivec_abs*.
Aldy Hernandez [Mon, 11 Feb 2002 06:15:37 +0000 (06:15 +0000)]
rs6000.c (altivec_init_builtins): Handle __builtin_altivec_abs*.

2002-02-06  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (altivec_init_builtins): Handle
        __builtin_altivec_abs*.
        (bdesc_abs): New.

        * config/rs6000/rs6000.h (rs6000_builtins): Add
        ALTIVEC_BUILTIN_ABS*.

        * config/rs6000/altivec.h: Use const char for builtins expecting
        literals.
        (vec_abs): New versions for C and C++.
        (vec_abss): Same.

From-SVN: r49671

22 years agocombine.c (try_combine): Apply substitutions in CALL_INSN_FUNCTION_USAGE too.
Alexandre Oliva [Mon, 11 Feb 2002 06:07:03 +0000 (06:07 +0000)]
combine.c (try_combine): Apply substitutions in CALL_INSN_FUNCTION_USAGE too.

* combine.c (try_combine): Apply substitutions in
CALL_INSN_FUNCTION_USAGE too.

From-SVN: r49670

22 years agors6000.c (altivec_init_builtins): Handle __builtin_altivec_abs*.
Aldy Hernandez [Mon, 11 Feb 2002 06:05:05 +0000 (06:05 +0000)]
rs6000.c (altivec_init_builtins): Handle __builtin_altivec_abs*.

2002-02-06  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (altivec_init_builtins): Handle
        __builtin_altivec_abs*.
        (bdesc_abs): New.

        * config/rs6000/rs6000.h (rs6000_builtins): Add
        ALTIVEC_BUILTIN_ABS*.

        * config/rs6000/altivec.h: Use const char for builtins expecting
        literals.
        (vec_abs): New versions for C and C++.
        (vec_abss): Same.

From-SVN: r49669

22 years agoh8300.h (INITIALIZE_TRAMPOLINE): Simplify by using Pmode.
Kazu Hirata [Mon, 11 Feb 2002 04:35:57 +0000 (04:35 +0000)]
h8300.h (INITIALIZE_TRAMPOLINE): Simplify by using Pmode.

* config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
using Pmode.

From-SVN: r49668

22 years agoh8300.h (STACK_POINTER_REGNUM): Use the constant definition from h8300.md.
Kazu Hirata [Mon, 11 Feb 2002 04:31:33 +0000 (04:31 +0000)]
h8300.h (STACK_POINTER_REGNUM): Use the constant definition from h8300.md.

* config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
constant definition from h8300.md.
(FRAME_POINTER_REGNUM): Likewise.
* config/h8300/h8300.md (define_constants): Add FP_REG.

From-SVN: r49667

22 years ago* config/h8300/h8300.c (print_operand): Remove redundant code.
Kazu Hirata [Mon, 11 Feb 2002 04:26:58 +0000 (04:26 +0000)]
* config/h8300/h8300.c (print_operand): Remove redundant code.

From-SVN: r49666

22 years agoh8300-protos.h: Remove the prototype for byte_reg.
Kazu Hirata [Mon, 11 Feb 2002 04:21:53 +0000 (04:21 +0000)]
h8300-protos.h: Remove the prototype for byte_reg.

* config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
* config/h8300/h8300.c (byte_reg): Make it static.

From-SVN: r49665

22 years agoNew.
Richard Henderson [Mon, 11 Feb 2002 02:37:37 +0000 (18:37 -0800)]
New.

From-SVN: r49664

22 years agore PR c/5623 (GCC 3.0.3 crashes when assigning pointer to an array of undefined size...
Richard Henderson [Mon, 11 Feb 2002 02:28:00 +0000 (18:28 -0800)]
re PR c/5623 (GCC 3.0.3 crashes when assigning pointer to an array of undefined size which is member of a struct)

        PR c/5623
        * c-typeck.c (incomplete_type_error): Handle flexible array members.

From-SVN: r49663

22 years agore PR c++/5624 (Strange bug with preprocessed file containing structs)
Richard Henderson [Mon, 11 Feb 2002 02:12:41 +0000 (18:12 -0800)]
re PR c++/5624 (Strange bug with preprocessed file containing structs)

        PR c++/5624
        * tree.c (append_random_chars): Don't abort if main_input_filename
        does not exist.

From-SVN: r49662

22 years ago* config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
Hans-Peter Nilsson [Mon, 11 Feb 2002 00:33:08 +0000 (00:33 +0000)]
* config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.

From-SVN: r49661

22 years agoFor PR java/5641:
Tom Tromey [Mon, 11 Feb 2002 00:18:52 +0000 (00:18 +0000)]
For PR java/5641:

* libjava.compile/PR5641.xfail: New file.
* libjava.compile/PR5641.java: New file.

From-SVN: r49660

22 years agolibjava.exp (libjava_find_lib): Remove duplicate .la files.
Rainer Orth [Mon, 11 Feb 2002 00:01:11 +0000 (00:01 +0000)]
libjava.exp (libjava_find_lib): Remove duplicate .la files.

2002-02-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

* lib/libjava.exp (libjava_find_lib): Remove duplicate .la files.

From-SVN: r49659

22 years ago961203-1.x: Disable on h8300 port.
Kazu Hirata [Sun, 10 Feb 2002 20:37:22 +0000 (20:37 +0000)]
961203-1.x: Disable on h8300 port.

* gcc.c-torture/compile/961203-1.x: Disable on h8300 port.
* gcc.c-torture/compile/980506-1.x: Likewise.

From-SVN: r49658

22 years ago* gcc.dg/20020210-1.c: New.
Kazu Hirata [Sun, 10 Feb 2002 20:30:10 +0000 (20:30 +0000)]
* gcc.dg/20020210-1.c: New.

From-SVN: r49657

22 years agoh8300.md (pushhi1_h8300): Correct the mode used.
Kazu Hirata [Sun, 10 Feb 2002 20:24:16 +0000 (20:24 +0000)]
h8300.md (pushhi1_h8300): Correct the mode used.

* config/h8300/h8300.md (pushhi1_h8300): Correct the mode
used.
(pushhi1): Likewise.

From-SVN: r49656

22 years agointerpret.cc (continue1): Use PUSHL, not PUSHI.
Andreas Tobler [Sun, 10 Feb 2002 18:32:48 +0000 (19:32 +0100)]
interpret.cc (continue1): Use PUSHL, not PUSHI.

2002-02-10  Andreas Tobler  <toa@pop.agri.ch>

* interpret.cc (continue1) [insn_f2l]: Use PUSHL, not PUSHI.

From-SVN: r49655

22 years agopa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
John David Anglin [Sun, 10 Feb 2002 17:27:55 +0000 (17:27 +0000)]
pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.

* pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
* pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.

From-SVN: r49654

22 years agostl_algo.h (transform (both signatures), generate_n): Use __typeof__ in concept checks.
Phil Edwards [Sun, 10 Feb 2002 09:05:46 +0000 (09:05 +0000)]
stl_algo.h (transform (both signatures), generate_n): Use __typeof__ in concept checks.

2002-02-10  Phil Edwards  <pme@gcc.gnu.org>

* include/bits/stl_algo.h (transform (both signatures), generate_n):
Use __typeof__ in concept checks.

From-SVN: r49653

22 years agostl_algo.h (__median, [...]): Doxygenate.
Jonathan Wakely [Sun, 10 Feb 2002 09:00:41 +0000 (09:00 +0000)]
stl_algo.h (__median, [...]): Doxygenate.

2002-02-10  Jonathan Wakely  <cow@compsoc.man.ac.uk>

* include/bits/stl_algo.h (__median, for_each, find, find_if,
adjacent_find, count, count_if, search, search_n, swap_ranges,
transform, replace, replace_if, replace_copy, replace_copy_if,
generate, generate_n, remove_copy, remove_copy_if, remove, remove_if,
unique, unique_copy, reverse, reverse_copy):  Doxygenate.

From-SVN: r49652

22 years agoDaily bump.
GCC Administrator [Sun, 10 Feb 2002 08:16:27 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r49650

22 years agofreebsd.h (TARGET_DEFAULT): Add MASK_EPILOGUE setting and remove MASK_VIS.
David O'Brien [Sat, 9 Feb 2002 21:51:56 +0000 (21:51 +0000)]
freebsd.h (TARGET_DEFAULT): Add MASK_EPILOGUE setting and remove MASK_VIS.

2002-02-09  David O'Brien  <obrien@FreeBSD.org>
* config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
remove MASK_VIS.
(ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020208111342.A4426@redhat.com>

From-SVN: r49649

22 years agoh8300.c (output_logical_op): Use sub.w to clear a half of an SImode register on H8...
Kazu Hirata [Sat, 9 Feb 2002 21:49:23 +0000 (21:49 +0000)]
h8300.c (output_logical_op): Use sub.w to clear a half of an SImode register on H8/300.

* config/h8300/h8300.c (output_logical_op): Use sub.w to clear
a half of an SImode register on H8/300.

From-SVN: r49648

22 years agore PR fortran/947 (Data statement initialization of an array element whose index is)
Toon Moene [Sat, 9 Feb 2002 21:43:29 +0000 (22:43 +0100)]
re PR fortran/947 (Data statement initialization of an array element whose index is)

2002-02-09  Toon Moene  <toon@moene.indiv.nluug.nl>

* g77.f-torture/execute/947.f: New regression test
for PR fortran/947.

From-SVN: r49647

22 years agodata.c (ffedata_eval_offset_): Convert non-default integer constants to default integ...
Toon Moene [Sat, 9 Feb 2002 21:39:08 +0000 (21:39 +0000)]
data.c (ffedata_eval_offset_): Convert non-default integer constants to default integer kind if necessary.

2002-02-09  Toon Moene  <toon@moene.indiv.nluug.nl>

* data.c (ffedata_eval_offset_): Convert non-default integer
constants to default integer kind if necessary.

From-SVN: r49646

22 years ago* i386.md (movdi_2): Add missing '!'.
Jan Hubicka [Sat, 9 Feb 2002 17:53:58 +0000 (18:53 +0100)]
* i386.md (movdi_2): Add missing '!'.

From-SVN: r49640

22 years agoh8300.h: Fix formatting.
Kazu Hirata [Sat, 9 Feb 2002 17:31:50 +0000 (17:31 +0000)]
h8300.h: Fix formatting.

* config/h8300/h8300.h: Fix formatting.  Remove commented-out
definitions.

From-SVN: r49639

22 years agoh8300.md (length): Correct the distance valid for the short branch.
Kazu Hirata [Sat, 9 Feb 2002 17:19:00 +0000 (17:19 +0000)]
h8300.md (length): Correct the distance valid for the short branch.

* config/h8300/h8300.md (length): Correct the distance valid
for the short branch.

From-SVN: r49637

22 years agoinvoke.texi: Add a short debugging session as an example to the documentation of -g.
Toon Moene [Sat, 9 Feb 2002 09:27:11 +0000 (10:27 +0100)]
invoke.texi: Add a short debugging session as an example to the documentation of -g.

2002-02-09  Toon Moene  <toon@moene.indiv.nluug.nl>

* invoke.texi: Add a short debugging session
as an example to the documentation of -g.

From-SVN: r49636

22 years agoDaily bump.
GCC Administrator [Sat, 9 Feb 2002 08:16:15 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r49634

22 years ago* config/h8300/h8300.md (iorhi3): Tighten the predicates.
Kazu Hirata [Sat, 9 Feb 2002 05:16:25 +0000 (05:16 +0000)]
* config/h8300/h8300.md (iorhi3): Tighten the predicates.

From-SVN: r49633

22 years agosh.h (REGISTER_NATURAL_MODE): Save part-clobbered registers in SImode.
Alexandre Oliva [Sat, 9 Feb 2002 03:58:50 +0000 (03:58 +0000)]
sh.h (REGISTER_NATURAL_MODE): Save part-clobbered registers in SImode.

* config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
registers in SImode.
(HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
part-clobbered.

From-SVN: r49632

22 years agosh.c (expand_prologue): Fix mis-applied 2001-11-09's patch.
Alexandre Oliva [Sat, 9 Feb 2002 03:51:25 +0000 (03:51 +0000)]
sh.c (expand_prologue): Fix mis-applied 2001-11-09's patch.

* config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
patch.

From-SVN: r49631

22 years agoContribute sh64-elf.
Alexandre Oliva [Sat, 9 Feb 2002 03:08:08 +0000 (03:08 +0000)]
Contribute sh64-elf.

2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
(sh_cannot_modify_jumps_p): New function.
2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
(sh_ms_bitfield_layout_p): New function.
2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
    Zack Weinberg  <zack@codesourcery.com>
* config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
expand_simple_binop instead of expand_binop.
2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
use of .quad and .uaquad.
* config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (movdi_const, movdi_const_32bit,
movdi_const_16bit): Make sure all CONSTs have modes.
(sym2PIC): Ditto, but by adjusting all callers.
* config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
if the prologue calls the SHmedia argument decoder or register
saver.
2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
(TARGET_ASM_ALIGNED_DI_OP): Likewise.
(sh_expand_epilogue): Don't emit USE of return target register.
(prepare_move_operands): Legitimize DImode PIC addresses.
(sh_media_register_for_return): Skip tr0, used to initialize the
PIC register.
(sh_expand_prologue): Remove explicit USE of return register.
(nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
* config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
(OVERRIDE_OPTIONS): Don't disable PIC on SH5.
(EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
EXTRA_CONSTRAINT_T.
(GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
(MOVI_SHORI_BASE_OPERAND_P): New.
(NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
(EXTRA_CONSTRAINT_T): Define in terms of them.
(OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
* config/sh/sh.md (movsi_media, movsi_media_nofpu,
movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
alternatives supporting TARGET_REGS.
(UNSPEC_GOTPLT): New constant.
(movdi split): Move incrementing of LABEL_NUSES...
(movdi_const, movdi_const_32bit): Here.  Use
MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
(movdi_const_16bit): New.
(call, call_value) [flag_pic]: Use GOTPLT.
(call_pop, call_value_pop): New expands.
(call_pop_compact, call_pop_rettramp): New insns.
(call_value_pop_compact, call_value_pop_rettramp): New insns.
(sibcall) [flag_pic]: Use GOT.
(builtint_setjmp_receiver): Remove bogus, unused expand.
(GOTaddr2picreg): Implement for SHcompact and SHmedia.
(*pt, *ptb, ptrel): New insns.
(sym2GOT): Handle DImode GOT.
(sym2GOTPLT, symGOTPLT2reg): New expands.
(sym2PIC): New expand.
(shcompact_return_tramp): Use GOTPLT to return trampoline.
(shcompact_return_tramp_i): Use return register explicitly.
* config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
disable flag_reorder_blocks.
2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (sibcall_compact): Reorder return, uses and
clobbers, for clarity.
(sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
restoring of r0 in macl as MAYBE_DEAD.
2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
* config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
alter_subreg all over.
(jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
reload, instead of emitting instructions that would require
reloading.
(casesi_load_media): Add missing modes.
2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.c (sh_expand_prologue): Mark the PIC register
as used if the argument decoder is called.
2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
Pmode, then extend it to DImode if necessary.
2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
* config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
constants in FPU-enabled SHmedia, let them be loaded from memory.
2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
Adjust whitespace in assembly output templates.
2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
* config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
mode of if_then_else.
2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
sh.h.
2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
    Joern Rennecke <amylaar@redhat.com>
* config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
(SUBTARGET_CPP_PTR_SPEC): New.
(SUBTARGET_CPP_SPEC): Remove.
2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
* config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
Fix typo in previous checkin.
2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
* config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
    Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
what single FP register can hold for SHmedia target.
2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
    Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
Do not split into SUBREG.
2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
and added new functions as specified in SH5 ABI r9.
2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8-byte boundary.
2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.c (dump_table): Add const0_rtx in calls of
gen_consttable_4 and gen_consttable_8.  Emit multiple labels
and consttable_window_ends.
2001-06-03  Graham Stott  <grahams@redhat,com>
* config/sh/sh.md (movdi split): Remove unused variable last_insn.
2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.c (print_operand): Handle floating-point pair,
vector and matrix registers.
* config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
vector modes into account.
* config/sh/sh.md (movv2sf): Split move between registers into
movdf.
(movv4sf, movv16sf): Introduce insns that get split only after
reload.
* config/sh/shmedia.h: Fix Copyright dates.
* config/sh/ushmedia.h: Likewise.  Move loop counter
declarations into conditionals that uses them.
(sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
loop boundary.
* config/sh/sshmedia.h: Fix Copyright dates.
(sh_media_PUTCFG): Fix constraints.
2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
ptrmemfunc_vbit_in_delta for SH5.
2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
* invoke.texi: Likewise.
2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
GCC_pop_shmedia_regs_nofpu): New global symbols.
* config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
* config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
* config/sh/sh.c (calc_live_regs): Account for PR's saving in
compact function with nonlocal labels.
(sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
(sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
(initial_elimination_offset): Account for their stack space.
* config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
* config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
least one of the operands to be a register.
(movv2sf): Likewise.  Renamed to movv2sf_i.
(movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
prepare_move_operands() before emitting SHmedia insns.
2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
Don't save nor initialize r12.  Don't mis-align the stack.
Pad the code with a nop.
* config/sh/crti.asm: Don't restore r12.  Don't mis-align the
stack.
2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
* gcc/longlong.h (__umulsidi3, count_leading_zeros)
[__SHMEDIA__]: Implement.
2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md: Set latency of `pt' closer to reality.
(movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
Set move, load and store type attributes.
* config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
* config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
profiling.
* config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
* config/sh/sh-protos.h (sh_media_register_for_return): Declare.
* config/sh/sh.c (sh_media_register_for_return): New function.
(sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
branch-target register.
(sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
* config/sh/sh.md (return_media_i): Use any call-clobbered
branch-target register.
(return_media): If r18 wasn't copied in the prologue, copy it
here.
* config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
Clear class FP0_REGS.
* config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
from elf.h.
2001-03-08  DJ Delorie  <dj@redhat.com>
* config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (sibcall_compact): Set fp_mode to single.
2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
return value correctly for call_cookie.
2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/crt1.asm (start): Modified so as to call
___setup_argv_and_call_main.
2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
SHmedia mode.
2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
(STRIP_NAME_ENCODING): Use it.
(ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
prepare_scc_operands().
* config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
(DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
* config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
used in shcompact_incoming_args.
* config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
change.
* config/sh/crt1.asm (start) [SH5]: Switch to single-precision
mode.
* config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
Adjust accordingly.
* config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
Simplify.  Adjust.  Add sanity check.
* config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
FPU_SINGLE_BIT.
* config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
TARGET_SHCOMPACT.
(udivsi3, divsi3): Use them.
(force_mode_for_call): New insn.
(call, call_value, sibcall_value): Emit it before SHcompact
calls.
2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (call, call_value, sibcall): Make sure the
call cookie is non-NULL before taking its value.
2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
* config.gcc (sh64): Set target_requires_64bit_host_wide_int.
2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (shcompact_incoming_args): Set argument memory
block.
* config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
* config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
temporary for stack adjusts.  Use MACL and MACH to pass
arguments to shcompact_incoming_args.
* config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
clobber r1.
* config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
(nested_trampoline): Load static chain address into r1.
* config/sh/sh.md (movdi_media splits): Fix sign-extension.
2001-01-07  Alexandre Oliva  <aoliva@redhat.com
* config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
fp_arith_reg_operand().
2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (casesi): Sign-extend the first two operands,
and use signed compares for them.
* config/sh/sh.c (dump_table): Don't emit 8-byte constants after
4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
ones properly aligned.
(find_barrier): Account for extra alignment needed for 8-byte wide
constants.
(machine_dependent_reorg): Require a label for the second 4-byte
constant after an 8-byte one.
* config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
change.
2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
last_float when switching float modes.
* config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
auto-increment for general-purpose registers.
* config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
result.
* config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
for stack adjust.
* config/sh/sh.c (sh_builtin_saveregs): Support using all
registers for varargs.
2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
* config/sh/sh.h (CALL_COOKIE_STACKSEQ,
CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
(CALL_COOKIE_INT_REG_SHIFT): Adjust.
(FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
call_cookie accordingly.
(FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
(SHCOMPACT_BYREF): Likewise.
(SHCOMPACT_FORCE_ON_STACK): New macro.
* config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
(sh_builtin_saveregs): Likewise.
* config/sh/lib1funcs.asm (shcompact_call_trampoline,
shcompact_incoming_args): Use new shift values.  Support
sequences of consecutive and non-consecutive pushes/pops.
* config/sh/sh.md (return): Don't explicitly use PR_REG.
2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
* config/sh/sh.h (TEXT_SECTION): Define.
* config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
* config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
return values on FPU-enabled SHmedia.
(FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
FPU-enabled SHmedia.
(INIT_CUMULATIVE_ARGS): Set up return trampoline only if
value is returned in a non-FP reg and is not returned by
reference.
* config/sh/sh.md (shcompact_return_tramp_i): Change type to
jump_ind.
2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
(FUNCTION_ARG_CALLEE_COPIES): Require argument to be
quad-aligned to be passed by callee-copy reference.
2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
* config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
copying low-numbered FP regs to r7 and r8.
* config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
FP regs to general-purpose regs only if the copy was passed on the
stack.
* config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
copying FP reg to r9.
* config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
copy FP regs to general-purpose regs only in outgoing calls.
* config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
change from  2000-10-30.  Adjust for 64-bit (or 32-bit)
HOST_WIDE_INT.
* config/sh/sh.h (struct sh_args): Document all fields.
(FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
passed partially on the stack should not consider making
sibcalls.
* config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
stack_regs only for incoming calls.  When passing FP args,
make sure there are FP regs available before modifying
call_cookie.
(SHCOMPACT_BYREF): Pass double args in general-purpose
registers by reference.
2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
attempt to generate sibcalls if the caller got any arguments
by reference.
* config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
* config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
to 8-byte boundaries.
* config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
* config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
* config/sh/sh.c (sh_expand_prologue): Preserve args that will be
stored in the stack.
* config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
for the offsets to have the ISA bit set.
(shcompact_call_trampoline): Document.  Swap r0 and r1, to match
invocation.  Use beq instead of bgt to mark end of sequence of
loads.
(shcompact_incoming_args): Fix store of r2.  Use beq instead of
bgt to mark end of sequence of stores.
* config/sh/sh.c (arith_operand): Don't check whether
CONST_OK_FOR_J for now.
* config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
instead of long for conversion.
2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.c (print_operand_address): Convert INTVAL to int
before passing it to fprintf.
2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
Call set_fpscr before reading/writing SR.
* config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
Call set_fpscr.
* config/sh/lib1funcs.asm: Add `.align 2' directives before
SHmedia code.
(FMOVD_WORKS): Define on SH5 with FPU.
(set_fpscr): Define on SH5.  Remove separate _fpscr_values
setting.
* config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
_fpscr_values.
2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
* config/sh/lib1funcs.asm (ct_main_table): Align contents to even
address.
(ia_main_table): Ditto.
2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
* config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
the definitions from sh.h.
* config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
TARGET_SH5.
(SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
* config/sh/elf.h (PTRDIFF_TYPE): Likewise.
* config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
* config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
Increment LABEL_NUSES.

From-SVN: r49630

22 years agoptrmem.C: Lowest bit is significant on SH5.
Alexandre Oliva [Sat, 9 Feb 2002 03:06:47 +0000 (03:06 +0000)]
ptrmem.C: Lowest bit is significant on SH5.

* g++.old-deja/g++.abi/ptrmem.C: Lowest bit is significant on SH5.
* g++.old-deja/g++.jason/thunk3.C: XFAIL on sh64-*-*.

From-SVN: r49629

22 years agoconfig.guess: Updated to 2002-01-30's version.
Alexandre Oliva [Sat, 9 Feb 2002 03:00:13 +0000 (03:00 +0000)]
config.guess: Updated to 2002-01-30's version.

* config.guess: Updated to 2002-01-30's version.
* config.sub: Updated to 2002-02-01's version.
Contribute sh64-elf.
2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
* configure.in: Added sh64-*-*.

From-SVN: r49628

22 years agohooks.c: New file.
Alexandre Oliva [Sat, 9 Feb 2002 02:18:12 +0000 (02:18 +0000)]
hooks.c: New file.

* hooks.c: New file.
* hooks.h: New file.
* Makefile.in (HOOKS_H): New.
(TARGET_DEF_H): Added $(HOOKS_H).
(OBJS): Added hooks.o.
(cfgcleanup.o, bb-reorder.o): Added target.h.
(hooks.o): Added dependencies.
* target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
(TARGET_INITIALIZER): this.
* doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
* target.h (struct gcc_target): Added cannot_modify_jumps_p.
* bb-reorder.c: Include target.h.
(reorder_basic_blocks): Skip if cannot modify jumps.
* cfgcleanup.c: Include target.h.
(try_optimize_cfg): Skip merge blocking if cannot modify jumps.

From-SVN: r49627

22 years agoxscale-elf support
Anthony Green [Sat, 9 Feb 2002 00:50:05 +0000 (00:50 +0000)]
xscale-elf support

From-SVN: r49626

22 years agoAnnotate changelog with pr number.
Richard Henderson [Sat, 9 Feb 2002 00:30:30 +0000 (16:30 -0800)]
Annotate changelog with pr number.

From-SVN: r49625