Richard Henderson
3de900268e
dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
...
* dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
* dwarf2out.c (dwarf2out_frame_init): Likewise.
* final.c (shorten_branches): Likewise.
* global.c (global_alloc): Likewise.
* haifa-sched.c (build_control_flow): Likewise.
* stmt.c (check_for_full_enumeration_handling): Likewise.
(estimate_case_costs): Likewise.
From-SVN: r29091
1999-09-03 23:22:50 +00:00
Mark Mitchell
818a3b1591
* rtl.h (RTL_CHECKC2): Fix typo in last change.
...
From-SVN: r29090
1999-09-03 22:54:56 +00:00
Richard Henderson
83ab38394c
flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
...
* flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
(recompute_reg_usage): Likewise.
* rtlanal.c (find_regno_fusage): Likewise.
* rtl.c (rtl_check_failed_code1): New function.
(rtl_check_failed_code2): New.
* rtl.h (RTL_CHECK1, RTL_CHECK2, RTVEC_ELT): Parenthesize args.
(RTL_CHECKC1, RTL_CHECKC2): New.
(XC*): New accessor macros.
(NOTE_*, LABEL_NAME, LABEL_NUSES, ADDRESSOF_REGNO): Use them.
(ADDRESSOF_DECL, JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF): Likewise.
(CONTAINING_INSN, REGNO, INTVAL, SUBREG_REG, SUBREG_WORD): Likewise.
(ASM_OPERANDS_*, MEM_ALIAS_SET, SET_SRC, SET_DEST): Likewise.
(TRAP_*, RANGE_INFO_*): Likewise.
From-SVN: r29089
1999-09-03 15:23:11 -07:00
Richard Kenner
02aadb7a10
Fix typo in my email address
...
From-SVN: r29088
1999-09-03 17:27:46 -04:00
Kaveh R. Ghazi
d4058195bd
Makefile.in (tlink.o): Don't depend on toplev.h.
...
* Makefile.in (tlink.o): Don't depend on toplev.h.
* collect2.c (c_file, o_file, export_file, import_file, ldout,
output_file, nm_file_name, ldd_file_name, strip_file_name,
c_file_name, prefix_list, libexts, is_ctor_dtor, find_a_file,
add_prefix, prefix_from_env, prefix_from_string, do_wait,
fork_execute, maybe_unlink, add_to_list,
extract_init_priority, write_list, dump_list,
dump_prefix_list, write_list_with_asm, write_c_file,
write_c_file_stat, write_c_file_glob, scan_prog_file,
scan_libraries, is_in_list, resolve_lib_name, use_import_list,
ignore_library, extract_string, notice, dump_file, target_machine,
collect_wait, collect_execute, libname, locatelib, aix_std_libs,
read_file, print_load_command): Constify a char*.
(fdopen, error, fatal, fatal_perror): Don't prototype.
(my_strerror): Remove. All callers use xstrerror instead.
(xcalloc, xmalloc, xrealloc, xstrdup, putenv): Remove definitions.
(main): Add prototype. Constify lots of char* ptrs. Change calls
to xcalloc/strcpy/strcat/... to one call to concat.
(main, scan_prog_file, scan_libraries): Use an intermediate
`const char **' to build an argv array.
(mapfile, libselect, libcompare, locatelib): Add prototypes.
* collect2.h (collect_execute, collect_wait, dump_file,
file_exists): Constify a char*.
(ldout, c_file_name, temporary_obstack, permanent_obstack,
temporary_firstobj, vflag, debug): Add extern declarations.
(fancy_abort, error, notice, fatal, fatal_perror): Add prototypes.
* tlink.c: Don't include toplev.h.
(vflag, debug, ldout, c_file_name, temporary_obstack,
permanent_obstack, temporary_firstobj): Don't declare.
(tlink_execute, frob_extension, symbol_hash_lookup,
file_hash_lookup, demangled_hash_lookup, tlink_init, freadsym,
recompile_files, read_repo_files, demangle_new_symbols,
scan_linker_output): Constify a char*.
(symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc,
do_tlink): Mark parameters with ATTRIBUTE_UNUSED.
From-SVN: r29087
1999-09-03 19:13:34 +00:00
Tom Tromey
2f11d4079a
parse.y (strip_out_static_field_access_decl): Return operand if it satisfies JDECL_P.
...
* parse.y (strip_out_static_field_access_decl): Return operand if
it satisfies JDECL_P.
From-SVN: r29086
1999-09-03 17:18:11 +00:00
Andrew Haley
e9be002826
m68kelf.h: Set USE_GAS...
...
Fri Sep 3 18:09:24 1999 Andrew Haley <aph@cygnus.com>
* config/m68k/m68kelf.h: Set USE_GAS; this makes gcc generate jbsr
(relative) rather than jsr (absolute) subroutine call insns.
* config/m68k/m68k-coff.h: Ditto.
From-SVN: r29085
1999-09-03 17:10:48 +00:00
Richard Earnshaw
2bfa88dc79
arm.c (note_invalid_constants): No need to ignore ASMs, we can now rework these too.
...
* arm.c (note_invalid_constants): No need to ignore ASMs, we can
now rework these too.
(arm_reorg): If an insn can't reach the end of the current pool,
ensure that we emit that pool before the insn.
From-SVN: r29084
1999-09-03 16:27:57 +00:00
Jason Merrill
9c5b50b30a
tlink.c (scan_linker_output): Skip the initial underscore in a mangled name if appropriate.
...
* tlink.c (scan_linker_output): Skip the initial underscore in
a mangled name if appropriate.
From-SVN: r29083
1999-09-03 12:14:54 -04:00
Richard Earnshaw
eb898ce420
* gcc.c-torture/execute/990827-1.c: Fix typo.
...
From-SVN: r29082
1999-09-03 09:42:25 +00:00
Nathan Sidwell
a9183fef29
typeck.c (build_indirect_ref): Reject dereference of pointer to void.
...
* typeck.c (build_indirect_ref): Reject dereference of pointer to
void.
From-SVN: r29081
1999-09-03 09:01:14 +00:00
Nathan Sidwell
8c5f3e15b0
* g++.old-deja/g++.other/deref1.C: New test.
...
From-SVN: r29080
1999-09-03 08:59:06 +00:00
Jeff Law
43d5109b44
Daily bump.
...
From-SVN: r29079
1999-09-03 01:45:07 -06:00
Tom Tromey
1d189890ae
re GNATS libgcj/3 (FileInputStream.available always returns 0)
...
* configure: Rebuilt.
* configure.in: Check for fstat function.
* java/io/natFileDescriptorPosix.cc (available): Use fstat() if
FIONREAD fails.
This fixes PR 3
From-SVN: r29078
1999-09-03 07:42:40 +00:00
Kaveh R. Ghazi
e36bf33a3b
objc-act.c (objc_tree_code_type, [...]): Constify.
...
* objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
objc_tree_code_name, synth_id_with_class_suffix, warn_with_method,
error_with_ivar, gen_declarator, create_builtin_decl,
my_build_string, generate_descriptor_table, generate_ivars_list,
generate_dispatch_table, check_protocols, TAG_GETCLASS,
TAG_GETMETACLASS, TAG_MSGSEND, TAG_MSGSENDSUPER, TAG_EXECCLASS,
dump_base_name, lang_decode_option, build_encode_expr,
start_class, finish_class, encode_pointer, really_start_method,
gen_declaration, dump_interface, handle_class_ref, handle_impent):
Constify.
(objc_demangle, objc_printable_name, generate_struct_by_value_array):
Add static prototypes.
(build_objc_string_decl, build_selector_reference_decl,
encode_bitfield, build_class_reference_decl): Remove unused
parameter, all callers changed.
(maybe_objc_method_name): Mark with ATTRIBUTE_UNUSED.
(objc_printable_name): Likewise. Change second parameter to type int.
(init_objc): Use memcpy, not bcopy, to avoid casts.
From-SVN: r29077
1999-09-03 05:32:20 +00:00
Richard Henderson
8a34409df6
reload1.c (eliminate_regs_in_insn): Avoid eliminating the reg notes on a deleted insn.
...
* reload1.c (eliminate_regs_in_insn): Avoid eliminating the
reg notes on a deleted insn.
* gcse.c (hash_expr_1): Use XWINT on a CONST_DOUBLE.
From-SVN: r29076
1999-09-02 21:51:35 -07:00
Richard Kenner
42f7a8d48f
Add myself to Blanket Write Privs and as arc port maintainer.
...
From-SVN: r29075
1999-09-02 23:14:24 -04:00
Jeffrey A Law
5d3c4797ed
* i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
...
From-SVN: r29074
1999-09-02 20:20:09 -06:00
Mark Mitchell
6aabeed2cb
Readd file
...
From-SVN: r29072
1999-09-03 00:24:24 +00:00
Mark Mitchell
36096ac71b
Readd file
...
From-SVN: r29071
1999-09-03 00:23:55 +00:00
Mark Mitchell
3ebd9bc487
Remove test
...
From-SVN: r29070
1999-09-03 00:13:58 +00:00
Jeffrey A Law
b5cc759372
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
1999-09-02 17:55:52 -06:00
Tom Tromey
ec52881776
java-array.h (jobjectArrayjchar): Removed unused declaration.
...
* include/java-array.h (jobjectArrayjchar): Removed unused
declaration.
From-SVN: r29068
1999-09-02 23:47:38 +00:00
Tom Tromey
3a5395a311
gjavah.c (decode_signature_piece): Emit "::" in JArray<>.
...
* gjavah.c (decode_signature_piece): Emit "::" in JArray<>.
Handle nested arrays, like `[[I'.
From-SVN: r29067
1999-09-02 23:44:04 +00:00
J"orn Rennecke
ad7342be69
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
1999-09-02 23:10:15 +01:00
Kaveh R. Ghazi
d593dd8c6a
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
1999-09-02 21:57:09 +00:00
Richard Henderson
57bcb97aac
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
1999-09-02 13:01:46 -07:00
Tom Tromey
773c6f0076
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
1999-09-02 19:33:50 +00:00
Mark Mitchell
8012c98334
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
1999-09-02 19:14:06 +00:00
Richard Henderson
e2bef702d6
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
1999-09-02 10:29:25 -07:00
Alex Samuel
ec4f972f6c
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
1999-09-02 17:29:11 +00:00
Richard Henderson
d0668a7393
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
1999-09-02 10:20:19 -07:00
Jeffrey A Law
a8c6125952
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
1999-09-02 03:37:20 -06:00
Nathan Sidwell
88bf1faf57
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
1999-09-02 09:23:14 +00:00
Nathan Sidwell
1b4d752a64
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
1999-09-02 09:21:42 +00:00
Jeffrey A Law
e6380233ff
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
1999-09-02 03:02:33 -06:00
Jeff Law
08e105064f
Daily bump.
...
From-SVN: r29054
1999-09-02 01:45:45 -06:00
Marc Espie
19e28e2aee
* pexecute.c (pexecute): Fill in temp_base when needed.
...
From-SVN: r29053
1999-09-02 01:37:50 -06:00
Marc Espie
34640c8750
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
1999-09-02 01:37:40 -06:00
Marc Espie
456dd9992b
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
1999-09-02 01:19:47 -06:00
Finn Hakansson
6d649d2678
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
1999-09-02 00:47:15 -06:00
Jeffrey A Law
6b7ef0e0be
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
1999-09-02 00:39:43 -06:00
Tom Tromey
bc5afba452
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
1999-09-02 06:27:00 +00:00
Jeffrey A Law
2598e85aad
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
1999-09-02 00:08:25 -06:00
Richard Henderson
ff2589d152
Fix data corruption. (Eeep!)
...
From-SVN: r29046
1999-09-01 22:47:47 -07:00
Geoffrey Keating
efa3896ad4
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
1999-09-02 05:42:06 +00:00
Richard Henderson
e075ae69f9
Merge new ia32 backend from the branch!
...
From-SVN: r29044
1999-09-01 21:20:21 -07:00
Matt Welsh
a41cb705f6
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
1999-09-02 03:46:35 +00:00
Kaveh R. Ghazi
f5984164b7
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
1999-09-02 03:13:16 +00:00
Richard Henderson
aea87e88e1
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
1999-09-01 18:22:31 -07:00