Commit Graph

16063 Commits

Author SHA1 Message Date
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
Jason Merrill
9a71c18b28 Re-implement allocation of base class subobjects.
* tree.c (unshare_base_binfos): New fn.
	(layout_basetypes): Use it.  Now handles offsets of both virtual and
	non-virtual bases, after layout_type.
	(layout_vbasetypes): Remove.
	(build_base_fields): Generate FIELD_DECLs for each non-virtual base.
	(build_vbase_pointer_fields): Split out from old layout_basetypes.
	* class.c (finish_base_struct): Lose offset handling code.
	Move nonvdtor warning here.  Don't mess with t_binfo anymore.
	(finish_struct_1): Don't mess with t_binfo anymore.  Use fns above.
	* cp-tree.h: Adjust.

From-SVN: r18973
1998-04-02 22:41:20 -05:00
Jeffrey A Law
516c23423e pa.c (output_global_address): Initialize base.
* pa.c (output_global_address): Initialize base.
        * pa.h (GO_IF_LEGITIMATE_ADDRESS): Initialize index.

From-SVN: r18972
1998-04-02 16:18:27 -07:00
Mike Stump
7cc348893e gthr.h: Support systems that don't have weak, but have threads.
* gthr.h: Support systems that don't have weak, but have threads.
        * configure.in (*wrs-vxworks*): Use VxWorks threads by default.
        * gthr-vxworks.h: New file.
        * objc/thr-vxworks.h: Dummy file from thr-single.c for now.

From-SVN: r18971
1998-04-02 16:15:06 -07:00
Jim Wilson
b2012effc9 Readd patch for SCO5 to fix build problem.
* info/termdep.h: If POSIX, #undef TIOCGETC for benefit of systems
	that provide TIOCETC but not struct tchars.

From-SVN: r18967
1998-04-02 10:30:53 -08:00
Jim Wilson
52c18286ff Fix x86 core dump on regex.c
Fix x86 core dump on regex.c
	* i386.md (movqi+1): Change alternative 1 from *r/r to *r/*rn.

From-SVN: r18966
1998-04-02 10:12:00 -08:00
Jason Merrill
0b41abe668 cp-tree.h: Lose CLASSTYPE_VBASE_SIZE, some unused stuff.
* cp-tree.h: Lose CLASSTYPE_VBASE_SIZE, some unused stuff.
	* decl.c, decl2.c, pt.c, ptree.c, lex.c: Likewise.
	* class.c (duplicate_tag_error): Likewise.
	(finish_struct_1): Set CLASSTYPE_SIZE, CLASSTYPE_MODE, CLASSTYPE_ALIGN.
	* tree.c (layout_vbasetypes): Update from layout_record, remove
	var_size support, use CLASSTYPE_SIZE instead of CLASSTYPE_VBASE_SIZE.
	(layout_basetypes): Likewise.

From-SVN: r18965
1998-04-02 12:05:40 -05:00
Jason Merrill
c098677bed update
From-SVN: r18964
1998-04-02 11:19:01 -05:00
Vladimir N. Makarov
c1ac292d76 Patch from vmakarov to avoid warnings with -Wall.
* ginclude/va-i960.h (va_end): Change void * to void.

From-SVN: r18961
1998-04-02 03:54:27 -08:00
Kaveh R. Ghazi
4cb1caaf7b Patched in the gcc directory:
* Makefile.in (choose-temp.o): Depend on system.h.
Patched in both the libiberty and gcc directories:
        * choose-temp.c: Include system.h when IN_GCC.

From-SVN: r18952
1998-04-02 11:07:45 +00:00