Commit Graph

14059 Commits

Author SHA1 Message Date
Jeff Law
e56cc9073b Opps.
From-SVN: r14820
1997-08-17 08:35:06 -06:00
Jeff Law
692214467a * intdoc.texi: Remove generated file from distribution.
From-SVN: r14819
1997-08-17 08:34:23 -06:00
Jeffrey A Law
38ea060fa7 loop.c (is_power_of_2, [...]): Delete unused functions and declarations.
* loop.c (is_power_of_2, is_conditional_branch): Delete unused
        functions and declarations.
        (analyze_loop_iterations): Use condjump_p.
        (insert_bct): Likewise.  Use exact_log2.
Just cleanup up some haifa code.

From-SVN: r14818
1997-08-16 01:09:42 -06:00
Jeffrey A Law
f187056f8a haifa-sched.c (find_post_sched_live): Call FREE_REG_SET as needed.
* haifa-sched.c (find_post_sched_live): Call FREE_REG_SET as needed.
        (schedule_region): Likewise.
        (schedule_insns): Likewise.
To avoid leaking memory.

        * PROJECTS: Update with Haifa stuff.

From-SVN: r14817
1997-08-15 23:49:38 -06:00
Jeffrey A Law
0945e93725 loop.c (is_conditional_branch): Make definition match declaration.
* loop.c (is_conditional_branch): Make definition match declaration.
Found by the sunos compiler

From-SVN: r14815
1997-08-15 14:50:04 -06:00
Jeffrey A Law
11c21791a4 Tweak again.
From-SVN: r14814
1997-08-15 14:38:11 -06:00
Jeffrey A Law
96e87e3e2a Make version # egcs-3.0.0 since we need to make sure the version#s
in the built-in defines are > 2.7.

From-SVN: r14813
1997-08-15 14:26:03 -06:00
Jeffrey A Law
566cfa8175 Makefile.in, [...]: Remove "^L" at the beginning of lines.
* Makefile.in, Make-lang.in: Remove "^L" at the beginning
        of lines.
Some makes don't like them.

From-SVN: r14812
1997-08-15 13:45:17 -06:00
Jeffrey A Law
9af0625405 version.c: Change the version string to look like...
* version.c: Change the version string to look like:
        egcs-1.0.0 970814 (gcc2-970802 experimental).

        * gcc.c: Take out experimental snapshot warning message.

From-SVN: r14811
1997-08-15 12:50:36 -06:00
Michael Meissner
ebc25a17d4 Use rtl macros for names of NOTEs.
From-SVN: r14810
1997-08-15 17:48:56 +00:00
Jeff Law
62603f9e83 Opps. Forgot to commit this.
From-SVN: r14803
1997-08-14 23:40:31 -06:00
Jeff Law
881d7cb9d4 c-lex.c (check_newline): Pass finput again to HANDLE_PRAGMA.
* c-lex.c (check_newline): Pass finput again to HANDLE_PRAGMA.
Bring over from the FSF.

From-SVN: r14802
1997-08-14 23:32:53 -06:00
Jeff Law
5d38efae92 toplev.c (main): In -g handling code, add code to set len.
* toplev.c (main): In -g handling code, add code to set len.

        * alpha.md (extendqihi2): Use HImode not QImode in force_reg call.

Brought over from gcc2.

From-SVN: r14801
1997-08-14 23:29:33 -06:00
Jeff Law
b3261d1fd3 Basically a duplicate of COPYING.
From-SVN: r14800
1997-08-14 23:17:24 -06:00
Jeff Law
37a70e5727 Remove old (pre gcc-2.7.2) ChangeLog files.
Remove pre-built into files.

From-SVN: r14799
1997-08-14 23:15:07 -06:00
Jeff Law
5f0445a70c New file with pointers to compiler relates web sites.
From-SVN: r14784
1997-08-13 10:10:39 -06:00
Doug Evans
992d1248f5 configure.in (haifa configury): Fix typo.
* configure.in (haifa configury): Fix typo.
	* configure: Regenerate.

From-SVN: r14783
1997-08-13 08:04:44 +00:00
Jeffrey A Law
7bb6fbd1c6 version.c: Bump version to "gcc-3.0.0 970802 experimental".
* version.c: Bump version to "gcc-3.0.0 970802 experimental".

        * gcc.info*: Rebuilt.

        * COPYING.g77, README.g77: New files.
        * real.c (ereal_unto_float, ereal_unto_double): New functions.
        * real.h (ereal_unto_float, ereal_unto_double): Declare them.
        (REAL_VALUE_UNTO_TARGET_DOUBLE, REAL_VALUE_UNTO_TARGET_SINGLE): Define.
Get g77 to work with gcc3.

From-SVN: r14776
1997-08-12 11:13:25 -06:00
Jeffrey A Law
8f87a56384 g77.info*: Rebuilt.
* g77.info*: Rebuilt.

        * config-lang.in: Don't demand the backend patch.
        * com.c (lang_printable_name): Second argument is now an int.  Don't
        store into the value of the second argument.
        * top.c (ffe_decode_option): Temporarily disable setting
        of "Toon" loop options until we figure out how to address
        them.

Make g77 work with gcc3.

From-SVN: r14775
1997-08-12 11:12:21 -06:00
Jeff Law
5ff904cd27 Initial revision
From-SVN: r14772
1997-08-12 01:47:32 -06:00
Jeff Law
9f31cf0d42 Remove gratuitous changes from the alias analysis patches.
From-SVN: r14771
1997-08-11 22:12:04 -06:00
Jeffrey A Law
8c660648ca * Integrate Haifa instruction scheduler.
* Integrate regmove pass.
See ChangeLog for deatils.

From-SVN: r14770
1997-08-11 22:07:19 -06:00
Jeffrey A Law
aa32d84158 * Integrate tlink patch from jason@cygnus.com
* gcc.c (SWITCH_TAKES_ARG): Add 'V', 'B' and 'b'.
        (process_command): Increment n_switches for them.  Don't discard
        their args.  Validate them.
        (main): Escape " marks when creating COLLECT_GCC_OPTIONS.
        From Rohan Lenard.
        (process_command): Set include_prefixes from COMPILER_PATH.
        (main): Set COLLECT_GCC_OPTIONS sooner.
        * confiugre.in: Link ../ld/ld.new to collect-ld rather than real-ld.
        * tlink.c, hash.c, hash.h: New files.
        * Makefile.in (USE_COLLECT2): Always use collect2.
        (collect2): Depend on and link in hash.o and tlink.o.
        (tlink.o, hash.o): Add dependencies.

tlink patches from Jason.

From-SVN: r14769
1997-08-11 14:23:53 -06:00
Jeffrey A Law
9ae8ffe751 * Integrate alias analysis changes from jfc@mit.edu
* Makefile.in (OBJS): Add alias.o
        (alias.o): Add dependencies.
        * alias.c: New file.
        * sched.c: Remove alias analysis code.  It lives in alias.c now.
        (reg_last_uses_size): Declare.
        (sched_analyze_2): Add new arguments to true_dependence.
        (sched_analyze_insn): Use reg_last_uses_size instead of max_reg.
        (schedule_block): Initialize reg_last_uses_size.
        (schedule_insns): Always call init_alias_analysis.
        * calls.c (expand_call): Note calls to malloc, calloc, and realloc;
        mark return value from such functions as a pointer and keep track of
        them for alias analysis.  If a return value from a function is a
        pointer, mark it as such.
        * combine.c (distribute_notes): Handle REG_NOALIAS.
        * cse.c (struct write_data): Delete.  No longer needed.
        (invalidate): Don't call set_nonvarying_address_components anymore.
        Use true_dependence to decide if an entry should be removed from
        the hash table.
        (invalidate_memory): Remove WRITES argument, simplify appropriately.
        Fix all callers.
        (note_mem_written): Similarly for WRITE_PTR argument.
        (invalidate_from_clobbers): Similarly for W argument.
        (invalidate_for_call): Remove memory elements from the hash table.
        (refers_to_mem_p, cse_rtx_addr_varies_p): Deleted.
        (cse_rtx_varies_p): New function.  Derived from old
        cse_rtx_addr_varies_p.
        (cse_insn): Remove WRITES_MEMORY and INIT variables and all references.
        Don't call note_mem_written anymore.  Stack pushes invalidate the stack
        pointer if PUSH_ROUNDING is defined.  No longer need to call
        cse_rtx_addr_varies_p to decide if a MEM should be invalidated.
        (skipped_writes_memory): Remove variable.
        (invalidate_skipped_set): Simplify and wewrite to use invalidate_memory.
        (invalidate_skipped_block): Simplify for new alias analysis code.
        (cse_set_around_loop): Likewise.
        (cse_main): Call init_alias_analysis.
        * flags.h (flag_alias_check, flag_argument_noalias): Declare.
        * toplev.c (flag_alias_check, flag_argument_noalias): Define.
        (f_options): Add new alias checking arguments.
        (main): Set flag_alias_check when optimizing.
        * local_alloc (validate_equiv_mem_from_store): Add new arguments
        to true_dependence.
        (memref_referenced_p): Likewise.
        * loop.c (NUM_STORES): Increase to 30.
        (prescan_loop): Only non-constant calls set unknown_address_altered.
        (invariant_p): Add new arguments to true_dependence.
        (record_giv): Initialize unrolled and shared fields.
        (emit_iv_add_mult): Call record_base_value as needed.
        * loop.h (struct induction): Add unrolled and shared fields.
        * unroll.c  (unroll_loop): Call record_base_value as needed.
        (copy_loop_body): Likewise.
        (final_biv_value): Likewise.
        (final_giv_value): Likewise.
        (find_splittable_regs): Likewise.  Only create one new pseudo
        if we have multiple address GIVs that were combined with the same
        dst_reg GIV.  Note when a new register is created due to unrolling.
        * rtl.c (reg_note_name): Add REG_NOALIAS.
        * rtl.h (enum reg_note): Similarly.
        (rtx_varies_p, may_trap_p, side_effects_p): Declare.
        (volatile_refs_p, volatile_insn_p, remove_note): Likewise.
        (note_stores, refers_to_regno_p, reg_overlap_mentioned_p): Likewise.
        (true_dependence, read_dependence, anti_dependence): Likewise.
        (output_dependence, init_alias_analysis, end_alias_analysis): Likewise.
        (mark_user_reg, mark_reg_pointer): Likewise.
jfc's alias analysis code.

From-SVN: r14768
1997-08-11 14:07:24 -06:00
Jeff Law
5fa39bfeb7 * Integrate reload bugfix from Wilson which enables the PA port
to bootstrap again.
        * reload1.c (reload): Sum needs for both OPADDR_ADDR and and
        OPERAND_ADDRESS when computing how many registers an insn needs.
        (reload_reg_free_p): OPADDR_ADDR and OPERAND_ADDRESS reloads do
        conflict.
        (reload_reg_free_before_p): Treat OPERAND_ADDRESS reloads just like
        OPADDR_ADDR reload.
        (reload_reg_reaches_end_p): For RELOAD_FOR_OPADDR_ADDR insns, registers
        in reload_reg_use_in_op_addr do not reach the end.
        do not reach the end.
        (reloads_conflict): RELOAD_FOR_OPADDR_ADDR conflicts with
        RELOAD_FOR_OPERAND_ADDRESS.



Start a new ChangeLog for gcc3.

From-SVN: r14767
1997-08-11 13:31:10 -06:00
Jeff Law
861bb6c1b0 Initial revision
From-SVN: r14764
1997-08-11 09:56:58 -06:00
Jeff Law
737cee66f2 Initial revision
From-SVN: r14727
1997-08-07 10:29:49 -06:00
Jeff Law
89045fd128 Initial revision
From-SVN: r14676
1997-08-06 13:57:47 -06:00
Jeff Law
d7194dd690 Initial revision
From-SVN: r14671
1997-08-05 10:26:36 -06:00
Richard Kenner
50eb43cabc (store_one_arg): Allow stack_slot to be SP in ARGS_GROW_DOWNWARD case.
From-SVN: r14639
1997-08-02 19:22:18 -04:00
Richard Kenner
293facbcd4 parmlist_tags_warning): Only suppress warning on union if anonymous.
From-SVN: r14638
1997-08-02 19:06:27 -04:00
Richard Kenner
ae0a3dfbf4 (int_fits_type_p): Negative ints never fit unsigned types, and
unsigned ints with top-bit-set never fit signed types.

From-SVN: r14637
1997-08-02 18:50:39 -04:00
Richard Kenner
272e2587a2 (_trampoline): Rework last change; both getpagesize and mprotect are
in cygwin32.

From-SVN: r14636
1997-08-02 18:27:33 -04:00
Richard Kenner
b080c137d7 (reload): Add IN_ADDR to IN_ADDR_ADDR when computing needs since they conflict.
From-SVN: r14635
1997-08-02 17:46:08 -04:00
Richard Kenner
505923a0ad (debug_reload): Rework to make output more compact.
From-SVN: r14634
1997-08-02 17:29:22 -04:00
Richard Kenner
1d79197a77 (indent): Move to file level; was static in print_rtx.
(print_inline_rtx): New function.

From-SVN: r14633
1997-08-02 17:29:08 -04:00
Per Bothner
a0c94d6d68 * objc/Make-lang.in (OBJC_CCOMMON): Removed.
From-SVN: r14632
1997-08-02 14:06:25 -07:00
Per Bothner
3cb8856545 Makefile.in (EXTRA_C_OBJS): Removed.
* Makefile.in (EXTRA_C_OBJS): Removed.
(C_AND_OBJC_OBJS):  New.  Subsumes EXTRA_C_OBJS and OBJC_CCOMMON.

From-SVN: r14631
1997-08-02 13:59:17 -07:00
Doug Evans
296e46bd9b configure.in: Build .gdbinit for top level build dir here.
* configure.in: Build .gdbinit for top level build dir here.
	(AC_OUTPUT): Pass oldstyle_subdirs to configure.lang.

From-SVN: r14630
1997-08-02 20:10:47 +00:00
Doug Evans
4caa6262f7 * configure.lang: Fix building of .gdbinit for oldstyle lang subdirs.
From-SVN: r14629
1997-08-02 20:10:15 +00:00
Richard Kenner
bc28c45bb5 (gen_compile_unit_die): Add support for Pascal.
From-SVN: r14628
1997-08-02 14:34:12 -04:00
Richard Kenner
7532a0fbfa (output_compile_unit_die): Add support for Pascal.
From-SVN: r14627
1997-08-02 14:33:42 -04:00
Richard Kenner
cff9c40790 (lvalue_p, case BIND_EXPR, RTL_EXPR): Return 1 if array.
From-SVN: r14626
1997-08-02 14:15:29 -04:00
Richard Kenner
5a03c8c401 (cse_insn): Ignore paradoxical SUBREGs unless we are looking for such.
From-SVN: r14625
1997-08-02 13:48:13 -04:00
Richard Kenner
eadceb598a (sparc_builtin_saveregs): If -fcheck-memory-usage, set rights of saved
registers.

From-SVN: r14624
1997-08-02 13:25:31 -04:00
Richard Kenner
5e32727ccc (hppa_builtin_saveregs): f -fcheck-memory-usage, set rights of saved
registers.

From-SVN: r14623
1997-08-02 13:24:48 -04:00
Richard Kenner
4e264c3fbf (m88k_builtin_saveregs): If -fcheck-memory-usage, set rights of saved
registers.

From-SVN: r14622
1997-08-02 13:23:45 -04:00
Richard Kenner
e72f998d69 (clipper_builtin_saveregs): If -fcheck-memory-usage, set rights of
saved registers.

From-SVN: r14621
1997-08-02 13:22:50 -04:00
Richard Kenner
5b838011fe (alpha_builtin_saveregs): If -fcheck-memory-usage, set rights of saved
registers.

From-SVN: r14620
1997-08-02 13:22:01 -04:00
Richard Kenner
7c6d412013 (make_function_rtl, make_decl_rtl): Add a prefix when flag_prefix_function_name_usage is set.
(make_function_rtl, make_decl_rtl): Add a prefix when
flag_prefix_function_name_usage is set.
(assemble_name): Strip the CHKR_PREFIX.

From-SVN: r14619
1997-08-02 13:21:32 -04:00