aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-10-16natString.cc (getChars): Fix validation of array indexes.Ralph Loader4-10/+165
* java/lang/natString.cc (getChars): Fix validation of array indexes. (getBytes, regionMatches, startsWith, valueOf): Likewise. * testsuite/libjava.lang/String_overflow.java: New file. * testsuite/libjava.lang/String_overflow.out: New file. From-SVN: r72578
2003-10-16prims.cc (_Jv_NewObjectArray): Make sure byte size doesn't overflow a jint.Ralph Loader4-3/+109
* prims.cc (_Jv_NewObjectArray): Make sure byte size doesn't overflow a jint. (_Jv_NewPrimArray): Check for overflowing a jint, replacing a check for overflowing size_t, since the lower level functions take a jint. * testsuite/libjava.lang/newarray_overflow.java: New file. * testsuite/libjava.lang/newarray_overflow.out: New file. From-SVN: r72577
2003-10-16* MAINTAINERS: Add myself to 'Write After Approval' section.Ralph Loader2-0/+5
From-SVN: r72576
2003-10-16acconfig.h: Add HAVE_DRAND48.Benjamin Kosnik5-12/+3
2003-10-16 Benjamin Kosnik <bkoz@redhat.com> * acconfig.h: Add HAVE_DRAND48. * crossconfig.m4: Remove ISATTY. * aclocal.m4: Regenerated. * config.h.in: Regenerated. * configure: Regenerated. From-SVN: r72575
2003-10-16locale.cc (locale::locale(const char*)): ...Paolo Carlini2-1/+6
2003-10-16 Paolo Carlini <pcarlini@suse.de> * src/locale.cc (locale::locale(const char*)): ... one more comparison missed in the previous commit. From-SVN: r72574
2003-10-16acconfig.h: Add HAVE_DRAND48 and HAVE_ISATTY.Benjamin Kosnik4-10/+22
2003-10-16 Benjamin Kosnik <bkoz@redhat.com> * acconfig.h: Add HAVE_DRAND48 and HAVE_ISATTY. * aclocal.m4: Regenerated. * config.h.in: Regenerated. From-SVN: r72573
2003-10-16atomicity.h (__exchange_and_add): Use TAS on __mcf5400__.Bernardo Innocenti2-7/+16
* config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000. Document SMP safeness of asm macros. From-SVN: r72570
2003-10-16cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.Danny Smith3-21/+47
* config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define. * config/i386/winnt.c (gen_stdcall_suffix): Make static (gen_fastcall_suffix): Likewise. (i386_pe_dllexport_p): Likewise. (i386_pe_dllimport_p): Likewise. (i386_pe_mark_dllexport): Likewise. (i386_pe_mark_dllimport): Likewise. (i386_pe_asm_named_section): Fix formatting. From-SVN: r72566
2003-10-16* gennews (files): Add GCC 3.3 files.Mark Mitchell2-1/+6
From-SVN: r72565
2003-10-16try-catch-2.m: Relax target triple to all Darwin versions.Ziemowit Laski2-1/+6
2003-10-16 Ziemowit Laski <zlaski@apple.com> * objc.dg/try-catch-2.m: Relax target triple to all Darwin versions. From-SVN: r72563
2003-10-16configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.Zack Weinberg5-105/+121
* configure.in: Add snprintf to gcc_AC_CHECK_DECLS list. * system.h: Declare snprintf if necessary. * configure, config.in: Regenerate. From-SVN: r72557
2003-10-16rs6000.c (rs6000_va_arg): Only align vector arguments if TARGET_ALTIVEC.David Edelsohn2-1/+6
* config/rs6000/rs6000.c (rs6000_va_arg): Only align vector arguments if TARGET_ALTIVEC. From-SVN: r72555
2003-10-16locale.cc (locale::locale(const char*)): Tweak a couple of comparisons to ↵Paolo Carlini2-4/+9
use basic_string operators. 2003-10-16 Paolo Carlini <pcarlini@suse.de> * src/locale.cc (locale::locale(const char*)): Tweak a couple of comparisons to use basic_string operators. From-SVN: r72554
2003-10-16re PR libstdc++/12540 (Memory leak in locale::locale(const char*))Paolo Carlini3-93/+128
2003-10-16 Paolo Carlini <pcarlini@suse.de> PR libstdc++/12540 * config/locale/gnu/monetary_members.cc (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct): Don't leak memory if new throws. * src/locale.cc (locale::locale(const char*)): In order not to leak memory in case new throws, use a basic_string type for __res too and avoid strdup. From-SVN: r72553
2003-10-16demangle-expected: Update the expected output of _GLOBAL__I__Z2fnv.H.J. Lu2-1/+6
2003-10-16 H.J. Lu <hongjiu.lu@intel.com> * testsuite/demangle-expected: Update the expected output of _GLOBAL__I__Z2fnv. From-SVN: r72552
2003-10-16config.guess: Update to 2003-10-16 version.Bernardo Innocenti3-4/+23
* config.guess: Update to 2003-10-16 version. * config.sub: Update to 2003-10-16 version. From-SVN: r72550
2003-10-1620031003-1.c: Enable only when INT_MAX == 2147483647.Kazu Hirata2-0/+9
* gcc.c-torture/execute/20031003-1.c: Enable only when INT_MAX == 2147483647. From-SVN: r72549
2003-10-16builtins.c (fold_builtin_memcpy, [...]): New functions.Roger Sayle2-16/+321
* builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy, fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy, fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp): New functions. (expand_builtin_memcpy): Use integer_zerop instead of testing host_integerp and tree_low_cst directly. Move misapplied hunk for optimization wher SRC and DEST point to the same location. (expand_builtin_mempcpy): From here. (expand_builtin_memmove): Use integer_zerop instead of testing host_integerp and tree_low_cst_directly. (expand_builtin_memset): Likewise. (expand_builtin_memcmp): Likewise (and for integer_onep). (expand_builtin_strncmp): Likewise. (fold_builtin): Call the appropriate fold_builtin_foo functions to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp, strcmp and strncmp. From-SVN: r72547
2003-10-16960416-1.x: Remove.Kazu Hirata3-10/+5
* gcc.c-torture/execute/960416-1.x: Remove. * gcc.c-torture/execute/divconst-3.x: Likewise. From-SVN: r72545
2003-10-16darwin-protos.h (machopic_non_lazy_ptr_name): Delete prototype.Geoffrey Keating3-93/+111
* config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete prototype. Clean up some whitespace. * config/darwin.c: Use gen_rtx_FOO (...) rather than gen_rtx (FOO, ...). (machopic_non_lazy_ptr_name): Make static. (name_needs_quotes): Allow '.' and '$' unquoted. (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic case. From-SVN: r72544
2003-10-16Fix CRLF problem with 20031012-1.cR. Kelley Cook1-32/+32
From-SVN: r72543
2003-10-16Daily bump.GCC Administrator2-2/+2
From-SVN: r72541
2003-10-15problem that current decl duplication mechanizm > > /* If we didn't remap ↵Jan Hubicka2-10/+20
this variable... problem that current decl duplication mechanizm > > /* If we didn't remap this variable, so we can't mess with its > TREE_CHAIN. If we remapped this variable to the return slot, it's From-SVN: r72539
2003-10-15fold-const.c (tree_swap_operands_p): disables some features when optimizing ↵Gábor Lóki2-0/+8
for size. 2003-10-15 G�bor L�ki <alga@rgai.hu> * fold-const.c (tree_swap_operands_p): disables some features when optimizing for size. From-SVN: r72538
2003-10-15linux.h (MD_FALLBACK_FRAME_STATE_FOR): NewDavid Daney1-0/+10
* config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind from leaf functions. (DWARF_FRAME_RETURN_COLUMN): Ditto. (SIGNAL_UNWIND_RETURN_COLUMN): New, used by MD_FALLBACK_FRAME_STATE_FOR. * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target. From-SVN: r72537
2003-10-15linux.h (MD_FALLBACK_FRAME_STATE_FOR): NewDavid Daney3-4/+77
* config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind from leaf functions. (DWARF_FRAME_RETURN_COLUMN): Ditto. (SIGNAL_UNWIND_RETURN_COLUMN): New, used by MD_FALLBACK_FRAME_STATE_FOR. * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target. From-SVN: r72536
2003-10-15Remove stray blank lineZack Weinberg1-1/+0
From-SVN: r72535
2003-10-15genmodes.c: Include hashtab.h.Zack Weinberg6-53/+260
* genmodes.c: Include hashtab.h. (modes_by_name, hash_mode, eq_mode, struct mode_adjust) (adj_bytesize, adj_alignment, adj_format, new_adjust) (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT) (print_maybe_const_decl, emit_mode_adjustments): New. (known_modes): Rename to modes. (find_mode): Kill class argument; look up in hash table. (new_mode): Insert into hash table also. (new_adjust): New. (reset_float_format, make_partial_integer_mode) (make_vector_mode): Tweak error reporting. (reset_float_format): Correct type of fourth argument. (emit_insn_modes_h): Add #defines to help make mode_size, mode_base_align, and real_format_for_mode conditionally const. (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl. (emit_real_format_for_mode): Likewise, but temporarily disabled. (emit_insn_modes_c): Call emit_mode_adjustments. (main): Initialize modes_by_name. * Makefile.in: Update dependencies. * machmode.def: Document EXPR arguments and new ADJUST_* statements. * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in declarations of mode_size and mode_base_align. Declare init_adjust_machine_modes. * toplev.c (backend_init): Call init_adjust_machine_modes. From-SVN: r72534
2003-10-15genmodes.c (calc_wider_mode): Allocate enough room for all the entries we'll ↵Olivier Hainque2-1/+8
possibly assign in the sort buffer. * genmodes.c (calc_wider_mode): Allocate enough room for all the entries we'll possibly assign in the sort buffer. From-SVN: r72531
2003-10-15Fixed up last commit.Ulrich Weigand2-1/+10
From-SVN: r72530
2003-10-15config.gcc (s390x-ibm-tpf*): New target.Ulrich Weigand4-0/+140
* config.gcc (s390x-ibm-tpf*): New target. * doc/invoke.texi: Document it. * config/s390/t-tpf: New file. * config/s390/tpf.h: New file. From-SVN: r72529
2003-10-152003-10-15 Michael Koch <konqueror@gmx.de>Michael Koch2-118/+207
* java/text/RuleBasedCollator.java (RuleBasedCollator): Moved around, documentation added. (compare): Documentation added. (equals): Likewise. (getCollationElementIterator): Likewise. (getCollationKey): Likewise. (getRules): Likewise. (hashCode): Likewise. From-SVN: r72528
2003-10-15* MAINTAINERS: Added myself to 'Write After Approval' section.David Daney2-0/+5
From-SVN: r72527
2003-10-152003-10-15 Michael Koch <konqueror@gmx.de>Michael Koch2-13/+20
* java/text/RuleBasedCollator.java (CollationElement): Renamed from RBCElement and moved into RuledBasedCollator as inner class. From-SVN: r72525
2003-10-152003-10-15 Michael Koch <konqueror@gmx.de>Michael Koch3-9/+55
* java/text/CollationElementIterator.java (CollationElementIterator): Moved, documenatation added, call setText. (next): Reformated. (reset): Reformated. (setText): New method. (getOffset): New method. * java/text/CollationKey.java (getSourceString): Reformated. (hashCode): Reformated. (toByteArray): Reformated. From-SVN: r72523
2003-10-15Forgot to mention cris_notice_update_cc in last ChangeLog entryHans-Peter Nilsson1-0/+2
From-SVN: r72522
2003-10-15re PR target/12598 (Invalid size optimization on volatile memory reference)Hans-Peter Nilsson4-57/+92
PR target/12598 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1) (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12): Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM. ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20) (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27) (define_split "*mov_sidesi_mem"+28, +29, +30): Use replace_equiv_address, not gen_rtx_MEM. * config/cris/cris.c (cris_mem_op): New match_operator function. * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op. From-SVN: r72521
2003-10-15re PR target/12598 (Invalid size optimization on volatile memory reference)Hans-Peter Nilsson2-0/+77
PR target/12598 * gcc.dg/torture/cris-volatile-1.c: New test. From-SVN: r72520
2003-10-152003-10-15 Michael Koch <konqueror@gmx.de>Michael Koch2-4/+16
* java/util/zip/InflaterInputStream.java (InflaterInputStream): Renamed infl to inf and bufsize to size, added description to exception, check for inf == null and size < 0. From-SVN: r72519
2003-10-15AttributedCharacterIterator.java, [...]: Reformated.Michael Koch3-260/+225
2003-10-15 Michael Koch <konqueror@gmx.de> * java/text/AttributedCharacterIterator.java, java/text/CharacterIterator.java: Reformated. From-SVN: r72518
2003-10-15UIDefaults.java (putDefaults): Readded accidently removed "public" modifier.Michael Koch2-1/+6
2003-10-15 Michael Koch <konqueror@gmx.de> * javax/swing/UIDefaults.java (putDefaults): Readded accidently removed "public" modifier. From-SVN: r72517
2003-10-15m68k.h (MASK_SEP_DATA, [...]): Move definitions after the other flags.Bernardo Innocenti2-13/+19
* config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move definitions after the other flags. From-SVN: r72516
2003-10-15MAINTAINERS: Move myself from 'Bug database only accounts' to 'Write After ↵Falk Hueffner2-1/+6
Approval' section. * MAINTAINERS: Move myself from 'Bug database only accounts' to 'Write After Approval' section. Update email. From-SVN: r72515
2003-10-14oopsJason Merrill1-4/+4
From-SVN: r72511
2003-10-14re PR c++/12562 (Enable libstdc++-v3 compliation on *-gnu*)Jeff Bailey3-2/+8
2003-10-14 Jeff Bailey <jbailey@nisa.net> PR libstdc++/12562 * crossconfig.m4: Share the config between *-linux* and *-gnu*. * configure: Regenerate. From-SVN: r72510
2003-10-15Daily bump.GCC Administrator2-2/+2
From-SVN: r72508
2003-10-15c-parse.in (methoddef, [...]): Call objc_add_method() instead of add_method().Ziemowit Laski4-9/+23
2003-10-14 Ziemowit Laski <zlaski@apple.com> * c-parse.in (methoddef, methodproto): Call objc_add_method() instead of add_method(). * objc/objc-act.c (objc_check_decl): Do not check for constant_string_type. (add_method): Rename to objc_add_method(). (really_start_method): Call objc_add_method() instead of add_method(). * objc/objc-act.h (add_method): Rename to objc_add_method(). From-SVN: r72506
2003-10-14s390-protos.h (s390_alc_comparison): Add prototype.Ulrich Weigand5-3/+277
* config/s390/s390-protos.h (s390_alc_comparison): Add prototype. (s390_slb_comparison): Likewise. * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison): New functions. * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison and s390_slb_comparison. * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on zSeries machines. ("*adddi3_31z", "*subdi3_31z"): New insns. ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb", "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"): New insns. From-SVN: r72505
2003-10-14configure.in: Clean up some feedback echoes.Nathanael Nerode3-46/+33
* configure.in: Clean up some feedback echoes. * configure: Regenerate. From-SVN: r72503
2003-10-14* gettext.m4: Properly quote arguments to AC_DEFUN.Nathanael Nerode2-1/+5
From-SVN: r72501