Paolo Bonzini [Tue, 30 Oct 2001 12:14:28 +0000 (12:14 +0000)]
Localization fixes.
2001-10-30 Paolo Bonzini <bonzini@gnu.org>
Localization fixes.
* c-decl.c (parmlist_tags_warning, start_struct,
check_for_loop_decls): Separate messages for struct, union and
enum cases to allow for languages in which they have different
genders.
* c-format.c (scanf_flag_specs): Separate short and long name of
the assignment suppression feature.
(check_format_types): Localize "pointer" and "different types"
strings.
* c-lex.c (lex_number): Localize "an unsigned long int" and
related strings.
(lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
warning message.
* c-typeck.c (build_unary_up): Separate messages for increment and
decrement cases to allow for languages in which they use different
articles. Localize the strings "increment" and "decrement" in one
case.
Jan Hubicka [Tue, 30 Oct 2001 11:13:49 +0000 (12:13 +0100)]
lcm.c (optimize_mode_switching): Do not rebuild liveness information when no changes has been made.
* lcm.c (optimize_mode_switching): Do not rebuild liveness information
when no changes has been made.
* gcse.c (reg_set_bitmap): Turn into reg_set.
(modify_mem_list_set, canon_modify_mem_list_set)
(clear_modify_mem_tables, free_modify_mem_tables): New.
(gcse_main); Use free_modify_mem_tables.
(free_gcse_mem): Likewise; free the bitmaps.
(alloc_gcse_main): Initialize the bitmaps.
(canon_list_insert): Set canon_modify_mem_list_set.
(record_last_mem_set_info): Likewise; set modify_mem_list_set.
(compute_hash_table): Use clear_modify_mem_tables.
(reset_opr_set_tables): Likewise.
(oprs_not_set_p): reg_set_bitmap is regset.
(mark_set, mark_clobber): Likewise.
* df.h (DF_EQUIV_NOTES): New constant.
(df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
when asked for.
* sched-rgn.c (CHECK_DEAD_NOTES): New constant.
(init_regions, schedule_insns): Conditionalize the checking
code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
Bryce McKinlay [Tue, 30 Oct 2001 04:43:16 +0000 (04:43 +0000)]
re PR java/4717 (miscompiling class reference)
* mangle.c (find_compression_record_match): Don't match compression
records for package name elements unless they occur at the start of
the name. Fix for PR java/4717.
Zack Weinberg [Tue, 30 Oct 2001 04:43:03 +0000 (04:43 +0000)]
tradcpp.c: Include intl.h.
* tradcpp.c: Include intl.h. Rename WARNING, ERROR, FATAL to
MT_WARNING, MT_ERROR, MT_FATAL.
(main): Call gcc_init_libintl.
(v_message): Call gettext on msgid and "warning: "
* tradcif.y: Include intl.h.
(yyerror): Make parameter definition consistent with
prototype. Call gettext on msgid argument.
Zack Weinberg [Tue, 30 Oct 2001 04:27:17 +0000 (04:27 +0000)]
convert.c, [...]: Use /* */ for all commentary, not #if 0 ...
* convert.c, inout.c, loop.c, nloop.c, tasking.c, timing.c,
typeck.c: Use /* */ for all commentary, not #if 0 ... #endif.
Change the nested comments this creates to // notation.
Un-double apostrophes.
Richard Kenner [Sun, 28 Oct 2001 02:30:03 +0000 (02:30 +0000)]
dwarf2out.c (reg_number): Abort if pseudo.
* dwarf2out.c (reg_number): Abort if pseudo.
(reg_loc_descriptor): Return 0 if pseudo.
(is_based_loc): Return 0 if pseudo.
(mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
recursive calls.
(concat_loc_descriptor): Return 0 if either part's descriptor is 0.
(loc_descriptor): Return 0 if can't find location and handle 0
return from recursive calls.
(loc_descriptor_from_tree): Likewise.
Fix handling of indirect.
Also return 0 for PLACEHOLDER_EXPR.
Clean up COMPONENT_REF cases.
(add_AT_location_descriptor): Simplify, but handle 0 return from
loc_descriptor.
(add_const_value_attribute): Avoid shift count warning.
(add_bound_info): Remove test for PLACEHOLDER_EXPR here.
Set comp_unit_die as context if not in function.
Richard Kenner [Sat, 27 Oct 2001 22:41:00 +0000 (22:41 +0000)]
mips-protos.h: Break up long lines.
* config/mips/mips-protos.h: Break up long lines.
Remove needless #ifdef/#endif blocks.
Don't declare functions declared in file made by genpreds or recog.h.
* config/mips/mips.c (mips_output_function_prologue): TSIZE
is now HOST_WIDE_INT; delete unneeded casts.
* config/mips/mips.h: Don't use #elif.
* expr.c (stor_constructor_field): Always call adjust_address.
Copy TARGET before changing its alias set.
(store_field): Likewise, for TO_RTX.
(get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
replacement.
(safe_from_p, case ADDR_EXPR): Properly check for conflict.
(find_placeholder): Return 0 if can't find object.
(expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
returns 0.
Jan Hubicka [Sat, 27 Oct 2001 10:17:44 +0000 (12:17 +0200)]
cfgcleanup.c (merge_blocks_move_predecessor_nojumps, [...]): Set BB_UPDATE_LIFE.
* cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
(merge_blocks): Properly udpate life after making edge nonfallthru.
* cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
Kazu Hirata [Fri, 26 Oct 2001 17:06:27 +0000 (17:06 +0000)]
h8300.c (get_shift_alg): Clean up.
* config/h8300/h8300.c (get_shift_alg): Clean up. Return the
algorithm through the shift_info structure.
(emit_a_shift): Update the use of get_shift_alg.
Robert Dewar [Fri, 26 Oct 2001 16:44:45 +0000 (16:44 +0000)]
sinfo.ads: Define Associated_Node to overlap Entity field.
* sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
* sinfo.ads: Clarify use of Associated_Node (documentation only).
* sem_ch12.adb: Change Node4 to Associated_Node. Change
Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
much more narrowly in places where needed. These are cleanups.
Joel Brobecker [Fri, 26 Oct 2001 16:09:47 +0000 (18:09 +0200)]
5zosinte.ads (null_pthread): new constant.
* 5zosinte.ads (null_pthread): new constant.
* 5ztaprop.adb:
(Initialize_TCB): Initialize thread ID to null, to be able to verify
later that this field has been set.
(Finalize_TCB): ditto.
(Suspend_Task): Verify that the thread ID is not null before using it.
(Resume_Task): ditto.
* s-tasdeb.adb:
(Resume_All_Tasks): Lock the tasks list before using it.
(Suspend_All_Tasks): ditto.
Richard Kenner [Fri, 26 Oct 2001 16:01:07 +0000 (16:01 +0000)]
decl.c (gnat_to_gnu_entity, [...]): Make constant variant of designated type for Is_Access_Constant.
* decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
Make constant variant of designated type for Is_Access_Constant.
Call update_pointer_to with main variant.
* trans.c (process_freeze_entity, process_type):
Call update_pointer_to on main variant.
* utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
If main variant, update all other variants.
* utils2.c (build_unary_op, case INDIRECT_REF): No longer set
TREE_STATIC.
Daniel Berlin [Fri, 26 Oct 2001 14:43:47 +0000 (14:43 +0000)]
sched-rgn.c: Remove bitset typedef.
2001-10-27 Daniel Berlin <dan@cgsoftware.com>
* sched-rgn.c: Remove bitset typedef.
Change bitset to sbitmap in prototypes / variable types.
Remove bbset_size.
Remove edgeset_bits.
Remove edgeset_size.
s/BITSET_ADD/SET_BIT/g
s/BITSET_INVERT/sbitmap_ones/g
s/BITSET_INTER/sbitmap_a_and_b/g
s/BITSET_UNION/sbitmap_a_or_b/g
s/BITSET_DIFFER/sbitmap_difference/g
s/bitset_member/TEST_BIT/g
(BITSET_*): Removed.
(bitset_member): Removed.
(extract_bitlst): Rewrite, now that we have sbitmaps, we can use
EXECUTE_IF_SET_IN_SBITMAP.
(split_edges): Rewrite, use sbitmap functions instead of bitset
operations.
(schedule_region): Allocate/free sbitmaps, rather than bitsets.
Benjamin Kosnik [Fri, 26 Oct 2001 02:13:31 +0000 (02:13 +0000)]
os_defines.h: Set to 64 bit longs with __s390x__ only.
2001-10-25 Benjamin Kosnik <bkoz@redhat.com>
Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/os/gnu-linux/bits/os_defines.h: Set to 64 bit longs with
__s390x__ only.
* include/bits/std_limits.h: Fix wchar_t issues.
* config/os/aix/bits/os_defines.h: Fix.
Co-Authored-By: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> Co-Authored-By: Ulrich Weigand <uweigand@de.ibm.com>
From-SVN: r46523