Commit Graph

21136 Commits

Author SHA1 Message Date
Richard Henderson
f4b9425602 haifa-sched.c (ENCODE_BLOCKAGE): Don't shift unit too far.
* haifa-sched.c (ENCODE_BLOCKAGE): Don't shift unit too far.
        (print_exp): Special case addition of a constant.
        (print_value) [CONST_INT]: Use HOST_WIDE_INT_PRINT_HEX.

From-SVN: r25629
1999-03-07 03:50:32 -08:00
Richard Henderson
28c95eff94 haifa-sched.c (reg_last_clobbers): New.
* haifa-sched.c (reg_last_clobbers): New.
        (reg_pending_clobbers, bb_reg_last_clobbers): New.
        (compute_block_backward_dependences): Allocate memory for them.
        (schedule_region): Likewise.
        (sched_analyze_1): Clobbers don't interfere with one another.
        They do interfere with sets ...
        (sched_analyze_2): ... and uses.
        (sched_analyze): Likewise.
        (sched_analyze_insn): Update reg_last_clobbers appropriately.

From-SVN: r25628
1999-03-07 03:22:10 -08:00
Kaveh R. Ghazi
3bb5de61eb gmon-sol2.c: Include config.h and system.h.
* gmon-sol2.c: Include config.h and system.h.  Don't redundantly
        include system header files.
        (sccsid): Remove.
        (moncontrol, monstartup, _mcleanup, internal_mcount): Prototype.
        (_mcleanup): Add the `const' keyword to a char*.
        (internal_mcount): Declare `etext' as a char[] not a function.
        Cast `etext' to char* when calling `monstartup'.
        * sparc.c (frame_base_name, save_regs, restore_regs,
        build_big_number, sparc_cmodel_string, sparc_align_loops_string,
        sparc_align_jumps_string, sparc_align_funcs_string, code_model,
        cpu_default, cpu_table, output_function_prologue,
        output_function_epilogue, output_return,
        sparc_flat_output_function_prologue, ultra_code_names,
        sparc_flat_output_function_epilogue): Constify a char*.
        (hypersparc_adjust_cost): Add a default case in a switch.
        * sparc.h (sparc_cmodel_string, OVERRIDE_OPTIONS,
        sparc_cpu_select, sparc_align_loops_string,
        sparc_align_jumps_string, sparc_align_funcs_string,
        output_return): Constify a char*.
        * sparc.md (movdi): Change the comparison of HOST_BITS_PER_WIDE_INT
        so that we check "== 32", instead of "!= 64".  Cast a value to
        HOST_WIDE_INT when comparing against one.  Hide the declaration
        for variable `chain'.

From-SVN: r25627
1999-03-07 05:46:30 +00:00
Kaveh R. Ghazi
366453bf4b system.h (const, inline): Move the stage2 handling of these keywords-as-macros from here...
* system.h (const, inline): Move the stage2 handling of these
        keywords-as-macros from here...
        * gansidecl.h (const, inline): ...to here.
(This became necessary after using `const' in config directory headers,
which get included before system.h does.  If we're going to reset these
keywords, we must do so before absolutely any other header file.)

From-SVN: r25626
1999-03-07 05:21:41 +00:00
Martin v. Löwis
b26caacda9 List TREE_INDIRECT_USING as application of TREE_LANG_FLAG_0.
From-SVN: r25625
1999-03-07 04:39:44 +00:00
Richard Henderson
aeb7ff6879 * recog.c (push_operand, pop_operand): VOIDmode needn't match modes.
From-SVN: r25624
1999-03-06 18:45:29 -08:00
Richard Henderson
9a794e5054 * cse.c (canon_hash): Never reject hard regs in CCmode.
From-SVN: r25623
1999-03-06 18:00:27 -08:00
Jeffrey A Law
fc095971f1 Bump for snapshot
From-SVN: r25621
1999-03-06 18:15:09 -07:00
Jeff Law
7b9d9f9c7e Daily bump.
From-SVN: r25620
1999-03-06 17:45:03 -07:00
Jason Merrill
a1ac6acca1 fix
From-SVN: r25619
1999-03-06 13:22:21 -05:00
Jason Merrill
0dd3962da5 cp-tree.h (struct lang_type): Add anon_union field.
* cp-tree.h (struct lang_type): Add anon_union field.
	(ANON_UNION_TYPE_P): Use it instead of examining type.
	(SET_ANON_UNION_TYPE_P): New macro.
	* decl.c (check_tag_decl): Use it.
	* search.c (compute_access): Handle non-type contexts earlier, and
	handle NULL_TREE.
	* tree.c (build_exception_variant): Use copy_to_permanent.

From-SVN: r25618
1999-03-06 12:41:36 -05:00
Richard Earnshaw
4b523fc495 flow.c (make_edges): Handle casesi that jump to default branch.
* flow.c (make_edges): Handle casesi that jump to default branch.
        If CASE_DROPS_THROUGH, force fallthru to block after casesi.

Co-Authored-By: Richard Henderson <rth@cygnus.com>

From-SVN: r25617
1999-03-06 09:19:39 -08:00
Kaveh R. Ghazi
8e1f2d4c56 Makefile.in (jcf-parse.o): Depend on $(PARSE_H).
* Makefile.in (jcf-parse.o): Depend on $(PARSE_H).
        (parse-scan.o): Depend on toplev.h.
        * class.c (make_method_value): Add prototype.  Make it static.
        Remove unused second argument, caller changed.
        * expr.c (java_lang_expand_expr): Remove unused variable
        `return_label'.
        * java-tree.h: Don't prototype find_in_current_zip.
        Add prototypes for verify_constant_pool, start_java_method,
        end_java_method, give_name_to_locals, expand_byte_code,
        open_in_zip, set_constant_value, find_constant1, find_constant2,
        find_utf8_constant, find_string_constant, find_class_constant,
        find_fieldref_index, find_methodref_index, write_constant_pool,
        count_constant_pool_bytes and encode_newarray_type.
        * jcf-dump.c: Remove unused variable `LONG_temp'.
        * jcf-parse.c: Include parse.h.
        (jcf_parse_source): Remove unused parameter, all callers changed.
        (jcf_figure_file_type): Add static prototype.
        (find_in_current_zip): Likewise.  Also remove unused parameter,
        all callers changed.
        (read_class): Initialize variable `saved_pos'.
        * jcf-reader.c (jcf_parse_preamble): Mark variables
        `minor_version' and `major_version' with ATTRIBUTE_UNUSED.
        * lex.c (java_is_eol): Wrap prototype and definition in !JC1_LITE.
        (java_init_lex): Wrap variable `java_lang_imported' in !JC1_LITE.
        (java_parse_doc_section): Initialize variable `seen_star'.
        (java_lex): Wrap variable `number_beginning' in !JC1_LITE.
        (java_lex_error): Mark parameters `msg' and `forward' with
        ATTRIBUTE_UNUSED.
        (java_get_line_col): Mark parameters `filename' and `line' with
        ATTRIBUTE_UNUSED.
        * parse-scan.y: Include toplev.h.
        (yyerror): Mark parameter `msg' with ATTRIBUTE_UNUSED.
        * parse.h: use `struct JCF', not plain `JCF'.
        (java_parser_context_save_global, java_expand_classes
        java_parser_context_restore_global, java_parse): Add prototypes.
        * typeck.c (convert_ieee_real_to_integer): Remove unused variable
        `node'.

From-SVN: r25616
1999-03-06 08:35:49 +00:00
Craig Burley
158281d7a3 New (old) tests, just started failing this past week
From-SVN: r25615
1999-03-06 02:16:13 -05:00
Kaveh R. Ghazi
dff01034e5 c-aux-info.c (data_type, [...]): Qualify a char* with the `const' keyword.
* c-aux-info.c (data_type, affix_data_type, gen_decl,
        gen_formal_list_for_type, gen_formal_list_for_func_def, gen_type):
        Qualify a char* with the `const' keyword.
        * c-common.c (declare_hidden_char_array, add_attribute, if_elt,
        declare_function_name, decl_attributes, format_char_info,
        check_format_info, binary_op_error): Likewise.
        * cexp.y (yyerror, error, pedwarn, warning, token): Likewise.
        * gcse.c (dump_hash_table): Likewise.
        * integrate.c (function_cannot_inline_p): Likewise
        * optabs.c: Include insn-config.h earlier.
        (init_libfuncs, init_integral_libfuncs, init_floating_libfuncs):
        Qualify a char* with the `const' keyword.
        * real.c (asctoe24, asctoe53, asctoe64, asctoe113, asctoe,
        asctoeg, mtherr, ereal_atof): Likewise.
        * real.h (ereal_atof): Likewise.
        * sbitmap.c (dump_sbitmap_vector): Likewise.
        * sbitmap.h (dump_sbitmap_vector): Likewise.
        * stmt.c (nesting, n_occurrences, expand_start_case): Likewise.
        * toplev.c (rest_of_compilation): Likewise.
        * tree.h (function_cannot_inline_p, expand_start_case): Likewise.

From-SVN: r25614
1999-03-06 05:34:26 +00:00
Jason Merrill
3c2a009706 decl2.c (setup_initp): Give statics with no priority the default priority here.
* decl2.c (setup_initp): Give statics with no priority the default
	priority here.
	(do_dtors, do_ctors, finish_file): Remove special handling of
	non-prioritized statics.

From-SVN: r25613
1999-03-05 22:54:30 -05:00
Jeff Law
15d1c8cfe6 Daily bump.
From-SVN: r25612
1999-03-05 17:45:02 -07:00
Craig Burley
f177f8bfab [Nilsson] Add dependencies
From-SVN: r25611
1999-03-05 19:02:54 -05:00
Craig Burley
a9c509b345 Update NEWS derived file
From-SVN: r25610
1999-03-05 18:41:03 -05:00
Craig Burley
411d4e28f8 Warn about invoking non-Y2K-compliant intrinsics
From-SVN: r25609
1999-03-05 18:40:12 -05:00
David Edelsohn
40ae436b58 rs6000.h (ASM_OUTPUT_REG_{PUSH,POP}): Add 64-bit support and do not overwrite AIX link register save area.
* rs6000.h (ASM_OUTPUT_REG_{PUSH,POP}): Add 64-bit support and do
        not overwrite AIX link register save area.

From-SVN: r25608
1999-03-05 16:19:46 -05:00
Mark Mitchell
7d4bdeed81 cp-tree.h (ANON_UNION_TYPE_P): Robustify.
* cp-tree.h (ANON_UNION_TYPE_P): Robustify.
	* decl.c (make_typename_type): Don't issue an error if an
	immediate lookup fails; it migt be resolved later.
	* friend.c (is_friend): Add comment.
	* search.c (breadth_first_search): Add POSTFN and DATA
	parameters.  Tidy.  All callers changed.
	(lookup_field_queue_p): New function.
	(lookup_field_r): Likewise.
	(lookup_field_post): Likewise.
	(lookup_field): Use them, via breadth_first_search, instead of
	duplicating logic.
	(compute_access): Robustify.
	(lookup_fnfield_info): New structure.

From-SVN: r25607
1999-03-05 16:38:54 +00:00
Joern Rennecke
00512c3a63 Fix date.
From-SVN: r25606
1999-03-05 15:09:39 +00:00
J"orn Rennecke
0ba9b9e6bf reload.c (find_reloads_subreg_address): Actually create the USE for the register, not the new memory location.
* reload.c (find_reloads_subreg_address): Actually create the USE
	for the register, not the new memory location.

From-SVN: r25605
1999-03-05 15:07:56 +00:00
J"orn Rennecke
d62dab419a reload1.c (emit_reload_insns): If pseudo that can't be replaced with its equivalent constant...
* reload1.c (emit_reload_insns): If pseudo that can't be replaced
	with its equivalent constant, fall back to reload_in.

From-SVN: r25604
1999-03-05 13:43:54 +00:00
Richard Henderson
b85f4db33b * Makefile.in: Delete .flow2 debugging files.
From-SVN: r25603
1999-03-05 05:21:21 -08:00
Nick Clifton
1323d53a04 Fix default cpu selection
From-SVN: r25602
1999-03-05 11:38:13 +00:00
Jason Merrill
6fb2c05a1b * pt.c (tsubst, case ARRAY_REF): Use tsubst_expr again.
From-SVN: r25601
1999-03-05 06:29:22 -05:00
J"orn Rennecke
9a5bb31788 sh.h (SLOW_BYTE_ACCESS): Define to 1.
* sh.h (SLOW_BYTE_ACCESS): Define to 1.
	(BOOL_TYPE_SIZE): Define.

From-SVN: r25600
1999-03-05 11:28:33 +00:00
Jason Merrill
5747af32ee new
From-SVN: r25599
1999-03-05 06:27:06 -05:00
Craig Burley
b3b2275a5c update NEWS, intdoc.texi derived files
From-SVN: r25598
1999-03-05 05:26:20 -05:00
Craig Burley
a332224a56 Update news item about IDATE (VXT) fix timeline
From-SVN: r25597
1999-03-05 05:22:50 -05:00
Doug Rabson
268e8aeed4 configure.in: Support shared libs on FreeBSD 3.x and 4.x
* configure.in: Support shared libs on FreeBSD 3.x and 4.x
        * config/freebsd.ml: A copy of config/linux.ml since they are both
        ELF and both have a shared libm.

From-SVN: r25594
1999-03-04 18:21:14 -07:00
John Wehle
6f67a30d15 function.c (assign_stack_temp_for_type): Abort if mode == Blkmode and align is less than BIGGEST_ALIGNMENT / BITS_PER_UNIT.
* function.c (assign_stack_temp_for_type): Abort
        if mode == Blkmode and align is less than
        BIGGEST_ALIGNMENT / BITS_PER_UNIT.
        (assign_stack_temp_for_type): Round the size parameter
        passed to assign_stack_local instead of size itself.
Bootstrapped on the PA and x86.

From-SVN: r25593
1999-03-04 18:19:25 -07:00
Jeff Law
01587fa2fe Daily bump.
From-SVN: r25592
1999-03-04 17:45:06 -07:00
H.J. Lu
f10a4de1a5 linuxlibc1.mt (MT_CFLAGS): Add -D_G_STDIO_USES_LIBIO -D_G_HAVE_WEAK_SYMBOL.
* config/linuxlibc1.mt (MT_CFLAGS): Add -D_G_STDIO_USES_LIBIO
	-D_G_HAVE_WEAK_SYMBOL.
	* genops.c: Add the proper weak alias if _G_STDIO_USES_LIBIO
	and _G_HAVE_WEAK_SYMBOL are defined.
	* iofclose.c: Likewise.
	* iofeof.c: Likewise.
	* ioferror.c: Likewise.
	* iogetc.c: Likewise.
	* ioputc.c: Likewise.
	* iovsprintf.c: Likewise.
	* iovsscanf.c: Likewise.

From-SVN: r25590
1999-03-04 17:19:16 -07:00
Mark Mitchell
6f58f81970 Remove duplicate of typename3.C
From-SVN: r25588
1999-03-04 22:19:36 +00:00
Richard Henderson
aa3d4bf947 flow.c (delete_unreachable_blocks): Mark blocks as they are put on to the worklist, not as they are taken off.
* flow.c (delete_unreachable_blocks): Mark blocks as they
        are put on to the worklist, not as they are taken off.

From-SVN: r25584
1999-03-04 07:01:06 -08:00
Jeff Law
dd5657ed92 Daily bump.
From-SVN: r25573
1999-03-03 17:45:04 -07:00
Jeffrey A Law
202d316417 function.c (current_function_has_computed_jump): Remove duplicate definition.
* function.c (current_function_has_computed_jump): Remove duplicate
        definition.

From-SVN: r25571
1999-03-03 16:13:41 -07:00
Richard Henderson
dbfea53d02 Remove ChangeLog entries for flow rewrite for changes that were removed before they were checked in.
Remove ChangeLog entries for flow rewrite for changes that were removed
before they were checked in.  Add Makefile.in changes which were mentioned
in the ChangeLog, but never included in Makefile.in.

From-SVN: r25570
1999-03-03 16:08:02 -07:00
Jim Wilson
2e4a567ed5 Make C++ static constructors work for m68k-elf.
* m68k/m68020-elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Undef.
	(STARTFILE_SPEC, ENDFILE_SPEC): Define to empty string.

From-SVN: r25565
1999-03-03 12:04:07 -08:00
Jim Wilson
9f89a6c5fa Fix sparc-elf bugs stemming from solaris2 changes.
* sparc/elf.h (MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL,
	MODDI3_LIBCALL, UMODDI3_LIBCALL, STDC_0_IN_SYSTEM_HEADERS): Undef.
	(INIT_SUBTARGET_OPTABS): Define to empty.

From-SVN: r25564
1999-03-03 11:19:29 -08:00
Jason Merrill
e9659ab02f class.c, [...]: Add 'static' to make SunOS 4 cc happy.
* class.c, decl2.c, method.c, pt.c: Add 'static' to make SunOS 4
	cc happy.
	* decl2.c (import_export_class): Also return if
	CLASSTYPE_INTERFACE_ONLY is set.

From-SVN: r25562
1999-03-03 06:24:45 -05:00
Martin v. Löwis
4cdea27381 New test case
From-SVN: r25561
1999-03-03 11:23:47 +00:00
Martin v. Löwis
0580c9aa4c decl.c (push_overloaded_decl): Only overwrite the old binding if there was one.
* decl.c (push_overloaded_decl): Only overwrite the old binding if
	there was one.
	* decl2.c (do_local_using_decl): Fix loop termination.

From-SVN: r25560
1999-03-03 11:22:42 +00:00
Bruce Korb
69063200c2 Merge from fixincl-branch
From-SVN: r25559
1999-03-03 08:07:47 +00:00
Bruce Korb
1f414ac48f Merge from fixincl-branch
From-SVN: r25558
1999-03-03 07:41:52 +00:00
Jeff Law
9a9f6326f2 Daily bump.
From-SVN: r25555
1999-03-02 17:45:33 -07:00
Mark Mitchell
bf8f3f938b cp-tree.h (determine_specialization): Don't declare.
* cp-tree.h (determine_specialization): Don't declare.
	* pt.c (determine_specialization): Make it static.  Eliminate
	complain parameter.  Note that decl is always non-NULL now, and
	simplify accordingly.

From-SVN: r25554
1999-03-02 23:44:49 +00:00