aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m68k
AgeCommit message (Collapse)AuthorFilesLines
1999-06-17Added -mpcrel flag, and underlying support for PC-relative addressing on m68k.Don Lindsay7-110/+382
h Added -mpcrel flag, and underlying support for PC-relative addressing on m68k. Patch is tested, and approved by Jim Wilson. From-SVN: r27576
1999-06-07x-hp3bsd44: Delete obsolete and incorrect file.Jeff Law1-1/+0
� * m68k/x-hp3bsd44: Delete obsolete and incorrect file. * configure.in (m68k-hp-bsd4.4): No longer use x-hp3bsd44. * configure: Rebuilt. From-SVN: r27412
1999-06-01x-mot3300 (XCFLAGS): Fixed to match stb.o, not f/stb.o.Philippe De Muyter1-3/+5
8 * m68k/x-mot3300 (XCFLAGS): Fixed to match stb.o, not f/stb.o. From-SVN: r27299
1999-05-16m68k.c (standard_68881_constant_p): Don't accept -0.0 as valid 68881 constant.Andreas Schwab1-1/+3
* m68k.c (standard_68881_constant_p): Don't accept -0.0 as valid 68881 constant. From-SVN: r26964
1999-04-28m68k.md (cmpsi+1): Use cmp.w when comparing a 16 bit constant with an ↵Andreas Schwab1-0/+11
address register. * config/m68k/m68k.md (cmpsi+1): Use cmp.w when comparing a 16 bit constant with an address register. From-SVN: r26684
1999-04-16system.h: Always prototype abort.Zack Weinberg1-11/+0
1999-04-16 22:44 -0400 Zack Weinberg <zack@rabi.columbia.edu> * system.h: Always prototype abort. Prototype fatal. Define abort to call fatal, not fprintf/exit. Define a stub macro for trim_filename. * toplev.c: Define DIR_SEPARATOR. (trim_filename): New function. * toplev.h: Prototype trim_filename, and #undef system.h's stub. * gcc.c, genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c, genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c: Make fatal non-static. * gcov.c, gengenrtl.c, protoize.c: #undef abort after including system.h. * config/i386/dgux.h, config/m68k/xm-amix.h: Remove stale code relating to abort. From-SVN: r26511
1999-04-05* m68k.md (movdf): Hide GPR sources & destinations from regclass.Jeffrey A Law1-2/+4
From-SVN: r26198
1999-03-03Make C++ static constructors work for m68k-elf.Jim Wilson1-0/+11
* m68k/m68020-elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Undef. (STARTFILE_SPEC, ENDFILE_SPEC): Define to empty string. From-SVN: r25565
1999-03-01Patch to fix coldfire bugs found by PlumHall testing.Jim Wilson2-4/+6
* config/m68k/lb1sf68.asm (udivsi3): Change jmi to jcs. Fix comments. * config/m68k/m68k.h (LEGITIMATE_INDEX_REG_P): Reject SIGN_EXTEND of HImode reg when TARGET_5200. From-SVN: r25516
1999-02-19m68k.c (m68k_align_loops_string, [...]): Add const.Andreas Schwab2-6/+6
* config/m68k/m68k.c (m68k_align_loops_string, m68k_align_jumps_string, m68k_align_funcs_string): Add const. * config/m68k/m68k.h (m68k_align_loops_string, m68k_align_jumps_string, m68k_align_funcs_string): Likewise. From-SVN: r25303
1999-02-18Fix m68k-elf coldfire run-time address error for tablejumps.Jim Wilson1-1/+7
* m68kelf.h (ASM_RETURN_CASE_JUMP): Add 5200 support. From-SVN: r25288
1999-02-18openbsd.h: New file.Marc Espie2-0/+144
* m68k/openbsd.h: New file. * m68k/xm-openbsd.h: New file. From-SVN: r25281
1999-02-03m68k.c (print_operand_address): When printing a SYMBOL_REF that ends in ↵Andreas Schwab1-1/+13
`.<letter>' put parentheses around it. * config/m68k/m68k.c (print_operand_address): When printing a SYMBOL_REF that ends in `.<letter>' put parentheses around it. From-SVN: r25000
1999-01-26Merge in gcc2 snapshot 19980929. See gcc/ChangeLog and gcc/FSFChangeLog forJeffrey A Law2-129/+85
details. From-SVN: r24879
1999-01-21m68k.md (ashldi_const): Disable for !TARGET_5200.Jeffrey A Law1-21/+28
* m68k.md (ashldi_const): Disable for !TARGET_5200. Fix indention. (ashldi3 expander): Similarly. Update comments. (ashrdi_const, lshrdi_const): Fix indention. (ashrdi3, lshrdi3): FIx indention. Update comments. From-SVN: r24814
1999-01-12mot3300.h (ADD_MISSING_POSIX, [...]): Define to ensure all prototypes ↵Manfred Hollstein2-6/+6
necessary for building libio will be available. � * m68k/mot3300.h (ADD_MISSING_POSIX, ADD_MISSING_XOPEN): Define to ensure all prototypes necessary for building libio will be available. * m68k/xm-mot3300.h (ADD_MISSING_POSIX, ADD_MISSING_XOPEN): Remove definitions here as they are not host specific. * m88k/sysv3.h, m88k/xm-sysv3.h: Likewise. From-SVN: r24638
1999-01-11Update FSF address in copyright header.Jeff Law1-1/+2
From-SVN: r24614
1999-01-11Update copyright.Andreas Schwab1-1/+1
From-SVN: r24610
1999-01-08m68k.h: Declare output_function_epilogue.Andreas Schwab1-0/+1
* config/m68k/m68k.h: Declare output_function_epilogue. * recog.h: Declare next_insn_tests_no_inequality. From-SVN: r24570
1999-01-06Update copyrights.Jeff Law1-1/+1
From-SVN: r24533
1999-01-06Andreas Schwab <schwab@issan.cs.uni-dortmund.de>Andreas Schwab1-4/+0
Andreas Schwab <schwab@issan.cs.uni-dortmund.de> * config/m68k/m68k.c (const_uint32_operand): Remove CONSTANT_P_RTX handling. (const_sint32_operand): Likewise. From-SVN: r24515
1998-12-30m68k.md (adddi_dilshr32): Allow all operands to be registers too.Jeffrey A Law1-2/+2
* m68k.md (adddi_dilshr32): Allow all operands to be registers too. (adddi_dishl32): Similarly. From-SVN: r24452
1998-12-16dummy import to prevent merge lossageJeff Law14-149/+39
From-SVN: r24349
1998-12-12t-m68kelf (MULTILIB_OPTIONS): Add mcpu32.Jeffrey A Law1-3/+3
* m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcpu32. (MULTILIB_MATCHES): -m68332 now uses mcpu32 libraries, not m68000. (MULTILIB_EXCEPTIONS): Don't build 68881 libraries for m68000, mcpu32 or m5200. From-SVN: r24288
1998-11-24cse.c (fold_rtx): Make autoincrement addressing mode tests be runtime ↵Jeffrey A Law1-4/+4
selectable. * cse.c (fold_rtx): Make autoincrement addressing mode tests be runtime selectable. * expr.c (move_by_pieces): Similarly. (move_by_pieces_1, clear_by_pieces, clear_by_pieces_1): Similarly. * flow.c (find_auto_inc): Similarly. (try_pre_increment): Similarly. * loop.c (strength_reduce): Similarly. * regclass.c (auto_inc_dec_reg_p): Similarly. * regmove.c (try_auto_increment): Similarly. (fixup_match_1): Similarly. * rtl.h (HAVE_PRE_INCREMENT): Define if not already defined. (HAVE_PRE_DECREMENT): Similarly. (HAVE_POST_INCREMENT, HAVE_POST_DECREMENT): Similarly. sponding changes to all target header files. From-SVN: r23837
1998-11-24Add m68k-elf port from Cygnus gcc sources.Jim Wilson3-0/+337
* configure.in (m68020-*-elf*, m68k-*-elf*): New targets. * configure: Rebuild. * config/elfos.h: New file. * config/m68k/m68020-elf.h, config/m68k/m68kelf.h, config/m68k/t-m68kelf: New file. From-SVN: r23835
1998-10-29* m68k.h (INDIRECTABLE_1_ADDRESS_P): Fix thinko.Peter Jakubek1-10/+2
From-SVN: r23446
1998-10-14dwarf2out.c (expand_builtin_dwarf_reg_size): Look at all ranges when ↵Andreas Schwab1-4/+7
generating the decision tree for the general case. * dwarf2out.c (expand_builtin_dwarf_reg_size): Look at all ranges when generating the decision tree for the general case. * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Don't accept modes wider that 12 bytes in fpu regs or wider than 8 byte in fpa regs. From-SVN: r23082
1998-10-13Fix for m68k -O0 libstdc++ compiler abort.Jim Wilson2-11/+21
* config/m68k/m68k.h (HARD_REGNO_MODE_OK): For FP regs, add REGNO >= 16 check. Add comment to document problems with TARGET_SUN_FPA version of this macro. * config/m68k/m68k.md (movxf+1): Support 'r'/'r' moves. From-SVN: r23056
1998-09-15m68k.c (output_function_prologue): Reverse NO_ADDSUB_Q condition, fix format ↵Kamil Iskra1-16/+16
strings. * m68k/m68k.c (output_function_prologue): Reverse NO_ADDSUB_Q condition, fix format strings. (output_function_epilogue): Likewise. From-SVN: r22445
1998-09-15* m68k/m68k.c: Don't include <stdlib.h> directly.Kamil Iskra1-4/+0
From-SVN: r22444
1998-09-15tree.h (BUILT_IN_CALLER_RETURN_ADDRESS): Unused.Richard Henderson1-0/+3
* tree.h (BUILT_IN_CALLER_RETURN_ADDRESS): Unused. Kill. (BUILT_IN_FP, BUILT_IN_SP, BUILT_IN_SET_RETURN_ADDR_REG): Kill. (BUILT_IN_EH_STUB_OLD, BUILT_IN_EH_STUB, BUILT_IN_SET_EH_REGS): Kill. (BUILT_IN_EH_RETURN, BUILT_IN_DWARF_CFA): New. * c-decl.c (init_decl_processing): Update accordingly. * expr.c (expand_builtin): Likewise. * cp/decl.c (init_decl_processing): Likewise. * rtl.h (global_rtl): Add cfa entry. (virtual_cfa_rtx, VIRTUAL_CFA_REGNUM): New. (LAST_VIRTUAL_REGISTER): Update. * emit-rtl.c (global_rtl): Add cfa entry. (init_emit): Initialize it. * function.c (cfa_offset): New. (instantiate_virtual_regs): Initialize it. (instantiate_virtual_regs_1): Instantiate virtual_cfa_rtx. (expand_function_end): Call expand_eh_return. * tm.texi (ARG_POINTER_CFA_OFFSET): New. * except.c (current_function_eh_stub_label): Kill. (current_function_eh_old_stub_label): Likwise; update all references. (expand_builtin_set_return_addr_reg): Kill. (expand_builtin_eh_stub_old, expand_builtin_eh_stub): Kill. (expand_builtin_set_eh_regs): Kill. (eh_regs): Produce a third reg for the actual handler address. (eh_return_context, eh_return_stack_adjust): New. (eh_return_handler, eh_return_stub_label): New. (init_eh_for_function): Initialize them. (expand_builtin_eh_return, expand_eh_return): New. * except.h: Update prototypes. * flow.c (find_basic_blocks_1): Update references to the stub label. * function.h (struct function): Kill stub label elements. * libgcc2.c (in_reg_window): For REG_SAVED_REG, check that the register number is one that would be in the previous window. Provide a dummy definition for non-windowed targets. (get_reg_addr): New function. (get_reg, put_reg, copy_reg): Use it. (__throw): Rely on in_reg_window, not INCOMING_REGNO. Kill stub generating code and use __builtin_eh_return. Use __builtin_dwarf_cfa. * alpha.c (alpha_eh_epilogue_sp_ofs): New. (alpha_init_expanders): Initialize it. (alpha_expand_epilogue): Use it. * alpha.h: Declare it. * alpha.md (eh_epilogue): New. * m68h.h (ARG_POINTER_CFA_OFFSET): New. * sparc.h (ARG_POINTER_CFA_OFFSET): New. From-SVN: r22436
1998-09-06(BOOT_LDFLAGS): Define suitably for f771 linking.Dave Love1-0/+4
From-SVN: r22287
1998-09-05m68k.md (5200 movqi): Do not allow byte sized memory references using ↵Jeffrey A Law2-6/+5
address regs. * m68k.md (5200 movqi): Do not allow byte sized memory references using address regs. * m68k.c (output_move_qimode): Do not use byte sized operations on address registers. From-SVN: r22268
1998-09-05* m68k.md (zero_extendsidi2): Fix typo.Torbjorn Granlund1-1/+1
From-SVN: r22265
1998-09-05configure.in: Removed references to the removed fileKrister Walfridsson1-3/+0
* configure.in: Removed references to the removed file * config/xm-netbsd.h. Use ${cpu_type}/xm-netbsd.h for * arm*-*-netbsd* and ns32k-*-netbsd*. * config/i386/xm-netbsd.h: Removed unnecessary file. * config/m68k/xm-netbsd.h: Likewise. * config/sparc/xm-netbsd.h: Likewise. * config/mips/xm-netbsd.h: Likewise. From-SVN: r22262
1998-08-31m68k.h (TARGET_SWITCHES): Don't remove MASK_68040 for -m68020-60, to prevent ↵Andreas Schwab1-2/+3
the use of fintrz. * config/m68k/m68k.h (TARGET_SWITCHES): Don't remove MASK_68040 for -m68020-60, to prevent the use of fintrz. From-SVN: r22122
1998-08-30xm-netbsd.h: Remove unnecessary file.Jeffrey A Law1-1/+0
* config/xm-netbsd.h: Remove unnecessary file. * config/*/xm-netbsd.h: Do not include the generic xm-netbsd.h file anymore, it is not needed. From-SVN: r22103
1998-08-29m68k.md (beq0_di): Generate correct (and more efficient) code when...Jeffrey A Law1-0/+38
* m68k.md (beq0_di): Generate correct (and more efficient) code when the clobbered operand overlaps with an input. (bne0_di): Similarly. From-SVN: r22082
1998-08-17m68k.c: Include "system.h" instead of <stdio.h>.Andreas Schwab1-6/+7
* config/m68k/m68k.c: Include "system.h" instead of <stdio.h>. Include "toplev.h". (valid_dbcc_comparison_p): Mark mode argument as unused. (symbolic_operand): Likewise. (legitimize_pic_address): Likewise. (const_uint32_operand): Likewise. (const_sint32_operand): Likewise. * sched.c [!INSN_SCHEDULING]: Define only dummy function schedule_insns and comment out rest of file. From-SVN: r21779
1998-08-17m68k.c (output_move_simode_const): Use subl to move a zero into an address ↵Andreas Schwab1-0/+8
register. * m68k.c (output_move_simode_const): Use subl to move a zero into an address register. (output_move_[hq]imode): Likewise. From-SVN: r21778
1998-08-14m68k.md (adddi_dilshr32): One of the operands must be a register.Jeff Law1-6/+6
( * m68k.md (adddi_dilshr32): One of the operands must be a register. (adddi_dishl32): Similarly. From-SVN: r21739
1998-08-01netbsd.h: Undo previous change to DWARF2_UNWIND_INFO.Jeff Law1-1/+1
h * i386/netbsd.h: Undo previous change to DWARF2_UNWIND_INFO. * m68k/netbsd.h: Likewise. * ns32k/netbsd.h: Likewise. * sparc/netbsd.h: Likewise. From-SVN: r21523
1998-07-29configure.in: Use xm-netbsd.h as the NetBSD xm file (not xm-siglist).Todd Vierling1-1/+1
* configure.in: Use xm-netbsd.h as the NetBSD xm file (not xm-siglist). Accept arm32 as arm, m68k4k as m68k, mipsle as mips-dec, and any manufacturer id for ns32k. * configure: Regenerated. * config/netbsd.h: When using ASM_WEAKEN_LABEL, make it global too. * config/t-netbsd: Don't compile libgcc1-test as the fns are in libc. * config/i386/netbsd.h: Undefine DWARF2_UNWIND_INFO, not define as 0. * config/m68k/netbsd.h: Same. * config/ns32k/netbsd.h: Same. * config/sparc/netbsd.h: Same. From-SVN: r21480
1998-07-13m68k.h (TARGET_SWITCHES): Clear MASK_68040_ONLY for -m68020-40, -m68020-60 ↵Kamil Iskra1-4/+4
and -m5200. ( * m68k/m68k.h (TARGET_SWITCHES): Clear MASK_68040_ONLY for -m68020-40, -m68020-60 and -m5200. From-SVN: r21126
1998-07-13* m68k.c (output_scc_di): Use cmpw #0 only for address registers.Andreas Schwab1-16/+29
From-SVN: r21119
1998-07-10m68k.c (const_uint32_operand): Recognize CONSTANT_P_RTX.Andreas Schwab1-0/+4
* config/m68k/m68k.c (const_uint32_operand): Recognize CONSTANT_P_RTX. (const_sint32_operand): Likewise. From-SVN: r21049
1998-07-06* m68k.md (zero_extend QI to HI): Correctly handle TARGET_5200.Franz Sirl1-2/+3
From-SVN: r20981
1998-07-06m68k.c (output_scc_di): Use cmpw #0 instead of tstl when testing address ↵Kamil Iskra1-1/+15
registers on the 68000. * m68k.c (output_scc_di): Use cmpw #0 instead of tstl when testing address registers on the 68000. From-SVN: r20963
1998-06-29* Merge from gcc2 June 9, 1998 snapshot. See ChangeLog.13 forJeff Law1-1/+1
details. From-SVN: r20808