gcc.git
22 years agolinux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
H.J. Lu [Thu, 7 Feb 2002 17:05:40 +0000 (17:05 +0000)]
linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.

2002-02-07  H.J. Lu <hjl@gnu.org>

* config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.

From-SVN: r49580

22 years agoc-decl.c (finish_function): Warn about a non-void function with no return statement...
Jason Merrill [Thu, 7 Feb 2002 12:36:46 +0000 (07:36 -0500)]
c-decl.c (finish_function): Warn about a non-void function with no return statement and no abnormal exit.

        * c-decl.c (finish_function): Warn about a non-void function with
        no return statement and no abnormal exit.
        (current_function_returns_abnormally): New variable.
        (start_function): Clear it.
        (struct c_language_function): Add returns_abnormally.
        (push_c_function_context): Save it.
        (pop_c_function_context): Restore it.
        (builtin_function): Set TREE_THIS_VOLATILE on return fns.
        (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
        an explicit return type.
        * c-tree.h: Declare current_function_returns_abnormally.
        (C_FUNCTION_IMPLICIT_INT): New macro.
        * c-typeck.c (build_function_call): Set it.
        (c_expand_return): Set current_function_returns_value even if the
        value is erroneous.

From-SVN: r49579

22 years agoc-decl.c (finish_function): Warn about a non-void function with no return statement...
Jason Merrill [Thu, 7 Feb 2002 12:22:10 +0000 (07:22 -0500)]
c-decl.c (finish_function): Warn about a non-void function with no return statement and no abnormal exit.

        * c-decl.c (finish_function): Warn about a non-void function with
        no return statement and no abnormal exit.
        (current_function_returns_abnormally): New variable.
        (start_function): Clear it.
        (struct c_language_function): Add returns_abnormally.
        (push_c_function_context): Save it.
        (pop_c_function_context): Restore it.
        (builtin_function): Set TREE_THIS_VOLATILE on return fns.
        (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
        an explicit return type.
        * c-tree.h: Declare current_function_returns_abnormally.
        (C_FUNCTION_IMPLICIT_INT): New macro.
        * c-typeck.c (build_function_call): Set it.
        (c_expand_return): Set current_function_returns_value even if the
        value is erroneous.

From-SVN: r49577

22 years ago* testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
Ulrich Weigand [Thu, 7 Feb 2002 12:14:46 +0000 (12:14 +0000)]
* testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.

From-SVN: r49576

22 years agoMAINTAINERS: Put self in as maintainer for x86-64 port.
Jan Hubicka [Thu, 7 Feb 2002 11:57:13 +0000 (12:57 +0100)]
MAINTAINERS: Put self in as maintainer for x86-64 port.

* MAINTAINERS: Put self in as maintainer for x86-64 port.
Remove self as Write After Approval.

From-SVN: r49575

22 years agoi386-protos.h (x86_order_regs_for_local_alloc): Declare
Jan Hubicka [Thu, 7 Feb 2002 11:18:32 +0000 (12:18 +0100)]
i386-protos.h (x86_order_regs_for_local_alloc): Declare

* i386-protos.h (x86_order_regs_for_local_alloc): Declare
* i386.c (x86_order_regs_for_local_alloc): New global function.
* i386.h (REG_ALLOC_ORDER): CLeanup.
(ORDER_REGS_FOR_LOCAL_ALLOC): New.

From-SVN: r49574

22 years agore PR fortran/3743 (Reference to intrinsic `ISHFT' invalid)
David Billinghurst [Thu, 7 Feb 2002 11:13:13 +0000 (11:13 +0000)]
re PR fortran/3743 (Reference to intrinsic `ISHFT' invalid)

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

PR fortran/3743
* g77.f-torture/execute/intrinsic-unix-bessel.f: Remove
unsupported cases.

From-SVN: r49573

22 years agoFor some reason AC_HEADER_SYS_WAIT() isn't defining HAVE_SYS_WAIT_H on Linux...
Adam Megacz [Thu, 7 Feb 2002 10:02:59 +0000 (10:02 +0000)]
For some reason AC_HEADER_SYS_WAIT() isn't defining HAVE_SYS_WAIT_H on Linux...

For some reason AC_HEADER_SYS_WAIT() isn't defining HAVE_SYS_WAIT_H on
Linux; this patch backs out my patch that added the #ifdefs until I
can figure out what happened.

From-SVN: r49572

22 years agodwarf2-1.c: Update for return warnings.
Richard Henderson [Thu, 7 Feb 2002 09:08:25 +0000 (01:08 -0800)]
dwarf2-1.c: Update for return warnings.

* gcc.dg/debug/dwarf2-1.c: Update for return warnings.
* gcc.dg/noncompile/920507-1.c, gcc.dg/noncompile/920721-2.c,
gcc.dg/noncompile/label-lineno-1.c, objc.dg/const-str-1.m,
objc.dg/const-str-2.m, objc.dg/method-1.m: Likewise.

From-SVN: r49571

22 years agoalias.c (find_base_value): Recall base values for fixed hard regs.
Richard Henderson [Thu, 7 Feb 2002 08:57:04 +0000 (00:57 -0800)]
alias.c (find_base_value): Recall base values for fixed hard regs.

* alias.c (find_base_value): Recall base values for fixed hard regs.
* loop.c (loop_regs_update): Don't use single_set on non-insns.

From-SVN: r49570

22 years agoDaily bump.
GCC Administrator [Thu, 7 Feb 2002 08:17:30 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r49569

22 years agomips.md (define_delay): Adjust required length.
Alexandre Oliva [Thu, 7 Feb 2002 06:09:11 +0000 (06:09 +0000)]
mips.md (define_delay): Adjust required length.

* config/mips/mips.md (define_delay) [mips16]: Adjust required
length.

From-SVN: r49567

22 years agoconfigure.in: Changed mingw) to *mingw*).
Adam Megacz [Thu, 7 Feb 2002 05:26:42 +0000 (05:26 +0000)]
configure.in: Changed mingw) to *mingw*).

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

        * configure.in: Changed mingw) to *mingw*).
        * win32.cc: Created this file.
        * win32.h: Created this file.
        * win32.cc, prims.cc, win32.h (win32_exception_handler): Moved
        win32_exception_handler from prims.cc to win32.cc, added
        header in win32.h.
        * prims.cc: removed some #ifdef-WIN32'd headers which are no
        longer needed now that we have platform.h

From-SVN: r49566

22 years agoshs.h, [...]: use uint<n>_t instead of LONG and BYTE
Adam Megacz [Thu, 7 Feb 2002 05:01:29 +0000 (05:01 +0000)]
shs.h, [...]: use uint<n>_t instead of LONG and BYTE

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

        * shs.h, shs.cc, natSimpleSHSStream.cc: use uint<n>_t instead
        of LONG and BYTE

From-SVN: r49565

22 years agoname-finder.h: don't #include sys/wait.h unless HAVE_SYS_WAIT_H
Adam Megacz [Thu, 7 Feb 2002 04:37:00 +0000 (04:37 +0000)]
name-finder.h: don't #include sys/wait.h unless HAVE_SYS_WAIT_H

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

        * name-finder.h: don't #include sys/wait.h unless HAVE_SYS_WAIT_H

From-SVN: r49564

22 years agogc.h: (GC_CreateThread) This function is now exposed on all Win32 platforms.
Adam Megacz [Thu, 7 Feb 2002 03:56:40 +0000 (03:56 +0000)]
gc.h: (GC_CreateThread) This function is now exposed on all Win32 platforms.

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

        * boehm-gc/include/gc.h: (GC_CreateThread) This function is
        now exposed on all Win32 platforms.
        * boehm-gc/win32_threads.c: (GC_CreateThread) This now
        compiles on Win32; it invokes CreateThread() if GC is built
        as a DLL; otherwise it registers the thread.
        * boehm-gc/misc.c (GC_init): Initialize GC_allocate_ml in case
        libgcjgc was not built as a DLL.

From-SVN: r49563

22 years agoembedded updates
Anthony Green [Thu, 7 Feb 2002 03:24:12 +0000 (03:24 +0000)]
embedded updates

From-SVN: r49562

22 years agoverify.cc (require_array_type): If argument is a null array of references, return...
Tom Tromey [Thu, 7 Feb 2002 02:27:10 +0000 (02:27 +0000)]
verify.cc (require_array_type): If argument is a null array of references, return null as the element type.

* verify.cc (require_array_type): If argument is a null array of
references, return null as the element type.

From-SVN: r49561

22 years agore PR c/5609 (ICE on named operands in inline assembler)
Richard Henderson [Thu, 7 Feb 2002 01:38:40 +0000 (17:38 -0800)]
re PR c/5609 (ICE on named operands in inline assembler)

        PR c/5609
        * stmt.c (resolve_operand_name_1): Take more care with mixed
        named and unnamed operands.

        * gcc.dg/asm-4.c: Add case with an unnamed operand in the middle.

From-SVN: r49560

22 years agoverify.cc (verify_instructions_0): Actually push the duplicate of a wide type.
Mark Wielaard [Thu, 7 Feb 2002 01:11:32 +0000 (01:11 +0000)]
verify.cc (verify_instructions_0): Actually push the duplicate of a wide type.

2002-02-06  Mark Wielaard  <mark@klomp.org>

* verify.cc (verify_instructions_0) [op_dup2]: Actually push the
duplicate of a wide type.

From-SVN: r49559

22 years agoc_locale_generic.cc: Do not trust _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as...
Loren J. Rittle [Wed, 6 Feb 2002 23:11:16 +0000 (23:11 +0000)]
c_locale_generic.cc: Do not trust _GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as set by configure.

* config/locale/c_locale_generic.cc: Do not trust
_GLIBCPP_HAVE_STRTOF or _GLIBCPP_HAVE_STRTOLD as
set by configure.

From-SVN: r49558

22 years ago* gcc.dg/20020206-1.c: New test.
Janis Johnson [Wed, 6 Feb 2002 22:16:11 +0000 (22:16 +0000)]
* gcc.dg/20020206-1.c: New test.

From-SVN: r49557

22 years agoloop.c (remove_constant_addition): Avoid clobbering a shared CONST expression.
Janis Johnson [Wed, 6 Feb 2002 22:13:01 +0000 (22:13 +0000)]
loop.c (remove_constant_addition): Avoid clobbering a shared CONST expression.

* loop.c (remove_constant_addition): Avoid clobbering a shared
CONST expression.

Co-Authored-By: Jan Hubicka <jh@suse.cz>
From-SVN: r49556

22 years agoverify.cc (type::isnull): New method.
Tom Tromey [Wed, 6 Feb 2002 21:53:59 +0000 (21:53 +0000)]
verify.cc (type::isnull): New method.

* verify.cc (type::isnull): New method.
(require_array_type): Handle case where array is null.
(verify_instructions_0) [op_arraylength]: Likewise.

From-SVN: r49555

22 years agoPR fortran/4730 fortran/5473
Toon Moene [Wed, 6 Feb 2002 21:49:42 +0000 (22:49 +0100)]
PR fortran/4730 fortran/5473

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

PR fortran/4730 fortran/5473
* com.c (ffecom_expr_): Deal with %VAL constructs.
* intrin.c (ffeintrin_check_): Handle 'N' constraints for intrinsics,
to indicate "no larger than default kind" integers and logicals.
* intrin.def: Use 'N' constraints in table of intrinsics.
* intdoc.c: Document this constraint.
* intdoc.texi: Regenerated.

From-SVN: r49554

22 years agoconfig.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
Ulrich Weigand [Wed, 6 Feb 2002 21:19:46 +0000 (21:19 +0000)]
config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.

* config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
* config/s390/t-linux64: New file.
* config/s390/libgcc-glibc.ver: New file.

From-SVN: r49553

22 years agolinux64.h: Delete file.
Ulrich Weigand [Wed, 6 Feb 2002 20:55:37 +0000 (20:55 +0000)]
linux64.h: Delete file.

* config/s390/linux64.h: Delete file.
* config/s390/s390x.h: New file.
* config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
as target header file.
* config/s390/linux.h (TARGET_VERSION): Define depending on
DEFAULT_TARGET_64BIT.
(CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
(SIZE_TYPE, PTRDIFF_TYPE): Likewise.
(NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
(CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
(LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
(EXTRA_SPEC): New define.
* config/s390/s390.h (TARGET_VERSION): Define depending on
DEFAULT_TARGET_64BIT.
(MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.

From-SVN: r49552

22 years agoc-decl.c (finish_function): Warn about a non-void function with no return statement...
Jason Merrill [Wed, 6 Feb 2002 20:40:18 +0000 (15:40 -0500)]
c-decl.c (finish_function): Warn about a non-void function with no return statement and no abnormal exit.

        * c-decl.c (finish_function): Warn about a non-void function with
        no return statement and no abnormal exit.
        (current_function_returns_abnormally): New variable.
        (start_function): Clear it.
        (struct c_language_function): Add returns_abnormally.
        (push_c_function_context): Save it.
        (pop_c_function_context): Restore it.
        (builtin_function): Set TREE_THIS_VOLATILE on return fns.
        (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
        an explicit return type.
        * c-tree.h: Declare current_function_returns_abnormally.
        (C_FUNCTION_IMPLICIT_INT): New macro.
        * c-typeck.c (build_function_call): Set it.
        (c_expand_return): Set current_function_returns_value even if the
        value is erroneous.

From-SVN: r49551

22 years agore PR c/5420 (bad code generated with gcc3.1/ia64)
Jakub Jelinek [Wed, 6 Feb 2002 19:37:31 +0000 (20:37 +0100)]
re PR c/5420 (bad code generated with gcc3.1/ia64)

PR c/5420:
* c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
unsafe for reevaluation.

* gcc.c-torture/execute/20020206-2.c: New test.

From-SVN: r49550

22 years agore PR c/5482 (cyclone-0.2, ICE in emit_move_insn, at expr.c:2746)
Jakub Jelinek [Wed, 6 Feb 2002 19:32:04 +0000 (20:32 +0100)]
re PR c/5482 (cyclone-0.2, ICE in emit_move_insn, at expr.c:2746)

PR c/5482:
* c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
EXPR_STMT, but COMPOUND_STMT, recurse into it.

* gcc.c-torture/execute/20020206-1.c: New test.

From-SVN: r49549

22 years agore PR rtl-optimization/5429 (gcc 3.1 20020114 fails with Internal compiler error...
Jakub Jelinek [Wed, 6 Feb 2002 19:27:05 +0000 (20:27 +0100)]
re PR rtl-optimization/5429 (gcc 3.1 20020114 fails with Internal compiler error in verify_wide_reg_1, at flow.c:526)

PR optimization/5429:
* gcc.c-torture/compile/20020206-1.c: New test.

From-SVN: r49548

22 years agocfganal.c (keep_with_call_p): Source for fixed_reg dest must be a general_operand.
Richard Henderson [Wed, 6 Feb 2002 18:16:02 +0000 (10:16 -0800)]
cfganal.c (keep_with_call_p): Source for fixed_reg dest must be a general_operand.

        * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
        be a general_operand.  Dest for function value must be a pseudo.

From-SVN: r49547

22 years agoacinclude.m4: Add C++ linkage check for strtof.
Loren J. Rittle [Wed, 6 Feb 2002 17:31:43 +0000 (17:31 +0000)]
acinclude.m4: Add C++ linkage check for strtof.

* acinclude.m4: Add C++ linkage check for strtof.
* aclocal.m4: Rebuilt.
* config.h.in: Rebuilt.
* configure: Rebuilt.
* config/locale/c_locale_generic.cc: Conditionally include
<ieeefp.h>.  Improve handling and error checking of float
and long double input for non-C99 configurations.

From-SVN: r49546

22 years agoDo not use an explicit alignment value as certain file formats cannot support
Nick Clifton [Wed, 6 Feb 2002 16:18:33 +0000 (16:18 +0000)]
Do not use an explicit alignment value as certain file formats cannot support
particularly large alignments.

From-SVN: r49545

22 years agoExpect the compilation to fail because the COFF format does not support the
Nick Clifton [Wed, 6 Feb 2002 12:15:53 +0000 (12:15 +0000)]
Expect the compilation to fail because the COFF format does not support the
weak attribute.

From-SVN: r49544

22 years agolocale_facets.tcc (money_get::do_get(string)): In case money_base::symbol deal proper...
Paolo Carlini [Wed, 6 Feb 2002 12:13:00 +0000 (13:13 +0100)]
locale_facets.tcc (money_get::do_get(string)): In case money_base::symbol deal properly with multi-char sign for patterns...

2002-02-06  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc (money_get::do_get(string)):
In case money_base::symbol deal properly with multi-char sign
for patterns {X,Y,Z,symbol} and {X,Y,symbol,none}.
* testsuite/22_locale/money_get_members_char.cc: Add test07.
* testsuite/22_locale/money_get_members_wchar_t.cc: Add test07.

From-SVN: r49543

22 years agoAccept LABEL_REFs as well as SYMBOL_REFs from the constant pool.
Nick Clifton [Wed, 6 Feb 2002 09:08:19 +0000 (09:08 +0000)]
Accept LABEL_REFs as well as SYMBOL_REFs from the constant pool.

From-SVN: r49542

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

From-SVN: r49540

22 years agodbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters passed by invisible...
Alexandre Oliva [Wed, 6 Feb 2002 07:40:38 +0000 (07:40 +0000)]
dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters passed by invisible reference.

* dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
passed by invisible reference.

From-SVN: r49539

22 years ago* config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
Richard Henderson [Wed, 6 Feb 2002 06:58:31 +0000 (22:58 -0800)]
* config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.

From-SVN: r49538

22 years agoOops, forgot these in last check-in.
Bryce McKinlay [Wed, 6 Feb 2002 05:45:23 +0000 (05:45 +0000)]
Oops, forgot these in last check-in.

From-SVN: r49537

22 years agoImplement using "base addresses" in insn operands as default.
Hans-Peter Nilsson [Wed, 6 Feb 2002 05:13:12 +0000 (05:13 +0000)]
Implement using "base addresses" in insn operands as default.

* config/mmix/mmix.c (mmix_conditional_register_usage): if
-mabi=gnu, modify fixed_regs to fit the GNU ABI.
(mmix_extra_constraint): Use 'R' to indicate that GETA should be
used to read the rtx value.
(mmix_target_asm_function_epilogue): Fix spacing.
(mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
(mmix_legitimate_address): Ditto.
(mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
should be loaded with a GETA insn.  Don't allocate needless extra
char for nul termination and fix misleading comment.
(mmix_print_operand_address): Handle constants if
TARGET_BASE_ADDRESSES.
(mmix_output_register_setting): Use base addressing if
TARGET_BASE_ADDRESSES and the number of insns is 3.
* config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
* config/mmix/mmix.md ("movdi"): Change the alternative with GETA
to use R as constraint, add LDA to match s.
* config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
(TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
(TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
(FIXED_REGISTERS): Make registers $231..$246 fixed by default.
(MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
order with other fixed registers.
(MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
other parameter/call-clobbered registers.
* doc/invoke.texi (Option Summary) <MMIX Options>: Add
-mbase-addresses, -mno-base-addresses.
(MMIX Options): Ditto.

From-SVN: r49536

22 years agocrti.asm: Add changes for mips16.
Eric Christopher [Wed, 6 Feb 2002 02:50:09 +0000 (02:50 +0000)]
crti.asm: Add changes for mips16.

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

* config/mips/crti.asm: Add changes for mips16. mips16 uses
register 7 as RA instead of $31.
* config/mips/crtn.asm: Ditto.
* config/mips/mips.c (mips_move_2words): Add case for
TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
(compute_frame_size): Fix typo.
(save_restore_insns): Ditto.  Make documentation about using
register $7 as return register more precise.
(mips_expand_epilogue): Fix comment. Add code to work around not
being able to add to the stack pointer directly.
* config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
epilogue.

From-SVN: r49535

22 years agoconfigure.in: Set up PLATFORMOBJS not PLATFORM_SPECIFIC_SOURCES.
Bryce McKinlay [Wed, 6 Feb 2002 01:46:46 +0000 (01:46 +0000)]
configure.in: Set up PLATFORMOBJS not PLATFORM_SPECIFIC_SOURCES.

* configure.in: Set up PLATFORMOBJS not PLATFORM_SPECIFIC_SOURCES.
Symlink PLATFORMH to platform.h.
* Makefile.am (libgcj_la_DEPENDENCIES, libgcj_la_LIBADD): Add
PLATFORMOBJS.
* java/lang/natSystem.cc: #include platform.h not posix.h.
* Makefile.in: Rebuilt with libgcj automake.
* configure: Rebuilt.

From-SVN: r49534

22 years ago* pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
John David Anglin [Wed, 6 Feb 2002 00:21:26 +0000 (00:21 +0000)]
* pa.h (PREDICATE_CODES): Add reg_before_reload_operand.

From-SVN: r49533

22 years agoaltivec.h: Change elem to _S_elem.
Aldy Hernandez [Tue, 5 Feb 2002 23:19:13 +0000 (23:19 +0000)]
altivec.h: Change elem to _S_elem.

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

        * config/rs6000/altivec.h: Change elem to _S_elem.

From-SVN: r49532

22 years agopr5473.f: New test
David Billinghurst [Tue, 5 Feb 2002 22:34:37 +0000 (22:34 +0000)]
pr5473.f: New test

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

* g77.dg/pr5473.f:  New test

From-SVN: r49531

22 years agonetbsd.h (WCHAR_TYPE): Define.
Jason Thorpe [Tue, 5 Feb 2002 19:01:56 +0000 (19:01 +0000)]
netbsd.h (WCHAR_TYPE): Define.

* config/netbsd.h (WCHAR_TYPE): Define.
(WCHAR_TYPE_SIZE): Ditto.
(WINT_TYPE): Ditto.
* config/alpha/netbsd.h (WCHAR_TYPE): Remove.
(WCHAR_UNSIGNED): Ditto.
(WCHAR_TYPE_SIZE): Ditto.
(WINT_TYPE): Ditto.
* config/arm/netbsd.h: Likewise.
* config/i386/netbsd-elf.h: Likewise.
* config/i386/netbsd.h: Likewise.
* config/m68k/netbsd-elf.h: Likewise.
* config/m68k/netbsd.h: Likewise.
* config/ns32k/netbsd.h: Likewise.
* config/sparc/netbsd.h: Likewise.
* config/vax/netbsd.: Likewise.

From-SVN: r49528

22 years agoclass.c: Include target.h.
Alexandre Oliva [Tue, 5 Feb 2002 18:01:51 +0000 (18:01 +0000)]
class.c: Include target.h.

* class.c: Include target.h.
(check_bitfield_decl): Disregard EMPTY_FIELD_BOUNDARY,
BITFIELDS_NBYTES_LIMITED and PCC_BITFIELD_TYPE_MATTERS for MS
bit-field layout.
* Make-lang.in: Adjust deps.

From-SVN: r49527

22 years agotarget.h (struct gcc_target): Added ms_bitfield_layout_p.
Alexandre Oliva [Tue, 5 Feb 2002 17:56:34 +0000 (17:56 +0000)]
target.h (struct gcc_target): Added ms_bitfield_layout_p.

* target.h (struct gcc_target): Added ms_bitfield_layout_p.
* target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
(TARGET_INITIALIZER): this.
* doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
(BITFIELD_NBYTES_LIMITED): Markup fix.
* tree.h (default_ms_bitfield_layout_p): Declare.
(record_layout_info): Added prev_field.
* tree.c (default_ms_bitfield_layout_p): New fn.
* c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
* stor-layout.c: Include target.h.
(start_record_layout): Initialize prev_field.
(place_field): Handle MS bit-field layout, and disregard
EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
* Makefile.in (stor-layout.o): Adjust dependencies.

From-SVN: r49526

22 years agodemangle.h (cplus_demangle_v3): Add "options" parm.
Jason Merrill [Tue, 5 Feb 2002 16:33:31 +0000 (11:33 -0500)]
demangle.h (cplus_demangle_v3): Add "options" parm.

        * demangle.h (cplus_demangle_v3): Add "options" parm.
        (cplus_demangle_v3_type): Remove prototype.
        (DMGL_VERBOSE): New macro.
        (DMGL_TYPES): New macro.

        * cplus-dem.c (flags): Add DMGL_VERBOSE
        (cplus_demangle_v3_p): Remove.
        (demangle_it): Add DMGL_TYPES to passed flags.
        * cp-demangle.c (cplus_demangle_v3_all): Remove.
        (cplus_demangle_v3_type): Remove.
        (cplus_demangle_v3): Add options parm.

        * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.

From-SVN: r49525

22 years agolocale_facets.tcc (money_get::do_get(string)): First construct a tentative returned...
Paolo Carlini [Tue, 5 Feb 2002 11:35:48 +0000 (12:35 +0100)]
locale_facets.tcc (money_get::do_get(string)): First construct a tentative returned string...

2002-02-05  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc (money_get::do_get(string)):
First construct a tentative returned string, then, only if the
parsing succeeds, copy it into the string passed by reference.
* testsuite/22_locale/money_get_members_char.cc: Add test06.
* testsuite/22_locale/money_get_members_wchar_t.cc: Add test06.

From-SVN: r49523

22 years ago* crtstuff.c: Fix comments.
Andreas Jaeger [Tue, 5 Feb 2002 10:31:06 +0000 (11:31 +0100)]
* crtstuff.c: Fix comments.

From-SVN: r49522

22 years agore PR fortran/3393 (ICE in extract_insn, at recog.c:2173)
Richard Henderson [Tue, 5 Feb 2002 09:49:31 +0000 (01:49 -0800)]
re PR fortran/3393 (ICE in extract_insn, at recog.c:2173)

        PR fortran/3393
        * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
        (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.

From-SVN: r49521

22 years agore PR fortran/3392 (ICE in function_arg, at config/mips/mips.c:4007)
Richard Henderson [Tue, 5 Feb 2002 09:27:15 +0000 (01:27 -0800)]
re PR fortran/3392 (ICE in function_arg, at config/mips/mips.c:4007)

        PR fortran/3392
        * config/mips/mips.c (function_arg): Handle TImode.
        (function_arg_advance): Likewise.

From-SVN: r49520

22 years ago* Makefile.in: Undo munging last change.
Richard Henderson [Tue, 5 Feb 2002 08:38:02 +0000 (00:38 -0800)]
* Makefile.in: Undo munging last change.

From-SVN: r49519

22 years agoaltivec.h (vec_step_help): Rename to __vec_step_help.
Aldy Hernandez [Tue, 5 Feb 2002 08:28:23 +0000 (08:28 +0000)]
altivec.h (vec_step_help): Rename to __vec_step_help.

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

        * config/rs6000/altivec.h (vec_step_help): Rename to
        __vec_step_help.

From-SVN: r49518

22 years agoDaily bump.
GCC Administrator [Tue, 5 Feb 2002 08:18:42 +0000 (08:18 +0000)]
Daily bump.

From-SVN: r49517

22 years agoaltivec-4.c: AltiVec builtin predicates changed format.
Aldy Hernandez [Tue, 5 Feb 2002 08:12:31 +0000 (08:12 +0000)]
altivec-4.c: AltiVec builtin predicates changed format.

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

        * gcc.dg/altivec-4.c: AltiVec builtin predicates changed format.
        Fix testcase accordingly.

From-SVN: r49515

22 years agoUndo munging last update.
Richard Henderson [Tue, 5 Feb 2002 08:05:41 +0000 (00:05 -0800)]
Undo munging last update.

From-SVN: r49514

22 years agoaltivec.h: Fix typos.
Aldy Hernandez [Tue, 5 Feb 2002 07:56:33 +0000 (07:56 +0000)]
altivec.h: Fix typos.

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

        * config/rs6000/altivec.h: Fix typos.

From-SVN: r49513

22 years agobuilt-in-setjmp.c: Prototype stuff.
Richard Henderson [Tue, 5 Feb 2002 06:37:02 +0000 (22:37 -0800)]
built-in-setjmp.c: Prototype stuff.

        * gcc.c-torture/execute/built-in-setjmp.c: Prototype stuff.
        (buf): Change to be an array of pointers, not ints.

From-SVN: r49512

22 years ago* config/arm/netbsd.h: Correct a comment.
Jason Thorpe [Tue, 5 Feb 2002 02:39:31 +0000 (02:39 +0000)]
* config/arm/netbsd.h: Correct a comment.

From-SVN: r49511

22 years agors6000.c (altivec_init_builtins): Fix typo building void typed builtins.
Aldy Hernandez [Tue, 5 Feb 2002 02:18:55 +0000 (02:18 +0000)]
rs6000.c (altivec_init_builtins): Fix typo building void typed builtins.

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

        * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
        building void typed builtins.

        * config/rs6000/altivec.h (vec_ld*): Fix typos.
        (vec_step): Implement for C++.

From-SVN: r49510

22 years agowin32.cc: Created it.
Adam Megacz [Tue, 5 Feb 2002 02:08:16 +0000 (02:08 +0000)]
win32.cc: Created it.

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

        * win32.cc: Created it.
          configure.in: Added PLATFORM_SPECIFIC_SOURCES,
          which is set to posix.cc or win32.cc.
          Makefile.am: Updated it to use $(PLATFORM_SPECIFIC_SOURCES).

From-SVN: r49509

22 years agoconfigure.in: Corrected mingw case branches; added * before and after.
Adam Megacz [Tue, 5 Feb 2002 02:05:05 +0000 (02:05 +0000)]
configure.in: Corrected mingw case branches; added * before and after.

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

        * configure.in: Corrected mingw case branches; added * before
          and after.

From-SVN: r49508

22 years agoconfigure.in: Add -lgdi32 -lwsock32 -lws2_32 to libgcj.spec if compiling for win32
Adam Megacz [Tue, 5 Feb 2002 02:04:15 +0000 (02:04 +0000)]
configure.in: Add -lgdi32 -lwsock32 -lws2_32 to libgcj.spec if compiling for win32

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

        * configure.in: Add -lgdi32 -lwsock32 -lws2_32 to libgcj.spec
          if compiling for win32

From-SVN: r49507

22 years agowin32-threads.cc: #undef STRICT after gc.h inclusion
Adam Megacz [Tue, 5 Feb 2002 01:59:44 +0000 (01:59 +0000)]
win32-threads.cc: #undef STRICT after gc.h inclusion

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

        * win32-threads.cc: #undef STRICT after gc.h inclusion

From-SVN: r49506

22 years ago* error.c (dump_type): Be more helpful about VECTOR_TYPE.
Jason Merrill [Tue, 5 Feb 2002 01:46:01 +0000 (20:46 -0500)]
* error.c (dump_type): Be more helpful about VECTOR_TYPE.

From-SVN: r49505

22 years ago* final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
Richard Kenner [Tue, 5 Feb 2002 00:29:01 +0000 (00:29 +0000)]
* final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.

From-SVN: r49503

22 years ago[multiple changes]
Phil Edwards [Tue, 5 Feb 2002 00:14:37 +0000 (00:14 +0000)]
[multiple changes]

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

* docs/doxygen/TODO:  Impl-defined behavior now documented...
* docs/html/17_intro/howto.html:  ...here.
* docs/doxygen/mainpage.doxy:  Remove, rename...
* docs/doxygen/mainpage.html:  ...to this.  Tweak HTML, add license.
* docs/doxygen/style.css:  Add small text.
* docs/doxygen/run_doxygen:  Adjust for new mainpage.
* docs/doxygen/user.cfg.in:  Likewise.

2002-02-04  Stephan Buys  <s.buys@icon.co.za>

* include/bits/stl_map.h:  Initial doxygen markup.
* include/std/std_fstream.h:  Initial doxygen markup.

From-SVN: r49502

22 years agocombine.c (nonzero_bits): Re-introduce special case for sp/fp/ap wrt REGNO_POINTER_ALIGN.
Richard Henderson [Mon, 4 Feb 2002 23:06:04 +0000 (15:06 -0800)]
combine.c (nonzero_bits): Re-introduce special case for sp/fp/ap wrt REGNO_POINTER_ALIGN.

        * combine.c (nonzero_bits): Re-introduce special case for
        sp/fp/ap wrt REGNO_POINTER_ALIGN.

From-SVN: r49501

22 years agoextend.texi: Warn about unsupported usage of altivec builtins.
Aldy Hernandez [Mon, 4 Feb 2002 22:50:56 +0000 (22:50 +0000)]
extend.texi: Warn about unsupported usage of altivec builtins.

2002-01-31  Aldy Hernandez  <aldyh@redhat.com>

        * doc/extend.texi: Warn about unsupported usage of altivec
        builtins.

        * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
        (altivec_predicate_*): New.

        * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
        Add C++ version of vec_*() functions.

        * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
        (bdesc_2arg): Remove altivec predicates.
        (altivec_expand_builtin): Handle predicates.
        (altivec_init_builtins): Handle predicates.
        (altivec_expand_predicate_builtin): New.

From-SVN: r49500

22 years agopa.c (DO_FRAME_NOTES): Move forward.
John David Anglin [Mon, 4 Feb 2002 22:41:59 +0000 (22:41 +0000)]
pa.c (DO_FRAME_NOTES): Move forward.

* pa.c (DO_FRAME_NOTES): Move forward.
(store_reg): Revise handling of frame notes.
(load_reg): Likewise.
(set_reg_plus_d): Likewise.
(hppa_expand_prologue): Likewise.
(hppa_expand_epilogue): Likewise.

From-SVN: r49499

22 years ago* unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
John David Anglin [Mon, 4 Feb 2002 22:21:12 +0000 (22:21 +0000)]
* unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.

From-SVN: r49498

22 years agoPR c/4475, c++/3780:
Jakub Jelinek [Mon, 4 Feb 2002 22:05:15 +0000 (23:05 +0100)]
PR c/4475, c++/3780:

* c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
* c-common.h (SWITCH_TYPE): Define.
* c-typeck.c (c_start_case): Set SWITCH_TYPE.
* stmt.c (all_cases_count): Set lastval to thisval at end of loop.
Rename spareness variable to sparseness.
(expand_end_case_type): Renamed from expand_end_case, use orig_type
if non-NULL instead of TREE_TYPE (orig_index).
* tree.h (expand_end_case_type): Renamed from expand_end_case.
(expand_end_case): Define using expand_end_case_type.
* c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
to expand_end_case_type.
* doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.

* semantics.c (begin_switch_stmt): Clear SWITCH_TYPE.
(finish_switch_cond): Set SWITCH_TYPE.

* gcc.dg/Wswitch.c: Fix typos.  Don't return unconditionally
before all tests.  Move warning one line above to match where it
C frontend emits.
* gcc.dg/Wswitch-2.c: New test.
* g++.dg/warn/Wswitch-1.C: New test.
* g++.dg/warn/Wswitch-2.C: New test.

From-SVN: r49497

22 years agopa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
John David Anglin [Mon, 4 Feb 2002 21:37:14 +0000 (21:37 +0000)]
pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.

* pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
(BIGGEST_ALIGNMENT): Change to 128.

From-SVN: r49496

22 years ago* pa32-linux.h (LINK_COMMAND_SPEC): Define.
John David Anglin [Mon, 4 Feb 2002 21:16:51 +0000 (21:16 +0000)]
* pa32-linux.h (LINK_COMMAND_SPEC): Define.

From-SVN: r49492

22 years ago* pa.md (call_internal_reg_64bit): Remove unused variable.
John David Anglin [Mon, 4 Feb 2002 21:05:25 +0000 (21:05 +0000)]
* pa.md (call_internal_reg_64bit): Remove unused variable.

From-SVN: r49491

22 years agoReplace current_function_anonymous_args with cfun->machine->uses_anonymous_args
Nick Clifton [Mon, 4 Feb 2002 20:23:07 +0000 (20:23 +0000)]
Replace current_function_anonymous_args with cfun->machine->uses_anonymous_args

From-SVN: r49490

22 years agolocale_facets.tcc (money_get::do_get(string)): Deal correctly with !(__io.flags(...
Paolo Carlini [Mon, 4 Feb 2002 19:51:32 +0000 (20:51 +0100)]
locale_facets.tcc (money_get::do_get(string)): Deal correctly with !(__io.flags() & ios_base::showbase) for case...

2002-02-04  Paolo Carlini  <pcarlini@unitus.it>

        libstdc++/5579
        * include/bits/locale_facets.tcc (money_get::do_get(string)):
        Deal correctly with !(__io.flags() & ios_base::showbase)
        for case money_base::symbol.
        * testsuite/22_locale/money_get_members_char.cc: Add test05.
        * testsuite/22_locale/money_get_members_wchar_t.cc: Add test05.

From-SVN: r49489

22 years agocfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect the entry block.
Bernd Schmidt [Mon, 4 Feb 2002 19:19:04 +0000 (19:19 +0000)]
cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect the entry block.

        * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
         the entry block.

From-SVN: r49488

22 years ago* g++.dg/abi/offsetof.C: Fix size comparison.
Richard Henderson [Mon, 4 Feb 2002 18:27:59 +0000 (10:27 -0800)]
* g++.dg/abi/offsetof.C: Fix size comparison.

From-SVN: r49487

22 years agocombine.c (force_to_mode): Remove STACK_BIAS code.
Richard Henderson [Mon, 4 Feb 2002 18:16:07 +0000 (10:16 -0800)]
combine.c (force_to_mode): Remove STACK_BIAS code.

        * combine.c (force_to_mode): Remove STACK_BIAS code.
        (nonzero_bits): Likewise.  Replace sp/fp special case with
        REGNO_POINTER_ALIGN.

        * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
        (HARD_FRAME_POINTER_REGNUM): New.
        (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
        (FIXED_REGS, CALL_USED_REGS): Update.
        (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
        (CONDITIONAL_REGISTER_USAGE): Update for HFP.
        (HARD_REGNO_NREGS): Update for SFP.
        (STACK_POINTER_OFFSET): Include bias here ...
        (FIRST_PARM_OFFSET): ... not here.
        (STACK_BIAS): Remove.
        (INIT_EXPANDERS): New.
        (STARTING_FRAME_OFFSET): Do not include bias.
        (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
        (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
        (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
        * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
        * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
        * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
        (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
        (MUST_SAVE_REGISTER): Likewise.
        (sparc_flat_function_prologue): Likewise.
        (sparc_flat_function_epilogue): Likewise.
        (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
        (sparc_init_modes): SFP is GENERAL_REGS.
        (sparc_builtin_saveregs): SFP does not have bias applied.

From-SVN: r49486

22 years agoReindent.
Richard Henderson [Mon, 4 Feb 2002 17:58:08 +0000 (09:58 -0800)]
Reindent.

From-SVN: r49485

22 years agoalpha.c (current_function_is_thunk): Don't check current_function_is_thunk.
Richard Henderson [Mon, 4 Feb 2002 17:44:26 +0000 (09:44 -0800)]
alpha.c (current_function_is_thunk): Don't check current_function_is_thunk.

        * config/alpha/alpha.c (current_function_is_thunk): Don't check
        current_function_is_thunk.
        (alpha_sa_mask): Distinguish between current_function_is_thunk
        called from ASM_OUTPUT_MI_THUNK and not.
        (alpha_does_function_need_gp): Thunks always need gp.
        (alpha_start_function, alpha_output_function_end_prologue): Likewise.
        (alpha_output_mi_thunk_osf): New.
        * config/alpha/alpha-protos.h: Update.
        * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.

cp/
        * method.c (use_thunk): Always initialize the block tree.  Reindent.
        * semantics.c (expand_body): Emit thunks after function, not before.

From-SVN: r49484

22 years ago* gcc.pot: Regenerate.
Zack Weinberg [Mon, 4 Feb 2002 17:05:24 +0000 (17:05 +0000)]
* gcc.pot: Regenerate.

From-SVN: r49483

22 years ago* gcc.dg/cast-qual-2.c: New test.
Richard Sandiford [Mon, 4 Feb 2002 17:02:39 +0000 (17:02 +0000)]
* gcc.dg/cast-qual-2.c: New test.

From-SVN: r49482

22 years agoc-typeck.c (build_c_cast): Warn when qualifiers are added to function types, not...
Richard Sandiford [Mon, 4 Feb 2002 17:01:30 +0000 (17:01 +0000)]
c-typeck.c (build_c_cast): Warn when qualifiers are added to function types, not when they're taken away.

* c-typeck.c (build_c_cast): Warn when qualifiers are added to
function types, not when they're taken away.

From-SVN: r49481

22 years agodecl.c (start_function): Call cplus_decl_attributes immediately after grokdeclarator.
Jason Merrill [Mon, 4 Feb 2002 16:28:40 +0000 (11:28 -0500)]
decl.c (start_function): Call cplus_decl_attributes immediately after grokdeclarator.

        * decl.c (start_function): Call cplus_decl_attributes immediately
        after grokdeclarator.

        * decl.c (start_function): Combine DECL_RESULT handling code.

From-SVN: r49480

22 years agoUpdate copyright dates.
Philipp Thomas [Mon, 4 Feb 2002 16:07:59 +0000 (16:07 +0000)]
Update copyright dates.

From-SVN: r49479

22 years agocfgrtl.c (try_redirect_by_replacing_jump): Remove associated CODE_LABEL and jump...
Jeff Law [Mon, 4 Feb 2002 16:03:14 +0000 (09:03 -0700)]
cfgrtl.c (try_redirect_by_replacing_jump): Remove associated CODE_LABEL and jump table when...

        * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
        CODE_LABEL and jump table when replacing a table jump with a
        simple jump.

From-SVN: r49478

22 years agobad.def [...]: Insert comments to mark messages as not being printf style where appro...
Philipp Thomas [Mon, 4 Feb 2002 15:58:51 +0000 (15:58 +0000)]
bad.def [...]: Insert comments to mark messages as not being printf style where appropriate.

2002-02-04  Philipp Thomas  <pthomas@suse.de>

* bad.def com.c expr.c implic.c lex.c stb.c ste.c stu.c:
Insert comments to mark messages as not being printf style
where appropriate.

From-SVN: r49477

22 years agos390-protos.h (legitimize_la_operand, [...]): Add prototypes.
Ulrich Weigand [Mon, 4 Feb 2002 15:51:18 +0000 (15:51 +0000)]
s390-protos.h (legitimize_la_operand, [...]): Add prototypes.

* config/s390/s390-protos.h (legitimize_la_operand,
s390_secondary_input_reload_class, s390_plus_operand,
s390_expand_plus_operand): Add prototypes.

config/s390/s390.c (s390_secondary_input_reload_class,
s390_plus_operand, s390_expand_plus_operand): New functions.

(struct s390_address): New member 'pointer'.
(s390_decompose_address): Compute it.
(legitimate_la_operand_p): Use it.
(legitimize_la_operand): New function.
(movti, movdi, movdf splitters): Call it.

config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
(PREDICATE_CODES): Add s390_plus_operand.

config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
(la_ccclobber): Allow GENERAL_REGS as output operand.

(reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
*reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
(*la_64, *la_31, reload_indi, reload_insi): ... these.

From-SVN: r49476

22 years agos390.h (CRT_CALL_STATIC_FUNCTION): Fixed register names for regular asm () construct.
Ulrich Weigand [Mon, 4 Feb 2002 15:43:02 +0000 (15:43 +0000)]
s390.h (CRT_CALL_STATIC_FUNCTION): Fixed register names for regular asm () construct.

* gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
register names for regular asm () construct.

From-SVN: r49475

22 years agoi386.md (movsf_1): Allow moving SF values in MMX registers.
Jakub Jelinek [Mon, 4 Feb 2002 09:48:34 +0000 (10:48 +0100)]
i386.md (movsf_1): Allow moving SF values in MMX registers.

* config/i386/i386.md (movsf_1): Allow moving SF values in MMX
registers.

From-SVN: r49474

22 years agocombine.c (recog_for_combine): Create a dummy insn with PATTERN pat for recog.
Jakub Jelinek [Mon, 4 Feb 2002 09:40:57 +0000 (10:40 +0100)]
combine.c (recog_for_combine): Create a dummy insn with PATTERN pat for recog.

* combine.c (recog_for_combine): Create a dummy insn with PATTERN
pat for recog.

* gcc.dg/20020201-4.c: New test.

From-SVN: r49473

22 years agoxref.c: Remove.
Jason Merrill [Mon, 4 Feb 2002 08:55:43 +0000 (03:55 -0500)]
xref.c: Remove.

        * xref.c: Remove.
        * Make-lang.in (CXX_OBJS): Remove cp/xref.o
        (cp/xref.o): Remove dependencies.
        * class.c (finish_struct_1, check_methods): Don't call xref fns.
        (finish_struct_1): Likewise.
        * friend.c (make_friend_class): Likewise.
        * lex.c (cxx_init, cxx_finish, extract_interface_info): Likewise.
        * spew.c (read_process_identifier): Likewise.

From-SVN: r49472

22 years agovarasm.c (decode_rtx_const): Allow unspec (symbol_ref) in constant pool to be identic...
Hartmut Penner [Mon, 4 Feb 2002 08:29:08 +0000 (08:29 +0000)]
varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in constant pool to be identical by string address...

     * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
     constant pool to be identical by string address and index.

From-SVN: r49471

22 years agogcc.exp (gcc_init): Check that the need_status_wrapper target_info attribute != 0...
Ben Elliston [Mon, 4 Feb 2002 05:00:25 +0000 (05:00 +0000)]
gcc.exp (gcc_init): Check that the need_status_wrapper target_info attribute != 0...

* lib/gcc.exp (gcc_init): Check that the need_status_wrapper
target_info attribute != 0, in addition to the empty string.
(gcc_target_compile): Likewise.

From-SVN: r49470