Doug Evans [Wed, 15 Mar 1995 23:44:51 +0000 (23:44 +0000)]
libgcc1-test.c: Renamed from cross-test.c.
* libgcc1-test.c: Renamed from cross-test.c.
* Makefile.in (LIBGCC1_TEST): Renamed from CROSS_TEST.
(all.cross): Delete $(ENQUIRE) dependency.
(libgcc1-test): Renamed from cross-test.
Delete unnecessary gcc-cross and $(LIBGCC) dependencies.
Link with -nostartfiles -nostdlib
`$(GCC_FOR_TARGET) --print-libgcc-file-name`.
(libgcc1-test.o): Renamed from cross-test.o.
Change gcc-cross dependency to xgcc since the latter is used.
Brendan Kehoe [Mon, 13 Mar 1995 02:04:52 +0000 (02:04 +0000)]
parse.y: New rules to allow attributes in a prefix position.
* parse.y: New rules to allow attributes in a prefix position.
(prefix_attributes): New variable. Pass it into cplus_decl_attributes.
(setattr): New rule.
(reserved_declspecs, declmods): Catch attributes here.
* decl2.c (cplus_decl_attributes): Add PREFIX_ATTRIBUTES argument.
* decl.c (duplicate_decls): Pass DECL_MACHINE_ATTRIBUTES to
descendent typedef.
(grokdeclarator): Added code to support machine attributes.
* Makefile.in (stamp-parse): Expect 5 shift/reduce failures.
Jim Wilson [Fri, 10 Mar 1995 20:03:20 +0000 (12:03 -0800)]
(max_uid_cuid): New static variable.
(INSN_CUID): Call abort if INSN is out of range.
(combine_instructions): Set max_uid_cuid. Set uid_cuid directly
instead of through INSN_CUID.
(get_last_value): Use prev_real_insn instead of prev_nonnote_insn.
Ignore USE insns generated by combine.
Richard Kenner [Fri, 10 Mar 1995 10:58:28 +0000 (05:58 -0500)]
(sectname): Reverse Init and Normal.
(print_operand_address, case PLUS): Add case for LABEL_REF.
(print_operand_address, case LABEL_REF): Split fom SYMBOL_REF.
(print_operand_address, case CODE_LABEL): New case.
(ASM_FILE_END): Delete.
Richard Kenner [Fri, 10 Mar 1995 10:50:02 +0000 (05:50 -0500)]
(FUNCTION_EPILOGUE): Restore stack before freeing local vars.
(DEFAULT_SIGNED_CHAR): Now 1.
(DATA_SECTION_ASM_OP): Use pseudo-op for read-only data (later copied).
(JUMP_TABLES_IN_TEXT_SECTION): Define.
(ASM_OUTPUT_ASCII): Split into multiple lines if long.
(ASM_OUTPUT_{CHAR,SHORT,INT,LONG_INT}): Split up.
(ASM_OUTPUT_COMMON): Call check_section.
Richard Kenner [Fri, 10 Mar 1995 02:33:33 +0000 (21:33 -0500)]
(fndef, nested_function): Pass prefix_attributes to start_function.
(setspecs): Save prefix_attributes in declspec_stack.
(decl rules): Restore prefix_attributes along with current_declspecs.
(setattrs): Concatenate prefix_attributes to previous value.
Doug Evans [Tue, 7 Mar 1995 17:16:54 +0000 (17:16 +0000)]
(TARGET_VERSION): Define.
(CPP_PREDEFINES): Delete sun, sparc, unix. Delete OS assertions.
(ASM_SPEC): Define.
(LINK_SPEC): Delete solaris stuff, this is an embedded target.
(STARTFILE_SPEC, ENDFILE_SPEC): Define.
Doug Evans [Sun, 5 Mar 1995 23:27:16 +0000 (23:27 +0000)]
Undo this patch, breaks libobjc builds.
* c-decl.c (pushdecl): When have a duplicate decl, and it is global,
delete lookup_name name in test for return.
(redeclaration_error_message): When newdecl is a block level
declaration, use lookup_name_current_level instead of DECL_CONTEXT.
Richard Kenner [Wed, 1 Mar 1995 11:48:17 +0000 (06:48 -0500)]
(decode_field_reference): Don't check TREE_CODE of EXP; let get_inner_reference decide if have reference.
(decode_field_reference): Don't check TREE_CODE of EXP; let
get_inner_reference decide if have reference.
Allow no bit reference if have AND_MASK.
(all_ones_mask_p): Use tree_int_cst_equal, not operand_equal_p.
(unextend): New function.
(fold_truthop): For constant cases, use new function, rework
conversion, and warn if comparison can never be true.
Per Bothner [Tue, 28 Feb 1995 23:06:03 +0000 (15:06 -0800)]
function.c (lookup_static_chain): Check for a static chain using FUNCTION_NEEDS_STATIC_CHAIN.
* function.c (lookup_static_chain): Check for a static chain
using FUNCTION_NEEDS_STATIC_CHAIN.
(init_function_start): Set current_function_needs_context depending
on FUNCTION_NEEDS_STATIC_CHAIN rather than decl_function_context.
Per Bothner [Tue, 28 Feb 1995 23:05:01 +0000 (15:05 -0800)]
expr.c (expand_expr): If non-local variable is expanded...
* expr.c (expand_expr): If non-local variable is expanded,
set FUNCTION_NEEDS_STATIC_CHAIN (current_function_decl).
* expr.c (expand_expr case ADDR_EXPR): Check for trampoline
using FUNCTION_NEEDS_STATIC_CHAIN, instead of decl_function_context.