1. 23 Oct, 2003 12 commits
    • locale_facets.tcc (money_get<>::do_get(..., string_type&)): Use… · 60aa9fc3
      locale_facets.tcc (money_get<>::do_get(..., string_type&)): Use find_first_not_of to strip leading zeros...
      
      2003-10-23  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.tcc (money_get<>::do_get(...,
      	string_type&)): Use find_first_not_of to strip leading
      	zeros; if __tmp_units == "0" never prefix it with '-';
      	always fail if __tmp_units is empty.
      	* testsuite/22_locale/money_get/get/char/10.cc: New.
      	* testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
      
      From-SVN: r72860
      Paolo Carlini committed
    • rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not TARGET_POWREPC64. · 0e67400a
      	* config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
      	TARGET_POWREPC64.
      	(UNITS_PER_GPR_WORD): Define.
      	(HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
      	(HARD_REGNO_CALL_PART_CLOBBERED): Define.
      	(HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
      	(CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
      	* config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
      	DFmode and DImode in 32-bit ABI / 64-bit computation mode.
      	(rs6000_emit_prologue): Select reg_mode and reg_size using
      	TARGET_32BIT, not TARGET_POWERPC64.
      	(rs6000_function_value): Generate PARALLEL for DImode in 32-bit
      	ABI / 64-bit computation mode
      
      Co-Authored-By: David Edelsohn <edelsohn@gnu.org>
      
      From-SVN: r72851
      Fariborz Jahanian committed
    • toplev.c (output_file_directive): Allow for null input_name. · 00503146
      2003-10-22  Andrew Haley  <aph@redhat.com>
      
      	* toplev.c (output_file_directive): Allow for null input_name.
      
      From-SVN: r72847
      Andrew Haley committed
    • re PR ada/11978 (ada compiler crashes in a-tags.adb) · 9d7d51be
      	PR ada/11978:
      	* exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
      	External_Tag attribute definition clauses.
      
      	PR ada/7613:
      	* exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
      	child unit, generate a fully qualified name to avoid spurious errors
      	when the context contains renamings of different child units with
      	the same simple name.
      
      	* exp_dbug.ads: Add documentation on name qualification for renamings
      	of child units.
      
      	* g-regpat.ads, g-regpat.adb: Minor reformatting
      
      	* Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
      
      	* trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
      	Machine call.
      
      	* urealp.h: (Machine): Update to proper definition.
      
      From-SVN: r72843
      Arnaud Charlet committed
    • * init.c, adaint.c: Minor reformatting. · 6d244bbe
      From-SVN: r72841
      Arnaud Charlet committed
    • adaint.c (w32_epoch_offset): Define static const at file level. · 8f4eb34b
      	* ada/adaint.c (w32_epoch_offset): Define static const at file
      	level.
      	(win32_filetime): Replace offset with w32_epoch_offset. Use NULL
      	rather than t_create, t_access in call to GetFileTime. Use union
      	to convert between FILETIME and  unsigned long long.
      	(__gnat_file_time_name): Test for invalid file handle.
      	(__gnat_set_filetime_name): Support win32 targets using
      	w32api SetFileTime.
      
      From-SVN: r72840
      Danny Smith committed
    • i386.c (classify_argument): Handle SET_TYPE. · 448ec26c
      2003-10-22  Waldek Hebisch <hebisch@math.uni.wroc.pl>
      
      	* config/i386/i386.c (classify_argument): Handle SET_TYPE.
      
      [[Split portion of a mixed commit.]]
      
      From-SVN: r72838.2
      Waldek Hebisch committed
    • re PR c++/12726 (ICE (segfault) on trivial code) · 4b5aa881
              PR c++/12726
              * tree.c (build_target_expr_with_type): Don't call force_rvalue
              for CONSTRUCTORs.
      
      From-SVN: r72837
      Jason Merrill committed
    • configure.in: In --enable-generated-files-in-srcdir option handling, fix default case handling. · 941ba69d
      2003-10-22  Chris Demetriou  <cgd@broadcom.com>
      
              * configure.in: In --enable-generated-files-in-srcdir option
              handling, fix default case handling.
              * configure: Regenerate.
      
      From-SVN: r72836
      Chris Demetriou committed
    • ctype_noninline.h: Adjust ctor to match 2003-10-21 change. · 861f9573
      2003-10-23  Phil Edwards  <phil@codesourcery.com>
      
      	* config/os/vxworks/ctype_noninline.h:  Adjust ctor to match
      	2003-10-21 change.
      
      From-SVN: r72835
      Phil Edwards committed
    • config.gcc: Update *-*-vxworks* generic hook and comments. · 55047c9d
      2003-10-22  Phil Edwards  <phil@codesourcery.com>
      
      	* config.gcc:  Update *-*-vxworks* generic hook and comments.
      	(arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
      	mips-wrs-windiss, sh-wrs-vxworks):  New stanzas.
      	* genmultilib:  Allow the MULTILIB_OSDIRNAMES to be mapped directly.
      	* config/svr4.h (SWITCH_TAKES_ARG):  Undefine it before redefining it.
      	* config/windiss.h:  New file.
      	* config/arm/t-vxworks:  New file.
      	* config/arm/vxworks.h:  New file.
      	* config/i386/t-vxworks:  New file.
      	* config/i386/vxworks.h:  New file.
      	* config/mips/t-vxworks:  New file.
      	* config/mips/vxworks.h:  New file.
      	* config/mips/windiss.h:  New file.
      	* config/sh/t-vxworks:  New file.
      	* config/sh/vxworks.h:  New file.
      
      From-SVN: r72834
      Phil Edwards committed
    • Daily bump. · 8f9ba405
      From-SVN: r72831
      GCC Administrator committed
  2. 22 Oct, 2003 28 commits
    • call.c: Fix comment formatting. · 04c06002
      	* call.c: Fix comment formatting.
      	* class.c: Likewise.
      	* cxx-pretty-print.c: Likewise.
      	* init.c: Likewise.
      	* parser.c: Likewise.
      	* pt.c: Likewise.
      	* semantics.c: Likewise.
      	* tree.c: Likewise.
      	* typeck.c: Likewise.
      	* typeck2.c: Likewise.
      
      From-SVN: r72828
      Kazu Hirata committed
    • h8300.c (h8300_output_function_epilogue): Remove. · 3cfa3702
      	* config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
      	(h8300_saveall_function_p): New.
      	(h8300_insert_attributes): Insert the saveall attribute if
      	#pragma saveall is specified.
      	(h8300_attribute_table): Add saveall.
      	(TARGET_ASM_FUNCTION_EPILOGUE): Remove.
      	* doc/extend.texi: Mention the saveall attribute.
      
      From-SVN: r72827
      Kazu Hirata committed
    • obstack.h: Merge the following change from gnulib... · dc70e81d
      include:
      	* obstack.h: Merge the following change from gnulib:
      	2003-10-21  Paul Eggert  <eggert@twinsun.com>
      	* obstack.h (obstack_1grow_fast): Properly parenthesize arg.
      	(obstack_ptr_grow_fast, obstack_int_grow_fast):
      	Don't use lvalue casts, as GCC plans to remove support for them
      	in GCC 3.5.  Reported by Joseph S. Myers.  This bug
      	was also present in the non-GCC version, indicating that this
      	code had always been buggy and had never been widely used.
      	(obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
      	Use the fast variant of each macro, rather than copying the
      	definiens of the fast variant; that way, we'll be more likely to
      	catch future bugs in the fast variants.
      
      gcc:
      	* c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
      	deprecation of casts as lvalues.
      	* fixinc/inclhack.def (obstack_lvalue_cast): New fix.
      	* fixinc/fixincl.x: Regenerate.
      	* fixinc/tests/base/obstack.h: New test.
      
      gcc/testsuite:
      	* gcc.dg/cast-lvalue-1.c: New test.
      
      From-SVN: r72826
      Joseph Myers committed
    • locale_facets.tcc (__int_to_char): Remove the const int parameter. · 3c21d6e0
      2003-10-22  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.tcc (__int_to_char): Remove
      	the const int parameter.
      	(_M_insert_int): Update caller.
      	* src/locale-inst.cc (__int_to_char): Update instantiations.
      
      From-SVN: r72825
      Paolo Carlini committed
    • sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW. · 25412599
      	* sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
      
      	* ctrl_c.c (__gnat_int_handler): Remove declaration.
      
      	* decl.c (creat_concat_name):  Const-ify prefix.
      
      	* adaint.c: Include ctype.h if __MINGW32__.
      	(__gnat_readlink): Mark arguments as possibly unused.
      	(__gnat_symlink): Likewise.
      	(__gnat_is_symbolic_link): Likewise.
      	(__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
      	declaration
      	(__gnat_file_time_name): Don't declare struct stat statbuf when
      	not needed.
      	(__gnat_is_absolute_path): Add parenthesis around condition of
      	'if' statement to avoid warning.
      	(__gnat_plist_init): Specify void as parameter.
      	(plist_enter): Likewise.
      	(plist_leave): Likewise.
      	(remove_handle): Make static. Initialize prev.
      
      From-SVN: r72824
      Danny Smith committed
    • re PR target/12676 (m68k.c: LP64 bug) · 218d5a87
      	PR target/12676
      	* config/m68k/m68k.c (output_addsi3): Fix range check to work on
      	LP64 platforms.
      
      From-SVN: r72823
      Andreas Schwab committed
    • dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check presence of DW_AT_inline. · ae0f3477
      
      	* dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check presence of DW_AT_inline.
      	(gen_subprogram_die): Likewise; do not abort instead of emitting DW_AT_not_inline
      
      From-SVN: r72821
      Jan Hubicka committed
    • re PR libgcj/12416 (java.lang.Class.getFields returns duplicate entries.) · eab09cdf
      	PR libgcj/12416:
      	* java/lang/Class.h: Updated.
      	* java/lang/natClass.cc (_getFields): Removed.
      	(getFields): Likewise.
      	(getDeclaredFields): Added `public_only' parameter.
      	* java/lang/Class.java (getFields): Now implemented in java; from
      	Classpath.
      	(getDeclaredFields): Likewise.
      	(getDeclaredFields(boolean)): Declare.
      	(_getFields): Removed.
      	(internalGetFields): New method, from Classpath.
      
      From-SVN: r72818
      Tom Tromey committed
    • re PR libgcj/12416 (java.lang.Class.getFields returns duplicate entries.) · ab3ec830
      	PR libgcj/12416:
      	* libjava.lang/PR12416.out: New file.
      	* libjava.lang/PR12416.java: New file.
      
      From-SVN: r72817
      Tom Tromey committed
    • cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when global info is not ready. · 190f08bd
      
      
      	* cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
      	global info is not ready.
      
      From-SVN: r72816
      Jan Hubicka committed
    • locale_facets.h: Correct byname facets for "C" locale. · bf5fe473
      
      2003-10-22  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/bits/locale_facets.h: Correct byname facets for "C"
      	locale.
      	* config/locale/generic/ctype_members.cc: Same.
      	* config/locale/generic/messages_members.h: Same.
      	* config/locale/gnu/ctype_members.cc: Same.
      	* config/locale/gnu/messages_members.h: Same.
      	* include/bits/codecvt.h: Same.
      	* src/ctype.cc: Same.
      	* testsuite/22_locale/codecvt_byname/1.cc: New.
      	* testsuite/22_locale/collate/1.cc: Edit.
      	* testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
      	* testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
      	* testsuite/22_locale/ctype/1.cc: Derivation tests.
      	* testsuite/22_locale/ctype/11844.cc: Move...
      	* testsuite/22_locale/ctype_base/11844.cc: ...here.
      	* testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
      	* testsuite/22_locale/ctype_byname/1.cc: Name.
      	* testsuite/22_locale/messages_byname/1.cc: New.
      	* testsuite/22_locale/messages_byname/named_equivalence.cc: New.
      	* testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
      	* testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
      	* testsuite/22_locale/numpunct/1.cc: Edit.
      	* testsuite/22_locale/numpunct_byname/2.cc: Move...
      	* testsuite/22_locale/numpunct/members/char/3.cc: ...here.
      	* testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
      	* testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
      
      From-SVN: r72814
      Benjamin Kosnik committed
    • jcf-write.c: Follow spelling conventions. · ed2f11fa
      	* jcf-write.c: Follow spelling conventions.
      	* parse.y: Likewise.
      
      From-SVN: r72812
      Kazu Hirata committed
    • re PR libgcj/12656 (Inherited main( ) Method Not Seen At Runtime) · 4badbfa2
      	PR libgcj/12656:
      	* gnu/gcj/runtime/natFirstThread.cc (call_main): Use
      	_Jv_LookupDeclaredMethod, not _Jv_GetMethodLocal.
      
      From-SVN: r72811
      Tom Tromey committed
    • re PR libgcj/12656 (Inherited main( ) Method Not Seen At Runtime) · fc41584e
      	PR libgcj/12656:
      	* libjava.lang/PR12656.java: New file.
      	* libjava.lang/PR12656.out: New file.
      
      From-SVN: r72810
      Tom Tromey committed
    • ChangeLog: Fix typos. · 67264b4f
      	* ChangeLog: Fix typos.
      	* expr.c: Fix comment typos.
      	* jcf-write.c: Likewise.
      	* lang.c: Likewise.
      	* lex.c: Likewise.
      	* mangle.c: Likewise.
      	* parse-scan.y: Likewise.
      	* parse.y: Likewise.
      
      From-SVN: r72809
      Kazu Hirata committed
    • mips-signal.h: New file. · 13229468
      2003-10-22  David Daney  <ddaney@avtrex.com)
      
      	* include/mips-signal.h: New file.
      	* sysdep/dwarf2-backtrace.cc: New file.
      	* sysdep/mips: New directory.
      	* sysdep/mips/locks.h: New file.
      	* Makefile.am(extra_cc_files): New, to allow extra c++ files to be
      	added to libgcj.
      	(extra_cc_source_files): Ditto.
      	* configure.host(disable_dladdr):  New shell variable passed to
      	configure.
      	(mips*-*-linux*): sysdeps_dir=mips,
      	can_unwind_signal=yes, disable_dladdr=yes, use -mxgot.
      	(mipsel*-linux* | mipsisa32el*-linux*): Enable hash synchronization.
      	* configure.in:(mips*-*-linux*): Use sysdep/dwarf2-backtrace.cc to
      	generate backtrace, and include/mips-signal.h as SIGNAL_HANDLER
      	(HAVE_DLADDR): Make it depend on setting of disable_dladdr.
      	(EXTRA_CC_FILES): New, to support conditional addition of
      	sysdep/dwarf2-backtrace.cc.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      	* gcj/Makefile.in: Regenerated.
      	* include/config.h.in: Regenerated.
      	* include/Makefile.in: Regenerated.
      	* testsuite/Makefile.in: Regenerated.
      
      From-SVN: r72808
      David Daney committed
    • s390.md ("movstr_short_64", [...]): Merge ... · b9404c99
      	* config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
      	("*movstr_short"): ... into this insn pattern.
      	("movstr_short"): New expander.
      	("*movstr_long_64"): Rename from "movstr_long_64", simplify.
      	("*movstr_long_31"): Rename from "movstr_long_31", simplify.
      	("movstr_long"): New expander.
      	("clrstr_short_64", "clrstr_short_31"): Merge ...
      	("*clrstr_short"): ... into this insn pattern.
      	("clrstr_short"): New expander.
      	("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
      	("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
      	("clrstr_long"): New expander.
      	("cmpmem_short_64", "cmpmem_short_31"): Merge ...
      	("*cmpmem_short"): ... into this insn pattern.
      	("cmpmem_short"): New expander.
      	("*cmpmem_long_64"): Rename from "cmpmem_long_64".
      	("*cmpmem_long_31"): Rename from "cmpmem_long_31".
      	("cmpmem_long"): New expander.
      	* config/s390/s390.c (s390_expand_movstr): Use new expanders.
      	(s390_expand_clrstr): Likewise.
      	(s390_expand_cmpmem): Likewise.
      
      From-SVN: r72807
      Ulrich Weigand committed
    • re PR libstdc++/8610 (large file support in libstdc++-v3 (std::streamoff type … · 3d05b345
      re PR libstdc++/8610 (large file support in libstdc++-v3 (std::streamoff type  is 32-bit  in GCC 3.2 whereas it was 64-bit in GCC 2.96))
      
      2003-10-22  Paolo Carlini  <pcarlini@suse.de>
      
      	PR libstdc++/8610
      	* acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
      	checking for the availability of int64_t.
      	(GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
      	* configure.ac: Call here.
      	* acconfig.h: Add undef for the corresponding symbols.
      	* config/io/basic_file_stdio.cc	(__basic_file<char>::open):
      	Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
      	(__basic_file<char>::seekoff): Likewise, call lseek64 when
      	available, otherwise lseek, checking the __off parameter.
      	* include/bits/postypes.h: Typedef __streamoff_base_type
      	to int64_t if available, otherwise long long.
      	* aclocal.m4: Regenerate.
      	* config.h.in: Likewise.
      	* configure: Likewise.
      
      	* acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
      	Use AC_TRY_LINK instead of AC_TRY_COMPILE.
      
      From-SVN: r72806
      Paolo Carlini committed
    • expr.c (expand_byte_code): Only warn about dead bytecode when extra_warnings is set. · 36ae3d8e
      	* expr.c (expand_byte_code): Only warn about dead bytecode when
      	extra_warnings is set.
      
      From-SVN: r72805
      Tom Tromey committed
    • c-pch.c (struct c_pch_validity): Add pch_init field. · 926a822f
      	* c-pch.c (struct c_pch_validity): Add pch_init field.
      	(pch_init): Set it.
      	(c_common_valid_pch): Check it.
      	(get_ident): Bump the PCH version number.
      
      From-SVN: r72804
      Mark Mitchell committed
    • re PR libstdc++/12657 (Resolution of DR 292 (WP) still unimplemented) · 57d01e69
      2003-10-22  Paolo Carlini  <pcarlini@suse.de>
      
      	PR libstdc++/12657
      	* include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
      	Implement resolution of DR 292 (WP).
      	* docs/html/ext/howto.html: Add entry for DR 292.
      
      From-SVN: r72803
      Paolo Carlini committed
    • ffitarget.h: Replace undefined UINT32 and friends with __attribute__((__mode__(__SI__))) and... · e61acf72
      2003-10-22  David Daney  <ddaney@avtrex.com>
      
      	* src/mips/ffitarget.h: Replace undefined UINT32 and friends with
      	__attribute__((__mode__(__SI__))) and friends.
      
      From-SVN: r72802
      David Daney committed
    • * Makefile.in: Disable build of gnatpsta. PR ada/10110. · 497dc03c
      From-SVN: r72801
      Arnaud Charlet committed
    • re PR ada/10110 ([mipsel-linux]ada bootstrap error) · 698a5e79
      	* Makefile.in: Disable build of gnatpa. PR ada/10110.
      	* cstreams.c (__gnat_full_name): Minor improvements and clean up
      	of previous change.
      
      From-SVN: r72800
      Arnaud Charlet committed
    • re PR debug/12500 (stabs debug info -- void no longer a predefined / builtin type) · a354c7d6
              PR debug/12500
              * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
      
      From-SVN: r72798
      David Taylor committed
    • * src/ia64/ffi.c: Replace FALSE/TRUE with false/true. · 2461c08b
      From-SVN: r72797
      Andreas Schwab committed
    • alpha.c (function_value [ENABLE_CHECKING]): Don't call alpha_return_in_memory if… · 77c018b7
      alpha.c (function_value [ENABLE_CHECKING]): Don't call alpha_return_in_memory if no VALTYPE specified.
      
      	* config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
      	alpha_return_in_memory if no VALTYPE specified.
      
      From-SVN: r72796
      Richard Kenner committed