Commit Graph

14323 Commits

Author SHA1 Message Date
David S. Miller c107334d5c reorg.c (dbr_schedule): At end of this pass...
* reorg.c (dbr_schedule): At end of this pass, add REG_BR_PRED
        note holding get_jump_flags() calculation to all JUMP_INSNs.
        * rtl.h (enum reg_note): New note types REG_BR_PRED and REG_SAVE_AREA.
        * rtl.c (reg_note_name): Add new note types.

From-SVN: r15670
1997-09-23 01:14:07 -06:00
Dave Love 5cd278f399 dtime_.c (G77_dtime_0): Fix types in HAVE_GETRUSAGE case so as not to truncate results to integer values.
* libU77/dtime_.c (G77_dtime_0): Fix types in HAVE_GETRUSAGE case
        so as not to truncate results to integer values.
        * libU77/Version.c: Bump.

From-SVN: r15669
1997-09-23 01:06:54 -06:00
Jeff Law 0774afd709 Fix typo.
From-SVN: r15668
1997-09-23 01:01:34 -06:00
Jeffrey A Law 8d7532d94f rtlanal.c (jmp_uses_reg_or_mem): Fix typo in last change.
* rtlanal.c (jmp_uses_reg_or_mem): Fix typo in last change.
Fixes various bootstrap problems (hopefully).

From-SVN: r15667
1997-09-23 00:58:12 -06:00
H.J. Lu 7019d00e09 loop.c (indirect_jump_in_function_p): Return 0 by default.
* loop.c (indirect_jump_in_function_p): Return 0
        by default.

From-SVN: r15666
1997-09-23 00:40:37 -06:00
Alexandre Oliva 4d935b402f Make-lang.in: install.texi was renamed to g77install.texi
* Make-lang.in: install.texi was renamed to g77install.texi
        * install0.texi: Likewise.

From-SVN: r15665
1997-09-23 00:38:19 -06:00
Jeffrey A Law b9dfb357c8 xm-rs6000.h: Fix thinko in last change.
* rs6000/xm-rs6000.h: Fix thinko in last change.
        * rs6000/xm-sysv4.h: Likewise.

From-SVN: r15664
1997-09-23 00:31:44 -06:00
Jim Wilson 4b7e467be2 Fix irix5/irix6 dwarf2out assertion failures
Fix irix5/irix6 dwarf2out assertion failures
	* mips.c (save_restore_insns): Only set RTX_FRAME_RELATED_P if store_p.

From-SVN: r15661
1997-09-22 21:48:36 -07:00
Brendan Kehoe 59f1f2c4c4 decl.c (start_function): Up warning of no return type to be a pedwarn.
* decl.c (start_function): Up warning of no return type to be a
	pedwarn.

From-SVN: r15660
1997-09-22 22:13:04 -04:00
Jeffrey A Law 8c8e6faa0d * reg-stack.c (find_blocks): Fix thinko in last change.
From-SVN: r15655
1997-09-22 14:38:35 -06:00
Andreas Schwab 078e983e51 m68k.c (output_function_prologue): Add dwarf2 support.
* m68k.c (output_function_prologue): Add dwarf2 support.

        * m68k.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_REGNUM,
        INCOMING_FRAME_SP_OFFSET): New definitions.

From-SVN: r15631
1997-09-22 11:46:38 -06:00
David S. Miller 9524f769a7 combine.c (try_combine): Use NULL_RTX instead of '0' where appropriate in calls to gen_rtx().
* combine.c (try_combine): Use NULL_RTX instead of '0' where
        appropriate in calls to gen_rtx().
        * cse.c (cse_main): Likewise.
        * emit-rtl.c (gen_label_rtx): Likewise.
        * expr.c (init_expr_once): Likewise.
        * haifa-sched.c (flush_pending_lists, sched_analyze_insn,
        sched_analyze, init_rgn_data_dependences,
        compute_block_backward_dependences): Likewise.
        * sched.c (schedule_insns): Likewise.
        * varasm.c (immed_double_const): Likewise.

From-SVN: r15630
1997-09-22 11:41:48 -06:00
David S. Miller d70276675c sparc.h (INCOMING_FRAME_SP_OFFSET): Define to SPARC_STACK_BIAS for sake of dwarf2 on sparc64.
* sparc.h (INCOMING_FRAME_SP_OFFSET): Define to
        SPARC_STACK_BIAS for sake of dwarf2 on sparc64.

From-SVN: r15628
1997-09-22 11:34:49 -06:00
J. Kean Johnston fbf8b71c36 sco5.h: Make ELF default file format and add -mcoff/-melf..
* i386/sco5.h: Make ELF default file format and add -mcoff/-melf..
        (MULTILIB_DEFAULTS): Define.
        (ASM_SPEC, CPP_SPEC): Handle -mcoff.
        (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC): Likewise.
        (LIBGCC_SPEC): Likewise.
        (MASK_COFF, TARGET_COFF, TARGET_ELF): Define.
        (SUBTARGET_SWITCHES): Add -mcoff and -melf.
        * i386/t-sco5 (CRTSTUFF_T_CFLAGS): Add -fPIC.
        (CRTSTUFF_T_CFLAGS_S): Tweak for COFF.
        (EXTRA_PARTS, TAROUTOPTS): Delete.
        (libgcc1-elf, libgcc2-elf, libgcc-elf targets): Delete.
        (MULTILIB_OPTIONS): Define.
        (MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): Likewise.
        (MULTILIB_MATCHE, MULTILIB_EXTRA_OPTS): Likewise.
SCO Open Server patches.

From-SVN: r15627
1997-09-22 11:31:47 -06:00
Jeffrey A Law c14a951f31 * version.c: Bump for snapshot.
From-SVN: r15624
1997-09-22 02:08:15 -06:00
Jeffrey A Law 37aa45a21d loop.c (loop_number): Delete function.
* loop.c (loop_number): Delete function.  Change all references
        to use uid_loop_num array.
        * loop.h (loop_number): Delete declaration.
        * unroll.c (unroll_loop): Change "loop_number" references to
        use uid_loop_num instead.
Still cleaning up haifa.

From-SVN: r15623
1997-09-21 21:04:36 -06:00
Jeff Law b47404d137 loop.c (loop_unroll_factor): Move outside #ifdef HAIFA conditional.
* loop.c (loop_unroll_factor): Move outside #ifdef HAIFA
        conditional.
        (loop_unroll_iter): Remove unused variable and all references.
        (loop_optimize): Always allocate and clear space for loop_unroll_factor.
        (insert_bct): Fix minor formatting problems.
        * loop.h (loop_unroll_factor): Move decl outside #ifdef HAIFA.
        (loop_unroll_iter): Removed unused decl.
        * unroll.c (unroll_loop): Remove code to set loop_unroll_iter.
        Always record the unrolling factor.

From-SVN: r15622
1997-09-21 19:50:04 -06:00
Jeff Law 237a9795cb loop.c (loop_unroll_factor): Move outside #ifdef HAIFA conditional.
* loop.c (loop_unroll_factor): Move outside #ifdef HAIFA
        conditional.
        (loop_unroll_iter): Remove unused variable and all references.
        (loop_optimize): Always allocate and clear space for loop_unroll_factor.
        (insert_bct): Fix minor formatting problems.
        * loop.h (loop_unroll_factor): Move decl outside #ifdef HAIFA.
        (loop_unroll_iter): Removed unused decl.
        * unroll.c (unroll_loop): Remove code to set loop_unroll_iter.
        Always record the unrolling factor.
More haifa cleanup

From-SVN: r15621
1997-09-21 19:49:19 -06:00
Jeff Law 813f674a97 Forgot to check in last time.
From-SVN: r15620
1997-09-21 19:44:35 -06:00
Jeff Law d5ff3a2ec5 Fix typo.
From-SVN: r15619
1997-09-21 19:33:52 -06:00
Jeffrey A Law cb3bb2a765 cse.c (simplify_relational_operation): Set h0u just like h0s.
* cse.c (simplify_relational_operation): Set h0u just like h0s.
        Similarly for h1u and h1s.

From-SVN: r15616
1997-09-21 19:28:22 -06:00
Jeffrey A Law 2a1777af22 jump.c (jmp_uses_reg_or_mem): Deleted unused function.
* jump.c (jmp_uses_reg_or_mem): Deleted unused function.
        (find_basic_blocks): Use computed_jump_p to determine if a
        particular JUMP_INSN is a computed jump.
        * reg-stack.c (find_blocks): Use computed_jump_p to determine
        if a particular JUMP_INSN is a computed jump.
        * rtlanal.c (jmp_uses_reg_or_mem): New function.
        (computed_jump_p): Likewise.
        * rtl.h (computed_jump_p): Declare.
        * genattrtab.c (pc_rtx): Define and initialize.
        * loop.c (loop_optimize): Always determine if the current
        function has a computed jump.
        (indirect_jump_in_function_p): Use computed_jump_p to determine
        if a particular JUMP_INSN is a computed jump.
General (and haifa) cleanups.

From-SVN: r15615
1997-09-21 18:49:32 -06:00
Jeff Law 37842442c3 Finish last change.
From-SVN: r15614
1997-09-21 17:46:54 -06:00
Jeffrey A Law 7014927a4e loop.c (fix_bct_param): Delete unused function.
* loop.c (fix_bct_param): Delete unused function.
        (check_bct_param): Likewise.

From-SVN: r15613
1997-09-21 17:43:38 -06:00
Jason Merrill 6d53d7c252 * frame.c (__deregister_frame): Check properly for initialized object.
From-SVN: r15601
1997-09-20 19:46:43 -04:00
Jason Merrill b82b76c6ba call.c (build_over_call): Do require_complete_type before build_cplus_new.
* call.c (build_over_call): Do require_complete_type before
	build_cplus_new.

Fixes t20.C mode problem.

From-SVN: r15598
1997-09-20 18:38:48 -04:00
H.J. Lu 71e4fbe6df * alpha/linux.h (HANDLE_SYSV_PRAGMA): Defined.
From-SVN: r15594
1997-09-19 20:48:37 -06:00
Jim Wilson f1ee40b618 Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.
* Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.

Brought over from devo.

From-SVN: r15593
1997-09-19 20:43:51 -06:00
J"orn Rennecke cc5e164240 jump.c (thread_jumps): check can_reverse_comparison_p before threading a reversed-condition jump.
* jump.c (thread_jumps): check can_reverse_comparison_p before
        threading a reversed-condition jump.

From-SVN: r15590
1997-09-19 19:05:16 -06:00
J"orn Rennecke 272299b9ca sched.c (update_flow_info): Don't pass SCRATCH to dead_or_set_p.
* sched.c (update_flow_info): Don't pass SCRATCH to dead_or_set_p.
        * haifa-sched.c (update_flow_info): Likewise.

From-SVN: r15589
1997-09-19 18:52:52 -06:00
Jeffrey A Law 09f97c1e6c * Makefile.in (cross): New target.
From-SVN: r15564
1997-09-18 23:56:16 -06:00
Alexandre Oliva 339c9b006c Makefile.in (bootstrap2, bootstrap3): New targets.
* Makefile.in (bootstrap2, bootstrap3): New targets.
        (all-bootstrap): Remove outdated and confusing target.
        (bootstrap, bootstrap2, bootstrap3): Don't pass BOOT_CFLAGS down.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>

From-SVN: r15563
1997-09-18 23:23:00 -06:00
Jeffrey A Law e649372777 * Makefile.in (BOOT_CFLAGS): Use -O2.
From-SVN: r15562
1997-09-18 23:21:34 -06:00
Jeffrey A Law a79177f5a1 proj.h (FFEPROJ_BSEARCH): Delete all references.
* proj.h (FFEPROJ_BSEARCH): Delete all references.
        (FFEPROJ_STRTOUL): Likewise.
        * proj.c (bsearch): Compile this if no bsearch is provided by the
        host system.
        (strtoul): Similarly.

From-SVN: r15561
1997-09-18 23:16:54 -06:00
Jeffrey A Law 1e467e19b0 configure.in (strtoul, bsearch): Have autoconf check for these functions.
* configure.in (strtoul, bsearch): Have autoconf check for these
        functions.
        * configure, config.in: Rebuilt.
So Fortran front end can use HAVE_STRTOUL and HAVE_BSEARCH.

From-SVN: r15560
1997-09-18 23:14:32 -06:00
Alexandre Oliva 335d0ab208 Makefile.in (bootstrap2, bootstrap3): New targets.
* Makefile.in (bootstrap2, bootstrap3): New targets.
        (all-bootstrap): Remove outdated and confusing target.

Co-Authored-By: Jeffrey A Law <law@cygnus.com>

From-SVN: r15559
1997-09-18 21:42:14 -06:00
Jeff Law c52c47b4cd Forgot to commit in last change.
From-SVN: r15558
1997-09-18 21:30:32 -06:00
Jeffrey A Law 185110146b xm-mot3300.h (alloca): Properly declare if __STDC__.
* m68k/xm-mot3300.h (alloca): Properly declare if __STDC__.
        * mips/mips.h (alloca): Likewise.
        * rs6000/xm-rs6000.h (alloca): Likewise.
        * rs6000/xm-sysv4.h: Likewise.
Fixes build problem when using an ANSI compiler that isn't gcc.

From-SVN: r15557
1997-09-18 21:12:55 -06:00
Jeffrey A Law 4ac480d605 g77install.texi: Renamed from install.texi
* g77install.texi: Renamed from install.texi
        * g77.texi: Corresponding changes.

Fixes problem with g77.texi getting gcc/install.texi instead of
gcc/f/install.texi when building in the source tree.

From-SVN: r15556
1997-09-18 19:28:39 -06:00
Jason Merrill 238109cd66 search.c (lookup_field): Call complete_type in all cases.
* search.c (lookup_field): Call complete_type in all cases.

Fixes CLN problems.

	* decl.c (finish_function): Just warn about flowing off the end.

From-SVN: r15555
1997-09-18 19:52:48 -04:00
Jason Merrill 6020d3605c final.c (final_scan_insn): Hand BARRIERs off to the dwarf2 code.
* final.c (final_scan_insn): Hand BARRIERs off to the dwarf2 code.
	* dwarf2out.c (dwarf2out_frame_debug): Pass the whole insn along.
	(dwarf2out_stack_adjust): A BARRIER resets the args space to 0.

	* except.c (end_eh_unwinder): Subtract 1 from return address.
	* libgcc2.c (__throw): Likewise.
	(find_exception_handler): Don't change PC here.  Compare end with >.

From-SVN: r15554
1997-09-18 19:33:56 -04:00
Jeffrey A Law feb5876a0b * fini.c (main): Return type is int.
From-SVN: r15553
1997-09-18 17:33:06 -06:00
Jeffrey A Law b92f5cc093 com.c (lang_printable_name): Use verbosity argument.
* com.c (lang_printable_name): Use verbosity argument.
Just to keep the compiler quiet.

From-SVN: r15552
1997-09-18 17:30:08 -06:00
Nick Clifton b24bcfb3e6 v850.c (compute_register_save_size): Correct register number.
* v850.c (compute_register_save_size): Correct register
        number.
        * v850.md (save_interrupt, return_interrupt): Correct
        register number.
        * v850/lib1funcs.asm (save_interrupt): Correct register number.
        (return_interrupt): Use stack pointer, not element pointer.

From-SVN: r15550
1997-09-18 17:19:55 -06:00
Jeffrey A Law 9ee29ed7fd Makefile.in (stamp-lib): Don't use '$?'...
* Makefile.in (stamp-lib): Don't use '$?', explicitly
        list the variables containing the object files to include
        in libf2c.a

From-SVN: r15545
1997-09-18 16:56:25 -06:00
Jeffrey A Law d6420b5b31 * Make-lang.in: Fix merge problems.
From-SVN: r15544
1997-09-18 16:06:05 -06:00
Brendan Kehoe 93cf819dee configure.in, configure: Make sure to create the stage* and include symbolic links in each subdirectory.
* configure.in, configure: Make sure to create the stage* and include
	symbolic links in each subdirectory.

copy that's also now in at the FSF; only does it if $symbolic_link is
defined to `ln -s'

From-SVN: r15543
1997-09-18 15:50:51 -04:00
Jeffrey A Law f05011492b pa.md (reload_peepholes): Don't allow addresses with side effects for the memory operand.
* pa.md (reload_peepholes): Don't allow addresses with side
        effects for the memory operand.
Geez, how long have we been screwing this up...

From-SVN: r15536
1997-09-18 01:45:15 -06:00
Jeffrey A Law 5aa0f40f6a install-info.c: Only provide an external decl for strrchr if HAVE_STRCHR is not defined.
* util/install-info.c: Only provide an external decl for strrchr
        if HAVE_STRCHR is not defined.
Fixes aix build problem.

From-SVN: r15535
1997-09-17 23:54:18 -06:00
Jason Merrill 4f870c0425 libgcc2.c (find_exception_handler): Subtract one from our PC when looking for a handler...
* libgcc2.c (find_exception_handler): Subtract one from our PC when
 	looking for a handler, to avoid hitting the beginning of the next
 	region.

	* except.c (expand_builtin_set_return_addr_reg): Use force_operand.

From-SVN: r15534
1997-09-17 21:23:34 -04:00