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
GCC Administrator [Sun, 10 Feb 2002 08:16:27 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r49650
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
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
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
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
Jan Hubicka [Sat, 9 Feb 2002 17:53:58 +0000 (18:53 +0100)]
* i386.md (movdi_2): Add missing '!'.
From-SVN: r49640
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
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
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
GCC Administrator [Sat, 9 Feb 2002 08:16:15 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r49634
Kazu Hirata [Sat, 9 Feb 2002 05:16:25 +0000 (05:16 +0000)]
* config/h8300/h8300.md (iorhi3): Tighten the predicates.
From-SVN: r49633
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
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
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
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
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
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
Anthony Green [Sat, 9 Feb 2002 00:50:05 +0000 (00:50 +0000)]
xscale-elf support
From-SVN: r49626
Richard Henderson [Sat, 9 Feb 2002 00:30:30 +0000 (16:30 -0800)]
Annotate changelog with pr number.
From-SVN: r49625
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
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
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
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
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
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
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
Gerald Pfeifer [Fri, 8 Feb 2002 15:41:03 +0000 (16:41 +0100)]
* snapshot-index.html: Improve markup.
From-SVN: r49617
Anthony Green [Fri, 8 Feb 2002 14:46:36 +0000 (14:46 +0000)]
Add xscale-elf support
From-SVN: r49616
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
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
GCC Administrator [Fri, 8 Feb 2002 08:16:18 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r49612
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
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
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
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
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
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
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
Adam Megacz [Fri, 8 Feb 2002 03:12:51 +0000 (03:12 +0000)]
Reformatted a changelog entry
From-SVN: r49604
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
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
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
Bryce McKinlay [Fri, 8 Feb 2002 01:22:47 +0000 (01:22 +0000)]
* HACKING: Fix URL for the automake-gcj.
From-SVN: r49600
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
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
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
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
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
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
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
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
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
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
Nathan Sidwell [Thu, 7 Feb 2002 19:49:10 +0000 (19:49 +0000)]
re PR c++/109 (g++ 2.95.2 can't handle dependent friend member functions)
cp:
PR c++/109
* decl.c (grokdeclarator): Allow friend declarations from
dependant types.
* decl2.c (handle_class_head): Don't push into template parm contexts.
* pt.c (push_template_decl_real): Template parm contexts are never
being defined.
testsuite:
* g++.dg/template/friend4.C: New test.
From-SVN: r49589
Tom Tromey [Thu, 7 Feb 2002 19:39:27 +0000 (19:39 +0000)]
gcj.texi (Input Options): --CLASSPATH does not suppress system path.
* gcj.texi (Input Options): --CLASSPATH does not suppress system
path.
From-SVN: r49588
Paolo Carlini [Thu, 7 Feb 2002 19:27:38 +0000 (20:27 +0100)]
money_get_members_char.cc: Add comment, tidy up.
2002-02-07 Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/money_get_members_char.cc:
Add comment, tidy up.
(test01): more "en_HK" tests (without showbase).
* testsuite/22_locale/money_get_members_wchar_t.cc: Ditto.
From-SVN: r49587
Tom Tromey [Thu, 7 Feb 2002 19:26:06 +0000 (19:26 +0000)]
natThrowable.cc: Updated copyright.
* java/lang/natThrowable.cc: Updated copyright.
* java/io/natFileWin32.cc: Updated copyright.
* java/io/natFileDescriptorWin32.cc: Updated copyright.
* win32-threads.cc: Updated copyright.
* name-finder.cc: Updated copyright.
* include/name-finder.h: Updated copyright.
From-SVN: r49586
Tom Tromey [Thu, 7 Feb 2002 19:25:28 +0000 (19:25 +0000)]
name-finder.h: Conditionally include sys/wait.h.
* include/name-finder.h: Conditionally include sys/wait.h.
* include/config.h.in: Rebuilt.
From-SVN: r49585
Tom Tromey [Thu, 7 Feb 2002 19:18:35 +0000 (19:18 +0000)]
natFile.cc (_access): Don't stack-allocate buffer.
* java/io/natFile.cc (_access): Don't stack-allocate buffer.
Size buffer based on real size of string.
(_stat): Likewise.
(attr): Likewise.
(getCanonicalPath): Likewise.
(performList): Likewise.
(performMkdir): Likewise.
(performSetReadOnly): Likewise.
(unixroot): Removed.
(performRenameTo): Likewise.
(performSetLastModified): Likewise.
(performCreate): Likewise.
(performDelete): Likewise.
(performListRoots): Always return new array.
From-SVN: r49584
Tom Tromey [Thu, 7 Feb 2002 18:59:52 +0000 (18:59 +0000)]
prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize.
* prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize.
* win32.cc (win32_exception_handler): Now static.
* include/win32.h (_Jv_platform_initialize): Declare.
(win32_exception_handler): Don't declare.
* java/lang/natSystem.cc (currentTimeMillis): Use
_Jv_platform_gettimeofday.
* posix.cc (_Jv_platform_gettimeofday): Renamed.
(_Jv_select): Use new name.
(_Jv_platform_initialize): New function.
* include/posix.h (_Jv_platform_gettimeofday): Renamed from
_Jv_gettimeofday.
(_Jv_platform_initialize): Declare.
From-SVN: r49583
Jeff Sturm [Thu, 7 Feb 2002 18:48:13 +0000 (18:48 +0000)]
sparc.c (compute_frame_size): Don't correct frame offset for stack bias.
* config/sparc/sparc.c (compute_frame_size): Don't correct frame
offset for stack bias.
From-SVN: r49582
Tom Tromey [Thu, 7 Feb 2002 18:21:19 +0000 (18:21 +0000)]
configure: Rebuilt.
* configure: Rebuilt.
* configure.in: Removed unnecessary parens.
From-SVN: r49581
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
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
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
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
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
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
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
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
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
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
GCC Administrator [Thu, 7 Feb 2002 08:17:30 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r49569
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
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
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
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
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
Anthony Green [Thu, 7 Feb 2002 03:24:12 +0000 (03:24 +0000)]
embedded updates
From-SVN: r49562
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
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
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
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
Janis Johnson [Wed, 6 Feb 2002 22:16:11 +0000 (22:16 +0000)]
* gcc.dg/
20020206-1.c: New test.
From-SVN: r49557
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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