Commit Graph

9036 Commits

Author SHA1 Message Date
Jim Wilson 16bea517d3 Correct typos and formatting problems.
(add_constant, current_function_pretend_args_size,
flag_traditional, table_lab): Delete unnecessary declarations.
(sh_cpu): Change type from attr_cpu to processor_type.
(need_slot, output_shift, lshiftrt_insns, howshift,
pop_operand): Delete.
(print_operand, output_branch): Delete calls to need_slot.
(synth_constant): Comment that it doesn't work.
(output_movedouble): Handle PRE_DEC dest not POST_INC dest.
(output_options): Don't use flag_traditional.
(shift_insns): Correct numbers to optimal sequences.
(shift_amounts): New table.
(shift_insns_rtx): New function.
(shiftinsns): Combine LSHIFTRT and ASHIFT cases.
(shiftcosts): Return true costs of shifts instead of estimate of 1.
(gen_ashift): Handle negative shift amounts.  Call gen_lshrsi3_m
for single bit LSHIFTRT, and gen_lshrisi3_k for multiple bit shifts.
(gen_shifty_op): Handle negative shift amounts at top.  Generate
optimal sequences for ASHIFT and LSHIFTRT.
(find_barrier): Correct pattern for matching mova instructions.
(general_movsrc_operand): Delete redundant test for (MEM LABEL_REF).
Don't reject POST_INC address for size > 4.
(general_movdst_operand): Don't reject PRE_DEC address for size > 4.

From-SVN: r9062
1995-02-24 14:19:23 -08:00
Jim Wilson 994295f28a Correct typos and formatting problems.
(MODE_DISP_OK_[12]): Delete.
(GO_IF_LEGITIMATE_INDEX): Delete uses of MODE_DISP_OK_[12].
(RTX_COSTS): Add LSHIFTRT.
(table_lab): Delete declaration.
(enum processor_type): New enum.
(sh_cpu_attr): New macro.
(sh_cpu): Change type to enum processor_type to avoid incomplete
enum type.

From-SVN: r9061
1995-02-24 14:18:29 -08:00
Jim Wilson 07a45e5ce1 Correct typos and formatting problems.
(cpu): Use sh_cpu_attr not sh_cpu.
(adddi3, subdi3, udivsi3-1, divsi3-1, mulsi3_call-1, ashrsi2_16,
ashrsi2_31, dect, casesi_worker): Use arith_reg_operand not
register_operand.
(ashlsi3_n, lshrsi3_n): Enable pattern.  Set length correctly.
Use '#' to output it.
(ashlsi3_n+1, lshrsi3_n+1): New patterns to split shifts.
(ashlsi3, lshrsi3): Use shiftby_operand instead of gen_shifty_op.
(lshlsi3_m): New pattern for single bit shifts.
(lshlsi3_k): Only handle multiple bit shifts.
(negc): Use IOR not PLUS to set carry bit.
(push+2, pop+2, movsi_pi, movdi-2, movdf_k-1, movsf_i-1): Delete.
(movsi_i, movqi_i, movhi_i): Delete redundant < and > constraints.
(movsf_i): Delete incorrect < and > constraints.

From-SVN: r9060
1995-02-24 14:17:21 -08:00
Jim Wilson b1e9510ec9 (mips_secondary_reload_class): Also handle SUBREGs.
From-SVN: r9059
1995-02-24 13:17:51 -08:00
Jim Wilson 0e1cdc75b1 (madsi): Don't use '+' constraint in a clobber.
(madsi_highpart, umadsi_highpart): Delete.

From-SVN: r9058
1995-02-24 13:17:17 -08:00
Jim Wilson dc2fba6003 (dbxout_parms): For parameters passed in memory...
(dbxout_parms): For parameters passed in memory, delete
obsolete code to handle parameters converted and stored back to
the stack slot where they were passed in.
(dbxout_reg_parms): Delete obsolete ifdefed out code.  Combine
redundant PARM_PASSED_IN_MEMORY tests.  For case where parameter
lives in memory, output stab if it doesn't live where it was passed.

From-SVN: r9057
1995-02-24 12:55:10 -08:00
Mike Stump d0a71ec5ce undo dje's indaverent undo of my work. (remove -Wenum-clash)
From-SVN: r9056
1995-02-24 19:53:35 +00:00
Michael Meissner 58733f9609 Define long double versions of sin/cos
From-SVN: r9055
1995-02-24 18:07:00 +00:00
Mike Stump f33985c6ed rs6000.h (RETURN_ADDR_RTX): Add definition to support __builtin_return_address and __builtin_frame_address...
* rs6000.h/rs6000.h (RETURN_ADDR_RTX): Add definition to support
        __builtin_return_address and __builtin_frame_address on the
        rs6000.  This is necessary to support exception handling in g++ on
        the rs6000.
Fixes eh6.C on rs6000.

From-SVN: r9054
1995-02-23 22:23:33 +00:00
Michael Meissner d14a6d05b2 Support -msoft-float; support eabi -mrelocatable
From-SVN: r9053
1995-02-23 20:30:26 +00:00
Richard Kenner 919e340a21 (ld): Add missing backslash to make continuation line.
From-SVN: r9052
1995-02-23 08:49:06 -05:00
Richard Kenner 3578445a3a (gen_stdcall_suffix): Deleted.
From-SVN: r9051
1995-02-23 07:56:39 -05:00
Richard Kenner bb52566d02 (MODIFY_ASSEMBLER_NAME, VALID_MACHINE_DECL_ATTRIBUTES): Deleted.
From-SVN: r9050
1995-02-23 07:55:03 -05:00
Richard Kenner d08e39677b (make_decl_rtl): Remove reference to MODIFY_ASSEMBLER_NAME.
From-SVN: r9049
1995-02-23 07:52:35 -05:00
Richard Kenner f8a89236c4 Formatting changes.
From-SVN: r9048
1995-02-23 07:06:03 -05:00
Richard Kenner 3bda6d11ef (RTX_COSTS): Update costs for FP operations.
From-SVN: r9047
1995-02-23 06:58:36 -05:00
Richard Kenner 5d6155d480 Fix formatting.
From-SVN: r9046
1995-02-23 06:50:00 -05:00
Jason Merrill d2d7ed3e17 Fix signed/unsigned comparison warning.
From-SVN: r9045
1995-02-23 08:14:12 +00:00
Richard Kenner 71df911299 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): New macro.
From-SVN: r9044
1995-02-22 21:32:41 -05:00
Richard Kenner 96317659b6 Removed __NetBSD__ from conditional.
Declare strerror if HAVE_STRERROR is defined; otherwise declare sys_errlist
and sys_nerr.

From-SVN: r9043
1995-02-22 20:28:17 -05:00
Richard Kenner 2d2daf45b6 Removed __NetBSD__ from conditional.
From-SVN: r9042
1995-02-22 20:26:51 -05:00
Jason Merrill 28aaf32b33 Update SunOS 4 code
From-SVN: r9041
1995-02-23 01:23:53 +00:00
Richard Kenner 49be3a59ff Recognize NetBSD/Amiga as m68k-cbm-netbsd.
From-SVN: r9039
1995-02-22 19:08:39 -05:00
Richard Kenner bc314d533b (libgcc1.a): Run ranlib.
From-SVN: r9038
1995-02-22 19:06:57 -05:00
Richard Kenner e475ed2aec (memory_address): Add missing "else".
From-SVN: r9037
1995-02-22 18:46:44 -05:00
Richard Kenner 5bdc151289 (enum sharp_token_type): New type.
(stringify, raw_before, raw_after): Use this type instead of char.
(collect_expansion, dump_single_macro): Keep track of white space
after # and around ## tokens, since the C Standard requires a
diagnostic if the white space doesn't match during a redefinition.
(sharp_token, sharp_sharp_token): Labels renamed from hash_token and
hash_hash_token for naming consistency.

From-SVN: r9036
1995-02-22 18:26:54 -05:00
Richard Kenner 34dd383844 (SWITCH_TAKES_ARG): Add `x'.
(process_command): -Wl, -Xlinker, and -lm values always go to linker
even if -x was specified.

From-SVN: r9035
1995-02-22 17:37:01 -05:00
Jason Merrill 56c98e5b32 Support CLEANUP_POINT_EXPRs.
From-SVN: r9034
1995-02-22 17:35:09 +00:00
Richard Kenner a092957f96 (print_operand, case 'H', 'S'): Delete unused.
From-SVN: r9033
1995-02-22 08:53:51 -05:00
Richard Kenner 242e8072bb (ffssi2): Use gpc_reg_operand predicate.
(Some maskir patterns): Likewise.
(ffsdi2): Likewise.

From-SVN: r9032
1995-02-22 08:49:41 -05:00
Richard Kenner 94d7001a79 (movsfcc, movdfcc): New standard patterns.
(fselsfsf4, fseldfsf4, fseldfdf4, fselsfdf4): Name and create variants of
existing anonymous patterns for movsfcc and movdfcc.

From-SVN: r9031
1995-02-22 08:40:06 -05:00
Richard Kenner cb64953075 (output_asm_name): New function, using code taken from output_asm_insn.
(output_asm_insn): If flag_print_asm_name, print the comment after the
first assembler instruction even in multi-instruction templates.

From-SVN: r9030
1995-02-22 08:12:44 -05:00
Richard Kenner 57e1b65caa (output_move_double): Let split_double extract any constant in op 1;
take size from op 0.

From-SVN: r9029
1995-02-22 07:53:15 -05:00
Richard Kenner 5a1a6efdc8 (split_double): Handle CONST_INT that holds both words.
From-SVN: r9028
1995-02-22 07:52:50 -05:00
Richard Kenner 8c35bbc594 (REAL_WORDS_BIG_ENDIAN): New macro.
(REAL_WORDS_BIG_ENDIAN): New macro.  Define as either
FLOAT_WORDS_BIG_ENDIAN or HOST_FLOAT_WORDS_BIG_ENDIAN.  Use it instead
of FLOAT_WORDS_BIG_ENDIAN.
(m16m, edivm, emulm): Change `short' to `EMUSHORT', and `long' to `EMULONG'.
Clean up comments.

From-SVN: r9027
1995-02-22 07:05:12 -05:00
Jeff Law 0ed5f250a1 pa.h (ASM_DECLARE_FUNCTION_NAME): Handle invisible reference arguments passed in registers.
* pa.h (ASM_DECLARE_FUNCTION_NAME): Handle invisible reference
	arguments passed in registers.

From-SVN: r9026
1995-02-21 22:54:11 -07:00
Richard Kenner 278479ede5 (default_compilers): Remove rule for ".ada".
Pass .ads or .adb suffix to -dumpbase, depending on input filename.

From-SVN: r9025
1995-02-21 19:25:17 -05:00
Richard Kenner 30c7130834 Initial revision
From-SVN: r9024
1995-02-21 19:07:50 -05:00
Richard Kenner 8c4caa3de9 Added {} around file variable.
From-SVN: r9023
1995-02-21 19:02:59 -05:00
Richard Kenner 829bd124b1 (make_decl_rtl): Call MODIFY_ASSEMBLER_NAME if defined.
From-SVN: r9022
1995-02-21 19:00:04 -05:00
Richard Kenner 77cf75a8ef (union tree_decl): New field MACHINE_ATTRIBUTES.
(DECL_MACHINE_ATTRIBUTES): New macro.

From-SVN: r9021
1995-02-21 18:59:24 -05:00
Richard Kenner 1a2927d261 (chain_member_value, decl_attribute_variant): New functions.
(valid_machine_attribute): Moved here from c-common.c.

From-SVN: r9020
1995-02-21 18:58:27 -05:00
Richard Kenner 15f000972d (get_run_time): Return an approximate value for NT.
From-SVN: r9019
1995-02-21 18:57:45 -05:00
Richard Kenner d4bb0623b4 Added #ifdef's WINNT.
From-SVN: r9018
1995-02-21 18:57:15 -05:00
Richard Kenner 38d6864506 (print_node{,_brief}): Print machine attributes.
From-SVN: r9017
1995-02-21 18:56:31 -05:00
Richard Kenner c84b672ea9 (atexit): Prototype now works with NT.
From-SVN: r9016
1995-02-21 18:55:37 -05:00
Richard Kenner a2a8c03cad Test _SIZE_T_DEFINED and _WCHAR_T_DEFINED.
From-SVN: r9015
1995-02-21 18:53:57 -05:00
Richard Kenner c4f0e4979f Test _VA_LIST_DEFINED macro.
From-SVN: r9014
1995-02-21 18:53:15 -05:00
Richard Kenner 6ce3c2a19a (fix_argv): Rewrite.
From-SVN: r9013
1995-02-21 18:52:14 -05:00
Richard Kenner 3709124dc1 (atexit): Prototype now works with NT.
From-SVN: r9012
1995-02-21 18:49:31 -05:00