platform/upstream/linaro-gcc.git
20 years ago2003-01-30 Daniel Berlin <dberlin@dberlin.org>
dberlin [Sat, 31 Jan 2004 02:18:25 +0000 (02:18 +0000)]
2003-01-30  Daniel Berlin  <dberlin@dberlin.org>

* ggc-zone.c (ggc_free): New function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77019 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
kazu [Sat, 31 Jan 2004 02:07:12 +0000 (02:07 +0000)]
alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
config/alpha/alpha.c, config/alpha/alpha.h,
config/alpha/alpha.md, config/alpha/unicosmk.h,
config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
config/c4x/c4x-protos.h, config/c4x/c4x.md,
config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
config/frv/frvend.c, config/i386/cygming.h,
config/i386/djgpp.h, config/i386/emmintrin.h,
config/i386/gthr-win32.c, config/i386/i386-interix.h,
config/i386/i386-protos.h, config/i386/openbsd.h,
config/i386/winnt.c, config/i386/xm-mingw32.h,
config/i386/xmmintrin.h, config/ia64/ia64.md,
config/iq2000/iq2000.md, config/m32r/m32r.md,
config/m68k/m68k.md, config/mcore/mcore-elf.h,
config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
config/mips/iris5gas.h, config/mips/iris6.h,
config/mips/iris6gas.h, config/mips/linux.h,
config/mips/mips.md, config/mips/netbsd.h,
config/mips/openbsd.h, config/mips/windiss.h,
config/pa/fptr.c, config/rs6000/aix.h,
config/rs6000/altivec.h, config/rs6000/darwin.h,
config/rs6000/xcoff.h, config/s390/s390-protos.h,
config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
config/sparc/sol2.h: Update copyright.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77018 138bc75d-0d04-0410-961f-82ee72b054a4

20 years agogcc/
kcook [Sat, 31 Jan 2004 00:50:03 +0000 (00:50 +0000)]
gcc/
2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.in (abs_docdir, abs_srcdir): Define.
(doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).

gcc/ada/
2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>

* Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
(doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
(doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.

gcc/f/
2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>

* Make-lang.in (doc/g77.dvi): Use $(abs_docdir).

gcc/java/
2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>

* Make-lang.in (doc/gcj.dvi): Use $(abs_docdir).

gcc/treelang/
2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>

* Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77017 138bc75d-0d04-0410-961f-82ee72b054a4

20 years agoDaily bump.
gccadmin [Sat, 31 Jan 2004 00:16:21 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77012 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * genconfig.c (main): Have CC0_P check its operand even on a
kazu [Fri, 30 Jan 2004 23:39:01 +0000 (23:39 +0000)]
* genconfig.c (main): Have CC0_P check its operand even on a
target without cc0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77009 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR c++/13693
rth [Fri, 30 Jan 2004 23:37:39 +0000 (23:37 +0000)]
    PR c++/13693
        * method.c (use_thunk): Don't force_target_expr for void thunks.
        * tree.c (build_target_expr_with_type): Assert non-void type.
        (force_target_expr): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77008 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-30 Paolo Carlini <pcarlini@suse.de>
paolo [Fri, 30 Jan 2004 23:26:13 +0000 (23:26 +0000)]
2004-01-30  Paolo Carlini  <pcarlini@suse.de>

* testsuite/21_strings/basic_string/cons/char/6.cc: New.
* testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
* testsuite/performance/21_strings/string_cons_input_iterator.cc:
New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77006 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/alpha/alpha.c: Remove mentions of deprecates macros
kazu [Fri, 30 Jan 2004 23:16:23 +0000 (23:16 +0000)]
* config/alpha/alpha.c: Remove mentions of deprecates macros
in comments, remove some target-independent comments about target
macros, and/or add minimal function comments for target hook
implementations.
* config/avr/avr.c: Likewise.
* config/ia64/ia64.h: Likewise.
* config/ip2k/ip2k.c: Likewise.
* config/iq2000/iq2000.c: Likewise.
* config/m32r/m32r.h: Likewise.
* config/m68hc11/m68hc11.c: Likewise.
* config/mcore/mcore.c: Likewise.
* config/mmix/mmix.c: Likewise.
* config/mn10300/mn10300.c: Likewise.
* config/pa/pa.c: Likewise.
* config/pdp11/pdp11.c: Likewise.
* config/rs6000/rs6000.h: Likewise.
* config/sh/sh.c: Likewise.
* config/sh/sh.h: Likewise.
* config/sparc/sparc.c: Likewise.
* config/sparc/sparc.h: Likewise.
* config/stormy16/stormy16.c: Likewise.
* config/xtensa/xtensa.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77005 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR optimization/12147
uweigand [Fri, 30 Jan 2004 23:10:36 +0000 (23:10 +0000)]
PR optimization/12147
* reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
RELOAD_FOR_OPADDR_ADDR.
(reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
might be reused as RELOAD_FOR_OPADDR_ADDR register.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77003 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-30 Michael Koch <konqueror@gmx.de>
mkoch [Fri, 30 Jan 2004 22:01:11 +0000 (22:01 +0000)]
2004-01-30  Michael Koch  <konqueror@gmx.de>

* configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
* configure: Regenerated.
* glib-2.0.m4: Removed.
* gtk-2.0.m4: Removed.
* libart.m4: Removed.
* pkg.m4: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76993 138bc75d-0d04-0410-961f-82ee72b054a4

20 years agoFix whitespace.
dje [Fri, 30 Jan 2004 20:47:32 +0000 (20:47 +0000)]
Fix whitespace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76990 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * reload.c (get_secondary_mem): Fix updating of
hubicka [Fri, 30 Jan 2004 20:42:24 +0000 (20:42 +0000)]
* reload.c (get_secondary_mem):  Fix updating of
secondary_memlocs_elim_used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76989 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * varasm.c (struct rtx_const, struct pool_constant): Remove.
rth [Fri, 30 Jan 2004 19:16:39 +0000 (19:16 +0000)]
    * varasm.c (struct rtx_const, struct pool_constant): Remove.
        (MAX_RTX_HASH_TABLE): Remove.
        (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
        (first_pool, last_pool, pool_offset): Remove.
        (struct rtx_constant_pool): Split out from ...
        (struct varasm_status): ... here.  Reference one via pointer.
        (struct constant_descriptor_rtx): Merge struct pool_constant.
        (SYMHASH): Remove.
        (decode_rtx_const): Remove.
        (const_hash_rtx, compare_constant_rtx): Remove.
        (record_constant_rtx): Remove.
        (const_desc_rtx_hash, const_desc_rtx_eq): New.
        (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
        (const_rtx_hash_1, const_rtx_hash): New.
        (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
        (simplify_subtraction): Use simplify_rtx.
        (force_const_mem): Rewrite to use new data structures.
        (find_pool_constant): Likewise.
        (get_pool_constant, get_pool_constant_mark,
        get_pool_constant_for_function, get_pool_mode,
        get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
        (output_constant_pool_2): Split out from output_constant_pool.
        (output_constant_pool_1): Likewise.  Use new pool datastructures.
        (output_constant_pool): Zap entire pool datastructure.
        (mark_constant): Use new pool datastructures.
        (mark_constants): Use for_each_rtx.
        (mark_constant_pool): Use new pool datastructures.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76985 138bc75d-0d04-0410-961f-82ee72b054a4

20 years agoRemove #if 0. Copy operands[1] to pseudo for simplify_gen_subreg.
fjahanian [Fri, 30 Jan 2004 18:51:35 +0000 (18:51 +0000)]
Remove #if 0. Copy operands[1] to pseudo for simplify_gen_subreg.
OKed by David Edehlson.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76984 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * gcse.c (bypass_block): Fix a typo in the previous check-in
kazu [Fri, 30 Jan 2004 18:22:16 +0000 (18:22 +0000)]
* gcse.c (bypass_block): Fix a typo in the previous check-in
to the file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76981 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-30 Felix Yen <fwy@alumni.brown.edu>
bkoz [Fri, 30 Jan 2004 18:14:42 +0000 (18:14 +0000)]
2004-01-30  Felix Yen  <fwy@alumni.brown.edu>

* testsuite/performance/20_util/allocator_thread.cc (do_loop):
Don't use clear, but instead assign. Use insert.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76979 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 30 Jan 2004 17:54:10 +0000 (17:54 +0000)]
2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>

* src/demangle.cc: Add instantiations.
* src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
* src/Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76978 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * src/allocator.cc: Protect _S_get_thread_id() and
dje [Fri, 30 Jan 2004 17:45:01 +0000 (17:45 +0000)]
    * src/allocator.cc: Protect _S_get_thread_id() and
        _S_thread_key_destr() with #ifdef __GTHREADS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76977 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
pinskia [Fri, 30 Jan 2004 17:43:24 +0000 (17:43 +0000)]
2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>

        * toplev.c: Include alloc-pool.h.
        * Makefile.in (toplev.c): Update dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76976 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-30 Paolo Carlini <pcarlini@suse.de>
paolo [Fri, 30 Jan 2004 17:06:42 +0000 (17:06 +0000)]
2004-01-30  Paolo Carlini  <pcarlini@suse.de>

Reshuffle performance testsuite.
* testsuite/performance/allocator.cc, allocator_map_thread.cc,
allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
fstream_seek_write.cc, ifstream_extract_float.cc,
ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
list_create_fill_sort.cc, map_create_fill.cc,
narrow_widen_char.cc, narrow_widen_wchar_t.cc,
ofstream_insert_float.cc, ofstream_insert_int.cc,
string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
wchar_t_out.cc: Split into...
* testsuite/performance/20_util/allocator.cc: New.
* testsuite/performance/20_util/allocator_map_thread.cc: New.
* testsuite/performance/20_util/allocator_thread.cc: New.
* testsuite/performance/21_strings/string_append: New.
* testsuite/performance/22_locale/is_wchar_t.cc: New.
* testsuite/performance/22_locale/narrow_widen_char.cc: New.
* testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
* testsuite/performance/22_locale/wchar_t_in.cc: New.
* testsuite/performance/22_locale/wchar_t_length.cc: New.
* testsuite/performance/22_locale/wchar_t_out.cc: New.
* testsuite/performance/23_containers/container_benchmark.cc: New.
* testsuite/performance/23_containers/list_create_fill_sort.cc: New.
* testsuite/performance/23_containers/map_create_fill.cc: New.
* testsuite/performance/26_numerics/complex_norm.cc: New.
* testsuite/performance/27_io/cout_insert_int.cc: New.
* testsuite/performance/27_io/filebuf_copy.cc: New.
* testsuite/performance/27_io/filebuf_sputc.cc: New.
* testsuite/performance/27_io/fstream_seek_write.cc: New.
* testsuite/performance/27_io/ifstream_extract_float.cc: New.
* testsuite/performance/27_io/ifstream_extract_int.cc: New.
* testsuite/performance/27_io/ifstream_getline.cc: New.
* testsuite/performance/27_io/ofstream_insert_float.cc: New.
* testsuite/performance/27_io/ofstream_insert_int.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76974 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * g++.dg/ext/case-range1.C, g++.dg/ext/case-range2.C,
matz [Fri, 30 Jan 2004 17:05:09 +0000 (17:05 +0000)]
   * g++.dg/ext/case-range1.C, g++.dg/ext/case-range2.C,
       g++.dg/ext/case-range3.C: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76973 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * parser.c (cp_parser_labeled_statement): Accept case ranges.
matz [Fri, 30 Jan 2004 17:01:29 +0000 (17:01 +0000)]
    * parser.c (cp_parser_labeled_statement): Accept case ranges.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76972 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago DR206
giovannibajo [Fri, 30 Jan 2004 16:40:43 +0000 (16:40 +0000)]
DR206
PR c++/13813
* g++.dg/template/member4.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76971 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago DR206
giovannibajo [Fri, 30 Jan 2004 16:35:03 +0000 (16:35 +0000)]
DR206
PR c++/13813
* decl.c (grokdeclarator): Check immediatly type completeness for
non-dependent types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76970 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * combine.c (simplify_shift_const, case XOR): Be careful when
kenner [Fri, 30 Jan 2004 15:36:11 +0000 (15:36 +0000)]
* combine.c (simplify_shift_const, case XOR): Be careful when
commuting XOR with ASHIFTRT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76965 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR c++/13683
giovannibajo [Fri, 30 Jan 2004 15:12:45 +0000 (15:12 +0000)]
PR c++/13683
* g++.dg/template/sizeof6.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76964 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR c++/13683
giovannibajo [Fri, 30 Jan 2004 15:08:37 +0000 (15:08 +0000)]
PR c++/13683
* call.c (convert_arg_to_ellipsis): Don't emit a warning if within
a sizeof expression.block

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76963 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/sparc/sparc-protos.h: Remove the prototype for
ebotcazou [Fri, 30 Jan 2004 14:46:43 +0000 (14:46 +0000)]
* config/sparc/sparc-protos.h: Remove the prototype for
sparc_builtin_saveregs.
* config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
(TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
(TARGET_PROMOTE_PROTOTYPES): Likewise.
(TARGET_STRUCT_VALUE_RTX): Likewise.
(TARGET_RETURN_IN_MEMORY): Likewise.
(TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
(TARGET_STRICT_ARGUMENT_NAMING): Likewise.
(sparc_builtin_saveregs): Make it static.
(sparc_promote_prototypes): New.
(sparc_struct_value_rtx): Likewise.
(sparc_return_in_memory): Likewise.
* config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
(PROMOTE_FUNCTION_RETURN): Likewise.
(RETURN_IN_MEMORY): Likewise.
(STRUCT_VALUE): Likewise.
(STRUCT_VALUE_INCOMING): Likewise.
(EXPAND_BUILTIN_SAVEREGS): Likewise.
(STRICT_ARGUMENT_NAMING): Likewise.
(PROMOTE_PROTOTYPES): Likewise.

* config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76961 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR c/12818
ebotcazou [Fri, 30 Jan 2004 14:16:43 +0000 (14:16 +0000)]
PR c/12818
* varasm.c (const_hash_1) <STRING_CST>: Use the
address to compute the hash value if flag_writable_strings.
(compare_constant) <STRING_CST>: Compare the addresses
if flag_writable_strings.
(build_constant_desc): Do not copy the expression for a
STRING_CST if flag_writable_strings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76958 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * gnu/java/net/PlainSocketImpl.java
membar [Fri, 30 Jan 2004 13:43:21 +0000 (13:43 +0000)]
* gnu/java/net/PlainSocketImpl.java
(inChannelOperation): New field.
(isInChannelOperation): New accessor.
(setInChannelOperation): New modifier.
* gnu/java/nio/ServerSocketChannelImpl.java
(accept): Set and reset our server socket's PlainSocketImpl's
"in channel operation" indicator before and after delegating
the accept to our server socket.
* gnu/java/nio/SocketChannelImpl.java
(connect): Set and reset our socket's PlainSocketImpl's "in channel
operation" indicator before and after delegating the operation to
our socket.
(read): Likewise.
(write): Likewise.
* java/net/ServerSocket.java (implAccept): Don't throw an
IllegalBlockingModeException if we have a non-blocking
channel which initiated this accept operation.
* java/net/Socket.java (connect): Don't throw an
IllegalBlockingModeException if we have a non-blocking
channel which initiated this connect operation.
* java/nio/channels/spi/AbstractSelectableChannel.java
(configureBlocking): Only call implConfigureBlocking() if
the desired blocking mode is different from our current one.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76956 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-30 Paolo Carlini <pcarlini@suse.de>
paolo [Fri, 30 Jan 2004 13:23:42 +0000 (13:23 +0000)]
2004-01-30  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.tcc (_Rep::_S_create):
Never allocate a string bigger than max_size(); always keep
__capacity and __size in sync to avoid memory leaks at
deallocation time.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76955 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * alloc-pool.c: Include hashtab.h
hubicka [Fri, 30 Jan 2004 11:36:05 +0000 (11:36 +0000)]
* alloc-pool.c: Include hashtab.h
(alloc_pool_descriptor): New structure
(alloc_pool_hash): New global variable.
(hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
(create_alloc_pool): Update statistics.
(free_alloc_pool): Likewise.
(pool_alloc): Likewise.
(output_info): New structure
(print_statistics, dump_alloc_pool_statistics): New function.
* alloc-pool.h (alloc_pool_def): Turn name to be constant.
(dump_alloc_pool_statistics): Declare.
* toplev.c (finalize):  Dump statistics.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76951 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * reload.c (secondary_memlocs_elim_used): New static variable.
hubicka [Fri, 30 Jan 2004 11:28:37 +0000 (11:28 +0000)]
* reload.c (secondary_memlocs_elim_used): New static variable.
(get_secondary_mem): Update it.
(find_reloads): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76950 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * reload.c (secondary_memlocs_elim_used): New static variable.
hubicka [Fri, 30 Jan 2004 11:28:21 +0000 (11:28 +0000)]
* reload.c (secondary_memlocs_elim_used): New static variable.
(get_secondary_mem): Update it.
(find_reloads): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76949 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * toplev.c: Fix broken checkin of 2003-12-30, again.
steven [Fri, 30 Jan 2004 11:20:10 +0000 (11:20 +0000)]
* toplev.c: Fix broken checkin of 2003-12-30, again.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76948 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-30 Paolo Carlini <pcarlini@suse.de>
paolo [Fri, 30 Jan 2004 09:58:45 +0000 (09:58 +0000)]
2004-01-30  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.tcc (_S_construct(_InIterator,
_InIterator, const _Alloc&, input_iterator_tag)): Simplify
the double loop, streamline.

* include/bits/basic_string.tcc: Very minor tweaks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76937 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
uweigand [Fri, 30 Jan 2004 09:07:21 +0000 (09:07 +0000)]
* configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
s390*-*-* targets by specifying a 'nop' insn.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76934 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * scripts/check_performance: Only compile with $THREAD_FLAG
ljrittle [Fri, 30 Jan 2004 08:24:27 +0000 (08:24 +0000)]
* scripts/check_performance: Only compile with $THREAD_FLAG
when test is marked to require it.  Allow multiple
compilations/executions of marked tests.
* testsuite/testsuite_performance.h (report_performance):
Report dynamic thread support status.
(report_header): Likewise.
* testsuite/performance/allocator.cc: Stabilize iteration
count.  Support more allocators.  Mark each allocator test to
run and report independently.
* testsuite/performance/allocator_map_thread.cc: Likewise.
* testsuite/performance/allocator_thread.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76932 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR target/11475
ebotcazou [Fri, 30 Jan 2004 07:00:45 +0000 (07:00 +0000)]
PR target/11475
* config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76928 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * java/io/BufferedReader.java (sbuf): New field.
membar [Fri, 30 Jan 2004 06:33:43 +0000 (06:33 +0000)]
* java/io/BufferedReader.java (sbuf): New field.
(readLine): Use String.valueOf instead of new String() as per
Per Bothner's suggestion. Use instance sbuf field instead of a
local StringBuffer instance.
* java/io/InputStreamReader.java (read(char[],int,int)): Pass the
caller's buffer to refill().
(read(void)): Pass our internal work buffer to refill if our
input queue is empty.
(refill): Changed return type to int. Use the specified buffer
instead of our work buffer as per Bryce McKinlay's suggestion.
Return the number of characters read or -1 for EOF.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76927 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR c++/13865
jason [Fri, 30 Jan 2004 04:35:26 +0000 (04:35 +0000)]
    PR c++/13865
        * c-simplify.c (gimplify_for_stmt): Reorganize to fix cleanups.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76923 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
bkoz [Fri, 30 Jan 2004 03:43:00 +0000 (03:43 +0000)]
2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>

* config/local/generic/c_locale.h: Change ::malloc() to new char[].
   * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
   * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
std::get_temporary_buffer() instead of duplicating its code.
Update to C++STYLE conventions.
   * include/std/std_memory.h (get_temporary_buffer): Use ::operator
new() instead of std::malloc().
(return_temporary_buffer): Use ::operator delete() instead of
std::free().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76922 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-28 Andrew Pinski <pinskia@physics.uc.edu>
pinskia [Fri, 30 Jan 2004 01:29:29 +0000 (01:29 +0000)]
2004-01-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * expr.c (build_field_ref): Move variable
        definition up.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76919 138bc75d-0d04-0410-961f-82ee72b054a4

20 years agoDaily bump.
gccadmin [Fri, 30 Jan 2004 00:16:12 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76904 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.
sgilbertson [Thu, 29 Jan 2004 22:14:57 +0000 (22:14 +0000)]
* gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76900 138bc75d-0d04-0410-961f-82ee72b054a4

20 years agoIndex: libjava/ChangeLog
sgilbertson [Thu, 29 Jan 2004 22:11:26 +0000 (22:11 +0000)]
Index: libjava/ChangeLog
from  Scott Gilbertson  <scottg@mantatest.com>

* gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76899 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * objc.dg/call-super-2.m: Include stddef.h for size_t.
geoffk [Thu, 29 Jan 2004 20:56:33 +0000 (20:56 +0000)]
* objc.dg/call-super-2.m: Include stddef.h for size_t.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76895 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 29 Jan 2004 20:42:42 +0000 (20:42 +0000)]
2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/allocator.h: Temporary switch to new_allocator as
the default to unjam bootstraps.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76894 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
sgilbertson [Thu, 29 Jan 2004 19:28:26 +0000 (19:28 +0000)]
* Makefile.am: Added gnu/awt/xlib/XFontPeer.java.
* Makefile.in: Re-generated.
* gnu/awt/xlib/XFontPeer.java: New file.
* gnu/awt/xlib/XGraphics.java (setFont): Test for null font.
(setClip): Commented out debug printout.
* gnu/awt/xlib/XToolkit.java: Change superclass to ClasspathToolkit.
(getFontPeer): Return XFontPeer.
(getLocalGraphicsEnvironment): New method.
(getClasspathFontPeer): New method.
(createFont): New method.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76891 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
jakub [Thu, 29 Jan 2004 18:52:28 +0000 (18:52 +0000)]
* emit-rtl.c (change_address): Use XEXP (memref, 0) instead
of addr when creating MEM copy.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76888 138bc75d-0d04-0410-961f-82ee72b054a4

20 years agoFix Ada breakage.
dpatel [Thu, 29 Jan 2004 18:42:58 +0000 (18:42 +0000)]
Fix Ada breakage.

* dwarf2out.c (gen_field_die): Do not equate decl number to die.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76887 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR inline-asm/6162
ian [Thu, 29 Jan 2004 18:40:01 +0000 (18:40 +0000)]
PR inline-asm/6162
* reload.c (find_reloads): Only support one pair of commutative
operands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76886 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
sgilbertson [Thu, 29 Jan 2004 18:21:01 +0000 (18:21 +0000)]
* gnu/java/awt/peer/ClasspathFontPeer.java (getTransform): Never
return null.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76874 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR java/13824
sayle [Thu, 29 Jan 2004 17:13:21 +0000 (17:13 +0000)]
PR java/13824
* tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
recursion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76872 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR c++/13883
mmitchel [Thu, 29 Jan 2004 16:47:14 +0000 (16:47 +0000)]
PR c++/13883
* mangle.c (write_encoding): Correct encoding of member template
constructors.

PR c++/13883
* g++.dg/template/ctor3.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76868 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * g++.dg/tc1: New directory.
giovannibajo [Thu, 29 Jan 2004 16:45:35 +0000 (16:45 +0000)]
* g++.dg/tc1: New directory.
* g++.dg/tc1/dr108.C, g++.dg/tc1/dr128.C, g++.dg/tc1/dr147.C,
g++.dg/tc1/dr179.C, g++.dg/tc1/dr1.C, g++.dg/tc1/dr213.C,
g++.dg/tc1/dr74.C, g++.dg/tc1/dr90.C, g++.dg/tc1/dr127.C,
g++.dg/tc1/dr137.C, g++.dg/tc1/dr164.C, g++.dg/tc1/dr185.C,
g++.dg/tc1/dr20.C, g++.dg/tc1/dr52.C, g++.dg/tc1/dr85.C: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76867 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/frv/frv.c: Don't mention deprecated macros in
kazu [Thu, 29 Jan 2004 15:59:24 +0000 (15:59 +0000)]
* config/frv/frv.c: Don't mention deprecated macros in
comments.  Remove some target-independent comments about
target macros.
* config/frv/frv.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76864 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-29 Kim Ho <kho@redhat.com>
kho [Thu, 29 Jan 2004 14:34:31 +0000 (14:34 +0000)]
2004-01-29  Kim Ho  <kho@redhat.com>

        * gnu/java/awt/peer/gtk/GtkFramePeer.java
        (gtkLayoutSetVisible): New method
        (setMenuBar): Hide layout before setting MenuBar
        and reshow it after.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
        (gtkLayoutSetVisible): Hide or show the Gtk Layout.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76861 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-28 Andrew Haley <aph@redhat.com>
aph [Thu, 29 Jan 2004 13:19:26 +0000 (13:19 +0000)]
2004-01-28  Andrew Haley  <aph@redhat.com>

        * expr.c (build_field_ref): Widen field offset.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76860 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * cfghooks.c (split_block): Set probability and count of the
rakdver [Thu, 29 Jan 2004 12:55:25 +0000 (12:55 +0000)]
* cfghooks.c (split_block): Set probability and count of the
new edge.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76858 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * dwarf2out.c (struct die_struct): Added field decl_id.
zlomek [Thu, 29 Jan 2004 08:26:24 +0000 (08:26 +0000)]
* dwarf2out.c (struct die_struct): Added field decl_id.
(decl_die_table): Changed to hash table.
(decl_die_table_allocated): Deleted.
(decl_die_table_in_use): Deleted.
(DECL_DIE_TABLE_INCREMENT): Deleted.
(decl_die_table_hash): New function.
(decl_die_table_eq): New function.
(lookup_decl_die): Lookup in a hash table.
(equate_decl_number_to_die): Insert into a hash table.
(dwarf2out_init): Init hash table decl_die_table.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76853 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR optimization/13424
jakub [Thu, 29 Jan 2004 08:05:47 +0000 (08:05 +0000)]
PR optimization/13424
* expr.c (store_constructor): Revert 2003-12-03 change.

* emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
expected before returning early.  Avoid sharing RTL if they
need to be changed.

* config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
handling so that memory attributes are preserved.  Don't call
ix86_set_move_mem_attrs.
(ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
(ix86_expand_clrstr): Rename src argument to
dst.  Rework rep_stos and strset handling so that memory attributes
are preserved.
(ix86_expand_strlen): Pass src argument to
ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
memory attributes are preserved.
(ix86_expand_strlensi_unroll_1): Add src argument.  Use
change_address instead of gen_rtx_MEM.
* config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
expanders.
(strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
strmovqi, strmovqi_rex64): Remove.
(rep_mov*, strmov*): Prefix insn names with *.
(strset, strset_singleop, rep_stos): New expanders.
(strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
strsetqi, strsetqi_rex64): Remove.
(rep_stos*, strset*): Prefix insn names with *.
(rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
to SImode.
(cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
are preserved.
(cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
Prefix insn names with *.
(cmpstrqi_nz_1, cmpstrqi_1): New expanders.
(strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
(strlenqi_1): New expander.
* config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76852 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
rakdver [Thu, 29 Jan 2004 07:47:56 +0000 (07:47 +0000)]
* Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
* basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
verify_flow_info): Declaration removed.
* cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
(debug_bb, debug_bb_n): Add argument to dump_bb call.
* cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
instead of delete_block.
* cfghooks.c: Include timevar.h and toplev.h.
(cfg_hooks): Define here.
(verify_flow_info, dump_bb): Moved from cfg.c.
(redirect_edge_and_branch, redirect_edge_and_branch_force,
split_block, split_block_after_labels, move_block_after,
delete_basic_block, split_edge, create_basic_block,
create_empty_bb, can_merge_blocks_p, merge_blocks,
make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
New functions.
* cfghooks.h (struct cfg_hooks): Added fields name,
make_forwarder_block, tidy_fallthru_edge and
move_block_after. Changed type of verify_flow_info, dump_bb,
split_block fields. Renamed cfgh_split_edge and delete_block
fields.
(redirect_edge_and_branch, redirect_edge_and_branch_force,
split_block, delete_block, split_edge, create_basic_block,
can_merge_blocks_p, merge_blocks): Macros removed.
(cfg_hooks): Do not export.
(verify_flow_info, dump_bb, redirect_edge_and_branch,
redirect_edge_and_branch_force, split_block, split_block_after_labels,
move_block_after, delete_basic_block, split_edge, create_basic_block,
create_empty_bb, can_merge_blocks_p, merge_blocks,
make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
Declare.
(cfg_layout_rtl_cfg_hooks): Declare.
* cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
New functions.
(canonicalize_loop_headers): Use new semantics of make_forwarder_block.
(redirect_edge_with_latch_update): Removed.
(make_forwarder_block): Moved to cfghooks.c, semantics changed.
* cfgloopmanip.c (remove_bbs): Do not update dominators here.
* cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
rtl_delete_block, rtl_split_block, rtl_merge_blocks,
tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
cfghooks.c.
(rtl_create_basic_block): Coding style fix.
(rtl_tidy_fallthru_edge, rtl_move_block_after,
rtl_make_forwarder_block): New functions.
(update_cfg_after_block_merging): Removed.
(rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
* flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
to dump_bb.
* ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
find_if_case_2): Don't update dominators.
* timevar.def (TV_CFG_VERIFY): New.
* loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
* cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
* cfgloopmanip.c (split_loop_bb): Don't update dominators.
(remove_bbs): Don't call remove_bbs.
(create_preheader): Use make_forwarder_block.
(mfb_keep_just, mfb_update_loops): New static functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76851 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/avr/avr.h: Remove target-independent comments about
kazu [Thu, 29 Jan 2004 07:35:40 +0000 (07:35 +0000)]
* config/avr/avr.h: Remove target-independent comments about
target macros.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76850 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-28 Daniel Berlin <dberlin@dberlin.org>
dberlin [Thu, 29 Jan 2004 05:31:47 +0000 (05:31 +0000)]
2004-01-28  Daniel Berlin  <dberlin@dberlin.org>

* timevar.c (timevar_print): Mention when checking is enabled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76848 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * g++.dg/parse/error11.C: New test.
giovannibajo [Thu, 29 Jan 2004 04:26:50 +0000 (04:26 +0000)]
* g++.dg/parse/error11.C: New test.
* g++.dg/parse/error12.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76846 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * parser.c (cp_parser_template_id): Parse tentatively `[:' after a
giovannibajo [Thu, 29 Jan 2004 04:23:37 +0000 (04:23 +0000)]
* parser.c (cp_parser_template_id): Parse tentatively `[:' after a
template name as it was `<::' (digraph typo).
(cp_parser_nth_token_starts_template_argument_list_p): New function.
(cp_parser_id_expression): Use it.
(cp_parser_nested_name_specifier_opt): Likewise.
(cp_parser_template_name): Likewise.
(cp_parser_class_name): Likewise.
(cp_lexer_get_preprocessor_token): Use c_lex_with_flags.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76845 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * c-lex.c (c_lex): Rename to...
giovannibajo [Thu, 29 Jan 2004 04:19:01 +0000 (04:19 +0000)]
* c-lex.c (c_lex): Rename to...
(c_lex_with_flags): Add new parameter to get CPP flags.
(c_lex): Thunk to c_lex_with_flags while keeping the old interface.
* c-pragma.h (c_lex_with_flags): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76844 138bc75d-0d04-0410-961f-82ee72b054a4

20 years agoFix LP64 failures.
wilson [Thu, 29 Jan 2004 03:14:35 +0000 (03:14 +0000)]
Fix LP64 failures.
* objc.dg/proto-qual-1.m (ROUND, aligned_sizeof): New.
(scan_initial, main): Use aligned_sizeof instead of sizeof.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76842 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR c++/13791
mmitchel [Thu, 29 Jan 2004 02:21:51 +0000 (02:21 +0000)]
PR c++/13791
* typeck.c (merge_types): Do not merge attributes into
TYPENAME_TYPEs.

2004-01-28  Mark Mitchell  <mark@codesourcery.com>

PR c++/13791
* g++.dg/ext/attrib12.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76837 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/mcore/mcore.c (mcore_external_libcall): Add a
kazu [Thu, 29 Jan 2004 02:19:44 +0000 (02:19 +0000)]
* config/mcore/mcore.c (mcore_external_libcall): Add a
comment.
(mcore_return_in_memory): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76836 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/mcore/mcore-protos.h: Remove the prototype for
kazu [Thu, 29 Jan 2004 02:13:52 +0000 (02:13 +0000)]
* config/mcore/mcore-protos.h: Remove the prototype for
mcore_setup_incoming_varargs.
* config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
(TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
(TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
(TARGET_PROMOTE_PROTOTYPES): Likewise.
(TARGET_STRUCT_VALUE_RTX): Likewise.
(TARGET_RETURN_IN_MEMORY): Likewise.
(TARGET_SETUP_INCOMING_VARARGS): Likewise.
(mcore_setup_incoming_varargs): Make it static.  Receive the
first argument by reference.  Add argument second_time.
(mcore_external_libcall): New.
(mcore_return_in_memory): Likewise.
* config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
(PROMOTE_FUNCTION_RETURN): Likewise.
(STRUCT_VALUE): Likewise.
(RETURN_IN_MEMORY): Likewise.
(SETUP_INCOMING_VARARGS): Likewise.
(PROMOTE_PROTOTYPES): Likewise.
(ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76835 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/m32r/m32r-protos.h: Remove the prototype for
kazu [Thu, 29 Jan 2004 02:06:02 +0000 (02:06 +0000)]
* config/m32r/m32r-protos.h: Remove the prototype for
m32r_setup_incoming_varargs.
* config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
(TARGET_STRUCT_VALUE_RTX): Likewise.
(TARGET_RETURN_IN_MEMORY): Likewise.
(TARGET_SETUP_INCOMING_VARARGS): Likewise.
(m32r_return_in_memory): New.
(m32r_setup_incoming_varargs): Make it static.
* config/m32r/m32r.h: Remove #undef of
ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
definitions of PROMOTE_FUNCTION_ARGS and
PROMOTE_FUNCTION_RETURN.
(PROMOTE_PROTOTYPES): Remove.
(RETURN_IN_MEMORY): Likewise.
(STRUCT_VALUE): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76834 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
kazu [Thu, 29 Jan 2004 01:56:28 +0000 (01:56 +0000)]
* config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
(TARGET_STRUCT_VALUE_RTX): Likewise.
(m68k_struct_value_rtx): Likewise.
* config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
STRUCT_VALUE_REGNUM.
(PROMOTE_PROTOTYPES): Remove.
* config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
STRUCT_VALUE_REGNUM.
* config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
* config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76833 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/stormy16/stormy16.c
kazu [Thu, 29 Jan 2004 01:51:28 +0000 (01:51 +0000)]
* config/stormy16/stormy16.c
(TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
TARGET_BUILD_BUILTIN_VA_LIST.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76832 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
kazu [Thu, 29 Jan 2004 01:47:24 +0000 (01:47 +0000)]
* config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
(TARGET_STRUCT_VALUE_RTX): Likewise.
(TARGET_RETURN_IN_MEMORY): Likewise.
(TARGET_SETUP_INCOMING_VARARGS): Likewise.
(v850_return_in_memory): Likewise.
(v850_setup_incoming_varargs): Likewise.
* config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
(SETUP_INCOMING_VARARGS): Likewise.
(RETURN_IN_MEMORY): Likewise.
(STRUCT_VALUE): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76831 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
kazu [Thu, 29 Jan 2004 01:40:48 +0000 (01:40 +0000)]
* config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
(fr30_setup_incoming_varargs): Don't use
STRICT_ARGUMENT_NAMING.
* config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
(STRICT_ARGUMENT_NAMING): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76830 138bc75d-0d04-0410-961f-82ee72b054a4

20 years agoFix typo in ChangeLog
mmitchel [Thu, 29 Jan 2004 01:32:20 +0000 (01:32 +0000)]
Fix typo in ChangeLog

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76827 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/frv/frv-protos.h: Remove the prototype for
kazu [Thu, 29 Jan 2004 01:31:15 +0000 (01:31 +0000)]
* config/frv/frv-protos.h: Remove the prototype for
frv_expand_builtin_saveregs.
* config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
(TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
(frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
STRUCT_VALUE_REGNUM.
(frv_expand_builtin_saveregs): Make it static.
(frv_struct_value_rtx): New.
* config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76826 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR c++/13736
mmitchel [Thu, 29 Jan 2004 01:29:03 +0000 (01:29 +0000)]
PR c++/13736
* parser.c (cp_parser_direct_declarator): Do not prevent
backtracking inside a parenthesized declarator.
(cp_parser_parameter_declaration): Fix typo in comment.

PR c++/13736
* g++.dg/parse/cast2.C (main): New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76825 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago PR c++/12850
hubicka [Thu, 29 Jan 2004 00:34:09 +0000 (00:34 +0000)]
PR c++/12850
* cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
initial pointers.
* cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
for functions that will be only inlined.
(cgraph_mark_function_to_output): Likewise.
(cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
do not clear function body.
* tree-optimize.c (clear_decl_rtl): Use decl_function_context.
(tree_rest_of_compilation): Reorganize the logic releasing function
body to use callgraph datastructure.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76822 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 29 Jan 2004 00:18:40 +0000 (00:18 +0000)]
2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>

* include/Makefile.am (bits_headers): Remove allocator_traits.h.
* include/Makefile.in: Regenerate.
* include/bits/allocator_traits.h: Remove.
* include/bits/allocator.h: Remove allocator_traits.h include, and
relevant comments.
(allocator): Empty base class, inherit from the underlying allocator.
* src/allocator-inst.cc: Move __pool_alloc instantiation to...
* src/allocator.cc: ...here. New. For the underlying allocators.
Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
* config/linker-map.gnu: Remove __pool_alloc bits.
* src/Makefile.am (sources): Add allocator.cc.
* src/Makefile.in: Regenerate.
* testsuite/20_util/allocator/1.cc: Split second test into...
* testsuite/20_util/allocator/8230.cc: ...this.
* include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
typedef to use std::allocatore. Format.
* include/ext/pool_allocator.h: Remove allocator_traits.h include,
_Alloc_traits.
* include/ext/mt_allocator.h (__gnu_cxx): Qualify
__throw_bad_alloc calls. Don't include <memory>.
* include/ext/malloc_allocator.h: Remove <memory> include.
* include/ext/new_allocator.h (new_allocator): Same.
* include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
declaration. Switch __alloc to _Alloc.
* include/ext/hashtable.h: Remove __alloc.
* include/backward/alloc.h: Only inject allocator, not
implementation details.

* include/ext/mt_allocator.h: Replace free with delete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76821 138bc75d-0d04-0410-961f-82ee72b054a4

20 years agoDaily bump.
gccadmin [Thu, 29 Jan 2004 00:16:14 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76818 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
danglin [Wed, 28 Jan 2004 22:50:32 +0000 (22:50 +0000)]
* pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
to register_operand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76814 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
zack [Wed, 28 Jan 2004 22:09:27 +0000 (22:09 +0000)]
* config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
(cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
match_operand expressions so that all match_dups appear
lexically after their corresponding match_operands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76812 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * config/h8300/h8300.c (WORD_REG_USED): Use
kazu [Wed, 28 Jan 2004 22:00:26 +0000 (22:00 +0000)]
* config/h8300/h8300.c (WORD_REG_USED): Use
HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
(compute_saved_regs): Likewise.
(h8300_expand_prologue): Likewise.  Allocate locals after
saving registers.
(h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
of FRAME_POINTER_REGNUM.  Deallocate locals before saving
registers.
(h8300_initial_elimination_offset): Adjust for the new frame
layout, which swaps flips the order of locals and saved
registers.
* config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
(HARD_FRAME_POINTER_REGNUM): New.
(ELIMINABLE_REGS): Add an elimination rule from
FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
(REGISTER_NAMES): Add fp.
* config/h8300/h8300.md (FP_REG): Change to 11.
(HFP_REG): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76811 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Wed, 28 Jan 2004 21:20:42 +0000 (21:20 +0000)]
2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>

* src/globals_io.cc: Change to __gnu_internal namespace.
* src/globals_locale.cc: Same.
* src/locale_init.cc: Same.
* src/ios_init.cc: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76810 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-28 Michael Koch <konqueror@gmx.de>
mkoch [Wed, 28 Jan 2004 21:13:11 +0000 (21:13 +0000)]
2004-01-28  Michael Koch  <konqueror@gmx.de>

* gnu/java/lang/ClassHelper.java
(getPackagePortion): Removed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76809 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * genrecog.c (write_node): Remove a useless local variable.
kazu [Wed, 28 Jan 2004 21:07:09 +0000 (21:07 +0000)]
* genrecog.c (write_node): Remove a useless local variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76807 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * semantics.c (expand_body) Do emit_associated_thunks before
hubicka [Wed, 28 Jan 2004 20:15:40 +0000 (20:15 +0000)]
* semantics.c (expand_body)  Do emit_associated_thunks before
expansion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76804 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * Makefile.in (options.c options.h): Use stamp file s-options to
ian [Wed, 28 Jan 2004 19:43:45 +0000 (19:43 +0000)]
* Makefile.in (options.c options.h): Use stamp file s-options to
avoid unnecessary rebuilds.
(options.o): New target listing dependencies.
(gtyp-gen.h): Use stamp file s-gtyp-gen.
(STAGESTUFF): Add s-gtyp-gen.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76803 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-28 Michael Koch <konqueror@gmx.de>
mkoch [Wed, 28 Jan 2004 19:37:59 +0000 (19:37 +0000)]
2004-01-28  Michael Koch  <konqueror@gmx.de>

* javax/swing/JComponent.java
(listenerList): Initalize globally.
(ancestor_list): Removed.
(veto_list): Removed.
(change_list): Removed.
(get_veto_list): Removed.
(get_change_list): Removed.
(get_ancestor_list): Removed.
(removeAncestorListener): Reimplemented.
(removePropertyChangeListener): Likewise.
(removeVetoableChangeListener): Likewise.
(addAncestorListener): Likewise.
(addPropertyChangeListener): Likewise.
(addVetoableChangeListener): Likewise.
(getListeners): New method.
(getAncestorListeners): Likewise.
(getVetoableChangeListeners): Likewise.
(fireVetoableChange): Throws PropertyVetoException.
* javax/swing/JEditorPane.java
(JEditorPane): Throws IOException.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76802 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * ggc.h (ggc_free): Declare.
rth [Wed, 28 Jan 2004 18:49:26 +0000 (18:49 +0000)]
    * ggc.h (ggc_free): Declare.
        * ggc-common.c (ggc_realloc): Use it.
        * ggc-page.c: Remove lots of inline markers.
        (globals): Add free_object_list.
        (ggc_alloc): Tidy.
        (ggc_free, validate_free_objects): New.
        (poison_pages): Provide default.
        (ggc_collect): Call validate_free_objects; emit markers to
        the debug file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76801 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * Make-lang.in (f/str-*.h, f/str-*.j): Use stamp files and
ian [Wed, 28 Jan 2004 18:24:11 +0000 (18:24 +0000)]
* Make-lang.in (f/str-*.h, f/str-*.j): Use stamp files and
move-if-change to avoid changing these files unnecessarily.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76800 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-28 Zack Weinberg <zack@codesourcery.com>
zack [Wed, 28 Jan 2004 18:13:28 +0000 (18:13 +0000)]
2004-01-28  Zack Weinberg  <zack@codesourcery.com>
    Jim Wilson  <wilson@specifixinc.com>

* config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
scratch pointer.
(ia64_secondary_reload_class): Delete case GR_REGS.
* config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
Do not allocate a scratch register.
(reload_inti, reload_outti, reload_intf, reload_outtf): Delete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76798 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-28 Stefan Olsson <stefan@snon.net>
bkoz [Wed, 28 Jan 2004 17:50:34 +0000 (17:50 +0000)]
2004-01-28  Stefan Olsson  <stefan@snon.net>

  * include/ext/mt_allocator.h: Replaced all malloc() calls with
operator new(). Added support for the env variable
GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
one in allocate() as well). Fix typos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76795 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-28 David Jee <djee@redhat.com>
djee [Wed, 28 Jan 2004 16:23:54 +0000 (16:23 +0000)]
2004-01-28  David Jee  <djee@redhat.com>

* gnu/java/awt/peer/gtk/GtkFramePeer.java
(create): Set the default foreground color to
java.awt.SystemColor.windowText.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76792 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago * gcse.c (bypass_block): Prevent edges to be unified when we are
hubicka [Wed, 28 Jan 2004 14:13:35 +0000 (14:13 +0000)]
* gcse.c (bypass_block): Prevent edges to be unified when we are
about to emit compenstation code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76791 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago(arm_expand_builtin): Force second argument of the setcwx insn into a register.
nickc [Wed, 28 Jan 2004 11:41:38 +0000 (11:41 +0000)]
(arm_expand_builtin): Force second argument of the setcwx insn into a register.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76787 138bc75d-0d04-0410-961f-82ee72b054a4

20 years ago2004-01-28 Paolo Carlini <pcarlini@suse.de>
paolo [Wed, 28 Jan 2004 10:37:32 +0000 (10:37 +0000)]
2004-01-28  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.h (_S_create(size_t,
const _Alloc&): Change signature to take two size_type
arguments.
* include/bits/basic_string.tcc (_S_construct(_InIterator,
_InIterator, const _Alloc&, input_iterator_tag)): Update
call, tweak a bit.
(_S_construct(_InIterator, _InIterator, const _Alloc&,
forward_iterator_tag)): Likewise.
(_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
(_M_mutate(size_type, size_type, size_type)): Don't
implement the exponential growth policy, demand it to
_S_create, update call and simplify.
(_M_clone(const _Alloc&, size_type)): Likewise.
(_S_create(size_type, size_type, const _Alloc&)): Implement
the growth policy, simplify otherwise.

* include/bits/basic_string.h (_Rep::operator[]): Tweak
signature to take a size_type, consistently with the other
members.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76786 138bc75d-0d04-0410-961f-82ee72b054a4