Commit Graph

13306 Commits

Author SHA1 Message Date
Jeff Law
3b800f71d3 mn10300.md (cmpsi): Handle comparing a register with itself by adding zero to the reg.
* mn10300/mn10300.md (cmpsi): Handle comparing a register with
        itself by adding zero to the reg.  Z bit for such an insn is
        inverted.
        * mn10300/mn10300.c (notice_update_cc): Handle CC_INVERT.

From-SVN: r13755
1997-03-20 12:25:46 -07:00
Michael Meissner
5ae4759c1c Patches from wilson; consider fp constants if -mrelocatable to be hard
From-SVN: r13754
1997-03-20 19:02:29 +00:00
Jeff Law
09ece7b528 pa.c (emit_move_sequence): Don't lose for a secondary reload to the SAR register if...
* pa/pa.c (emit_move_sequence): Don't lose for a secondary reload
        to the SAR register if the input is a MEM with an offset that won't
        fit in 14bits.

From-SVN: r13753
1997-03-20 09:00:49 -07:00
Richard Kenner
52320a474f (do_error, do_warning): Fix memory leak.
From-SVN: r13752
1997-03-19 17:19:27 -05:00
Richard Kenner
982ce90579 (output_line_directive): Do not output negative line numbers when
analyzing directives like `#line 0'.

From-SVN: r13751
1997-03-19 17:15:42 -05:00
Richard Kenner
3cb32ea3fd (ASM_OUTPUT_MI_THUNK): Define.
From-SVN: r13750
1997-03-19 17:10:39 -05:00
Richard Kenner
641d44433f (unsafe_chars): p' is unsafe before -' or `+', since it might generate a C9X-style hexadecimal floating-point number.
(unsafe_chars): `p' is unsafe before `-' or `+', since it
might generate a C9X-style hexadecimal floating-point number.
(cpp_handle_options): Set c89 option to 1 if -lang-c89.

From-SVN: r13749
1997-03-19 16:59:23 -05:00
Richard Kenner
76e804216b (struct cpp_options): New member c89.
(CPP_C89): New macro.

From-SVN: r13748
1997-03-19 16:58:58 -05:00
Richard Kenner
b2feb130ca (c89): New decl.
(main): Set it to 1 if -lang-c89.

From-SVN: r13747
1997-03-19 16:58:28 -05:00
Richard Kenner
21c24d8861 (parse_number, yylex), cccp.c (rescan), cpplib.c
(parse_number, yylex), cccp.c (rescan), cpplib.c
(cpp_get_token): Unless -lang-c89 is specified, allow C9X-style
hexadecimal floating-point numbers as preprocessor numbers.

From-SVN: r13746
1997-03-19 16:57:58 -05:00
Richard Kenner
b415e1000b Formerly cpp.texi.~27~
From-SVN: r13745
1997-03-19 16:55:16 -05:00
Jim Wilson
3d14e82f05 (shorten_branches): Split all insns before computing insn lengths.
(shorten_branches): Split all insns before computing insn
lengths.
(final_scan_insn, case default): If HAVE_ATTR_length defined, call
abort for any insn that has a '#' output template.

From-SVN: r13744
1997-03-18 14:55:01 -08:00
Jim Wilson
aff4d29bf4 (emit_group_load): Call operand_subword instead of creating
an explicit SUBREG.

From-SVN: r13743
1997-03-18 14:25:56 -08:00
Jim Wilson
c6e0383c18 (reload_reg_free_before_p, case
RELOAD_FOR_OPERAND_ADDRESS): Conflicts with RELOAD_FOR_OPADDR_ADDR
reloads.

From-SVN: r13742
1997-03-18 14:10:38 -08:00
Stan Cox
5ae749842d Support stabs and section attribute
From-SVN: r13741
1997-03-18 22:04:32 +00:00
Stan Cox
4cd77633ca Remove TARGET_CPU_DEFAULT reference.
From-SVN: r13740
1997-03-18 22:03:31 +00:00
Stan Cox
d4e2f547d8 (override_options) Make the default alignment 4 for 486
From-SVN: r13739
1997-03-18 22:02:36 +00:00
Stan Cox
33c1d53aec (STACK_BOUNDARY): Determine according to TARGET_ALIGN_DOUBLE
From-SVN: r13738
1997-03-18 22:01:28 +00:00
Jim Wilson
03fc162077 (init_spec): Delete parameter. Always initialize extra_specs.
(process_command, main): Change all callers.

From-SVN: r13737
1997-03-18 13:19:22 -08:00
Jim Wilson
987e845a7f (if_then_else_cond): Call copy_rtx to prevent sharing.
From-SVN: r13736
1997-03-18 13:10:44 -08:00
Ian Lance Taylor
f75487ff65 Update REG_EQUIV comment for assign_parms change
From-SVN: r13735
1997-03-18 20:00:38 +00:00
Ian Lance Taylor
38b610ed8e Add a REG_EQUIV note when a register parameter has a stack location
From-SVN: r13734
1997-03-18 20:00:01 +00:00
Doug Evans
63d93f7c1c Initial revision
From-SVN: r13733
1997-03-18 19:30:43 +00:00
Doug Evans
2d5ff2a7ce (LIB_SPEC): -lprof1 requires -lpdf for OSF4.
From-SVN: r13732
1997-03-18 19:30:01 +00:00
Jeff Law
2b3600acb4 m68k.c (m68k_last_compare_had_fp_operands): New variable.
* m68k/m68k.c (m68k_last_compare_had_fp_operands): New variable.
        * m68k/m68k.h (m68k_last_compare_had_fp_operands): Declare it.
        * m68k/m68k.md (tst*, cmp*): Turn all of these into
        define_expand/define_insn pairs.  Keep track of whether or not
        the test/compare has fp operands.
        (seq, sne, sgt, slt, sge, sle): Turn these into
        define_expand/define_insn pairs.  Make the expanders FAIL if
        TARGET_68060 and the last comparison/test had fp operands.

From-SVN: r13731
1997-03-18 11:38:59 -07:00
Richard Earnshaw
f57b1ad380 (movhi): Handle generation of large constants during
and after reload.

From-SVN: r13730
1997-03-18 09:28:41 +00:00
Richard Kenner
2033a41a96 (RETURN_POPS_ARGS): Make sure FUDECL is non-nil before we try to use it.
From-SVN: r13729
1997-03-17 17:30:17 -05:00
Richard Kenner
a6096a27f6 (beq0_di, bne0_di, bge0_di, blt0_di): Use cmpw #0 instead of tstl when
testing address registers on the 68000.

From-SVN: r13728
1997-03-17 17:21:25 -05:00
Richard Kenner
0b364e61d3 (layout_record...
(layout_record, PCC_BITFIELD_TYPE_MATTERS): Only add padding if a bit
field would otherwise span more units of alignment than its base type.

From-SVN: r13727
1997-03-17 17:13:37 -05:00
Richard Kenner
7c4033ff87 (parse_number): Invalid integer constants are errors if pedantic.
(cpp_lex): Invalid multibyte characters are errors if pedantic.
(cpp_parse_escape): Character constants that do not fit are errors if pedantic.

From-SVN: r13726
1997-03-17 17:08:27 -05:00
Richard Kenner
1a4a238db9 (parse_number): Invalid integer constants are errors if pedantic.
(yylex): Invalid multibyte characters are errors if pedantic.

From-SVN: r13725
1997-03-17 17:07:46 -05:00
Richard Kenner
e82673c4a8 Fix prologues/epilogues to deal with the lack of predecrement/postincrement...
Fix prologues/epilogues to deal with the lack of
predecrement/postincrement addressing modes in the coldfire moveml
instruction.

From-SVN: r13724
1997-03-17 17:03:45 -05:00
Richard Kenner
14499ba4f3 (__objc_block_return): Remove function.
(__objc_word_return, __objc_double_return): Remove functions.
(__objc_get_forward_imp): New function.
(__objc_init_dispatch_tables): Install zero instead of
__objc_init_install_dtable.
(__objc_init_install_dtable): No longer call the method but
allow objc_msg_lookup return it for normal execution.
(obj_msg_lookup): Differentiate between when a method isn't
implemented and when the dispatch table needs to be installed.
Return the IMP when the dispatch table is installed versus
having __objc_init_install_dtable call it.
(get_imp): Install dispatch table if needed and return IMP
from the newly installed dispatch table.
(__objc_responds_to): Install dispatch table if needed before
checking if method is implemented.

From-SVN: r13723
1997-03-17 17:00:10 -05:00
Richard Kenner
0fd1796807 (build_{index,range}_type): Ensure expressions for min and max value
are in same obstack as type.

From-SVN: r13722
1997-03-17 16:29:33 -05:00
Richard Kenner
d5afd1d10b [#if VMS] (O_RDONLY, O_WRONLY): Delete (redundant).
(BSTRING): Delete (obsolete; usage occurs prior to definition).
(do_include): Handle old VAX C style includes better.

From-SVN: r13721
1997-03-17 15:44:06 -05:00
Richard Kenner
ae9cb2081c (expr_no_commas): Do not store temporary skip_evaluation increments on yacc value stack...
(expr_no_commas): Do not store temporary skip_evaluation increments on
yacc value stack; the code was buggy and occasionally wrote past the
end of the stack.

From-SVN: r13720
1997-03-17 13:46:42 -05:00
Richard Kenner
289d1b21a8 (INCLUDE_DEFAULTS): Define to something useful when cross-compiling.
From-SVN: r13719
1997-03-17 07:08:47 -05:00
Richard Kenner
dc500fa115 (expand_expr, case PLACEHOLDER_EXPR): Refine which object is picked.
From-SVN: r13718
1997-03-16 19:54:36 -05:00
Jeff Law
ab16257805 loop.c (strength_reduce): Adjust BENEFIT appropriately if an autoincrement memory reference will...
* loop.c (strength_reduce): Adjust BENEFIT appropriately if an
        autoincrement memory reference will eliminate add insns.

From-SVN: r13717
1997-03-16 15:50:56 -07:00
Richard Kenner
c8163b58ed Correct include path.
From-SVN: r13716
1997-03-16 08:41:08 -05:00
Richard Kenner
8235e418bc (__objc_block_return): New function.
(__objc_word_return, __objc_double_return): New functions.
(__objc_init_install_dtable): Call appropriate return function
based upon method type.

From-SVN: r13715
1997-03-16 08:40:47 -05:00
Richard Kenner
74775c7ae2 (untyped_call): Re-enable code.
From-SVN: r13714
1997-03-16 08:40:23 -05:00
Richard Kenner
12d94bff7e (objc_module): Eliminate statics variable.
From-SVN: r13713
1997-03-15 07:57:55 -05:00
Richard Kenner
d3d71914cb (OBJC_O): Add linking.m.
From-SVN: r13712
1997-03-15 07:57:36 -05:00
Richard Kenner
7084b319a3 (class_add_method_list): Check for the +load method when adding a methods list to a class.
(class_add_method_list): Check for the +load method when adding a
methods list to a class.
(__objc_install_methods_in_dtable): New function.
(class_add_method_list): Don't check anymore for duplicate methods.

From-SVN: r13711
1997-03-15 07:57:06 -05:00
Richard Kenner
e29e95701b Initial revision
From-SVN: r13710
1997-03-15 07:56:24 -05:00
Richard Kenner
f0a5229172 (OBJC_VERSION): Increment version.
(objc_send_load, __objc_send_load): New functions.
(__objc_send_message_in_list): New function.
(__objc_force_linking): New function.
(__objc_exec_class): Don't call _objc_load_callback here.
(__objc_exec_class): Access statics from their new place in the defs variable.

From-SVN: r13709
1997-03-15 07:56:13 -05:00
Richard Kenner
e335b3ee7e (OBJC_VERSION): Increment version as recent changes have made old compiled code incompatible with current ObjC runtime.
(OBJC_VERSION): Increment version as recent changes have made old
compiled code incompatible with current ObjC runtime.
(build_objc_symtab_template): Make sure defs in objc_symtab is a NULL
terminated array.
(init_def_list): Attach statics to end of def list.
(init_objc_symtab): Take statics list into account.
(init_module_descriptor, build_module_descriptor): Don't add statics.
(generate_static_references): Indicate that statics are used.
(finish_objc): Process statics in the beginning.

From-SVN: r13708
1997-03-15 07:53:30 -05:00
Richard Kenner
7dee9e6a71 (reload.o): Added expr.h to dependencies list.
From-SVN: r13707
1997-03-15 07:29:05 -05:00
Richard Kenner
55c225655f Include expr.h.
(find_reloads_address, find_reloads_address_1): New argument INSN.
(find_reloads_address_1): Reload inside of p{re,ost}_{in,de}c
instead of entire p{re,ost}_{in,de}c where appropriate.

From-SVN: r13706
1997-03-15 07:28:39 -05:00