Richard Kenner [Fri, 3 Sep 1999 03:14:24 +0000 (23:14 -0400)]
Add myself to Blanket Write Privs and as arc port maintainer.
From-SVN: r29075
Jeffrey A Law [Fri, 3 Sep 1999 02:20:09 +0000 (02:20 +0000)]
* i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
From-SVN: r29074
Mark Mitchell [Fri, 3 Sep 1999 00:24:24 +0000 (00:24 +0000)]
Readd file
From-SVN: r29072
Mark Mitchell [Fri, 3 Sep 1999 00:23:55 +0000 (00:23 +0000)]
Readd file
From-SVN: r29071
Mark Mitchell [Fri, 3 Sep 1999 00:13:58 +0000 (00:13 +0000)]
Remove test
From-SVN: r29070
Jeffrey A Law [Thu, 2 Sep 1999 23:55:52 +0000 (23:55 +0000)]
powerset.h (SET_WORD, [...]): Do not redefine based on USE_CHAR.
* powerset.h (SET_WORD, SET_SHORT, SET_CHAR): Do not redefine based
on USE_CHAR.
(USE_CHAR): No longer define.
* eqps.c ffsetclrps.c flsetclrps.c: Remove !USE_CHARS support.
From-SVN: r29069
Tom Tromey [Thu, 2 Sep 1999 23:47:38 +0000 (23:47 +0000)]
java-array.h (jobjectArrayjchar): Removed unused declaration.
* include/java-array.h (jobjectArrayjchar): Removed unused
declaration.
From-SVN: r29068
Tom Tromey [Thu, 2 Sep 1999 23:44:04 +0000 (23:44 +0000)]
gjavah.c (decode_signature_piece): Emit "::" in JArray<>.
* gjavah.c (decode_signature_piece): Emit "::" in JArray<>.
Handle nested arrays, like `[[I'.
From-SVN: r29067
J"orn Rennecke [Thu, 2 Sep 1999 22:10:15 +0000 (22:10 +0000)]
stmt.c (expand_asm_operands): Fix index into inout_mode when reading it.
* stmt.c (expand_asm_operands): Fix index into inout_mode when
reading it.
From-SVN: r29066
Kaveh R. Ghazi [Thu, 2 Sep 1999 21:57:09 +0000 (21:57 +0000)]
class.c (finish_class): Remove unused parameter, all callers changed.
* class.c (finish_class): Remove unused parameter, all callers
changed.
* expr.c (build_java_athrow): Change return type to void.
(java_lang_expand_expr): Make sure each case in switch returns a
value.
* java-tree.h (finish_class): Fix prototype to take void args.
* jcf-dump.c (usage): Mark with ATTRIBUTE_NORETURN.
(main): Issue return from main, not exit.
* jcf-parse.c (parse_class_file): Fix call to `finish_class'.
* jcf.h (jcf_unexpected_eof): Mark with ATTRIBUTE_NORETURN.
* jv-scan.c (main): Issue return from main, not exit.
* parse.y (check_abstract_method_definitions,
java_check_abstract_method_definitions): Add static prototypes.
(java_complete_expand_methods): Fix call to `finish_class'.
* verify.c (verify_jvm_instructions): Initialize variables `oldpc'
and `prevpc'.
From-SVN: r29065
Richard Henderson [Thu, 2 Sep 1999 20:01:46 +0000 (13:01 -0700)]
stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
* stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
* tm.texi (MD_ASM_CLOBBERS): Document it.
From-SVN: r29064
Tom Tromey [Thu, 2 Sep 1999 19:33:50 +0000 (19:33 +0000)]
natClassLoader.cc (_Jv_WaitForState): Call _Jv_PrepareCompiledClass while holding class mutex.
* java/lang/natClassLoader.cc (_Jv_WaitForState): Call
_Jv_PrepareCompiledClass while holding class mutex.
From-SVN: r29063
Mark Mitchell [Thu, 2 Sep 1999 19:14:06 +0000 (19:14 +0000)]
cp-tree.h (cp_function): Move here, from decl.c.
* cp-tree.h (cp_function): Move here, from decl.c.
(cp_function_chain): Declare.
(dtor_label): New macro, instead of variable.
(ctor_label): Likewise.
(current_base_init_list): Likewise.
(current_member_init_list): Likewise.
(base_init_expr): Likewise.
(current_class_ptr): Likewise.
(current_class_ref): Likewise.
(last_tree): Likewise.
(last_expr_type): Likewise.
(current_function_returns_value): Likewise.
(current_function_returns_null): Likewise.
(current_function_just_assigned_this): Likewise.
(current_function_parms_stored): Likewise.
(temp_name_counter): Likewise.
(static_labelno): Likewise.
(expanding_p): Likewise.
(stmts_are_full_exprs_p): Likewise.
(in_function_try_handler): Likewise.
(lang_type): Remove nested type_flags. All uses changed.
* call.c (ctor_label): Remove.
(dtor_label): Likewise.
* class.c (current_class_ptr): Remove.
(current_class_ref): Likewise.
* decl.c (static_labelno): Remove.
(dtor_label): Likewise.
(last_dtor_insn): New macro, instead of variable.
(last_parm_cleanup_insn): Likewise.
(original_result_rtx): Likewise.
(in_function_try_handler): Remove.
(named_label_uses): New macro, instead of variable.
(named_labels): Likewise.
(current_function_returns_value): Remove.
(current_function_returns_null): Likewise.
(current_function_assigns_this): New macro, instead of variable.
(current_function_just_assigned_this): Likewise.
(current_binding_level): Likewise.
(init_decl_processing): Call push_cp_function_context.
(cp_function): Move to cp-tree.h
(cp_function_chain): Make it global.
(temp_name_counter): Remove.
(push_cp_function_context): Simplify.
(pop_cp_function_context): Likewise.
* decl2.c (temp_name_counter): Remove.
* init_c (current_base_init_list): Likewise.
(current_member_init_list): Likewise.
(base_init_expr): Likewise.
* method.c (static_labelno): Likewise.
* pt.c (last_tree): Likewise.
* semantics.c (expanding_p): Likewise.
(stmts_are_full_exprs_p): Likewise.
(last_expr_type): Likewise.
* typeck.c (dtor_label): Likewise.
(ctor_label): Likewise.
From-SVN: r29062
Richard Henderson [Thu, 2 Sep 1999 17:29:25 +0000 (10:29 -0700)]
dwarf2out.c (dwarf2out_line): Constify `lastfile'.
* dwarf2out.c (dwarf2out_line): Constify `lastfile'.
* except.c (expand_rethrow): Remove unused variable.
* expr.c (do_jump_by_parts_greater_rtx): Likewise.
* flow.c (replace_insns): Likewise.
(create_edge_list, verify_edge_list): Likewise.
* gcse.c (cprop_cc0_jump): Protect declaration with HAVE_cc0.
* genemit.c (gen_expand): Only emit `operands[N]' decl if there
is special code to run.
(main): Don't define operands to emit_operand.
* genrecog.c (main): Don't emit an empty peephole2_insn function.
* rtl.h (NOTE_BASIC_BLOCK): Use X0BBDEF.
* alpha/alpha.h (normal_memory_operand): Declare.
(reg_no_subreg_operand): Declare.
* alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use HOST_WIDE_INT_PRINT_DEC.
From-SVN: r29061
Alex Samuel [Thu, 2 Sep 1999 17:29:11 +0000 (17:29 +0000)]
decl2.c (arg_assoc_template_arg): New prototype.
* decl2.c (arg_assoc_template_arg): New prototype. New function.
(arg_assoc_class): Use arg_assoc_template_arg for template
arguments.
(arg_assoc): Likewise.
* pt.c (mangle_class_name_for_template): Allow member template
template arguments.
From-SVN: r29060
Richard Henderson [Thu, 2 Sep 1999 17:20:19 +0000 (10:20 -0700)]
c-parse.in (compstmt_primary_start): New, broken out of first part of compstmt handling in primary.
* c-parse.in (compstmt_primary_start): New, broken out of first
part of compstmt handling in primary.
(primary): Use it. Add an error clause.
(compstmt_nostart): Renamed from compstmt; remove all
initial invocations of compstmt_start.
(compstmt): New.
From-SVN: r29059
Jeffrey A Law [Thu, 2 Sep 1999 09:37:20 +0000 (09:37 +0000)]
fold-const.c (fold_range_test): Do not try to fold the range test if the rhs or lhs has side effects.
* fold-const.c (fold_range_test): Do not try to fold the range
test if the rhs or lhs has side effects.
From-SVN: r29058
Nathan Sidwell [Thu, 2 Sep 1999 09:23:14 +0000 (09:23 +0000)]
ambig2.C: New test.
* g++.old-deja/g++.other/ambig2.C: New test.
* g++.old-deja/g++.other/cond5.C: New test.
* g++.old-deja/g++.other/lookup16.C: New test.
From-SVN: r29057
Nathan Sidwell [Thu, 2 Sep 1999 09:21:42 +0000 (09:21 +0000)]
call.c (build_conditional_expr): Warn on enum mismatches.
* call.c (build_conditional_expr): Warn on enum mismatches.
(convert_arg_to_ellipsis): Move non-pod check to after
conversion.
From-SVN: r29056
Jeffrey A Law [Thu, 2 Sep 1999 09:02:33 +0000 (09:02 +0000)]
combine.c (simplify_rtx): Recognize another case of a synthesized sign extension.
* combine.c (simplify_rtx): Recognize another case of a synthesized
sign extension.
From-SVN: r29055
Jeff Law [Thu, 2 Sep 1999 07:45:45 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r29054
Marc Espie [Thu, 2 Sep 1999 07:37:50 +0000 (07:37 +0000)]
* pexecute.c (pexecute): Fill in temp_base when needed.
From-SVN: r29053
Marc Espie [Thu, 2 Sep 1999 07:37:40 +0000 (07:37 +0000)]
protoize.c (gen_aux_info_file): Let pexecute call choose_temp_base if needed.
* protoize.c (gen_aux_info_file): Let pexecute call choose_temp_base if
needed.
From-SVN: r29052
Marc Espie [Thu, 2 Sep 1999 07:19:47 +0000 (07:19 +0000)]
980414-1.c: Fix assembler syntax to work with old assemblers too.
* gcc.dg/980414-1.c: Fix assembler syntax to work with old
assemblers too.
From-SVN: r29051
Finn Hakansson [Thu, 2 Sep 1999 06:47:15 +0000 (06:47 +0000)]
combine.c (simplify_shift_const): Remove extra semicolon.
* combine.c (simplify_shift_const): Remove extra semicolon.
* dwarf2out.c (remove_AT): Likewise.
* expmed.c (expand_mult): Likewise.
* gcov.c (create_program_flow_graph): Likewise.
* reorg.c (mostly_true_jump): Likewise.
From-SVN: r29050
Jeffrey A Law [Thu, 2 Sep 1999 06:39:43 +0000 (06:39 +0000)]
varasm.c (mark_constant_pool): When marking indirect references, only look at SYMBOL_REFs.
* varasm.c (mark_constant_pool): When marking indirect references,
only look at SYMBOL_REFs.
From-SVN: r29049
Tom Tromey [Thu, 2 Sep 1999 06:27:00 +0000 (06:27 +0000)]
posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
* include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
(_Jv_PthreadGetMutex): Use it.
(_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
(_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
(_Jv_MutexLock): Likewise.
(_Jv_MutexUnlock): Likewise.
* include/config.h.in: Rebuilt.
* acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
* configure: Rebuilt.
* libgcj.spec.in: Don't mention INTERPSPEC.
* configure.in (INTERPSPEC): Removed.
Only run pthreads-related checks when using POSIX threads. Check
for m_count and __m_count in mutex structure.
From-SVN: r29048
Jeffrey A Law [Thu, 2 Sep 1999 06:08:25 +0000 (06:08 +0000)]
except.c (expand_fixup_region_end): Do not peek at INSN_UID (node->entry->outer_context) for flag_new_exceptions.
* except.c (expand_fixup_region_end): Do not peek at
INSN_UID (node->entry->outer_context) for flag_new_exceptions.
From-SVN: r29047
Richard Henderson [Thu, 2 Sep 1999 05:47:47 +0000 (22:47 -0700)]
Fix data corruption. (Eeep!)
From-SVN: r29046
Geoffrey Keating [Thu, 2 Sep 1999 05:42:06 +0000 (05:42 +0000)]
flags.h: New variables align_loops...
* flags.h: New variables align_loops, align_loops_log,
align_jumps, align_jumps_log, align_labels, align_labels_log,
align_functions, align_functions_log.
* toplev.c: Define them.
(f_options): Handle -falign-* when they have no argument.
(main): Add logic to set variables for -falign-functions,
-falign-jumps, -falign-labels, -falign-loops.
Make it -fsched-verbose=<n> and -finline-limit=<n>.
(display_help): Change help to match options.
* final.c (LABEL_ALIGN): Default to align_labels_log.
(LABEL_ALIGN_MAX_SKIP): Default to align_labels-1.
(LOOP_ALIGN): Default to align_loops_log.
(LOOP_ALIGN_MAX_SKIP): Default to align_loops-1.
(LABEL_ALIGN_AFTER_BARRIER): Default to align_jumps_log.
(LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to align_jumps-1.
* varasm.c (assemble_start_function): Handle align_functions.
* config/sparc/sparc.h: Don't declare sparc_align_*.
Don't provide LABEL_ALIGN_AFTER_BARRIER or LOOP_ALIGN.
(DEFAULT_SPARC_ALIGN_FUNCS): Delete; take functionality into
sparc.c.
(FUNCTION_BOUNDARY): Fix incorrect use---it's not just a request,
it's a promise.
* config/sparc/sparc.c: Delete sparc_align_loops,
sparc_align_jumps, sparc_align_funcs and the corresponding string
variables.
(sparc_override_options): Default align_functions on ultrasparc.
Delete -malign-* handling.
* config/mips/mips.c (override_options): On 64-bit targets,
try to align code to 64-bit boundaries.
(print_operand): New substitution, %~,
which aligns labels to align_labels_log.
* config/mips/mips.md (div_trap_normal): Use %~.
(div_trap_mips16): Likewise.
(abssi): Likewise.
(absdi2): Likewise.
(ffssi2): Likewise.
(ffsdi2): Likewise.
(ashldi3_internal): Likewise.
(ashrdi3_internal): Likewise.
(lshrdi3_internal): Likewise.
(casesi_internal): Likewise.
Plus corresponding documentation changes.
From-SVN: r29045
Richard Henderson [Thu, 2 Sep 1999 04:20:21 +0000 (21:20 -0700)]
Merge new ia32 backend from the branch!
From-SVN: r29044
Matt Welsh [Thu, 2 Sep 1999 03:46:35 +0000 (03:46 +0000)]
natClass.cc: Fixed notification of threads when class initialization is complete.
* java/lang/natClass.cc: Fixed notification of threads
when class initialization is complete.
From-SVN: r29043
Kaveh R. Ghazi [Thu, 2 Sep 1999 03:13:16 +0000 (03:13 +0000)]
gxx.gperf (hash, [...]): Add prototypes.
* gxx.gperf (hash, is_reserved_word): Add prototypes.
* init.c (build_vec_init): Initialize variable `try_block'.
* lex.c (init_parse): Call memcpy, not bcopy, to avoid casts.
Likewise for bzero/memset.
(token_getch, token_put_back): Add static prototypes. Remove
`inline' from the definitions.
(retrofit_lang_decl): Call memset, not bzero, to avoid casts.
From-SVN: r29042
Richard Henderson [Thu, 2 Sep 1999 01:22:31 +0000 (18:22 -0700)]
emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE to step through CC modes.
* emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE
to step through CC modes.
From-SVN: r29041
Tom Tromey [Wed, 1 Sep 1999 23:16:34 +0000 (23:16 +0000)]
ffi.h.in: Removed PACKAGE and VERSION defines and undefs.
* include/ffi.h.in: Removed PACKAGE and VERSION defines and
undefs.
* fficonfig.h.in: Rebuilt.
* configure: Rebuilt.
* configure.in: Pass 3rd argument to AM_INIT_AUTOMAKE.
Use AM_PROG_LIBTOOL (automake 1.4 compatibility).
* acconfig.h: Don't #undef PACKAGE or VERSION.
From-SVN: r29038
Tom Tromey [Wed, 1 Sep 1999 22:02:20 +0000 (22:02 +0000)]
Modifier.java (ALL_FLAGS): New constant.
* java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
* resolve.cc: Removed constants defined by
java.lang.reflect.Modifier.
Include <java/lang/reflect/Modifier.h>.
(_Jv_ResolvePoolEntry): Use values from Modifier.
(_Jv_DetermineVTableIndex): Likewise.
(_Jv_PrepareClass): Likewise.
(ncode): Likewise.
* defineclass.cc (_Jv_ClassReader): Removed constants defined by
java.lang.reflect.Modifier.
Include <java/lang/reflect/Modifier.h>.
(checkExtends): Use values from Modifier.
(checkImplements): Likewise.
(handleField): Likewise.
(handleConstantValueAttribute): Likewise.
(handleFieldsEnd): Likewise.
(handleMethod ): Likewise.
(handleMethodsEnd): Likewise.
(handleClassBegin): Likewise.
* interpret.cc: Removed constants defined by
java.lang.reflect.Modifier.
(continue1): Use values from Modifier.
* java/lang/natClassLoader.cc: Removed constants defined by
java.lang.reflect.Modifier.
From-SVN: r29037
Mark Mitchell [Wed, 1 Sep 1999 21:56:38 +0000 (21:56 +0000)]
cp-tree.h (lang_type): Move align into type_flags.
* cp-tree.h (lang_type): Move align into type_flags.
(CLASSTYPE_ALIGN): Adjust accordingly.
* call.c (direct_reference_binding): Remove misleading comment.
From-SVN: r29035
J"orn Rennecke [Wed, 1 Sep 1999 21:22:05 +0000 (14:22 -0700)]
regmove.c (fixup_match_1): Don't move INSN in front of P if it would end up in the shadow of a live flags...
* regmove.c (fixup_match_1): Don't move INSN in front of P if
it would end up in the shadow of a live flags regsiter.
From-SVN: r29034
Tom Tromey [Wed, 1 Sep 1999 21:05:17 +0000 (21:05 +0000)]
natClassLoader.cc (_Jv_NewClass): Use JV_STATE_NOTHING, not `0'.
* java/lang/natClassLoader.cc (_Jv_NewClass): Use
JV_STATE_NOTHING, not `0'.
* java/lang/Class.h: Replaced JV_STATE_ defines with enum.
From-SVN: r29033
Tom Tromey [Wed, 1 Sep 1999 21:03:18 +0000 (21:03 +0000)]
posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
* posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
* include/posix-threads.h (_Jv_Mutex_t): Define as structure,
except on Linux.
(_Jv_PthreadGetMutex): New function.
(_Jv_PthreadCheckMonitor): Use it.
(_Jv_MutexInit): Likewise. ALso, initialize `count'.
(_Jv_MutexLock): Update `count'.
(_Jv_MutexUnlock): Likewise.
(_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
appropriate.
From-SVN: r29032
Kresten Krab Thorup [Wed, 1 Sep 1999 18:49:55 +0000 (18:49 +0000)]
* ChangeLog: update.
From-SVN: r29031
Tom Tromey [Wed, 1 Sep 1999 18:29:39 +0000 (18:29 +0000)]
posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
* posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
* include/posix-threads.h (_Jv_PthreadCheckMonitor): New
function.
(_Jv_CondNotify): Use it.
(_Jv_CondNotifyAll): Likewise.
* java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
From-SVN: r29030
Kresten Krab Thorup [Wed, 1 Sep 1999 18:22:05 +0000 (18:22 +0000)]
Makefile.am (.java.lo): Add rule.
* Makefile.am (.java.lo): Add rule.
* Makefile.in: Rebuilt.
From-SVN: r29029
Kaveh R. Ghazi [Wed, 1 Sep 1999 14:44:56 +0000 (14:44 +0000)]
Avoids false positives with -Wcast-qual:
* obstack.h (obstack_grow, obstack_grow0): Move (char*) casts
in calls to `_obstack_memcpy' from here ...
(_obstack_memcpy): ... to here, except in the __STDC__ case which
doesn't need it.
From-SVN: r29028
Bernd Schmidt [Wed, 1 Sep 1999 14:30:35 +0000 (14:30 +0000)]
Fix indentation problems
From-SVN: r29027
Andreas Schwab [Wed, 1 Sep 1999 08:14:33 +0000 (08:14 +0000)]
Move *-*-gnu* pattern below *-*-linux*.
From-SVN: r29026
Jeff Law [Wed, 1 Sep 1999 07:45:44 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r29025
Marc Espie [Wed, 1 Sep 1999 05:08:57 +0000 (05:08 +0000)]
* alias.c (non_local_reference_p): Constify fmt.
From-SVN: r29023
Michael Meissner [Wed, 1 Sep 1999 03:24:07 +0000 (03:24 +0000)]
define HAVE_DOS_BASED_FILED_SYSTEM on cygwin
From-SVN: r29022
Tom Tromey [Wed, 1 Sep 1999 02:36:40 +0000 (02:36 +0000)]
jvm.h (_Jv_makeUtf8TypeConst): Removed unused declaration.
* include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
declaration.
From-SVN: r29021
Jeff Law [Wed, 1 Sep 1999 00:12:33 +0000 (18:12 -0600)]
Fix typo in comment.
From-SVN: r29019
Jeffrey A Law [Tue, 31 Aug 1999 23:59:40 +0000 (23:59 +0000)]
c-torture.exp: Avoid the "compare executables" optimization when testing native.
* lib/c-torture.exp: Avoid the "compare executables" optimization
when testing native.
From-SVN: r29018
Jeffrey A Law [Tue, 31 Aug 1999 22:48:58 +0000 (22:48 +0000)]
cse.c (delete_trivially_dead_insns): Do not delete stores to the internal_arg_pointer.
* cse.c (delete_trivially_dead_insns): Do not delete stores to
the internal_arg_pointer.
From-SVN: r29017
Richard Henderson [Tue, 31 Aug 1999 20:37:09 +0000 (13:37 -0700)]
backport: Makefile.in (STAGESTUFF): Add *.peephole2.
Merge peephole2 from new_ia32_branch:
* Makefile.in (STAGESTUFF): Add *.peephole2.
(mostlyclean): Likewise.
(recog.o): Depend on resource.h.
* final.c (peephole): Conditionalize decl on HAVE_peephole.
(final_scan_insn): Likewise for the invocation of peephole.
* genconfig.c (main): Look for peephole and peephole2 patterns.
Emit HAVE_peephole* accordingly.
* genpeep.c (main): Conditionalize entire output on HAVE_peephole.
* flags.h (flag_peephole2): Declare.
* toplev.c: New pass peephole2. New flag -fpeephole2.
* genattrtab.c (main): Count DEFINE_PEEPHOLE2.
* gencodes.c (main): Likewise.
* genextract.c (main): Likewise.
* genoutput.c (main): Likewise.
* genemit.c (max_operand_1): Look for the max scratch operand.
(gen_rtx_scratch): New.
(gen_exp): Use it, and pass on new arg subroutine_type.
(gen_expand): Take max scratch into account.
(gen_split): Emit peephole2 functions.
(output_peephole2_scratch): New.
(main): Include hard-reg-set.h and resource.h. Handle peephole2.
* genrecog.c (routine_type): Add PEEPHOLE2.
(IS_SPLIT): New.
(make_insn_sequence): Match outer parallel for peep2. Discard
top level scratches and dups.
(add_to_sequence): New args insn_type and top. Update all callers.
Handle toplevel peep2 matching insns.
(write_subroutine): Handle peep2.
(write_tree_1): Likewise.
(write_tree): Likewise.
(main): Likewise.
(change_state): New arg afterward. Update all callers.
Handle matching separate insns.
* recog.c (recog_next_insn): New.
(peephole2_optimize): New.
* rtl.def (DEFINE_PEEPHOLE2): New.
* resource.c (find_free_register): New argument last_insn. Use it
to find a register available through the entire span.
* resource.h (find_free_register): Update prototype.
From-SVN: r29015
Richard Henderson [Tue, 31 Aug 1999 20:33:13 +0000 (13:33 -0700)]
* getpwd.c: Check HAVE_GETCWD before defining it away.
From-SVN: r29013
Jim Kingdon [Tue, 31 Aug 1999 20:05:20 +0000 (13:05 -0700)]
i386.c (output_strlen_unroll): Don't write xops[7] label if it wasn't set.
* config/i386/i386.c (output_strlen_unroll): Don't write xops[7]
label if it wasn't set.
From-SVN: r29010
Zack Weinberg [Tue, 31 Aug 1999 19:46:18 +0000 (19:46 +0000)]
cpplib.c (struct directive): Const-ify name pointer and function pointer prototype.
1999-08-31 12:44 -0700 Zack Weinberg <zack@bitmover.com>
* cpplib.c (struct directive): Const-ify name pointer and
function pointer prototype.
(validate_else, do_define, do_line, do_include, do_undef,
do_error, do_pragma, do_ident, do_if, do_xifdef, do_else,
do_elif, do_endif, do_sccs, do_assert, do_unassert,
do_warning): Const-ify second arg.
(directive_table): Mark const. Reorder entries by frequency
of usage, record statistics.
From-SVN: r29009
Zack Weinberg [Tue, 31 Aug 1999 19:39:10 +0000 (19:39 +0000)]
rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and bounds- check RTL accesses if --enable-checking.
1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>
* rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
bounds- check RTL accesses if --enable-checking.
(RTVEC_ELT): Bounds check if --enable-checking.
(XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
(XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
GET_NUM_ELEM.
(X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
X0BBDEF, X0ADVFLAGS): New macros for accessing '0' slots of RTXes.
(ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
(NOTE_SOURCE_FILE): Use X0STR.
(NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
MEM_ALIAS_SET): Use X0INT.
(NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
Use X0EXP.
* real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
* rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
(rtl_check_failed_bounds, rtl_check_failed_type1,
rtl_check_failed_type2, rtvec_check_failed_bounds): New
functions.
(fancy_abort): Fix comment.
* cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
(cse_insn): Decrement LABEL_NUSES for jump target before
deleting jump insn.
* emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
* final.c (alter_subreg): Compute regno before changing x to
REG; set REGNO(x) after changing it.
* flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
notes containing CONST_INTs.
(delete_eh_regions): Use NOTE_EH_HANDLER.
* function.c (put_reg_into_stack): Make reg a MEM before
initializing it.
(fixup_var_refs_insns): Save REG_NOTES (insn) in case we
delete insn.
(gen_mem_addressof): Make reg a MEM before initializing it.
* integrate.c (copy_rtx_and_substitute): Copy '0' slots with
X0WINT.
* local-alloc.c (update_equiv_regs): Zap REG_NOTES before
deleting an insn, not after.
(block_alloc): Only look at PATTERN(insn) if we have to, and
only if it's format class 'i'.
* loop.c (check_dbra_loop): Check bl->biv->add_val is a
CONST_INT before using its INTVAL.
* print-rtl.c (print_rtx): Use X0STR.
* regmove.c (fixup_match_1): Don't look at PATTERN of
non-class-'i' insn chain elements.
* reload.c (loc_mentioned_in_p): Take address of
in->fld[1].rtx directly.
* reload1.c (reload): Change reg to a MEM before initializing
it.
* varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
have no names.
* config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.
From-SVN: r29008
Andrew Haley [Tue, 31 Aug 1999 13:56:41 +0000 (13:56 +0000)]
mips.c (machine_dependent_reorg): Force a barrier to output the local constant pool if...
Fri Aug 20 13:43:41 1999 Andrew Haley <aph@cygnus.com>
* config/mips/mips.c (machine_dependent_reorg): Force a
barrier to output the local constant pool if a barrier hasn't
been found at a natural point in the instruction stream.
From-SVN: r29004
Jeff Law [Tue, 31 Aug 1999 07:45:14 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r29003
Jeff Law [Tue, 31 Aug 1999 07:02:46 +0000 (01:02 -0600)]
Fix thinko in last change.
From-SVN: r29002
Jeffrey A Law [Tue, 31 Aug 1999 06:28:16 +0000 (06:28 +0000)]
emit-rtl.c (copy_rtx_if_shared): A MEM which references virtual_stack_vars_rtx or virtual_incoming_args_rtx can...
* emit-rtl.c (copy_rtx_if_shared): A MEM which references
virtual_stack_vars_rtx or virtual_incoming_args_rtx can not
be shared.
From-SVN: r29001
Kaveh R. Ghazi [Tue, 31 Aug 1999 02:16:34 +0000 (02:16 +0000)]
c-parse.in (language_string): Constify.
* c-parse.in (language_string): Constify.
* dwarf2out.c (language_string): Remove declaration.
* dwarfout.c (language_string): Likewise.
* toplev.c (language_string, init_parse, finish_parse): Likewise.
* tree.h (language_string, init_parse, finish_parse): Declare.
* i386/sun386.h (language_string): Remove declaration.
* mips.h (language_string): Likewise.
* nextstep.h (language_string): Likewise.
* nextstep21.h (language_string): Likewise.
* rs6000.c (language_string): Likewise.
In ch:
* parse.c (language_string): Constify.
In cp:
* parse.y (language_string): Constify.
In f:
* com.c (language_string): Constify.
In java:
* lang.c (language_string): Constify.
From-SVN: r29000
Kaveh R. Ghazi [Tue, 31 Aug 1999 01:01:15 +0000 (01:01 +0000)]
Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
* Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
(getpwd.o): Remove target.
* getpwd.c: Delete file. Its in libiberty now.
* dbxout.c (getpwd): Don't prototype.
* dwarf2out.c (getpwd): Likewise
* dwarfout.c (getpwd): Likewise
* final.c (getpwd): Likewise.
* protoize.c (getpwd): Likewise.
From-SVN: r28999
Kaveh R. Ghazi [Tue, 31 Aug 1999 00:55:39 +0000 (00:55 +0000)]
repo.c (getpwd): Don't prototype.
* repo.c (getpwd): Don't prototype.
* xref.c (getpwd): Likewise
From-SVN: r28998
Kaveh R. Ghazi [Tue, 31 Aug 1999 00:52:57 +0000 (00:52 +0000)]
* libiberty.h (getpwd): Prototype.
From-SVN: r28997
Kaveh R. Ghazi [Tue, 31 Aug 1999 00:50:36 +0000 (00:50 +0000)]
Makefile.in (CFILES): Add calloc.c and getpwd.c.
* Makefile.in (CFILES): Add calloc.c and getpwd.c.
(REQUIRED_OFILES): Add getpwd.o.
(getpwd.o): Add target.
* configure.in (AC_PREREQ): Bump to 2.13.
(AC_CHECK_HEADERS): Add check for <sys/stat.h>.
* getpwd.c: New file, moved here from gcc.
From-SVN: r28996
Kaveh R. Ghazi [Tue, 31 Aug 1999 00:34:22 +0000 (00:34 +0000)]
Makefile.in (LIBS): Fix definition so we link with $(CLIB).
* Makefile.in (LIBS): Fix definition so we link with $(CLIB).
Remove hacks for stuff which comes from libiberty.
* Make-lang.in: Likewise.
From-SVN: r28995
Kaveh R. Ghazi [Tue, 31 Aug 1999 00:30:56 +0000 (00:30 +0000)]
Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
* Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
Remove hacks for stuff which now comes from libiberty.
From-SVN: r28994
Kaveh R. Ghazi [Tue, 31 Aug 1999 00:23:40 +0000 (00:23 +0000)]
* cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
From-SVN: r28993
Richard Henderson [Mon, 30 Aug 1999 23:08:14 +0000 (16:08 -0700)]
flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not mark_set_resources.
* flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not
mark_set_resources.
From-SVN: r28990
Hans-Peter Nilsson [Mon, 30 Aug 1999 22:42:48 +0000 (00:42 +0200)]
* Makefile.in (chillrt0.o): Depend on chillrt0.c explicitly.
From-SVN: r28989
Hans-Peter Nilsson [Mon, 30 Aug 1999 22:42:01 +0000 (00:42 +0200)]
* Makefile.in (xref.o): Depend on xref.c explicitly.
From-SVN: r28988
Jeffrey A Law [Mon, 30 Aug 1999 22:38:25 +0000 (22:38 +0000)]
* invoke.texi: Fix typo.
From-SVN: r28987
Jim Wilson [Mon, 30 Aug 1999 19:27:15 +0000 (19:27 +0000)]
Make fixinc/ work when autogen is not installed.
* fixinc/Makefile.in (subdir): New.
(fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
(Makefile): New.
From-SVN: r28986
Jason Merrill [Mon, 30 Aug 1999 19:14:01 +0000 (19:14 +0000)]
* cp-tree.h (IS_AGGR_TYPE_2): Fix typo.
From-SVN: r28985
Mark Mitchell [Mon, 30 Aug 1999 18:54:20 +0000 (18:54 +0000)]
cp-tree.h (begin_init_stmts): Declare.
* cp-tree.h (begin_init_stmts): Declare.
(finish_init_stmts): Likewise.
* cvt.c (build_up_reference): Wrap the declaration of a temporary
in a statement-expression so that we will see it when expanding
tree structure later.
* init.c (begin_init_stmts): Don't make it static.
(finish_init_stmts): Likewise.
From-SVN: r28984
Mark Mitchell [Mon, 30 Aug 1999 15:50:40 +0000 (15:50 +0000)]
cp-tree.h (start_handler_parms): New function.
* cp-tree.h (start_handler_parms): New function.
(expand_start_catch_block): Take only one parameter.
(start_handler_parms): New function.
* decl.c (start_handler_parms): Define it.
* except.c (process_start_catch_block): Take only one parameter.
Don't call grokdeclarator here.
(expand_start_catch_block): Don't call grokdeclarator here,
either.
* parse.y (handler_args): Adjust call to
expand_start_catch_block. Use start_handler_parms.
* pt.c (push_template_decl_real): Make permanent lists have
permanent elements.
(tsubst_expr): Adjust calls to expand_start_catch_block
appropriately.
* semantics.c (expand_stmt): Likewise.
From-SVN: r28983
Jeff Law [Mon, 30 Aug 1999 07:45:14 +0000 (01:45 -0600)]
Daily bump.
From-SVN: r28982
Jeffrey A Law [Mon, 30 Aug 1999 07:32:33 +0000 (07:32 +0000)]
dwarf2out.c (mem_loc_descriptor): New argument MODE.
* dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers
changed. Handle autoincrement addressing modes.
From-SVN: r28981
Jeffrey A Law [Mon, 30 Aug 1999 07:05:29 +0000 (07:05 +0000)]
integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer just like we would the virtual incoming args...
* integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer
just like we would the virtual incoming args register when
integrating.
From-SVN: r28980
Mark Mitchell [Mon, 30 Aug 1999 05:36:00 +0000 (05:36 +0000)]
pt.c (push_template_decl_real): Use template declaration from class type if it exists.
* pt.c (push_template_decl_real): Use template declaration from
class type if it exists.
From-SVN: r28979
Alex Samuel [Mon, 30 Aug 1999 05:22:45 +0000 (05:22 +0000)]
pt.c (push_template_decl_real): Use template declaration from class type if it exists.
* pt.c (push_template_decl_real): Use template declaration from
class type if it exists.
From-SVN: r28978
David Edelsohn [Mon, 30 Aug 1999 03:21:56 +0000 (03:21 +0000)]
rs6000.h (ASM_FILE_START): Specify complete filename, including path, in .file directive.
* rs6000.h (ASM_FILE_START): Specify complete filename, including
path, in .file directive.
From-SVN: r28977
Jeffrey A Law [Sun, 29 Aug 1999 21:48:53 +0000 (21:48 +0000)]
* gcc.c-torture/execute/990829-1.c: New test.
From-SVN: r28976
Jeffrey A Law [Sun, 29 Aug 1999 20:37:24 +0000 (20:37 +0000)]
* gcc.c-torture/compile/990829-1.c: New test.
From-SVN: r28975
Russ Allbery [Sun, 29 Aug 1999 19:48:51 +0000 (19:48 +0000)]
gcc.texi (External Bugs): Remove obsolete note about Perl on SunOS.
* gcc.texi (External Bugs): Remove obsolete note about Perl on
SunOS.
From-SVN: r28974
Mark Mitchell [Sun, 29 Aug 1999 19:03:31 +0000 (19:03 +0000)]
cp-tree.h (TYPE_NEEDS_CONSTRUCTING): Remove #if 0'd definition.
* cp-tree.h (TYPE_NEEDS_CONSTRUCTING): Remove #if 0'd definition.
(maybe_inject_for_scope_var): Declare it.
(initialize_local_var): Likewise.
* decl.c (maybe_inject_for_scope_var): Make it global.
(initialize_local_var): Likewise. Move cleanup handling here,
from cp_finish_decl.
(make_rtl_for_nonlocal_decl): Use
push_obstacks_nochange/pop_obstacks, rather than
end_temporary_allocation/resume_temporary_allocation.
(cp_finish_decl): Try to complete the type of a variable when it
is declared. Move cleanup-handling to initialize_local_var.
(expand_static_init): Use tree-building code, rather than
RTL-building code.
* decl2.c (get_temp_name): Assert non-initializedness of
temporaries.
* init.c (create_temporary_var): Move RTL-assigning code to ...
(get_temp_regvar): Here.
* pt.c (tsbust_expr): Fix indentation. Call cp_finish_decl here.
* semantics.c (expand_stmt): Don't call cp_finish_decl here. Just
call initialize_local_var to generate initialization code.
From-SVN: r28973
Zack Weinberg [Sun, 29 Aug 1999 15:46:14 +0000 (15:46 +0000)]
stdbool.h: Make the typedef name _Bool, with bool a #defined alias.
1999-08-29 08:38 -0700 Zack Weinberg <zack@bitmover.com>
* stdbool.h: Make the typedef name _Bool, with bool a #defined
alias.
From-SVN: r28972
Manfred Hollstein [Sun, 29 Aug 1999 14:41:53 +0000 (14:41 +0000)]
* POTFILES.in: Track files recently added/deleted.
From-SVN: r28971
Kaveh R. Ghazi [Sun, 29 Aug 1999 13:51:39 +0000 (13:51 +0000)]
java-tree.h (lang_printable_name): Constify a char*.
* java-tree.h (lang_printable_name): Constify a char*.
* lang.c (lang_printable_name): Likewise.
From-SVN: r28970
Kaveh R. Ghazi [Sun, 29 Aug 1999 13:49:39 +0000 (13:49 +0000)]
* com.c (lang_printable_name): Constify a char*.
From-SVN: r28969
Kaveh R. Ghazi [Sun, 29 Aug 1999 13:47:37 +0000 (13:47 +0000)]
cp-tree.h (fndecl_as_string, [...]): Constify a char*.
* cp-tree.h (fndecl_as_string, type_as_string,
type_as_string_real, args_as_string, decl_as_string,
expr_as_string, code_as_string, language_as_string,
parm_as_string, op_as_string, assop_as_string, cv_as_string,
lang_decl_name, cp_file_of, lang_printable_name): Constify a char*.
* errfn.c (cp_printer): Likewise.
* error.c (cp_printer, fndecl_as_string, type_as_string_real,
type_as_string, expr_as_string, decl_as_string, lang_decl_name,
cp_file_of, code_as_string, language_as_string, parm_as_string,
op_as_string, assop_as_string, args_as_string, cv_as_string):
Likewise.
* tree.c (lang_printable_name): Likewise.
From-SVN: r28968
Kaveh R. Ghazi [Sun, 29 Aug 1999 13:44:41 +0000 (13:44 +0000)]
* lang.c (chill_print_error_function): Constify a char*.
From-SVN: r28967
Kaveh R. Ghazi [Sun, 29 Aug 1999 13:41:25 +0000 (13:41 +0000)]
tree.c (tree_code_name): Constify a char*.
* tree.c (tree_code_name): Constify a char*.
* tree.h (tree_code_name, decl_printable_name): Likewise.
* function.h (struct function): Likewise.
* toplev.c (decl_name, decl_printable_name): Likewise.
* vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise.
* objc/objc-act.c (decl_printable_name): Remove redundant prototype.
(init_objc): Remove function pointer cast.
From-SVN: r28966
Kaveh R. Ghazi [Sun, 29 Aug 1999 13:34:10 +0000 (13:34 +0000)]
Makefile.in (ch-version.c): Constify a char*.
* Makefile.in (ch-version.c): Constify a char*.
* actions.c (id_cmp, warn_unhandled, adjust_return_value,
update_else_range_for_int_const, update_else_range_for_range,
update_else_range_for_range_expr, update_else_range_for_type,
compute_else_range, check_case_value,
chill_handle_case_label_range,
chill_handle_multi_case_label_range,
chill_handle_multi_case_else_label, chill_handle_multi_case_label,
chill_handle_multi_case_label_list print_missing_cases): Add
static prototypes.
(build_exception_variant): Cast the function argument of qsort.
(build_rts_call, warn_unhandled, chill_convert_for_assignment,
adjust_return_value, chill_expand_result,
build_multi_case_selector_expression, print_missing_cases):
Constify a char*.
(print_missing_cases): Introduce an intermediary non-const ptr.
Add brackets and indent.
* ch-tree.h (maybe_building_objc_message_expr,
maybe_objc_comptypes, comptypes_record_hook): Remove declarations.
(push_handler, pop_handler): Add prototypes.
(builtin_function, valid_array_index_p,
build_chill_exception_decl, build_rts_call,
chill_convert_for_assignment, display_int_cst,
build_chill_addr_expr, check_have_mode, get_identifier3,
build_chill_string, register_seize_path, get_unique_identifier,
add_taskstuff_to_list, gnuchill_version): Constify a char*.
(finish_chill_function): Add void prototype argument.
* convert.c (convert_to_reference, convert_to_boolean,
convert_to_char, base_type_size_in_bytes, remove_tree_element,
check_ps_range, digest_powerset_tuple, digest_structure_tuple,
digest_array_tuple, convert1): Add static prototypes.
(base_type_size_in_bytes): Hide unused function.
(display_int_cst, digest_array_tuple): Constify a char*.
* decl.c (set_nesting_level, make_chill_variants, fix_identifier,
proclaim_decl, maybe_acons, push_scope_decls, pop_scope_decls,
build_implied_names, bind_sub_modules, layout_array_type,
do_based_decl, handle_one_level, label_value_cmp,
find_implied_types): Add static prototypes.
(boolean_code_name, chill_tree_code_type, chill_tree_code_name):
Constify a char*.
(layout_chill_variants): Cast the function argument of qsort.
(start_chill_function, fix_identifier, init_decl_processing):
Constify a char*.
(init_decl_processing): Prefer memcpy over bcopy to avoid casts.
Use xcalloc instead of xmalloc/bzero.
(builtin_function, build_chill_exception_decl,
finish_outer_function): Constify a char*.
* except.c (start_handler_array, finish_handler_array): Add static
prototypes.
* expr.c (chill_expand_expr, chill_expand_case_expr,
check_arglist_length, internal_build_compound_expr,
is_really_instance, invalid_operand, invalid_right_operand,
build_chill_abstime, build_allocate_memory_call,
build_allocate_global_memory_call, build_return_memory,
build_chill_duration, build_chill_floatcall,
build_allocate_getstack, build_chill_allocate,
build_chill_getstack, build_chill_terminate, build_chill_inttime,
build_chill_lower_or_upper, build_max_min,
build_chill_pred_or_succ, expand_packed_set, fold_set_expr,
build_compare_set_expr, scalar_to_string, build_concat_expr,
build_compare_string_expr, compare_records, string_char_rep,
build_boring_bitstring): Add static prototypes.
(check_have_mode, chill_expand_expr, build_chill_floatcall,
build_allocate_getstack, build_max_min, build_chill_function_call,
expand_packed_set, build_compare_set_expr, build_chill_addr_expr,
string_char_rep): Constify a char*.
* gperf (hash, in_word_set): Add prototypes.
* grant.c (newstring, strfree, append, prepend,
grant_use_seizefile, decode_layout, grant_array_type,
grant_array_type_selective, get_tag_value,
get_tag_value_selective, print_enumeral, print_enumeral_selective,
print_integer_type, find_enum_parent, print_integer_selective,
print_struct, print_struct_selective, print_proc_exceptions,
print_proc_tail, print_proc_tail_selective, find_in_decls,
in_ridpointers, grant_seized_identifier, globalize_decl,
grant_one_decl_selective, compare_memory_file, search_in_list,
really_grant_this): Add static prototypes.
(newstring, append, prepend, grant_use_seizefile,
print_integer_type, decode_constant, grant_one_decl_selective,
header_template): Constify a char *.
* inout.c (add_enum_to_list, build_chill_io_list_type,
build_io_types, declare_predefined_file, build_access_part,
textlocation_mode, check_assoc, assoc_call, check_transfer,
connect_process_optionals, connect_text, connect_access,
check_access, check_text, get_final_type_and_range,
process_io_list, check_format_string, get_max_size,
check_exprlist): Add static prototypes.
(declare_predefined_file, check_assoc, assoc_call, check_transfer,
check_access, check_text, process_io_list): Constify a char*.
* lang.c (deep_const_expr, chill_print_error_function): Add static
prototypes.
* lex.c (close_input_file, maybe_number, string_or_char): Constify
a char*.
(ch_lex_init, skip_directive, same_file, getlc, yywrap,
yy_refill): Add static prototypes.
(build_chill_string, same_file, register_seize_path): Constify a
char*.
* lex.h (finish_chill_seizes): Remove unused prototypes.
* loop.c (build_temporary_variable, maybe_make_for_temp,
get_unique_identifier): Constify a char*.
* parse.c (ch_parse_init, check_end_label, end_function,
build_prefix_clause, PEEK_TOKEN, peek_token_, pushback_token,
forward_token_, require, check_token, expect, define__PROCNAME__):
Add static prototypes.
(build_prefix_clause, expect): Constify a char*.
(parse_expression, parse_primval, parse_untyped_expr,
parse_opt_untyped_expr, parse_opt_actions): Add void prototype
argument.
(parse_opt_name_string, parse_simple_name_string,
parse_name_string, parse_defining_occurrence, parse_name,
parse_optlabel, parse_opt_end_label_semi_colon, parse_modulion,
parse_spec_module, parse_semi_colon,
parse_defining_occurrence_list, parse_mode_definition,
parse_mode_definition_statement, parse_synonym_definition,
parse_synonym_definition_statement, parse_on_exception_list,
parse_on_alternatives, parse_loc_declaration,
parse_declaration_statement, parse_optforbid, parse_postfix,
parse_postfix_list, parse_rename_clauses, parse_opt_prefix_clause,
parse_grant_statement, parse_seize_statement,
parse_param_name_list, parse_param_attr, parse_formpar,
parse_formparlist, parse_opt_result_spec, parse_opt_except,
parse_opt_recursive, parse_procedureattr, parse_proc_body,
parse_procedure_definition, parse_processpar,
parse_processparlist, parse_process_definition,
parse_signal_definition, parse_signal_definition_statement,
parse_then_clause, parse_opt_else_clause, parse_expr_list,
parse_range_list_clause, pushback_paren_expr, parse_case_label,
parse_case_label_list, parse_case_label_specification,
parse_single_dimension_case_action,
parse_multi_dimension_case_action, parse_case_action,
parse_asm_operands, parse_asm_clobbers, ch_expand_asm_operands,
parse_asm_action, parse_begin_end_block, parse_if_action,
parse_iteration, parse_delay_case_event_list,
parse_delay_case_action, parse_do_action, parse_receive_spec,
parse_receive_case_action, parse_send_action, parse_start_action,
parse_call, parse_tuple_fieldname_list, parse_tuple_element,
parse_opt_element_list, parse_tuple, parse_operand6,
parse_operand5, parse_operand4, parse_operand3, parse_operand2,
parse_operand1, parse_operand0, parse_case_expression,
parse_then_alternative, parse_else_alternative,
parse_if_expression, parse_index_mode, parse_set_mode, parse_pos,
parse_step, parse_opt_layout, parse_field_name_list,
parse_fixed_field, parse_variant_field_list,
parse_variant_alternative, parse_field, parse_structure_mode,
parse_opt_queue_size, parse_procedure_mode, parse_program,
parse_pass_1_2): Add static prototypes.
(parse_process_definition): Remove extra argument in function call.
(parse_range_list_clause): Likewise.
* satisfy.c (satisfy, cycle_error_print, safe_satisfy_decl,
satisfy_list, satisfy_list_values): Add static prototype.
(safe_satisfy_decl): Cast DECL_TASKING_CODE_DECL() to (tree).
* tasking.c (make_process_struct): Remove unused prototype.
(validate_process_parameters, get_struct_variable_name,
decl_tasking_code_variable, get_struct_debug_type_name,
get_process_wrapper_name, build_tasking_enum,
build_tasking_message_type, build_receive_signal_case_label,
build_receive_buffer_case_label, build_receive_buffer_case_end,
build_receive_signal_case_end): Add static prototypes.
(struct_name, struct_debug_name, data_name, wrapper_name,
get_struct_type_name, get_struct_debug_type_name,
get_tasking_code_name, get_struct_variable_name,
get_process_wrapper_name): Constify a char*.
(validate_process_parameters, get_struct_variable_name,
decl_tasking_code_variable): Hide unused functions.
(build_start_process, add_taskstuff_to_list, build_queue_length):
Constify a char*.
* tree.c (make_powerset_type): Add static prototype.
(get_identifier3, build_alias_decl, decl_check_rename): Constify a
char*.
* typeck.c (extract_constant_from_buffer,
expand_constant_to_buffer, build_empty_string,
make_chill_pointer_type, make_chill_range_type,
apply_chill_array_layout, field_decl_cmp, make_chill_struct_type,
apply_chill_field_layout): Add static prototype.
(valid_array_index_p, extract_constant_from_buffer,
chill_expand_tuple): Constify a char*.
(layout_chill_struct_type): Cast the function argument of qsort.
From-SVN: r28965
John David Anglin [Sun, 29 Aug 1999 11:04:24 +0000 (11:04 +0000)]
pa.md (interspace_jump): New pattern.
* pa.md (interspace_jump): New pattern.
(builtin_longjmp): New expander.
From-SVN: r28964
Bernd Schmidt [Sun, 29 Aug 1999 10:48:44 +0000 (10:48 +0000)]
Fix possible aliasing problems
From-SVN: r28963
John Wehle [Sun, 29 Aug 1999 10:31:20 +0000 (10:31 +0000)]
jump.c (delete_prior_computation): Also check calls to constant functions.
* jump.c (delete_prior_computation): Also check calls
to constant functions. Don't bother checking for a
REG_UNUSED note before adding it.
(delete_computation): Handle multi-word hard registers
when synthesizing missing REG_DEAD notes for a register
which is both set and used by an insn.
From-SVN: r28962
Michael Hayes [Sun, 29 Aug 1999 10:09:29 +0000 (10:09 +0000)]
loop.c (this_loop_info): New variable.
* loop.c (this_loop_info): New variable.
(loop_has_call, loop_has_volatile, loop_has_tablejump,
loop_continue, loops_enclosed): Replace with fields in this_loop_info.
All uses updated.
(prescan_loop, strength_reduce): New argument loop_info. All callers
updated.
(scan_loop): New variable loop_info, initialise to address of
this_loop_info.
(prescan_loop): Set loop_info->vtop if find NOTE_INSN_LOOP_VTOP.
Delete variable loop_has_multiple_exit targets and replace with
field in this_loop_info.
(find_and_verify_loops): Rename this_loop to this_loop_num.
(strength_reduce): Delete loop_iteration_info. Replace variable
loop_info with function argument of same name.
(insert_bct): Rework test for loop being completely unrolled.
* loop.h (struct loop_info): New fields num, loops_enclosed,
has_call, has_volatile, has_tablejump, has_multiple_exit_targets,
has_indirect_jump, and cont. Redefine use of unroll_number.
(loop_unroll_number): Delete.
* unroll.c (unroll_loop): Store loop unroll count in unroll_number
field of loop_info.
(loop_iterations): Delete variable vtop and instead use
loop_info->vtop computed in prescan_loop.
From-SVN: r28961