Richard Earnshaw
defc0463c4
arm-modes.def (CC_Nmode): New condition code mode.
...
* arm-modes.def (CC_Nmode): New condition code mode.
* arm.c (thumb_condition_code): Delete.
(arm_select_cc_mode): Handle single-bit test for Thumb.
(arm_print_operand, cases 'd' and 'D'): Don't special case the
condition code logic for Thumb.
(get_arm_condition_code): Handle CC_Nmode.
(thumb_cbrch_target_operand): New function.
* arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
* arm-protos.h (thumb_cbrch_target_operand): Add prototype.
* arm.md: Add Thumb split patterns for zero_extract and
sign_extract.
(tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
(orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
(xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
(subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
(cbranchne_decr1): Re-work to use CC_Nmode.
* arm.c (thumb_expand_epilogue): Add clobbers of registers restored
by the return instruction. Add a use of the link register if it
wasn't stored.
From-SVN: r72595
2003-10-17 10:58:17 +00:00
Richard Earnshaw
38b2a60531
flow.c (init_propagate_block_info): Don't abort if a conditional jump is not a comparison of a register.
...
* flow.c (init_propagate_block_info): Don't abort if a conditional
jump is not a comparison of a register. Instead, just don't record
conditional life information.
From-SVN: r72594
2003-10-17 10:30:43 +00:00
Jason Merrill
b8fa9ea133
fix
...
From-SVN: r72592
2003-10-17 00:56:47 -04:00
Jan Hubicka
8f00386e58
re PR rtl-optimization/12630 (Various unrecognizable insns and ICEs at -O3)
...
PR optimization/12630
* pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
for operands 7 and 8.
From-SVN: r72590
2003-10-17 03:32:21 +00:00
David Edelsohn
4aa4bf391f
Change TARGET_ALTIVEC to TARGET_ALTIVEC_ABI.
...
From-SVN: r72589
2003-10-16 21:56:59 -04:00
GCC Administrator
1dd04bcaee
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r72587.2
2003-10-17 00:16:09 +00:00
GCC Administrator
6dd3d16c5a
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r72586.2
2003-10-17 00:16:06 +00:00
Paolo Carlini
fb68dabb19
Remove PR 8610 heading mistakenly added to last ChangeLog entry.
...
From-SVN: r72584
2003-10-16 22:53:32 +00:00
R. Kelley Cook
f8e7e41aa9
eliminate conflict indicator
...
From-SVN: r72583
2003-10-16 22:38:32 +00:00
Benjamin Kosnik
4c4809c175
[multiple changes]
...
2003-10-16 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/8610
PR libstdc++/11450
PR libstdc++/11543
PR libstdc++/12065
* config/io/basic_file_stdio.cc (__basic_file::seekoff):
Change return value from streampos to streamoff.
(__basic_file::seekpos): Delete.
* config/io/basic_file_stdio.h: Same.
* config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
* include/Makefile.am (bits_headers): Add bits/postypes.h.
* include/bits/char_traits.h: Include bits/postypes.h instead of
bits/fpos.h.
* include/bits/fstream.tcc (basic_filebuf::open,
basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
values, use == and != instead.
(basic_filebuf::_M_seek): Use explicit conversion from streamoff
to pos_type.
(basic_filebuf::imbue): Don't use ! on pos_type values, use
== instead. Don't use __check_facet(_M_codecvt) unless is_open().
* include/bits/postypes.h: New file.
Add __streamoff_base_type typedef, streamsize.
(streamoff, streampos, wstreampos): Define typedefs, with
streamoff defined as...
(streamoff): New class. Document implementation defined
aspects.
(fpos): New implementation. Document implementation defined
aspects.
* include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
explicit conversion from pos_type to off_type.
* include/std/std_iosfwd.h: Include bits/postypes.h instead
of bits/fpos.h.
* testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
* testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
* testsuite/27_io/fpos/11450.cc: New test.
* testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
* testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
* testsuite/27_io/types/3.cc: New test.
2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
* configure.host: Remove fpos_include_dir.
* configure.ac: Remove FPOS_INC_SRCDIR.
* configure: Regenerate.
* acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
* aclocal.m4: Regenerate.
* include/Makefile.am (host_headers): Remove fpos.h.
(bits_headers): Add postypes.h.
* include/Makefile.in: Regenerate.
* config/os/gnu-linux/fposh: Remove.
* config/os/generic/fpos.h: Remove.
* testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
* testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
* testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
* testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
* testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
* testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
* testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
* testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
* testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
* testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
* testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
* testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
* testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
* testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
* testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
* testsuite/27_io/fpos/mbstate_t/3.cc: Same.
* testsuite/27_io/objects/char/10.cc: Same.
From-SVN: r72582
2003-10-16 22:37:53 +00:00
R. Kelley Cook
dc17fe7661
* objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
...
From-SVN: r72581
2003-10-16 22:37:03 +00:00
Ralph Loader
35e1369c77
StringBuffer.java (getChars): Fix array index checks.
...
* java/lang/StringBuffer.java (getChars): Fix array index checks.
(append, substring, insert): Likewise.
* testsuite/libjava.lang/StringBuffer_overflow.java: New file.
* testsuite/libjava.lang/StringBuffer_overflow.out: New file.
From-SVN: r72579
2003-10-16 21:35:42 +00:00
Ralph Loader
2488a51e82
natString.cc (getChars): Fix validation of array indexes.
...
* 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-16 21:28:23 +00:00
Ralph Loader
bf1b388d0e
prims.cc (_Jv_NewObjectArray): Make sure byte size doesn't overflow a jint.
...
* 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 21:19:53 +00:00
Ralph Loader
71fc2f0cf1
* MAINTAINERS: Add myself to 'Write After Approval' section.
...
From-SVN: r72576
2003-10-16 21:04:15 +00:00
Benjamin Kosnik
5d78fe723c
acconfig.h: Add HAVE_DRAND48.
...
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-16 21:01:01 +00:00
Paolo Carlini
0392ff984f
locale.cc (locale::locale(const char*)): ...
...
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-16 20:36:45 +00:00
Benjamin Kosnik
d2f663d109
acconfig.h: Add HAVE_DRAND48 and HAVE_ISATTY.
...
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-16 20:33:43 +00:00
Bernardo Innocenti
068c84e3b5
atomicity.h (__exchange_and_add): Use TAS on __mcf5400__.
...
* 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-16 21:47:45 +02:00
Danny Smith
1e8a52484b
cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
...
* 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 19:37:53 +00:00
Mark Mitchell
8f850e49a0
* gennews (files): Add GCC 3.3 files.
...
From-SVN: r72565
2003-10-16 19:18:52 +00:00
Ziemowit Laski
7a0cb59ca9
try-catch-2.m: Relax target triple to all Darwin versions.
...
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-16 19:12:54 +00:00
Zack Weinberg
236ce4b20e
configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
...
* 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-16 18:05:57 +00:00
David Edelsohn
10f30fa883
rs6000.c (rs6000_va_arg): Only align vector arguments if TARGET_ALTIVEC.
...
* config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
arguments if TARGET_ALTIVEC.
From-SVN: r72555
2003-10-16 13:59:06 -04:00
Paolo Carlini
eaed902bf7
locale.cc (locale::locale(const char*)): Tweak a couple of comparisons to 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-16 17:53:49 +00:00
Paolo Carlini
f991b1d853
re PR libstdc++/12540 (Memory leak in locale::locale(const char*))
...
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-16 17:24:07 +00:00
H.J. Lu
968e3f935b
demangle-expected: Update the expected output of _GLOBAL__I__Z2fnv.
...
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-16 08:23:11 -07:00
Bernardo Innocenti
507ec7454e
config.guess: Update to 2003-10-16 version.
...
* config.guess: Update to 2003-10-16 version.
* config.sub: Update to 2003-10-16 version.
From-SVN: r72550
2003-10-16 13:57:24 +02:00
Kazu Hirata
82917bf99d
20031003-1.c: Enable only when INT_MAX == 2147483647.
...
* gcc.c-torture/execute/20031003-1.c: Enable only when INT_MAX
== 2147483647.
From-SVN: r72549
2003-10-16 10:58:14 +00:00
Roger Sayle
5bb650ec1b
builtins.c (fold_builtin_memcpy, [...]): New functions.
...
* 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-16 02:36:48 +00:00
Kazu Hirata
8725a9b499
960416-1.x: Remove.
...
* gcc.c-torture/execute/960416-1.x: Remove.
* gcc.c-torture/execute/divconst-3.x: Likewise.
From-SVN: r72545
2003-10-16 02:15:20 +00:00
Geoffrey Keating
6f94a68e87
darwin-protos.h (machopic_non_lazy_ptr_name): Delete prototype.
...
* 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-16 01:16:38 +00:00
R. Kelley Cook
42f3a0a059
Fix CRLF problem with 20031012-1.c
...
From-SVN: r72543
2003-10-16 00:57:55 +00:00
GCC Administrator
4d67c1990b
Daily bump.
...
From-SVN: r72541
2003-10-16 00:16:06 +00:00
Jan Hubicka
2344a722aa
problem that current decl duplication mechanizm > > /* If we didn't remap 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-15 23:10:20 +00:00
Gábor Lóki
a352244f95
fold-const.c (tree_swap_operands_p): disables some features when optimizing 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-15 22:32:27 +00:00
David Daney
5c3c9bc46b
linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
...
* 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-15 22:28:04 +00:00
David Daney
1f3d066157
linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
...
* 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-15 22:24:56 +00:00
Zack Weinberg
6492b8d80d
Remove stray blank line
...
From-SVN: r72535
2003-10-15 22:06:16 +00:00
Zack Weinberg
b8eaca232b
genmodes.c: Include hashtab.h.
...
* 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-15 21:57:21 +00:00
Olivier Hainque
0f229b22bb
genmodes.c (calc_wider_mode): Allocate enough room for all the entries we'll 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-15 17:24:44 +00:00
Ulrich Weigand
8bf06993c1
Fixed up last commit.
...
From-SVN: r72530
2003-10-15 17:12:01 +00:00
Ulrich Weigand
24fe22c9d4
config.gcc (s390x-ibm-tpf*): New target.
...
* 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-15 17:10:20 +00:00
Michael Koch
55741da6e2
2003-10-15 Michael Koch <konqueror@gmx.de>
...
* 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 15:50:47 +00:00
David Daney
4d466c4259
* MAINTAINERS: Added myself to 'Write After Approval' section.
...
From-SVN: r72527
2003-10-15 15:40:13 +00:00
Michael Koch
684cab7dbf
2003-10-15 Michael Koch <konqueror@gmx.de>
...
* java/text/RuleBasedCollator.java
(CollationElement): Renamed from RBCElement and moved into
RuledBasedCollator as inner class.
From-SVN: r72525
2003-10-15 15:13:03 +00:00
Michael Koch
12dc3f75be
2003-10-15 Michael Koch <konqueror@gmx.de>
...
* 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-15 14:49:30 +00:00
Hans-Peter Nilsson
51c1f28619
Forgot to mention cris_notice_update_cc in last ChangeLog entry
...
From-SVN: r72522
2003-10-15 14:13:03 +00:00
Hans-Peter Nilsson
dbb138cef6
re PR target/12598 (Invalid size optimization on volatile memory reference)
...
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-15 14:07:57 +00:00
Hans-Peter Nilsson
c546e1855c
re PR target/12598 (Invalid size optimization on volatile memory reference)
...
PR target/12598
* gcc.dg/torture/cris-volatile-1.c: New test.
From-SVN: r72520
2003-10-15 14:03:15 +00:00