Nathan Sidwell [Wed, 25 Jul 2001 09:00:37 +0000 (09:00 +0000)]
re PR c++/3543 (gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963)
cp:
PR c++/3543
* typeck.c (condition_conversion): Resolve an OFFSET_REF.
* expr.c (cplus_expand_expr): An OFFSET_REF should never get here.
testsuite:
* g++.old-deja/g++.other/optimize4.C: New test.
From-SVN: r44340
Nathan Sidwell [Wed, 25 Jul 2001 08:54:06 +0000 (08:54 +0000)]
class.c (build_vtbl_or_vbase_field): Remove, move into ...
cp:
* class.c (build_vtbl_or_vbase_field): Remove, move into ...
(create_vtbl_ptr): ... here.
From-SVN: r44337
Nathan Sidwell [Wed, 25 Jul 2001 08:52:32 +0000 (08:52 +0000)]
class.c (build_vbase_offset_vbtl_entries): Look for non-primary base of which we are a sub vtable.
cp:
* class.c (build_vbase_offset_vbtl_entries): Look for
non-primary base of which we are a sub vtable.
testsuite:
* g++.old-deja/g++.abi/vbase8-5.C: New test.
From-SVN: r44336
Jan Hubicka [Wed, 25 Jul 2001 08:30:36 +0000 (10:30 +0200)]
flow.c (find_sub_basic_blocks): Fix handling of the last BB in the sequence.
* flow.c (find_sub_basic_blocks): Fix handling of the last BB in
the sequence.
(make_edges): New argument update_p; populate the edge cache if set.
(find_basic_blocks): Update make_edges invocation.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r44335
Gabriel Dos Reis [Wed, 25 Jul 2001 08:06:47 +0000 (08:06 +0000)]
acinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf, hypotl, atan2f, atan2l.
* acinclude.m4: CHECK_MATH_DECL_AND_LINKAGE for hypot, hypotf,
hypotl, atan2f, atan2l. Remove from REPLACE_MATHFUNCS list.
* aclocal.m4: Regenerate.
* config.h.in: Likewise.
* configure: Likewise.
* libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove hypotl.c
(EXTRA_DIST): Remove hypot.c hypotf.c.
* libmath/Makefile.am: Regenerate.
* libmath/hypotf.c: Remove.
* libmath/hypot.c: Likewise.
* libmath/hypotl.c: Likewise.
* libmath/stubs.c: The macros seen here are HAVE_xxx, not
_GLIBCPP_HAVE_xxx. Add long double versions.
From-SVN: r44334
GCC Administrator [Wed, 25 Jul 2001 07:16:08 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r44332
Joel Sherrill [Wed, 25 Jul 2001 01:57:20 +0000 (01:57 +0000)]
* config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
From-SVN: r44331
Joel Sherrill [Wed, 25 Jul 2001 01:53:26 +0000 (01:53 +0000)]
rtems.h (CPP_PREDEFINES): Remove redundant -Acpu and -Amachine.h.
* config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
-Acpu and -Amachine.h.
* config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
Corrected header to say ELF not a.out.
* config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
when given -msoft-float.
From-SVN: r44328
Joel Sherrill [Wed, 25 Jul 2001 01:49:45 +0000 (18:49 -0700)]
config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as extra multilib parts like arm-elf.
* config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
extra multilib parts like arm-elf.
(i960-*-coff*, i960-*-rtems): Should not use collect2.
(m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
crtfini.o as extra multilib parts.
From-SVN: r44327
Joel Sherrill [Wed, 25 Jul 2001 01:44:29 +0000 (01:44 +0000)]
configure.in: Add rtems as a supported thread model.
* configure.in: Add rtems as a supported thread model.
* gthr-rtems.h: Add missing entry point __gthread_active_p.
* configure: Rebuilt.
From-SVN: r44324
Phil Edwards [Wed, 25 Jul 2001 01:34:03 +0000 (01:34 +0000)]
semantics.c (finish_this_expr): Remove unused code.
2001-07-24 Phil Edwards <pme@sources.redhat.com>
* semantics.c (finish_this_expr): Remove unused code.
From-SVN: r44323
Lars Brinkhoff [Wed, 25 Jul 2001 01:19:23 +0000 (01:19 +0000)]
stor-layout.c (get_mode_alignment): make it work when BITS_PER_UNIT is not a power of two.
* stor-layout.c (get_mode_alignment): make it work when
BITS_PER_UNIT is not a power of two.
* builtins.c (get_pointer_alignment): Likewise.
From-SVN: r44322
Richard Henderson [Tue, 24 Jul 2001 23:43:55 +0000 (16:43 -0700)]
simplify-rtx.c (avoid_constant_pool_reference): Coerce the retrieved constant into the expected mode.
* simplify-rtx.c (avoid_constant_pool_reference): Coerce
the retrieved constant into the expected mode.
From-SVN: r44321
Jan Hubicka [Tue, 24 Jul 2001 23:42:40 +0000 (01:42 +0200)]
flow.c (try_simplify_condjump): Avoid duplicated edges.
* flow.c (try_simplify_condjump): Avoid duplicated edges.
(verify_flow_info): Check for duplicated edges; clarify
error reporting.
* flow.c (block_label): Update basic_block_for_insn.
(commit_edge_insertions): Call compute_bb_for_insn.
* flow.c (purge_dead_edges): Handle conditional jumps and conditional
returns too.
* flow.c (redirect_edge_and_branch,
try_optimize_cfg): Use redirect_edge_succ_nodup
(redirect_edge_succ_nodup): New.
* basic_block.h (redirect_edge_succ_nodup): Declare.
* toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
after gcse.
From-SVN: r44320
Jan Hubicka [Tue, 24 Jul 2001 22:34:43 +0000 (00:34 +0200)]
flow.c (try_forward_edges): Accept fallthru edge; Update comment.
* flow.c (try_forward_edges): Accept fallthru edge; Update comment.
(try_crossjump_to_edge): Update commetns.
(try_crossjump_bb): Likewise.
From-SVN: r44318
Richard Henderson [Tue, 24 Jul 2001 21:39:19 +0000 (14:39 -0700)]
combine.c (distribute_notes): Move set of need_refresh for noop_move_p down to catch all cases.
* combine.c (distribute_notes): Move set of need_refresh
for noop_move_p down to catch all cases.
From-SVN: r44317
Rainer Orth [Tue, 24 Jul 2001 20:08:58 +0000 (20:08 +0000)]
prims.cc (_JNI_OnLoad): New function.
* prims.cc (_JNI_OnLoad): New function.
(JNI_OnLoad): Use it.
(_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
From-SVN: r44316
Rainer Orth [Tue, 24 Jul 2001 19:51:34 +0000 (19:51 +0000)]
Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
* Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
Makefile.in: Regenerate.
From-SVN: r44314
Jan Hubicka [Tue, 24 Jul 2001 18:34:07 +0000 (20:34 +0200)]
recog.c (split_all_insns_noflow): New.
* recog.c (split_all_insns_noflow): New.
* rtl.h (split_all_insns_noflow): Declare.
* ia64.c (ia64_reorg): Use split_all_insns_noflow.
* m68hc11.c (m68hc11_reorg): Likewise.
* sh.c (machine_dependent_reorg): Likewise.
* toplev.c (rest_of_compilation): Likewise for last split_all_insns
call.
From-SVN: r44312
Andrew Haley [Tue, 24 Jul 2001 15:52:26 +0000 (15:52 +0000)]
sh.md (ashlsi3_std splitter): Split only after reload.
2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
* config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
(ashlsi3_n splitter): Likewise.
(lshrsi3_n splitter): Likewise.
(GOTaddr2picreg): Make const SImode.
(sym_label2reg): Likewise.
(symGOT2reg): Likewise.
(symGOTOFF2reg) Likewise.
(casesi_worker_0): Make unspec SImode.
From-SVN: r44304
Andrew Haley [Tue, 24 Jul 2001 15:25:51 +0000 (15:25 +0000)]
sh.c (barrier_align): Check that an operand really is an insn before extracting its INSN_CODE.
2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
* config/sh/sh.c (barrier_align): Check that an operand really is
an insn before extracting its INSN_CODE.
From-SVN: r44303
Jason Merrill [Tue, 24 Jul 2001 15:17:04 +0000 (11:17 -0400)]
* lib/scanasm.exp (scan-assembler*): Don't take "testcase" argument.
From-SVN: r44302
Jason Merrill [Tue, 24 Jul 2001 15:08:37 +0000 (11:08 -0400)]
move to subdirs
From-SVN: r44301
Jason Merrill [Tue, 24 Jul 2001 15:06:50 +0000 (11:06 -0400)]
* g++.dg/dg.exp: Run tests from subdirectories other than "special".
From-SVN: r44300
Jason Merrill [Tue, 24 Jul 2001 15:06:27 +0000 (11:06 -0400)]
prune.exp (prune_gcc_output): Prune "Please submit a full bug report" message.
* lib/prune.exp (prune_gcc_output): Prune "Please submit a full
bug report" message.
From-SVN: r44299
Andrew Haley [Tue, 24 Jul 2001 15:06:14 +0000 (15:06 +0000)]
sh.h (OVERRIDE_OPTIONS): Add braces to get rid of dangling else.
2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
* config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
dangling else.
* config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
for SImode to prevent overflow.
From-SVN: r44298
Jason Merrill [Tue, 24 Jul 2001 14:55:07 +0000 (10:55 -0400)]
tweak comment
From-SVN: r44297
Tom Tromey [Tue, 24 Jul 2001 14:31:42 +0000 (14:31 +0000)]
VMClassLoader.java (getPrimitiveClass): Return correct type.
* java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
type.
From-SVN: r44296
David Billinghurst [Tue, 24 Jul 2001 13:32:53 +0000 (13:32 +0000)]
intrinsic-unix-bessel.f: New test
2001-07-24 David Billinghurst <David.Billinghurst@riotinto.com>
* g77.f-torture/execute/intrinsic-unix-bessel.f: New test
* g77.f-torture/execute/intrinsic-unix-erf.f: New test
* g77.f-torture/execute/intrinsic-vax-cd.f: New test
* g77.f-torture/execute/intrinsic-f2c-z.f: New test
From-SVN: r44295
Rainer Orth [Tue, 24 Jul 2001 12:27:03 +0000 (12:27 +0000)]
irix6-libc-compat.c: New file.
* config/mips/irix6-libc-compat.c: New file.
* config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
* doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
passing workaround.
From-SVN: r44294
Lars Brinkhoff [Tue, 24 Jul 2001 09:13:19 +0000 (09:13 +0000)]
rtl.texi (REG_POINTER): Document.
* rtl.texi (REG_POINTER): Document.
(Machine Modes): Document BImode, OImode, PQImode, PHImode,
QFmode, HFmode, TQFmode, QCmode, and HCmode.
From-SVN: r44292
Nathan Sidwell [Tue, 24 Jul 2001 08:56:12 +0000 (08:56 +0000)]
Simplify rtti, now we've only one ABI.
* cp-tree.h (cp_tree_index): Remove CPTI_TINFO_DECL_ID,
CPTI_TINFO_VAR_ID.
(tinfo_decl_id, tinfo_var_id): Remove.
(get_typeid_1): Remove.
* rtti.c
(init_rtti_processing): Remove tinfo_decl_id & tinfo_var_id.
(typeid_ok_p): New function.
(build_type_id): Call typeid_ok_p. Don't call tinfo_from_decl.
(get_tinfo_decl): Remove old abi documentation.
(tinfo_from_decl): Remove.
(get_type_id): Call typeid_ok_p. Absorb get_typeid_1.
(get_typeid_1): Remove.
(get_base_offset): Remove.
(synthesize_tinfo_var): Absorb get_base_offset.
(create_real_tinfo_var): Don't use tinfo_decl_id.
From-SVN: r44291
Jan Hubicka [Tue, 24 Jul 2001 08:54:59 +0000 (10:54 +0200)]
* flow.c (delete_noop_moves): Do not confuse libcall regions.
From-SVN: r44290
GCC Administrator [Tue, 24 Jul 2001 07:16:15 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r44288
Richard Henderson [Tue, 24 Jul 2001 00:57:46 +0000 (17:57 -0700)]
* flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
From-SVN: r44287
Kazu Hirata [Mon, 23 Jul 2001 22:41:10 +0000 (22:41 +0000)]
* reload.c: Fix comment typos.
From-SVN: r44284
Kazu Hirata [Mon, 23 Jul 2001 21:46:38 +0000 (21:46 +0000)]
h8300-protos.h: Add a prototype for general_operand_dst_push.
* config/h8300/h8300-protos.h: Add a prototype for
general_operand_dst_push.
* config/h8300/h8300.c (general_operand_dst_push): New.
* config/h8300/h8300.h (OK_FOR_T): New.
(EXTRA_CONSTRAINT): Use it.
* config/h8300/h8300.md (movqi_push): Remove and integrate into
the existing movqi pattern.
(movhi_push): Likewise.
From-SVN: r44283
Jan Hubicka [Mon, 23 Jul 2001 21:35:26 +0000 (23:35 +0200)]
* gcse.c (cprop_insn): Update call of cprop_cc0_jump.
From-SVN: r44282
H.J. Lu [Mon, 23 Jul 2001 21:20:35 +0000 (21:20 +0000)]
extend.texi: Update __builtin_return_address and __builtin_frame_address.
2001-07-23 H.J. Lu (hjl@gnu.org)
* doc/extend.texi: Update __builtin_return_address and
__builtin_frame_address.
From-SVN: r44281
Richard Henderson [Mon, 23 Jul 2001 21:16:02 +0000 (14:16 -0700)]
i386.c (ix86_expand_setcc): Don't use method 0 before CSE.
* config/i386/i386.c (ix86_expand_setcc): Don't use method 0
before CSE.
* config/i386/i386.md: New setcc+movzbl peephole2.
From-SVN: r44279
Neil Booth [Mon, 23 Jul 2001 21:11:42 +0000 (21:11 +0000)]
Make-lang.in (objc-act.o): Depend on debug.h.
* objc/Make-lang.in (objc-act.o): Depend on debug.h.
* objc/objc-act.c: Include debug.h.
(synth_module_prologue): Save and restore debug hooks too.
From-SVN: r44278
Lars Brinkhoff [Mon, 23 Jul 2001 20:33:40 +0000 (20:33 +0000)]
tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT and C4X_FLOAT_FORMAT.
* tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
and C4X_FLOAT_FORMAT.
(BOOL_TYPE_SIZE): Document.
From-SVN: r44277
Tom Tromey [Mon, 23 Jul 2001 20:01:29 +0000 (20:01 +0000)]
javaprims.h: Rebuilt class list.
* gcj/javaprims.h: Rebuilt class list.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added VMClassLoader.
* java/lang/VMClassLoader.java: New file.
* java/lang/Boolean.java: Merged with Classpath.
* java/lang/Byte.java: Merged with Classpath.
* java/lang/Integer.java: Merged with Classpath.
* java/lang/Long.java: Merged with Classpath.
* java/lang/Number.java: Merged with Classpath.
* java/lang/Short.java: Merged with Classpath.
From-SVN: r44274
Clinton Popetz [Mon, 23 Jul 2001 16:58:29 +0000 (12:58 -0400)]
unroll.c (loop_iterations): Fix miscalculation of initial giv offset.
* unroll.c (loop_iterations): Fix miscalculation of initial
giv offset.
From-SVN: r44272
David Edelsohn [Mon, 23 Jul 2001 16:41:03 +0000 (16:41 +0000)]
limits_generic.h (int): Set digits and digits10 appropriately for word size.
* include/bits/limits_generic.h (int): Set digits and digits10
appropriately for word size.
(unsigned int,long,unsigned long): Likewise.
From-SVN: r44271
Jeffrey A Law [Mon, 23 Jul 2001 16:13:51 +0000 (16:13 +0000)]
* gcc.c-torture/execute/
20010723-1.c: New test.
From-SVN: r44270
Andrew Haley [Mon, 23 Jul 2001 16:00:06 +0000 (16:00 +0000)]
tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
2001-07-13 Andrew Haley <aph@redhat.com>
* doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
* config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
* config/sh/sh.c (sh_can_redirect_branch): New function.
* config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
* reorg.c (steal_delay_list_from_target): Use
MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
From-SVN: r44269
Jan Hubicka [Mon, 23 Jul 2001 15:27:33 +0000 (17:27 +0200)]
flow.c (try_simplify_condjump): Unlink insn chain on fallthru edge; use can_fallthru.
* flow.c (try_simplify_condjump): Unlink insn chain on
fallthru edge; use can_fallthru.
From-SVN: r44268
Jan Hubicka [Mon, 23 Jul 2001 14:08:12 +0000 (16:08 +0200)]
basic-block.h (find_sub_basic_block): Declare.
* basic-block.h (find_sub_basic_block): Declare.
* flow.c (make_edges): New arguments MIN and MAX;
(find_sub_basic_blocks): Revamp to use make_edges
and purge_dead_edges.
(find_basic_blocks): Update call of find_sub_basic_block.
* recog.c (split_all_insns): Always expect CFG to be consistent;
call find_sub_basic_blocks in case something has changed.
* toplev.c (rest_of_compilation): Always call split_all_insns once CFG
has been built.
* basic-block.h (delete_noop_moves): Declare.
* combine.c (combine_instructions): Call it.
(recog_for_combine): Tolerate noop moves
(distribute_notes): Force refresh when register dies at noop move.
* flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
too.
(life_analysis): Update delete_noop_moves call.
(set_noop_p): Move too ...
* rtlanal.c (noop_move_p): ... here.
* rtl.h (noop_move_p): Declare.
* basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
* toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
after combine.
* gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
(cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
From-SVN: r44267
Jan Hubicka [Mon, 23 Jul 2001 13:55:28 +0000 (15:55 +0200)]
* analyze_brprob: Fix awk compatibility problems; update comment.
From-SVN: r44266
Ulrich Weigand [Mon, 23 Jul 2001 13:41:06 +0000 (13:41 +0000)]
MAINTAINERS (Various maintainers: s390 port): Added myself.
From-SVN: r44265
Hans-Peter Nilsson [Mon, 23 Jul 2001 13:21:39 +0000 (13:21 +0000)]
reload.c (push_reload): Fix typo in comment.
* reload.c (push_reload): Fix typo in comment.
(find_reloads_address): Ditto.
(reg_overlap_mentioned_for_reload_p): Ditto in head comment.
From-SVN: r44264
Andreas Jaeger [Mon, 23 Jul 2001 13:21:13 +0000 (15:21 +0200)]
* analyze_brprob: Fix more typos.
From-SVN: r44263
Andreas Jaeger [Mon, 23 Jul 2001 10:39:58 +0000 (12:39 +0200)]
* analyze_brprob: Fix typos.
From-SVN: r44262
GCC Administrator [Mon, 23 Jul 2001 07:16:09 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r44258
Richard Henderson [Mon, 23 Jul 2001 07:03:34 +0000 (00:03 -0700)]
flow.c: Grammar check and clarify a lot of comments.
* flow.c: Grammar check and clarify a lot of comments.
(try_simplify_condjump): Rename variables to be clearer.
(try_forward_edges): Skip complex and fallthru edges.
Rearrange tests to avoid duplicate checks.
(flow_find_cross_jump): Likewise.
(outgoing_edges_match): Allow match if neither branch has
probability data. Loosen probability match to 5%.
(try_crossjump_to_edge): Hoist repeated indirection into
local variables.
(try_crossjump_bb): Don't check complex edges. Eliminate
redundant crossjump tests.
(try_optimize_cfg): Fix use of bool. Reorganize cheaper
checks before more expensive checks.
From-SVN: r44257
Graham Stott [Mon, 23 Jul 2001 06:34:51 +0000 (06:34 +0000)]
class.c (type_requires_array_cookie): Fix use of uninitialised variable has_two_argument_delete_p.
* cp/class.c (type_requires_array_cookie): Fix use of uninitialised
variable has_two_argument_delete_p.
From-SVN: r44256
Richard Henderson [Mon, 23 Jul 2001 06:00:06 +0000 (23:00 -0700)]
fold-const.c (fold): Test vs FLOAT_TYPE_P instead of INTEGRAL_TYPE_P when...
* fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
arguments.
From-SVN: r44255
Ben Elliston [Mon, 23 Jul 2001 05:35:26 +0000 (05:35 +0000)]
enum5.C: Mark as XFAIL.
2001-07-23 Ben Elliston <bje@redhat.com>
* g++.old-deja/g++.other/enum5.C: Mark as XFAIL.
From-SVN: r44253
Richard Henderson [Mon, 23 Jul 2001 04:46:53 +0000 (21:46 -0700)]
m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
* m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
(const_sint32_operand): Likewise.
* m68k.md (anon mulsi pattern): Use const_int_operand not
const_sint32_operand.
(umulsi3_highpart): Zero extend a constant input.
(smulsi3_highpart): Don't bother checking SImode constant.
(const_umulsi3_highpart): Give op3 DImode.
(const_smulsi3_highpart): Likewise.
From-SVN: r44252
Jeff Sturm [Mon, 23 Jul 2001 03:51:17 +0000 (03:51 +0000)]
configure.host: Enable hash synchronization for alpha*-*.
* configure.host: Enable hash synchronization for alpha*-*.
* include/posix-threads.h (_Jv_ThreadSelf): Added inline function for alpha.
* java/lang/natObject.cc (compare_and_swap, release_set,
compare_and_swap_release): Added inline functions for alpha.
From-SVN: r44251
Richard Henderson [Sun, 22 Jul 2001 22:49:00 +0000 (15:49 -0700)]
flow.c (split_block): Make sure bb_note is included in the new block when splitting before a label.
* flow.c (split_block): Make sure bb_note is included in the
new block when splitting before a label.
From-SVN: r44250
Jan Hubicka [Sun, 22 Jul 2001 21:42:35 +0000 (23:42 +0200)]
basic-block.h (redirect_edge_and_branch_force, [...]): Declare.
* basic-block.h (redirect_edge_and_branch_force,
redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
* flow.c (redirect_edge_and_branch_force,
redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
(redirect_edge_and_branch_force): Fix copying of lifeness information.
(block_label): Handle EXIT_BLOCK_PTR by returning NULL.
* ifcvt.c (dead_or_predictable): Take BB as an new destionation
instead of label; update CFG after transformation.
(find_if_case_1): Update call, use redirect_edge_and_branch_force
for finishing the transformation; handle even case where ELSE
does not follow THEN.
(find_if_case_2): Update call of dead_or_predictable; simplify
CFG update.
* emit-rtl.c (split_branch_probability): New global variable.
(try_split): Take care to set split_branch_probability and
create REG_BR_PROB note for new jump insns.
* md.texi (define_split): Document new feature.
* i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
From-SVN: r44249
Neil Booth [Sun, 22 Jul 2001 21:33:57 +0000 (21:33 +0000)]
varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
* varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
(asm_out_file): Remove redundant declaration.
(assemble_asm): Remove old #if 0 block.
(assemble_variable): Remove end of function; debug output is
now handled with global_decl. Remove old #if 0 block. Update.
Remove saved_in_section and associated no-op code.
* Makefile.in (varasm.o): Correct dependencies.
From-SVN: r44248
Alexandre Oliva [Sun, 22 Jul 2001 21:15:45 +0000 (21:15 +0000)]
freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use the definition in defaults.h.
* config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
the definition in defaults.h.
From-SVN: r44247
Jan Hubicka [Sun, 22 Jul 2001 19:34:13 +0000 (21:34 +0200)]
jump.c: Update comments.
* jump.c: Update comments.
(delete_barrier_successors, delete_unreferenced_labels,
delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
delete_labelref_insn, redirect_tablejump, jump_optimize_1,
jump_optimize, jump_optimize_minimal): Kill.
(rebuild_jump_labels): Move code from jump_optimize_1.
(purge_line_number_notes): Likewise.
(copy_loop_headers): Likewise.
* reg-stack.c: Update comment.
* stmt.c: Likewise.
* rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
JUMP_AFTER_REGSCAN): Kill.
* toplev.c (rest_of_compilation): Use cleanup_cfg, call
purge_line_number_notes and copy_loop_headers.
From-SVN: r44245
Neil Booth [Sun, 22 Jul 2001 17:02:53 +0000 (17:02 +0000)]
dbxout.c (dbxout_global_decl): New.
* dbxout.c (dbxout_global_decl): New.
(xcoff_debug_hooks, dbx_debug_hooks): Use it.
* sdbout.c (sdbout_finish): New.
(sdbout_debug_hooks): Use it, add comments.
(sdbout_global_decl): Defer initialised public vars to
sdbout_finish.
* varasm.c (assemble_variable): Don't output debug information
for file-scope variables.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r44243
Richard Henderson [Sun, 22 Jul 2001 16:02:06 +0000 (09:02 -0700)]
alpha.c (get_trap_mode_suffix): New.
* config/alpha/alpha.c (get_trap_mode_suffix): New.
(get_round_mode_suffix): New.
(print_operand): Use them for [/]. Remove support for [&'`()+].
* config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
* config/alpha/alpha.md (attr round_suffix): New.
(attr trap_suffix): New.
(all insns): Set them appropriately. Use %/ instead of the
myriad punctuators.
From-SVN: r44242
Franz Sirl [Sun, 22 Jul 2001 10:10:09 +0000 (10:10 +0000)]
ieee.exp: Only use -ffloat-store only on i[34567]86-*-*.
2001-07-22 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* gcc.c-torture/execute/ieee/ieee.exp: Only use -ffloat-store only on
i[34567]86-*-*.
Delete handling of ieee_multilib_flags.
Pass -mieee for alpha*-*-* and sh-*-*.
* gcc.c-torture/execute/
20010114-2.c: Move into ieee subdir.
From-SVN: r44238
Neil Booth [Sun, 22 Jul 2001 09:42:47 +0000 (09:42 +0000)]
* dbxout.c, sdbout.c, varasm.c: Revert most recent patch.
From-SVN: r44237
GCC Administrator [Sun, 22 Jul 2001 07:16:39 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r44236
Richard Henderson [Sun, 22 Jul 2001 07:10:46 +0000 (00:10 -0700)]
regrename.c (regrename_optimize): Compute nregs for each potential target register.
* regrename.c (regrename_optimize): Compute nregs for each
potential target register.
From-SVN: r44234
Neil Booth [Sat, 21 Jul 2001 23:17:26 +0000 (23:17 +0000)]
dbxout.c (dbxout_global_decl): New.
* dbxout.c (dbxout_global_decl): New.
(xcoff_debug_hooks, dbx_debug_hooks): Use it.
* sdbout.c (sdbout_finish): New.
(sdbout_debug_hooks): Use it, add comments.
(sdbout_global_decl): Defer initialised public vars to
sdbout_finish.
* varasm.c (assemble_variable): Don't output debug information
for file-scope variables.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r44232
H.J. Lu [Sat, 21 Jul 2001 18:01:46 +0000 (18:01 +0000)]
mips.c (mips_cpu): Moved into ...
2001-07-21 H.J. Lu (hjl@gnu.org)
* config/mips/mips.c (mips_cpu): Moved into ...
(override_options): Here.
* config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
mips_tune.
(mips_cpu): Removed.
From-SVN: r44231
Stephane Carrez [Sat, 21 Jul 2001 11:39:13 +0000 (13:39 +0200)]
m68hc11.md ("andqi3"): Accept d as second operand.
* config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
("iorqi3"): Likewise.
("xorqi3"): Likewise.
("*addhi3"): Fix constraint to avoid reloading in a soft register.
("*subhi3_sp): Likewise.
("*subhi3"): Likewise.
("extendhisi2"): Accept D, X and Y as source operand to avoid
reload problems.
From-SVN: r44229
Nathan Sidwell [Sat, 21 Jul 2001 09:42:21 +0000 (09:42 +0000)]
tm.texi: Remove DEFAULT_VTABLE_THUNKS.
gcc:
* doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
* config/freebsd.h: Likewise.
* config/linux.h: Likewise.
* config/openbsd.h: Likewise.
* config/alpha/linux-elf.h: Likewise.
* config/arm/linux-elf.h: Likewise.
* config/d30v/d30v.h: Likewise.
* config/fr30/fr30.h: Likewise.
* config/ia64/aix.h: Likewise.
* config/ia64/ia64.h: Likewise.
* config/mips/linux.h: Likewise.
* config/pj/pj.h: Likewise.
* config/rs6000/linux.h: Likewise.
* config/sparc/linux.h: Likewise.
* config/sparc/linux64.h: Likewise.
cp:
Remove flag_vtable_thunk. It is always on for the 3.0 ABI.
* cp-tree.h (CPTI_DELTA2_IDENTIFIER): Remove.
(CPTI_INDEX_IDENTIFIER): Remove.
(CPT_PFN_OR_DELTA2_IDENTIFIER): Remove.
(delta2_identifier): Remove.
(index_identifier): Remove.
(pfn_or_delta2_identifier): Remove.
(flag_vtable_thunks): Remove.
(VTABLE_DELTA2_NAME): Remove.
(VTABLE_INDEX_NAME): Remove.
(FNADDR_FROM_VTABLE_ENTRY): Adjust.
(vfunc_ptr_type_node): Adjust.
(VTABLE_NAME_PREFIX): Adjust.
(build_vfn_ref): Lose first parameter.
(fixup_all_virtual_upcast_offsets): Remove.
* decl.c (initialize_predefined_identifiers): Remove
delta2_identifier, index_identifier, pfn_or_delta2_identifier.
(init_decl_processing): Remove no-vtable-thunk code.
* decl2.c (flag_vtable_thunks): Remove.
(mark_vtable_entries): Remove no-vtable-thunk code.
* error.c (dump_decl): Remove no-vtable-thunk code.
(dump_expr): Adjust ptr to member function code.
* init.c (initialize_vtable_ptrs): Remove no-vtable-thunk
code.
* rtti.c (build_headof): Remove no-vtable-thunk code.
(get_tinfo_decl_dynamic): Adjust build_vfn_ref call.
* search.c (get_base_distance): Remove expand_upcast_fixups case.
(virtual_context) Remove.
(expand_upcast_fixups): Remove.
(fixup_virtual_upcast_offsets): Remove.
(fixup_all_virtual_upcast_offsets): Remove.
* typeck.c (get_member_function_from_ptrfunc): Remove
no-vtable-thunk code.
* call.c (build_over_call): Adjust call to build_vfn_ref.
* class.c (build_vfn_ref): Lose first parameter. Remove
no-vtable-thunk code.
(build_rtti_vtbl_entries): Remove no-vtable-thunk code.
(build_vtable_entry): Remove no-vtable-thunk code.
From-SVN: r44227
Nathan Sidwell [Sat, 21 Jul 2001 09:17:26 +0000 (09:17 +0000)]
Remove old-abi tests.
* g++.old-deja/g++.mike/p11116.C: Remove.
* g++.old-deja/g++.eh/catchptr1.C: Remove old-abi ifdef.
From-SVN: r44226
GCC Administrator [Sat, 21 Jul 2001 07:16:08 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r44224
Bruce Korb [Sat, 21 Jul 2001 04:20:08 +0000 (04:20 +0000)]
extra casting required by new pointer type
From-SVN: r44222
Bruce Korb [Sat, 21 Jul 2001 04:08:29 +0000 (04:08 +0000)]
force unsigned char compares
From-SVN: r44219
Bruce Korb [Sat, 21 Jul 2001 04:04:27 +0000 (04:04 +0000)]
incorporate patches from 3.0 branch
From-SVN: r44218
Richard Henderson [Sat, 21 Jul 2001 03:05:09 +0000 (20:05 -0700)]
flow.c (try_redirect_by_replacing_jump): Correctly compute which insns to delete in the presence of cc0 in a jump insn.
* flow.c (try_redirect_by_replacing_jump): Correctly compute which
insns to delete in the presence of cc0 in a jump insn.
From-SVN: r44217
Nathan Sidwell [Sat, 21 Jul 2001 00:03:21 +0000 (00:03 +0000)]
Remove old-abi remnants.
Remove old-abi remnants. Remove comments about old abi
behaviour. Remove refences to 'new-abi' in comments.
* cp-tree.h: Adjust comments.
(vbase_offsets_in_vtable_p): Delete.
(vcall_offsets_in_vtable_p): Delete.
(vptrs_present_everywhere_p): Delete.
(all_overridden_vfuns_in_vtables_p): Delete.
(merge_primary_and_secondary_vtables_p): Delete.
(TYPE_CONTAINS_VPTR_P): Adjust.
(VTT_NAME_PREFIX): Remove.
(CTOR_VTBL_NAME_PREFIX): Remove.
(init_vbase_pointers): Remove.
* class.c: Adjust coments.
(build_vbase_pointer_fields): Delete.
(build_vbase_pointer): Remove old-abi code.
(build_secondary_vtable): Likewise.
(modify_all_vtables): Likewise.
(create_vtable_ptr): Likewise.
(layout_class_type): Likewise.
(finish_struct_1): Likewise.
(finish_vtbls): Likewise.
(dfs_finish_vtbls): Delete.
(build_vbase_offset_vtbl_entries): Remove old-abi code.
* cvt.c: Adjust comments.
* decl.c: Adjust comments.
* decl2.c: Adjust comments.
* init.c: Adjust comments.
(construct_virtual_bases): Remove old-abi code.
* lang-specs.h: Remove -fno-new-abi.
* mangle.c: Adjust comments.
* rtti.c: Adjust comments.
(get_base_offset): Remove old-abi-code.
* search.c: Adjust comments.
(dfs_init_vbase_pointers): Remove.
(dfs_vtable_path_unmark): Remove.
(init_vbase_pointers): Remove.
* semantics.c: Adjust comments.
(emit_associated_thunks): Remove old-abi code.
* typeck.c: Adjust comments.
From-SVN: r44215
Richard Henderson [Fri, 20 Jul 2001 22:23:25 +0000 (15:23 -0700)]
* doc/rtl.texi (REG_DEAD): Update for current semantics.
From-SVN: r44214
Jan Hubicka [Fri, 20 Jul 2001 20:47:35 +0000 (20:47 +0000)]
Correct typo.
From-SVN: r44213
Roman Zippel [Fri, 20 Jul 2001 20:19:12 +0000 (20:19 +0000)]
m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead of doing the change by hand.
* m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
of doing the change by hand.
Co-Authored-By: Jan Hubicka <jh@suse.cz>
From-SVN: r44212
Jan Hubicka [Fri, 20 Jul 2001 20:10:42 +0000 (20:10 +0000)]
expr.c (emit_single_push_insn): Add call to push expander.
* expr.c (emit_single_push_insn): Add call to push expander.
* expr.h (optab_index): Add OTI_push
(push_optab): New constant.
* genopinit.c (optabs): Add push_optab.
* optabs.c (init_optab): Init push optab.
* md.texi (push??1): Document
From-SVN: r44211
Jan Hubicka [Fri, 20 Jul 2001 20:07:58 +0000 (22:07 +0200)]
rtlanal.c (set_noop_p): Return true for noop jumps.
* rtlanal.c (set_noop_p): Return true for noop jumps.
* expr.c (emit_single_push_insn): Add call to push expander.
* expr.h (optab_index): Add OTI_push
(push_optab): New constant.
* genopinit.c (optabs): Add push_optab.
* optabs.c (init_optab): Init push optab.
* md.texi (push??1): Document
From-SVN: r44210
Stephane Carrez [Fri, 20 Jul 2001 19:43:19 +0000 (21:43 +0200)]
m68hc11.md ("movdi", [...]): Use an expand to emit the pattern; put a REG_INC note for push/pop instructions.
* config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
expand to emit the pattern; put a REG_INC note for push/pop
instructions.
("movdf", "movdf_internal"): Likewise.
("movsi", "movsi_internal"): Likewise.
("movsf", "movsf_internal"): Likewise.
("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
From-SVN: r44208
Stephane Carrez [Fri, 20 Jul 2001 19:34:56 +0000 (21:34 +0200)]
m68hc11.c (m68hc11_gen_highpart): Don't use gen_highpart.
* config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
gen_highpart.
From-SVN: r44206
Daniel Berlin [Fri, 20 Jul 2001 19:12:46 +0000 (19:12 +0000)]
Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not params.h.
2001-07-20 Daniel Berlin <dan@cgsoftware.com>
* Make-lang.in (cp/optimize.o): Depend on $(PARAMS_H), not
params.h.
2001-07-20 Daniel Berlin <dan@cgsoftware.com>
* params.def: Change default max inline insns to 100.
From-SVN: r44203
Diego Novillo [Fri, 20 Jul 2001 17:47:03 +0000 (17:47 +0000)]
combine.c (combine_simplify_rtx): Generate a new shift operation when simplifying the first operand of a (neg...
* combine.c (combine_simplify_rtx): Generate a new shift operation
when simplifying the first operand of a (neg (ashift)) expression.
From-SVN: r44202
Richard Henderson [Fri, 20 Jul 2001 16:55:03 +0000 (09:55 -0700)]
* regclass.c (N_REG_INTS): Use only 32 bits per element.
From-SVN: r44201
Kelley Cook [Fri, 20 Jul 2001 16:33:52 +0000 (16:33 +0000)]
install.texi (sparc-sun-solaris*): Add in 4.x assembler bug information.
* doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
information. Move rest into ...
(*-*-solaris): ... here. Eliminate redundant information and
reword necessary packages section. Delete 4.x assembler bug info.
(sparc-sun-*): Merge into ...
(sparc-sun-sunos*): here.
From-SVN: r44198
Catherine Moore [Fri, 20 Jul 2001 13:42:57 +0000 (13:42 +0000)]
v850.md (casesi): Generate LABEL_REF with Pmode.
* config/v850/v850.md (casesi): Generate LABEL_REF
with Pmode.
From-SVN: r44197
Toon Moene [Fri, 20 Jul 2001 13:27:40 +0000 (15:27 +0200)]
com.c (ffecom_expr_intrinsic_): case FFEINTRIN_impIBITS: Remove TREE_SHIFT_FULLWIDTH define.
2001-07-20 Toon Moene <toon@moene.indiv.nluug.nl>
* com.c (ffecom_expr_intrinsic_):
case FFEINTRIN_impIBITS: Remove TREE_SHIFT_FULLWIDTH define.
case FFEINTRIN_impISHFT: Ditto. Change LT_EXPR to NE_EXPR.
case FFEINTRIN_impISHFTC: Ditto.
case FFEINTRIN_impMVBITS: Ditto.
From-SVN: r44196
Jan Hubicka [Fri, 20 Jul 2001 12:38:08 +0000 (12:38 +0000)]
oops, missed rej file.
From-SVN: r44195
Jan Hubicka [Fri, 20 Jul 2001 12:15:36 +0000 (14:15 +0200)]
i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
* i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
* i386.c (ix86_zero_extend_to_Pmode): Make global.
* i386.md (strclrsi expander): Use it.
From-SVN: r44194
Jan Hubicka [Fri, 20 Jul 2001 11:30:13 +0000 (13:30 +0200)]
integrate.c (copy_insn_list): handle NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
* integrate.c (copy_insn_list): handle
NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
(copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
identically as to CODE_LABEL.
* fold-const (fold): Convert A/B/C to A/(B*C) and
A/(B/C) to (A/B)*C
* except.c (connect_post_landing_pads): Delete the RESX insns.
From-SVN: r44193
Toon Moene [Fri, 20 Jul 2001 10:52:06 +0000 (10:52 +0000)]
[multiple changes]
2001-07-20 David Billinghurst <David.Billinghurst@riotinto.org>
* g77.f-torture/compile/pr3743.f: New test
2001-07-20 David Billinghurst <David.Billinghurst@riotinto.com>
* g77.f-torture/execute/f90-intrinsic-bit.f: New test
From-SVN: r44192