gcc.git
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

22 years agomips.md (casesi_internal, [...]): Protect jump delay slot instructions with .set...
Chris Demetriou [Fri, 8 Feb 2002 22:51:30 +0000 (22:51 +0000)]
mips.md (casesi_internal, [...]): Protect jump delay slot instructions with .set noreorder and .set nomacro.

2002-02-08  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (casesi_internal, casesi_internal_di):
        Protect jump delay slot instructions with .set noreorder and
        .set nomacro.

[Also, fix date on my previous checkin to the ChangeLog file.  It
should have been today's date.]

From-SVN: r49624

22 years agomips.md (casesi_internal_di): Calculate the index into the target offset table correctly.
Chris Demetriou [Fri, 8 Feb 2002 22:46:27 +0000 (22:46 +0000)]
mips.md (casesi_internal_di): Calculate the index into the target offset table correctly.

2002-02-07  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (casesi_internal_di): Calculate
        the index into the target offset table correctly.

From-SVN: r49623

22 years agoexpr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
Richard Henderson [Fri, 8 Feb 2002 22:20:16 +0000 (14:20 -0800)]
expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.

        * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
        * final.c (output_addr_const): Accept and discard SUBREG.
        * varasm.c (decode_addr_const): Don't abort on unknown expressions --
        mark them unknown instead.
        (simplify_subtraction): Handle RTX_UNKNOWN.
        (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.

        * gcc.c-torture/compile/labels-3.c: New.

From-SVN: r49622

22 years agointerpret.cc (convert): New function.
Tom Tromey [Fri, 8 Feb 2002 20:00:40 +0000 (20:00 +0000)]
interpret.cc (convert): New function.

* interpret.cc (convert): New function.
(continue1) [insn_d2i, insn_d2l, insn_f2i, insn_f2l]: Use
convert.
Include Long.h.

From-SVN: r49621

22 years ago* doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
David Edelsohn [Fri, 8 Feb 2002 18:44:24 +0000 (18:44 +0000)]
* doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.

From-SVN: r49620

22 years agogcc_release: Substitute dates in snapshot-README and snapshot-index.html files rather...
Joseph Myers [Fri, 8 Feb 2002 17:56:12 +0000 (17:56 +0000)]
gcc_release: Substitute dates in snapshot-README and snapshot-index.html files rather than...

* gcc_release: Substitute dates in snapshot-README and
snapshot-index.html files rather than directly using the old files
on the FTP site.  Set QMAILHOST.

From-SVN: r49619

22 years agoMAINTAINERS: Belatedly add myself to write after approval list.
Chris Demetriou [Fri, 8 Feb 2002 17:38:00 +0000 (17:38 +0000)]
MAINTAINERS: Belatedly add myself to write after approval list.

2002-02-08  Chris Demetriou  <cgd@broadcom.com>

* MAINTAINERS: Belatedly add myself to write after approval list.

From-SVN: r49618

22 years ago* snapshot-index.html: Improve markup.
Gerald Pfeifer [Fri, 8 Feb 2002 15:41:03 +0000 (16:41 +0100)]
* snapshot-index.html: Improve markup.

From-SVN: r49617

22 years agoAdd xscale-elf support
Anthony Green [Fri, 8 Feb 2002 14:46:36 +0000 (14:46 +0000)]
Add xscale-elf support

From-SVN: r49616

22 years agojni.cc (_Jv_JNI_NewLocalRef): Make sure, that NULL frame is not dereferenced.
Martin Kahlert [Fri, 8 Feb 2002 14:18:24 +0000 (14:18 +0000)]
jni.cc (_Jv_JNI_NewLocalRef): Make sure, that NULL frame is not dereferenced.

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

* jni.cc (_Jv_JNI_NewLocalRef): Make sure, that NULL frame is not
dereferenced.
(_Jv_JNI_AttachCurrentThread): Produce full featured env->locals
frame.

From-SVN: r49615

22 years ago2002-02-08 Benjamin Kosnik <bkoz@redhat.com>
Benjamin Kosnik [Fri, 8 Feb 2002 12:59:49 +0000 (12:59 +0000)]
2002-02-08   Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/locale_facets.h
(numpunct<_CharT>::_M_initialize_numpunct): Remove definition.
(__timepunct<_CharT>::_M_initialize_timepunct): Same.
(__timepunct<_CharT>::_M_put_helper): Same.
(moneypunct<_CharT, _Intl>::_M_initialize_moneypunct): Same.

* include/bits/fstream.tcc (filebuf::underflow): Remove
__codecvt_type typedef.
(filebuf::_M_convert_to_external): Same.

From-SVN: r49614

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

From-SVN: r49612

22 years ago* config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
Richard Henderson [Fri, 8 Feb 2002 08:12:29 +0000 (00:12 -0800)]
* config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.

From-SVN: r49611

22 years agoconfig.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
Andreas Jaeger [Fri, 8 Feb 2002 07:53:36 +0000 (08:53 +0100)]
config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.

* config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
* config/i386/t-linux64: New file.

From-SVN: r49610

22 years agoc-common.c (c_expand_expr): Revert 2002-02-06 patch.
Jakub Jelinek [Fri, 8 Feb 2002 07:51:19 +0000 (08:51 +0100)]
c-common.c (c_expand_expr): Revert 2002-02-06 patch.

* c-common.c (c_expand_expr): Revert 2002-02-06 patch.
* c-parse.in (compstmt): Clear last_expr_type.

* parse.y (primary, primary_no_id): Use compstmt_or_stmtexpr
instead of compstmt.
(compstmt_or_stmtexpr): Renamed from compstmt.
(compstmt): In addition to compstmt_or_stmtexpr clear last_expr_type.

* gcc.c-torture/execute/20020206-1.c: Test whether nesting 2
expression statements work instead.
* gcc.dg/noncompile/20020207-1.c: New test.

From-SVN: r49609

22 years agoTODO: Update.
Phil Edwards [Fri, 8 Feb 2002 07:34:54 +0000 (07:34 +0000)]
TODO: Update.

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

* docs/doxygen/TODO:  Update.
* docs/doxygen/doxygroups.cc:  Tweak __gnu_cxx description.
* docs/doxygen/mainpage.html:  Add TODO list link.
* docs/doxygen/user.cfg.in:  Add @doctodo hook.
* docs/doxygen/tables.html:  New file, emoty structure only.

* include/bits/stl_iterator.h:  Doxygenate just about everything.
* include/bits/stl_iterator_base_funcs.h:  Ditto, clean up spaces.
* include/bits/stl_iterator_base_types.h:  Add notes.

From-SVN: r49608

22 years agonatFile.cc (_access): Use __builtin_alloca.
Tom Tromey [Fri, 8 Feb 2002 04:48:03 +0000 (04:48 +0000)]
natFile.cc (_access): Use __builtin_alloca.

* java/io/natFile.cc (_access): Use __builtin_alloca.
(_stat): Likewise.
(attr): Likewise.
(getCanonicalPath): Likewise.
(performList): Likewise.
(performMkdir): Likewise.
(performSetReadOnly): Likewise.
(performRenameTo): Likewise.
(performSetLastModified): Likewise.
(performCreate): Likewise.
(performDelete): Likewise.

From-SVN: r49607

22 years agoloop.c (strength_reduce): Sink final_value when not eliminating a biv.
Richard Henderson [Fri, 8 Feb 2002 03:36:35 +0000 (19:36 -0800)]
loop.c (strength_reduce): Sink final_value when not eliminating a biv.

        * loop.c (strength_reduce): Sink final_value when not
        eliminating a biv.

From-SVN: r49606

22 years ago* gcc.dg/debug/dwarf2-1.c (foo): Return a value.
Richard Henderson [Fri, 8 Feb 2002 03:34:02 +0000 (19:34 -0800)]
* gcc.dg/debug/dwarf2-1.c (foo): Return a value.

From-SVN: r49605

22 years agoReformatted a changelog entry
Adam Megacz [Fri, 8 Feb 2002 03:12:51 +0000 (03:12 +0000)]
Reformatted a changelog entry

From-SVN: r49604

22 years agofreebsd.h: Fix mismatched spec {.
David O'Brien [Fri, 8 Feb 2002 02:49:25 +0000 (02:49 +0000)]
freebsd.h: Fix mismatched spec {.

2002-02-07  David O'Brien  <obrien@FreeBSD.org>
* config/sparc/freebsd.h: Fix mismatched spec {.

From-SVN: r49603

22 years agostl_map.h: Tweak doxygen markup.
Stephan Buys [Fri, 8 Feb 2002 02:19:06 +0000 (04:19 +0200)]
stl_map.h: Tweak doxygen markup.

2002-02-07  Stephan Buys  <sbproxy@icon.co.za>

* include/bits/stl_map.h:  Tweak doxygen markup.
* include/bits/stl_multimap.h:  Doxygenate and remove extra spaces.
* include/bits/stl_vector.h:  Likewise.

From-SVN: r49602

22 years agostd_fstream.h (filebuf::__file_type): Change to __basic_file<char>.
Benjamin Kosnik [Fri, 8 Feb 2002 01:34:41 +0000 (01:34 +0000)]
std_fstream.h (filebuf::__file_type): Change to __basic_file<char>.

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

libstdc++/5286
libstdc++/3860
* include/std/std_fstream.h (filebuf::__file_type): Change to
__basic_file<char>.
(filebuf::_M_convert_to_external): Declare.
* include/bits/fstream.tcc (filebuf::_M_convert_to_external): Define
codecvt bits for wide streams.
(filebuf::_M_really_overflow): Use it.
(filebuf::underflow): Use codecvt.
* config/locale/codecvt_specializations_ieee_1003.1-200x.h:
(codecvt<__enc_traits>::do_out): Deal with partial.
(codecvt<__enc_traits>::do_encoding): Return something useful.
* src/codecvt.cc (codecvt<wchar_t>::do_encoding): Return sizeof
wchar_t.
* testsuite/22_locale/codecvt_members_unicode_char.cc (test01):
Change expected encoding output.
(test02): Same.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test01): Same.
(test02): Same.

From-SVN: r49601

22 years ago* HACKING: Fix URL for the automake-gcj.
Bryce McKinlay [Fri, 8 Feb 2002 01:22:47 +0000 (01:22 +0000)]
* HACKING: Fix URL for the automake-gcj.

From-SVN: r49600

22 years agoprune.exp: Remove "In (program|subroutine"block-data)" message from g77
David Billinghurst [Fri, 8 Feb 2002 00:38:29 +0000 (00:38 +0000)]
prune.exp: Remove "In (program|subroutine"block-data)" message from g77

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

* lib/prune.exp: Remove "In (program|subroutine"block-data)"
message from g77
* lib/g77-dg.exp: Trim g77 error messages so that they are
recognised by dg.exp.

From-SVN: r49599

22 years agocfgrtl.c: Include recog.h and insn-config.h.
Richard Henderson [Fri, 8 Feb 2002 00:35:15 +0000 (16:35 -0800)]
cfgrtl.c: Include recog.h and insn-config.h.

        * cfgrtl.c: Include recog.h and insn-config.h.
        (keep_with_call_p): Fix general_operand invocation.
        * Makefile.in (cfgrtl.o): Update dependencies.

From-SVN: r49598

22 years agoh8300.c (two_insn_adds_subs_operand): Revise a comment.
Kazu Hirata [Fri, 8 Feb 2002 00:26:36 +0000 (00:26 +0000)]
h8300.c (two_insn_adds_subs_operand): Revise a comment.

* config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
comment.  Accept HImode only if TARGET_H8300.

From-SVN: r49597

22 years agoadaint.c (__gnat_to_gm_time): First arg is int, not time_t.
Richard Henderson [Thu, 7 Feb 2002 23:53:29 +0000 (15:53 -0800)]
adaint.c (__gnat_to_gm_time): First arg is int, not time_t.

        * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
        * adaint.h (__gnat_to_gm_time): Update prototype.

From-SVN: r49596

22 years agocrtn.asm: Cleanup #ifdefs.
Eric Christopher [Thu, 7 Feb 2002 23:43:23 +0000 (23:43 +0000)]
crtn.asm: Cleanup #ifdefs.

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

* config/mips/crtn.asm: Cleanup #ifdefs.

Add ChangeLog entry for previous patch that didn't seem to make it.

From-SVN: r49595

22 years agore PR fortran/5473 (ICE on BESJN(integer*8,real))
David Billinghurst [Thu, 7 Feb 2002 23:30:12 +0000 (23:30 +0000)]
re PR fortran/5473 (ICE on BESJN(integer*8,real))

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

PR fortran/5473
* g77.dg/pr5473.f: Now dg-error.  Add additional cases.

From-SVN: r49594

22 years agoFix for string-opt-7 failure on rs6000 -maix64.
Tom Rix [Thu, 7 Feb 2002 21:57:55 +0000 (21:57 +0000)]
Fix for string-opt-7 failure on rs6000 -maix64.

From-SVN: r49593

22 years agonew2.C: Arrange for allocated memory to be sufficiently aligned for integers.
Richard Henderson [Thu, 7 Feb 2002 21:49:27 +0000 (13:49 -0800)]
new2.C: Arrange for allocated memory to be sufficiently aligned for integers.

        * g++.old-deja/g++.brendan/new2.C: Arrange for allocated memory
        to be sufficiently aligned for integers.

From-SVN: r49592

22 years agoRename instantiate_type_flags to tsubst_flags_t & expand use.
Nathan Sidwell [Thu, 7 Feb 2002 20:51:15 +0000 (20:51 +0000)]
Rename instantiate_type_flags to tsubst_flags_t & expand use.

* cp-tree.h (instantiate_type_flags): Rename to ...
(tsubst_flags_t): ... here. Rename itf_complain to tf_error,
add tf_warning flag.
(instantiate_type): Adjust prototype.
(tsubst, tsubst_expr, tsubst_copy, lookup_template_class,
do_type_instantiation, cp_build_qualified_type_real): Likewise.
cp_build_qualified_type: Adjust.
* class.c (instantiate_type): Adjust parameter. Rename itf_* to
tf_*.
* call.c (standard_conversion): Rename itf_* to tf_*.
(reference_binding): Likewise.
(convert_like_real): Likewise.
* cvt.c (cp_convert_to_pointer): Likewise.
(convert_to_reference): Likewise.
* decl.c (lookup_namespace_name): Use tf_* flags.
(make_typename_type): Likewise.
(grokdeclarator): Likewise.
* pt.c (convert_nontype_argument): Adjust COMPLAIN usage.
(coerce_template_template_parms, convert_template_argument,
coerce_template_parms, maybe_get_template_decl_from_type_decl,
lookup_template_class, tsubst_friend_function, tsubst_friend_class,
instantiate_class_template, tsubst_template_arg_vector,
tsubst_template_parms, tsubst_aggr_type, tsubst_default_argument,
tsubst_decl, tsubst_arg_types, tsubst_function_type,
tsubst_call_declarator_parms, tsubst, tsubst_copy, tsubst_expr,
instantiate_template, fn_type_unification,
resolve_overloaded_unification, verify_class_unification,
unify, get_bindings_real, do_type_instantiation,
regenerate_decl_from_template, instantiate_decl,
tsubst_initializer_list, tsubst_enum,
get_mostly_instantiated_function_type,
invalid_nontype_parm_type_p): Likewise.
* tree.c (cp_build_qualified_type_real): Likewise.
* typeck.c (build_binary_op): Rename itf_* to tf_*.
(build_ptrmemfunc): Likewise.
(convert_for_assignment): Likewise.

From-SVN: r49591

22 years agobasic_ios.tcc (basic_ios::narrow): Add default value.
Benjamin Kosnik [Thu, 7 Feb 2002 20:28:55 +0000 (20:28 +0000)]
basic_ios.tcc (basic_ios::narrow): Add default value.

2002-02-07  Benjamin Kosnik  <bkoz@redhat.com>
            Wolfgang Bangerth  <wolfgang.bangerth@iwr.uni-heidelberg.de>

* include/bits/basic_ios.tcc (basic_ios::narrow): Add default value.
(basic_ios::widen): Same.

Co-Authored-By: Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de>
From-SVN: r49590