Commit Graph

16011 Commits

Author SHA1 Message Date
Robert Lipe
a438d567a5 g++.robertl: New testsuite area.
From-SVN: r18455
1998-03-09 22:45:29 +00:00
Alexandre Oliva
e335c5414b g++.old-deja/g++.other/friend1.C: New test.
From-SVN: r18454
1998-03-09 22:38:00 +00:00
Jim Wilson
11a932c0ff Workaround for -fprofile-arcs/computed goto failure.
* profile.c (branch_prob): If see computed goto, call fatal instead of
	abort.

From-SVN: r18453
1998-03-09 09:11:32 -08:00
Jim Wilson
eeb54a4912 Patch from Eric Dana to add macros defined by Siemens compiler.
* config/mips/sni-svr4.h (CPP_PREDEFINE): Add -DSNI and -Dsinix.

From-SVN: r18452
1998-03-09 07:18:50 -08:00
Jim Wilson
35011dd56c Patch from Bruno Haible for alpha-dec-osf build failure.
* configure.in (alpha-dec-osf): Add default case for osf* to switch.

From-SVN: r18451
1998-03-09 07:14:51 -08:00
Jim Wilson
bdd3e6abed Patch to fix mips64-elf varargs aliasing failures.
* function.c (put_reg_into_stack): Copy MEM_IN_STRUCT_P from new.
	(assign_parms): Set aggregate if hide_last_arg and last_named.

From-SVN: r18450
1998-03-09 04:03:21 -08:00
Joern Rennecke
25938114e3 Typo fix.
From-SVN: r18449
1998-03-09 12:02:59 +00:00
J"orn Rennecke
af0356161e * final.c (shorten_branches): Initialize insn_addresses.
From-SVN: r18448
1998-03-09 12:00:42 +00:00
J"orn Rennecke
97e3c42239 * sh.h (MUST_PASS_IN_STACK): Define.
From-SVN: r18447
1998-03-09 06:13:39 +00:00
Jeffrey A Law
5e75ef4aca final.c (shorten_branches): Fix minor logic error in ADDR_DIFF_VEC shortening support.
* final.c (shorten_branches): Fix minor logic error in
        ADDR_DIFF_VEC shortening support.

From-SVN: r18443
1998-03-08 05:04:17 -07:00
Jeffrey A Law
9961366112 Bump for snapshot
From-SVN: r18440
1998-03-07 19:17:44 -07:00
Jeffrey A Law
168cbdf99b haifa-sched.c (is_cfg_nonregular): Change return type to an int.
* haifa-sched.c (is_cfg_nonregular): Change return type to
        an int.  No longer compute "estimated" number of edges.  Use
        computed_jump_p instead of duplicating the code.  Fixup/add
        some comments.
        (build_control_flow): Returns a value indicating an irregularity
        in the cfg was detected.  Count the number of edges in the cfg.
        allocate various edge tables.
        (find_rgns): No longer look for unreachable blocks.
        (schedule_insns): Do not allocate memory for edge tables here.
        Free memory for edge tables before returning.  Do not perform
        cross block scheduling if build_control_flow returns nonzero.
        * flow.c (compute_preds_succs): More accurately determine when
        a block drops in.
Fixes various compile hangs after haifa cleanup.

From-SVN: r18439
1998-03-07 19:15:26 -07:00
Jeffrey A Law
52becdc035 * basic-block.h (free_basic_block_vargs): Provide prototype.
From-SVN: r18438
1998-03-06 18:14:32 -07:00
Jeff Law
2fa1eead94 Tweak from Craig.
From-SVN: r18436
1998-03-06 16:55:14 -07:00
Jeffrey A Law
8ea2b11157 * cccp.c (main): Fix dumb mistakes in last change.
From-SVN: r18435
1998-03-06 16:54:33 -07:00
Jeffrey A Law
e817b5e377 Fix typo.
From-SVN: r18434
1998-03-06 15:24:29 -07:00
Joern Rennecke
33f7f35385 rtl.h (addr_diff_vec_flags): New typedef.
* rtl.h (addr_diff_vec_flags): New typedef.
	(union rtunion_def): New member rt_addr_diff_vec_flags.
	(ADDR_DIFF_VEC_FLAGS): New macro.
	* sh.c (output_branch): Fix offset overflow problems.
	* final.c (shorten_branches): Implement CASE_VECTOR_SHORTEN_MODE.
	(final_scan_insn): New argument BODY for ASM_OUTPUT_ADDR_DIFF_ELT.
	* rtl.def (ADDR_DIFF_VEC): Three new fields (min, max and flags).
	* stmt.c (expand_end_case): Supply new arguments to
	gen_rtx_ADDR_DIFF_VEC.
	* 1750a.h (ASM_OUTPUT_ADDR_DIFF_ELT): New argument BODY.
	* alpha.h, arc.h, clipper.h, convex.h : Likewise.
	* dsp16xx.h, elxsi.h, fx80.h, gmicro.h, h8300.h : Likewise.
	* i370.h, i386.h, i860.h, i960.h, m32r.h, m68k.h, m88k.h : Likewise.
	* mips.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pyr.h : Likewise.
	* rs6000.h, sh.h, sparc.h, spur.h, tahoe.h, v850.h : Likewise.
	* vax.h, we32k.h, alpha/vms.h, arm/aof.h, arm/aout.h : Likewise.
	* i386/386bsd.h, i386/freebsd-elf.h : Likewise.
	* i386/freebsd.h, i386/linux.h : Likewise.
	* i386/netbsd.h, i386/osfrose.h, i386/ptx4-i.h, i386/sco5.h : Likewise.
	* i386/sysv4.h, m68k/3b1.h, m68k/dpx2.h, m68k/hp320.h : Likewise.
	* m68k/mot3300.h, m68k/sgs.h : Likewise.
	* m68k/tower-as.h, ns32k/encore.h, sparc/pbd.h : Likewise.
	* sh.h (INSN_ALIGN, INSN_LENGTH_ALIGNMENT): Define.
	(CASE_VECTOR_SHORTEN_MODE): Define.
	(short_cbranch_p, align_length, addr_diff_vec_adjust): Don't declare.
	(med_branch_p, braf_branch_p): Don't declare.
	(mdep_reorg_phase, barrier_align): Declare.
	(ADJUST_INSN_LENGTH): Remove alignment handling.
	* sh.c (uid_align, uid_align_max): Deleted.
	(max_uid_before_fixup_addr_diff_vecs, branch_offset): Deleted.
	(short_cbranch_p, med_branch_p, braf_branch_p, align_length): Deleted.
	(cache_align_p, fixup_aligns, addr_diff_vec_adjust): Deleted.
	(output_far_jump): Don't use braf_branch_p.
	(output_branchy_insn): Don't use branch_offset.
	(find_barrier): Remove checks for max_uid_before_fixup_addr_diff_vecs.
	Remove paired barrier stuff.
	Don't use cache_align_p.
	Take alignment insns into account.
	(fixup_addr_diff_vecs): Reduce to only fixing up the base label of
	the addr_diff_vec.
	(barrier_align, branch_dest): New function.
	(machine_dependent_reorg, split_branches): Remove infrastructure
	for branch shortening that is now provided in the backend.
	* sh.md (short_cbranch_p, med_branch_p, med_cbranch_p): New attributes.
	(braf_branch_p, braf_cbranch_p): Likewise.
	(attribute length): Use new attributes.
	(casesi_worker): Get mode and unsignednedd from ADDR_DIFF_VEC.
	(addr_diff_vec_adjust): Delete.
	(align_2): Now a define_expand.
	(align_log): Now length 0.

From-SVN: r18433
1998-03-06 14:54:07 +00:00
Michael Meissner
170a16c7f6 Fix calculation of right function unit
From-SVN: r18432
1998-03-06 11:44:45 +00:00
Kaveh R. Ghazi
688f06038b Warning fixes:
* mips/mips.h: Prototype `machine_dependent_reorg'.
        (ASM_OUTPUT_ALIGN): Remove unused variable `mask'.

From-SVN: r18431
1998-03-06 11:03:35 +00:00
Joern Rennecke
5a32a90c0b final.c (shorten_branches): Restore accidentally removed code.
8
        * final.c (shorten_branches): Restore accidentally removed code.

From-SVN: r18430
1998-03-06 03:41:22 -07:00
Joern Rennecke
19cbe68d27 final.c (shorten_branches): Restore accidentally removed code.
�
        * final.c (shorten_branches): Restore accidentally removed code.

From-SVN: r18429
1998-03-06 03:41:21 -07:00
Kaveh Ghazi
3e81fe044e Grr, ChangeLog entry for last change.
* method.c: Include "system.h" to get stdlib.h, stdio.h,
        ctype.h, string.h, etc.
        (issue_nrepeats): Add default case in enumeration switch.
        (check_btype): Likewise.
        (process_overload_item): Likewise.
        * Makefile.in (method.o): Depend on system.h.

From-SVN: r18428
1998-03-06 07:17:34 +00:00
Kaveh Ghazi
31bebb60e9 Warning fix:
* method.c: Include "system.h" to get stdlib.h, stdio.h,
        ctype.h, string.h, etc.
        (issue_nrepeats): Add default case in enumeration switch.
        (check_btype): Likewise.
        (process_overload_item): Likewise.
        * Makefile.in (method.o): Depend on system.h.

From-SVN: r18427
1998-03-06 07:11:30 +00:00
Andreas Schwab
8add77cef5 configure.in: Remove duplicate uses of AC_PROG_CC and AC_PROG_MAKE_SET.
* configure.in: Remove duplicate uses of AC_PROG_CC and
	AC_PROG_MAKE_SET.

From-SVN: r18426
1998-03-06 02:02:18 +00:00
Richard Henderson
9a06b8421f * config.sub: Accept alphapca56 and alphaev6 properly.
From-SVN: r18425
1998-03-05 17:02:12 -08:00
Richard Henderson
fbb5ed6726 * configure.in (target_cpu_default2): Correct typo for alphapca56.
From-SVN: r18424
1998-03-05 17:00:41 -08:00
Franz Sirl
217fc4e6e1 * configure.in: Revert 3 Jan change for powerpc-linux-gnulibc1.
From-SVN: r18423
1998-03-05 16:11:56 -07:00
Jeffrey A Law
5ece974606 haifa-sched.c (build_jmp_edges): Delete dead function.
* haifa-sched.c (build_jmp_edges): Delete dead function.
        (build_control_flow): Use cfg routines from flow.c
        (schedule_insns): Remove debugging code accidentally checked
        in earlier today.
        * basic-block.h: Add external integer list structures, typdefs,
        accessor macros and function declarations.  Simlarly for
        basic block pred/succ support and simple bitmap stuff.
        * flow.c: Add functions for integer list, basic block pred/succ
        support and simple bitmap support.
        (compute_dominators): New function to compute dominators and
        post dominators.
        (find_basic_blocks): Split into two functions.
        (life_analysis): Likewise.
        (flow_analysis): Removed.  Now handled by calling find_basic_blocks,
        the life_analysis from toplev.c
        * toplev.c (rest_of_compilation): Call find_basic_blocks, then
        life_analysis instead of flow_analysis.

Co-Authored-By: Doug Evans <devans@cygnus.com>

From-SVN: r18421
1998-03-05 15:31:51 -07:00
J"orn Rennecke
ac9b3c970e jump.c (jump_optimize): Call mark_jump_label also for deleted insns.
* jump.c (jump_optimize): Call mark_jump_label also for deleted
        insns.
        (mark_jump_label): Don't increment ref counts for deleted insns.

From-SVN: r18420
1998-03-05 15:05:51 -07:00
Kaveh R. Ghazi
6e92f4b6a2 Warning fixes:
* mips/iris6.h (TARGET_DEFAULT): Parenthesize macro definition.
        * mips/mips.c: Include stdlib.h and unistd.h.
        (mips_asm_file_end): Add braces around empty body in an if-statement.
        (function_prologue): Wrap variable `fnname' in
        !FUNCTION_NAME_ALREADY_DECLARED.  Correct format specifier in fprintf.
        (mips_select_rtx_section, mips_select_section): Declare as void.
        * mips/mips.h: Add prototypes for extern functions in mips.c.
        (FUNCTION_ARG_REGNO_P): Add parentheses around && within ||.
        (ENCODE_SECTION_INFO): Add braces around empty body in an
        if-statement.
        * mips/mips.md (movdi): Add parentheses around && within ||.
        (movsf, movdf): Likewise.
        (branch_zero, branch_zero_di): Add default case in
        enumeration switch.

From-SVN: r18419
1998-03-05 07:09:04 +00:00
Kaveh Ghazi
b10df6f5ec Remove asterisk from ghazi@caip.rutgers.edu
From-SVN: r18418
1998-03-05 06:53:17 +00:00
Richard Henderson
9ba3994aa3 alpha.h (TARGET_WINDOWS_NT, [...]): Just make them real constants, since they can't be changed.
* alpha/alpha.h (TARGET_WINDOWS_NT, TARGET_OPEN_VMS): Just make them
        real constants, since they can't be changed.
        (TARGET_AS_CAN_SUBTRACT_LABELS): New.
        * alpha/alpha.md (builtin_setjmp_receiver): Use it.
        * alpha/osf.h (TARGET_AS_CAN_SUBTRACT_LABELS): New.
        * alpha/osf2or3.h (TARGET_AS_CAN_SUBTRACT_LABELS): New.
        * alpha/vms.h (TARGET_OPEN_VMS): New.
        * alpha/win-nt.h (TARGET_WINDOWS_NT): New.

From-SVN: r18417
1998-03-04 18:50:12 -08:00
Richard Henderson
5ec105cd71 reload.c (find_reloads): Always force (subreg (mem)) to be reloaded if WORD_REGISTER_OPERATIONS.
* reload.c (find_reloads): Always force (subreg (mem)) to be
reloaded if WORD_REGISTER_OPERATIONS.

From-SVN: r18416
1998-03-04 18:42:22 -08:00
Richard Henderson
ebb7b10b6d haifa-sched.c (free_list): Rename from free_pnd_lst.
* haifa-sched.c (free_list): Rename from free_pnd_lst.
(free_pending_lists): Rename free_pnd_lst uses.
(remove_dependence): Place expunged element on unused_insn_list.
(alloc_INSN_LIST, alloc_EXPR_LIST): New.  Change all callers of
gen_rtx_*_LIST and alloc_rtx to use them.
(compute_block_backward_dependences): Free the reg_last_* lists.

From-SVN: r18415
1998-03-04 18:15:23 -08:00
Manfred Hollstein
c940e6278c config.table: Make locating frag files failsafe even for the special case if...
�
	* config.table: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.
	* configure.in: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.

From-SVN: r18414
1998-03-05 00:28:14 +00:00
Manfred Hollstein
05abeea015 config.table: Make locating frag files failsafe even for the special case if...
�
	* config.table: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.
	* configure.in: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.

From-SVN: r18413
1998-03-05 00:28:13 +00:00
Manfred Hollstein
e8919ca702 config.table: Make locating frag files failsafe even for the special case if...
a
	* config.table: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.
	* configure.in: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.

From-SVN: r18412
1998-03-05 00:28:12 +00:00
Manfred Hollstein
299cd3c1d8 config.table: Make locating frag files failsafe even for the special case if...
�
	* config.table: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.
	* configure.in: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.

From-SVN: r18411
1998-03-05 00:28:11 +00:00
Manfred Hollstein
0a9e7530d9 config.table: Make locating frag files failsafe even for the special case if...
* config.table: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.
	* configure.in: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.

From-SVN: r18410
1998-03-05 00:28:10 +00:00
Jeffrey A Law
cb37ce6295 cccp.c (main): Avoid undefined behavior when setting pend_includes and pend_files.
* cccp.c (main): Avoid undefined behavior when setting pend_includes
        and pend_files.

From-SVN: r18409
1998-03-04 16:03:14 -07:00
Andreas Schwab
68ff1582a9 lex.c (do_scoped_id): Fix parenthesizing.
8
        * lex.c (do_scoped_id): Fix parenthesizing.

From-SVN: r18408
1998-03-04 14:24:06 -07:00
Andreas Schwab
d574824c99 lex.c (do_scoped_id): Fix parenthesizing.
�
        * lex.c (do_scoped_id): Fix parenthesizing.

From-SVN: r18407
1998-03-04 14:24:04 -07:00
Franz Sirl
ce514f5730 linux.h: don't define DEFAULT_VTABLE_THUNKS to 1 if USE_GNULIBC_1 is defined
* rs6000/linux.h: don't define DEFAULT_VTABLE_THUNKS to 1 if
        USE_GNULIBC_1 is defined
        * configure.in: add a new case powerpc-*-linux-gnulibc1 which
        includes the t-linux-gnulibc1 fragment

From-SVN: r18405
1998-03-04 13:59:50 -07:00
Jeffrey A Law
f75fb5095c * Make-lang.in: Remove more references to libf77.
From-SVN: r18404
1998-03-04 09:35:10 -07:00
Ulrich Drepper
875dfceca0 (operator<<): Correct type of numeric argument.
From-SVN: r18403
1998-03-04 12:40:30 +00:00
Jim Wilson
89a5e42bfd Fix typo found by Kaveh Ghazi while looking at -Wall problems.
* mips.md (movdf_internal1a): Fix misplaced parenthesis in condition.

From-SVN: r18402
1998-03-04 04:15:47 -08:00
Michael Tiemann
5427d758dd rtti.c (get_tinfo_fn_dynamic): If this function is called an FLAG_RTTI is unset...
* rtti.c (get_tinfo_fn_dynamic): If this function is called an
	FLAG_RTTI is unset, initialize type info machinery and continue
	with FLAG_RTTI enabled.
	(get_typeid): Ditto.

From-SVN: r18401
1998-03-04 07:13:02 -05:00
Jason Merrill
8f279ed7be typeck.c (unary_complex_lvalue): &D::i has type B::* if i comes from B.
* typeck.c (unary_complex_lvalue): &D::i has type B::* if i comes
	from B.

From-SVN: r18400
1998-03-04 06:56:29 -05:00
Mark Mitchell
a1da6cbacf pt.c (finish_member_template_decl): Deal more gracefully with invalid declarations.
* pt.c (finish_member_template_decl): Deal more gracefully with
	invalid declarations.

From-SVN: r18399
1998-03-04 11:33:01 +00:00
J"orn Rennecke
1dd8faa86e * final.c (final_scan_insn, case CODE_LABEL: Cleanup.
From-SVN: r18398
1998-03-04 10:50:18 +00:00