Eric Christopher
282cb01bc2
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
2002-02-06 02:50:09 +00:00
Bryce McKinlay
8c78e3a3cd
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
2002-02-06 01:46:46 +00:00
John David Anglin
73c342b9c8
* pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
...
From-SVN: r49533
2002-02-06 00:21:26 +00:00
Aldy Hernandez
ef238c58cf
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
2002-02-05 23:19:13 +00:00
David Billinghurst
8a921c08a7
pr5473.f: New test
...
2002-02-05 David Billinghurst <David.Billinghurst@riotinto.com>
* g77.dg/pr5473.f: New test
From-SVN: r49531
2002-02-05 22:34:37 +00:00
Jason Thorpe
ad08e60e89
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
2002-02-05 19:01:56 +00:00
Alexandre Oliva
1af6141b86
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
2002-02-05 18:01:51 +00:00
Alexandre Oliva
f913c102a4
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
2002-02-05 17:56:34 +00:00
Jason Merrill
c13db5d119
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
2002-02-05 11:33:31 -05:00
Paolo Carlini
e07554eb17
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
2002-02-05 11:35:48 +00:00
Andreas Jaeger
4505024e9e
* crtstuff.c: Fix comments.
...
From-SVN: r49522
2002-02-05 11:31:06 +01:00
Richard Henderson
2e279a9b08
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
2002-02-05 01:49:31 -08:00
Richard Henderson
794ad79db4
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
2002-02-05 01:27:15 -08:00
Richard Henderson
7a97f559c5
* Makefile.in: Undo munging last change.
...
From-SVN: r49519
2002-02-05 00:38:02 -08:00
Aldy Hernandez
8f909017bf
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
2002-02-05 08:28:23 +00:00
GCC Administrator
ee67be75ad
Daily bump.
...
From-SVN: r49517
2002-02-05 08:18:42 +00:00
Aldy Hernandez
81a2b9333d
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
2002-02-05 08:12:31 +00:00
Richard Henderson
d83726b8d1
Undo munging last update.
...
From-SVN: r49514
2002-02-05 00:05:41 -08:00
Aldy Hernandez
66daa9e3e0
altivec.h: Fix typos.
...
2002-02-05 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/altivec.h: Fix typos.
From-SVN: r49513
2002-02-05 07:56:33 +00:00
Richard Henderson
8d2809bcf8
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
2002-02-04 22:37:02 -08:00
Jason Thorpe
2696e97b86
* config/arm/netbsd.h: Correct a comment.
...
From-SVN: r49511
2002-02-05 02:39:31 +00:00
Aldy Hernandez
3deb275873
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
2002-02-05 02:18:55 +00:00
Adam Megacz
d7799ba140
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
2002-02-05 02:08:16 +00:00
Adam Megacz
d08e89a9ec
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
2002-02-05 02:05:05 +00:00
Adam Megacz
4a8e624f35
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
2002-02-05 02:04:15 +00:00
Adam Megacz
1d3efb36e8
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
2002-02-05 01:59:44 +00:00
Jason Merrill
d8a6f584c5
* error.c (dump_type): Be more helpful about VECTOR_TYPE.
...
From-SVN: r49505
2002-02-04 20:46:01 -05:00
Richard Kenner
2c79137a49
* final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
...
From-SVN: r49503
2002-02-04 19:29:01 -05:00
Phil Edwards
fd58f127a6
[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
2002-02-05 00:14:37 +00:00
Richard Henderson
ebbb0a63f4
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
2002-02-04 15:06:04 -08:00
Aldy Hernandez
ae4b4a02e8
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
2002-02-04 22:50:56 +00:00
John David Anglin
f6bcf44c5e
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
2002-02-04 22:41:59 +00:00
John David Anglin
703b0080a4
* unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
...
From-SVN: r49498
2002-02-04 22:21:12 +00:00
Jakub Jelinek
6f9fdf4db2
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
2002-02-04 23:05:15 +01:00
John David Anglin
79109502a0
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
2002-02-04 21:37:14 +00:00
John David Anglin
e62a598717
* pa32-linux.h (LINK_COMMAND_SPEC): Define.
...
From-SVN: r49492
2002-02-04 21:16:51 +00:00
John David Anglin
219f24a42e
* pa.md (call_internal_reg_64bit): Remove unused variable.
...
From-SVN: r49491
2002-02-04 21:05:25 +00:00
Nick Clifton
3cb66fd7e1
Replace current_function_anonymous_args with cfun->machine->uses_anonymous_args
...
From-SVN: r49490
2002-02-04 20:23:07 +00:00
Paolo Carlini
53804e7c80
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
2002-02-04 19:51:32 +00:00
Bernd Schmidt
24c545ff92
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
2002-02-04 19:19:04 +00:00
Richard Henderson
72db02bfc3
* g++.dg/abi/offsetof.C: Fix size comparison.
...
From-SVN: r49487
2002-02-04 10:27:59 -08:00
Richard Henderson
563c12b029
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
2002-02-04 10:16:07 -08:00
Richard Henderson
ca56cd301e
Reindent.
...
From-SVN: r49485
2002-02-04 09:58:08 -08:00
Richard Henderson
14691f8d24
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
2002-02-04 09:44:26 -08:00
Zack Weinberg
8d9d2e1df7
* gcc.pot: Regenerate.
...
From-SVN: r49483
2002-02-04 17:05:24 +00:00
Richard Sandiford
127b94b53d
* gcc.dg/cast-qual-2.c: New test.
...
From-SVN: r49482
2002-02-04 17:02:39 +00:00
Richard Sandiford
af702de897
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
2002-02-04 17:01:30 +00:00
Jason Merrill
e89a607588
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
2002-02-04 11:28:40 -05:00
Philipp Thomas
3335fcacb0
Update copyright dates.
...
From-SVN: r49479
2002-02-04 16:07:59 +00:00
Jeff Law
5b1cacd89e
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
2002-02-04 09:03:14 -07:00