Commit Graph

9429 Commits

Author SHA1 Message Date
Michael Meissner
eb0430f02e Make weak symbols work again.
From-SVN: r9407
1995-04-18 10:56:20 +00:00
Richard Kenner
a07a2d17c5 (size_int): Arg is unsigned HOST_WIDE_INT.
From-SVN: r9406
1995-04-18 06:19:35 -04:00
Richard Kenner
f42c0c38fb (size_int): Likewise.
From-SVN: r9405
1995-04-18 06:19:10 -04:00
Jason Merrill
2dccb50ab9 ASM_OUTPUT_EXTERNAL revisited
From-SVN: r9404
1995-04-18 06:35:02 +00:00
Per Bothner
b13b05f6ab cpplib.c: Rename make_definition to cpp_define.
* cpplib.c:  Rename  make_definition to cpp_define.
* cpplib.c (special_symbol):  For T_SPECLINE, calculate __LINE__
in enclosing file buffer, not current buffer (if macro expanding).
(cpp_get_token):  Fix thinko (in code for chopping unneeded space).

From-SVN: r9403
1995-04-17 16:43:46 -07:00
Per Bothner
8229b92217 * cpplib.h (cpp_define): New declaration.
From-SVN: r9402
1995-04-17 16:43:30 -07:00
Per Bothner
a471bbffa4 * config/mips/x-iris6 (FIXPROTO_DEFINES): Add -D_LANGUAGE_C_PLUS_PLUS.
From-SVN: r9401
1995-04-17 16:30:56 -07:00
Per Bothner
c9e5aa3180 * config/mips/x-iris (FIXPROTO_DEFINES): Add -D_LANGUAGE_C_PLUS_PLUS.
From-SVN: r9400
1995-04-17 16:30:38 -07:00
Jim Wilson
c4ae4e1116 (ASM_IDENTIFY_GCC, ASM_IDENTIFY_LANGUAGE): Define.
From-SVN: r9399
1995-04-17 14:06:01 -07:00
Jim Wilson
c009da4ff8 (CPP_SPECS): Define and use _ABI64 instead of _MIPS_SIM_ABI64.
(CPP_SPECS): Define and use _ABI64 instead of
_MIPS_SIM_ABI64.
(SETUP_INCOMING_VARARGS): Set MEM_IN_STRUCT_P if big endian target.

From-SVN: r9398
1995-04-17 14:05:40 -07:00
Jim Wilson
e340018d59 (get_last_value): Ignore BARRIER when scanning backwards.
(move_deaths): New variables before_dead and after_dead.  Set them
to instructions that have valid INSN_CUID values and use in test.

From-SVN: r9397
1995-04-17 13:55:26 -07:00
Jim Wilson
0d9641d106 (subst_prev_insn): New variable.
(try_combine): Set it.
(get_last_value): Use it.

From-SVN: r9396
1995-04-17 13:49:59 -07:00
Jim Wilson
4ffeab028f (find_reloads): Recompute reg_equiv_address from reg_equiv_memory_loc before using it.
(find_reloads): Recompute reg_equiv_address from
reg_equiv_memory_loc before using it.
(find_reloads_toplev, make_memloc): Likewise.

From-SVN: r9395
1995-04-17 12:46:50 -07:00
Jim Wilson
79c0672ee6 (instantiate_decls): Use temporary allocation if
DECL_DEFER_OUTPUT is set.

From-SVN: r9394
1995-04-17 12:23:52 -07:00
Jim Wilson
85c53d245a (expand_builtin, case BUILT_IN_MEMCPY): Call force_operand
on dest_rtx before returning it.

From-SVN: r9393
1995-04-17 12:19:48 -07:00
Jason Merrill
545bcf37d1 weaken C++ free-store functions
From-SVN: r9392
1995-04-16 06:17:34 +00:00
Jason Merrill
4b8af8d984 attributes weak and alias
From-SVN: r9391
1995-04-16 06:14:00 +00:00
Richard Kenner
822e3422fb (expand_call): Call preserve_temp_slots on temps made for BLKmode args
returned in registers.

From-SVN: r9390
1995-04-15 13:52:45 -04:00
Richard Kenner
fd84ddafb0 (override_options): Fix typo.
From-SVN: r9389
1995-04-15 13:26:23 -04:00
Brendan Kehoe
d108518002 alpha.c (output_epilog): Initialize fp_offset to 0, and
* alpha/alpha.c (output_epilog): Initialize fp_offset to 0, and

        make sure it's non-zero before we try to use it to restore the

        frame pointer.

From-SVN: r9388
1995-04-15 12:12:24 -04:00
Jason Merrill
7644b152a6 Reorganize va_arg
From-SVN: r9387
1995-04-14 23:44:01 +00:00
Roland McGrath
fa42ea0227 (ASM_OUTPUT_SECTION_NAME): Make the section read-only executable "ax" if DECL is a FUNCTION_DECL...
(ASM_OUTPUT_SECTION_NAME): Make the section read-only executable "ax"
if DECL is a FUNCTION_DECL; read-only "a" (previously the case always)
if DECL is TREE_READONLY; otherwise writable "aw".

From-SVN: r9386
1995-04-14 23:31:05 +00:00
Richard Kenner
ea8e4ec574 (output_prolog): Changed stack probe at function entry.
From-SVN: r9385
1995-04-14 18:49:07 -04:00
Richard Kenner
13aa593cd6 (probe_stack): Probe with write, not read.
(allocate_stack): Update and correct stack probe code.

From-SVN: r9384
1995-04-14 18:48:49 -04:00
Richard Kenner
4134d7fcf0 (delete_insn): When deleting after label, delete a BARRIER as well.
From-SVN: r9383
1995-04-14 18:42:15 -04:00
Michael Meissner
d1d27b4cdf Emit eabi's main call to __eabi before setting up the minimal TOC, rather than after.
From-SVN: r9382
1995-04-14 17:06:46 +00:00
Richard Kenner
9973f4a294 (call_operand): Any reg is valid for NT.
(output_prologue): Never need GP for Windows/NT.
Set SYMBOL_REF_FLAG in current function decl.

From-SVN: r9381
1995-04-14 09:08:58 -04:00
Richard Kenner
1c3b948b07 Fix typo with comment.
From-SVN: r9380
1995-04-14 09:05:11 -04:00
Jason Merrill
3731dc0c6f Add defines.
From-SVN: r9379
1995-04-14 00:28:13 +00:00
Doug Evans
15d23f2b5d (gen_sequence): If the insn has a non-null CALL_INSN_FUNCTION_USAGE field...
(gen_sequence): If the insn has a non-null
CALL_INSN_FUNCTION_USAGE field, output it as a sequence so the
latter isn't discarded.

From-SVN: r9378
1995-04-14 00:26:46 +00:00
Doug Evans
6353cbd59d (update expected conflict count)
From-SVN: r9377
1995-04-13 23:57:25 +00:00
Richard Kenner
0f2101cc28 Clean up code that defines *DEFINED* symbols.
From-SVN: r9376
1995-04-13 08:50:20 -04:00
Richard Kenner
9f154156a1 Adjust for deletion of config.run in Makefile.in
Change version to 2.6.3.

From-SVN: r9375
1995-04-13 08:49:33 -04:00
Richard Kenner
633f0ee463 (OBJECT_SUFFIX): Define.
From-SVN: r9374
1995-04-13 08:48:51 -04:00
Richard Kenner
3527f97444 (TARGET_MEM_FUNCTIONS): Define.
(LINK_SPEC): Delete "align:0x1000".

From-SVN: r9373
1995-04-13 08:48:34 -04:00
Richard Kenner
9e010e00dd Initial revision
From-SVN: r9372
1995-04-13 08:47:43 -04:00
Richard Kenner
55e70146bd (calll, tablejump, movsi): New variants for NT.
From-SVN: r9371
1995-04-13 08:46:37 -04:00
Richard Kenner
0076aa6bda (WINDOWS_NT): Provide default definition.
(ASM_OUTPUT_INT): Use output_addr_const.
(ASM_OUTPUT_ADDR_DIFF_ELT): Use .long for NT.

From-SVN: r9370
1995-04-13 08:45:41 -04:00
Richard Kenner
7daa56f55b Don't #include stamp.h for WINNT.
(input_operand, case CONST): Allow ptr_mode and DImode.

From-SVN: r9369
1995-04-13 08:45:11 -04:00
Richard Kenner
c6b3160017 Arg 2 is which machine (i386 or alpha).
From-SVN: r9368
1995-04-13 08:39:06 -04:00
Richard Kenner
e6232580b2 (ASM_OUTPUT_SECTION_NAME): New macro.
From-SVN: r9367
1995-04-13 08:10:12 -04:00
Jim Wilson
6376fd9aed (dbxout_type_fields): Correct arguments to CHARS macro in flag_minimal_debug case.
(dbxout_type_fields): Correct arguments to CHARS macro
in flag_minimal_debug case.
(dbxout_symbol_name): Use DECL_ASSEMBLER_NAME unconditionally.

From-SVN: r9366
1995-04-12 11:35:39 -07:00
Jim Wilson
95b2ff8be2 (sdbout_record_type_name): Correct indentation.
(sdbout_symbol): Use DECL_ASSEMBLER_NAME unconditionally.
(sdbout_one_type): Likewise.

From-SVN: r9365
1995-04-12 11:35:15 -07:00
Per Bothner
ebc27362b3 fix-header.c (main): Fix loop over required_functions_list
* fix-header.c (main):  Fix loop over required_functions_list
(fatal):  Also print inc_filename.

From-SVN: r9364
1995-04-11 23:34:50 -07:00
Jim Wilson
df87c8b70b (shiftby_operand): Delete.
From-SVN: r9363
1995-04-11 14:02:20 -07:00
Jim Wilson
7c59620580 (TARGET_SWITCHES): -m3 and -m3l also set SH2_BIT.
(OVERRIDE_OPTIONS): Don't add CPU_SH2 to CPU_SH3 when TARGET_SH3.

From-SVN: r9362
1995-04-11 14:01:12 -07:00
Jim Wilson
d2f09a2f76 (ashlsi3): Use nonmemory_operand as a predicate instead of shiftby_operand.
(ashlsi3): Use nonmemory_operand as a predicate instead of
shiftby_operand.  Don't use shiftby_operand in the output statement.
(lshrsi3): Likewise.

From-SVN: r9361
1995-04-11 13:59:16 -07:00
Per Bothner
22bbceaf8e Bunch of little fixes. See ChangeLog.
From-SVN: r9360
1995-04-11 13:43:19 -07:00
Jim Wilson
6272a44980 (poplevel): Do output inline function if
DECL_ABSTRACT_ORIGIN points to itself.

From-SVN: r9359
1995-04-11 10:41:27 -07:00
Jim Wilson
b029f99a28 (output_constant): Cast assemble_string argument to char *.
From-SVN: r9358
1995-04-11 10:36:18 -07:00
Torbjorn Granlund
b990f6356d (constrain_operands, case 'E'): Make this work like
constraint character `F' when REAL_ARITHMETIC is defined.

From-SVN: r9357
1995-04-10 21:39:56 +00:00
Torbjorn Granlund
293166bea0 (find_reloads, case 'E'): : Make this work like
constraint character `F' when REAL_ARITHMETIC is defined.

From-SVN: r9356
1995-04-10 21:39:56 +00:00
Torbjorn Granlund
7ac2547f82 (record_reg_classes, case 'E'): Make this work like
constraint character `F' when REAL_ARITHMETIC is defined.

From-SVN: r9355
1995-04-10 21:39:56 +00:00
Michael Meissner
b0d577320e Undo Match 11th changes.
From-SVN: r9354
1995-04-10 19:06:40 +00:00
Michael Meissner
5386cc16d4 Undo March 11th changes.
From-SVN: r9353
1995-04-10 19:06:10 +00:00
Richard Kenner
5f972d0c29 (init_parse_options, cpp_reader): Cast args to bcopy, bcmp, and bzero to char *.
(init_parse_options, cpp_reader): Cast args to bcopy, bcmp, and bzero to
char *.
(add_import, push_parse_file, init_parse_file): Likewise.

From-SVN: r9352
1995-04-10 09:23:06 -04:00
Richard Kenner
02d0b8be93 Add declaration of xmalloc.
From-SVN: r9351
1995-04-10 09:22:43 -04:00
Richard Kenner
52112c7c0a Add declarations of xmalloc and xrealloc.
(cpp_parse_expr): Cast args to bcopy to char *.

From-SVN: r9350
1995-04-10 09:22:19 -04:00
Richard Kenner
800f087e34 #include config.h.
From-SVN: r9349
1995-04-10 09:22:01 -04:00
Richard Kenner
4580042b08 (make_decl_rtl): Allow section attribute if...
(make_decl_rtl): Allow section attribute if -fno-common or variable is
not to be placed in common for some other reason.

From-SVN: r9348
1995-04-10 08:20:36 -04:00
Richard Kenner
bbb1ae016c (enum attrs): New attribute, A_NOCOMMON.
(init_attribute): Initialize it.
(decl_attributes): Implement it.

From-SVN: r9347
1995-04-10 08:20:09 -04:00
Richard Kenner
f507a07044 (simplify_set): Don't move a SUBREG to dest if it is changing the size
of a hard reg in CLASS_CANNOT_CHANGE_SIZE.

From-SVN: r9346
1995-04-10 07:57:09 -04:00
Richard Kenner
0639444ffb (reload_as_needed): Call forget_old_reloads_1 on pattern before reg
elimination.

From-SVN: r9345
1995-04-10 07:17:17 -04:00
Richard Kenner
9fac9680c0 (find_equiv_reg): If goal is a pseudo that got memory, a store into
memory makes it invalid.

From-SVN: r9344
1995-04-10 07:16:13 -04:00
Jeff Law
0f5cddbdd1 pa.c (pa_reorg): Bump label use count for each entry in an exploded ADDR_VEC
* pa.c (pa_reorg): Bump label use count for each entry in an
	exploded ADDR_VEC

From-SVN: r9343
1995-04-09 22:26:01 -06:00
Richard Kenner
dee6d39efa (adddi3, subdi3): Need scratch reg whenever operand 0 in mem and operands 1 not '0'.
(adddi3, subdi3): Need scratch reg whenever operand 0 in mem and operands 1
not '0'.
(subdi3): Don't treat two non-equal MEMs as non-aliasing.

From-SVN: r9342
1995-04-09 09:22:42 -04:00
Mike Stump
79ff2c6c8b 64th Cygnus<->FSF merge
From-SVN: r9341
1995-04-09 11:41:24 +00:00
Jeff Law
aba892c44f * pa.c (pa_reorg): Fix typo.
From-SVN: r9340
1995-04-08 20:53:09 -06:00
Michael Meissner
128e5769ed Correct SELECT_SECTION.
From-SVN: r9339
1995-04-08 23:42:29 +00:00
Mike Stump
3b9835d76b * cpphash.c: Don't use const on compilers that don't support it.
From-SVN: r9338
1995-04-08 20:38:16 +00:00
Richard Kenner
e9cdf6e48c (expand_increment): Handle case where INCREMENTED has a non-trivial
conversion.

From-SVN: r9337
1995-04-08 16:32:01 -04:00
Richard Kenner
6cb64c6a04 (TRAMPOLINE_TEMPLATE, TRANSFER_FROM_TRAMPOLINE): Fix assembler syntax
errors.

From-SVN: r9336
1995-04-07 19:33:16 -04:00
Richard Kenner
bd8cb5e27f (VMS_fstat, VMS_stat): New functions.
From-SVN: r9335
1995-04-07 19:27:05 -04:00
Richard Kenner
c29a4cbc4b (collect_expansion): If traditional...
(collect_expansion): If traditional, set stringify member to
SHARP_TOKEN regardless of the value of stringify_sharp_token_type.

From-SVN: r9334
1995-04-07 19:18:58 -04:00
Richard Kenner
cceb347c21 (simplify_unary_operation): #ifdef POINTERS_EXTEND_UNSIGNED, handle
sign- or zero-extending addresses.

From-SVN: r9333
1995-04-07 16:04:38 -04:00
Richard Kenner
3091ecc183 (init{,_integral,_floating,_complex}_libfuncs):
Change SUFFIX to "char" to avoid confusion with prototype.

From-SVN: r9332
1995-04-07 14:03:52 -04:00
Richard Kenner
ed9a9db1b0 (expand_computed_goto): Convert from ptr_mode to Pmode.
From-SVN: r9331
1995-04-07 12:36:39 -04:00
Richard Kenner
9c5f2956d0 (convert_memory_address): Add extra arg.
From-SVN: r9330
1995-04-07 12:36:20 -04:00
Richard Kenner
9fcfcce705 (expand_expr, case ADDR_EXPR): Always call convert_memory_address when
converting; add extra arg.

From-SVN: r9329
1995-04-07 12:35:49 -04:00
Richard Kenner
498b529f11 (convert_memory_address): No longer static.
New arg, TO_MODE.
Do something special for SYMBOL_REF, LABEL_REF, and CONST.
(memory_address): Add extra arg to call to convert_memory_address.

From-SVN: r9328
1995-04-07 12:35:25 -04:00
Richard Kenner
0aac88f627 (OBJECT_SUFFIX): Move to here; now has period.
From-SVN: r9327
1995-04-07 08:10:03 -04:00
Richard Kenner
39c93302bd (OBJECT_SUFFIX): Delete from here.
From-SVN: r9326
1995-04-07 08:09:51 -04:00
Richard Kenner
adcb8d7d82 (OBJECT_SUFFIX): Default now ".o", not "o".
(all specs): Remove "." before %O; use %O in a few missing cases.

From-SVN: r9325
1995-04-07 08:09:21 -04:00
Richard Kenner
bf3556b368 (STAGESTUFF): Use $(exeext) for executables.
From-SVN: r9324
1995-04-07 07:48:25 -04:00
Per Bothner
86c041d275 * cpplib.c (bcopy, bzero, bcmp): Remove #undefs.
From-SVN: r9323
1995-04-07 01:42:27 -07:00
Richard Stallman
203fffe550 Accept -lites* as op sys.
From-SVN: r9321
1995-04-07 07:32:44 +00:00
Per Bothner
6bac1e6496 cpplib.c (SELF_DIR_DUMMY): New macro.
* cpplib.c (SELF_DIR_DUMMY):  New macro.
(do_include):  Don't pass searchptr to finclude if it is dsp,
since that is on the stack, and would cause a dangling pointer.
If handling #include_next, recognize SELF_DIR_DUMMY.

From-SVN: r9320
1995-04-06 23:20:52 -07:00
Per Bothner
56c667474e * cppalloc.c (xcalloc): Re-implement using calloc, rather than malloc+bzero.
From-SVN: r9319
1995-04-06 23:19:22 -07:00
Jeff Law
746a9efa80 pa.h (MACHINE_DEPENDENT_REORG): Define.
* pa.h (MACHINE_DEPENDENT_REORG): Define.
	* pa.md (switch_jump): New pattern for jumps which implement
	a switch table.
	* pa.c (pa_reorg): New function to explode jump tables.
	(pa_adjust_insn_length): Account for jumps in switch tables with
	unfilled delay slots.

From-SVN: r9318
1995-04-06 22:56:45 -06:00
Jason Merrill
605a99f6be (build_binary_op): Don't call common_type for uncommon pointer types.
From-SVN: r9317
1995-04-06 21:31:01 +00:00
Per Bothner
b3ca463cda Re-write fixproto/fix-header/etc to use cpplib.
From-SVN: r9316
1995-04-05 14:16:26 -07:00
Per Bothner
355142da80 Moved 'high-level' error functions from cpperror.c to cpplib.c.
From-SVN: r9315
1995-04-05 13:34:58 -07:00
Roland McGrath
784ea07468 (GNU_CPP_PREDEFINES): Remove -D__HURD__.
From-SVN: r9314
1995-04-05 03:35:44 +00:00
Jeff Law
a65c428438 pa.h (DO_GLOBAL_DTORS_BODY): Fix pointer -> integer assignment problem.
* pa.h (DO_GLOBAL_DTORS_BODY): Fix pointer -> integer assignment
	problem.

From-SVN: r9313
1995-04-04 15:26:02 -06:00
Jeff Law
6f7775d58f reorg.c (fill_simple_delay_slots): Don't use a JUMP_INSN a the target of another JUMP_INSN to fill a delay slot.
* reorg.c (fill_simple_delay_slots): Don't use a JUMP_INSN
	a the target of another JUMP_INSN to fill a delay slot.

From-SVN: r9312
1995-04-04 15:16:40 -06:00
Mike Stump
b19b4a787d 63rd Cygnus<->FSF merge
From-SVN: r9311
1995-04-04 17:51:34 +00:00
Torbjorn Granlund
9fa6d012c0 (force_to_mode, case PLUS): Sign extend masks that are negative in OP_MODE.
(simplify_and_const_int): Sign-extend constants when they have the
most significant bit set for the target.
(merge_outer_ops): Likewise.
(simplify_shift_const): Likewise.

From-SVN: r9310
1995-04-03 23:19:41 +00:00
Torbjorn Granlund
ad89d6f68a (simplify_unary_operation): Sign-extend constants when they have the most significant bit set for the target.
(simplify_unary_operation): Sign-extend constants when
they have the most significant bit set for the target.
(simplify_binary_operation): Likewise.

From-SVN: r9309
1995-04-03 23:19:02 +00:00
Jason Merrill
2e14370ed4 oops
From-SVN: r9308
1995-04-03 23:16:19 +00:00
Torbjorn Granlund
28d29b39bc (umulsi3_highpart): Test for CONST_INT and CONST_DOUBLE, not CONSTANT_P.
(smulsi3_highpart): Likewise.

(const_umulsi3_highpart): Use const_uint32_operand instead
of immediate_operand for op3.  Delete mode.
(const_smulsi3_highpart): Analogous change.

From-SVN: r9307
1995-04-03 22:54:09 +00:00