Richard Henderson [Thu, 26 Jul 2001 01:28:01 +0000 (18:28 -0700)]
varasm.c (assemble_variable): Create DECL_RTL before setting TREE_ASM_WRITTEN.
* varasm.c (assemble_variable): Create DECL_RTL before setting
TREE_ASM_WRITTEN.
From-SVN: r44372
Jan Hubicka [Wed, 25 Jul 2001 22:36:42 +0000 (22:36 +0000)]
Fix typo spotted by Richard.
From-SVN: r44370
Jan Hubicka [Wed, 25 Jul 2001 22:23:09 +0000 (00:23 +0200)]
predict.c (estimate_probability): Avoid duplicated predictions.
* predict.c (estimate_probability): Avoid duplicated predictions.
* loop.c (find_and_verify_loops): Grok multiple barriers.
From-SVN: r44369
Richard Kenner [Wed, 25 Jul 2001 22:08:05 +0000 (22:08 +0000)]
* config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
From-SVN: r44368
Richard Kenner [Wed, 25 Jul 2001 22:03:03 +0000 (18:03 -0400)]
dbxout.c: Consistently use putc instead of fputc.
* dbxout.c: Consistently use putc instead of fputc.
(print_wide_int): New function; call instead of direct fprintf.
(dbxout_type_index): Adjust calls of CHARS to be more accurate.
(dbxout_type_fields, dbxout_type_method_1): Likewise.
(dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
(print_int_cst_octal): Likewise.
(print_octal): Show we wrote characters.
(dbxout_type): Set have_used_extensions in more places.
From-SVN: r44367
Catherine Moore [Wed, 25 Jul 2001 21:49:46 +0000 (21:49 +0000)]
v850.c (v850_va_arg): Use addr instead of valist to build incr.
* config/v850/v850.c (v850_va_arg): Use addr
instead of valist to build incr.
From-SVN: r44366
Jan Hubicka [Wed, 25 Jul 2001 20:51:24 +0000 (22:51 +0200)]
flow.c (delete_dead_jumptables): New function.
* flow.c (delete_dead_jumptables): New function.
(life_analyzis): Call it.
* bb-reorder.c (skip_insns_after_block): Handle contradictive sequences.
From-SVN: r44365
Richard Henderson [Wed, 25 Jul 2001 19:59:39 +0000 (12:59 -0700)]
except.c (reachable_handlers): Handle a region being removed out from under a RESX.
* except.c (reachable_handlers): Handle a region being removed
out from under a RESX.
From-SVN: r44363
Jason Merrill [Wed, 25 Jul 2001 18:11:45 +0000 (14:11 -0400)]
xfail until patch applied
From-SVN: r44361
Richard Henderson [Wed, 25 Jul 2001 17:34:04 +0000 (10:34 -0700)]
alpha.c (alpha_emit_conditional_move): Always swap GE/GT if its an fp comparison.
* config/alpha/alpha.c (alpha_emit_conditional_move): Always
swap GE/GT if its an fp comparison.
From-SVN: r44360
Tom Tromey [Wed, 25 Jul 2001 16:40:04 +0000 (16:40 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (libgcj.jar): Correctly fail when bytecode
compilation fails.
From-SVN: r44359
Jason Merrill [Wed, 25 Jul 2001 15:04:32 +0000 (11:04 -0400)]
call.c (joust): Only prefer a non-builtin candidate to a builtin one if...
* call.c (joust): Only prefer a non-builtin candidate to a builtin
one if they have the same signature.
* cvt.c (build_up_reference): Take DECL parm. Check TREE_STATIC on
it rather than toplevel_bindings_p. Give it a mangled name if static.
(convert_to_reference): Adjust.
* decl2.c (get_temp_name): Lose.
* mangle.c (mangle_ref_init_variable): New fn.
(mangle_guard_variable): Strip the ref-init header.
* cp-tree.h: Adjust.
* decl.c (cp_finish_decl): Add the DECL_STMT after processing the
initializer.
(grok_reference_init): Always use DECL_INITIAL.
From-SVN: r44358
Jeffrey A Law [Wed, 25 Jul 2001 14:41:35 +0000 (14:41 +0000)]
ssa.c (rename_insn_1): Do not wrap an assignment to a paradoxical SUBREG inside a SEQUENCE.
* ssa.c (rename_insn_1): Do not wrap an assignment to a
paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
glitch.
From-SVN: r44357
Andrew Haley [Wed, 25 Jul 2001 14:38:29 +0000 (14:38 +0000)]
alias.c (rtx_equal_for_memref_p): Allow strings as types in operands.
2001-07-19 Andrew Haley <aph@cambridge.redhat.com>
* alias.c (rtx_equal_for_memref_p): Allow strings as types in
operands.
From-SVN: r44356
Jeffrey A Law [Wed, 25 Jul 2001 14:23:08 +0000 (14:23 +0000)]
ssa-ccp.c (visit_expression): Handle CALL_INSNs that can throw an exception.
* ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
throw an exception.
(visit_expression): When attempting to simplify an expression,
retrieve any modes for arguments before they are simplified
to constants.
From-SVN: r44355
Andrew MacLeod [Wed, 25 Jul 2001 13:33:17 +0000 (13:33 +0000)]
stmt.c (expand_goto): A nonlocal goto can be a call too.
2001-07-25 Andrew MacLeod <amacleod@redhat.com>
Janis Johnson <janis@us.ibm.com>
* stmt.c (expand_goto): A nonlocal goto can be a call too.
* builtins.c (expand_builtin_longjmp): Reverse label and static chain
pointer parameters to match documented usage of nonlocal_goto.
* config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
parameters to their correct order.
* config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
parameters to their correct order.
Co-Authored-By: Janis Johnson <janis@us.ibm.com>
From-SVN: r44353
Andrew MacLeod [Wed, 25 Jul 2001 13:21:49 +0000 (13:21 +0000)]
* config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
From-SVN: r44351
Jason Merrill [Wed, 25 Jul 2001 12:06:20 +0000 (08:06 -0400)]
fix noreturn warnings
From-SVN: r44350
Jason Merrill [Wed, 25 Jul 2001 12:05:42 +0000 (08:05 -0400)]
moved to dg
From-SVN: r44349
Rainer Orth [Wed, 25 Jul 2001 11:28:50 +0000 (11:28 +0000)]
20010724-1.c: New file.
* gcc.c-torture/execute/
20010724-1.c: New file.
* gcc.c-torture/execute/
20010724-1.x: New file.
From-SVN: r44346
Nathan Sidwell [Wed, 25 Jul 2001 09:38:26 +0000 (09:38 +0000)]
re PR c++/3416 (gcc-3.0 Internal compiler error in arg_assoc, at cp/decl2.c:4902)
cp:
PR c++/3416
* call.c (build_conditional_expr): Recheck args after
conversions.
* cp-tree.h (build_conditional_expr): Move to correct file.
* typeck.c (decay_conversion): Diagnose any unknown types
reaching here.
(build_binary_op): Don't do initial decay or default
conversions on overloaded functions.
(build_static_cast): Don't do a decay conversion here.
testsuite:
* g++.old-deja/g++.other/cond7.C: New test.
From-SVN: r44345
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