Kaveh R. Ghazi [Tue, 28 Jan 2003 14:21:26 +0000 (14:21 +0000)]
* gcc.c-torture/execute/builtin-constant.x: Only expect failure at -O1.
From-SVN: r61970
Richard Sandiford [Tue, 28 Jan 2003 12:45:12 +0000 (12:45 +0000)]
sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA...
* config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
class contains a floating-point register, return the size of the
mode in half words.
From-SVN: r61966
Gerald Pfeifer [Tue, 28 Jan 2003 12:41:24 +0000 (12:41 +0000)]
Add a missing change to:
* gcc/doc/invoke.texi (Optimization Options): Group together
optional and experimental flags. Move trapv and bounds-check
out of this section. Group floating point flags together.
(Code Gen Options): Move trapv and bounds-check to here.
From-SVN: r61964
Jan Hubicka [Tue, 28 Jan 2003 11:16:32 +0000 (12:16 +0100)]
i386.c (ix86_carry_flag_operator): New predicate.
* i386.c (ix86_carry_flag_operator): New predicate.
(fcmov_operator): Fix whitespace.
(ix86_expand_carry_flag_compare): Deal with floating point.
(ix86_expand_int_movcc): Deal with fp; update insn expansion
(ix86_expand_int_addcc): Likewise.
(ix86_expand_strlensi_unroll_1): likewsie.
* i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
* i386.md (add?i_carry_rex64): Use new predicate.
(sub?i3_carry_rex64): Likewise.
(x86_mov?icc_0_m1*): Likewise.
From-SVN: r61963
Andreas Schwab [Tue, 28 Jan 2003 11:05:18 +0000 (11:05 +0000)]
cfgloopmanip.c (create_preheader): Initialize src to avoid warning.
* cfgloopmanip.c (create_preheader): Initialize src to avoid
warning.
* expmed.c (emit_store_flag): Fix cast to avoid sign
comparison warning.
From-SVN: r61962
Andreas Schwab [Tue, 28 Jan 2003 11:02:28 +0000 (11:02 +0000)]
combine.c (force_to_mode): Add cast to fix warning when STORE_FLAG_VALUE is negative.
* combine.c (force_to_mode): Add cast to fix warning when
STORE_FLAG_VALUE is negative.
From-SVN: r61961
Tom Tromey [Tue, 28 Jan 2003 06:19:48 +0000 (06:19 +0000)]
consthrow.java: New file.
* libjava.compile/consthrow.java: New file.
* libjava.compile/consthrow.xfail: New file.
From-SVN: r61959
Tom Tromey [Tue, 28 Jan 2003 06:18:31 +0000 (06:18 +0000)]
parse.y (java_check_regular_methods): Check for construct after checking types in throws clause.
* parse.y (java_check_regular_methods): Check for construct after
checking types in throws clause.
From-SVN: r61956
Richard Henderson [Tue, 28 Jan 2003 04:46:33 +0000 (20:46 -0800)]
Makefile.in (cse.o): Depend on TARGET_H.
* Makefile.in (cse.o): Depend on TARGET_H.
* cse.c (rtx_cost): Use targetm.rtx_costs.
* system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
* doc/tm.texi: Update.
* target.h (targetm.rtx_costs): New.
* target-def.h (TARGET_RTX_COSTS): New.
* hooks.c (hook_bool_rtx_int_int_intp_false): New.
* hooks.h: Update.
* config/alpha/alpha.c (alpha_rtx_cost_data): New.
(alpha_rtx_costs, TARGET_RTX_COSTS): New.
* config/alpha/alpha.h (PROCESSOR_MAX): New.
(CONST_COSTS, RTX_COSTS): Remove.
* config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
config/mn10200/mn10200.h, config/mn10300/mn10300.c,
config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
config/stormy16/stormy16.c, config/stormy16/stormy16.h,
config/v850/v850.c, config/v850/v850.h,
config/xtensa/xtensa.c, config/xtensa/xtensa.h
(CONST_COSTS, RTX_COSTS): Move code ...
(foo_rtx_costs, TARGET_RTX_COSTS): ... here.
* config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
(arm_rtx_costs, TARGET_RTX_COSTS): New.
* config/arm/arm-protos.h: Update.
* config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
* config/avr/avr.h (CONST_COSTS): Move code ...
* config/avr/avr.c (avr_rtx_costs): ... here.
(default_rtx_costs): Make static.
* config/avr/avr-protos.h: Update.
* config/h8300/h8300.c (const_costs): Make static.
(h8300_and_costs, h8300_shift_costs): Likewise.
* config/h8300/h8300-protos.h: Update.
* config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
(CONST_COSTS): Move code ...
* config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
default_rtx_costs; update for signature change.
* config/ip2k/ip2k-protos.h: Update.
* config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
(CONST_COSTS): Move code ...
* config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
(TARGET_RTX_COSTS): New.
(m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
* config/m68hc11/m68hc11-protos.h: Update.
* config/m68k/m68k.c (const_int_cost): Make static.
* config/m68k/m68k-protos.h: Update.
* config/mcore/mcore.c (mcore_const_costs): Make static.
(mcore_and_cost, mcore_ior_cost): Likewise.
* config/mcore/mcore-protos.h: Update.
* config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
(mmix_rtx_cost_recalculated): Remove.
* config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
* config/mmix/mmix-protos.h: Update.
* config/sh/sh.c (shiftcosts): Make static.
(addsubcosts, andcosts, multcosts): Likewise.
* config/sh/sh-protos.h: Update.
* config/sparc/sparc.c (TARGET_RTX_COSTS): New.
(sparc_rtx_costs): Make static; update for change in signature.
* config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
* config/sparc/sparc-protos.h: Update.
* config/v850/v850.c (const_costs): Make static.
* config/v850/v850-protos.h: Update.
* config/vax/vax.h (RTX_COSTS): Remove.
(CONST_COSTS): Move code ...
* config/vax/vax.c (vax_rtx_costs_1): ... here; rename
from vax_rtx_cost.
(vax_rtx_costs, TARGET_RTX_COSTS): New.
From-SVN: r61954
Richard Henderson [Tue, 28 Jan 2003 03:41:10 +0000 (19:41 -0800)]
* config/vax/vax-protos.h: Update. Really.
From-SVN: r61952
Richard Henderson [Tue, 28 Jan 2003 03:39:45 +0000 (19:39 -0800)]
* config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
From-SVN: r61951
Jeffrey D. Oldham [Tue, 28 Jan 2003 03:26:00 +0000 (03:26 +0000)]
re PR c++/47 (nested classes broken)
2003-01-27 Jeffrey D. Oldham <oldham@codesourcery.com>
PR c++/47
* g++.old-deja/g++.other/lookup24.C: New test.
From-SVN: r61950
Alexandre Oliva [Tue, 28 Jan 2003 02:18:43 +0000 (02:18 +0000)]
mips.h (UNITS_PER_HWFPVALUE): Renamed from...
* config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
(UNITS_PER_FPVALUE): Defined as the width of a long double, or
zero if no hardware floating point.
(LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
(MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
(LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
(BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
(FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
* config/mips/mips.c (mips_arg_info): Pass TFmode values in
even FP registers on N32 and N64.
(mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
(mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
(mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
even-register-like alignment to 128-bit arguments.
(save_restore_insns): Use UNITS_PER_HWFPVALUE.
(mips_function_value): Likewise. Return TFmode in $f0 and $f2
on N32 or N64.
* config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
* config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
(TPBIT): Set to tp-bit.c.
(tp-bit.c): Create out of fp-bit.c.
From-SVN: r61945
Kaveh R. Ghazi [Tue, 28 Jan 2003 01:59:22 +0000 (01:59 +0000)]
re PR middle-end/7227 (bogus code generation with attribute mode TI)
PR middle-end/7227
* gcc.dg/uninit-C.c: New test.
From-SVN: r61941
Gabriel Dos Reis [Tue, 28 Jan 2003 01:56:32 +0000 (01:56 +0000)]
* c-parse.in: Remove '%expect 32' directive in objc mode
From-SVN: r61940
Alexandre Oliva [Tue, 28 Jan 2003 01:48:39 +0000 (01:48 +0000)]
Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use /`$$CC -print-multi-os-directory`.
* Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
/`$$CC -print-multi-os-directory`.
From-SVN: r61938
Alexandre Oliva [Tue, 28 Jan 2003 01:48:38 +0000 (01:48 +0000)]
ChangeLog file for zlib
From-SVN: r61937
Alexandre Oliva [Tue, 28 Jan 2003 01:48:33 +0000 (01:48 +0000)]
aclocal.m4 (glibcpp_toolexeclibdir): Instead of $(MULTISUBDIR)...
* aclocal.m4 (glibcpp_toolexeclibdir): Instead of
$(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
version_specific_libs is enabled.
* configure: Rebuilt.
From-SVN: r61936
Alexandre Oliva [Tue, 28 Jan 2003 01:48:33 +0000 (01:48 +0000)]
configure.in (toolexecdir, [...]): Set and AC_SUBST.
* configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
Remove USE_LIBDIR conditional.
* Makefile.am (toolexecdir, toolexeclibdir): Don't override.
* Makefile.in, configure: Rebuilt.
[[Split portion of a mixed commit.]]
From-SVN: r61935.2
Alexandre Oliva [Tue, 28 Jan 2003 01:44:58 +0000 (01:44 +0000)]
configure.in (toolexecdir, [...]): Set and AC_SUBST.
* configure.in (toolexecdir, toolexecmainlibdir, toolexeclibdir):
Set and AC_SUBST. Remove USE_LIBDIR conditional.
* Makefile.am (toolexecdir, toolexeclibdir): Don't override.
(toolexecmainlib_DATA): Renamed from toolexeclib_DATA.
* Makefile.in, configure: Rebuilt.
From-SVN: r61931
Alexandre Oliva [Tue, 28 Jan 2003 01:44:38 +0000 (01:44 +0000)]
Makefile.in ($(LIBG2C)): -rpath is glibcpp_toolexeclibdir.
* Makefile.in ($(LIBG2C)): -rpath is glibcpp_toolexeclibdir.
* aclocal.m4 (glibcpp_toolexeclibdir): Instead of
$(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
version_specific_libs is enabled.
* configure: Rebuilt.
From-SVN: r61927
Alexandre Oliva [Tue, 28 Jan 2003 01:44:37 +0000 (01:44 +0000)]
configure.in (toolexecdir, [...]): Set and AC_SUBST.
* configure.in (toolexecdir, toolexeclibdir): Set and AC_SUBST.
Remove USE_LIBDIR conditional.
* Makefile.am (toolexecdir, toolexeclibdir): Don't override.
* Makefile.in, configure: Rebuilt.
From-SVN: r61926
Kaveh R. Ghazi [Tue, 28 Jan 2003 01:34:49 +0000 (01:34 +0000)]
* libjava.lang/pr8823.xfail: New file, add "xfail-byte".
From-SVN: r61917
Danny Smith [Tue, 28 Jan 2003 01:17:36 +0000 (01:17 +0000)]
Makefile.am (CONFIG_CXXFLAGS): Reverse order of @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
* src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
* libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
* src/Makefile.in: Regenerate.
* libsupc++/Makefile.in: Regenerate.
From-SVN: r61915
GCC Administrator [Tue, 28 Jan 2003 00:17:04 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r61913
Nathan Sidwell [Mon, 27 Jan 2003 23:29:50 +0000 (23:29 +0000)]
class.c (update_vtable_entry_for_fn): Add index parameter.
cp:
* class.c (update_vtable_entry_for_fn): Add index parameter.
Generate vcall thunk for covariant overriding from a virtual
primary base.
(dfs_modify_vtables): Adjust.
testsuite:
* g++.dg/abi/covariant1.C: New test.
From-SVN: r61906
Nathan Sidwell [Mon, 27 Jan 2003 23:22:17 +0000 (23:22 +0000)]
Makefile.in (LIB2FUNCS_ST): Remove _gcov.
* Makefile.in (LIB2FUNCS_ST): Remove _gcov.
(LIBGCOV): New variable.
(libgcc.mk): Add LIBGCOV.
(LIBGCC_DEPS): Add libgcov.c.
(libgcov.a): New target.
(clean): Remove libgcov.a.
(install-libgcc): Do libgcov too.
(stage1-start, stage2-start, stage3-start, stage4-start): Deal
with libgcov.a.
* libgcc2.c (L_gcov): Move into ...
* libgcov.c: ... here. New file.
* mklibgcc.in: Add libgcov rules.
* gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
* doc/invoke.texi (profile-arcs, test-coverage): Update and
clarify.
* profile.c (index_counts_file): Remove duplicate check for open file.
From-SVN: r61905
David Edelsohn [Mon, 27 Jan 2003 20:25:43 +0000 (15:25 -0500)]
Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
* Makefile.am (TARGET_SRC_POWERPC_AIX): Fix typo.
* Makefile.in: Regenerate.
From-SVN: r61899
Gerald Pfeifer [Mon, 27 Jan 2003 18:07:49 +0000 (18:07 +0000)]
Fix date of ChangeLog of previous revision.
From-SVN: r61898
Jerry Quinn [Mon, 27 Jan 2003 18:06:39 +0000 (18:06 +0000)]
invoke.texi (Optimization Options): Group together optional and experimental flags.
* gcc/doc/invoke.texi (Optimization Options): Group together
optional and experimental flags. Move trapv and bounds-check
out of this section.
(Code Gen Options): Move trapv and bounds-check to here.
From-SVN: r61897
Alexandre Oliva [Mon, 27 Jan 2003 17:26:29 +0000 (17:26 +0000)]
acinclude.m4 (glibcpp_toolexeclibdir): Instead of $(MULTISUBDIR)...
* acinclude.m4 (glibcpp_toolexeclibdir): Instead of
$(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
version_specific_libs is enabled.
* aclocal.m4, configure: Rebuilt.
From-SVN: r61892
Alexandre Oliva [Mon, 27 Jan 2003 17:22:12 +0000 (17:22 +0000)]
Rebuilt with autoconf 2.13
From-SVN: r61890
Phil Edwards [Mon, 27 Jan 2003 14:56:12 +0000 (14:56 +0000)]
configure.in: Revert 24Jan change.
2003-01-27 Phil Edwards <pme@gcc.gnu.org>
* configure.in: Revert 24Jan change.
* configure: Regenerate.
From-SVN: r61888
Rainer Orth [Mon, 27 Jan 2003 13:16:59 +0000 (13:16 +0000)]
init.c (__gnat_error_handler): Make msg const.
* init.c (__gnat_error_handler): Make msg const.
* gmem.c (convert_addresses): Move declaration ...
* adaint.h: ... here.
* adaint.c (convert_addresses): Adapt addrs type to match
prototype.
* adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
From-SVN: r61887
Josef Zlomek [Mon, 27 Jan 2003 11:30:35 +0000 (12:30 +0100)]
* gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
From-SVN: r61884
Volker Reichelt [Mon, 27 Jan 2003 10:53:36 +0000 (10:53 +0000)]
* doc/extend.texi: Fix typo.
From-SVN: r61883
Richard Earnshaw [Mon, 27 Jan 2003 10:46:47 +0000 (10:46 +0000)]
re PR rtl-optimization/9090 ([3.2/3.3/3.4 regression?] arm ICE with >= -O2; regression from 2.95)
PR optimization/9090
* function.c (purge_addressof_1): After pushing an addressed register
onto the stack, simplify the result.
From-SVN: r61881
Volker Reichelt [Mon, 27 Jan 2003 10:30:11 +0000 (10:30 +0000)]
cppopts.texi: Fix typo.
* doc/cppopts.texi: Fix typo.
* doc/objc.texi: Likewise.
* doc/passes.texi: Likewise.
From-SVN: r61878
Alexandre Oliva [Mon, 27 Jan 2003 06:23:32 +0000 (06:23 +0000)]
real.c (ibm_extended_format): Add 53 to minimum exponent.
* real.c (ibm_extended_format): Add 53 to minimum exponent.
(encode_ibm_extended): Adjust.
From-SVN: r61875
Gabriel Dos Reis [Mon, 27 Jan 2003 02:22:21 +0000 (02:22 +0000)]
timevar.def (TV_OVERLOAD, [...]): New timevar_id enumerations.
* timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
timevar_id enumerations.
From-SVN: r61873
GCC Administrator [Mon, 27 Jan 2003 00:17:04 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r61872
Kazu Hirata [Sun, 26 Jan 2003 21:53:22 +0000 (21:53 +0000)]
* combine.c: Fix formatting.
From-SVN: r61862
Kazu Hirata [Sun, 26 Jan 2003 21:35:07 +0000 (21:35 +0000)]
* doc/gccint.texi: Update the copyright.
From-SVN: r61860
Kazu Hirata [Sun, 26 Jan 2003 20:56:09 +0000 (20:56 +0000)]
cpp.texi: Fix typos.
* doc/cpp.texi: Fix typos.
* doc/extend.texi: Likewise.
* doc/gty.texi: Likewise.
* doc/install.texi: Likewise.
* doc/passes.texi: Likewise.
* doc/rtl.texi: Likewise.
* doc/tm.texi: Likewise.
From-SVN: r61858
Kazu Hirata [Sun, 26 Jan 2003 20:15:36 +0000 (20:15 +0000)]
fde-glibc.c: Fix comment typos.
* config/ia64/fde-glibc.c: Fix comment typos.
* config/ia64/hpux.h: Likewise.
* config/ia64/ia64.c: Likewise.
* config/ia64/ia64.h: Likewise.
* config/ia64/unwind-ia64.c: Likewise.
From-SVN: r61857
Kazu Hirata [Sun, 26 Jan 2003 19:59:27 +0000 (19:59 +0000)]
i386-modes.def: Fix comment typos.
* config/i386/i386-modes.def: Fix comment typos.
* config/i386/i386.c: Likewise.
* config/i386/i386.md: Likewise.
From-SVN: r61855
Toon Moene [Sun, 26 Jan 2003 19:26:35 +0000 (20:26 +0100)]
lang-specs.h: Revoke change to (incorrectly) prohibit passing -f options to cc1 when...
2003-01-26 Toon Moene <toon@moene.indiv.nluug.nl>
* lang-specs.h: Revoke change to (incorrectly) prohibit
passing -f options to cc1 when preprocessing.
* news.texi: Document this.
From-SVN: r61854
Steven Bosscher [Sun, 26 Jan 2003 14:40:22 +0000 (15:40 +0100)]
avr.h, [...]: Undefine ASM_FINISH_DECLARE_OBJECT before defining it.
2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
* config/avr/avr.h, config/cris/aout.h, config/elfos.h,
config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
ASM_FINISH_DECLARE_OBJECT before defining it.
* toplev.c (rest_of_decl_compilation): Don't define
ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
(rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
parameters for DWARF2 targets because they _are_ used.
From-SVN: r61851
Michael Matz [Sun, 26 Jan 2003 10:17:17 +0000 (10:17 +0000)]
Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
2003-01-26 Michael Matz <matz@suse.de>
* Make-lang.in (treelang/parse.o-warn): Define as -Wno-error.
From-SVN: r61838
Alexandre Oliva [Sun, 26 Jan 2003 10:06:57 +0000 (10:06 +0000)]
fp-bit.h: Define macros for TFmode floating-point constants in IBM-extended TFmode types.
* fp-bit.h: Define macros for TFmode floating-point constants
in IBM-extended TFmode types.
(TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
widths.
* config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
TFmode type.
From-SVN: r61837
Alexandre Oliva [Sun, 26 Jan 2003 09:33:46 +0000 (09:33 +0000)]
fp-bit.h: Define macros for TFmode floating-point constants in IEEE quad TFmode type.
* config/fp-bit.h: Define macros for TFmode floating-point
constants in IEEE quad TFmode type. Declare functions according
to L_ macros.
(TMODES): Define if __LDBL_MANT_DIG__ is 113.
(TFtype, TItype, UTItype): Define if TMODES is defined.
(MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
(F_T_BITOFF, D_T_BITOFF): Define.
(IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
guaranteed to be wide enough.
* config/fp-bit.c: Check for L_ macros for tf functions.
(__thenan_tf): New.
(nan): Adjust.
(pack_d, unpack_d): Support IEEE 854 quad type.
(_fpmul_parts): Support TFmode. Compute exponent adjustment
from FRAC_NBITS, FRAC_BITS and NGARDS.
(usi_to_float): Cast constants to be shifted to fractype
instead of assuming long long is wide enough.
(sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
From-SVN: r61835
Andreas Jaeger [Sun, 26 Jan 2003 09:24:35 +0000 (10:24 +0100)]
* df.c: Remove prototype of unused function df_regno_rtl_debug.
From-SVN: r61833
Alexandre Oliva [Sun, 26 Jan 2003 09:17:13 +0000 (09:17 +0000)]
Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
* Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
(DBBIT_FUNCS): Added _df_to_tf.
(TPBIT_FUNCS): New.
(libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
(LIBGCC_DEPS): Added TPBIT.
* mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
From-SVN: r61832
Alexandre Oliva [Sun, 26 Jan 2003 09:11:31 +0000 (09:11 +0000)]
optabs.c (expand_binop): Return xtarget if we haven't been able to move the result to target.
* optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
been able to move the result to target.
From-SVN: r61829
Alexandre Oliva [Sun, 26 Jan 2003 09:09:23 +0000 (09:09 +0000)]
expr.c (emit_group_store): Initialize dst with CONST0_RTX for the appropriate mode.
* expr.c (emit_group_store): Initialize dst with CONST0_RTX
for the appropriate mode.
From-SVN: r61828
Alexandre Oliva [Sun, 26 Jan 2003 09:06:36 +0000 (09:06 +0000)]
calls.c (emit_library_call_value_1): Handle return values in a PARALLEL.
* calls.c (emit_library_call_value_1): Handle return values
in a PARALLEL.
From-SVN: r61826
Alexandre Oliva [Sun, 26 Jan 2003 09:02:55 +0000 (09:02 +0000)]
rtl.c (get_mode_alignment): Moved to...
* rtl.c (get_mode_alignment): Moved to...
* stor-layout.c: ... here.
From-SVN: r61824
Alexandre Oliva [Sun, 26 Jan 2003 08:59:54 +0000 (08:59 +0000)]
print-rtl.c (print_rtx): Don't print MEM details in GENERATOR_FILEs.
* print-rtl.c (print_rtx): Don't print MEM details in
GENERATOR_FILEs.
From-SVN: r61822
Daniel Jacobowitz [Sun, 26 Jan 2003 07:09:41 +0000 (07:09 +0000)]
hashtab.h (htab_alloc_with_arg, [...]): Add new types.
include/
* hashtab.h (htab_alloc_with_arg, htab_free_with_arg): Add new types.
(struct htab): Add alloc_arg, alloc_with_arg_f, free_with_arg_f.
(htab_create_alloc_ex): New prototype.
(htab_set_functions_ex): New prototype.
libiberty/
* hashtab.c (htab_create_alloc_ex): New function.
(hatab_set_functions_ex): New function.
(htab_delete, htab_expand): Support alternate allocation functions.
From-SVN: r61820
Michael Hayes [Sun, 26 Jan 2003 06:10:37 +0000 (06:10 +0000)]
df.h: Update comments, tidy formatting.
* df.h: Update comments, tidy formatting.
(DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
REVERSE, UNION, INTERSECTION. All uses updated.
(OLD_DF_INTERFACE): Remove.
(struct insn_info): Remove commented out insn field.
* df.c: Update comments, tidy formatting.
(df_def_table_realloc): Remove.
From-SVN: r61819
Alan Modra [Sun, 26 Jan 2003 02:07:48 +0000 (02:07 +0000)]
calls.c (save_fixed_argument_area): Tidy.
* calls.c (save_fixed_argument_area): Tidy.
(restore_fixed_argument_area): Tidy. Set alignment of stack_area.
(expand_call): Comment typo fixes. Don't init low_to_save. Start
call chain loop at 1 if !try_tail_call. Formatting.
(emit_library_call_value_1): Don't init low_to_save or high_to_save.
Use save_fixed_argument_area and restore_fixed_argument_area.
From-SVN: r61818
Michael Hayes [Sun, 26 Jan 2003 01:18:25 +0000 (01:18 +0000)]
* df.c (df_uses_record): Handle CC0.
From-SVN: r61817
GCC Administrator [Sun, 26 Jan 2003 00:17:04 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r61814
Ulrich Weigand [Sat, 25 Jan 2003 23:57:30 +0000 (23:57 +0000)]
reload.c (maybe_memory_address_p): New function.
gcc/
* reload.c (maybe_memory_address_p): New function.
(find_reloads_address): Use it instead of memory_address_p.
gcc/testsuite/
* gcc.dg/
20030123-1.c: New test.
From-SVN: r61805
Kaz Kojima [Sat, 25 Jan 2003 23:32:20 +0000 (23:32 +0000)]
final.c (shorten_branches): Align the address of code label when computing initial lengths and addresses.
* final.c (shorten_branches): Align the address of code label
when computing initial lengths and addresses.
From-SVN: r61803
Kazu Hirata [Sat, 25 Jan 2003 22:51:19 +0000 (22:51 +0000)]
* config/m68hc11/m68hc11.md: Fix a comment typo.
From-SVN: r61802
Andreas Jaeger [Sat, 25 Jan 2003 22:40:32 +0000 (23:40 +0100)]
i386.c (x86_output_mi_thunk): Correct test for TARGET_MACHO.
* config/i386/i386.c (x86_output_mi_thunk): Correct test for
TARGET_MACHO.
From-SVN: r61801
Roger Sayle [Sat, 25 Jan 2003 21:49:52 +0000 (21:49 +0000)]
gcse.c (bypass_last_basic_block): New global variable.
* gcse.c (bypass_last_basic_block): New global variable.
(bypass_block): Use redirect_edge_and_branch_force to redirect
fall-through edges. Use bypass_last_basic_block to determine
which blocks have valid PRE information.
(bypass_conditional_jumps): Initialize bypass_last_basic_block.
From-SVN: r61800
Jan Hubicka [Sat, 25 Jan 2003 21:32:42 +0000 (22:32 +0100)]
* gcse.c (local_cprop_pass): Update reg_sets table when needed.
From-SVN: r61799
Jan Hubicka [Sat, 25 Jan 2003 20:10:37 +0000 (21:10 +0100)]
re PR rtl-optimization/8492 (GCC spins forever compiling loop)
PR opt/8492
* gcse.c (one_cprop_pass): Delete unreachable blocks.
Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>
From-SVN: r61798
Richard Henderson [Sat, 25 Jan 2003 19:08:15 +0000 (11:08 -0800)]
ia64.c (ia64_rwreloc_select_rtx_section): Rename from ia64_aix_select_rtx_section.
* config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
from ia64_aix_select_rtx_section.
(ia64_rwreloc_select_section): Simlarly; use default*_1 function
instead of saving and restoring flag_pic.
(ia64_rwreloc_unique_section): Similarly.
* config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
* config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
From-SVN: r61797
Kazu Hirata [Sat, 25 Jan 2003 18:59:24 +0000 (18:59 +0000)]
h8300.c (h8300_shift_needs_scratch_p): Update a comment.
* config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
comment.
From-SVN: r61796
Richard Henderson [Sat, 25 Jan 2003 18:38:08 +0000 (10:38 -0800)]
* config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
From-SVN: r61795
Kelley Cook [Sat, 25 Jan 2003 18:25:14 +0000 (18:25 +0000)]
* ggc-simple.c (debug_ggc_tree): Add PTR cast.
From-SVN: r61794
Segher Boessenkool [Sat, 25 Jan 2003 18:21:22 +0000 (19:21 +0100)]
bitmap.h (BITMAP_WORD): New typedef: fundamental storage type for bitmaps.
* bitmap.h (BITMAP_WORD): New typedef: fundamental storage
type for bitmaps. Use unsigned long.
(nBITMAP_WORD_BITS): New macro.
(BITMAP_WORD_BITS): New macro.
(rest of file): Use it.
* bitmap.c: Use it.
From-SVN: r61793
Nathan Sidwell [Sat, 25 Jan 2003 18:02:43 +0000 (18:02 +0000)]
re PR c++/9403 (parse error on template keyword used for disambiguation)
cp:
PR c++/9403
* parser.c (cp_parser_class_or_namespace_name): Reject duplicate
template keyword.
(cp_parser_base_specifier): Look for and consume a
TEMPLATE keyword. Replace switch with array index.
PR c++/795
* semantics.c (finish_non_static_data_member): Remember the
field's type even in a template.
PR c++/9415
* pt.c (tsubst_copy_and_build, CALL_EXPR): BASELINK exprs are
already scoped.
PR c++/8545
* parser.c (cp_parser_cast_expression): Be more tentative.
testsuite:
PR c++/9403
* g++.dg/parse/template3.C: New test.
* g++.old-deja/g++.pt/memclass5.C: Add needed template keyword.
PR c++/795
* g++.dg/parse/template4.C: New test.
PR c++/9415
* g++.dg/template/qual2.C: New test.
PR c++/8545
* g++.old-deja/g++.brendan/parse3.C: Remove XFAIL.
* g++.old-deja/g++.ns/bogus1.C: Change expected error.
From-SVN: r61791
Richard Henderson [Sat, 25 Jan 2003 17:49:22 +0000 (09:49 -0800)]
t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
2002-02-19 Robert Lipe <robertlipe@usa.net>
* config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
From-SVN: r61790
Roger Sayle [Sat, 25 Jan 2003 17:47:26 +0000 (17:47 +0000)]
builtins.c (purge_builtin_constant_p): Scan insn stream sequentially rather than by basic block.
* builtins.c (purge_builtin_constant_p): Scan insn stream
sequentially rather than by basic block.
* function.c (purge_addressof): Simplify test with INSN_P.
From-SVN: r61789
Kazu Hirata [Sat, 25 Jan 2003 17:45:16 +0000 (17:45 +0000)]
combine.c (simplify_comparison, case AND): Remove a redundant test.
* combine.c (simplify_comparison, case AND): Remove a redundant
test.
From-SVN: r61787
Roger Sayle [Sat, 25 Jan 2003 17:42:39 +0000 (17:42 +0000)]
function.h (struct function): New field calls_constant_p.
* function.h (struct function): New field calls_constant_p.
(current_function_calls_constant_p): New macro for above.
* function.c (prepare_function_start): Initialize calls_eh_return
and calls_constant_p.
* builtins.c (expand_builtin_constant_p): Set calls_constant_p.
* toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
when the current_function_calls_constant_p.
* integrate.c (expand_inline_function): Set calls_constant_p if
the function being inlined has calls_constant_p set.
From-SVN: r61786
Roger Sayle [Sat, 25 Jan 2003 17:37:42 +0000 (17:37 +0000)]
cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not optimizing, even if flag_gcse is true.
* cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
optimizing, even if flag_gcse is true.
* toplev.c (rest_of_compilation): purge_builtin_constant_p
only needs to be called when "optimize > 0 && flag_gcse".
From-SVN: r61785
Roger Sayle [Sat, 25 Jan 2003 17:30:29 +0000 (17:30 +0000)]
stmt.c (emit_case_bit_tests): New routine to implement suitable switch statements using the equivalent of "if...
* stmt.c (emit_case_bit_tests): New routine to implement suitable
switch statements using the equivalent of "if ((1<<x) & cst) ... ".
(case_bit_test_cmp): New comparison function for "qsort" to order
case_bit_tests by decreasing number of destination nodes.
(lshift_cheap_p): New function to determine if "1 << x" is cheap.
(expand_end_case_type): Use emit_case_bit_tests to implement
suitable switch statments.
(CASE_USE_BIT_TESTS): New target macro to disable the above.
* Makefile.in (stmt.o): Add dependency on optab.h.
* doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
* gcc.c-torture/execute/switch-1.c: New test case.
From-SVN: r61784
Andreas Schwab [Sat, 25 Jan 2003 17:26:55 +0000 (17:26 +0000)]
crtend.asm [...]: Make __do_global_ctors_aux hidden global and don't put it in .init_array.
* config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
__do_global_ctors_aux hidden global and don't put it in
.init_array.
* config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
instead so that it comes first.
From-SVN: r61782
Kriang Lerdsuwanakij [Sat, 25 Jan 2003 16:28:24 +0000 (16:28 +0000)]
cp-tree.h (flagged_type_tree_s): Remove.
* cp-tree.h (flagged_type_tree_s): Remove.
(check_for_new_type): Likewise.
* typeck2.c (check_for_new_type): Likewise.
From-SVN: r61779
Jan Hubicka [Sat, 25 Jan 2003 15:12:17 +0000 (16:12 +0100)]
df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD, subreg is read/modify.
* df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
subreg is read/modify.
From-SVN: r61773
Jan Hubicka [Sat, 25 Jan 2003 15:00:51 +0000 (16:00 +0100)]
i386.c (ix86_expand_movstr, [...]): Consistently do libcall for large blocks.
* i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
do libcall for large blocks.
* i386.md (comi patterns): Set type to ssecomi.
(sse2_unpck?pd): Fix mode of vec_select.
* cse.c: Include except.h
(cse_set_around_loop): Do not create new basic blocks.
* Makefile.in (cse.o): Add dependnecy on except.h
From-SVN: r61772
Jan Hubicka [Sat, 25 Jan 2003 14:54:09 +0000 (14:54 +0000)]
* gcc.c-torture/execute/
20030125-1.[cx]: New test.
From-SVN: r61771
Paolo Carlini [Sat, 25 Jan 2003 14:39:11 +0000 (15:39 +0100)]
Tweaks for Bison-1.875.
2003-01-25 Paolo Carlini <pcarlini@unitus.it>
Tweaks for Bison-1.875. From the NEWS file:
"- `parse error' -> `syntax error'
Bison now uniformly uses the term `syntax error'"
* gcc.dg/cpp/
19990413-1.c: Test for "(parse|syntax) error".
* gcc.dg/cpp/digraph2.c: Likewise.
* gcc.dg/cpp/direct2.c: Likewise.
* gcc.dg/cpp/paste4.c: Likewise.
* gcc.dg/c90-restrict-1.c: Likewise.
* gcc.dg/c99-func-2.c: Likewise.
* gcc.dg/noncompile/920721-2.c: Likewise.
* gcc.dg/noncompile/930622-2.c: Likewise.
* gcc.dg/noncompile/940112-1.c: Likewise.
* gcc.dg/noncompile/950921-1.c: Likewise.
* gcc.dg/noncompile/951123-1.c: Likewise.
* gcc.dg/noncompile/971104-1.c: Likewise.
* gcc.dg/noncompile/990416-1.c: Likewise.
From-SVN: r61768
Jan Hubicka [Sat, 25 Jan 2003 11:08:38 +0000 (12:08 +0100)]
builtins.c (fold_trunc_transparent_mathfn): New function.
* builtins.c (fold_trunc_transparent_mathfn): New function.
(fold_builtin): Use it.
* convert.c (convert_to_real): Re-enable code to convert
math functions; add support for floor familly functions.
From-SVN: r61764
Zdenek Dvorak [Sat, 25 Jan 2003 10:16:10 +0000 (11:16 +0100)]
Makefile.in (cfgloop.o, [...]): Add dependencies on coretypes.h and $(TM_H).
* Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
dependencies on coretypes.h and $(TM_H).
From-SVN: r61762
Jan Hubicka [Sat, 25 Jan 2003 10:11:05 +0000 (11:11 +0100)]
* builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
From-SVN: r61761
Kazu Hirata [Sat, 25 Jan 2003 04:12:17 +0000 (04:12 +0000)]
Fix a small breakage.
From-SVN: r61759
Tom Tromey [Sat, 25 Jan 2003 02:53:04 +0000 (02:53 +0000)]
Cleaned up ChangeLog snafu
From-SVN: r61756
Stuart Hastings [Sat, 25 Jan 2003 01:35:50 +0000 (01:35 +0000)]
* config/i386/i386.c (x86_output_mi_thunk) Add Darwin/x86 support.
From-SVN: r61755
Michael Hayes [Sat, 25 Jan 2003 00:35:36 +0000 (00:35 +0000)]
c4x.md (UNSPEC_BU): New constants.
* config/c4x/c4x.md (UNSPEC_BU): New constants.
(UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
(UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
(UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
(UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
(UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
(UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
(UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
From-SVN: r61754
GCC Administrator [Sat, 25 Jan 2003 00:17:05 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r61753
Gerald Pfeifer [Fri, 24 Jan 2003 23:31:41 +0000 (00:31 +0100)]
MAINTAINERS: Remove incorrect entry for Paul Eggert.
* MAINTAINERS: Remove incorrect entry for Paul Eggert. Fix
entry of HJ Lu.
From-SVN: r61746
Christopher Faylor [Fri, 24 Jan 2003 23:23:18 +0000 (23:23 +0000)]
configure.in: Remove special pex-cygwin consideration.
* configure.in: Remove special pex-cygwin consideration.
* configure: Regenerate.
* pex-cygwin.c: Remove.
* Makefile.in: Remove pex-cygwin.[co] lines.
From-SVN: r61744
Paolo Carlini [Fri, 24 Jan 2003 23:14:28 +0000 (00:14 +0100)]
undefined1.C: Add error message.
2003-01-24 Paolo Carlini <pcarlini@unitus.it>
* g++.dg/parse/undefined1.C: Add error message.
From-SVN: r61742
Jan Hubicka [Fri, 24 Jan 2003 22:45:58 +0000 (23:45 +0100)]
emit-rtl.c (reg_attrs_htab): New static variable.
* emit-rtl.c (reg_attrs_htab): New static variable.
(reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
functions.
(reg_rtx): Do not maintain regno_decl.
(gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
set_mem_attrs_from_reg): New global function.
(init_emit): Do not initialize regno_decl.
(init_emit_once): initialize reg_attrs_htab.
* final.c (alter_subreg): Do not replace REG by SUBREG.
(gen_mem_expr_from_op): Improve output.
(output_asm_operands): Likewise.
* function.c (assign_params): Do not set REGNO_DECL.
* function.h (struct function): Kill regno_decl.
(REGNO_DECL): Kill.
* gengtype.c (adjust_field_rtx_def): Handle new field of reg.
* print_rtl.c (print_rtx): Output REG information.
* regclass.c (reg_scan_mark_refs): Update attrs.
* reload1.c (alter_reg): Likewise.
* simplify_rtx.c (simplify_subreg): Likewise.
* stmt.c (expand_decl): Likewise.
* rtl.def (REG): Add new field.
* rtl.h (struct reg_attrs): New.
(rtunion_def): At rtreg.
(X0MEMATTR): Add checking.
(X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
(set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
Declare.
* tree.h (SET_DECL_RTL): Call set_decl_rtl.
From-SVN: r61741