Ian Lance Taylor [Wed, 12 Oct 1994 15:31:29 +0000 (15:31 +0000)]
Allocate attr_value_list with xmalloc rather than alloca
From-SVN: r8261
Richard Kenner [Wed, 12 Oct 1994 13:17:28 +0000 (09:17 -0400)]
(??hf2_libfunc): Add declarations, like ??sf2_libfunc.
From-SVN: r8260
Richard Kenner [Wed, 12 Oct 1994 13:17:02 +0000 (09:17 -0400)]
(??hf2_libfunc): Define like ??sf2_libfunc.
(emit_float_lib_cmp): Call HFmode library functions.
(init_optabs): Set names for HFmode comparison functions.
From-SVN: r8259
Richard Kenner [Tue, 11 Oct 1994 23:20:43 +0000 (19:20 -0400)]
Remove -g from CFLAGS.
Reflect changes to t-winnt and other minor changes.
From-SVN: r8258
Richard Kenner [Tue, 11 Oct 1994 23:18:32 +0000 (19:18 -0400)]
(main): Pass -debug:full -debugtype:coff.
From-SVN: r8257
Richard Kenner [Tue, 11 Oct 1994 22:40:32 +0000 (18:40 -0400)]
(ASM_DECLARE_FUNCTION_NAME): Always put out .lglobl for static
functions.
From-SVN: r8256
Jason Merrill [Tue, 11 Oct 1994 18:43:39 +0000 (18:43 +0000)]
(type_unification): If not passing to a reference, strip cv-quals.
(type_unification): If not passing to a reference, strip
cv-quals. Also handle array->pointer conversion.
From-SVN: r8255
Jason Merrill [Tue, 11 Oct 1994 18:39:14 +0000 (18:39 +0000)]
(build_overload_call_real): Don't immediately do
array->pointer conversion.
From-SVN: r8254
Jason Merrill [Tue, 11 Oct 1994 18:39:14 +0000 (18:39 +0000)]
(do_build_copy_constructor): Handle anonymous unions.
(do_build_assign_ref): Ditto.
(largest_union_member): Move from lex.c.
From-SVN: r8253
Jason Merrill [Tue, 11 Oct 1994 18:39:14 +0000 (18:39 +0000)]
(resolve_offset_ref): Fix types used in resolving .*
expressions.
From-SVN: r8252
Jason Merrill [Tue, 11 Oct 1994 18:39:14 +0000 (18:39 +0000)]
(cons_up_default_function): Mark methods in a template class as template instances.
(cons_up_default_function): Mark methods in a template class
as template instances. Store the values of interface_unknown and
interface_only for do_pending_inlines.
(do_pending_inlines): Use them.
From-SVN: r8251
Jason Merrill [Tue, 11 Oct 1994 18:39:14 +0000 (18:39 +0000)]
(grokdeclarator): Don't warn about applying const to a const typedef or template type parameter.
(grokdeclarator): Don't warn about applying const to a
const typedef or template type parameter.
(shadow_tag): Remove obsolete code for pushing tags and
dealing with exceptions.
From-SVN: r8250
Jason Merrill [Tue, 11 Oct 1994 18:39:14 +0000 (18:39 +0000)]
Changes moved over
From-SVN: r8249
Richard Kenner [Mon, 10 Oct 1994 23:19:32 +0000 (19:19 -0400)]
(convert_move): Add TImode conversions.
From-SVN: r8248
Richard Kenner [Mon, 10 Oct 1994 22:46:30 +0000 (18:46 -0400)]
(expand_float): Copy TEMP to TARGET when making recursive call and
adjusting.
From-SVN: r8247
Michael Meissner [Mon, 10 Oct 1994 14:09:56 +0000 (14:09 +0000)]
Use DEFAULT_PCC_STRUCT_RETURN instead of RETURN_IN_MEMORY; include perform.h
From-SVN: r8246
Michael Meissner [Sun, 9 Oct 1994 18:48:38 +0000 (18:48 +0000)]
Make sure movsf_mem does not clobber a destination register
From-SVN: r8245
Richard Earnshaw [Sun, 9 Oct 1994 16:39:43 +0000 (16:39 +0000)]
(reload_outdf): Don't emit an add insn if the address is just a register.
From-SVN: r8244
Doug Evans [Sat, 8 Oct 1994 15:16:09 +0000 (15:16 +0000)]
archive.c (__objc_free): New function.
* objc/archive.c (__objc_free): New function.
(__objc_finish_read_root_object): Use it.
From-SVN: r8243
Doug Evans [Fri, 7 Oct 1994 23:27:46 +0000 (23:27 +0000)]
Netware uses _SIZE_T_DEFINED_, _WCHAR_T_DEFINED_.
From-SVN: r8242
Richard Kenner [Fri, 7 Oct 1994 23:15:50 +0000 (19:15 -0400)]
(CPP_PREDEFINES): Define __HURD__.
From-SVN: r8241
Richard Kenner [Fri, 7 Oct 1994 23:10:25 +0000 (19:10 -0400)]
(HAVE_STRERROR): Define.
From-SVN: r8240
Richard Kenner [Fri, 7 Oct 1994 23:09:12 +0000 (19:09 -0400)]
(my_strerror): If HAVE_STRERROR defined, call strerror.
From-SVN: r8239
Richard Kenner [Fri, 7 Oct 1994 20:13:58 +0000 (16:13 -0400)]
(preserve_temp_slots): If X cannot be a temp slot, preserve all things
whose address was taken at the present level.
From-SVN: r8238
Michael Meissner [Fri, 7 Oct 1994 19:45:00 +0000 (19:45 +0000)]
Do not allow SUBREGs as either base or index register.
From-SVN: r8237
Richard Kenner [Fri, 7 Oct 1994 12:36:00 +0000 (08:36 -0400)]
Fix typo in last change.
From-SVN: r8236
Richard Kenner [Fri, 7 Oct 1994 12:28:44 +0000 (08:28 -0400)]
(assign_stack_temp): Abort if SIZE == -1.
From-SVN: r8235
Richard Kenner [Fri, 7 Oct 1994 12:26:47 +0000 (08:26 -0400)]
(safe_from_p): If EXP has a variable size, assume safe.
(preexpand_calls): Don't preexpand a call that returns a variable-sized object.
From-SVN: r8234
Richard Kenner [Fri, 7 Oct 1994 12:24:36 +0000 (08:24 -0400)]
(add_insn_{after,before}): Fix error in last change.
From-SVN: r8233
Per Bothner [Fri, 7 Oct 1994 01:03:20 +0000 (18:03 -0700)]
Patch to handle old Convex systems (without uname).
From-SVN: r8232
Richard Kenner [Thu, 6 Oct 1994 21:38:35 +0000 (17:38 -0400)]
(cse_insn): Don't call force_const_mem on (const (truncate)).
From-SVN: r8231
Kresten Krab Thorup [Thu, 6 Oct 1994 16:24:03 +0000 (16:24 +0000)]
(BOOL): Changed from char to unsigned char.
From-SVN: r8230
Kresten Krab Thorup [Thu, 6 Oct 1994 16:17:38 +0000 (16:17 +0000)]
Delay eeing when unarchiving.
From-SVN: r8229
Stan Cox [Thu, 6 Oct 1994 15:13:26 +0000 (15:13 +0000)]
If operand1 is an invalid PIC address, then legitimize it before doing anything else.
From-SVN: r8228
Richard Kenner [Thu, 6 Oct 1994 11:25:21 +0000 (07:25 -0400)]
(store_expr): Don't clobber TEMP with address.
From-SVN: r8227
Richard Kenner [Thu, 6 Oct 1994 10:57:08 +0000 (06:57 -0400)]
(try_merge_delay_insns): Update THREAD if it is split.
From-SVN: r8226
Richard Kenner [Thu, 6 Oct 1994 10:53:40 +0000 (06:53 -0400)]
(expand_expr, case ADDR_EXPR): Call mark_temp_addr_taken.
From-SVN: r8225
Richard Kenner [Thu, 6 Oct 1994 10:52:10 +0000 (06:52 -0400)]
(struct temp_slot): New field addr_taken.
(assign_stack_temp): Initialize it.
(mark_temp_addr_taken): New function.
(preserve_temp_slots): Decrement level of things at same level but whose
address has been taken.
From-SVN: r8224
Jason Merrill [Wed, 5 Oct 1994 23:08:12 +0000 (23:08 +0000)]
(fold, COMPONENT_REF): Don't die if the CONSTRUCTOR
doesn't initialize the field we want.
From-SVN: r8223
Michael Meissner [Wed, 5 Oct 1994 18:37:55 +0000 (18:37 +0000)]
Supprt LABEL_REFs when using -fpic.
From-SVN: r8222
Richard Kenner [Wed, 5 Oct 1994 10:56:25 +0000 (06:56 -0400)]
(try_merge_delay_insns): Update THREAD if deleting first insn in it.
From-SVN: r8221
Roland McGrath [Wed, 5 Oct 1994 05:39:47 +0000 (05:39 +0000)]
Move #include <fcntl.h> out of here, into xm-gnu.h.
From-SVN: r8220
Roland McGrath [Wed, 5 Oct 1994 05:30:42 +0000 (05:30 +0000)]
Initial revision
From-SVN: r8219
Ian Lance Taylor [Wed, 5 Oct 1994 03:20:19 +0000 (03:20 +0000)]
Include <sys/wait.h> on a POSIX system
From-SVN: r8218
Michael Bushnell [Wed, 5 Oct 1994 01:52:40 +0000 (01:52 +0000)]
Define O_RDONLY if not already defined and use it in read_specs's call
to open.
From-SVN: r8217
Michael Bushnell [Wed, 5 Oct 1994 01:49:05 +0000 (01:49 +0000)]
Include <fcntl.h>.
From-SVN: r8216
Richard Kenner [Wed, 5 Oct 1994 01:42:54 +0000 (21:42 -0400)]
Fix error in last change.
From-SVN: r8215
Richard Kenner [Tue, 4 Oct 1994 23:06:09 +0000 (19:06 -0400)]
(do_jump_for_compare): Properly scan insns when branch is at start of
sequence.
From-SVN: r8214
Ian Lance Taylor [Tue, 4 Oct 1994 20:53:02 +0000 (20:53 +0000)]
If the POSIX.1 wait macros are defined, use them.
From-SVN: r8213
Michael Meissner [Tue, 4 Oct 1994 20:47:05 +0000 (20:47 +0000)]
Fix return complex doubles with -fpic clobbering %ebx
From-SVN: r8212
Jim Wilson [Tue, 4 Oct 1994 19:57:51 +0000 (12:57 -0700)]
(PREFERRED_DEBUGGING_INFO): Add undef before define.
From-SVN: r8211
Richard Stallman [Tue, 4 Oct 1994 09:12:29 +0000 (09:12 +0000)]
Translate -gnu/linux* to -linux*.
From-SVN: r8210
Ian Lance Taylor [Mon, 3 Oct 1994 15:43:16 +0000 (15:43 +0000)]
Add support for MIPS variants
From-SVN: r8209
Roland McGrath [Mon, 3 Oct 1994 05:48:44 +0000 (05:48 +0000)]
Recognize GNU.
From-SVN: r8208
Richard Kenner [Mon, 3 Oct 1994 00:44:08 +0000 (20:44 -0400)]
Complete last change.
From-SVN: r8207
Jason Merrill [Sun, 2 Oct 1994 23:17:08 +0000 (23:17 +0000)]
(save_tree_status): Add argument to indicate that the new function is not a nested function.
(save_tree_status): Add argument to indicate that the new
function is not a nested function.
(restore_tree_status): Ditto.
From-SVN: r8206
Jason Merrill [Sun, 2 Oct 1994 23:16:51 +0000 (23:16 +0000)]
ontext, adds argument to indicate that the new function is not a nested function.
ontext, adds argument to indicate that the new
function is not a nested function.
(push_function_context): Call it.
(pop_function_context{,_from}): Similarly.
From-SVN: r8205
Richard Kenner [Sun, 2 Oct 1994 19:17:43 +0000 (15:17 -0400)]
(subst_stack_regs): Check for NOTE to see if insn was deleted.
From-SVN: r8204
Richard Kenner [Sun, 2 Oct 1994 18:58:47 +0000 (14:58 -0400)]
(fill_slots_from_thread): Update THREAD if deleting its first insn.
From-SVN: r8203
Richard Earnshaw [Sun, 2 Oct 1994 15:11:02 +0000 (15:11 +0000)]
(zero_extendhisi2, extendhisi2): Expand to suitable byte sequence when TARGET_SHORT_BYTES and loading a mem.
(zero_extendhisi2, extendhisi2): Expand to suitable byte sequence when
TARGET_SHORT_BYTES and loading a mem.
(movhi_bytes, extendhisi2_mem): New expands.
(movhi): Call movhi_bytes to load a short from memory if
TARGET_SHORT_BY_BYTES.
(all matchers loading a short from memory): Don't match if
TARGET_SHORT_BY_BYTES.
(matcher for movhi when TARGET_SHORT_BY_BYTES): New pattern to cover
remaining legal cases.
From-SVN: r8202
Richard Earnshaw [Sun, 2 Oct 1994 15:10:48 +0000 (15:10 +0000)]
(arm_reload_in_hi): New function.
From-SVN: r8201
Richard Earnshaw [Sun, 2 Oct 1994 15:10:27 +0000 (15:10 +0000)]
(TARGET_SHORT_BY_BYTES): New macro.
(TARGET_SWITCHES): Recognize switches -m[no-]short-load-bytes.
(TARGET_DEFAULT): Only define if not already done so.
(PROMOTE_MODE): Promote HImode unsigned if TARGET_SHORT_BY_BYTES.
(SECONDARY_INPUT_RELOAD_CLASS): Need a scratch for reloading HImode if
TARGET_SHORT_BY_BYTES.
From-SVN: r8200
Richard Earnshaw [Sun, 2 Oct 1994 14:25:07 +0000 (14:25 +0000)]
(movsf): If reloading, create a scratch from the target for loading a constant into integer regs.
(movsf): If reloading, create a scratch from the target for loading a
constant into integer regs.
(movdf): Likewise..
From-SVN: r8199
Richard Kenner [Sun, 2 Oct 1994 12:54:22 +0000 (08:54 -0400)]
(delete_insn_for_stacker): Don't set INSN_DELETED_P on
NOTE_INSN_DELETED.
From-SVN: r8198
Richard Kenner [Sun, 2 Oct 1994 00:42:28 +0000 (20:42 -0400)]
(CC, OLDCC, RCCFLAGS, CCLIBFLAGS, CLIB, ALLOCA): From x-sco.
(X_CFLAGS): Remove.
From-SVN: r8197
Richard Kenner [Sun, 2 Oct 1994 00:42:09 +0000 (20:42 -0400)]
(CLIB): Add "-lmalloc".
(ALLOCA): Define as "-lPW".
From-SVN: r8196
Richard Kenner [Sun, 2 Oct 1994 00:41:51 +0000 (20:41 -0400)]
(CPP_PREDEFINES): Remove i386, unix.
(CPP_SPEC): Add them here, so that they're undefined if -ansi.
Also add _i386 and _unix, which are always defined.
From-SVN: r8195
Richard Kenner [Sun, 2 Oct 1994 00:35:09 +0000 (20:35 -0400)]
(jump_optimize): When deleting a jump, properly set NEXT.
(duplicate_loop_exit_test): Don't insety NOTE_INSN_LOOP_VTOP before deleted
insn; insert first, then delete.
From-SVN: r8194
Richard Kenner [Sun, 2 Oct 1994 00:34:45 +0000 (20:34 -0400)]
(add_insn_{before,after}): Abort if insertion point is a deleted insn.
From-SVN: r8193
Michael Meissner [Sat, 1 Oct 1994 18:27:23 +0000 (18:27 +0000)]
Prefer float registers for movdf.
From-SVN: r8192
Richard Earnshaw [Sat, 1 Oct 1994 10:58:44 +0000 (10:58 +0000)]
(shadow_label): Emit an error if the label is already
declared at this label scope.
From-SVN: r8191
Richard Kenner [Sat, 1 Oct 1994 10:44:43 +0000 (06:44 -0400)]
Install omitted hunk from last diff.
From-SVN: r8190
Doug Evans [Sat, 1 Oct 1994 03:57:21 +0000 (03:57 +0000)]
(process_command): Fix typo.
From-SVN: r8189
Richard Kenner [Fri, 30 Sep 1994 22:26:03 +0000 (18:26 -0400)]
(add_insn_after): Abort if can't find AFTER and it has no NEXT_INSN.
(add_insn_before): New function.
(emit_{insn,insns,jump_insn,call_insn,barrier,note}_before): Call it.
From-SVN: r8188
Richard Kenner [Fri, 30 Sep 1994 21:33:35 +0000 (17:33 -0400)]
Initial revision
From-SVN: r8187
Richard Kenner [Fri, 30 Sep 1994 21:32:04 +0000 (17:32 -0400)]
(output_387_binary_op): Use AS2C instead of AS2 with null first arg.
From-SVN: r8186
Richard Kenner [Fri, 30 Sep 1994 21:31:44 +0000 (17:31 -0400)]
Treat ALMOST_STDC like __STDC__.
(AS2C): New macro.
From-SVN: r8185
Richard Kenner [Fri, 30 Sep 1994 21:31:09 +0000 (17:31 -0400)]
Don't include sys/file.h for winnt; use process.h instead.
(concat): Now just concats two things; all callers changed.
(concat[346]): New functions.
(dir_separator_str): New variable.
(exec_prefixes, startfile_prefixes, include_prefixes): Renamed from same names
without plural; all users changed.
(find_a_file, process_command, do_spec_1): Use DIR_SEPARATOR.
(find_file, is_directory, main): Likewise.
(lookup_compiler): If OS/2, do case-independent search.
(fix_argv): New function on winnt.
(FIX_ARGV): New macro for some systems; use instead of argv.
From-SVN: r8184
Richard Kenner [Fri, 30 Sep 1994 21:30:07 +0000 (17:30 -0400)]
(main): Use DIR_SEPARATOR if defined.
Use "Include" environment variable instead of CPATH for winnt.
From-SVN: r8183
Richard Kenner [Fri, 30 Sep 1994 21:29:38 +0000 (17:29 -0400)]
Don't include times.h for winnt.
(get_run_time): Just return zero for winnt.
(main): Don't print memory usage for OS/2 or winnt.
From-SVN: r8182
Richard Kenner [Fri, 30 Sep 1994 21:29:14 +0000 (17:29 -0400)]
Don't include syms.h for winnt.
From-SVN: r8181
Richard Kenner [Fri, 30 Sep 1994 21:27:51 +0000 (17:27 -0400)]
#ifdef WINNT, include direct.h.
From-SVN: r8180
Richard Kenner [Fri, 30 Sep 1994 21:27:29 +0000 (17:27 -0400)]
(atoi): Remove declaration.
From-SVN: r8179
Richard Kenner [Fri, 30 Sep 1994 21:26:44 +0000 (17:26 -0400)]
(windowsnt): Alias for winnt.
(winnt): New OS name.
From-SVN: r8178
Mike Stump [Fri, 30 Sep 1994 00:51:03 +0000 (00:51 +0000)]
48th Cygnus<->FSF merge
From-SVN: r8177
Jim Wilson [Fri, 30 Sep 1994 00:31:34 +0000 (17:31 -0700)]
(movdf+3): Handle overlapping registers in define_split.
From-SVN: r8176
Jim Wilson [Fri, 30 Sep 1994 00:13:09 +0000 (17:13 -0700)]
(default_compilers): Add %Z to all cpp specs.
(n_preprocessor_options, preprocessor_options): New variables.
(process_command): Handle -Wp option.
(do_spec_1): Handle %Z spec.
From-SVN: r8175
Jim Wilson [Fri, 30 Sep 1994 00:11:02 +0000 (17:11 -0700)]
New file.
From-SVN: r8174
Jim Wilson [Fri, 30 Sep 1994 00:07:41 +0000 (17:07 -0700)]
(os): Accept coff as an OS.
From-SVN: r8173
Jim Wilson [Fri, 30 Sep 1994 00:05:20 +0000 (17:05 -0700)]
(call): Use struct value pattern is struct size is not equal to zero instead of greater than zero.
(call): Use struct value pattern is struct size is not
equal to zero instead of greater than zero.
(call+7, call+8): New patterns for untyped calls.
(untyped_call): Revise to emit explicit rtl for all operation.
Delete four old patterns that matched the unexpanded untyped_call
pattern.
(blockage): New pattern.
(flush_register_windows): Modify from 0 to 1.
(goto_handler_and_restore): Modify from 1 to 2.
(flush): Modify from 2 to 3.
From-SVN: r8172
Jim Wilson [Fri, 30 Sep 1994 00:04:04 +0000 (17:04 -0700)]
(sparc_initialize_trampoline): FLUSH is now 3 not 2.
From-SVN: r8171
Jim Wilson [Fri, 30 Sep 1994 00:02:36 +0000 (17:02 -0700)]
(result_vector): Use INCOMING_REGNO when !savep instead
of when savep.
From-SVN: r8170
Jim Wilson [Thu, 29 Sep 1994 23:59:45 +0000 (16:59 -0700)]
(emit_library_call): For FUNCTION_ARG_PASS_BY_REFERENCE,
pass address through force_operand before using it.
From-SVN: r8169
Jim Wilson [Thu, 29 Sep 1994 23:52:57 +0000 (16:52 -0700)]
(i960_setup_incoming_varargs): Store parameter registers
at proper offset in argument block.
From-SVN: r8168
Mike Stump [Thu, 29 Sep 1994 23:43:02 +0000 (23:43 +0000)]
stmt.c (expand_return): We have to be careful of cleanups that can be generated when...
* stmt.c (expand_return): We have to be careful of cleanups that can
be generated when expanding the return value, as they might otherwise
wipe out the return value.
From-SVN: r8167
Richard Kenner [Thu, 29 Sep 1994 22:47:30 +0000 (18:47 -0400)]
(i[34]86:UNIX_SV:4.*:*): Remove "UNIX_SV" for Unixware; move DYNIX
above this one now that this is wildcard.
From-SVN: r8166
Richard Kenner [Thu, 29 Sep 1994 22:24:38 +0000 (18:24 -0400)]
(struct option_map): Sort in alphabetical order.
(translate_options): Ignore option once an error occurs.
Fix error with reversed 'a' and 'o'.
Give error if specified abbreviation is unambiguous.
From-SVN: r8165
Mike Stump [Thu, 29 Sep 1994 20:45:05 +0000 (20:45 +0000)]
expr.c (do_jump): Handle cleanups in TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
* expr.c (do_jump): Handle cleanups in TRUTH_ANDIF_EXPR and
TRUTH_ORIF_EXPR.
From-SVN: r8164
Michael Bushnell [Thu, 29 Sep 1994 20:16:09 +0000 (20:16 +0000)]
*** empty log message ***
From-SVN: r8163
Richard Kenner [Thu, 29 Sep 1994 17:23:41 +0000 (13:23 -0400)]
(convert_for_assignment): When converting object to union...
(convert_for_assignment): When converting object to union, allow
converting the constant zero into a pointer member of the union.
From-SVN: r8162