1. 11 Oct, 2003 10 commits
    • m68k.c (m68k_frame): Move before protos referencing it. · 48ed72a4
      	* 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
      Peter Barada committed
    • t-uclinux: New target Makefile fragment. · ba591f5a
      	* 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
      Bernardo Innocenti committed
    • builtins.c (builtin_mathfn_code): Generalize to check whether the call is to any… · feda1845
      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
      Roger Sayle committed
    • cse.c (constant_pool_entries_regcost): New global variable to hold the register… · dd0ba281
      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
      Roger Sayle committed
    • crossconfig.m4 (*-uclinux*): New target. · 796d7a86
      	* crossconfig.m4 (*-uclinux*): New target.
      	* configure: Regenerate.
      
      From-SVN: r72325
      Bernardo Innocenti committed
    • lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__ support. · a2ef3db7
      	* 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
      Bernardo Innocenti committed
    • m68k.c (m68k_frame): Move before protos referencing it. · 4f5acf56
      	* 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
      Bernardo Innocenti committed
    • config.guess: Update to 2003-10-07 version. · 26db814a
      	* config.guess: Update to 2003-10-07 version.
      	* config.sub: Update to 2003-10-07 version.
      
      From-SVN: r72322
      Bernardo Innocenti committed
    • gengenrtl.c (find_formats, genheader): Make i an unsigned int, remove cast of NUM_RTX_CODE. · 3ef996b0
      	* 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
      Zack Weinberg committed
    • Daily bump. · 129c1f79
      From-SVN: r72319
      GCC Administrator committed
  2. 10 Oct, 2003 16 commits
    • ia64.c (ia64_vms_init_libfuncs): New function. · 738e7b39
      	* config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
      	(ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
      	(ia64_initialize_trampoline): If not using GAS, declare trampoline
      	as global.
      	* config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
      	(ASM_OUTPUT_DEBUG_LABEL): Likewise.
      
      From-SVN: r72316
      Richard Kenner committed
    • lcm.c (optimize_mode_switching): Change NORMAL_MODE to MODE_ENTRY and MODE_EXIT. · 73774972
      2003-10-10  Eric Christopher  <echristo@redhat.com>
      
              * lcm.c (optimize_mode_switching): Change NORMAL_MODE
              to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
              that set mode.
              * config/sh/sh.h (MODE_ENTRY): New macro.
              (MODE_EXIT): Ditto.
              (MODE_AFTER): Ditto.
              * config/sh/sh.md: Change for MODE_AFTER. Add
              fp_set attribute.
              * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
      
      From-SVN: r72315
      Eric Christopher committed
    • genmodes.c, [...]: New files. · 8d61e55e
      	* genmodes.c, mode-classes.def: New files.
      	* machmode.def: Rewritten to genmodes.c interface.
      	* Makefile.in (extra_modes_file): New substitution variable.
      	(MACHMODE_H): No longer includes machmode.def or
      	@extra_modes_file@; instead, mode-classes.def and insn-modes.h.
      	(BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
      	(OBJS-common): Add insn-modes.o.
      	(STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
      	genmodes$(build_exeext).
      	(insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
      	genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
      	(s-genrtl): Don't depend on $(RTL_BASE_H).
      	(gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
      	or $(RTL_BASE_H); just rtl.def.
      	* gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
      	real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
      	substitute definition of NUM_RTX_CODE.  Add casts to avoid
      	warnings.
      	* machmode.h: Include insn-modes.h, not machmode.def.  Include
      	mode-classes.def to define enum mode_class.  Tweak definitions
      	of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
      	GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
      	(inner_mode_array): Renamed mode_inner.
      	(mode_base_align): New.
      	* rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
      	mode_unit_size, mode_wider_mode, mode_mask_array,
      	inner_mode_array, class_narrowest_mode): Delete definitions.
      	* stor-layout.c (get_mode_alignment): Use mode_base_align.
      	* real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
      	and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
      
      	* config/ip2k/ip2k.h, config/iq2000/iq2000.h:
      	No need to define BITS_PER_UNIT.
      
      
      	* stor-layout.c (compute_record_mode): Don't force BLKmode if
      	field is zero-length BLKmode.
      	* expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
      	zero-size references.
      
      	* combine.c (distribute_links): Properly test for REG being set.
      
      From-SVN: r72314
      Zack Weinberg committed
    • genmodes.c, [...]: New files. · 0974c7d7
      	* genmodes.c, mode-classes.def: New files.
      	* machmode.def: Rewritten to genmodes.c interface.
      	* Makefile.in (extra_modes_file): New substitution variable.
      	(MACHMODE_H): No longer includes machmode.def or
      	@extra_modes_file@; instead, mode-classes.def and insn-modes.h.
      	(BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
      	(OBJS-common): Add insn-modes.o.
      	(STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
      	genmodes$(build_exeext).
      	(insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
      	genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
      	(s-genrtl): Don't depend on $(RTL_BASE_H).
      	(gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
      	or $(RTL_BASE_H); just rtl.def.
      	* gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
      	real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
      	substitute definition of NUM_RTX_CODE.  Add casts to avoid
      	warnings.
      	* machmode.h: Include insn-modes.h, not machmode.def.  Include
      	mode-classes.def to define enum mode_class.  Tweak definitions
      	of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
      	GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
      	(inner_mode_array): Renamed mode_inner.
      	(mode_base_align): New.
      	* rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
      	mode_unit_size, mode_wider_mode, mode_mask_array,
      	inner_mode_array, class_narrowest_mode): Delete definitions.
      	* stor-layout.c (get_mode_alignment): Use mode_base_align.
      	* real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
      	and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
      
      	* config/ip2k/ip2k.h, config/iq2000/iq2000.h:
      	No need to define BITS_PER_UNIT.
      
      From-SVN: r72313
      Zack Weinberg committed
    • * gcc.c-torture/compile/20031010-1.c: New test. · 51e73d57
      From-SVN: r72312
      Ian Lance Taylor committed
    • stor-layout.c (compute_record_mode): Don't force BLKmode if field is zero-length BLKmode. · 7a06d606
      	* stor-layout.c (compute_record_mode): Don't force BLKmode if
      	field is zero-length BLKmode.
      	* expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
      	zero-size references.
      
      From-SVN: r72311
      Richard Kenner committed
    • alpha.c (alpha_expand_block_mode): Don't use gen_lowpart and company except for REG. · 0dd62597
      	* config/alpha/alpha.c (alpha_expand_block_mode): Don't use
      	gen_lowpart and company except for REG.
      
      From-SVN: r72309
      Richard Kenner committed
    • va-arg-24.c: Correct, and rename to... · d0fd1347
      	* gcc.c-torture/execute/va-arg-24.c: Correct, and rename to...
      	* gcc.c-torture/execute/va-arg-25.c: ... here.
      
      From-SVN: r72307
      Geoffrey Keating committed
    • * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld. · 0541c6d9
      From-SVN: r72305
      John David Anglin committed
    • config.gcc (mips*-*-netbsd*): Remove content-free line. · af6625cb
      	* config.gcc (mips*-*-netbsd*): Remove content-free line.
      
      Also fixed old-style ChangeLog date to be new-style.
      
      From-SVN: r72304
      Nathanael Nerode committed
    • 2003-10-10 Paolo Carlini <pcarlini@unitus.it> · 6b61bca4
      	* include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
      	Avoid unnecessarily calling __builtin_alloca and dealing
      	explicitly with width() smaller than zero.
      	(operator<<(basic_ostream&, char), operator<<(basic_ostream&,
      	const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
      	const char*), operator<<(basic_ostream<char, _Traits>&,
      	const char*), operator<<(basic_ostream, const basic_string&)):
      	Likewise.
      
      From-SVN: r72302
      Paolo Carlini committed
    • Fri Oct 10 18:54:39 CEST 2003 Herman A.J. ten Brugge <hermantenbrugge@home.nl> · fc45d351
      	* gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
      	gcov_position_t and gcov_type.
      
      From-SVN: r72301
      Herman A.J. ten Brugge committed
    • configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases. · 9ff13962
      	* configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
      	* configure: Regenerate.
      
      From-SVN: r72294
      Kaz Kojima committed
    • Daily bump. · 295aacfc
      From-SVN: r72291
      GCC Administrator committed
  3. 09 Oct, 2003 14 commits
    • h8300.md (define_asm_attributes): Specify the length of an asm insn more precisely. · 5e46c560
      	* config/h8300/h8300.md (define_asm_attributes): Specify
      	the length of an asm insn more precisely.
      
      From-SVN: r72289
      Kazu Hirata committed
    • * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define. · 1e2eb6e8
      From-SVN: r72288
      Rainer Orth committed
    • linker-map.gnu: Make more *_type_info bits visible. · 5aaa2108
      
      2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* config/linker-map.gnu: Make more *_type_info bits visible.
      	Move new/delete bits back into GLIBCXX space.
      
      	* include/bits/locale_classes.h: Move _M_id out of line, so that
      	locale::id::_S_highwater can be removed from the export list.
      	* src/locale.cc (locale::id::_M_id): Define.
      
      From-SVN: r72287
      Benjamin Kosnik committed
    • xtensa.c (xtensa_dbx_register_number): Change first FP register number to 48 and… · b0c6e48f
      xtensa.c (xtensa_dbx_register_number): Change first FP register number to 48 and MAC16 accumulator to 0x210.
      
      	* config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
      	FP register number to 48 and MAC16 accumulator to 0x210.
      
      From-SVN: r72283
      Bob Wilson committed
    • libstdc++.exp: Set LD_LIBRARY_PATH_64 for SPARC64. · 64833be0
      2003-10-09  Andreas Tobler  <a.tobler@schweiz.ch>
      
      	* testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
      	SPARC64.
      
      From-SVN: r72282
      Andreas Tobler committed
    • re PR libstdc++/11844 (Incorrect values of ctype_base::alnum and ctype_base::graph) · 2f800bcc
      2003-10-09  Paolo Carlini  <pcarlini@unitus.it>
      
      	PR libstdc++/11844
      	* config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
      	to conform to the requirements of 22.2.1.
      	* config/os/bsd/freebsd/ctype_base.h: Likewise.
      	* config/os/djgpp/ctype_base.h: Likewise.
      	* config/os/generic/ctype_base.h: Likewise.
      	* config/os/gnu-linux/ctype_base.h: Likewise.
      	* config/os/hpux/ctype_base.h: Likewise.
      	* config/os/irix/irix6.5/ctype_base.h: Likewise.
      	* config/os/solaris/solaris2.6/ctype_base.h: Likewise.
      	* config/os/solaris/solaris2.7/ctype_base.h: Likewise.
      	* testsuite/22_locale/ctype/11844.cc: New.
      
      	* config/locale/generic/ctype_members.cc (do_is):
      	Generically, use a bitmasksize of 15 (instead of 10), since
      	we don't know the numerical encoding of the various categories
      	in the underlying /usr/include/ctype.h.
      
      From-SVN: r72281
      Paolo Carlini committed
    • * g++.dg/ext/attrib8.C: Only run it on x86 targets. · b18ff0cd
      From-SVN: r72280
      Mark Mitchell committed
    • SelectorImpl.java (register): Use ServerSocketChannelSelectionKey for server socket channels... · 137f5e84
      2003-10-09  Michael Koch  <konqueror@gmx.de>
      
      	* gnu/java/nio/SelectorImpl.java (register):
      	Use ServerSocketChannelSelectionKey for server socket channels,
      	removed unneeded comments.
      	* gnu/java/nio/ServerSocketChannelImpl.java
      	(ServerSocketChannelImpl): Made class public final.
      	(impl): New member variable.
      	(ServerSocketChannelImpl): Initialize member variables correctly.
      	(initServerSocket): New method.
      	(getNativeFD): Likewise.
      	* gnu/java/nio/ServerSocketChannelSelectionKey.java,
      	gnu/java/nio/natServerSocketChannelImpl.cc: New files.
      	* Makefile.am (ordinary_java_source_files):
      	Added gnu/java/nio/ServerSocketChannelSelectionKey.java.
      	(nat_source_files): Added gnu/java/nio/natServerSocketChannelImpl.cc.
      	* Makefile.in: Regenrated.
      
      From-SVN: r72277
      Michael Koch committed
    • 2003-10-09 Michael Koch <konqueror@gmx.de> · 4e3cb200
      	* java/nio/channels/spi/AbstractSelectableChannel.java
      	(registered): Made private.
      	(blocking): Likewise.
      	(LOCK): Likewise.
      	(provider): Likewise.
      	(keys): Made it a private LinkedList.
      	(AbstractSelectableChannel): Initialize keys.
      	(isRegistered): New implementation.
      	(locate): Rewritten.
      	(register): Rewritten.
      	* java/nio/channels/spi/AbstractSelectionKey.java
      	(ok): Removed.
      	(cancelled): New member variable.
      	(cancel): Rewritten.
      	(isValid): Rewritten.
      	* java/nio/channels/spi/AbstractSelector.java:
      	Some methods moved.
      	(closed): Make private.
      	(provider): Likewise.
      	(cancelledKeys): New member variable.
      	(AbstractSelector): Initialize cancelledKeys.
      	(cancelKey): New method.
      
      From-SVN: r72275
      Michael Koch committed
    • [multiple changes] · 93d04686
      
      2003-10-09  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* src/string-inst.cc: Prune.
      	* testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
      	* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
      
      2003-10-09  Petur Runolfsson  <peturr02@ru.is>
      
      	* src/io-inst.cc: Don't include iostream.
      	* include/bits/ios_base.h (ios_base::failure): Use string.
      	* src/Makefile.am: Add ios_failure.cc.
      	* src/Makefile.in: Regenerate.
      	* src/ios.cc: Move ios_base::failure definitions to...
      	* src/ios_failure.cc: ...here. New.
      
      From-SVN: r72272
      Benjamin Kosnik committed
    • ClassLoader.java (setSigners): Implemented. · b379e7b0
      	* java/lang/ClassLoader.java (setSigners): Implemented.
      	* boehm.cc (_Jv_MarkObj): Mark `signers' field.
      	* java/lang/natClassLoader.cc (_Jv_InitNewClassFields):
      	Initialize new fields.
      	* java/lang/Class.java (getSigners): Now native.
      	(setSigners): Declare.
      	* java/lang/natClass.cc (getSigners): New method.
      	(getSigners): Likewise.
      	* java/lang/Class.h (Class::signers): New field.
      	(Class::setSigners): New method.
      
      From-SVN: r72271
      Tom Tromey committed
    • decl.c (java_init_decl_processing): Declare signers field. · ae125b17
      	* decl.c (java_init_decl_processing): Declare signers field.
      	* class.c (make_class_data): Set signers field.
      
      From-SVN: r72270
      Tom Tromey committed
    • config.gcc: Remove redundant thread_file setting clauses for various *-*-linux* targets. · a9807ca2
      	* config.gcc: Remove redundant thread_file setting clauses for
      	various *-*-linux* targets.
      
      From-SVN: r72269
      Nathanael Nerode committed
    • re PR libstdc++/9874 (filebuf::seekpos fails if codecvt::encoding() <= 0) · 1a139c59
      
      2003-10-09  Petur Runolfsson  <peturr02@ru.is>
      
              PR libstdc++/9874
              * include/bits/fstream.tcc (basic_filebuf::seekoff):
              Move code needed for both seekoff and seekpos...
              (basic_filebuf::_M_seek): ...here. New function.
              (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
              * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
              * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
      
              * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
      
      From-SVN: r72268
      Petur Runolfsson committed