Per Bothner [Mon, 11 Apr 1994 21:26:48 +0000 (14:26 -0700)]
Fix line number counting.
From-SVN: r7036
Jim Wilson [Mon, 11 Apr 1994 17:48:47 +0000 (10:48 -0700)]
(try_merge_delay_insns): Account for resources set/used by a filled insn before...
(try_merge_delay_insns): Account for resources set/used
by a filled insn before trying to simplify insns in delay slots.
From-SVN: r7035
Jim Wilson [Mon, 11 Apr 1994 17:45:48 +0000 (10:45 -0700)]
(OLDCC): Change -XNh1500 to -XNh2000.
From-SVN: r7034
Jim Wilson [Mon, 11 Apr 1994 17:42:41 +0000 (10:42 -0700)]
(finish_decl): Don't preserve initializer if it is error_mark_node.
From-SVN: r7033
Jim Wilson [Mon, 11 Apr 1994 17:38:25 +0000 (10:38 -0700)]
(try_merge_delay_insns): Move next_trial update
immediately after the try_split call.
From-SVN: r7032
Jim Wilson [Mon, 11 Apr 1994 17:36:16 +0000 (10:36 -0700)]
(mips_select_rtx_section, mips_select_section): New functions.
(mips_select_rtx_section, mips_select_section): New
functions. Prefer rdata when TARGET_EMBEDDED_DATA, and prefer
sdata otherwise.
From-SVN: r7031
Jim Wilson [Mon, 11 Apr 1994 17:35:46 +0000 (10:35 -0700)]
(MASK_EMBEDDED_DATA, TARGET_EMBEDDED_DATA): New macros.
(TARGET_SWITCHED): Add new option -membedded-data.
(SELECT_RTX_SECTION, SELECT_SECTION): Call function in mips.c.
From-SVN: r7030
Jim Wilson [Mon, 11 Apr 1994 17:29:33 +0000 (10:29 -0700)]
(all.cross, rest.encap): Delete objc-runtime and SYSCALLS.c.X.
(all.cross, rest.encap): Delete objc-runtime and
SYSCALLS.c.X.
(OBJC, OBJECTIVE-C): Add objc-runtime.
(proto): Add SYSCALLS.c.X.
(libgcc2.ready, libobjc.a, sublibobjc.a, SYSCALLS.c.X): Add
dependence on stmp-int-hdrs.
From-SVN: r7029
Jim Wilson [Mon, 11 Apr 1994 17:27:17 +0000 (10:27 -0700)]
(rescan): Don't look for C++ // comment before directive.
Handle \-newline inside a C++ // comment.
(skip_if_group): Likewise.
(handle_directive): Also handle C++ // comment after #. Point
ip->bufp after the comment start before calling
skip_to_end_of_comment.
(validate_else): Handle \-newline inside a C++ // comment.
(skip_to_end_of_comment, macarg1, discard_comments): Likewise.
From-SVN: r7028
Jim Wilson [Mon, 11 Apr 1994 17:22:33 +0000 (10:22 -0700)]
(immed_double_const): Sign-extend constants when they
have the most significant bit set for the target.
From-SVN: r7027
Richard Kenner [Mon, 11 Apr 1994 10:43:58 +0000 (06:43 -0400)]
(expand_call, emit_library_call{,_value}, store_one_arg): Use
convert_modes instead of convert_to_mode.
From-SVN: r7026
Richard Kenner [Mon, 11 Apr 1994 10:20:41 +0000 (06:20 -0400)]
(duplicate_decls, pushdecl, builtin_function): Use DECL_FUNCTION_CODE
instead of DECL_SET_FUNCTION_CODE.
From-SVN: r7025
Richard Kenner [Mon, 11 Apr 1994 10:19:56 +0000 (06:19 -0400)]
(frame_size): Now a union.
(DECL_ALIGN, DECL_FRAME_SIZE, DECL_FUNCTION_CODE): Access proper
field of frame_size union.
(DECL_SET_FUNCTION_CODE): Simplified; retained for compatibility.
From-SVN: r7024
Richard Kenner [Mon, 11 Apr 1994 09:50:10 +0000 (05:50 -0400)]
(update_headers): Do not copy stStatic symbols that result from
internal labels.
From-SVN: r7023
Richard Kenner [Sun, 10 Apr 1994 12:04:35 +0000 (08:04 -0400)]
(expand_shift): No longer reference lshl_optab.
From-SVN: r7022
Richard Kenner [Sun, 10 Apr 1994 12:04:14 +0000 (08:04 -0400)]
No longer reference lsl_optab.
From-SVN: r7021
Richard Kenner [Sun, 10 Apr 1994 12:03:37 +0000 (08:03 -0400)]
No longer handle LSHIFT.
From-SVN: r7020
Richard Kenner [Sun, 10 Apr 1994 12:03:05 +0000 (08:03 -0400)]
(lshl_optab): Deleted.
(expand_binop, init_optabs): No longer reference it.
From-SVN: r7019
Richard Kenner [Sun, 10 Apr 1994 12:00:07 +0000 (08:00 -0400)]
(lshl_optab): Deleted.
From-SVN: r7018
Richard Kenner [Sun, 10 Apr 1994 11:59:43 +0000 (07:59 -0400)]
(LSHIFT): Deleted.
From-SVN: r7017
Richard Kenner [Sun, 10 Apr 1994 11:13:16 +0000 (07:13 -0400)]
Remove references to LSHIFT and lshlsi3.
From-SVN: r7016
Richard Kenner [Sun, 10 Apr 1994 10:57:32 +0000 (06:57 -0400)]
(movdf): Do not consider extended registers when doing define_split.
From-SVN: r7015
Jeff Law [Sun, 10 Apr 1994 08:50:04 +0000 (02:50 -0600)]
pa-ghiux.h (LIB_SPEC): Remove last change until we've got the go ahead from HP to distribute...
* pa-ghiux.h (LIB_SPEC): Remove last change until we've got the
go ahead from HP to distribute /usr/lib/end.o.
* pa-ghpux.h, pa-hiux.h, pa-ghiux.h: Likewise.
From-SVN: r7014
Richard Kenner [Sat, 9 Apr 1994 21:48:23 +0000 (17:48 -0400)]
(rs6000_convert_preincs): New function.
From-SVN: r7013
Richard Kenner [Sat, 9 Apr 1994 21:48:01 +0000 (17:48 -0400)]
(FINAL_PRESCAN_INSN): Define.
From-SVN: r7012
Richard Kenner [Sat, 9 Apr 1994 20:28:47 +0000 (16:28 -0400)]
(mulhi3): Use SImode for MULT RTL.
From-SVN: r7011
Richard Kenner [Sat, 9 Apr 1994 20:05:15 +0000 (16:05 -0400)]
(fold): Avoid exponential work when simplifying conditional
expressions; don't recurse twice if ARG1 is constant.
From-SVN: r7010
Richard Kenner [Sat, 9 Apr 1994 19:06:16 +0000 (15:06 -0400)]
Initial revision
From-SVN: r7009
Richard Kenner [Sat, 9 Apr 1994 19:02:49 +0000 (15:02 -0400)]
Include <mach.h>, not <mach/mach.h> for NeXTStep 2.1.
From-SVN: r7008
Richard Kenner [Sat, 9 Apr 1994 19:01:54 +0000 (15:01 -0400)]
Add ns* as operating systems; default to ns2 for NeXT.
From-SVN: r7007
Richard Kenner [Sat, 9 Apr 1994 14:55:42 +0000 (10:55 -0400)]
(force_to_mode, case ROTATE): Don't assume simplify_binary_operation always returns CONST_INT.
(force_to_mode, case ROTATE): Don't assume simplify_binary_operation always
returns CONST_INT.
(simplify_shift_const, case IOR, PLUS): Likewise.
From-SVN: r7006
Richard Kenner [Sat, 9 Apr 1994 13:47:29 +0000 (09:47 -0400)]
(unitialized_vars_warning, setjmp_args_warning): Reword warning to be
less ambiguous.
From-SVN: r7005
Richard Kenner [Sat, 9 Apr 1994 13:39:42 +0000 (09:39 -0400)]
(convert_arguments): Truncate and reextend for PROMOTE_PROTOTYPES so
we can give error on overflow.
From-SVN: r7004
Richard Kenner [Sat, 9 Apr 1994 13:13:06 +0000 (09:13 -0400)]
(STRUCT_VALUE{,_INCOMING,_REGNUM}): Redefine for calling conventions
of native cc.
From-SVN: r7003
Richard Kenner [Sat, 9 Apr 1994 13:09:59 +0000 (09:09 -0400)]
(reload_conflicts): Rewrite to clean up and fix numerous bugs; move to
later in file.
From-SVN: r7002
Richard Kenner [Sat, 9 Apr 1994 12:25:26 +0000 (08:25 -0400)]
(duplicate_decls): Put new type in same obstack as old ones, or
permanent is old ones in different obstacks.
From-SVN: r7001
Richard Kenner [Fri, 8 Apr 1994 22:35:23 +0000 (18:35 -0400)]
Fix typo in comment of last change.
From-SVN: r7000
Richard Kenner [Fri, 8 Apr 1994 22:18:08 +0000 (18:18 -0400)]
(fold, case GT_EXPR): Simplify X < (1 << Y) into X >> Y == 0.
From-SVN: r6999
Richard Kenner [Fri, 8 Apr 1994 22:08:42 +0000 (18:08 -0400)]
Remove previous Berg change.
From-SVN: r6998
Ian Lance Taylor [Fri, 8 Apr 1994 15:23:06 +0000 (15:23 +0000)]
Add support for -membedded-pic
From-SVN: r6997
Mike Stump [Fri, 8 Apr 1994 06:08:43 +0000 (06:08 +0000)]
31th Cygnus<->FSF merge.
From-SVN: r6996
Jim Wilson [Fri, 8 Apr 1994 02:19:54 +0000 (19:19 -0700)]
(emit_library_call_value): Move is_const set after ifdef.
From-SVN: r6995
Richard Kenner [Thu, 7 Apr 1994 01:33:57 +0000 (21:33 -0400)]
(expand_builtin, case BUILT_IN_NEXT_ARG): Test whether an argunment
has been passed to __builtin_next_arg; warn if not.
From-SVN: r6994
Jim Wilson [Wed, 6 Apr 1994 23:01:45 +0000 (16:01 -0700)]
(discard_comments): Replace comments with a single space.
From-SVN: r6993
Jim Wilson [Wed, 6 Apr 1994 22:52:58 +0000 (15:52 -0700)]
(USER_H): Add $(srcdir)/ before every ginclude use.
From-SVN: r6992
Jim Wilson [Wed, 6 Apr 1994 22:50:58 +0000 (15:50 -0700)]
(emit_library_call_value): New variable is_const.
(emit_library_call_value): New variable is_const. Clear
it for functions that return an aggregate in memory.
From-SVN: r6991
Per Bothner [Wed, 6 Apr 1994 21:25:11 +0000 (14:25 -0700)]
Add -f[no-]vtable-thunks (for C++).
From-SVN: r6990
Jim Wilson [Wed, 6 Apr 1994 19:35:10 +0000 (12:35 -0700)]
(finish_decl): Correct typo in use of tree_int_cst_sgn.
From-SVN: r6989
Richard Kenner [Wed, 6 Apr 1994 12:46:56 +0000 (08:46 -0400)]
Add define_split to simplify "(unsigned) x > 0xffffff".
From-SVN: r6988
Richard Kenner [Wed, 6 Apr 1994 11:51:24 +0000 (07:51 -0400)]
Add ... to set current_function_varargs.
From-SVN: r6987
Richard Kenner [Wed, 6 Apr 1994 11:50:07 +0000 (07:50 -0400)]
(function_cannot_inline_p): Use current_function_varargs.
From-SVN: r6986
Richard Kenner [Wed, 6 Apr 1994 11:49:37 +0000 (07:49 -0400)]
(struct function): New field for current_function_varargs.
From-SVN: r6985
Richard Kenner [Wed, 6 Apr 1994 11:48:06 +0000 (07:48 -0400)]
(expand_builtin): Allow builtin_next_arg for varargs functions as
well.
From-SVN: r6984
Richard Kenner [Wed, 6 Apr 1994 11:47:24 +0000 (07:47 -0400)]
(push_function_context): Use current_function_varargs.
(pop_function_context): Likewise.
(assign_parms): Respect current_function_varargs.
Save args_so_far in any case.
From-SVN: r6983
Richard Kenner [Wed, 6 Apr 1994 11:39:36 +0000 (07:39 -0400)]
(lang_options): Group and alphabetize some options.
From-SVN: r6982
Richard Kenner [Wed, 6 Apr 1994 11:31:44 +0000 (07:31 -0400)]
(warn_missing_declarations): New variable.
(c_decode_option): -Wmissing-declarations.
(start_function): Actually do the checking.
From-SVN: r6981
Richard Kenner [Wed, 6 Apr 1994 11:31:08 +0000 (07:31 -0400)]
(lang_options): Add -Wmissing-declarations.
From-SVN: r6980
Richard Kenner [Wed, 6 Apr 1994 11:21:12 +0000 (07:21 -0400)]
(expand_function_start): Delay copying static chain.
From-SVN: r6979
Richard Kenner [Wed, 6 Apr 1994 11:14:17 +0000 (07:14 -0400)]
(emit_library_call): Move the invocation of prepare_call_address before the assignments of the function arguments.
(emit_library_call): Move the invocation of prepare_call_address before the
assignments of the function arguments.
(emit_library_call_value): Likewise.
From-SVN: r6978
Richard Kenner [Wed, 6 Apr 1994 11:09:32 +0000 (07:09 -0400)]
(mark_target_live_regs): Avoid #ifdef HARD_REG_SET.
From-SVN: r6977
Richard Kenner [Wed, 6 Apr 1994 11:08:16 +0000 (07:08 -0400)]
(block_alloc): Avoid #ifdef HARD_REG_SET.
From-SVN: r6976
Richard Kenner [Wed, 6 Apr 1994 11:07:48 +0000 (07:07 -0400)]
(global_conflicts): Avoid #ifdef HARD_REG_SET.
From-SVN: r6975
Richard Kenner [Wed, 6 Apr 1994 11:07:02 +0000 (07:07 -0400)]
Avoid #ifdef HARD_REG_SET.
From-SVN: r6974
Richard Kenner [Wed, 6 Apr 1994 11:03:07 +0000 (07:03 -0400)]
(DEBUG_PRINT_REG): Fix printing of coprocessor regs in QImode.
From-SVN: r6973
Richard Kenner [Wed, 6 Apr 1994 10:51:28 +0000 (06:51 -0400)]
Round to multiple of sizeof(short) on sysV68.
From-SVN: r6972
Richard Kenner [Wed, 6 Apr 1994 10:42:38 +0000 (06:42 -0400)]
(update_headers): Copy stStatic symbols from the old local symbol table to the...
(update_headers): Copy stStatic symbols from the old local symbol
table to the new local symbol table if they did not get added via
debugging psuedo ops.
From-SVN: r6971
Richard Kenner [Wed, 6 Apr 1994 10:35:56 +0000 (06:35 -0400)]
(output_function_prologue): pea/move: Fix typos.
asm_fprintf("add%.[wl] ...): Undo previous change.
From-SVN: r6970
Doug Evans [Wed, 6 Apr 1994 00:07:56 +0000 (00:07 +0000)]
(process_command): Minor white space cleanups to last patch.
From-SVN: r6969
Doug Evans [Wed, 6 Apr 1994 00:04:56 +0000 (00:04 +0000)]
(process_command): Add "include" prefix for [blah/]stageN.
From-SVN: r6968
Jeff Law [Tue, 5 Apr 1994 05:21:29 +0000 (23:21 -0600)]
pa-ghiux.h (LIB_SPEC): Link in /usr/lib/end.o
* pa-ghiux.h (LIB_SPEC): Link in /usr/lib/end.o
* pa-ghpux.h, pa-hiux.h, pa-hpux.h (LIB_SPEC): Likewise.
From-SVN: r6967
Jim Wilson [Mon, 4 Apr 1994 21:39:19 +0000 (14:39 -0700)]
(sdbout_begin_block): Don't output block for function level scope unless MIPS_DEBUGGING_INFO is defined.
(sdbout_begin_block): Don't output block for function
level scope unless MIPS_DEBUGGING_INFO is defined.
(sdbout_end_block): Likewise. Add new parameter n for the block
number.
From-SVN: r6966
Jim Wilson [Mon, 4 Apr 1994 21:38:54 +0000 (14:38 -0700)]
(final_scan_insn): Pass new arg, block num, to sdbout_end_block.
From-SVN: r6965
Jim Wilson [Mon, 4 Apr 1994 21:36:19 +0000 (14:36 -0700)]
(expand_call): If PCC_STATIC_STRUCT_RETURN defined, mark
function as addressable same time as we clear is_integrable.
From-SVN: r6964
Jason Merrill [Mon, 4 Apr 1994 21:21:02 +0000 (21:21 +0000)]
scan-types.sh: Use __WCHAR_TYPE__, __PTRDIFF_TYPE__, and __SIZE_TYPE__.
* scan-types.sh: Use __WCHAR_TYPE__, __PTRDIFF_TYPE__, and
__SIZE_TYPE__. Still deduce size_t so that it can be used for
ssize_t if necessary.
From-SVN: r6963
Jason Merrill [Mon, 4 Apr 1994 21:21:02 +0000 (21:21 +0000)]
* gstddef.h (wchar_t): Always define as __WCHAR_TYPE__.
From-SVN: r6962
Jason Merrill [Mon, 4 Apr 1994 21:21:02 +0000 (21:21 +0000)]
Undefine __*_TYPE when preprocessing fixtmp.c
From-SVN: r6961
Jason Merrill [Mon, 4 Apr 1994 21:21:02 +0000 (21:21 +0000)]
fixincludes: Fix ptrdiff_t and wchar_t in system headers like we do size_t.
* fixincludes: Fix ptrdiff_t and wchar_t in system headers like we
do size_t.
From-SVN: r6960
Jason Merrill [Mon, 4 Apr 1994 21:21:02 +0000 (21:21 +0000)]
cccp.c (special_symbol, [...]): Output "__wchar_t" for C++.
* cccp.c (special_symbol, case T_WCHAR_TYPE): Output "__wchar_t"
for C++.
From-SVN: r6959
Michael Meissner [Sat, 2 Apr 1994 13:15:24 +0000 (13:15 +0000)]
Correct -fpic ELF -pg code
From-SVN: r6958
Jason Merrill [Fri, 1 Apr 1994 22:36:00 +0000 (22:36 +0000)]
Add missing fns to required list for string.h
From-SVN: r6957
Jim Wilson [Fri, 1 Apr 1994 17:06:56 +0000 (09:06 -0800)]
Modify all uses of __attribute__ mode to use new syntax.
From-SVN: r6956
Jim Wilson [Fri, 1 Apr 1994 06:19:45 +0000 (22:19 -0800)]
(USER_H): Files in ginclude now. Add stdarg.h,
stddef.h, varargs.h.
(all.cross, rest.encap): Move LIBGCC after stmp-headers. Add
objc-runtime, and SYSCALLS.c.X.
(for-bootstrap): Delete.
(OBJC, OBJECTIVE-C): Delete objc-runtime.
(proto): Delete SYSCALLS.c.X.
(*.o): Delete gvarargs.h dependencies.
(stmp-int-hdrs): Delete gvarargs.h, gstdarg.h, gstddef.h deps, and
code to copy them.
From-SVN: r6955
Jeff Law [Fri, 1 Apr 1994 06:09:25 +0000 (23:09 -0700)]
pa.h (ASM_OUTPUT_LABEL): TARGET_GAS no longer needs trailing colons.
* pa.h (ASM_OUTPUT_LABEL): TARGET_GAS no longer needs trailing colons.
(ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_COMMON): Likewise.
* pa.h (TARGET_PORTABLE_RUNTIME): Define.
(TARGET_SWITCHES): Add -mportable-runtime and -mno-portable-runtime.
(CUMULATIVE_ARGS): Now a "struct hppa_args" rathern than an int.
All references changed.
(INIT_CUMULATIVE_ARGS): Also initialize nargs_prototype.
(INIT_CUMULATIVE_INCOMING_ARGS): Define.
(FUNCTION_ARG_ADVANCE): Decrement nargs_prototype for each arg seen.
(FUNCTION_ARG): Handle TARGET_PORTABLE_RUNTIME.
(ASM_DECLARE_FUNCTION_NAME): Explicitly disallow argument relocations
for TARGET_PORTABLE_RUNTIME.
(ASM_OUTPUT_INT): Do not use a P% prefix for function references
if TARGET_PORTABLE_RUNTIME.
* pa.md (high and lo_sum for function addresses): Provide alternate
definitions for TARGET_PORTABLE_RUNTIME.
* pa.c (output_arg_descriptor): Explicitly disallow argument
relocations for TARGET_PORTABLE_RUNTIME.
From-SVN: r6954
Jim Wilson [Fri, 1 Apr 1994 05:59:59 +0000 (21:59 -0800)]
Modify comments that refer to gvarargs.h and gstddef.h.
From-SVN: r6953
Jim Wilson [Fri, 1 Apr 1994 05:58:23 +0000 (21:58 -0800)]
Modify comment referring to gvarargs.h.
From-SVN: r6952
Jim Wilson [Fri, 1 Apr 1994 05:56:20 +0000 (21:56 -0800)]
(libgcc2.a, stdarg.h): Delete rules.
From-SVN: r6951
Jim Wilson [Fri, 1 Apr 1994 05:54:43 +0000 (21:54 -0800)]
(CPP_PREDEFINES): Update GCC_NEW_VARARGS comment.
From-SVN: r6950
Jim Wilson [Fri, 1 Apr 1994 05:52:18 +0000 (21:52 -0800)]
(pcfinclude): Modify comment referring to gstddef.h.
From-SVN: r6949
Jim Wilson [Fri, 1 Apr 1994 05:50:23 +0000 (21:50 -0800)]
Delete use of IN_GCC to control stddef.h/gstddef.h include.
From-SVN: r6948
Jim Wilson [Fri, 1 Apr 1994 05:45:49 +0000 (21:45 -0800)]
Change "gstddef.h" to <stddef.h>.
From-SVN: r6947
Jim Wilson [Fri, 1 Apr 1994 05:44:11 +0000 (21:44 -0800)]
Change "gstddef.h" to <stddef.h>. Change "gstdarg.h" to <stdarg.h>.
From-SVN: r6946
Jim Wilson [Fri, 1 Apr 1994 05:33:24 +0000 (21:33 -0800)]
Change "gstddef.h" to <stddef.h>. Change "gstdarg.h" to <stdarg.h>.
From-SVN: r6945
Jim Wilson [Fri, 1 Apr 1994 05:31:21 +0000 (21:31 -0800)]
Change "gstdarg.h" to <stdarg.h>.
From-SVN: r6944
Jim Wilson [Fri, 1 Apr 1994 05:28:27 +0000 (21:28 -0800)]
Change "gstddef.h" to <stddef.h>.
From-SVN: r6943
Jim Wilson [Fri, 1 Apr 1994 05:25:31 +0000 (21:25 -0800)]
Change "gstdarg.h" to <stdarg.h> and "gvarargs.h" to <varargs.h>.
From-SVN: r6942
Jim Wilson [Fri, 1 Apr 1994 05:23:12 +0000 (21:23 -0800)]
Change "gstddef.h" to <stddef.h>.
From-SVN: r6941
Jim Wilson [Fri, 1 Apr 1994 05:17:26 +0000 (21:17 -0800)]
Change <gvarargs.h> to <varargs.h>.
From-SVN: r6940
Jim Wilson [Fri, 1 Apr 1994 03:01:00 +0000 (19:01 -0800)]
(SPARC_STACK_ALIGN): Use ~7 not 0xfffffff8 for portability.
From-SVN: r6939
Jim Wilson [Fri, 1 Apr 1994 02:58:11 +0000 (18:58 -0800)]
(DBX_OUTPUT_MAIN_SOURCE_FILENAME): Disable.
From-SVN: r6938
Jim Wilson [Fri, 1 Apr 1994 02:56:15 +0000 (18:56 -0800)]
(INIT_SECTION_ASM_OP): Don't set the alloc flag.
({CTORS,DTORS}_SECTION_ASM_OP): Set execinstr flag.
From-SVN: r6937