Ken Raeburn
473fe49b1e
Sync up MEMORY_MOVE_COST changes with FSF.
...
From-SVN: r19032
1998-04-07 13:24:41 +00:00
Jim Wilson
d6a007a2ab
Testcase for loop reversal (check_dbra_loop) bug.
...
From-SVN: r19031
1998-04-07 05:02:08 -07:00
Jim Wilson
668d07befc
Fix loop reversal bug reported by Joern Rennecke.
...
* loop.c (check_dbra_loop): When normalize comparison_val, add check
to verify it is non-negative.
From-SVN: r19030
1998-04-07 05:00:13 -07:00
Jason Merrill
a59ca93678
call.c (build_call): Still evaluate the actual argument.
...
* call.c (build_call): Still evaluate the actual argument.
* class.c (is_empty_class): Update for -fnew-abi.
* decl2.c: -fnew-abi implies -fsquangle.
* method.c (do_build_assign_ref): Don't do anything to copy
an empty class.
(do_build_copy_constructor): Likewise.
* call.c (build_over_call): Likewise.
From-SVN: r19029
1998-04-06 23:48:22 -04:00
Richard Henderson
cd36edbdfb
alpha.c (alpha_expand_block_move): Correctly collect block offsets.
...
* alpha.c (alpha_expand_block_move): Correctly collect block offsets.
(alpha_expand_block_clear): Likewise.
From-SVN: r19028
1998-04-06 19:03:34 -07:00
Richard Henderson
e814ca9784
* tree.h (sizetype_tab): Fix previous change for K&R.
...
From-SVN: r19027
1998-04-06 16:37:27 -07:00
Jeffrey A Law
f1d9e6d21a
Bump for snapshot
...
From-SVN: r19025
1998-04-06 16:27:32 -06:00
Richard Earnshaw
22ec392898
configure.in (sparc-*-solaris2*): Add xm-siglist.h to xm_file.
...
* configure.in (sparc-*-solaris2*): Add xm-siglist.h to xm_file.
Add USG and POSIX to xm_defines.
From-SVN: r19024
1998-04-06 16:17:05 -06:00
Jeff Law
d6f6f16085
Fix typo, add -O2 to trigger the bug.
...
From-SVN: r19023
1998-04-06 16:14:36 -06:00
Bob Manson
10da11319b
gcc.c: Add linker spec.
...
* gcc.c: Add linker spec.
(link_command_spec): Use %(linker) instead of ld.
(main): If collect2 is requested as the linker, see if it exists;
if not, use ld instead.
* Makefile.in (USE_COLLECT2): It's named collect2 now, not ld.
(ld:) Deleted.
(install-collect2): Install as collect2, not ld.
* configure.in(will_use_collect2): It's named collect2 now.
* collect2: Remove checks to see if we were invoked recursively.
(collect_execute): Use _spawnvp under cygwin32.
From-SVN: r19022
1998-04-06 14:51:28 -06:00
Jim Wilson
a8afd67b01
Fix solaris2 loop-2d.c failure reported by Manfred Hollstein.
...
* haifa-sched.c (build_control_flow): Set unreachable for block whose
only predecessor is itself.
From-SVN: r19021
1998-04-06 10:50:13 -07:00
Kaveh R. Ghazi
944fc8abef
More system.h cutover patches:
...
* c-parse.in: Include system.h, and remove stuff now made redundant.
* cccp.c: Likewise.
* cexp.y: Likewise.
* protoize.c: Likewise. Properly check for cpp stringification.
* Makefile.in (c-parse.o, cccp.o, cexp.o, protoize.o, unprotoize.o):
Depend on system.h.
* objc/Make-lang.in (objc-parse.o): Likewise.
From-SVN: r19020
1998-04-06 14:01:33 +00:00
Kaveh R. Ghazi
3286ab5736
gansidecl.h: Check if compiler supports __attribute__.
...
* gansidecl.h: Check if compiler supports __attribute__. Provide
definitions for ATTRIBUTE_UNUSED and ATTRIBUTE_PRINTF using
__attribute__ when its available. Also provide definitions for
ATTRIBUTE_PRINTF_1, ATTRIBUTE_PRINTF_2 and ATTRIBUTE_PRINTF_3 in
terms of ATTRIBUTE_PRINTF.
* genoutput.c (process_template): Use ATTRIBUTE_UNUSED in place
of __attribute__.
From-SVN: r19019
1998-04-06 12:03:16 +00:00
Catherine Moore
d276f2bb0c
combine.c (can_combine_p): Include successor in volatile test.
...
Mon Apr 6 07:17:52 1998 Catherine Moore <clm@cygnus.com>
* combine.c (can_combine_p): Include successor in volatile test.
From-SVN: r19018
1998-04-06 03:49:13 -07:00
J"orn Rennecke
64ad9df2ce
Fix execute failures for optimizing gcc.c-torture/execute/920721-4.c:
...
* sh.h (CASE_VECTOR_SHORTEN_MODE): Fix logic when to set
offset_unsigned.
From-SVN: r19017
1998-04-06 07:38:10 +01:00
Jeffrey A Law
dc544d2c5e
objc-act.c (encode_aggregate_within): Avoid GNU extensions in prototype and definition.
...
* objc/objc-act.c (encode_aggregate_within): Avoid GNU extensions
in prototype and definition.
From-SVN: r19016
1998-04-05 19:05:12 -06:00
Jeffrey A Law
38c413cd54
Bump for snapshot
...
From-SVN: r19015
1998-04-05 18:49:00 -06:00
Jeff Law
dcfabec309
Bogus file sucked in from gcc2 merge.
...
From-SVN: r19014
1998-04-05 18:47:41 -06:00
Richard Henderson
59dd0a31bc
alpha.c (alpha_expand_block_clear): Add missing offset arg to alpha_expand_unaligned_store_words.
...
* alpha.c (alpha_expand_block_clear): Add missing offset arg to
alpha_expand_unaligned_store_words.
From-SVN: r19013
1998-04-05 17:13:47 -07:00
John Wehle
f31fce3f85
i386.md (movsf_push, movsf_mem): Remove.
...
* i386.md (movsf_push, movsf_mem): Remove.
(movsf_push): Rename from movsf_push_nomove and move in front of
movsf. Use nonmemory_operand predicate and don't bother checking
TARGET_MOVE.
(movsf_push_memory): New pattern.
(movsf): Don't bother checking for push_operand. If TARGET_MOVE and
both operands refer to memory then force operand[1] into a register.
(movsf_normal): Change to unnamed pattern.
Likewise for movdf, movxf, and friends.
From-SVN: r19011
1998-04-05 14:32:31 -06:00
Jeffrey A Law
27ebc03eb1
Bump for snapshot
...
From-SVN: r19009
1998-04-05 12:45:55 -06:00
Jeff Law
f3978531f3
expmed.c (synth_mult): The value -1, has no zeros, so it can never have the form ...011.
...
* expmed.c (synth_mult): The value -1, has no zeros, so it can
never have the form ...011.
Forgot to commit ChangeLog entry for this one.
From-SVN: r19008
1998-04-05 10:48:42 -06:00
Richard Henderson
6ecd4e5399
* configure.in (alpha-dec-osf*): Match osf1.3 correctly.
...
From-SVN: r19007
1998-04-05 09:30:46 -07:00
Jeff Law
e2cc7d49b5
Add new test.
...
From-SVN: r19006
1998-04-05 09:57:44 -06:00
Don Bowman
98bd9f0f86
* configure.in (mips-wrs-vxworks): New target.
...
From-SVN: r19005
1998-04-05 09:54:49 -06:00
Jason Merrill
80cd3ecac8
* tree.c (avoid_overlap): Return a value.
...
From-SVN: r19004
1998-04-04 22:24:25 -05:00
Jeffrey A Law
ac08ebd030
Bump for snapshot
...
From-SVN: r19002
1998-04-04 16:34:34 -07:00
Jeffrey A Law
f4a788acb3
Bump for snapshot
...
From-SVN: r19001
1998-04-04 16:33:41 -07:00
Richard Henderson
5cb6195d3b
i386.c (asm_output_function_prefix, [...]): Use ASM_GENERATE_INTERNAL_LABEL properly.
...
* i386.c (asm_output_function_prefix, load_pic_register):
Use ASM_GENERATE_INTERNAL_LABEL properly.
(output_pic_addr_const): Recognize %X to supress any PIC sym suffix.
(print_operand): Ignore it.
(load_pic_register): Use it for the got load call.
* i386.md (prologue_set_got, prologue_get_pc): Likewise.
(prologue_get_pc_and_set_got): Likewise.
* i386.h: Update print_operand docs.
From-SVN: r19000
1998-04-04 12:25:44 -08:00
Richard Henderson
ce1938523b
i386.md (ffssi, ffshi): Rewrite as define_expands.
...
* i386.md (ffssi, ffshi): Rewrite as define_expands.
(ffssi_1, ffshi_1): New (unspec [] 5) support patterns.
* i386.c (notice_update_cc): Recognize unspec 5.
From-SVN: r18999
1998-04-04 11:57:26 -08:00
Jeffrey A Law
e06e4d4534
method.c (check_btype): Add missing argument to xrealloc.
...
* method.c (check_btype): Add missing argument to xrealloc.
(check_ktype): Likewise.
From-SVN: r18998
1998-04-04 12:53:58 -07:00
Richard Henderson
39bdfaa056
Clarify LEGITIMIZE_RELOAD_ADDRESS issues a tad.
...
From-SVN: r18997
1998-04-04 10:37:01 -08:00
David Mosberger-Tang
0022a94004
alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '(' for s/sv/svi.
...
* alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '(' for s/sv/svi.
* alpha.c (print_operand): Handle it.
* alpha.md (fix_truncsfdi2): Use it. Add earlyclobber pattern
for ALPHA_TP_INSN.
(fix_truncdfdi2): Likewise.
From-SVN: r18996
1998-04-04 10:20:59 -08:00
Richard Henderson
092a4ef80c
com.c (ffecom_expr_): Revert Oct 22 change.
...
* com.c (ffecom_expr_): Revert Oct 22 change. Instead take a WIDENP
argument so that we can respect the signedness of the original type.
(ffecom_init_0): Do sizetype initialization first.
From-SVN: r18995
1998-04-04 09:46:35 -08:00
Richard Henderson
896cced482
tree.h (sizetype_tab[2], [...]): Merge all of these into a single struct, with additional [us]sizetype entries.
...
* tree.h (sizetype_tab[2], sbitsizetype, ubitsizetype): Merge all
of these into a single struct, with additional [us]sizetype entries.
* stor-layout.c (set_sizetype): Initialize [us]sizetype.
* fold-const.c (size_int_wide): Don't rely on sizetype_tab being
an array.
From-SVN: r18994
1998-04-04 09:46:06 -08:00
Richard Henderson
8983c71604
* configure.in (alpha-*-linux-*): Undo tm_file changes from gcc2 merge.
...
From-SVN: r18993
1998-04-04 09:04:24 -08:00
Richard Henderson
4ed43ff85a
haifa-sched.c (split_block_insns): Don't supress insn splitting on subsequent passes.
...
* haifa-sched.c (split_block_insns): Don't supress insn splitting
on subsequent passes.
* alpha.c (hard_fp_register_operand): New function.
* alpha.h (PREDICATE_CODES): Add it.
* alpha.md (extendsidi2): Kill bogus f<-f cvtql+cvtlq case. Add an
f<-m case and accompanying define_split.
(trapb): Use a unique unspec_volatile number.
From-SVN: r18992
1998-04-04 05:54:32 -08:00
Jeff Law
55a9eb7263
* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
...
for details.
* haifa-sched.c: Mirror recent changes from gcc2.
From-SVN: r18991
1998-04-04 06:54:31 -07:00
Jeff Law
2c4be73e3f
* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
...
for details.
* haifa-sched.c: Mirror recent changes from gcc2.
From-SVN: r18990
1998-04-04 06:54:29 -07:00
Jeff Law
5665caa28f
* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
...
for details.
* haifa-sched.c: Mirror recent changes from gcc2.
From-SVN: r18989
1998-04-04 06:54:28 -07:00
Jeff Law
d6df9efb6d
* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
...
for details.
* haifa-sched.c: Mirror recent changes from gcc2.
From-SVN: r18988
1998-04-04 06:54:26 -07:00
Richard Henderson
8e7bc3cd8f
configure.in (alpha-*-linux-gnu*): Undo Feb 3 change brought in from gcc2 merge.
...
* configure.in (alpha-*-linux-gnu*): Undo Feb 3 change brought in
from gcc2 merge.
From-SVN: r18987
1998-04-04 05:32:43 -08:00
Jeff Law
6153647887
* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
...
for details.
* haifa-sched.c: Mirror recent changes from gcc2.
From-SVN: r18986
1998-04-04 06:32:42 -07:00
Jeff Law
f6cb0e630f
* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
...
for details.
* haifa-sched.c: Mirror recent changes from gcc2.
From-SVN: r18985
1998-04-04 06:32:41 -07:00
Jeff Law
e5e809f419
* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12
...
for details.
* haifa-sched.c: Mirror recent changes from gcc2.
From-SVN: r18984
1998-04-04 06:32:39 -07:00
Jeff Law
31031eddac
dummy commit before merge
...
From-SVN: r18980
1998-04-03 09:37:26 -07:00
Jason Merrill
732dcb6f2a
Implement empty base optimization.
...
* class.c (finish_struct_1): Add vbase fields earlier. Set
CLASSTYPE_SIZE of an empty base to 0. Types with bases can be empty.
* search.c (dfs_check_overlap, dfs_no_overlap_yet): New fns.
(types_overlap_p): New fn.
* tree.c (avoid_overlap): New fn.
(build_base_fields): Use it to avoid overlapping empty bases.
* cp-tree.h, decl2.c, lang-options.h: Add -fnew-abi.
From-SVN: r18978
1998-04-03 09:13:24 -05:00
Jeffrey A Law
e9eaed43b9
* Makefile.in (insn*.o): Depend on system.h.
...
From-SVN: r18976
1998-04-03 05:29:37 -07:00
Jim Wilson
1f3b6a3ebe
x86 regex.c failure from Jim Meyering.
...
* compile/980329-1.c: New test.
From-SVN: r18975
1998-04-03 04:29:04 -08:00
Jason Merrill
b3e401c25a
* decl.c (cplus_expand_expr_stmt): Strip unused INDIRECT_REFs.
...
From-SVN: r18974
1998-04-03 07:17:58 -05:00