Rainer Orth
50011802c0
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
2001-07-25 11:28:50 +00:00
Nathan Sidwell
4026042933
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
2001-07-25 09:38:26 +00:00
Nathan Sidwell
ab085207aa
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
2001-07-25 09:00:37 +00:00
Nathan Sidwell
0abe00c528
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
2001-07-25 08:54:06 +00:00
Nathan Sidwell
90b1ca2f52
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
2001-07-25 08:52:32 +00:00
Jan Hubicka
a368a2fabb
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
2001-07-25 01:30:36 -07:00
Gabriel Dos Reis
d38cd8ae50
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
2001-07-25 08:06:47 +00:00
GCC Administrator
40a25731d6
Daily bump.
...
From-SVN: r44332
2001-07-25 07:16:08 +00:00
Joel Sherrill
303e979ace
* config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
...
From-SVN: r44331
2001-07-24 18:57:20 -07:00
Joel Sherrill
7adb4be894
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
2001-07-24 18:53:26 -07:00
Joel Sherrill
bb8602be34
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
2001-07-24 18:49:45 -07:00
Joel Sherrill
e08f13ee31
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
2001-07-24 18:44:29 -07:00
Phil Edwards
cfe5dc317f
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
2001-07-25 01:34:03 +00:00
Lars Brinkhoff
0c23768840
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
2001-07-24 18:19:23 -07:00
Richard Henderson
5a2aa3bd76
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
2001-07-24 16:43:55 -07:00
Jan Hubicka
ca9fef16af
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
2001-07-24 23:42:40 +00:00
Jan Hubicka
40fc4e6a9f
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
2001-07-24 22:34:43 +00:00
Richard Henderson
e7139885a9
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
2001-07-24 14:39:19 -07:00
Rainer Orth
edd60b15d1
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
2001-07-24 20:08:58 +00:00
Rainer Orth
6e6958dce4
Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
...
* Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
Makefile.in: Regenerate.
From-SVN: r44314
2001-07-24 19:51:34 +00:00
Jan Hubicka
6f862f2fa9
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
2001-07-24 18:34:07 +00:00
Andrew Haley
615cd49b9a
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
2001-07-24 15:52:26 +00:00
Andrew Haley
2b9d17c73c
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
2001-07-24 15:25:51 +00:00
Jason Merrill
41971242cc
* lib/scanasm.exp (scan-assembler*): Don't take "testcase" argument.
...
From-SVN: r44302
2001-07-24 11:17:04 -04:00
Jason Merrill
6f817aaf98
move to subdirs
...
From-SVN: r44301
2001-07-24 11:08:37 -04:00
Jason Merrill
f8b529aa0a
* g++.dg/dg.exp: Run tests from subdirectories other than "special".
...
From-SVN: r44300
2001-07-24 11:06:50 -04:00
Jason Merrill
c934225791
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
2001-07-24 11:06:27 -04:00
Andrew Haley
cfe1cd4037
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
2001-07-24 15:06:14 +00:00
Jason Merrill
22d69b599b
tweak comment
...
From-SVN: r44297
2001-07-24 10:55:07 -04:00
Tom Tromey
82545bf72f
VMClassLoader.java (getPrimitiveClass): Return correct type.
...
* java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
type.
From-SVN: r44296
2001-07-24 14:31:42 +00:00
David Billinghurst
897c6ab759
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
2001-07-24 13:32:53 +00:00
Rainer Orth
46d2e8d778
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
2001-07-24 12:27:03 +00:00
Lars Brinkhoff
cd6e529112
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
2001-07-24 09:13:19 +00:00
Nathan Sidwell
7f54a8510b
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
2001-07-24 08:56:12 +00:00
Jan Hubicka
8f54d2fffd
* flow.c (delete_noop_moves): Do not confuse libcall regions.
...
From-SVN: r44290
2001-07-24 08:54:59 +00:00
GCC Administrator
016c22b5b4
Daily bump.
...
From-SVN: r44288
2001-07-24 07:16:15 +00:00
Richard Henderson
6a7ca9966b
* flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
...
From-SVN: r44287
2001-07-23 17:57:46 -07:00
Kazu Hirata
82efa2e524
* reload.c: Fix comment typos.
...
From-SVN: r44284
2001-07-23 22:41:10 +00:00
Kazu Hirata
ba412630ae
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
2001-07-23 21:46:38 +00:00
Jan Hubicka
21715220d5
* gcse.c (cprop_insn): Update call of cprop_cc0_jump.
...
From-SVN: r44282
2001-07-23 21:35:26 +00:00
H.J. Lu
dd96fbc585
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
2001-07-23 14:20:35 -07:00
Richard Henderson
c50e5bc0ab
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
2001-07-23 14:16:02 -07:00
Neil Booth
9099cc4f79
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
2001-07-23 21:11:42 +00:00
Lars Brinkhoff
68eb4fb9c7
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
2001-07-23 20:33:40 +00:00
Tom Tromey
e109d16f8c
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
2001-07-23 20:01:29 +00:00
Clinton Popetz
57de7530c4
unroll.c (loop_iterations): Fix miscalculation of initial giv offset.
...
* unroll.c (loop_iterations): Fix miscalculation of initial
giv offset.
From-SVN: r44272
2001-07-23 12:58:29 -04:00
David Edelsohn
cba6dfc843
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
2001-07-23 12:41:03 -04:00
Jeffrey A Law
1ee6b83994
* gcc.c-torture/execute/20010723-1.c: New test.
...
From-SVN: r44270
2001-07-23 10:13:51 -06:00
Andrew Haley
6e7b03e1f5
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
2001-07-23 16:00:06 +00:00
Jan Hubicka
0dd94abd70
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
2001-07-23 15:27:33 +00:00