platform/upstream/gcc.git
20 years ago* doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
Eric Botcazou [Mon, 2 Feb 2004 09:17:19 +0000 (10:17 +0100)]
* doc/invoke.texi (SPARC options): Document that -mflat is deprecated.

From-SVN: r77100

20 years agoarc.md, [...]: Replace gen_rtx with gen_rtx_fmt_e*.
Kazu Hirata [Mon, 2 Feb 2004 06:31:08 +0000 (06:31 +0000)]
arc.md, [...]: Replace gen_rtx with gen_rtx_fmt_e*.

* config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
config/iq2000/iq2000.c, config/m32r/m32r.c,
config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
config/mn10300/mn10300.c, config/rs6000/rs6000.c,
config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
config/stormy16/stormy16.c, config/v850/v850.md,
config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.

From-SVN: r77098

20 years agomcore.c (block_move_sequence): Replace gen_rtx_CONST_INT with GEN_INT.
Kazu Hirata [Mon, 2 Feb 2004 02:32:23 +0000 (02:32 +0000)]
mcore.c (block_move_sequence): Replace gen_rtx_CONST_INT with GEN_INT.

* config/mcore/mcore.c (block_move_sequence): Replace
gen_rtx_CONST_INT with GEN_INT.

From-SVN: r77094

20 years agoconfigure.in: Add pkgconfig check for glib and gthread.
Thomas Fitzsimmons [Mon, 2 Feb 2004 02:18:33 +0000 (02:18 +0000)]
configure.in: Add pkgconfig check for glib and gthread.

2004-02-01  Thomas Fitzsimmons  <fitzsim@redhat.com>

* configure.in: Add pkgconfig check for glib and gthread.
* configure: Regenerate.

From-SVN: r77093

20 years agore PR c++/13957 (Insufficient diagnostic for dependent expression parsed as non-type...
Giovanni Bajo [Mon, 2 Feb 2004 01:11:03 +0000 (01:11 +0000)]
re PR c++/13957 (Insufficient diagnostic for dependent expression parsed as non-type but instantiated as type)

PR c++/13957
* g++.dg/template/non-type-template-argument-1.C,
g++.dg/template/qualified-id1.C: Update dg-error marks.
* g++.dg/template/nontype6.C: New test.

From-SVN: r77091

20 years agore PR c++/13957 (Insufficient diagnostic for dependent expression parsed as non-type...
Giovanni Bajo [Mon, 2 Feb 2004 01:09:22 +0000 (01:09 +0000)]
re PR c++/13957 (Insufficient diagnostic for dependent expression parsed as non-type but instantiated as type)

PR c++/13957
* pt.c (tsubst_qualified_id): Improved error message when a type
is expected but not found.

From-SVN: r77090

20 years agopt.c (tsubst_qualified_id): Improved error message when a type is expected but not...
Giovanni Bajo [Mon, 2 Feb 2004 01:07:08 +0000 (01:07 +0000)]
pt.c (tsubst_qualified_id): Improved error message when a type is expected but not found.

* pt.c (tsubst_qualified_id): Improved error message when a type
is expected but not found.

From-SVN: r77089

20 years agoalias.c (record_set): Use hard_regno_nregs.
Jan Hubicka [Mon, 2 Feb 2004 00:17:18 +0000 (01:17 +0100)]
alias.c (record_set): Use hard_regno_nregs.

* alias.c (record_set): Use hard_regno_nregs.
* bt-load.c (find_btr_reference, note_btr_set): Likewise.
* builtins.c (apply_args_size): Likewise.
* caller-save.c (setup_save_areas, save_call_clobbered_regs,
mark_set_regs, add_stored_regs, mark_referenced_regs,
insert_restore, insert_save, insert_one_insn): Likewise.
* cfgcleanup.c: Include regs.h
(mark_effect, mentions_nonequal_regs): Likewise.
* cfgrtl.c (mark_killed_regs): Likewise
* combine.c (update_table_tick, record_value_for_reg,
record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
reg_bitfield_target_p, distribute_notes): Likewise.
* cse.c (mention_regs, insert, invalidate, invalidate_for_call,
exp_equiv_p, cse_insn): Likewise.
* cselib.c (cselib_lookup): Likewise.
(cselib_invalidate_regno, cselib_record_set): Likewise.
* df.c (df_ref_record): Likewise.
* dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
Likewise.
* flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
count_or_remove_death_notes_bb): Likewise.
* function.c (aggregate_value_p, keep_stack_depressed): Likewise.
* gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
* integrate.c (mark_stores): Likewise.
* jump.c (delete_prior_computation): Likewise.
* lcm.c (reg_dies, reg_becomes_live): Likewise.
* local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
* loop.c (LOOP_REGNO_NREGS): Likewise.
* postreload.c (reload_combine, reload_combine_note_store,
reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
* ra-colorize.c (combine, color_usable_p, get_free_reg,
calculate_dont_begin, calculate_dont_begin, colorize_one_web,
try_recolor_web, insert_coalesced_conflicts, check_colors,
break_precolored_alias): Likewise.
* ra-debug.c: Include regs.h
(ra_print_rtx_object): Likewise.
* ra-rewrite (choose_spill_colors): Likewise.
(spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
* ra.c (init_ra): Likewise.
* recog.c (reg_fits_class_p, peep2_reg_dead_p,
peep2_find_free_register): Likewise.
* reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
* regclass.c (hard_regno_nregs): New array.
(init_reg_modes_once): Initialize it.
(choose_hard_reg_mode): Use it.
(record_reg_classes): Likewise.
* regmove.c (mark_flags_life_zones): Likewise.
* regrename.c (note_sets, clear_dead_regs, regrename_optimize,
scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
copy_value, maybe_mode_change, find_oldest_value_reg,
copyprop_hardreg_forward_1):
* regs.h (hard_regno_nregs): Declare.
* realod.c (reload_inner_reg_of_subreg): Use it.
(push_reload, combine_reloads, find_dummy_reload,
hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
reload_adjust_reg_for_mode): Likewise.
* reload1.c (compute_use_by_pseudos, count_pseudo,
count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
allocate_reload_reg, choose_reload_regs, emit_reload_insns,
delete_output_reload): Likewise.
* resource.c (update_live_status, mark_referenced_resources,
mark_set_resources, mark_target_live_regs): Likewise.
* rtlanal.c:  Include regs.h
(refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
dead_or_set_regno_p, find_regno_note, find_reg_fusage,
subreg_regno_offset, subreg_offset_representable_p,
hoist_test_store): Likewise.
* sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
* sched-rgn.c (check_live_1, update_live_1): Likewise.
* stmt.c: Include regs.h
(decl_conflicts_with_clobbers_p): Likewise.
* varasm.c (make_decl_rtl): Likewise.
* Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.

From-SVN: r77088

20 years agoDaily bump.
GCC Administrator [Mon, 2 Feb 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r77085

20 years agostl_algo.h: Additional minor tweaks.
Paolo Carlini [Sun, 1 Feb 2004 23:19:55 +0000 (23:19 +0000)]
stl_algo.h: Additional minor tweaks.

2004-02-01  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algo.h: Additional minor tweaks.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_tree.h: Likewise.

From-SVN: r77082

20 years agovector.tcc (vector::_M_insert_aux(iterator)): Remove, unused.
Paolo Carlini [Sun, 1 Feb 2004 22:14:43 +0000 (22:14 +0000)]
vector.tcc (vector::_M_insert_aux(iterator)): Remove, unused.

2004-02-01  Paolo Carlini  <pcarlini@suse.de>

* include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
Remove, unused.

From-SVN: r77081

20 years agoarm.c, [...]: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
Kazu Hirata [Sun, 1 Feb 2004 21:21:45 +0000 (21:21 +0000)]
arm.c, [...]: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".

* config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
config/arm/linux-gas.h, config/arm/netbsd-elf.h,
config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
config/iq2000/iq2000.h, config/m32r/m32r.c,
config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
config/m68hc11/m68hc11.md, config/m68k/m68k.md,
config/mcore/mcore.c, config/mcore/mcore.h,
config/mcore/mcore.md, config/mips/mips.c,
config/ns32k/ns32k.h, config/ns32k/ns32k.md,
config/rs6000/rs6000.c, config/s390/s390.c,
config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
"gen_rtx (FOO, " with "gen_rtx_FOO (".

From-SVN: r77080

20 years agojvm.h (MAYBE_UNUSED): New macro tp mark probably unused arguments.
Michael Koch [Sun, 1 Feb 2004 20:05:03 +0000 (20:05 +0000)]
jvm.h (MAYBE_UNUSED): New macro tp mark probably unused arguments.

2004-02-01  Michael Koch  <konqueror@gmx.de>

* include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
arguments.
* jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
* verify.cc (debug_print): Mark 'fmt' unused.

From-SVN: r77079

20 years agostl_function.h: Additional minor tweaks.
Paolo Carlini [Sun, 1 Feb 2004 17:56:06 +0000 (17:56 +0000)]
stl_function.h: Additional minor tweaks.

2004-02-01  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_function.h: Additional minor tweaks.

From-SVN: r77078

20 years agodeque.tcc: Wrap overlong lines...
Paolo Carlini [Sun, 1 Feb 2004 17:34:44 +0000 (17:34 +0000)]
deque.tcc: Wrap overlong lines...

2004-02-01  Paolo Carlini  <pcarlini@suse.de>

* include/bits/deque.tcc: Wrap overlong lines, constify
a few variables, reformat according to the coding standards.
* include/bits/list.tcc: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_function.h: Likewise.
* include/bits/stl_iterator.h: Likewise.
* include/bits/stl_iterator_base_funcs.h: Likewise.
* include/bits/stl_iterator_base_types.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_relops.h: Likewise.
* include/bits/stl_set.h: Likewise.

From-SVN: r77077

20 years ago* config/h8300/h8300.md (two peephole2's): New.
Kazu Hirata [Sun, 1 Feb 2004 17:01:34 +0000 (17:01 +0000)]
* config/h8300/h8300.md (two peephole2's): New.

From-SVN: r77076

20 years agosol2-bi.h: Handle TARGET_CPU_ultrasparc3.
Eric Botcazou [Sun, 1 Feb 2004 15:19:12 +0000 (16:19 +0100)]
sol2-bi.h: Handle TARGET_CPU_ultrasparc3.

* config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
(CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
(ASM_CPU_SPEC): Likewise
* config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
(ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.

From-SVN: r77074

20 years ago* de.po: Update.
Joseph Myers [Sun, 1 Feb 2004 15:15:29 +0000 (15:15 +0000)]
* de.po: Update.

From-SVN: r77072

20 years agobuiltins.c (expand_builtin_pow): If flag_unsafe_math_optimizations isn't set...
Roger Sayle [Sun, 1 Feb 2004 15:03:15 +0000 (15:03 +0000)]
builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations isn't set...

* builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
(expand_builtin): Always call expand_builtin_pow.

From-SVN: r77071

20 years agobuiltins.def (BUILT_IN_SIGNBIT, [...]): New GCC builtins.
Roger Sayle [Sun, 1 Feb 2004 14:59:15 +0000 (14:59 +0000)]
builtins.def (BUILT_IN_SIGNBIT, [...]): New GCC builtins.

* builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
BUILT_IN_SIGNBITL): New GCC builtins.
* builtins.c (expand_builtin_signbit): New function to RTL expand
calls to signbit, signbitf and signbitl as inline intrinsics.
(expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
(fold_builtin_signbit): New function to perform constant folding
of signbit, signbitf and signbitl.
(fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.

* doc/extend.texi: Document new signbit{,f,l} builtins.

* gcc.dg/builtins-1.c: Also test for __builtin_signbit{,f,l}.
* gcc.dg/builtins-31.c: New testcase.
* gcc.dg/builtins-32.c: New testcase.

From-SVN: r77070

20 years ago* config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
Richard Sandiford [Sun, 1 Feb 2004 11:46:42 +0000 (11:46 +0000)]
* config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.

From-SVN: r77066

20 years agostl_bvector.h: Wrap overlong lines...
Paolo Carlini [Sun, 1 Feb 2004 11:25:21 +0000 (11:25 +0000)]
stl_bvector.h: Wrap overlong lines...

2004-02-01  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_bvector.h: Wrap overlong lines, constify
a few variables, reformat according to the coding standards.
* include/bits/stl_tree.h: Likewise.

From-SVN: r77065

20 years agomips.h (PREDICATE_CODES): Remove entries for "mips_const_double_ok" and "simple_memor...
Chris Demetriou [Sun, 1 Feb 2004 08:05:50 +0000 (08:05 +0000)]
mips.h (PREDICATE_CODES): Remove entries for "mips_const_double_ok" and "simple_memory_operand"...

2004-02-01  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.h (PREDICATE_CODES): Remove entries for
        "mips_const_double_ok" and "simple_memory_operand", which were
        removed from the MIPS port with the mips-3_4-rewrite branch merge.
        * config/mips/mips.c (mips16_lay_out_constants): Update comment
        for removal of simple_memory_operand.

From-SVN: r77064

20 years agoDaily bump.
GCC Administrator [Sun, 1 Feb 2004 00:16:12 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r77061

20 years agostl_algo.h: Minor additional reformat, add copyright year.
Paolo Carlini [Sat, 31 Jan 2004 23:51:44 +0000 (23:51 +0000)]
stl_algo.h: Minor additional reformat, add copyright year.

2004-01-31  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algo.h: Minor additional reformat, add
copyright year.
* include/bits/stl_algobase.h: Add copyright year.

From-SVN: r77058

20 years agoc4x.md: Use GEN_INT instead of gen_rtx (CONST_INT, ...).
Kazu Hirata [Sat, 31 Jan 2004 23:21:25 +0000 (23:21 +0000)]
c4x.md: Use GEN_INT instead of gen_rtx (CONST_INT, ...).

* config/c4x/c4x.md: Use GEN_INT instead of
gen_rtx (CONST_INT, ...).

From-SVN: r77057

20 years ago* varasm.c (output_constant_pool): Don't zap the pool.
Richard Henderson [Sat, 31 Jan 2004 23:13:23 +0000 (15:13 -0800)]
* varasm.c (output_constant_pool): Don't zap the pool.

From-SVN: r77056

20 years agogenrecog.c (decision_type): Add DT_const_int.
Kazu Hirata [Sat, 31 Jan 2004 23:08:52 +0000 (23:08 +0000)]
genrecog.c (decision_type): Add DT_const_int.

* genrecog.c (decision_type): Add DT_const_int.
(write_cond) [DT_const_int]: Print a comparison against small
constant.
(write_node): Simplify comparisons against small constants
before printing tests.

From-SVN: r77055

20 years agom32r.c (m32r_load_pic_register): Use GEN_INT instead of gen_rtx_CONST_INT.
Kazu Hirata [Sat, 31 Jan 2004 22:58:46 +0000 (22:58 +0000)]
m32r.c (m32r_load_pic_register): Use GEN_INT instead of gen_rtx_CONST_INT.

* config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
instead of gen_rtx_CONST_INT.

From-SVN: r77054

20 years agoxtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT instead of gen_rtx_CONST_INT.
Kazu Hirata [Sat, 31 Jan 2004 22:38:00 +0000 (22:38 +0000)]
xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT instead of gen_rtx_CONST_INT.

* config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
instead of gen_rtx_CONST_INT.

From-SVN: r77053

20 years agotarget-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as hook_bool_CUMULATIVE_ARGS_false.
Kazu Hirata [Sat, 31 Jan 2004 22:12:55 +0000 (22:12 +0000)]
target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as hook_bool_CUMULATIVE_ARGS_false.

* target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
hook_bool_CUMULATIVE_ARGS_false.
* targhooks.c (default_strict_argument_naming): Rename to
hook_bool_CUMULATIVE_ARGS_false.
* targhooks.h: Update the prototype for
default_strict_argument_naming.

From-SVN: r77052

20 years agosh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
Kazu Hirata [Sat, 31 Jan 2004 22:09:22 +0000 (22:09 +0000)]
sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".

* config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
* config/sh/sh.h: Likewise.
* config/sh/sh.md: Likewise.

From-SVN: r77051

20 years agostl_algo.h: Wrap overlong lines...
Paolo Carlini [Sat, 31 Jan 2004 21:37:11 +0000 (21:37 +0000)]
stl_algo.h: Wrap overlong lines...

2004-01-31  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algo.h: Wrap overlong lines, constify
a few variables, reformat according to the coding standards.
* include/bits/stl_algobase.h: Likewise.
* include/bits/stl_heap.h: Likewise.

From-SVN: r77050

20 years ago* doc/invoke.texi (SPARC options): Restructure and update.
Eric Botcazou [Sat, 31 Jan 2004 20:09:22 +0000 (21:09 +0100)]
* doc/invoke.texi (SPARC options): Restructure and update.

From-SVN: r77048

20 years agosystem.h (PROMOTE_FUNCTION_ARGS, [...]): Poison.
Kazu Hirata [Sat, 31 Jan 2004 18:46:11 +0000 (18:46 +0000)]
system.h (PROMOTE_FUNCTION_ARGS, [...]): Poison.

* system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
STRICT_ARGUMENT_NAMING): Poison.
* target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
hook_bool_tree_false.
* targhooks.c (default_promote_function_args): Remove.
(default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
Don't check incoming.
(default_strict_argument_naming): Don't use
STRICT_ARGUMENT_NAMING.
* targhooks.h: Remove the prototype for
default_promote_function_args.

From-SVN: r77047

20 years agoi386-protos.h: Remove the prototype for ix86_setup_incoming_varargs.
Kazu Hirata [Sat, 31 Jan 2004 18:42:55 +0000 (18:42 +0000)]
i386-protos.h: Remove the prototype for ix86_setup_incoming_varargs.

* config/i386/i386-protos.h: Remove the prototype for
ix86_setup_incoming_varargs.
* config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
(ix86_setup_incoming_varargs): Make it static.
* config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.

From-SVN: r77046

20 years agoclass.c: Fix comment typos.
Kazu Hirata [Sat, 31 Jan 2004 17:58:53 +0000 (17:58 +0000)]
class.c: Fix comment typos.

* class.c: Fix comment typos.
* decl.c: Likewise.
* error.c: Likewise.
* parser.c: Likewise.
* pt.c: Likewise.
* search.c: Likewise.
* typeck.c: Likewise.

From-SVN: r77045

20 years agobasic_string.h (_Rep::operator[]): Remove, unused.
Paolo Carlini [Sat, 31 Jan 2004 17:50:46 +0000 (17:50 +0000)]
basic_string.h (_Rep::operator[]): Remove, unused.

2004-01-31  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.h (_Rep::operator[]): Remove, unused.

* include/bits/basic_string.h: Fix two comments.

From-SVN: r77044

20 years agoalloc-pool.c: Fix comment typos.
Kazu Hirata [Sat, 31 Jan 2004 17:47:43 +0000 (17:47 +0000)]
alloc-pool.c: Fix comment typos.

* alloc-pool.c: Fix comment typos.
* builtin-types.def: Likewise.
* builtins.def: Likewise.
* c-pretty-print.c: Likewise.
* df.h: Likewise.
* reload1.c: Likewise.

From-SVN: r77043

20 years ago2004-01-31 Per Bothner <per@bothner.com>
Per Bothner [Sat, 31 Jan 2004 17:38:45 +0000 (09:38 -0800)]
2004-01-31  Per Bothner  <per@bothner.com>

* include/ext/mt_allocator.h
(__mt_alloc::_S_thread_freelist_mutex): Guard with
__GTHREAD_MUTEX_INIT.

From-SVN: r77042

20 years agoinvoke.texi: Follow spelling conventions.
Kazu Hirata [Sat, 31 Jan 2004 17:31:40 +0000 (17:31 +0000)]
invoke.texi: Follow spelling conventions.

* doc/invoke.texi: Follow spelling conventions.
* doc/tm.texi: Likewise.

From-SVN: r77040

20 years agoinstall.texi: Fix typos.
Kazu Hirata [Sat, 31 Jan 2004 17:04:51 +0000 (17:04 +0000)]
install.texi: Fix typos.

* doc/install.texi: Fix typos.
* doc/invoke.texi: Likewise.

From-SVN: r77037

20 years agos390.c (s390_decompose_address): Do not treat virtual registers as pointers.
Ulrich Weigand [Sat, 31 Jan 2004 17:01:24 +0000 (17:01 +0000)]
s390.c (s390_decompose_address): Do not treat virtual registers as pointers.

* config/s390/s390.c (s390_decompose_address): Do not treat virtual
registers as pointers.
* config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.

From-SVN: r77036

20 years agobasic_string.tcc (_Rep::_S_create): Minor tweak.
Paolo Carlini [Sat, 31 Jan 2004 15:39:52 +0000 (15:39 +0000)]
basic_string.tcc (_Rep::_S_create): Minor tweak.

2004-01-31  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.

From-SVN: r77035

20 years agocall-super-2.m: Update line numbers for the including of stddef.h.
Andrew Pinski [Sat, 31 Jan 2004 09:49:14 +0000 (09:49 +0000)]
call-super-2.m: Update line numbers for the including of stddef.h.

2004-01-30  Andrew Pinski  <pinskia@physics.uc.edu>

        * objc.dg/call-super-2.m: Update line numbers
        for the including of stddef.h.

From-SVN: r77027

20 years agocombine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine and restore it to...
Paolo Bonzini [Sat, 31 Jan 2004 09:21:18 +0000 (09:21 +0000)]
combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine and restore it to...

2004-01-31  Paolo Bonzini  <bonzini@gnu.org>

  * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
and restore it to gen_lowpart_general on exit.
(gen_lowpart_for_combine): Adjust all callers to go through
gen_lowpart.
* cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
and restore it to gen_lowpart_general on exit.
(gen_lowpart_if_possible): Adjust all callers to go through
gen_lowpart.
* emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
(gen_lowpart): Declare as pointer to function, initialized to
gen_lowpart_general.
* rtl.h (gen_lowpart): Declare as pointer to function.

From-SVN: r77026

20 years agobt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
Kazu Hirata [Sat, 31 Jan 2004 08:02:55 +0000 (08:02 +0000)]
bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".

* bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
* calls.c: Likewise.
* emit-rtl.c: Likewise.
* function.c: Likewise.
* reload1.c: Likewise.
* config/i386/cygming.h: Likewise.
* config/i386/i386.c: Likewise.
* config/i386/winnt.c: Likewise.

From-SVN: r77025

20 years agore PR bootstrap/9249 (bootstrap fails with --enable-__cxa-atexit on Solaris)
Dara Hazeghi [Sat, 31 Jan 2004 04:18:15 +0000 (04:18 +0000)]
re PR bootstrap/9249 (bootstrap fails with --enable-__cxa-atexit on Solaris)

2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>

        PR bootstrap/9249
        * doc/install.texi: document --enable-__cxa_atexit option.
        * configure.ac: Disable __cxa_atexit if not supported.
        * configure: Regenerate.

From-SVN: r77023

20 years agoggc-zone.c (ggc_free): New function.
Daniel Berlin [Sat, 31 Jan 2004 02:18:25 +0000 (02:18 +0000)]
ggc-zone.c (ggc_free): New function.

2003-01-30  Daniel Berlin  <dberlin@dberlin.org>

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

From-SVN: r77019

20 years agoalloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
Kazu Hirata [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.

From-SVN: r77018

20 years agoMakefile.in (abs_docdir, abs_srcdir): Define.
Kelley Cook [Sat, 31 Jan 2004 00:50:03 +0000 (00:50 +0000)]
Makefile.in (abs_docdir, abs_srcdir): Define.

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).

From-SVN: r77017

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

From-SVN: r77012

20 years agogenconfig.c (main): Have CC0_P check its operand even on a target without cc0.
Kazu Hirata [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.

* genconfig.c (main): Have CC0_P check its operand even on a
target without cc0.

From-SVN: r77009

20 years agore PR c++/13693 ([tree-ssa] build failure in mipsisa64-elf)
Richard Henderson [Fri, 30 Jan 2004 23:37:39 +0000 (15:37 -0800)]
re PR c++/13693 ([tree-ssa] build failure in mipsisa64-elf)

        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.

From-SVN: r77008

20 years ago6.cc: New.
Paolo Carlini [Fri, 30 Jan 2004 23:26:13 +0000 (23:26 +0000)]
6.cc: New.

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.

From-SVN: r77006

20 years agoalpha.c: Remove mentions of deprecates macros in comments...
Kazu Hirata [Fri, 30 Jan 2004 23:16:23 +0000 (23:16 +0000)]
alpha.c: Remove mentions of deprecates macros in comments...

* 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.

From-SVN: r77005

20 years agore PR rtl-optimization/12147 (Wrong code with -O2 in context of reload)
Ulrich Weigand [Fri, 30 Jan 2004 23:10:36 +0000 (23:10 +0000)]
re PR rtl-optimization/12147 (Wrong code with -O2 in context of reload)

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.

From-SVN: r77003

20 years agoconfigure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
Michael Koch [Fri, 30 Jan 2004 22:01:11 +0000 (22:01 +0000)]
configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.

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.

From-SVN: r76993

20 years agoFix whitespace.
David Edelsohn [Fri, 30 Jan 2004 20:47:32 +0000 (15:47 -0500)]
Fix whitespace.

From-SVN: r76990

20 years agoreload.c (get_secondary_mem): Fix updating of secondary_memlocs_elim_used.
Jan Hubicka [Fri, 30 Jan 2004 20:42:24 +0000 (21:42 +0100)]
reload.c (get_secondary_mem): Fix updating of secondary_memlocs_elim_used.

* reload.c (get_secondary_mem):  Fix updating of
secondary_memlocs_elim_used.

From-SVN: r76989

20 years agovarasm.c (struct rtx_const, [...]): Remove.
Richard Henderson [Fri, 30 Jan 2004 19:16:39 +0000 (11:16 -0800)]
varasm.c (struct rtx_const, [...]): Remove.

        * 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.

From-SVN: r76985

20 years agoRemove #if 0. Copy operands[1] to pseudo for simplify_gen_subreg.
Fariborz Jahanian [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.

From-SVN: r76984

20 years agogcse.c (bypass_block): Fix a typo in the previous check-in to the file.
Kazu Hirata [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.

* gcse.c (bypass_block): Fix a typo in the previous check-in
to the file.

From-SVN: r76981

20 years agoallocator_thread.cc (do_loop): Don't use clear, but instead assign.
Felix Yen [Fri, 30 Jan 2004 18:14:42 +0000 (18:14 +0000)]
allocator_thread.cc (do_loop): Don't use clear, but instead assign.

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.

From-SVN: r76979

20 years agodemangle.cc: Add instantiations.
Benjamin Kosnik [Fri, 30 Jan 2004 17:54:10 +0000 (17:54 +0000)]
demangle.cc: Add instantiations.

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.

From-SVN: r76978

20 years agoallocator.cc: Protect _S_get_thread_id() and _S_thread_key_destr() with #ifdef __GTHR...
David Edelsohn [Fri, 30 Jan 2004 17:45:01 +0000 (17:45 +0000)]
allocator.cc: Protect _S_get_thread_id() and _S_thread_key_destr() with #ifdef __GTHREADS.

        * src/allocator.cc: Protect _S_get_thread_id() and
        _S_thread_key_destr() with #ifdef __GTHREADS.

From-SVN: r76977

20 years agotoplev.c: Include alloc-pool.h.
Andrew Pinski [Fri, 30 Jan 2004 17:43:24 +0000 (09:43 -0800)]
toplev.c: Include alloc-pool.h.

2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>

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

From-SVN: r76976

20 years agoReshuffle performance testsuite.
Paolo Carlini [Fri, 30 Jan 2004 17:06:42 +0000 (17:06 +0000)]
Reshuffle performance testsuite.

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.

From-SVN: r76974

20 years agocase-range1.C, [...]: New tests.
Michael Matz [Fri, 30 Jan 2004 17:05:09 +0000 (17:05 +0000)]
case-range1.C, [...]: New tests.

       * g++.dg/ext/case-range1.C, g++.dg/ext/case-range2.C,
       g++.dg/ext/case-range3.C: New tests.

From-SVN: r76973

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

From-SVN: r76972

20 years agore PR c++/13813 ([DR206] Incomplete member variables in a template.)
Giovanni Bajo [Fri, 30 Jan 2004 16:40:43 +0000 (16:40 +0000)]
re PR c++/13813 ([DR206] Incomplete member variables in a template.)

DR206
PR c++/13813
* g++.dg/template/member4.C: New test.

From-SVN: r76971

20 years agore PR c++/13813 ([DR206] Incomplete member variables in a template.)
Giovanni Bajo [Fri, 30 Jan 2004 16:35:03 +0000 (16:35 +0000)]
re PR c++/13813 ([DR206] Incomplete member variables in a template.)

DR206
PR c++/13813
* decl.c (grokdeclarator): Check immediatly type completeness for
non-dependent types.

From-SVN: r76970

20 years agocombine.c (simplify_shift_const, case XOR): Be careful when commuting XOR with ASHIFTRT.
Richard 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.

* combine.c (simplify_shift_const, case XOR): Be careful when
commuting XOR with ASHIFTRT.

From-SVN: r76965

20 years agore PR c++/13683 (bogus warning about passing non-PODs through ellipsis)
Giovanni Bajo [Fri, 30 Jan 2004 15:12:45 +0000 (15:12 +0000)]
re PR c++/13683 (bogus warning about passing non-PODs through ellipsis)

PR c++/13683
* g++.dg/template/sizeof6.C: New test.

From-SVN: r76964

20 years agore PR c++/13683 (bogus warning about passing non-PODs through ellipsis)
Giovanni Bajo [Fri, 30 Jan 2004 15:08:37 +0000 (15:08 +0000)]
re PR c++/13683 (bogus warning about passing non-PODs through ellipsis)

PR c++/13683
* call.c (convert_arg_to_ellipsis): Don't emit a warning if within
a sizeof expression.block

From-SVN: r76963

20 years agosparc-protos.h: Remove the prototype for sparc_builtin_saveregs.
Kazu Hirata [Fri, 30 Jan 2004 14:46:43 +0000 (14:46 +0000)]
sparc-protos.h: Remove the prototype for sparc_builtin_saveregs.

* 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.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>
From-SVN: r76961

20 years agore PR c/12818 (-fwritable strings triggers bad code generation)
Eric Botcazou [Fri, 30 Jan 2004 14:16:43 +0000 (15:16 +0100)]
re PR c/12818 (-fwritable strings triggers bad code generation)

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.

From-SVN: r76958

20 years ago* gnu/java/net/PlainSocketImpl.java
Mohan Embar [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.

From-SVN: r76956

20 years agobasic_string.tcc (_Rep::_S_create): Never allocate a string bigger than max_size...
Paolo Carlini [Fri, 30 Jan 2004 13:23:42 +0000 (13:23 +0000)]
basic_string.tcc (_Rep::_S_create): Never allocate a string bigger than max_size()...

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.

From-SVN: r76955

20 years agoalloc-pool.c: Include hashtab.h
Jan Hubicka [Fri, 30 Jan 2004 11:36:05 +0000 (12:36 +0100)]
alloc-pool.c: Include hashtab.h

* 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.

From-SVN: r76951

20 years agoreload.c (secondary_memlocs_elim_used): New static variable.
Jan Hubicka [Fri, 30 Jan 2004 11:28:37 +0000 (11:28 +0000)]
reload.c (secondary_memlocs_elim_used): New static variable.

* reload.c (secondary_memlocs_elim_used): New static variable.
(get_secondary_mem): Update it.
(find_reloads): Use it.

From-SVN: r76950

20 years agoreload.c (secondary_memlocs_elim_used): New static variable.
Jan Hubicka [Fri, 30 Jan 2004 11:28:21 +0000 (11:28 +0000)]
reload.c (secondary_memlocs_elim_used): New static variable.

* reload.c (secondary_memlocs_elim_used): New static variable.
(get_secondary_mem): Update it.
(find_reloads): Use it.

[[Split portion of a mixed commit.]]

From-SVN: r76949.2

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

From-SVN: r76948

20 years agobasic_string.tcc (_S_construct(_InIterator, _InIterator, const _Alloc&, input_iterato...
Paolo Carlini [Fri, 30 Jan 2004 09:58:45 +0000 (09:58 +0000)]
basic_string.tcc (_S_construct(_InIterator, _InIterator, const _Alloc&, input_iterator_tag)): Simplify the double loop, streamline.

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.

From-SVN: r76937

20 years agoconfigure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for s390*-*-* targets by...
Ulrich Weigand [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.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
s390*-*-* targets by specifying a 'nop' insn.
* configure: Regenerate.

From-SVN: r76934

20 years agocheck_performance: Only compile with $THREAD_FLAG when test is marked to require it.
Loren J. Rittle [Fri, 30 Jan 2004 08:24:27 +0000 (08:24 +0000)]
check_performance: Only compile with $THREAD_FLAG when test is marked to require it.

* 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.

From-SVN: r76932

20 years agore PR target/11475 (reload ICE with bitfields)
Eric Botcazou [Fri, 30 Jan 2004 07:00:45 +0000 (08:00 +0100)]
re PR target/11475 (reload ICE with bitfields)

PR target/11475
* config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.

From-SVN: r76928

20 years agoBufferedReader.java (sbuf): New field.
Mohan Embar [Fri, 30 Jan 2004 06:33:43 +0000 (06:33 +0000)]
BufferedReader.java (sbuf): New field.

* 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.

From-SVN: r76927

20 years agore PR c++/13865 ([tree-ssa] dtor runs prematurely for loop-scoped variable)
Jason Merrill [Fri, 30 Jan 2004 04:35:26 +0000 (23:35 -0500)]
re PR c++/13865 ([tree-ssa] dtor runs prematurely for loop-scoped variable)

        PR c++/13865
        * c-simplify.c (gimplify_for_stmt): Reorganize to fix cleanups.

[[Split portion of a mixed commit.]]

From-SVN: r76923.2

20 years agoc_locale.h: Change ::malloc() to new char[].
Stephen M. Webb [Fri, 30 Jan 2004 03:43:00 +0000 (03:43 +0000)]
c_locale.h: Change ::malloc() to new char[].

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().

From-SVN: r76922

20 years agoexpr.c (build_field_ref): Move variable definition up.
Andrew Pinski [Fri, 30 Jan 2004 01:29:29 +0000 (01:29 +0000)]
expr.c (build_field_ref): Move variable definition up.

2004-01-28  Andrew Pinski  <pinskia@physics.uc.edu>

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

From-SVN: r76919

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

From-SVN: r76904

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

From-SVN: r76900

20 years agoIndex: libjava/ChangeLog
Scott Gilbertson [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.

From-SVN: r76899

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

From-SVN: r76895

20 years agoallocator.h: Temporary switch to new_allocator as the default to unjam bootstraps.
Benjamin Kosnik [Thu, 29 Jan 2004 20:42:42 +0000 (20:42 +0000)]
allocator.h: Temporary switch to new_allocator as the default to unjam bootstraps.

2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>

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

From-SVN: r76894

20 years agoMakefile.am: Added gnu/awt/xlib/XFontPeer.java.
Scott Gilbertson [Thu, 29 Jan 2004 19:28:26 +0000 (19:28 +0000)]
Makefile.am: Added gnu/awt/xlib/XFontPeer.java.

* 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.

From-SVN: r76891

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

* emit-rtl.c (change_address): Use XEXP (memref, 0) instead
of addr when creating MEM copy.

From-SVN: r76888

20 years agoFix Ada breakage.
Devang Patel [Thu, 29 Jan 2004 18:42:58 +0000 (10:42 -0800)]
Fix Ada breakage.

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

From-SVN: r76887

20 years agore PR inline-asm/6162 (i386 asm reloader ice in reload_cse_simplify_operands)
Ian Lance Taylor [Thu, 29 Jan 2004 18:40:01 +0000 (18:40 +0000)]
re PR inline-asm/6162 (i386 asm reloader ice in reload_cse_simplify_operands)

PR inline-asm/6162
* reload.c (find_reloads): Only support one pair of commutative
operands.

From-SVN: r76886