Commit Graph

15309 Commits

Author SHA1 Message Date
Krister Walfridsson
9563abe0c2 dbz.c (putconf): Handle systems which use "long long" as type for "off_t".
* dbz/dbz.c (putconf): Handle systems which use "long long" as type
        for "off_t".
        * dbz/dbzmain.c (mkfiles): Likewise.

From-SVN: r17579
1998-02-01 05:20:13 -07:00
Klaus Kaempf
d2f05a0aad * cccp.c (main): Predefine __VMS_VER on VMS.
From-SVN: r17578
1998-02-01 05:01:18 -07:00
J"orn Rennecke
f8dac6eb3f expr.c (get_inner_reference): Use sbitsizetype for type sizes.
* expr.c (get_inner_reference): Use sbitsizetype for type sizes.
        * fold-const.c (size_int): Replace with
        (size_int_wide).
        (make_bit_field_ref): Use bitsize_int for bit position.
        * stor-layout.c (sizetype): Delete.
        (sizetype_tab, sbitsizetype, ubitsizetype): Declare.
        (layout_record, layout_union, layout_type):
        Use bitsize_int for bit size.
        (set_sizetype): New function.
        (make_signed_type, make_unsigned_type): Use it.
        * c-decl.c (init_decl_processing): Likewise.
        * tree.h (size_int): Don't delcare, #define.
        (size_int_wide, sizetype_tab, sbitsize, ubitsize): Declare.
        (set_sizetype): Declare.
        (bitsize_int, size_int_2, BITS_PER_UNIT_LOG, sizetype, bitsizetype):
        Define.
        * c-typeck.c (c_sizeof, c_sizeof_nowarn, c_size_in_bytes):
        Convert result to sizetype.
        (really_start_incremental_init, push_init_level):
        Set type of constructor_bit_index to sbitsizetype.
        (push_init_level): Use unsigned arithmetic to determine padding.
        (output_init_element): Likewise.

From-SVN: r17577
1998-02-01 04:47:59 -07:00
J"orn Rennecke
f5426d1e9b decl.c (init_decl_processing): Use set_sizetype.
* decl.c (init_decl_processing): Use set_sizetype.
        * decl2.c (sizetype): Don't declare.
        * typeck.c (c_sizeof): Convert result of *_DIV_EXPR to sizetype.
        (c_sizeof_nowarn, build_binary_op_nodefault): Likewise.
        (build_component_addr, unary_complex_lvalue): Likewise.
        * rtti.c (expand_class_desc): Likewise.
        * class.c (get_vfield_offset): Likewise.

From-SVN: r17576
1998-02-01 04:45:10 -07:00
J"orn Rennecke
c8bec8c8be com.c (ffecom_tree_canonize_ptr_): Place bitsizetype typed expr as first agument in MULT_EXPR.
* com.c (ffecom_tree_canonize_ptr_): Place bitsizetype typed expr
        as first agument in MULT_EXPR.
        Use bitsize_int (0L, 0L) as zero for bitsizes.
        (ffecom_tree_canonize_ref_):
        Use bitsize_int (0L, 0L) as zero for bitsizes.
        (ffecom_init_0): Use set_sizetype.

From-SVN: r17575
1998-02-01 04:43:05 -07:00
Jeff Law
8d0f1540f8 Remove unnecessary file.
From-SVN: r17574
1998-02-01 04:36:50 -07:00
Jeffrey A Law
b577a8ffce * combine.c (simplify_shift_const): Fix typo in last change.
From-SVN: r17573
1998-01-31 19:31:03 -07:00
Mike Stump
4de160dd62 config.table (vxworks configs): Default to VxWorks 5.x, as that is the currently shipping OS.
(
        * config.table (vxworks configs): Default to VxWorks 5.x, as that is
        the currently shipping OS.

From-SVN: r17572
1998-01-31 18:51:20 -07:00
Mike Stump
c00f2b9d1a config.table (vxworks configs): Default to VxWorks 5.x, as that is the currently shipping OS.
�
        * config.table (vxworks configs): Default to VxWorks 5.x, as that is
        the currently shipping OS.

From-SVN: r17571
1998-01-31 18:51:19 -07:00
John Carr
6e0ef100da combine.c (simplify_shift_const): (lshiftrt (truncate (lshiftrt))) is (truncate (lshiftrt)).
* combine.c (simplify_shift_const):  (lshiftrt (truncate (lshiftrt)))
        is (truncate (lshiftrt)).

From-SVN: r17570
1998-01-31 18:49:32 -07:00
Richard Henderson
8821a725d6 Makefile.in (TARGET_CONFIGDIRS): Add libf2c.
* Makefile.in (TARGET_CONFIGDIRS): Add libf2c.
        (ALL_TARGET_MODULES, CONFIGURE_TARGET_MODULES): Similarly
        (CHECK_TARGET_MODULES, INSTALL_TARGET_MODULES): Similarly
        (CLEAN_TARGET_MODULES): Similarly
        (all-target-libf2c): Add dependences.
        * configure.in (target_libs): Add libf2c.

From-SVN: r17569
1998-01-31 18:41:24 -07:00
Jeff Law
81fea2b1d1 * Previous contents of gcc/f/runtime moved into toplevel
"libf2c" directory.

From-SVN: r17568
1998-01-31 18:37:08 -07:00
Richard Henderson
0dfb6849ef * runtime directory -- moved into "libfc2" in the toplevel
directory.
        * Make-lang.in: Remove all runtime related stuff.
Starting libfc2 rearrangement.

From-SVN: r17567
1998-01-31 18:30:56 -07:00
Jeff Law
3464ce01a5 No longer relavent.
From-SVN: r17566
1998-01-31 18:22:52 -07:00
Richard Henderson
4208b40ff0 alpha.c (alpha_expand_unaligned_load): Use expand_binop properly.
* alpha.c (alpha_expand_unaligned_load): Use expand_binop properly.
        Make sure result winds up in TGT.
        (alpha_expand_unaligned_store): Use expand_binop properly.  Allow
        src to be other than DImode.
        (alpha_expand_unaligned_load_words): Tidy.  Take an offset argument.
        (alpha_expand_unaligned_store_words): Likewise.
        (alpha_expand_block_move): Use REGNO_POINTER_ALIGN.  Restructure so
        that source and destination are separately optimized for alignment.
        (alpha_expand_block_clear): Use REGNO_POINTER_ALIGN.

From-SVN: r17565
1998-01-31 17:14:40 -08:00
Jeffrey A Law
82301b881c mips.md (adddi3_internal_2): Be consistent with adddi3 expander with handling of -32768.
* mips.md (adddi3_internal_2): Be consistent with adddi3 expander
        with handling of -32768.

From-SVN: r17564
1998-01-31 17:54:27 -07:00
Kaveh R. Ghazi
a81fb89ebe aclocal.m4 (GCC_NEED_DECLARATION): Modify macro to accept a shell variable argument instead of only hard coded...
* aclocal.m4 (GCC_NEED_DECLARATION): Modify macro to accept a
        shell variable argument instead of only hard coded functions.
        (GCC_NEED_DECLARATIONS): New macro to accept multiple functions.
        * configure.in: Collapse multiple calls to AC_CHECK_FUNCS into one
        call.  Collapse multiple calls to GCC_NEED_DECLARATION into one
        call to GCC_NEED_DECLARATIONS (new macro.)  Check if we need
        declarations for bcopy, bcmp and bzero.
        * acconfig.h: Add stubs for bcopy, bcmp and bzero declarations.
        * gansidecl.h: If we have bcopy but don't declare it, then do so.
        Likewise for bcmp and bzero.  Only define macros for bcopy, bcmp,
        bzero, index and rindex if they aren't already present.

From-SVN: r17563
1998-01-31 17:48:06 -07:00
Jeff Law
f65a7138c4 configure.in (getlogin,getgid,getuid, [...]): Check.
* libU77/configure.in (getlogin,getgid,getuid, kill,link,ttyname):
	Check.
	* libU77/config.h.in (HAVE_GETLOGIN, HAVE_GETGID, HAVE_GETUID,
	HAVE_KILL, HAVE_LINK, HAVE_TTYNAME): New defs.
	* libU77/getlog_.c: Conditionalize for target platform. Set errno
	to ENOSYS if target libc doesn't have the function.
	* libU77/getgid_.c: Likewise.
	* libU77/getuid_.c: Likewise.
	* libU77/kill_.c: Likewise.
	* libU77/link_.c: Likewise.
	* libU77/ttynam_.c: Likewise.

From-SVN: r17562
1998-01-31 17:41:14 -07:00
Jeffrey A Law
eed90b2cec toplev.c (close_dump_file): Wrap function prototype for argument "func" in PROTO.
* toplev.c (close_dump_file): Wrap function prototype for
        argument "func" in PROTO.
        (dump_rtl): Likewise.

From-SVN: r17561
1998-01-31 03:26:48 -07:00
John Carr
bfd6bc60f5 sparc.c (sparc_override_options): Make v8plus and ultrasparc set MASK_V8PLUS.
Fri Jan 30 22:30:39 1998  John Carr  <jfc@mit.edu>
        * sparc.c (sparc_override_options): Make v8plus and ultrasparc set
        MASK_V8PLUS.
        (output_function_epilogue): Omit epilogue if nothing drops through.
        (output_move_double): Supress int ldd usage on ultrasparc and v9.
        (registers_ok_for_ldd_peep): Likewise.
        (print_operand): Supress b,a on ultrasparc.  Let Y accept a constant.
        (ultrasparc_adjust_cost): New function.
        (sparc_issue_rate): New function.
        * sparc.h (MASK_VIS, TARGET_VIS): New
        (MASK_V8PLUS, TARGET_V8PLUS): New.
        (TARGET_HARD_MUL32, TARGET_HARD_MUL): New.
        (TARGET_SWITCHES): Add vis and v8plus.
        (REG_CLASS_FROM_LETTER): Accept d and b for VIS.
        (REGISTER_MOVE_COST): FP<->INT move cost 12 for ultrasparc.
        (RTX_COSTS): Use TARGET_HARD_MUL
        (ADJUST_COST): Call ultrasparc_adjust_cost.
        (ISSUE_RATE): New.
        * sparc.md (attr type): Add sload, fpmove, fpcmove.  Adjust users
        of load & fp appropritely.
        (supersparc function units): Adjust for Haifa.
        (ultrasparc function units): Likewise.
        (get_pc_via_rdpc): All v9, not just arch64.
        (movdi_v8plus, movdi_v8plus+1): New.
        (adddi3_sp32+1): New.
        (subdi3_sp32+1): New.
        (movsi_insn, movsf_const_insn, movdf_const_insn): Know VIS.
        (addsi3, subsi3, anddi3_sp32, andsi3, and_not_di_sp32): Likewise.
        (and_not_si, iordi3_sp32, iorsi3, or_not_di_sp32, or_not_si): Likewise.
        (xorsi3_sp32, xorsi3, xor_not_di_sp32, xor_not_si): Likewise.
        (one_cmpldi2_sp32, one_cmplsi2): Likewise.
        (ldd peepholes): Suppress for v9.
        (return_adddi): Kill redundant test.  Arg1 may be arith_operand.
        (return_subsi): Revmove.

From-SVN: r17560
1998-01-30 15:34:15 -08:00
John F. Carr
4b526a9a94 patch from jfc to improve aliasing/scheduling
* mips.c (save_restore_insns): Set RTX_UNCHANGING_P in register
	save/restore MEM rtl.

From-SVN: r17559
1998-01-30 10:31:34 -08:00
Jason Merrill
6209c7e96b new
From-SVN: r17558
1998-01-30 07:04:34 -05:00
Jeff Law
9c8933591e Tweak last entry.
From-SVN: r17557
1998-01-30 01:09:16 -07:00
Jeffrey A Law
64a438d6c4 configure.in: Check for declaration of abort.
* configure.in: Check for declaration of abort.
	* acconfig.h: Corresponding changes.
        * toplev.c: Use NEED_DECLARATION_ABORT to determine if abort should
        be declared.

From-SVN: r17556
1998-01-30 01:08:31 -07:00
Jeff Law
c5afbb4907 Forgot to commit these...
From-SVN: r17555
1998-01-30 01:04:59 -07:00
Jeff Law
f266c82f18 genattrtab.c (optimize): Define in case PRESERVE_DEATH_INFO_REGNO_P uses it.
* genattrtab.c (optimize): Define in case PRESERVE_DEATH_INFO_REGNO_P
        uses it.

From-SVN: r17554
1998-01-29 12:25:26 -07:00
Jason Merrill
98e10ea1cf new
From-SVN: r17553
1998-01-29 06:07:01 -05:00
Mark Mitchell
7bf2682f3f pt.c (convert_nontype_argument): Move check for is_overloaded_fn early to avoid bogus error.
* pt.c (convert_nontype_argument): Move check for is_overloaded_fn
	early to avoid bogus error.  Handle overloaded function
	names provided as template arguments correctly.
	(coerce_template_parms): Don't mishandle overloaded functions when
	dealing with template template parameters.
	(lookup_template_class): Issue an error message, rather than
	crashing, when the TYPE_DECL provided is not a template type.

From-SVN: r17552
1998-01-29 06:06:22 -05:00
Jason Merrill
c25520e8b9 new
From-SVN: r17551
1998-01-29 05:21:37 -05:00
Jeffrey A Law
31fa441061 Bump for snapshot
From-SVN: r17549
1998-01-29 02:27:59 -07:00
Jeffrey A Law
0ee31ab17e configure.in: Check for atoq and atoll.
* configure.in: Check for atoq and atoll.
        * rtl.c (read_rtx): Use HAVE_ATOLL and HAVE_ATOQ to select the
        proper routine for converting ascii into long long values.

From-SVN: r17548
1998-01-29 02:14:37 -07:00
Klaus Kaempf
9d21ee77f4 cccp.c (SYS$SEARCH, SYS$PARSE): Write as upper-case.
* cccp.c (SYS$SEARCH, SYS$PARSE): Write as upper-case.
        * vmsconfig.com: Remove bytecode references.
        * alpha/vms.h (PREFIX): Define.
        * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Remove.

From-SVN: r17547
1998-01-29 02:04:10 -07:00
Klaus Kaempf
eeeb91c5bf am-alpha.h: Don't include alloca for OPEN_VMS.
* am-alpha.h: Don't include alloca for OPEN_VMS.
        * alpha/xm-vms.h (HAVE_CPP_STRINGIFY): Define.
        * alpha/xm-vms.h (INCLUDE_DEFAULTS): Define.
        (GCC_INCLUDE_DIR): Define
        * make-cc.com, make-cccp.com, make-cc1.com: Removed.
        * makefile.vms: New file.
        * alpha/vms.h (CPP_PREDEFINES): Remove -Dalpha.
        * alpha.c (output_prolog): Output '.name' directive
        for minimal traceback information.
        * alpha.c (output_prolog): Don't prepend entry point symbols
        with '$' on OPEN_VMS.

From-SVN: r17546
1998-01-28 17:47:10 -07:00
Jason Merrill
abff8e0691 class.c (instantiate_type): Don't just return a known type if it's wrong.
* class.c (instantiate_type): Don't just return a known type if
 	it's wrong.
	* class.c (instantiate_type): Remove handling of FUNCTION_DECL
	since that code could never be reached.
	* error.c (dump_decl): Avoid aborting in the midst of printing an
	error message about an illegal template declaration.
	* parse.y (structsp): Print an error message, rather than crashing,
	when a class-head does not name a class.
	* pt.c (convert_nontype_argument):  Allow REAL_TYPE and COMPLEX_TYPE
	template arguments as a g++ extension.
	* cp-tree.def (ALIGNOF_EXPR): New tree code.
	* decl2.c (grok_alignof): If processing_template_decl, just store
	the expression.
	* typeck.c (c_alignof): Likewise.
	* decl2.c (build_expr_from_tree): Handle ALIGNOF_EXPR.
	* error.c (dump_expr): Likewise.
	* pt.c (tsubst_copy): Likewise.
	* tree.c (cp_tree_equal): Likewise.
	* pt.c (uses_template_parms): Correctly determine whether or not a
	SIZEOF_EXPR/ALIGNOF_EXPR uses template parameters so that constant
	folding can be done.

From-SVN: r17545
1998-01-28 19:08:53 -05:00
Jeff Law
76d31c6373 rtl.c (read_rtx): Use atol/atoq based upon disposition of HOST_WIDE_INT.
* rtl.c (read_rtx): Use atol/atoq based upon disposition of
        HOST_WIDE_INT.
        * genattrtab.c (write_test_expr): Use HOST_WIDE_INT_PRINT_DEC
        as needed.
        * genemit.c (gen_exp): Likewise.
        * genpeep.c (match_rtx): Likewise.
        * genrecog.c (write_tree_1): Likewise.
        * c-lex.c (yyprint): Use proper format string based upon
        disposition of HOST_BITS_PER_WIDE_INT.
        (yylex): Put casts in right place for args to build_int_2.
        * combine.c: Fix typos in Jan27 changes.

From-SVN: r17544
1998-01-28 16:25:15 -07:00
Ollivier Robert
1b7555bd4c freebsd.h (LIB_SPEC): Correctly handle -shared, -p and friends.
* i386/freebsd.h (LIB_SPEC): Correctly handle -shared, -p and friends.
        (LINK_SPEC): Likewise.
        (STARTFILE_SPEC): Likewise.

From-SVN: r17543
1998-01-28 16:06:58 -07:00
Mike Stump
21ca87b81b rtlanal.c (dead_or_set_regno_p): Ignore REG_DEAD notes after reload completes.
* rtlanal.c (dead_or_set_regno_p): Ignore REG_DEAD notes after
        reload completes.
        * genattrtab.c (reload_completed): Define.
        * m32r.md, mips.md, mn10200.md, mn10300.md, pyr.md: Remove obsolete
        comments.

From-SVN: r17542
1998-01-28 12:21:54 -07:00
J"orn Rennecke
d2c92f5a43 reload.c (push_reload): If WORD_REGISTER_OPERATIONS...
* reload.c (push_reload): If WORD_REGISTER_OPERATIONS, reload the
        SUBREG_REG if the word count is unchanged, also in the input reload
        case.  Disable non-applicable sanity checks.

From-SVN: r17541
1998-01-28 12:09:41 -07:00
Jeffrey A Law
90ad3ab77d * config/t-svr4 (TARGET_LIBGCC2_CFLAGS): Add -fPIC.
From-SVN: r17540
1998-01-28 12:06:58 -07:00
Ian Lance Taylor
7fad712c4a * i386/t-cygwin32 (LIMITS_H_TEST, LIBGCC2_INCLUDES): Define.
From-SVN: r17539
1998-01-28 12:04:40 -07:00
Per Bothner
1aea01ea0b dbxout.c (dbxout_type): For a RECORD_TYPE...
d
	* dbxout.c (dbxout_type):  For a RECORD_TYPE, check that TYPE_BINFO
	is a TREE_VEC before trying to use it for baseclasses.
	(Chill uses the same field for a different purpose.)

From-SVN: r17535
1998-01-28 09:07:24 -08:00
Per Bothner
598fc15260 dbxout.c (dbxout_type): For a RECORD_TYPE...
�
	* dbxout.c (dbxout_type):  For a RECORD_TYPE, check that TYPE_BINFO
	is a TREE_VEC before trying to use it for baseclasses.
	(Chill uses the same field for a different purpose.)

From-SVN: r17534
1998-01-28 09:07:23 -08:00
Jason Merrill
a88b65c260 new
From-SVN: r17533
1998-01-28 06:51:38 -05:00
Per Bothner
2290e0ece4 *** empty log message ***
From-SVN: r17532
1998-01-28 03:46:37 -08:00
Jason Merrill
86052cc3d8 cp-tree.h (grok_enum_decls): Remove type parameter.
* cp-tree.h (grok_enum_decls): Remove type parameter.
	* decl.c (grok_enum_decls): Likewise.
	* decl2.c (grok_x_components): Call grok_enum_decls
	unconditionally, since it will do nothing if there is no
	current_local_enum.  Use the new calling sequence.
	* pt.c (tsubst_enum): Use the new calling sequence for
	grok_enum_decls.
	* decl.c (start_function): Make member functions of local classes
	in extern inline functions have comdat linkage here...
	(grokdeclarator): Rather than here.
	* pt.c (convert_nontype_argument): Use decl_constant_value.

From-SVN: r17531
1998-01-28 06:43:39 -05:00
Jason Merrill
fca482568a new
From-SVN: r17530
1998-01-28 05:58:52 -05:00
Jeff Law
fb0390de12 Add missing ChangeLog entry
Add missing ChangeLog entry

From-SVN: r17529
1998-01-28 02:48:01 -07:00
Manfred Hollstein
d0a8352c0d Makefile.in (BASE_FLAGS_TO_PASS): Remove passing $(local_prefix) here as it is not defined in the toplevel Makefile.
* Makefile.in (BASE_FLAGS_TO_PASS): Remove passing $(local_prefix)
        here as it is not defined in the toplevel Makefile.

From-SVN: r17528
1998-01-28 02:31:48 -07:00
Manfred Hollstein
3a744fee03 configure.in, [...]: Update with yesterday's toplevel configure.in changes.
* stdio/configure.in, tests/configure.in: Update with yesterday's
        toplevel configure.in changes.
        * testsuite/cofnigure.in: Likewise.
        * config.shared: Fix typo in yesterday's changes.

From-SVN: r17527
1998-01-28 02:30:03 -07:00
Manfred Hollstein
5dc0a69ae4 configure.in, [...]: Update with yesterday's toplevel configure.in changes.
* tests/configure.in, testsuite/configure.in: Update with yesterday's
        toplevel configure.in changes.

From-SVN: r17526
1998-01-28 02:29:07 -07:00