platform/upstream/gcc.git
20 years agoname-lookup.h (cxx_scope_find_binding_for_name): Don't export.
Gabriel Dos Reis [Tue, 14 Oct 2003 08:19:06 +0000 (08:19 +0000)]
name-lookup.h (cxx_scope_find_binding_for_name): Don't export.

* name-lookup.h (cxx_scope_find_binding_for_name): Don't export.
(binding_for_name): Likewise.
(cxx_binding_clear): Move to name-lookup.c.
* name-lookup.c (cxx_scope_find_binding_for_name): Now static.
(binding_for_name): Likewise.
* decl2.c (is_ancestor): Move to name-lookup.c
(namespace_ancestor): Likewise.
(add_using_namespace): Likewise.
(ambiguous_decl): Likewise.
(lookup_using_namespace): Likewise.
(qualified_lookup_using_namespace): Likewise.
(set_decl_namespace): Likewise.
(decl_namespace): Likewise.
(current_decl_namespace): Likewise.
(push_decl_namespace): Likewise.
(pop_decl_namespace): Likewise.
(push_scope): Likewise.
(pop_scope): Likewise.
(struct arg_lookup): Likewise.
(arg_assoc): Likewise.
(arg_assoc_args): Likewise.
(arg_assoc_type): Likewise.
(add_function): Likewise.
(arg_assoc_namespace): Likewise.
(arg_assoc_class): Likewise.
(arg_assoc_template_arg): Likewise.
(do_namespace_alias): Likewise.
(validate_nonmember_using_decl): Likewise.
(do_nonmember_using_decl): Likewise.
(do_toplevel_using_decl): Likewise.
(do_local_using_decl): Likewise.
(do_class_using_decl): Likewise.
(do_using_directive): Likewise.
(constructor_name_full): Likewise.
(constructor_name): Likewise.
(constructor_name_p): Likewise.

From-SVN: r72462

20 years agolocale.cc (locale::_S_initialize): Workaround a confusion of the use of the gthr...
Petur Runolfsson [Tue, 14 Oct 2003 04:47:10 +0000 (04:47 +0000)]
locale.cc (locale::_S_initialize): Workaround a confusion of the use of the gthr API when...

2003-10-14  Petur Runolfsson  <peturr02@ru.is>
    Andreas Tobler  <a.tobler@schweiz.ch>

* src/locale.cc (locale::_S_initialize): Workaround a confusion
of the use of the gthr API when __gthread_active_p() returns true.

Co-Authored-By: Andreas Tobler <a.tobler@schweiz.ch>
From-SVN: r72458

20 years agoMakefile.in, [...]: Replace uses of ${target_alias} for directory names (and other...
Nathanael Nerode [Tue, 14 Oct 2003 03:41:42 +0000 (03:41 +0000)]
Makefile.in, [...]: Replace uses of ${target_alias} for directory names (and other places which...

* Makefile.in, configure.in, config.host, mkheaders.in: Replace
uses of ${target_alias} for directory names (and other places which
won't like the empty string) with ${target_noncanonical}.  Introduce
call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
available.
* configure: Regenerate.

From-SVN: r72457

20 years agoiwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
Ian Lance Taylor [Tue, 14 Oct 2003 02:17:47 +0000 (02:17 +0000)]
iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.

* config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
* config/arm/arm.md: For splits which rely on conditional moves,
remove ! TARGET_IWMMXT condition.

From-SVN: r72456

20 years ago_cmd.m: Fix typo.
Ziemowit Laski [Tue, 14 Oct 2003 00:38:48 +0000 (00:38 +0000)]
_cmd.m: Fix typo.

2003-10-13  Ziemowit Laski  <zlaski@apple.com>

        * objc/execute/_cmd.m: Fix typo.
        * objc.dg/image-info.m, objc.dg/symtab-1.m:
        Relax 'scan-assembler' regexp.
        * objc.dg/try-catch-1.m, objc.dg/try-catch-3.m,
        objc.dg/try-catch-4.m: Run on non-Darwin targets.
        * objc.dg/zero-link-2.m: Remove blank line.
        * objc.dg/zero-link-3.m: New test case.

From-SVN: r72455

20 years agoDaily bump.
GCC Administrator [Tue, 14 Oct 2003 00:16:36 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72453

20 years agoifcvt.c (num_removed_blocks): Rename to num_true_changes.
David S. Miller [Tue, 14 Oct 2003 00:06:52 +0000 (17:06 -0700)]
ifcvt.c (num_removed_blocks): Rename to num_true_changes.

* ifcvt.c (num_removed_blocks): Rename to num_true_changes.
(find_cond_trap): Always increment if we emit a conditional
trap insn.

From-SVN: r72450

20 years ago* g77.f-torture/execute/980520-1.x: XFAIL at -O0.
Geoffrey Keating [Mon, 13 Oct 2003 23:11:52 +0000 (23:11 +0000)]
* g77.f-torture/execute/980520-1.x: XFAIL at -O0.

From-SVN: r72448

20 years agoasm-names.c: Use scan-assembler-not rather than linker trickery.
Geoffrey Keating [Mon, 13 Oct 2003 23:09:17 +0000 (23:09 +0000)]
asm-names.c: Use scan-assembler-not rather than linker trickery.

* gcc.dg/asm-names.c: Use scan-assembler-not rather
than linker trickery.

From-SVN: r72447

20 years agore PR c++/12370 (wrong code when adding friend)
Volker Reichelt [Mon, 13 Oct 2003 23:06:37 +0000 (23:06 +0000)]
re PR c++/12370 (wrong code when adding friend)

PR c++/12370
* g++.dg/other/friend2.C: New test.
* ChangeLog: Add PR number to patch for PR c++/12370.

From-SVN: r72446

20 years agonatClassLoader.cc (_Jv_InitNewClassFields): Removed.
Tom Tromey [Mon, 13 Oct 2003 22:08:51 +0000 (22:08 +0000)]
natClassLoader.cc (_Jv_InitNewClassFields): Removed.

* java/lang/natClassLoader.cc (_Jv_InitNewClassFields): Removed.
(defineClass): Updated.
(_Jv_NewClass): Likewise.
* prims.cc (_Jv_InitPrimClass): Don't call
_Jv_InitNewClassFields.

From-SVN: r72444

20 years agore PR libgcj/12592 (Http requests use \n instead of \r\n)
Taras Glek [Mon, 13 Oct 2003 22:06:06 +0000 (22:06 +0000)]
re PR libgcj/12592 (Http requests use \n instead of \r\n)

2003-10-13  Taras Judge  <taras.judge@shaw.ca>

PR libgcj/12592
* gnu/java/net/protocol/http/Connection.java (connect): Use \r\n,
not just \n.

From-SVN: r72443

20 years agoMakefile.tpl: Make GCC_FLAGS_TO_PASS a superset of HOST_FLAGS_TO_PASS.
Nathanael Nerode [Mon, 13 Oct 2003 21:43:32 +0000 (21:43 +0000)]
Makefile.tpl: Make GCC_FLAGS_TO_PASS a superset of HOST_FLAGS_TO_PASS.

* Makefile.tpl: Make GCC_FLAGS_TO_PASS a superset of
HOST_FLAGS_TO_PASS.
* Makefile.in: Regenerate.

From-SVN: r72442

20 years agoMakefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o with min-insn-modes.o.
Zack Weinberg [Mon, 13 Oct 2003 21:16:33 +0000 (21:16 +0000)]
Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o with min-insn-modes.o.

* Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
with min-insn-modes.o.
(STAGESTUFF): Add min-insn-modes.c.
(genobjs): Add genmodes.o.
(print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
(insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
(min-insn-modes.c, min-insn-modes.o): New rules.
(s-modes): Also generate min-insn-modes.c.
($(BUILD_PREFIX_1)insn-modes.o): Kill.
* genmodes.c (struct mode_data): Add format field.
(blank_mode, validate_mode, complete_mode): Update to match.
(make_scalar_mode): Separate into make_int_mode and make_float_mode.
(_SCALAR_MODE): Kill.
(FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
(emit_insn_modes_c_header): Adjust.
(emit_min_insn_modes_c_header, emit_real_format_for_mode)
(emit_min_insn_modes_c): New functions.
(emit_insn_modes_c): Call emit_real_format_for_mode.
(main): Add -m option to generate min-insn-modes.c.
* machmode.h: Update documentation.  Add format argument to
all uses of FLOAT_MODE.
* real.c: Don't define real_format_for_mode here.

* dwarfout.c: Move default definition of PRINT_REG...
* defaults.h: ...here.
* print-rtl.c: Include tm_p.h.
(DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
Kill.
(print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
this entire block with #ifndef GENERATOR_FILE.
* regclass.c: Unconditionally define reg_names.
* config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
Don't define DEBUG_REGISTER_NAMES.
* config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
redefinition of REGISTER_NAMES.
* config/i386/i386.h: Don't define DEBUG_PRINT_REG.

* combine.c: Change all preprocessor conditionals on
EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
for clarity.
* genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
* configure.in: Don't define EXTRA_CC_MODES.
* configure, config.in: Regenerate.
* doc/tm.texi: Remove documentation of EXTRA_CC_MODES.

* config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
May assume that GET_MODE_CLASS is accurate for extra CC modes
at all times.

* config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
number of arguments to aggregate_value_p.

* genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
* machmode.def: Explain ARCH-modes.def.  Document
RESET_FLOAT_FORMAT.  Improve commentary on various mode
clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
XF, or TF modes here.  Remove backward-compatibility
definition of CC.

* config/alpha/alpha-modes.def: New file; define TF mode.
* config/arc/arm-modes.def: Define XF mode.
* config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
float format for SF and DF modes.
* config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
* config/i386/i386-modes.def: Define XF and TF modes.
* config/i960/i960-modes.def: Define TF mode.
* config/ia64/ia64-modes.def: Define TF and OI modes.
* config/m68k/m68k-modes.def: New file; define XF mode.
* config/mips/mips-modes.def: New file; define TF mode, reset
formats for SF and DF modes.
* config/pa/pa-modes.def: Define TF mode.
* config/rs6000/rs6000.c: Define TF and PSI modes.
* config/s390/s390-modes.def: Define OI mode.
* config/sh/sh-modes.def: New file; define PSI mode.
* config/sparc/sparc-modes.def: Define TF mode.
* config/vax/vax-modes.def: New file; reset formats for SF and
DF modes.

* config/c4x/c4x.c (c4x_override_options): No need to mess
with real_format_for_mode or set REAL_MODE_FORMATs.
(c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
variable.
* config/i386/i386.c (override_options): No need to set
REAL_MODE_FORMATs here.
* config/i960/i960.c (i960_initialize): Likewise.
* config/m68k/m68k.c (m68k_override_options): Likewise.
* config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
for TFmode only if not the default.
* config/mips/mips.c (override_options): Likewise.
* config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
DFmode only if not the default.

* config/i370/i370.h (RET_REG): Don't consider TFmode.
* config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
* config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
of modes that don't appear anywhere in the machine description.

* config/arc/arc-modes.def, config/arm/arm-modes.def
* config/c4x/c4x-modes.def, config/frv/frv-modes.def
* config/i386/i386-modes.def, config/i960/i960-modes.def
* config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
* config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
* config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
* config/sparc/sparc-modes.def: Convert to new style for
declaring extra CC modes.

From-SVN: r72440

20 years agocpplex.c (_cpp_clean_line): In the common case of a line with no trigraphs and no...
Zack Weinberg [Mon, 13 Oct 2003 18:53:28 +0000 (18:53 +0000)]
cpplex.c (_cpp_clean_line): In the common case of a line with no trigraphs and no \-newline...

* cpplex.c (_cpp_clean_line): In the common case of a line
with no trigraphs and no \-newline, avoid writing to memory.
(_cpp_skip_block_comment): Use a local 'cur' pointer instead
of the buffer member.  Make c an uchar to avoid unnecessary
sign extensions.

From-SVN: r72437

20 years agoconfigure.in: Remove unnecessary test.
Nathanael Nerode [Mon, 13 Oct 2003 18:18:01 +0000 (18:18 +0000)]
configure.in: Remove unnecessary test.

* configure.in: Remove unnecessary test.
* configure: Regenerate.

From-SVN: r72436

20 years agoconfigure.in: Fix grammatical error.
Nathanael Nerode [Mon, 13 Oct 2003 17:50:21 +0000 (17:50 +0000)]
configure.in: Fix grammatical error.

* configure.in: Fix grammatical error.  Move UWIN host error to...
* config.host: Here.
* configure: Regenerate.

From-SVN: r72435

20 years agos390.md ("*fmadddf4", [...]): Insns are now dependent on TARGET_FUSED_MADD instead...
Andreas Krebbel [Mon, 13 Oct 2003 17:01:01 +0000 (17:01 +0000)]
s390.md ("*fmadddf4", [...]): Insns are now dependent on TARGET_FUSED_MADD instead of...

2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>

* config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
"*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
of flag_unsafe_math_optimizations.
* config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
"TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
fused-madd and no-fused-madd.
* doc/invoke.texi: Documented the new options fused-madd and
no-fused-madd for S/390.

From-SVN: r72433

20 years agotypes.c (double, longdouble): Default POWERPC64 to 8 byte size and align.
Alan Modra [Mon, 13 Oct 2003 16:37:44 +0000 (16:37 +0000)]
types.c (double, longdouble): Default POWERPC64 to 8 byte size and align.

* src/types.c (double, longdouble): Default POWERPC64 to 8 byte size
and align.

From-SVN: r72432

20 years agolinux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose MASK_ALIGN_NATURAL if rs6000_alignm...
Alan Modra [Mon, 13 Oct 2003 16:28:23 +0000 (16:28 +0000)]
linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose MASK_ALIGN_NATURAL if rs6000_alignment_string not given.

* config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
assign DEFAULT_ABI.
(ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
* config/rs6000/rs6000.c: Formatting.
(rs6000_parse_alignment_option): Only set rs6000_alignment_flags
when rs6000_alignment_string given.

From-SVN: r72431

20 years agoFix thinko.
Gabriel Dos Reis [Mon, 13 Oct 2003 10:33:59 +0000 (10:33 +0000)]
Fix thinko.

From-SVN: r72427

20 years agoBreak out decl.c (2/n)
Gabriel Dos Reis [Mon, 13 Oct 2003 10:26:36 +0000 (10:26 +0000)]
Break out decl.c (2/n)

Break out decl.c (2/n)
* name-lookup.c: Include diagnostic.h
(cxx_binding_free): Make static.
(cxx_binding_make): Likewise.
(binding_table_new): Likewise
(binding_table_free): Likewise.
(binding_table_insert): Likewise.
(binding_table_find_anon_type): Likewise.
(binding_table_reverse_maybe_remap): Likewise.
(supplement_binding): Likewise.
* name-lookup.h (global_scope_name): Declare extern.
(global_type_node): Likewise.
(cxx_binding_free): Don't export.
(cxx_binding_make): Likewise.
(binding_table_new): Likewise.
(binding_table_free): Likewise.
(binding_table_insert): Likewise.
(binding_table_find_anon_type): Likewise.
(binding_table_reverse_maybe_remap): Likewise.
* Make-lang.in (cp/name-lookup.o): Depend on $(DIAGNOSTIC_H)
* decl.c (lookup_namespace_name): Move to name-lookup.c
(select_decl): Likewise.
(unqualified_namespace_lookup): Likewise.
(lookup_qualified_name): Likewise.
(lookup_name_real): Likewise.
(lookup_name_nonclass): Likewise.
(lookup_function_nonclass): Likewise.
(lookup_name): Likewise.
(lookup_name_current_level): Likewise.
(lookup_type_current_level): Likewise.
(lookup_flags): Likewise.
(qualify_lookup): Likewise.
(lookup_tag): Likewise.
(lookup_tag_reverse): Likewise.
(getdecls): Likewise.
(storedecls): Remove.
(cxx_remember_type_decls): Likewise.
(global_bindings_p): Likewise.
(innermost_nonclass_level): Likewise.
(toplevel_bindings_p): Likewise.
(namespace_bindings_p): Likewise.
(kept_level_p): Likewise.
(innermost_scope_kind): Likewise.
(template_parm_scope_p): Likewise.
(push_binding): Likewise.
(push_local_binding): Likewise.
(add_decl_to_level): Likewise.  Make extern.
(push_class_binding): Move to name-lookup.c.
(resume_level): Likewise.  Rename to resume_scope.
(begin_scope): Likewise.
(indent): Likewise.
(binding_depth): Likewise.
(is_class_level): Likewise.
(cxx_scope_descriptor): Likewise.
(cxx_scope_debug): Likewise.
(namespace_scope_ht_size): Likewise.
(leave_scope): Likewise.
(pushlevel_class): Likewise.
(poplevel_class): Likewise.
(clear_identifier_class_values): Likewise.
(pushdecl_with_scope): Likewise.
(pushdecl_namespace_level): Likewise.
(pushdecl_class_level): Likewise.
(push_class_level_binding): Likewise.
(push_using_directive): Likewise.
(identifier_global_value): Likewise.
(keep_next_level_flag): Likewise.
(keep_next_level): Likewise.
(free_binding_level): Likewise.
(set_class_shadows): Likewise.
(maybe_push_cleanup_level): Likewise.
(cp_namespace_decls): Likewise.
(bt_print_entry): Likewise.
(print_binding_level): Likewise.
(print_other_binding_stack): Likewise.
(print_binding_stack): Likewise.
(push_namespace): Likewise.
(pop_namespace): Likewise.
(push_nested_namespace): Likewise.
(pop_nested_namespace): Likewise.
(cxx_saved_binding_make): Likewise.
(struct cxx_saved_binding_make): Likewise.
(store_bindings): Likewise.
(maybe_push_to_top_level): Likewise.
(push_to_top_level): Likewise.
(pop_from_top_level): Likewise.
(identifier_type_value): Likewise.
(set_identifier_type_value): Likewise.
(set_identifier_type_value_with_scope): Likewise.
(pop_everything): Likewise.
(pushtag): Likewise.
(follow_tag_typedef): Likewise.
(maybe_process_template_type_declaration): Likewise.
(pop_binding): Likewise.
* cp-tree.h: Move corresponding declarations to name-lookup.h

From-SVN: r72426

20 years agore PR target/12538 (%l7 is call-clobbered with -mflat -fpic)
Eric Botcazou [Mon, 13 Oct 2003 09:57:48 +0000 (11:57 +0200)]
re PR target/12538 (%l7 is call-clobbered with -mflat -fpic)

PR target/12538
* config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
(sparc_flat_must_save_register_p): New function to decide whether
a register must be saved/restored in the function prologue/epilogue.
(sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.

From-SVN: r72425

20 years agosh.c, [...]: Convert to ISO C90 function declarations and definitions.
Steven Bosscher [Mon, 13 Oct 2003 08:44:08 +0000 (08:44 +0000)]
sh.c, [...]: Convert to ISO C90 function declarations and definitions.

* config/sh/sh.c, config/sh/sh-protos.h: Convert to
ISO C90 function declarations and definitions.

From-SVN: r72424

20 years agoavr.c, [...]: Convert to ISO C90 function declarations and definitions.
Steven Bosscher [Mon, 13 Oct 2003 08:40:44 +0000 (08:40 +0000)]
avr.c, [...]: Convert to ISO C90 function declarations and definitions.

* config/avr/avr.c, config/avr/avr-protos.h: Convert to
ISO C90 function declarations and definitions.

From-SVN: r72423

20 years agoFile.java: Reformated.
Michael Koch [Mon, 13 Oct 2003 05:54:42 +0000 (05:54 +0000)]
File.java: Reformated.

2003-10-13  Michael Koch  <konqueror@gmx.de>

* java/io/File.java: Reformated.
(equals): Check for obj == null.

From-SVN: r72421

20 years ago2003-10-13 Michael Koch <konqueror@gmx.de>
Michael Koch [Mon, 13 Oct 2003 05:34:53 +0000 (05:34 +0000)]
2003-10-13  Michael Koch  <konqueror@gmx.de>

* java/net/JarURLConnection.java
(jarFileURL): Added dcoumentation.
(jarFileURLConnection): Reformated documentation.
(entryName): Renamed from "element", documentation rewritten.
(connectionCache): Renamed from "conn_cache", documentation
reformated.
(JarURLConnection): Check URL protocol.
(getEntryName): Use entryName.
(connect): Use connectionCache.
(getInputStream): Use entryName, fixed comment.
(getJarEntry): Use entryName.
(getHeaders): Use entryName.
* java/net/URLConnection.java
(addRequestProperty): Fixed documentation.
(setDefaultRequestProptery): Added comment that it does nothing since
JDK 1.3.
(getDefaultRequestProperty): Likewise.

From-SVN: r72420

20 years ago2003-10-13 Michael Koch <konqueror@gmx.de>
Michael Koch [Mon, 13 Oct 2003 05:03:39 +0000 (05:03 +0000)]
2003-10-13  Michael Koch  <konqueror@gmx.de>

* java/net/java/net/URLStreamHandlerFactory.java
(createURLStreamHandler): Removed redundant "public" modifier.
* java/sql/DatabaseMetaData.java:
(DatabaseMetaData):  Readded accidently removed "public" modifier.
* java/sql/ParameterMetaData.java:
(ParameterMetaData): Readded accidently removed "public" modifier.
* java/sql/PreparedStatement.java:
(PreparedStatement): Readded accidently removed "public" modifier.
* java/sql/Ref.java:
(Ref): Readded accidently removed "public" modifier.

From-SVN: r72419

20 years ago2003-10-13 Michael Koch <konqueror@gmx.de>
Michael Koch [Mon, 13 Oct 2003 04:45:03 +0000 (04:45 +0000)]
2003-10-13  Michael Koch  <konqueror@gmx.de>

* java/nio/Buffer.java
(hasRemaining): Made implementation more clear.
* java/nio/MappedByteBuffer.java
(loaded): New member variable.
(force): Added comment.
(isLoaded): Return value of loaded.
(load): Set loaded to true, added comment.

From-SVN: r72418

20 years agoconfig.gcc (*-*-freebsd*): Use tm_defines instead of tiny config files which do the...
Nathanael Nerode [Mon, 13 Oct 2003 02:48:59 +0000 (02:48 +0000)]
config.gcc (*-*-freebsd*): Use tm_defines instead of tiny config files which do the same thing.

* config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
config files which do the same thing.
* config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
config/freebsd6.h: Remove now unnecessary files.

OK, I don't know what happened, but get this to commit properly.

From-SVN: r72417

20 years agoDaily bump.
GCC Administrator [Mon, 13 Oct 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72413

20 years ago* gcc.dg/20031012-1.c: New test.
Steven Bosscher [Sun, 12 Oct 2003 22:16:04 +0000 (22:16 +0000)]
* gcc.dg/20031012-1.c: New test.

From-SVN: r72410

20 years agoc-common.c (c_common_truthvalue_conversion): Warn if the address of a non-weak functi...
Steven Bosscher [Sun, 12 Oct 2003 22:09:29 +0000 (22:09 +0000)]
c-common.c (c_common_truthvalue_conversion): Warn if the address of a non-weak function is used as a truth value.

gcc/
* c-common.c (c_common_truthvalue_conversion): Warn if the
address of a non-weak function is used as a truth value.

cp/
* cvt.c (ocp_convert): Move warning to C common code.

testsuite/
* gcc.dg/weak/weak-3.c: Fix for new warning.

From-SVN: r72409

20 years agoh8300.c (WORD_REG_USED): Use SP_REG instead of a literal.
Kazu Hirata [Sun, 12 Oct 2003 20:49:45 +0000 (20:49 +0000)]
h8300.c (WORD_REG_USED): Use SP_REG instead of a literal.

* config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
a literal.
* config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
instead of a literal.

From-SVN: r72407

20 years agoconfig.gcc (*-*-freebsd*): Use tm_defines instead of tiny config files which do the...
Nathanael Nerode [Sun, 12 Oct 2003 20:09:19 +0000 (20:09 +0000)]
config.gcc (*-*-freebsd*): Use tm_defines instead of tiny config files which do the same thing.

* config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
config files which do the same thing.
* config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
config/freebsd6.h: Remove now unnecessary files.

From-SVN: r72406

20 years agore PR libstdc++/11460 (Incorrect use of int_type in strstreambuf::pbackfail)
Petur Runolfsson [Sun, 12 Oct 2003 20:03:18 +0000 (20:03 +0000)]
re PR libstdc++/11460 (Incorrect use of int_type in strstreambuf::pbackfail)

2003-10-12  Petur Runolfsson  <peturr02@ru.is>
    Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/11460
* src/strstream.cc (pbackfail): Fix to use to_int_type.
* testsuite/backward/11460.cc: New, from the PR.

Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r72405

20 years agore PR rtl-optimization/8750 (Cygwin prolog generation erroneously emitting __alloca...
R. Kelley Cook [Sun, 12 Oct 2003 17:10:12 +0000 (17:10 +0000)]
re PR rtl-optimization/8750 (Cygwin prolog generation erroneously emitting __alloca as regular function call)

PR optimization/8750
* gcc.c-torture/execute/20031012-1.c: New Test Case.

From-SVN: r72402

20 years agoextend.texi (Function Attributes): Mention the exceptional path for noreturn-marked...
Hans-Peter Nilsson [Sun, 12 Oct 2003 16:08:10 +0000 (16:08 +0000)]
extend.texi (Function Attributes): Mention the exceptional path for noreturn-marked functions.

* doc/extend.texi (Function Attributes): Mention the exceptional
path for noreturn-marked functions.

From-SVN: r72401

20 years ago2003-10-12 Michael Koch <konqueror@gmx.de>
Michael Koch [Sun, 12 Oct 2003 13:39:07 +0000 (13:39 +0000)]
2003-10-12  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/PipeImpl.java
(SourceChannelImpl): New inner class.
(SinkChannelImpl): New inner class.
(sink): New member variable.
(source): New member variable.
(PipeImpl): Add SelectorProvider argument, implemented.
(nativeInit): New method.
(sink): Return sink channel.
(source): Return source channel.
* gnu/java/nio/SelectorProviderImpl.java
(openPipe): Give provider as argument to PipeImpl constructor.
* java/nio/channels/spi/SelectorProvider.java
(pr): Removed.
(systemDefaultProvider): New member variable.
(provider): Made it synchronized, use property
java.nio.channels.spi.SelectorProvider.
* gnu/java/nio/natPipeImpl.cc: New file.
* Makefile.am (nat_source_files): Added gnu/java/nio/natPipeImpl.cc.
* Makefile.in: Regenerated.

From-SVN: r72397

20 years agoDefaultTableModel.java, [...]: Removed redundant modifiers.
Michael Koch [Sun, 12 Oct 2003 13:33:32 +0000 (13:33 +0000)]
DefaultTableModel.java, [...]: Removed redundant modifiers.

2003-10-12  Michael Koch  <konqueror@gmx.de>

* javax/swing/table/DefaultTableModel.java,
javax/swing/table/TableCellEditor.java,
javax/swing/table/TableCellRenderer.java,
javax/swing/table/TableColumnModel.java,
javax/swing/table/TableModel.java,
javax/swing/text/AbstractDocument.java,
javax/swing/text/Document.java,
javax/swing/text/MutableAttributeSet.java,
javax/swing/text/StyledDocument.java,
javax/swing/text/ViewFactory.java,
javax/swing/tree/DefaultMutableTreeNode.java,
javax/swing/tree/MutableTreeNode.java,
javax/swing/tree/RowMapper.java,
javax/swing/tree/TreeCellEditor.java,
javax/swing/tree/TreeCellRenderer.java,
javax/swing/tree/TreeModel.java,
javax/swing/tree/TreeNode.java,
javax/swing/tree/TreeSelectionModel.java,
javax/swing/undo/StateEditable.java,
javax/swing/undo/UndoableEdit.java:
Removed redundant modifiers.

From-SVN: r72396

20 years agoAncestorListener.java, [...]: Removed redundant modifiers.
Michael Koch [Sun, 12 Oct 2003 13:26:01 +0000 (13:26 +0000)]
AncestorListener.java, [...]: Removed redundant modifiers.

2003-10-12  Michael Koch  <konqueror@gmx.de>

* javax/swing/event/AncestorListener.java,
javax/swing/event/CaretListener.java,
javax/swing/event/CellEditorListener.java,
javax/swing/event/ChangeListener.java,
javax/swing/event/DocumentEvent.java,
javax/swing/event/DocumentListener.java,
javax/swing/event/HyperlinkListener.java,
javax/swing/event/InternalFrameListener.java,
javax/swing/event/ListDataListener.java,
javax/swing/event/ListSelectionListener.java,
javax/swing/event/MenuDragMouseListener.java,
javax/swing/event/MenuKeyListener.java,
javax/swing/event/MenuListener.java,
javax/swing/event/MouseInputListener.java,
javax/swing/event/PopupMenuListener.java,
javax/swing/event/TableColumnModelListener.java,
javax/swing/event/TableModelListener.java,
javax/swing/event/TreeExpansionListener.java,
javax/swing/event/TreeModelListener.java,
javax/swing/event/TreeSelectionListener.java,
javax/swing/event/TreeWillExpandListener.java,
javax/swing/event/UndoableEditListener.java,
javax/swing/plaf/UIResource.java,
javax/swing/plaf/metal/MetalLookAndFeel.java:
Removed redundant modifiers.

From-SVN: r72395

20 years agoAction.java, [...]: Removed redundant modifiers.
Michael Koch [Sun, 12 Oct 2003 13:20:50 +0000 (13:20 +0000)]
Action.java, [...]: Removed redundant modifiers.

2003-10-12  Michael Koch  <konqueror@gmx.de>

* javax/swing/Action.java,
javax/swing/BoundedRangeModel.java,
javax/swing/CellEditor.java,
javax/swing/ComboBoxEditor.java,
javax/swing/ComboBoxModel.java,
javax/swing/DesktopManager.java,
javax/swing/JComboBox.java,
javax/swing/ListCellRenderer.java,
javax/swing/ListSelectionModel.java,
javax/swing/MenuElement.java,
javax/swing/MutableComboBoxModel.java,
javax/swing/Renderer.java,
javax/swing/RootPaneContainer.java,
javax/swing/ScrollPaneConstants.java,
javax/swing/SingleSelectionModel.java,
javax/swing/SpinnerModel.java,
javax/swing/SwingConstants.java,
javax/swing/UIDefaults.java,
javax/swing/WindowConstants.java,
javax/swing/border/Border.java,
javax/swing/colorchooser/ColorSelectionModel.java:
Removed redundant modifiers.

From-SVN: r72394

20 years agocodecvt_specializations.h: Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
Paolo Carlini [Sun, 12 Oct 2003 10:12:09 +0000 (12:12 +0200)]
codecvt_specializations.h: Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.

2003-10-12  Paolo Carlini  <pcarlini@unitus.it>

* config/locale/ieee_1003.1-2001/codecvt_specializations.h:
Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
* include/bits/basic_string.tcc: Likewise.
* include/bits/ios_base.h: Likewise.
* include/bits/istream.tcc: Likewise.
* include/bits/locale_facets.tcc: Likewise.
* include/bits/ostream.tcc: Likewise.
* include/bits/stl_function.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_pair.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/streambuf_iterator.h
* include/std/std_iosfwd.h: Likewise.
* include/std/std_istream.h: Likewise.
* include/std/std_sstream.h: Likewise.
* include/std/std_streambuf.h: Likewise.
* src/ios.cc: Likewise.
* include/bits/c++config:
Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
* testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
dg-error directive due to removal of a blank line.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.

From-SVN: r72392

20 years agocgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable warning.
Jan Hubicka [Sun, 12 Oct 2003 09:06:26 +0000 (11:06 +0200)]
cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable warning.

* cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
warning.

From-SVN: r72391

20 years ago* config/i386/i386.c (x86_this_parameter): Fix typo.
Danny Smith [Sun, 12 Oct 2003 08:21:00 +0000 (08:21 +0000)]
* config/i386/i386.c (x86_this_parameter): Fix typo.

From-SVN: r72390

20 years agoPR libstdc++/11844/11740 (cont)
Andreas Tobler [Sun, 12 Oct 2003 07:34:30 +0000 (09:34 +0200)]
PR libstdc++/11844/11740 (cont)

2003-10-12  Andreas Tobler  <a.tobler@schweiz.ch>
    Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/11844/11740 (cont)
* config/os/generic/ctype_inline.h (ctype<char>::is):
Generically, use a bitmasksize of 15 (instead of 10);
Fix the logic to actually return (M & m) != 0 as per
22.2.1.1.2.

Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r72389

20 years agoMake-lang.in (treelang.install-info): Remove reference to treelang.info.
Andreas Jaeger [Sun, 12 Oct 2003 04:59:14 +0000 (06:59 +0200)]
Make-lang.in (treelang.install-info): Remove reference to treelang.info.

* Make-lang.in (treelang.install-info): Remove reference to
treelang.info.
(treelang.): Removed.

From-SVN: r72388

20 years agoDaily bump.
GCC Administrator [Sun, 12 Oct 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72386

20 years agoMakefile.in (web.o): New.
Jan Hubicka [Sat, 11 Oct 2003 22:57:48 +0000 (00:57 +0200)]
Makefile.in (web.o): New.

* Makefile.in (web.o): New.
* web.c: New file.
* rtl.h (web_main): Declare.
* timervar.def (TV_WEB): New.
* toplev.c (dump_file_index, dump_file_info): Add DFI_web.
(rest_of_hanle_web): New.
(flag_web): New static variable.
(lang_independent_options): Add "web".
(rest_of_compilation): Call rest_of_handle_web.
* invoke.texi (-fweb): Document.
* common.opt (fweb): New.
* flags.h (flag_web): New.
* opts.c (decode_options): Set flag_web at -O3.

* passes.texi (web construction):  Document.
* invoke.texi (-O3): Document that -fweb is enabled.

* regrename.c (regrename_optimize): Deal better with situation when
replacement failed.

* sched-ebb.c: Include params.h and profile.h
(schedule_ebbs):  Use tracer parameters to discover superblocks
* Makefile.in (sched-ebb.o):  Add dependencies.

From-SVN: r72383

20 years agofold-const.c (negate_mathfn_p): New function to determine whether a built-in mathemat...
Roger Sayle [Sat, 11 Oct 2003 21:15:08 +0000 (21:15 +0000)]
fold-const.c (negate_mathfn_p): New function to determine whether a built-in mathematical function is sign...

* fold-const.c (negate_mathfn_p): New function to determine whether
a built-in mathematical function is sign preserving, f(-x) == -f(x).
Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
(tree_swap_operands_p): Change API to take an additional argument
indicating that the swapped operands evaluate in reverse order.
Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
operand side-effects or we don't care about flag_evaluation_order.
(reorder_operands_p): New function to check whether its safe to
evaluate the given operands in reverse order.
(negate_expr_p):  We can always negate integer constants unless
we honor -ftrapv and the signed type would overflow.  Only allow
-(A-B) into B-A if reorder_operands_p says that its OK.  Allow
negation of COMPLEX_CST if both real and imaginary parts can be
negated.  Allow negation through floating point extensions and
sign-preserving built-in functions.
(negate_expr):  Move the code to negate integers from "fold" to
here.  Always negate integer constants unless we honor -ftrapv
and the signed type would overflow.  Always negate real constants
unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
Optimize negation through floating point extensions and
sign-preserving built-in functions (as defined by negate_mathfn_p).
(fold): Adjust calls to tree_swap_operands_p.
(fold <NEGATE_EXPR>): Move the remaining negation optimizations
to negate_expr_p/negate_expr.
(fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
allowed to convert (-A) - B into (-B) - A.

From-SVN: r72381

20 years agobuiltins.c (expand_builtin_strcmp): Defend against the possibility that gen_cmpstrsi...
Roger Sayle [Sat, 11 Oct 2003 21:11:29 +0000 (21:11 +0000)]
builtins.c (expand_builtin_strcmp): Defend against the possibility that gen_cmpstrsi may fail...

* builtins.c (expand_builtin_strcmp): Defend against the possibility
that gen_cmpstrsi may fail: Stabilize the argument list against
re-evaluation and expand the library call directly using this saved
argument list if a cmpstrsi sequence can't be generated.
(expand_builtin_strncmp): Likewise.

* config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.

* gcc.c-torture/execute/string-opt-8.c: Don't test optimizations
that inline strncmp as cmpstrsi on i386 when compiled with -Os.

From-SVN: r72380

20 years agore PR rtl-optimization/12260 (ICE in output_operand: invalid expression as operand)
Roger Sayle [Sat, 11 Oct 2003 21:06:19 +0000 (21:06 +0000)]
re PR rtl-optimization/12260 (ICE in output_operand: invalid expression as operand)

PR optimization/12260
* simplify-rtx.c (simplify_unary_operation): Simplify all unary
operations through CONST nodes.  Optimize (neg (plus X C)) as
(minus -C X) for constant values C.
(simplify_binary_operation): Optimize (minus (neg X) C) as
(minus -C X) for constant values C.
(simplify_plus_minus): Avoid creating (neg (const (plus X C)),
instead create (minus -C X).

* gcc.c-torture/compile/20031011-2.c: New test case.

From-SVN: r72379

20 years agoexpr.c (expand_expr <PLUS_EXPR>): Let expand_operands call safe_from_p for us, once...
Roger Sayle [Sat, 11 Oct 2003 21:00:51 +0000 (21:00 +0000)]
expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call safe_from_p for us, once it chooses an evaluation order.

* expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
safe_from_p for us, once it chooses an evaluation order.
(expand_expr <MULT_EXPR>): Likewise.
(expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
places the second operand in "target", swap the operands.
(do_store_flag): Let expand_operands call safe_from_p for us.

* gcc.c-torture/execute/20031011-1.c: New testcase.

From-SVN: r72376

20 years agore PR rtl-optimization/12544 (ICE with large parameters used in nested functions)
Eric Botcazou [Sat, 11 Oct 2003 20:56:24 +0000 (22:56 +0200)]
re PR rtl-optimization/12544 (ICE with large parameters used in nested functions)

PR optimization/12544
* function.c (put_var_into_stack): Don't generate ADDRESSOFs
for DECL_NONLOCAL decls.

From-SVN: r72374

20 years agoStatus.java, [...]: Removing redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 19:18:24 +0000 (19:18 +0000)]
Status.java, [...]: Removing redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* javax/transaction/Status.java,
javax/transaction/Synchronization.java,
javax/transaction/Transaction.java,
javax/transaction/TransactionManager.java,
javax/transaction/UserTransaction.java,
javax/transaction/xa/XAResource.java,
javax/transaction/xa/Xid.java:
Removing redundant modifiers.

From-SVN: r72365

20 years agoAttribute.java, [...]: Removing redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 19:15:08 +0000 (19:15 +0000)]
Attribute.java, [...]: Removing redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* javax/print/attribute/Attribute.java,
javax/print/attribute/AttributeSet.java,
javax/print/attribute/PrintRequestAttributeSet.java:
Removing redundant modifiers.

From-SVN: r72364

20 years agoConnectionEventListener.java, [...]: Removing redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 19:10:36 +0000 (19:10 +0000)]
ConnectionEventListener.java, [...]: Removing redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* javax/sql/ConnectionEventListener.java,
javax/sql/ConnectionPoolDataSource.java,
javax/sql/DataSource.java,
javax/sql/PooledConnection.java,
javax/sql/RowSet.java,
javax/sql/RowSetInternal.java,
javax/sql/RowSetListener.java,
javax/sql/RowSetMetaData.java,
javax/sql/RowSetReader.java,
javax/sql/RowSetWriter.java,
javax/sql/XAConnection.java,
javax/sql/XADataSource.java:
Removing redundant modifiers.

From-SVN: r72363

20 years agoContext.java, [...]: Removing redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 19:06:23 +0000 (19:06 +0000)]
Context.java, [...]: Removing redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* javax/naming/Context.java,
javax/naming/Name.java,
javax/naming/NameParser.java,
javax/naming/NamingEnumeration.java,
javax/naming/Referenceable.java,
javax/naming/directory/Attribute.java,
javax/naming/directory/Attributes.java,
javax/naming/directory/DirContext.java,
javax/naming/event/EventContext.java,
javax/naming/event/EventDirContext.java,
javax/naming/event/NamespaceChangeListener.java,
javax/naming/event/NamingListener.java,
javax/naming/event/ObjectChangeListener.java,
javax/naming/ldap/Control.java,
javax/naming/ldap/ExtendedRequest.java,
javax/naming/ldap/ExtendedResponse.java,
javax/naming/ldap/HasControls.java,
javax/naming/ldap/LdapContext.java,
javax/naming/ldap/UnsolicitedNotification.java,
javax/naming/ldap/UnsolicitedNotificationListener.java,
javax/naming/spi/DirObjectFactory.java,
javax/naming/spi/DirStateFactory.java,
javax/naming/spi/InitialContextFactory.java,
javax/naming/spi/InitialContextFactoryBuilder.java,
javax/naming/spi/ObjectFactory.java,
javax/naming/spi/ObjectFactoryBuilder.java,
javax/naming/spi/Resolver.java,
javax/naming/spi/StateFactory.java:
Removing redundant modifiers.

From-SVN: r72362

20 years agoexpr.c: Follow spelling conventions.
Kazu Hirata [Sat, 11 Oct 2003 19:00:49 +0000 (19:00 +0000)]
expr.c: Follow spelling conventions.

* expr.c: Follow spelling conventions.
* final.c: Likewise.
* optabs.c: Likewise.
* sched-deps.c: Likewise.
* sdbout.c: Likewise.

From-SVN: r72361

20 years ago2003-10-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Sat, 11 Oct 2003 19:00:07 +0000 (19:00 +0000)]
2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/security/Key.java,
* java/security/PrivateKey.java,
* java/security/PublicKey.java,
* java/security/acl/Acl.java,
* java/security/acl/AclEntry.java,
* java/security/acl/Group.java,
* java/security/acl/Owner.java,
* java/security/acl/Permission.java,
* java/security/cert/X509Extension.java,
* java/security/interfaces/DSAKey.java,
* java/security/interfaces/DSAKeyPairGenerator.java,
* java/security/interfaces/DSAParams.java,
* java/security/interfaces/DSAPrivateKey.java,
* java/security/interfaces/DSAPublicKey.java,
* java/security/interfaces/RSAKey.java,
* java/security/interfaces/RSAPrivateCrtKey.java,
* java/security/interfaces/RSAPrivateKey.java,
* java/security/interfaces/RSAPublicKey.java:
Removed redundant modifiers.

From-SVN: r72360

20 years agoProtocolConstants.java, DER.java: Removing redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 18:56:54 +0000 (18:56 +0000)]
ProtocolConstants.java, DER.java: Removing redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* gnu/java/rmi/server/ProtocolConstants.java,
gnu/java/security/der/DER.java:
Removing redundant modifiers.

From-SVN: r72359

20 years agoMap.java, [...]: Removed redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 18:52:31 +0000 (18:52 +0000)]
Map.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/util/Map.java,
java/util/Observer.java,
java/util/zip/Checksum.java,
java/util/zip/ZipConstants.java:
Removed redundant modifiers.

From-SVN: r72358

20 years agoAttributedCharacterIterator.java, [...]: Removed redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 18:51:14 +0000 (18:51 +0000)]
AttributedCharacterIterator.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/text/AttributedCharacterIterator.java,
java/text/CharacterIterator.java:
Removed redundant modifiers.

From-SVN: r72357

20 years agoArray.java, [...]: Removed redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 18:49:51 +0000 (18:49 +0000)]
Array.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/sql/Array.java,
java/sql/Blob.java,
java/sql/CallableStatement.java,
java/sql/Clob.java,
java/sql/Connection.java,
java/sql/DatabaseMetaData.java,
java/sql/Driver.java,
java/sql/ParameterMetaData.java,
java/sql/PreparedStatement.java,
java/sql/Ref.java,
java/sql/ResultSet.java,
java/sql/ResultSetMetaData.java,
java/sql/SQLData.java,
java/sql/SQLInput.java,
java/sql/SQLOutput.java,
java/sql/Savepoint.java,
java/sql/Statement.java,
java/sql/Struct.java:
Removed redundant modifiers.

From-SVN: r72356

20 years agoChannel.java, [...]: Removed redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 18:45:10 +0000 (18:45 +0000)]
Channel.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/nio/channels/Channel.java,
java/nio/channels/GatheringByteChannel.java,
java/nio/channels/ReadableByteChannel.java,
java/nio/channels/ScatteringByteChannel.java,
java/nio/channels/WritableByteChannel.java:
Removed redundant modifiers.

From-SVN: r72355

20 years agoActivationInstantiator.java, [...]: Removed redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 18:42:07 +0000 (18:42 +0000)]
ActivationInstantiator.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/rmi/activation/ActivationInstantiator.java,
java/rmi/activation/ActivationMonitor.java,
java/rmi/activation/ActivationSystem.java,
java/rmi/activation/Activator.java,
java/rmi/dgc/DGC.java,
java/rmi/registry/Registry.java,
java/rmi/registry/RegistryHandler.java,
java/rmi/server/LoaderHandler.java,
java/rmi/server/RMIClientSocketFactory.java,
java/rmi/server/RMIFailureHandler.java,
java/rmi/server/RMIServerSocketFactory.java,
java/rmi/server/RemoteCall.java,
java/rmi/server/RemoteRef.java,
java/rmi/server/ServerRef.java,
java/rmi/server/Skeleton.java,
java/rmi/server/Unreferenced.java:
Removed redundant modifiers.

From-SVN: r72354

20 years agoContentHandlerFactory.java, [...]: Removed redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 18:39:35 +0000 (18:39 +0000)]
ContentHandlerFactory.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/net/ContentHandlerFactory.java,
java/net/DatagramSocketImplFactory.java,
java/net/FileNameMap.java,
java/net/SocketImplFactory.java,
java/net/SocketOptions.java,
java/net/URLStreamHandlerFactory.java:
Removed redundant modifiers.

From-SVN: r72353

20 years agoExternalizable.java, [...]: Removed redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 18:38:12 +0000 (18:38 +0000)]
Externalizable.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/io/Externalizable.java,
java/io/FileFilter.java,
java/io/FilePermission.java,
java/io/ObjectInput.java,
java/io/ObjectInputValidation.java,
java/io/ObjectOutput.java,
java/io/ObjectStreamClass.java,
java/io/ObjectStreamConstants.java,
java/io/Serializable.java:
Removed redundant modifiers.

From-SVN: r72352

20 years agoRMIClassLoader.java: Identify cached classloaders by codebase and context classloader.
Ingo Proetel [Sat, 11 Oct 2003 18:30:22 +0000 (18:30 +0000)]
RMIClassLoader.java: Identify cached classloaders by codebase and context classloader.

2003-10-11  Ingo Proetel  <proetel@aicas.com>

* java/rmi/server/RMIClassLoader.java: Identify cached classloaders by
codebase and context classloader.

From-SVN: r72351

20 years agoBeanContext.java, [...]: Removed redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 18:19:44 +0000 (18:19 +0000)]
BeanContext.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/beans/beancontext/BeanContext.java,
java/beans/beancontext/BeanContextChild.java,
java/beans/beancontext/BeanContextChildComponentProxy.java,
java/beans/beancontext/BeanContextChildSupport.java,
java/beans/beancontext/BeanContextContainerProxy.java,
java/beans/beancontext/BeanContextMembershipListener.java,
java/beans/beancontext/BeanContextProxy.java,
java/beans/beancontext/BeanContextServiceProvider.java,
java/beans/beancontext/BeanContextServiceProviderBeanInfo.java,
java/beans/beancontext/BeanContextServiceRevokedListener.java,
java/beans/beancontext/BeanContextServices.java,
java/beans/beancontext/BeanContextServicesListener.java:
Removed redundant modifiers.

From-SVN: r72350

20 years agoAppletInitializer.java, [...]: Removed redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 18:18:22 +0000 (18:18 +0000)]
AppletInitializer.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/beans/AppletInitializer.java,
java/beans/BeanInfo.java,
java/beans/Customizer.java,
java/beans/DesignMode.java,
java/beans/PropertyEditor.java,
java/beans/Visibility.java:
Removed redundant modifiers.

From-SVN: r72349

20 years ago2003-10-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Sat, 11 Oct 2003 18:16:31 +0000 (18:16 +0000)]
2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/awt/print/Pageable.java,
* java/awt/print/Printable.java,
java/awt/print/PrinterGraphics.java:
Removed redundant modifiers.

From-SVN: r72348

20 years agoButtonPeer.java, [...]: Removed redundant modifiers.
Michael Koch [Sat, 11 Oct 2003 18:11:03 +0000 (18:11 +0000)]
ButtonPeer.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/awt/peer/ButtonPeer.java,
java/awt/peer/CheckboxMenuItemPeer.java,
java/awt/peer/CheckboxPeer.java,
java/awt/peer/ChoicePeer.java,
java/awt/peer/ComponentPeer.java,
java/awt/peer/ContainerPeer.java,
java/awt/peer/DialogPeer.java,
java/awt/peer/FileDialogPeer.java,
java/awt/peer/FramePeer.java,
java/awt/peer/LabelPeer.java,
java/awt/peer/ListPeer.java,
java/awt/peer/MenuBarPeer.java,
java/awt/peer/MenuComponentPeer.java,
java/awt/peer/MenuItemPeer.java,
java/awt/peer/MenuPeer.java,
java/awt/peer/PopupMenuPeer.java,
java/awt/peer/RobotPeer.java,
java/awt/peer/ScrollPanePeer.java,
java/awt/peer/ScrollbarPeer.java,
java/awt/peer/TextAreaPeer.java,
java/awt/peer/TextComponentPeer.java,
java/awt/peer/TextFieldPeer.java,
java/awt/peer/WindowPeer.java:
Removed redundant modifiers.

From-SVN: r72347

20 years agoReally remove it.
Michael Koch [Sat, 11 Oct 2003 18:05:00 +0000 (18:05 +0000)]
Really remove it.

From-SVN: r72346

20 years agoNIOSocket.java (setChannel): Initialize impl.
Michael Koch [Sat, 11 Oct 2003 18:01:35 +0000 (18:01 +0000)]
NIOSocket.java (setChannel): Initialize impl.

2003-10-11  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/NIOSocket.java (setChannel): Initialize impl.
* gnu/java/nio/ServerSocketChannelImpl.java
(serverSocket): Made it a NIOServerSocket.
(impl): Removed.
(ServerSocketChannelImpl): Initialize only serverSocket.
(initServerSocket): Removed.
(getNativeFD): Rewritten.
(implConfigureBlocking): Set socket timeout and removed comment.
(accept): Rewritten.
* gnu/java/nio/SocketChannelImpl.java
(impl): New variable.
(connected): Removed.
(SocketChannelImpl): Initialize impl too.
(getImpl): New method.
(isConnected): Rewritten.
(read): Rewritten, set position in buffer correctly.
(write): Set position in buffer correctly.
* java/net/ServerSocket.java (getImpl): New method.
* gnu/java/nio/NIOServerSocket.java,
gnu/java/nio/natNIOServerSocket.cc: New files.
* gnu/java/nio/natServerSocketChannelImpl.cc: Removed.
* Makefile.am
(ordinary_java_source_files):
Added gnu/java/nio/NIOServerSocket.java.
(nat_source_files):
Removed gnu/java/nio/natServerSocketChannelImpl.cc
and added gnu/java/nio/natNIOServerSocket.cc.
* Makefile.in: Regenerated.

From-SVN: r72345

20 years ago* g++.dg/other/first-global.C: New test.
Jan Hubicka [Sat, 11 Oct 2003 17:40:19 +0000 (19:40 +0200)]
* g++.dg/other/first-global.C: New test.

From-SVN: r72344

20 years agovarasm.c (notice_global_symbol): Fix handling of variables; avoid re-computing of...
Jan Hubicka [Sat, 11 Oct 2003 17:38:29 +0000 (19:38 +0200)]
varasm.c (notice_global_symbol): Fix handling of variables; avoid re-computing of variable.

* varasm.c (notice_global_symbol):  Fix handling of variables; avoid
re-computing of variable.

From-SVN: r72343

20 years agoOh man, forgot the ChangeLog entry for another time.
Michael Koch [Sat, 11 Oct 2003 17:23:15 +0000 (17:23 +0000)]
Oh man, forgot the ChangeLog entry for another time.

From-SVN: r72342

20 years ago2003-10-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Sat, 11 Oct 2003 17:19:46 +0000 (17:19 +0000)]
2003-10-11  Michael Koch  <konqueror@gmx.de>

* java/awt/ActiveEvent.java
* java/awt/datatransfer/ClipboardOwner.java
* java/awt/datatransfer/FlavorMap.java
* java/awt/datatransfer/Transferable.java
* java/awt/dnd/Autoscroll.java
* java/awt/dnd/peer/DragSourceContextPeer.java
* java/awt/dnd/peer/DropTargetContextPeer.java
* java/awt/dnd/peer/DropTargetPeer.java
* java/awt/font/MultipleMaster.java
* java/awt/font/OpenType.java
* java/awt/im/spi/InputMethodDescriptor.java
* java/awt/image/ImageObserver.java
* java/awt/image/ImageConsumer.java
* java/awt/image/ImageProducer.java
* java/awt/image/RGBImageFilter.java
* java/awt/image/RasterOp.java
* java/awt/image/renderable/RenderableImage.java

From-SVN: r72341

20 years agoForgot to write ChangeLog entry.
Michael Koch [Sat, 11 Oct 2003 17:11:27 +0000 (17:11 +0000)]
Forgot to write ChangeLog entry.

From-SVN: r72340

20 years ago2003-10-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Sat, 11 Oct 2003 17:10:03 +0000 (17:10 +0000)]
2003-10-11  Michael Koch  <konqueror@gmx.de>

* gnu/awt/j2d/DirectRasterGraphics.java
* gnu/java/awt/EmbeddedWindowSupport.java

From-SVN: r72339

20 years agoalpha.c (alpha_return_in_memory): Rename from return_in_memory, make static, change...
Richard Henderson [Sat, 11 Oct 2003 16:54:17 +0000 (09:54 -0700)]
alpha.c (alpha_return_in_memory): Rename from return_in_memory, make static, change signature to match target hook.

        * config/alpha/alpha.c (alpha_return_in_memory): Rename from
        return_in_memory, make static, change signature to match target hook.
        (alpha_setup_incoming_varargs): Make static, change signature to
        match target hook, add code for vms and unicos.
        (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
        TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
        TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
        TARGET_STRICT_ARGUMENT_NAMING,
        TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
        * config/alpha/alpha-protos.h: Update.
        * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
        PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
        SETUP_INCOMING_VARARGS): Remove.
        * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
        * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.

From-SVN: r72338

20 years ago* config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
Ian Lance Taylor [Sat, 11 Oct 2003 15:27:48 +0000 (15:27 +0000)]
* config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.

From-SVN: r72337

20 years agolb1sf68.asm: Follow spelling conventions.
Kazu Hirata [Sat, 11 Oct 2003 14:22:54 +0000 (14:22 +0000)]
lb1sf68.asm: Follow spelling conventions.

* config/m68k/lb1sf68.asm: Follow spelling conventions.
* config/m68k/m68k.c: Likewise.
* config/m68k/m68k.h: Likewise.
* config/m68k/m68k.md: Likewise.

From-SVN: r72336

20 years agobuiltins.c (expand_builtin_memcpy): Optimize case when the two pointer arguments...
Roger Sayle [Sat, 11 Oct 2003 14:09:44 +0000 (14:09 +0000)]
builtins.c (expand_builtin_memcpy): Optimize case when the two pointer arguments are the equal...

* builtins.c (expand_builtin_memcpy): Optimize case when the two
pointer arguments are the equal, non-volatile and side-effect free.
(expand_builtin_mempcpy): Likewise.
(expand_builtin_memmove): Likewise.
(expand_builtin_strcpy): Likewise.
(expand_builtin_memcmp): Likewise.
(expand_builtin_strcmp): Likewise.
(expand_builtin_strncmp): Likewise.

* gcc.c-torture/execute/string-opt-18.c: New testcase.

From-SVN: r72335

20 years agocombine.c (apply_distributive_law): Enable "distributive" floating point optimization...
Roger Sayle [Sat, 11 Oct 2003 13:53:39 +0000 (13:53 +0000)]
combine.c (apply_distributive_law): Enable "distributive" floating point optimizations with -funsafe-math-optimizations.

* combine.c (apply_distributive_law): Enable "distributive" floating
point optimizations with -funsafe-math-optimizations.

From-SVN: r72334

20 years ago+2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
Andrew Pinski [Sat, 11 Oct 2003 07:22:22 +0000 (07:22 +0000)]
+2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
+
+       * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.

From-SVN: r72333

20 years agom68k-protos.h: Remove the prototype for finalize_pic.
Kazu Hirata [Sat, 11 Oct 2003 06:35:53 +0000 (06:35 +0000)]
m68k-protos.h: Remove the prototype for finalize_pic.

* config/m68k/m68k-protos.h: Remove the prototype for
finalize_pic.

From-SVN: r72332

20 years ago* config/m68k/m68k.c: Fix comment typos.
Kazu Hirata [Sat, 11 Oct 2003 06:27:35 +0000 (06:27 +0000)]
* config/m68k/m68k.c: Fix comment typos.

From-SVN: r72331

20 years agom68k-protos.h (use_return_insn): Change return type from int to bool.
Bernardo Innocenti [Sat, 11 Oct 2003 05:02:29 +0000 (07:02 +0200)]
m68k-protos.h (use_return_insn): Change return type from int to bool.

* config/m68k/m68k-protos.h (use_return_insn): Change return type from
int to bool.
* config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
(current_frame): New global var.
(m68k_compute_frame_layout): Cache computations in current_frame.
(m68k_initial_elimination_offset): Use values from current_frame
instead of recomputing them.
(use_return_insn): Likewise.
(m68k_output_function_prologue): Likewise.
(m68k_output_function_epilogue): Likewise.
* config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
inside the block for __pic__.

From-SVN: r72330

20 years agom68k.c (m68k_frame): Move before protos referencing it.
Peter Barada [Sat, 11 Oct 2003 04:53:13 +0000 (04:53 +0000)]
m68k.c (m68k_frame): Move before protos referencing it.

* config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
(m68k_save_reg): Add boolean parameter `interrupt_handler'.
(m68k_interrupt_function_p): New function.
(m68k_handle_fndecl_attribute): Ditto.
(m68k_compute_frame_layout): Ditto.
(m68k_attribute_table): Define back-end specific attributes.
(m68k_output_function_epilogue): Emit RTE instruction for interrupt
functions.

Co-Authored-By: Bernardo Innocenti <bernie@develer.com>
From-SVN: r72329

20 years agot-uclinux: New target Makefile fragment.
Bernardo Innocenti [Sat, 11 Oct 2003 04:23:20 +0000 (06:23 +0200)]
t-uclinux: New target Makefile fragment.

* config/m68k/t-uclinux: New target Makefile fragment.
* config/m68k/uclinux.h: New target macro file.
* config.gcc (m68k-*-uclinux): New target definition.

From-SVN: r72328

20 years agobuiltins.c (builtin_mathfn_code): Generalize to check whether the call is to any...
Roger Sayle [Sat, 11 Oct 2003 03:53:05 +0000 (03:53 +0000)]
builtins.c (builtin_mathfn_code): Generalize to check whether the call is to any built-in function by comparing...

* builtins.c (builtin_mathfn_code): Generalize to check whether
the call is to any built-in function by comparing the call's
argument list against the builtin decl's function type.

From-SVN: r72327

20 years agocse.c (constant_pool_entries_regcost): New global variable to hold the register cost...
Roger Sayle [Sat, 11 Oct 2003 03:49:54 +0000 (03:49 +0000)]
cse.c (constant_pool_entries_regcost): New global variable to hold the register cost component of...

* cse.c (constant_pool_entries_regcost): New global variable to
hold the register cost component of constant_pool_entries_cost.
(fold_rtx): Calculate constant_pool_entries_regcost at the same
time as constant_pool_entries_cost.
(cse_insn): Set both src_folded_cost and src_folded_regcost from
constant_pool_entries_cost and constant_pool_entries_regcost.
(cse_main): Initialize constant_pool_entries_regcost to zero.

* optabs.c (expand_unop): Attach a REG_EQUAL note describing
the semantics of the sequence of bit operations used to negate
a floating-point value.
(expand_abs_nojump): Likewise attach a REG_EQUAL note describing
the semantics of the bit operations used to abs a floating point
value.

From-SVN: r72326

20 years agocrossconfig.m4 (*-uclinux*): New target.
Bernardo Innocenti [Sat, 11 Oct 2003 03:45:07 +0000 (05:45 +0200)]
crossconfig.m4 (*-uclinux*): New target.

* crossconfig.m4 (*-uclinux*): New target.
* configure: Regenerate.

From-SVN: r72325

20 years agolb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__ support.
Bernardo Innocenti [Sat, 11 Oct 2003 03:06:45 +0000 (05:06 +0200)]
lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__ support.

* config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
support.
* config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
-fpic, -fPIC, -msep-data and -mid-shared-library.
* config/m68k/m68k.c (m68k_library_id_string): New global variable.
(override_options): Add -msep-data and -mshared-library-id support.
(m68k_output_function_prologue): Generate code to load A5 for
TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
(m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
(m68k_output_pic_call): New function.
* gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
(TARGET_ID_SHARED_LIBRARY): Ditto.
(TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
* gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
(call_value): Likewise.

From-SVN: r72324

20 years agom68k.c (m68k_frame): Move before protos referencing it.
Bernardo Innocenti [Sat, 11 Oct 2003 03:01:56 +0000 (05:01 +0200)]
m68k.c (m68k_frame): Move before protos referencing it.

* config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
(m68k_save_reg): Add boolean parameter `interrupt_handler'.
(m68k_interrupt_function_p): New function.
(m68k_handle_fndecl_attribute): Ditto.
(m68k_compute_frame_layout): Ditto.
(m68k_attribute_table): Define back-end specific attributes.
(m68k_output_function_epilogue): Emit RTE instruction for interrupt
functions.

From-SVN: r72323

20 years agoconfig.guess: Update to 2003-10-07 version.
Bernardo Innocenti [Sat, 11 Oct 2003 02:57:01 +0000 (04:57 +0200)]
config.guess: Update to 2003-10-07 version.

* config.guess: Update to 2003-10-07 version.
* config.sub: Update to 2003-10-07 version.

From-SVN: r72322

20 years agogengenrtl.c (find_formats, genheader): Make i an unsigned int, remove cast of NUM_RTX...
Zack Weinberg [Sat, 11 Oct 2003 00:18:02 +0000 (00:18 +0000)]
gengenrtl.c (find_formats, genheader): Make i an unsigned int, remove cast of NUM_RTX_CODE.

* gengenrtl.c (find_formats, genheader): Make i an unsigned
int, remove cast of NUM_RTX_CODE.
* machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
entire file.  Remove the #ifs on GET_MODE_MASK etc and
GET_MODE_WIDER_MODE etc.

From-SVN: r72321

20 years agoDaily bump.
GCC Administrator [Sat, 11 Oct 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72319