OSDN Git Service

pf3gnuchains/gcc-fork.git
18 years ago * g++.dg/template/spec10.C: Set exit value to zero on success. Fix
bwilson [Tue, 7 Oct 2003 16:56:47 +0000 (16:56 +0000)]
* g++.dg/template/spec10.C: Set exit value to zero on success.  Fix
indentation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72195 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * doc/invoke.texi (Warning Options): Simplify and clarify the
gerald [Tue, 7 Oct 2003 16:28:37 +0000 (16:28 +0000)]
* doc/invoke.texi (Warning Options): Simplify and clarify the
descriptions of -Wnonnull and -Winit-self.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72194 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago* optabs.c (init_intraclass_conv_libfuncs): Fix order of array
rearnsha [Tue, 7 Oct 2003 16:07:28 +0000 (16:07 +0000)]
* optabs.c (init_intraclass_conv_libfuncs): Fix order of array
indicees for floating-point conversersion libcalls.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72193 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * Makefile.in: Add more comments separating large conceptually
neroden [Tue, 7 Oct 2003 13:30:00 +0000 (13:30 +0000)]
* Makefile.in: Add more comments separating large conceptually
separate sections.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72192 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * configure.in: Clean up thread file logic.
neroden [Tue, 7 Oct 2003 12:32:07 +0000 (12:32 +0000)]
* configure.in: Clean up thread file logic.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72191 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-07 Paolo Carlini <pcarlini@unitus.it>
paolo [Tue, 7 Oct 2003 10:34:47 +0000 (10:34 +0000)]
2003-10-07  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc: Minor cosmetic changes
and const-ifications of some variables.

* include/bits/locale_facets.tcc
(money_get::do_get(..., string_type&)): Simplify an if-else.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72190 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
dannysmith [Tue, 7 Oct 2003 09:36:34 +0000 (09:36 +0000)]
* config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
(switch_to_section): Handle in_readonly_data.
* config/i386/winnt.c (i386_pe_asm_named_section): Handle
readonly data.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72189 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago* arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
rearnsha [Tue, 7 Oct 2003 08:49:36 +0000 (08:49 +0000)]
* arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
it.
(cbranchne_decr1): New Thumb pattern.
* arm.c (arm_addimm_operand): New insn predicate.
* arm-protos.h: Add a prototype for it.
* arm.h (PREDICATE_CODES): Add it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72188 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * sched-int.h (sched_info): New field
dorit [Tue, 7 Oct 2003 08:18:42 +0000 (08:18 +0000)]
    * sched-int.h (sched_info): New field
        sched_max_insns_priority.
        * sched-rgn.c (init_ready_list): Add invocations to
        targetm.sched.adjust_priority.
        (sched_max_insns_priority): Init new field.
        * sched-ebb.c (sched_max_insns_priority): Init new field.
        * haifa-sched.c (set_priorities): Set
        sched_info->sched_max_insns_priority.
        * config/rs6000/rs6000.h:
        (rs6000_sched_restricted_insns_priority_str): Support new
        flag -mprioritize-restricted-insns.
        (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
        * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
        function.
        (rs6000_adjust_priority): Change priority of restricted
        insns, using above new function and new flag.
        * doc/invoke.texi (-mprioritize-restricted-insns): Document
        new option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72186 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * expr.c (cmpstr_optab, cmpmem_optab): New.
zack [Tue, 7 Oct 2003 07:25:32 +0000 (07:25 +0000)]
* expr.c (cmpstr_optab, cmpmem_optab): New.
* genopinit.c: Initialize them.
* optabs.h: Declare them.
* optabs.c (init_optabs): Clear them.
(prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
block memory compare insns, not conditional chains.  Restructure
the fallback generation of a call to memcmp/bcmp for better
readability.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72185 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago PR c++/10147
mmitchel [Tue, 7 Oct 2003 07:07:07 +0000 (07:07 +0000)]
PR c++/10147
* call.c (initialize_reference): Tweak error message.

PR c++/12337
* init.c (build_new_1): Make sure that the expression returned is
not an lvalue.

PR c++/12344, c++/12236, c++/8656
* decl.c (start_function): Do not ignore attributes embedded in a
function declarator.

PR c++/12337
* g++.dg/init/new9.C: New test.

PR c++/12334, c++/12236, c++/8656
* g++.dg/ext/attrib8.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72183 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
rsandifo [Tue, 7 Oct 2003 06:38:15 +0000 (06:38 +0000)]
* config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
(mips_save_restore_fn): New typedef.
(mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
(mips_set_frame_expr, mips_frame_set): Move above prologue code.
(save_restore_insns): Remove, replacing with...
(mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
(mips_save_reg, mips_restore_reg): New function.
(mips_expand_prologue, mips_expand_epilogue): Rework.
* config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
(MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
(MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72182 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/mips/mips.c (mips_expand_prologue): Remove unused
rsandifo [Tue, 7 Oct 2003 06:34:46 +0000 (06:34 +0000)]
* config/mips/mips.c (mips_expand_prologue): Remove unused
traversal of function arguments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72181 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * doc/invoke.texi: Remove documentation of -mentry.
rsandifo [Tue, 7 Oct 2003 06:33:25 +0000 (06:33 +0000)]
* doc/invoke.texi: Remove documentation of -mentry.
* config/mips/mips.c (mips_entry_string, mips_entry): Remove.
(override_options, mips_save_reg_p): Remove handling.
(compute_frame_size, mips_output_function_prologue): Likewise.
(mips_expand_prologue, mips_expand_epilogue): Likewise.
* config/mips/mips.h (mips_entry_string): Remove declaration.
(TARGET_OPTIONS): Remove -mentry.
* config/mips/mips16.S: Remove mention of -mentry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72180 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
zack [Tue, 7 Oct 2003 02:23:42 +0000 (02:23 +0000)]
* libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
(LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
(LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
(LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
(LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
(LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
(LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
(LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
(LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
(LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
(LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
(extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
(extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
(truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
(trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
(floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
(floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
(floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
(floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
(fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
(fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
(fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
(fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
(fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
(fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
(fixunstfti_libfunc): Delete.
* optabs.h (struct optab_handlers): Break out of struct optab.
(struct convert_optab, convert_optab, enum convert_optab_index,
convert_optab_table, sext_optab, zext_optab, trunc_optab,
sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
sfloat_optab, ufloat_optab): New.
(set_conv_libfunc): Prototype.
(GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
(trunc_optab): Renamed btrunc_optab.
* builtins.c (expand_builtin_mathfn): Update to match.
* optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
(convert_optab_table, new_convert_optab, init_convert_optab)
(init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
(set_conv_libfunc): New.
(can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
(expand_float, expand_fix): Use new conversion optabs,
not old insn code tables or long chains of ifs.
(init_optabs): No need to clear old insn code tables.
Initialize the new optabs, not the old libfunc array entries.
Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
* genopinit.c: Initialize conversion optabs, not the
former insn code tables.  Remove unnecessary casts.
Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
* expr.c (convert_move): Remove redundant check that
to_real==from_real.  Use the conversion optabs instead
of long chains of tests of modes.  Move partial-integer-mode
interconversion above all integer conversion.  Do not recurse
on a value forced into a register in the original mode.

* config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
* config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
* config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
in new conversion optabs; do not reference the old libfunc
array entries.  No need to include libfuncs.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72178 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoDaily bump.
gccadmin [Tue, 7 Oct 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72176 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
sayle [Mon, 6 Oct 2003 23:18:31 +0000 (23:18 +0000)]
* config/i386/i386.c (ix86_expand_setcc): Annotate the floating
point comparison sequence with a REG_EQUAL note that describes
the comparison's semantics.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72173 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
sayle [Mon, 6 Oct 2003 23:11:21 +0000 (23:11 +0000)]
* expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72172 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
sayle [Mon, 6 Oct 2003 23:09:28 +0000 (23:09 +0000)]
* optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
instruction by using LCT_CONST and then calling emit_libcall_block
ourselves.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72171 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoPR optimization/11974
carlo [Mon, 6 Oct 2003 23:06:09 +0000 (23:06 +0000)]
PR optimization/11974
* optabs.c (expand_unop): Promote libcall outmode according to
hard_libcall_value.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72170 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * real.h (REAL_MODE_FORMAT): New macro.
zack [Mon, 6 Oct 2003 22:47:32 +0000 (22:47 +0000)]
* real.h (REAL_MODE_FORMAT): New macro.
* c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
* config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
* config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
* config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
* config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
directly to real_format_for_mode array, wherever possible.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72168 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-06 Paolo Carlini <pcarlini@unitus.it>
paolo [Mon, 6 Oct 2003 22:32:59 +0000 (22:32 +0000)]
2003-10-06  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/11740
* config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
* config/locale/generic/ctype_members.cc: Same.
* testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72167 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoFix -feliminate-dwarf2-dups ICE.
dpatel [Mon, 6 Oct 2003 22:25:19 +0000 (22:25 +0000)]
Fix -feliminate-dwarf2-dups ICE.

       gcc
       * dwarf2out.c (is_main_source): Remove variable.
       (dwarf2out_start_source_file): Do not check is_main_source.
       Do not reset is_main_source.
       (dwarf2out_init): Do not initialize is_main_source.

       testsuite
       * gcc.dg/debug/dwarf2-3.h: New test.
       * gcc.dg/debug/dwarf2-3.c: New test case for -feliminate-dwarf2-dups.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72166 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
ro [Mon, 6 Oct 2003 20:49:24 +0000 (20:49 +0000)]
* fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
(irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
introduced some multi-line prototypes.
* fixinc/fixincl.x: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72165 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-06 Paolo Carlini <pcarlini@unitus.it>
paolo [Mon, 6 Oct 2003 19:46:21 +0000 (19:46 +0000)]
2003-10-06  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc (__pad<>::_S_pad):
Improve performance-wise: avoid one traits::copy, avoid
the __builtin_alloca, streamline.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72164 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
ro [Mon, 6 Oct 2003 19:18:35 +0000 (19:18 +0000)]
* include/ffi_mips.h: Define FFI_MIPS_N32 for N32/N64 ABIs,
FFI_MIPS_O32 for O32 ABI.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72161 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoAdding my name to "write after approval" maintainers.
bowdidge [Mon, 6 Oct 2003 18:25:13 +0000 (18:25 +0000)]
Adding my name to "write after approval" maintainers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72160 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
rsandifo [Mon, 6 Oct 2003 17:52:37 +0000 (17:52 +0000)]
* config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
* config/mips/mips.c (stack_operand): New predicate.
* config/mips/mips.md: Use it for the destination of mips16 insns
that store $31.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72158 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/mips/mips.md (*lowsi): Renamed from lowsi.
rsandifo [Mon, 6 Oct 2003 17:50:26 +0000 (17:50 +0000)]
* config/mips/mips.md (*lowsi): Renamed from lowsi.
(*lowdi): Likewise lowdi.
(*lowsi_mips16, *lowdi_mips16): New patterns.
* config/mips/mips.c (mips_const_insns, mips_output_move): Remove
mips16 CONSTANT_RELOC handling.
(mips_delegitimize_address): Adjust for new sdata representation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72157 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
rsandifo [Mon, 6 Oct 2003 17:48:25 +0000 (17:48 +0000)]
* config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
skip any remaining register arguments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72156 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * reload.c (find_reloads_subreg_address): Use correct offset for
uweigand [Mon, 6 Oct 2003 15:56:07 +0000 (15:56 +0000)]
* reload.c (find_reloads_subreg_address): Use correct offset for
paradoxical MEM subregs on big-endian targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72153 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * ltcf-cxx.sh (irix5*, irix6*): Prefix -soname and its arg with ${wl}.
ro [Mon, 6 Oct 2003 15:13:13 +0000 (15:13 +0000)]
* ltcf-cxx.sh (irix5*, irix6*): Prefix -soname and its arg with ${wl}.
* ltconfig (irix5*, irix6*): Don't override version_type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72152 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-06 Andrew Haley <aph@redhat.com>
aph [Mon, 6 Oct 2003 13:50:41 +0000 (13:50 +0000)]
2003-10-06  Andrew Haley  <aph@redhat.com>

* tree.c (get_callee_fndecl): Call
lang_hooks.lang_get_callee_fndecl.
* langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
(lhd_get_callee_fndecl): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72150 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago+2003-10-06 Andrew Pinski <apinski@apple.com>
pinskia [Mon, 6 Oct 2003 13:35:36 +0000 (13:35 +0000)]
+2003-10-06  Andrew Pinski  <apinski@apple.com>
+
+ * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
+ error in calculating the length of the string.
+ (machopic_stub_name): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72149 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
sayle [Mon, 6 Oct 2003 12:48:49 +0000 (12:48 +0000)]
* optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
describing the return value of the comparison libcall to the
REG_RETVAL instruction of the emitted sequence.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72148 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago PR optimization/12215
ebotcazou [Mon, 6 Oct 2003 09:18:01 +0000 (09:18 +0000)]
PR optimization/12215
* cse.c (cse_set_around_loop): Emit the move at the beginning
of the next basic block for trapping sets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72141 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
ebotcazou [Mon, 6 Oct 2003 08:52:23 +0000 (08:52 +0000)]
2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>

PR optimization/11637
* combine.c (adjust_for_new_dest): New function to adjust the
notes and LOG_LINKS when the dest of an insn has changed.
(try_combine): Use it when deleting the first insn of a two-insn
parallel or splitting a two-load parallel.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72138 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
rsandifo [Mon, 6 Oct 2003 08:02:54 +0000 (08:02 +0000)]
* config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
if TARGET_EXPLICIT_RELOCS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72137 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agofix off one error for one for all.
pinskia [Mon, 6 Oct 2003 07:56:37 +0000 (07:56 +0000)]
fix off one error for one for all.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72136 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago PR bootstrap/12512
mmitchel [Mon, 6 Oct 2003 07:56:16 +0000 (07:56 +0000)]
PR bootstrap/12512
* Makefile.in (info): Use double-colon rules.
(dvi): Likewise.
(generated-manpages): Likewise.
* configure.in: Do not create lang.info, lang.dvi, or
lang.generated-manpages hooks.
* configure: Regenerated.
* objc/Make-lang.in (objc.info): Remove.
(objc.dvi): Remove.
(objc.generated-manpages): Remove.
* doc/sourcebuild.texi: Update description of info, dvi, and
generated-manpages hooks.

* Make-lang.in (ada.info): Replace with ...
(info): ... this.
(ada.dvi): Replace with ...
(dvi): ... this.

* Make-lang.in (c++.info): Remove.
(c++.dvi): Remove.
(c++.generated-manpages): Replace with ...
(generated-manpages): ... this.

* Make-lang.in (f77.info): Replace with ...
(info): ... this.
(f77.dvi): Replace with ...
(dvi): ... this.
(f77.generated-manpages): Replace with ...
(generated-manpages): ... this.

* Make-lang.in (java.info): Replace with ...
(info): ... this.
(java.dvi): Replace with ...
(dvi): ... this.
(java.generated-manpages): Replace with ...

* Make-lang.in (treelang.info): Replace with ...
(info): ... this.
* Make-lang.in (treelang.dvi): Replace with ...
(dvi): ... this.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72135 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter
rsandifo [Mon, 6 Oct 2003 07:53:16 +0000 (07:53 +0000)]
* config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72134 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoone more off by one error.
pinskia [Mon, 6 Oct 2003 06:38:04 +0000 (06:38 +0000)]
one more off by one error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72133 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-05 Andrew Pinski <apinski@apple.com>
pinskia [Mon, 6 Oct 2003 06:11:14 +0000 (06:11 +0000)]
2003-10-05  Andrew Pinski  <apinski@apple.com>
        * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
        errors in memcpy destinations.
        (machopic_stub_name): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72132 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * configure.in: Allow explicit specification of CFLAGS_FOR_BUILD.
membar [Mon, 6 Oct 2003 03:40:08 +0000 (03:40 +0000)]
* configure.in: Allow explicit specification of CFLAGS_FOR_BUILD.
* configure: Rebuilt
* Makefile.tpl: Use CFLAGS_FOR_BUILD computed by configure
* Makefile.in: Rebuilt

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72130 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/darwin.c (machopic_non_lazy_ptr_name):
pinskia [Mon, 6 Oct 2003 01:36:13 +0000 (01:36 +0000)]
* config/darwin.c (machopic_non_lazy_ptr_name):
Change strcat to memcpy and add length together.
(machopic_stub_name): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72129 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
kkojima [Mon, 6 Oct 2003 01:24:53 +0000 (01:24 +0000)]
* config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
signal trampoline codes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72128 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoDaily bump.
gccadmin [Mon, 6 Oct 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72125 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-05 Chris Demetriou <cgd@broadcom.com>
cgd [Sun, 5 Oct 2003 23:57:56 +0000 (23:57 +0000)]
2003-10-05  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (*divsf3): Move description of
        SB-1 F2 erratum from here to...
        (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
        flag_unsafe_math_optimizations is not.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72123 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-05 Aldy Hernandez <aldyh@redhat.com>
aldyh [Sun, 5 Oct 2003 22:49:29 +0000 (22:49 +0000)]
2003-10-05  Aldy Hernandez  <aldyh@redhat.com>

* config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
TARGET_E500, TARGET_ISEL, and TARGET_FPRS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72121 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * c-pretty-print.c: Fix comment typos.
kazu [Sun, 5 Oct 2003 19:50:56 +0000 (19:50 +0000)]
* c-pretty-print.c: Fix comment typos.
* c-pretty-print.h: Likewise.
* calls.c: Likewise.
* cfgloopmanip.c: Likewise.
* cgraphunit.c: Likewise.
* cppfiles.c: Likewise.
* final.c: Likewise.
* function.c: Likewise.
* gcov-io.h: Likewise.
* gcse.c: Likewise.
* genoutput.c: Likewise.
* loop.c: Likewise.
* postreload.c: Likewise.
* reg-stack.c: Likewise.
* regmove.c: Likewise.
* sched-int.h: Likewise.
* sched-rgn.c: Likewise.
* simplify-rtx.c: Likewise.
* tree-inline.c: Likewise.
* config/m68hc11/m68hc11.h: Likewise.
* config/mmix/mmix.c: Likewise.
* config/mn10300/mn10300.md: Likewise.
* config/sh/sh.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72118 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * tree-inline.c (remap_type): New.
rth [Sun, 5 Oct 2003 19:07:47 +0000 (19:07 +0000)]
    * tree-inline.c (remap_type): New.
        (remap_decl): Use it.  Remap DECL_SIZE*.
        (copy_body_r): Use it.
        (walk_tree): Walk TREE_TYPE too.
        (copy_tree_r): Don't walk subtrees of types.
        * tree.c (variably_modified_type_p): Restructure.  Consider integer
        types with non-const bounds variably modified.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72114 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * doc/invoke.texi: Fix typos.
kazu [Sun, 5 Oct 2003 18:51:41 +0000 (18:51 +0000)]
* doc/invoke.texi: Fix typos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72113 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-05 Paolo Carlini <pcarlini@unitus.it>
paolo [Sun, 5 Oct 2003 15:08:46 +0000 (15:08 +0000)]
2003-10-05  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc
(num_put::do_put(..., bool)): Prefer ?: to if-else.
(time_get::_M_extract_name): Qualify min with std::.
(__pad<>::_S_pad): Constify two variables; simplify an
if-else statement factoring out some code.

* include/bits/locale_facets.tcc: Minor cosmetic changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72112 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * fold-const.c: Follow spelling conventions.
kazu [Sun, 5 Oct 2003 13:34:45 +0000 (13:34 +0000)]
* fold-const.c: Follow spelling conventions.
* function.c: Likewise.
* config/c4x/c4x.h: Likewise.
* config/c4x/c4x.md: Likewise.
* config/frv/frv.md: Likewise.
* config/rs6000/aix.h: Likewise.
* config/rs6000/linux64.h: Likewise.
* config/xtensa/xtensa.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72111 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * c-pretty-print.c: Fix comment formatting.
kazu [Sun, 5 Oct 2003 13:09:48 +0000 (13:09 +0000)]
* c-pretty-print.c: Fix comment formatting.
* cfglayout.c: Likewise.
* cfgloopanal.c: Likewise.
* cppcharset.c: Likewise.
* dbxout.c: Likewise.
* ggc-page.c: Likewise.
* ggc.h: Likewise.
* target.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72110 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * builtins.c, jcf.h, jvspec.c: Remove PARAMS macros.
kcook [Sun, 5 Oct 2003 02:52:33 +0000 (02:52 +0000)]
* builtins.c, jcf.h, jvspec.c: Remove PARAMS macros.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72107 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago* gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
kcook [Sun, 5 Oct 2003 02:49:20 +0000 (02:49 +0000)]
* gengtype-lex.l: Recognize typedef of functions without PARAMS macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72106 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoDaily bump.
gccadmin [Sun, 5 Oct 2003 00:16:05 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72104 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
neroden [Sat, 4 Oct 2003 23:28:57 +0000 (23:28 +0000)]
* config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
Convert to ISO C90 function declarations and definitions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72102 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * libfuncs.h
zack [Sat, 4 Oct 2003 21:36:08 +0000 (21:36 +0000)]
* libfuncs.h
(LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
(LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
(LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
(LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
(LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
(LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
(LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
(eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
(lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
(nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
(lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
(gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
(unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
(gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
(eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
(lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
Delete.
* optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
(OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
(le_optab, unord_optab): New.

* optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
from the code_to_optab table, not a giant switch; use
swap_condition; do widening only if a comparison function that
we can call exists in a wider mode, not if a cmp_optab insn or
libfunc exists in a wider mode; call protect_from_queue
exactly once on each operand.
(init_optabs): Initialize the new optabs, not the deleted libfuncs.

* config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
* config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
Set floating point comparison libfuncs using set_optab_libfunc
on the appropriate optab.

* config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
* config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
selector conditionals.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72101 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
ciceron [Sat, 4 Oct 2003 19:47:04 +0000 (19:47 +0000)]
* config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
identical to m68hc12 as far as libraries are concerned.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72100 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago PR c/12446
ebotcazou [Sat, 4 Oct 2003 18:02:32 +0000 (18:02 +0000)]
PR c/12446
* c-typeck.c (convert_for_assignment): Issue an error for
array to pointer assignment after default conversion.
(digest_init): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72096 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoTest for testing a global followed by extern declaration.
fjahanian [Sat, 4 Oct 2003 16:53:19 +0000 (16:53 +0000)]
Test for testing a global followed by extern declaration.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72095 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoretain DECL_COMMON of old declaration
fjahanian [Sat, 4 Oct 2003 16:49:26 +0000 (16:49 +0000)]
retain DECL_COMMON of old declaration
Reviewed by Geoffrey Keating.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72094 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-04 Paolo Carlini <pcarlini@unitus.it>
paolo [Sat, 4 Oct 2003 14:59:32 +0000 (14:59 +0000)]
2003-10-04  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc (num_get::_M_extract_float):
Constify a couple of variables.
(num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
++__beg to *__beg++.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72093 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * doc/extend.texi (Function Attributes): Fix title of GNU C
gerald [Sat, 4 Oct 2003 10:53:09 +0000 (10:53 +0000)]
* doc/extend.texi (Function Attributes): Fix title of GNU C
Preprocessor manual.
(C++ Extensions): Fix reference to "Predefined Macros" in the
GNU C Preprocessor manual.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72091 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-04 Paolo Carlini <pcarlini@unitus.it>
paolo [Sat, 4 Oct 2003 10:51:34 +0000 (10:51 +0000)]
2003-10-04  Paolo Carlini  <pcarlini@unitus.it>
    Petur Runolfsson  <peturr02@ru.is>

* include/ext/stdio_sync_filebuf.h: Don't include the whole
<fstream>, only <streambuf> and <cstdio>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72090 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago* doc/extend.texi: Document how GCC estimates and relies on the size
rearnsha [Sat, 4 Oct 2003 10:18:33 +0000 (10:18 +0000)]
* doc/extend.texi: Document how GCC estimates and relies on the size
of an asm.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72089 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
rsandifo [Sat, 4 Oct 2003 08:11:06 +0000 (08:11 +0000)]
* config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
arguments downward for big-endian o64.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72088 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-04 Paolo Carlini <pcarlini@unitus.it>
paolo [Sat, 4 Oct 2003 07:52:02 +0000 (07:52 +0000)]
2003-10-04  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/12206
* include/bits/fstream.tcc (imbue): In case a codecvt facet
is not available, set _M_codecvt = 0.
* testsuite/27_io/basic_filebuf/imbue/12206.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72087 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-03 H.J. Lu <hongjiu.lu@intel.com>
hjl [Sat, 4 Oct 2003 04:54:17 +0000 (04:54 +0000)]
2003-10-03  H.J. Lu  <hongjiu.lu@intel.com>

* ltconfig (sys_lib_search_path_spec): Fix a typo for HPUX.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72086 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago* ggc-page.c: (ggc_pch_write_object) replace fseek() with fwrite()
bowdidge [Sat, 4 Oct 2003 01:45:51 +0000 (01:45 +0000)]
* ggc-page.c: (ggc_pch_write_object) replace fseek() with fwrite()
  in PCH generation, avoiding
  too-frequent flushes when writing to NFS file system

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72085 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoDaily bump.
gccadmin [Sat, 4 Oct 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72083 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-03 Ziemowit Laski <zlaski@apple.com>
zlaski [Fri, 3 Oct 2003 22:49:54 +0000 (22:49 +0000)]
2003-10-03  Ziemowit Laski  <zlaski@apple.com>

        * objc/objc-act.c (lookup_category): Mark as 'inline'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72081 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago[gcc]
zlaski [Fri, 3 Oct 2003 22:24:03 +0000 (22:24 +0000)]
[gcc]
2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
            Ziemowit Laski  <zlaski@apple.com>

        * objc/objc-act.c (add_method_to_hash_list, lookup_category):
        New functions.
        (lookup_method_in_hash_lists): New parameter indicating whether
        we are messaging 'Class' or 'id'.
        (check_duplicates): Likewise; do not assume all methods will
        be either class or instance methods.
        (generate_category, finish_class): Use lookup_category().
        (add_method): Use add_method_to_hash_list(); insert instance
        methods of root classes into the global class method hash table.
        (add_category): Use lookup_category(); avoid constructing
        duplicate categories.
        (really_start_method): Add method to corresponding @interface,
        if not already there (and if the @interface exists).
        (finish_message_expr, finish_objc): Adjust calls to
        check_duplicates().

[gcc/testsuite]
2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
            Ziemowit Laski  <zlaski@apple.com>

        * objc.dg/method-6.m ('starboard'): Move prototype from 'Base' to
        'Derived', so that it is never considered a class method; add
        new warning for '+port' method ambiguity.
        * objc.dg/method-12.m: Include <objc/objc.h> instead of
        <objc/objc-api.h> (needed on Mac OS X).
        * objc.dg/method-13.m: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72080 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago PR optimization/9325, PR java/6391
sayle [Fri, 3 Oct 2003 21:33:57 +0000 (21:33 +0000)]
PR optimization/9325, PR java/6391
* fold-const.c (fold_convert): For floating point to integer
conversions, return the maximum/minimum representable integer
value if the real constant overflows the destination type.
* tree.c (real_value_from_int_cst): Allow the type to be NULL,
meaning don't truncate the result to a floating point mode.
Simplify the logic by calling real_from_integer directly.
* simplify-rtx.c (simplify_unary_operation):  Implement the
same semantics for folding floating point to integer conversions
in RTL.

* gcc.c-torture/execute/20031003-1.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72079 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-03 Chris Demetriou <cgd@broadcom.com>
cgd [Fri, 3 Oct 2003 21:13:13 +0000 (21:13 +0000)]
2003-10-03  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.c (mips_emit_prefetch): Restructure
        to avoid use of arrays, handle indexed prefetch.
        * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
        (ISA_HAS_PREFETCHX): New deffine.
        * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
        update comments.
        (prefetch_indexed_di, prefetch_indexed_si): New insns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72077 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * decl.c (struct cp_binding_level): Move to name-lookup.h
gdr [Fri, 3 Oct 2003 20:27:05 +0000 (20:27 +0000)]
* decl.c (struct cp_binding_level): Move to name-lookup.h
(current_binding_level): Likewise.
(class_binding_level): Likewise.
* cp-tree.h (enum scope_kind): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72076 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago* configure: Rebuild.
jsturm [Fri, 3 Oct 2003 19:38:05 +0000 (19:38 +0000)]
* configure: Rebuild.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72075 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * configure.in: Remove NO_GETENV definition for win32.
hboehm [Fri, 3 Oct 2003 18:43:06 +0000 (18:43 +0000)]
* configure.in: Remove NO_GETENV definition for win32.
* mach_dep.c (GC_generic_push_regs): Prevent tail call optimization.
* misc.c (GC_init_inner): Call GC_thr_init for win32.
  (GC_set_warn_proc): Add assertion.
* win32_threads.c: Import 6.3alpha2 version.
* include/private/gc_priv.h: Add support for EMPTY_GETENV_RESULTS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72074 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago PR optimization/12289
sayle [Fri, 3 Oct 2003 17:59:37 +0000 (17:59 +0000)]
PR optimization/12289
* calls.c (emit_call_1): Pretend to have popped the arguments
to noreturn and longjmp functions instead of ignoring them.
(expand_call): Don't adjust stack_pointer_dela while
inhibit_defer_pop is set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72073 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago PR bootstrap/12276
schwab [Fri, 3 Oct 2003 17:49:39 +0000 (17:49 +0000)]
PR bootstrap/12276
* configure.in: Check for libunwind on the host only if building
a native compiler.
* configure: Regenerated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72072 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-03 Paolo Carlini <pcarlini@unitus.it>
paolo [Fri, 3 Oct 2003 15:42:08 +0000 (15:42 +0000)]
2003-10-03  Paolo Carlini  <pcarlini@unitus.it>

* unwind-pe.h (read_encoded_value_with_base): Constify u and
its inizialization cast.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72071 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * name-lookup.c (binding_entry_free): Nullify name and type
gdr [Fri, 3 Oct 2003 10:59:52 +0000 (10:59 +0000)]
    * name-lookup.c (binding_entry_free): Nullify name and type
        fields.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72069 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoAdded a missing ChangeLog Entry:
aph [Fri, 3 Oct 2003 10:04:40 +0000 (10:04 +0000)]
Added a missing ChangeLog Entry:

2003-08-20  Andrew Haley  <aph@redhat.com>

        * except.c (prepare_eh_table_type): Use new encoding for exception
        handlers when using -fno-assume-compiled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72068 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago PR target/12485
rsandifo [Fri, 3 Oct 2003 06:55:02 +0000 (06:55 +0000)]
PR target/12485
* config/mips/mips.c (mips_load_got): GOT accesses can't trap.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72066 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoFix typo
mmitchel [Fri, 3 Oct 2003 01:22:58 +0000 (01:22 +0000)]
Fix typo

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72064 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
bkoz [Fri, 3 Oct 2003 00:36:45 +0000 (00:36 +0000)]
2003-10-02  Harald Boehme  <boehme@informatik.hu-berlin.de>

PR libstdc++/12451
* libsupc++/cxxabi.h: Move forward declaration of __class_type_info.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72059 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoFix typo
mmitchel [Fri, 3 Oct 2003 00:28:52 +0000 (00:28 +0000)]
Fix typo

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72058 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago PR optimization/12180
mmitchel [Fri, 3 Oct 2003 00:23:30 +0000 (00:23 +0000)]
PR optimization/12180
* tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
functions containing calls to

PR optimization/12180
* gcc.dg/20031002-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72057 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agoDaily bump.
gccadmin [Fri, 3 Oct 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72055 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-02 Chris Demetriou <cgd@broadcom.com>
cgd [Thu, 2 Oct 2003 23:45:05 +0000 (23:45 +0000)]
2003-10-02  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.c (mips_emit_prefetch): Use operand 3
        in instructions being output.
        * config/mips/mips.md (prefetch_si_address): Change third
        operand's constraint letter to 'I'.
        (prefetch_di_address): Likewise.
        (prefetch_si, prefetch_di): Set third operand to const0_rtx.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72053 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago PR c++/12486
mmitchel [Thu, 2 Oct 2003 23:14:01 +0000 (23:14 +0000)]
PR c++/12486
* typeck.c (finish_class_member_access_expr): Issue diagnostic
on erroneous use of qualified name.

PR c++/12486
* g++.dg/inherit/error1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72052 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 2 Oct 2003 23:06:13 +0000 (23:06 +0000)]
2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
* src/locale.cc: Define.
* src/localename.cc: Use it.
* config/locale/generic/time_members.h: Same.
* config/locale/gnu/messages_members.h: Same.
* config/locale/gnu/time_members.h: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72050 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-02 Paolo Carlini <pcarlini@unitus.it>
paolo [Thu, 2 Oct 2003 20:37:06 +0000 (20:37 +0000)]
2003-10-02  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/12232
* include/bits/fstream.tcc (seekoff): Ignore the openmode
argument; simplify.
* config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
seekpos): Remove the openmode argument.
* config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
seekpos): Remove redundant placeholder for the openmode argument.
* testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
* testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
* testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72048 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-02 Guilhem Lavaux <guilhem@kaffe.org>
mkoch [Thu, 2 Oct 2003 19:29:31 +0000 (19:29 +0000)]
2003-10-02  Guilhem Lavaux  <guilhem@kaffe.org>

* java/net/InetSocketAddress.java
(InetSocketAddress): Made exception more clear.
(equals): Handle case when addr is null.
(toString): Likewise.
* java/net/NetworkInterface.java
(static): Load native library.
(getNetworkInterfaces): Rewritten.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72047 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago * strerror.c: Revert last change. Declare static sys_nerr
drow [Thu, 2 Oct 2003 19:06:29 +0000 (19:06 +0000)]
* strerror.c: Revert last change.  Declare static sys_nerr
and sys_errlist using different names.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72046 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 2 Oct 2003 19:02:58 +0000 (19:02 +0000)]
2003-10-02  Benjamin Kosnik  <bkoz@redhat.com>

* src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
(locale::facet::_S_get_c_locale): Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72045 138bc75d-0d04-0410-961f-82ee72b054a4

18 years ago2003-10-02 Thomas Fitzsimmons <fitzsim@redhat.com>
fitzsim [Thu, 2 Oct 2003 18:34:56 +0000 (18:34 +0000)]
2003-10-02  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkComponentPeer.java (insets): New
field.
(initializeInsets): New method.
(GtkComponentPeer): Call initializeInsets.  Call setCursor and
setBounds unconditionally.
(setBounds): Convert coordinates if parent is a Window.
* gnu/java/awt/peer/gtk/GtkContainerPeer.java (insets): Move
field to GtkComponentPeer.
(GtkContainerPeer): Don't initialize insets.
* gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets):
New method.
(create): Call new GtkWindowPeer create method.
* gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets):
New method.
(create): Call new GtkWindowPeer create method.
(setBounds): Remove method.
(postConfigureEvent): Likewise.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java: Replace GTK window
type constants with GDK window type constants.
(create(int,boolean,int,int,GtkWindowPeer)): New method.
(create(int,boolean)): Likewise.
(create()): Call create(int,boolean).
(nativeSetBounds): New native method declaration.
(setBounds): Call native method declaration.
(setSize): New native method declaration.
(setBoundsCallback): Likewise.
(postConfigureEvent): Handle change in insets.  Call setSize and
setBoundsCallback methods.
* java/awt/Window.java (Window): Set visible to false.
(setBoundsCallback): New method.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(gtkWidgetGetLocationOnScreen): If this component is not a
container, adjust the location returned based on the peer's
allocation.
(set(String,boolean)): Revert change from 2003-09-19.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(awt_event_handler): Fix inset calculation.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c: Add JNI
glue for Window.setBoundsCallback.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create):
Set up stacking order, window decorations and window manager
hints.
(setBoundsCallback): New method.
(setSize): New method.
(nativeSetBounds): New method.
* jni/gtk-peer/gtkpeer.h: Declare setBoundsCallbackID.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72043 138bc75d-0d04-0410-961f-82ee72b054a4

18 years agocorrect comment
jason [Thu, 2 Oct 2003 17:43:57 +0000 (17:43 +0000)]
correct comment

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72042 138bc75d-0d04-0410-961f-82ee72b054a4