Commit Graph

6429 Commits

Author SHA1 Message Date
Torbjorn Granlund
23f6f34fca (Several places): Declare values from INTVAL(x) as HOST_WIDE_INT.
(uint32_operand): New function.
(output_block_move): Change unroll threshold from 64 to 32.
(compute_movstrsi_length): Corresponding change.
(print_operand): Don't call debug_rtx, just abort.
(initialize_pic): Delete.
(finalize_pic): Use PIC_OFFSET_TABLE_REGNUM rather than 19.

From-SVN: r6292
1993-12-24 03:10:48 +00:00
Jim Wilson
2d19a71c10 (optimize_reg_copy_1): After decreasing sregno's
reg_live_length, correct it if it is now obviously too small.

From-SVN: r6291
1993-12-23 17:35:17 -08:00
Jim Wilson
b418c26e7f (check_dbra_loop): Don't reverse loop if there is a
single memory store to an invariant address.

From-SVN: r6290
1993-12-23 17:33:02 -08:00
Jim Wilson
fb99c21cfa (translate_options): Skip arguments of -B, -b, -V, -x,
and -Xlinker options.

From-SVN: r6289
1993-12-23 16:26:16 -08:00
Jim Wilson
a6642da8c0 backport: host_mips, mips, MIPSE[LB], R[34]000, SYSTYPE_*.
Merge in changes from fixinc.mips.  Fix identifiers
host_mips, mips, MIPSE[LB], R[34]000, SYSTYPE_*.  Fix size_t uses
in stddef.h, memory.h, unistd.h.  Fix /**/ in bsd43/bsd43_.h.

From-SVN: r6288
1993-12-23 15:50:50 -08:00
Richard Kenner
c0a085741f (expand_mult): Preserve useful sub-expressions when
expanding a synthesized mult.

From-SVN: r6287
1993-12-23 18:27:51 -05:00
Richard Kenner
cfc327a271 (libgcc.a): Allow chmod of tmpcopy directory to fail since it can be
empty.

From-SVN: r6286
1993-12-23 18:12:32 -05:00
Richard Kenner
c1a9a99cd0 (default_compilers, gnat1): Don't write -gnatb.
From-SVN: r6285
1993-12-23 17:49:04 -05:00
Richard Kenner
df8a401ad5 (T_ST): Fix typo in last change.
From-SVN: r6284
1993-12-23 17:19:33 -05:00
Richard Kenner
ea87523e22 (expand_expr, case MINUS_EXPR): When expanding an initializer, use
plus_constant as appropriate.

From-SVN: r6283
1993-12-23 17:14:26 -05:00
Richard Kenner
5d49bd0cf2 (ASM_OUTPUT_ADDR_DIFF_ELT): Use .long, not .double.
From-SVN: r6282
1993-12-23 09:03:23 -05:00
Richard Kenner
0dbb682da4 (ENQUIRE_CFLAGS): Omit -DNO_STDDEF.
(USE_ALLOCA): Allow ${ALLOCA} to begin with a dash.
(OBJC, OBJECTIVE-C): Depend on objc-runtime.
(objc-headers): Make include directory if missing.

From-SVN: r6281
1993-12-23 08:39:56 -05:00
Richard Kenner
b3a2ef9465 (main): When searching compiler directories, look for ld_suffix, not
full_ld_suffix.

From-SVN: r6280
1993-12-23 08:17:07 -05:00
Richard Kenner
de9253a04d Refine last change; just add -I.
From-SVN: r6279
1993-12-23 08:11:50 -05:00
Richard Kenner
1c4eddf19b (TARGET_DEFAULT): Update to use new values.
From-SVN: r6278
1993-12-23 07:33:56 -05:00
Richard Kenner
1a161f08c8 (GCC_CFLAGS): Add -B and -I options.
From-SVN: r6277
1993-12-23 07:30:10 -05:00
Richard Kenner
a4e262bcec (delete_reg_equiv): Don't reference elements of REG_{NEXT,PREV}_EQV
that are not defined.

From-SVN: r6276
1993-12-23 06:57:20 -05:00
Jim Wilson
4e6ee2672e (dbxout_parms): For parameter passed by invisible
reference, use DECL_INCOMING_RTL if DECL_RTL is a pseudo-reg address.

From-SVN: r6275
1993-12-22 18:06:15 -08:00
Jim Wilson
76767c30d9 (DBX_FINISH_SYMBOL): Get variable name from DECL_RTL
instead of from DECL_ASSEMBLER_NAME.

From-SVN: r6274
1993-12-22 17:35:24 -08:00
Richard Kenner
b16bd3ad93 Fix typo in comment.
From-SVN: r6273
1993-12-22 14:43:24 -05:00
Jim Wilson
489e2090a4 (priority): Handle INSN_DELETED_P insns, in addition to
insns which were deleted by being turned into notes.

From-SVN: r6272
1993-12-22 11:41:47 -08:00
Jim Wilson
5b22bee861 (expand_expr, NEGATE_EXPR case): Use subtarget in
recursive call, not target.

From-SVN: r6271
1993-12-22 11:35:27 -08:00
Jim Wilson
66a9d9f8d5 (required_unistd_h): Delete getgroups from list.
From-SVN: r6270
1993-12-22 11:31:24 -08:00
Jim Wilson
af86171da7 (missing_extern_C_count): Ifdef out.
(write_lbrac, recognized_function, read_scan_file, write_rbrac):
Likewise.

From-SVN: r6269
1993-12-22 11:29:00 -08:00
Jim Wilson
3c0e5268f9 (main): Cast alloca result to char * to avoid warning.
From-SVN: r6268
1993-12-22 11:25:04 -08:00
Jim Wilson
75540fea2d (find_splittable_givs): For rewritting illegal init
insn, use force_operand instead of emit_iv_add_mult.

From-SVN: r6267
1993-12-22 11:21:01 -08:00
Richard Kenner
1810c3fa48 (chainon): Detect more circularities.
From-SVN: r6266
1993-12-22 14:18:06 -05:00
Richard Kenner
b60e974d79 (main): Move declarations of SIZE and TOTAL to where they won't cause "unused" warnings when NO_MEM is defined.
(main):  Move declarations of SIZE and TOTAL to where they won't cause
"unused" warnings when NO_MEM is defined.
(promotions):  Explicitly declare return type (to avoid warnings).
Always return a value.

From-SVN: r6265
1993-12-22 13:44:10 -05:00
Richard Kenner
53117a2f4d (compiler_version): New variable.
(spec_version): Initialize from DEFAULT_TARGET_VERSION.
(main): Distinguish COMPILER_VERSION from TARGET_VERSION.
(process_command): Use COMPILER_VERSION for %v.
Guard against a COMPILER_VERSION that lacks a minor.

From-SVN: r6264
1993-12-22 13:39:29 -05:00
Richard Kenner
964ceda1db (gcc.o): Define DEFAULT_TARGET_VERSION.
From-SVN: r6263
1993-12-22 13:38:50 -05:00
Richard Kenner
4da617d882 (strip_off_ending): Strip off ".cpp" extension.
From-SVN: r6262
1993-12-22 07:47:03 -05:00
Richard Kenner
a0c2b8e969 (main): Strip off ".cpp" extension.
From-SVN: r6261
1993-12-22 07:45:11 -05:00
Richard Kenner
cc70323d03 (default_compilers): Treat ".cpp" as C++.
From-SVN: r6260
1993-12-22 07:42:29 -05:00
Richard Kenner
78ea9cda0f (install-headers, install-headers-tar): Correctly handle directories
when $(libsubdir) is a relative path.

From-SVN: r6259
1993-12-22 07:26:11 -05:00
Richard Kenner
af3c5588ab (T_ST): New macro.
(scan_char_table): With s, c and [, allow `a' flag.
(print_char_table): Accept Z and m codes.
(check_format_info): Handle the `a' flag.

From-SVN: r6258
1993-12-22 07:11:59 -05:00
Richard Kenner
3b0ad9f9c4 (rpc/auth.h, rpc/xdr.h): Declare structures before using them in prototypes, for Irix 4.0.5.
(rpc/auth.h, rpc/xdr.h): Declare structures before using them in
prototypes, for Irix 4.0.5.
(rpc/rpc.h): Avoid a nested comment on Ultrix 4.3.

From-SVN: r6257
1993-12-21 21:09:32 -05:00
Richard Kenner
aa90345aad (MD_FILE rule): Depend on $(MD_DEPS). Invoke $(MD_CPP).
From-SVN: r6256
1993-12-21 18:41:11 -05:00
Jim Wilson
87ac38094d (FUNCTION_ARG_PASS_BY_REFERENCE): Also pass Pascal arrays by reference.
From-SVN: r6255
1993-12-21 11:26:59 -08:00
Jim Wilson
38d4236812 (sched_analyze): For CALL_INSN followed by NOTE_INSN_SETJMP note...
(sched_analyze): For CALL_INSN followed by
NOTE_INSN_SETJMP note, make it depend on all registers not just
hard registers, and add a REG_DEAD -1 note.
(unlink_notes): Don't save away NOTE_INSN_SETJMP notes.
(schedule_block): After scheduling CALL_INSN, check for REG_DEAD
-1 note.  If find it, delete it, and output a NOTE_INSN_SETJMP note.

From-SVN: r6254
1993-12-21 10:58:10 -08:00
Jim Wilson
3eb8f14cbc (replace_regs, case REG): Return copies of SUBREGs, to
avoid invalid sharing.

From-SVN: r6253
1993-12-21 10:25:26 -08:00
Jeff Law
77541d4e83 pa.h (ASM_GENERATE_INTERNAL_LABEL): Always use L$ as the prefix for internal labels.
* pa.h (ASM_GENERATE_INTERNAL_LABEL): Always use L$ as the prefix
        for internal labels.
        (ASM_OUTPUT_INTERNAL_LABEL): Likewise.

From-SVN: r6252
1993-12-21 11:06:57 -07:00
Jeff Law
14dc90724e pa.c (output_function_prologue): Use ASM_GENERATE_INTERNAL_LABEL rather than generating one on its own.
* pa.c (output_function_prologue): Use ASM_GENERATE_INTERNAL_LABEL
        rather than generating one on its own.

From-SVN: r6251
1993-12-21 11:06:48 -07:00
Richard Kenner
dea273dfa1 (struct initializer_stack): New field ELEMENTS.
(start_init, finish_init): Save and restore constructor_elements.

From-SVN: r6250
1993-12-20 19:22:51 -05:00
Richard Kenner
674d5d8bef (gen_lowpart_common): Return a new hard reg even if not valid in MODE
if the input REG is not valid in its mode.

From-SVN: r6249
1993-12-20 19:16:01 -05:00
Richard Kenner
405c549531 (divsi3): Correct logic for when we call force_reg.
(modsi3): Ensure operands[2] is a CONST_INT; include REG in predicate.

From-SVN: r6248
1993-12-20 19:09:40 -05:00
Jeff Law
3bf35ccb68 pa.c (compute_frame_size): Remove implicit assumption that %r4 is the frame pointer.
* pa.c (compute_frame_size): Remove implicit assumption that
	%r4 is the frame pointer.

From-SVN: r6247
1993-12-16 16:24:35 -07:00
Jeff Law
ba0bfdacea pa.c (output_function_prologue): Reverse last change.
* pa.c (output_function_prologue): Reverse last change.  Output
        both the function label and the .PROC here.
        * pa.h (ASM_DECLARE_FUNCTION_NAME): Do not output the function
        label or the .PROC here.

From-SVN: r6246
1993-12-16 14:14:18 -07:00
Ian Lance Taylor
9deb7b7ca4 Do not preserve _HIDDEN_VA_LIST in <stdio.h>
From-SVN: r6245
1993-12-16 16:36:22 +00:00
Mike Stump
2c0d84d608 cp-decl.c (flag_conserve_space): New language specific flag to tell the compiler to use .common when possible.
* cp-decl.c (flag_conserve_space): New language specific flag to
	tell the compiler to use .common when possible.  Reduces the size of
	.o files.
	* cp-decl.c (duplicate_decls): Copy DECL_COMMON from the olddecl.
	* cp-decl.c (start_decl): Set DECL_COMMON appropriately.
	* cp-decl.c (finish_decl): Use flag_conserve_space, instead of
	flag_no_common.
	* cp-decl2.c (flag_conserve_space, lang_f_options): New flag.
	* toplev.c (lang_options): New -fconserve-space flag.
	* tree.h (DECL_COMMON): New flag.
	* tree.h (tree_decl): New common_flag.
	* varasm.c (assemble_variable): Use DECL_COMMON to help determine if
	an object can be put in .common.
	* c-decl.c (start_decl): Set DECL_COMMON to 1..

From-SVN: r6244
1993-12-16 00:15:21 +00:00
Richard Kenner
3d5e2367e9 (cccp.o, stmt-proto): Use $(includedir).
From-SVN: r6243
1993-12-15 19:04:46 -05:00
Richard Kenner
177ad45ae0 (profile_function): Set ALIGN properly.
From-SVN: r6242
1993-12-15 18:48:15 -05:00
Richard Kenner
49b08aba12 (copy_node): Handle length of INTEGER_CST like make_node.
From-SVN: r6241
1993-12-15 18:43:52 -05:00
Richard Kenner
c11ffdbd02 Remove declarations of setjmp and longjmp.
From-SVN: r6240
1993-12-15 18:37:17 -05:00
Richard Kenner
b71c7f8acb (missing_braces_mentioned): Renamed from `partial_bracket_mentioned'.
(start_init): Clear `missing_braces_mentioned'.
(warning_init): New function.
(push_init_level): Optionally warn about missing braces.
When warning about braces around scalars, identify which scalars.

From-SVN: r6239
1993-12-15 18:30:48 -05:00
Richard Kenner
a50c47ec17 (LIB_SPEC): Use shared libc when not profiling, not debugging, and no
"-static".

From-SVN: r6238
1993-12-15 18:21:23 -05:00
Richard Kenner
1f9becfcbe (expand_builtin): Allow __builtin_next_arg to be used in varargs
functions.

From-SVN: r6237
1993-12-15 18:14:13 -05:00
Richard Kenner
ede5754956 (gnucompare, gnucompare3): New targets.
From-SVN: r6236
1993-12-15 18:09:47 -05:00
Jeff Law
9473a84ff3 pa.c (output_call): Put temporary label after the RP adjustment.
* pa.c (output_call): Put temporary label after the
        RP adjustment.  "- 8" adjustment is no longer necessary.

From-SVN: r6235
1993-12-14 16:00:41 -07:00
Jeff Law
94c17ca5e6 * x-pa (CC): Do not use absolute path to gcc.
From-SVN: r6234
1993-12-14 15:59:35 -07:00
Jeff Law
081c2fafcf pa.c (output_function_prologue): Do not output the .PROC directive here.
* pa.c (output_function_prologue): Do not output the .PROC directive
	here.

	* pa.h (ASM_DECLARE_FUNCTION_NAME): Emit the .PROC immediately
	after the function's label.

From-SVN: r6233
1993-12-14 14:42:44 -07:00
Jeff Law
a7c1e13f93 pa.h (ASM_FILE_START): Emit a .file directive at the beginning of the output file if...
* pa.h (ASM_FILE_START): Emit a .file directive at the beginning
	of the output file if debug symbols are being generated.

From-SVN: r6232
1993-12-14 14:02:09 -07:00
Jeff Law
a27d3fef51 * pa.h (MAX_OFILE_ALIGNMENT): Define appropriately for the PA.
From-SVN: r6231
1993-12-13 22:39:11 -07:00
Jeff Law
cf4627151e pa-ghpux.h (TARGET_DEFAULT): Enable TARGET_JUMP_IN_DELAY.
* pa-ghpux.h (TARGET_DEFAULT): Enable TARGET_JUMP_IN_DELAY.
	* pa-gux7.h (TARGET_DEFAULT): Likewise.
	* pa-utahmach.h (TARGET_DEFAULT): Likewise.
	* pa.h (TARGET_DEFAULT): Likewise.
	* pa1-ghpux.h (TARGET_DEFAULT): Likewise.
	* pa1-utahmach.h (TARGET_DEFAULT): Likewise.
	* pa1.h (TARGET_DEFAULT): Likewise.

From-SVN: r6230
1993-12-13 22:22:57 -07:00
Jeff Law
5eaf490bc3 pa.md (lo_sum of a function address): Use short form as we have no intention of supporting MPE external calls.
* pa.md (lo_sum of a function address): Use short form as we have
	no intention of supporting MPE external calls.

From-SVN: r6229
1993-12-13 22:20:15 -07:00
Jeff Law
b0ce651a54 pa.c (secondary_reload_class): Function addresses no longer need secondary reloads.
* pa.c (secondary_reload_class): Function addresses no longer
	need secondary reloads.
	(emit_move_sequence): Special handling of function addresses is
	no longer needed.

From-SVN: r6228
1993-12-13 22:20:15 -07:00
Jeff Law
59036ece8f * pa.h (LEGITIMATE_CONSTANT_P): Remove hack for function addresses.
From-SVN: r6227
1993-12-13 22:20:15 -07:00
Richard Kenner
7bef86801b (subst, case MINUS): Canonicalize (minus A (plus A B)).
From-SVN: r6226
1993-12-13 20:58:37 -05:00
Richard Kenner
9e269f7292 (ASM_OUTPUT_ASCII): Wrap in `do { ... } while (0)'.
From-SVN: r6225
1993-12-13 19:09:31 -05:00
Richard Kenner
389bb5081b (main): Combine tests of single-character suffixes.
(deps_output): Different second parameter: SPACER determines meaning of first
argument (target, dependency, literal text).
Wrap output correctly.

From-SVN: r6224
1993-12-12 08:19:22 -05:00
Richard Kenner
af49386505 (type_hash_canon): Clean up obstack usage a bit.
From-SVN: r6223
1993-12-12 08:04:10 -05:00
Richard Kenner
b0e0a0f9a8 (indirect_operand): Verify mode of OP is correct.
From-SVN: r6222
1993-12-12 08:01:09 -05:00
Richard Kenner
cc79451b14 (expand_call, store_one_arg): Properly push and pop temporary level
around expression evaluations.

From-SVN: r6221
1993-12-12 07:58:51 -05:00
Richard Kenner
bf104286fd Delete EXTRA_OBJS and halfpic.o rule.
From-SVN: r6220
1993-12-12 07:53:50 -05:00
Richard Kenner
22c24a38fe Don't require bash.
From-SVN: r6219
1993-12-12 07:53:26 -05:00
Richard Kenner
8c8fbd20b5 Delete EXTRA_PARTS.
From-SVN: r6218
1993-12-12 07:52:57 -05:00
Richard Kenner
72271569cd Delete null LIB2FUNCS_EXTRA.
From-SVN: r6217
1993-12-12 07:49:25 -05:00
Richard Kenner
579d0ecff5 (halfpic.o): New rule; copied from t-osfrose.
From-SVN: r6216
1993-12-12 07:48:37 -05:00
Richard Kenner
83eb3b0ddb (thread_prologue_and_epilogue_insns): When constructing USE chain, set both NEXT_INSN and PREV_INSN links.
(thread_prologue_and_epilogue_insns): When constructing USE chain, set
both NEXT_INSN and PREV_INSN links.  Also, preserve order of USE insns
in chain.

From-SVN: r6215
1993-12-12 06:18:21 -05:00
Richard Kenner
2663b06b38 Initial revision
From-SVN: r6214
1993-12-12 06:13:42 -05:00
Richard Kenner
f21bde40df Update to relect recent changes elsewhere.
From-SVN: r6213
1993-12-12 06:13:21 -05:00
Richard Kenner
39b52ba283 (modsi3): Correct error in last change.
From-SVN: r6212
1993-12-11 18:47:38 -05:00
Richard Kenner
3eda169fe0 (expand_inline_function): Remove last change.
From-SVN: r6211
1993-12-11 18:41:43 -05:00
Richard Kenner
f29a425b91 (output_type): The "base type" of a SET_TYPE is its DOMAIN_TYPE, not
its TREE_TYPE.

From-SVN: r6210
1993-12-11 18:26:40 -05:00
Richard Kenner
159e1f8430 (dbxout_type): The "base type" of a SET_TYPE is its DOMAIN_TYPE, not
its TREE_TYPE.

From-SVN: r6209
1993-12-11 18:09:38 -05:00
Richard Kenner
9b1674a8ed (INPUT_STACK_MAX): Double size.
From-SVN: r6208
1993-12-11 08:50:06 -05:00
Richard Kenner
f231e307b4 (initialize_for_inline): Handle CONCAT when setting up parmdecl_map.
(expand_inline_function): Make test for overlap of TARGET and args_vals[i]
more conservative.

From-SVN: r6207
1993-12-11 08:33:22 -05:00
Richard Kenner
7f34054628 Add a few missing new nmemonics.
From-SVN: r6206
1993-12-11 07:36:44 -05:00
Richard Kenner
8b4a434166 (modsi3): Move test of exact_log2 into extra condition.
From-SVN: r6205
1993-12-11 07:05:02 -05:00
Richard Kenner
7df83bcec6 (modsi3): Remove unneeded test.
From-SVN: r6204
1993-12-11 07:02:13 -05:00
Richard Kenner
888ae81cc3 (modsi3): Correct predicate on operand 2.
From-SVN: r6203
1993-12-11 06:57:42 -05:00
Mike Stump
57f0a224e6 ls -lt tople
ls -lt tople
	* toplev.c (lang_options): Change -fnodollars-in-identifiers to
	-fno-dollars-in-identifiers to match docs.

From-SVN: r6202
1993-12-11 01:00:57 +00:00
Jim Wilson
b408c3fd00 (yylex): When reading malformed floating point constant,
avoid printing error more than once, and avoid passing malformed
number to subsequent atof call.

From-SVN: r6201
1993-12-10 12:41:43 -08:00
Richard Kenner
6f2f831199 (easy_fp_constant): Use input_operand to see if each word can be
loaded in one insn.

From-SVN: r6200
1993-12-10 07:40:23 -05:00
Richard Kenner
25c341fa21 Change numerous occurrences of TARGET_POWERPC to ! TARGET_POWER and
make related changes.

From-SVN: r6199
1993-12-10 07:23:07 -05:00
Richard Kenner
85644414f9 (modsi3): Rework to operate correctly for both POWER and PowerPC.
From-SVN: r6198
1993-12-10 06:03:23 -05:00
Jim Wilson
34aaacec0e (APPLY_RESULT_SIZE): Define.
From-SVN: r6197
1993-12-08 15:04:10 -08:00
Jim Wilson
dc67e35c1d (untyped_call+1, untyped_call+2): Use std not st for fp
results.

From-SVN: r6196
1993-12-08 15:03:38 -08:00
Richard Kenner
2f1553a4d5 (mark_used_regs, case CLOBBER): Refine previous change to just look at
the address of a MEM inside a CLOBBER.

From-SVN: r6195
1993-12-08 06:17:15 -05:00
Richard Kenner
aae678414b (fold, case *_{DIV,MOD}_EXPR): When using distributive law, take care
when C2 is negative.

From-SVN: r6194
1993-12-08 05:46:16 -05:00
Richard Kenner
a03f67cb3c (mark_used_regs): Look inside a CLOBBER...
(mark_used_regs): Look inside a CLOBBER; it may be the only place regs
are used if it has a stack slot that is from an inlined function.

From-SVN: r6193
1993-12-07 08:45:51 -05:00
Richard Kenner
c3a02afeae (move_block_{to,from}_reg): Check HAVE_{load,store}_multiple value;
don't just #idef the symbol.

From-SVN: r6192
1993-12-06 20:55:51 -05:00
Richard Kenner
77fc931316 (hppa_legitimize_address): If we can't legitimize, do nothing; don't
call abort.

From-SVN: r6191
1993-12-06 08:01:49 -05:00
Richard Kenner
cb778d408a Include ctype.h.
From-SVN: r6190
1993-12-06 07:40:22 -05:00
Richard Kenner
f70bf59ec9 (ASM_OUTPUT_ASCII): 8-bit chars should be zero-extended.
From-SVN: r6189
1993-12-06 07:38:16 -05:00
Richard Kenner
f1b3f5151b (output_ascii_pseudo_op): 8-bit chars should be zero-extended.
From-SVN: r6188
1993-12-06 07:34:53 -05:00
Richard Kenner
f59d43a947 (expand_expr, case PLACEHOLDER_EXPR): Remove top entry from
PLACEHOLDER_LIST when expanding the value in it.

From-SVN: r6187
1993-12-06 07:32:35 -05:00
Doug Evans
3ae243680a (start_sequence): Save current sequence_rtl_expr.
From-SVN: r6186
1993-12-06 10:39:58 +00:00
Richard Kenner
70768eda2a (c_expand_return): Return if convert_for_assignment returns
error_mark_node.

From-SVN: r6185
1993-12-03 07:06:46 -05:00
Richard Kenner
ec044cecc2 Define and protect against __STDDEF_H__ for Irix 5.1.
From-SVN: r6184
1993-12-03 06:48:21 -05:00
Richard Kenner
ff40873a3f (stdio.h): Fix typos (missing quote) in previous change.
From-SVN: r6183
1993-12-03 06:41:47 -05:00
Richard Kenner
0088e8ba35 (ashlsi3, ashrsi3, lshrsi3): Use arith_operand instead of shift_operand.
(ashlsi3, ashrsi3, lshrsi3): Use arith_operand instead of
shift_operand.  Truncate shift counts to 5 bits.

From-SVN: r6182
1993-12-03 06:35:45 -05:00
Richard Kenner
1438de588d (shift_operand): Delete function.
From-SVN: r6181
1993-12-03 06:34:48 -05:00
Richard Kenner
103869f290 (scan_loop): Correct arguments for register check.
From-SVN: r6180
1993-12-02 08:10:43 -05:00
Richard Kenner
629a423896 (push_topmost_sequence, end_sequence): Update sequence_rtl_expr from
sequence_stack entry.

From-SVN: r6179
1993-12-02 07:57:13 -05:00
Richard Kenner
4fc3dcd5d2 (emit_library_call): Use Pmode, not OUTMODE, when passing in structure
address.

From-SVN: r6178
1993-12-02 07:22:47 -05:00
Richard Kenner
0f20ebd10c Preserve _HIDDEN_VA_LIST when changing VA_LIST to DUMMY_VA_LIST.
Change __va_list to __gnuc_va_list.  For AIX 3.2.5.

From-SVN: r6177
1993-12-02 07:06:58 -05:00
Richard Kenner
00f52f2bcf (secondary_reload_class): Kernel regs are in same class as user regs.
From-SVN: r6176
1993-12-02 07:00:18 -05:00
Richard Kenner
b80d1946f8 (movti split): Set CR to 3, not 1 like DImode.
From-SVN: r6175
1993-12-02 06:58:25 -05:00
Richard Kenner
fd72420f23 (find_reloads_toplev): Replace obsolete reference to
BYTE_LOADS_*_EXTEND with LOAD_EXTEND_OP.

From-SVN: r6174
1993-12-02 06:45:55 -05:00
Richard Kenner
bb2049d1b8 (ASM_STABS_OP, ASM_STABN_OP): Define.
(ASM_FILE_END): Put a TAB before the .stabs directive.

From-SVN: r6173
1993-12-02 06:39:06 -05:00
Richard Kenner
3624a67976 (define_function_unit): Restore ppc601 load and fpload timings.
From-SVN: r6172
1993-12-02 06:30:05 -05:00
Richard Kenner
6098b63e5b (STATIC_CHAIN_REGNUM): Use %g2; %g1 is reserved for prologue.
(TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Swap useage of %g1 and %g2.

From-SVN: r6171
1993-11-30 19:29:55 -05:00
Richard Kenner
f74c83fd7a (movdf): Don't need earlyclobber when a register is copied to itself.
From-SVN: r6170
1993-11-30 19:24:29 -05:00
Richard Kenner
5ded5b76a2 (pop_init_level): Ensure never on momentary_obstack when calling
complete_array_type.

From-SVN: r6169
1993-11-27 06:19:03 -05:00
Richard Stallman
9080bb7f04 (scanning files_to_check): Create subdirs files are in.
From-SVN: r6168
1993-11-27 11:11:23 +00:00
Richard Stallman
209c8048bb (cmpsi, cmphi, cmpqi): Handle SGS_CMP_ORDER when outputting cmpm insn.
From-SVN: r6167
1993-11-27 08:53:07 +00:00
Richard Stallman
dc476ce26f (default_compilers): Do define __GNUC_MINOR__ if input is `-'.
From-SVN: r6166
1993-11-26 20:58:04 +00:00
Richard Kenner
32e6ec6f4f (emit-rtl.o): Includes tree.h.
From-SVN: r6165
1993-11-25 18:16:17 -05:00
Richard Kenner
caf6ec996d (expand_start_stmt_expr): Call start_sequence_for_rtl_expr instead of
start_sequence.

From-SVN: r6164
1993-11-25 18:13:11 -05:00
Richard Kenner
ca8142590f (expand_expr, case RTL_EXPR): Call free_temps_for_rtl_expr.
From-SVN: r6163
1993-11-25 18:12:37 -05:00
Richard Kenner
a25c797134 Include tree.h.
(sequence_rtl_expr): New variable.
(save_emit_status, restore_emit_status): Save and restore it.
(init_emit): Initialize it.
(start_sequence_for_rtl_expr): New function.

From-SVN: r6162
1993-11-25 18:11:29 -05:00
Richard Kenner
e7a84011d2 Declare sequence_rtl_expr.
(struct temp_slot): New field rtl_expr.
(assign_stack_temp): Set it from sequence_rtl_expr.
({free,pop}_temp_slots): Don't free any slot with nonzero rtl_expr.
(free_temps_for_rtl_expr): New function.

From-SVN: r6161
1993-11-25 18:10:57 -05:00
Richard Kenner
f55eed9920 (struct sequence_stack): New field sequence_rtl_expr.
(struct function): Likewise.

From-SVN: r6160
1993-11-25 18:10:26 -05:00
Richard Stallman
70fbceeeed (stmp-fixproto): Create include subdir if doesn't exist.
From-SVN: r6159
1993-11-25 22:24:26 +00:00
Richard Kenner
980697fdbe Clean up comment formatting.
From-SVN: r6158
1993-11-25 10:53:19 -05:00
Richard Stallman
b7c9c707a6 (shorten_compare): Correct typo from last change.
From-SVN: r6157
1993-11-24 23:14:43 +00:00
Richard Stallman
535e79835a (save_def_or_dec): Correct typo in change of Nov 23.
(save_def_or_dec): Correct typo in change of Nov 23.  Make
sure pointers within def_dec_p are valid before it is freed.

From-SVN: r6156
1993-11-24 19:33:10 +00:00
Richard Kenner
e287fd6e75 (expand_expr, case ADDR_EXPR): Also pass const0_rtx if necessary, to avoid multiple cleanup runs.
(expand_expr, case ADDR_EXPR): Also pass const0_rtx if necessary, to
avoid multiple cleanup runs.
(expand_expr, case WITH_CLEANUP_EXPR): Pass const0_rtx if necessary,
to keep the recursive call from running the same cleanups twice.
(expand_expr, case TARGET_EXPR): Don't try to add the cleanup if
ignore's non-zero, since we would have already done it.

From-SVN: r6155
1993-11-24 07:02:20 -05:00
Brendan Kehoe
0776af7805 Cygnus<->FSF merge for gcc-2.5.5
From-SVN: r6154
1993-11-24 00:13:59 -05:00
Richard Stallman
692e06f5f2 (function_start_label): New function.
(output_entry_point_die): Use it.
(output_global_subroutine_die, output_local_subroutine_die): Use it.

From-SVN: r6153
1993-11-24 02:20:47 +00:00
Richard Stallman
0ef8d7621c (save_def_or_dec): If function's aux info doesn't end with a closeparen, ignore it.
(save_def_or_dec): If function's aux info doesn't end
with a closeparen, ignore it.
(xmalloc, xrealloc): Cast result of malloc.

From-SVN: r6152
1993-11-24 00:11:19 +00:00
Richard Stallman
9db931afe6 (build_binary_op): Don't accept complex types for max, min, lt, etc.
From-SVN: r6151
1993-11-23 23:10:32 +00:00
Richard Kenner
65753f5598 (rare_destination): Ensure we always correctly handle a null
JUMP_LABEL.

From-SVN: r6150
1993-11-23 18:05:04 -05:00
Richard Kenner
647902e0ab (ASM_SPEC): Pass -linkrelax, not -link-relax.
From-SVN: r6149
1993-11-23 17:48:30 -05:00
Richard Kenner
c4e861e80b (try_combine, simplify_shift_const): Add initializations for some
uninitialized variables.

From-SVN: r6148
1993-11-23 17:43:26 -05:00
Richard Kenner
d66230e738 (arm_backwards_branch): Branching to the current insn is a backwards
branch.

From-SVN: r6147
1993-11-23 17:35:16 -05:00
Richard Kenner
f577532561 (check_format_info): When we have INTEGER_TYPEs...
(check_format_info): When we have INTEGER_TYPEs, save result of
signed_type or unsigned_type for later comparison with the various
forms of char types.

From-SVN: r6146
1993-11-23 17:32:21 -05:00
Richard Stallman
1d42e1b7cf (__bb_exit_func): Fix format %*d -> %*ld.
From-SVN: r6145
1993-11-23 22:01:14 +00:00
Richard Stallman
5bb92565c0 Don't fail to set $$.
From-SVN: r6144
1993-11-23 21:54:55 +00:00
Richard Kenner
adc22a04eb (expand_expr...
(expand_expr, case SAVE_EXPR): Properly recompute the value of
UNSIGNEDP when SAVE_EXPR_RTL is nonzero and we have promoted.

From-SVN: r6143
1993-11-23 15:26:10 -05:00
Richard Stallman
1f17868aa6 (output_local_subroutine_die): Use the function name
from its symbol_ref, not DECL_ASSEMBLER_NAME.

From-SVN: r6142
1993-11-23 09:18:25 +00:00
Richard Stallman
1be0704635 (expand_function_end): New arg END_BINDINGS.
From-SVN: r6141
1993-11-23 06:19:36 +00:00
Richard Stallman
0e5eedfeb0 (finish_function): Pass new arg to expand_function_end.
Don't call expand_end_bindings here.

From-SVN: r6140
1993-11-23 06:19:09 +00:00
Richard Stallman
c31e0b8bb1 (output_inline_function): Pass new arg to expand_function_end.
From-SVN: r6139
1993-11-23 06:18:46 +00:00
Steve Chamberlain
e748c6bd0c *** empty log message ***
From-SVN: r6138
1993-11-22 19:00:28 +00:00
Richard Stallman
f0918db20d (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Use SIZE, not ROUNDED.
(FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Definitions turned off.
(REGISTER_PREFIX, IMMEDIATE_PREFIX): New definitions.
(PARM_BOUNDARY): New definition.

From-SVN: r6137
1993-11-22 03:39:43 +00:00
Richard Kenner
0c8ae3d30b (__enable_execute_stack): Add DolphinOS version.
From-SVN: r6136
1993-11-21 15:38:55 -05:00
Richard Kenner
26d52b3e2c (EXTRA_PARTS): Redefined to also contain gcc.ld.
(gcc.ld): Copied from dolphin.ld.
(X_CFLAGS): Define __m88k__.

From-SVN: r6135
1993-11-21 15:38:01 -05:00
Richard Kenner
e61e33c980 Remove some generated .asm files.
From-SVN: r6134
1993-11-21 15:37:32 -05:00
Richard Kenner
acf19ef524 Initial revision
From-SVN: r6133
1993-11-21 15:37:05 -05:00
Richard Kenner
db2a4d69b7 (SDB_ALLOW_FORWARD_REFERENCES): Define.
(SDB_ALLOW_UNKNOWN_REFERENCES): Define.
(CPP_PREDEFINES): Redefine.
(CPP_DEFAULT): Redefine.
(INITIALIZE_TRAMPOLINE): Redefine.

From-SVN: r6132
1993-11-21 15:31:26 -05:00
Richard Stallman
032b92e553 (LIB_SPEC): Fix the other definition too.
From-SVN: r6131
1993-11-21 11:24:57 +00:00
Richard Stallman
4239762d1f (LIB_SPEC): Use -lm in addition to -lc--not instead of -lc.
From-SVN: r6130
1993-11-21 11:23:36 +00:00
Richard Stallman
2ee370da2a (write_rbrac): Make added declarations conditional
on __cplusplus and nothing else.

From-SVN: r6129
1993-11-21 10:12:08 +00:00
Richard Stallman
f0013113ae (stdio.h): Reenable adding protos for v*printf.
From-SVN: r6128
1993-11-21 10:11:51 +00:00
Richard Stallman
07788bb088 (authdes_create): Delete arg info.
We can't count on having struct sockaddr defined.

From-SVN: r6127
1993-11-21 09:24:43 +00:00
Richard Stallman
e6093ed4f8 (math.h): When deleting inline sqrt and abs,
be flexible about arg name and function body.

From-SVN: r6126
1993-11-21 06:54:47 +00:00
Richard Stallman
700ba19c9c (stmp-fixproto): Never run fixproto twice.
From-SVN: r6125
1993-11-21 06:01:04 +00:00
Jim Wilson
55cd1c090c (warn_if_unused_value): Handle arbitrary number of casts
before a modify.

From-SVN: r6124
1993-11-20 13:51:04 -08:00
Richard Kenner
25f514cb80 (perform_divsi3, perform_modsi3): Add '&' in constraint for DX;
explicitly copy arg arg1 to cx.

From-SVN: r6123
1993-11-20 16:38:20 -05:00
Richard Stallman
7b073ca6c5 (expand_builtin): For sin, cos, fsqrt, alloca, ffs, strlen,
strcpy, memcpy, strcmp, memcmp, if args are bad, use expand_call.

From-SVN: r6122
1993-11-20 09:21:06 +00:00
Richard Stallman
4bc38260fc (write_rbrac): Treat rewinddir like memmove.
From-SVN: r6121
1993-11-20 07:26:48 +00:00
Richard Kenner
a175f87d71 Remove declarations for malloc and realloc.
From-SVN: r6120
1993-11-19 18:51:07 -05:00
Richard Kenner
bbd6cf73c6 (store_field): Convert EXP to MODE before calling store_bit_field.
From-SVN: r6119
1993-11-19 18:48:17 -05:00
Richard Kenner
9061e4cdc9 (expand_complex_abs): Replace some erroneous uses of MODE with
SUBMODE.

From-SVN: r6118
1993-11-19 18:36:25 -05:00
Richard Kenner
2dd484ed8e (force_to_mode): Don't allow sign-extension of constants when we are
narrowing things in an IOR or XOR.

From-SVN: r6117
1993-11-19 18:24:20 -05:00
Jim Wilson
35fc1624ac (output_function_profiler): When TARGET_MINIMAL_TOC,
emit .long instead of .tc.

From-SVN: r6116
1993-11-19 13:42:23 -08:00
Richard Stallman
9d85330726 (movsf+1,2,movdf+1,2): Make 'f' preferred register class.
From-SVN: r6115
1993-11-19 21:07:39 +00:00
Richard Stallman
56f9e2595d (HARD_REGNO_MODE_OK): Allow any mode in general regs.
Float regs may only hold SFmode and DFmode.
(FUNCTION_ARG): Only MODE_INT and MODE_FLOAT with size <= 8 are
passed in registers.
(FUNCTION_ARG_ADVANCE): Update accordingly.
(FUNCTION_ARG_PARTIAL_NREG): Undefine.

From-SVN: r6114
1993-11-19 21:07:14 +00:00
Richard Stallman
e5c1a9d28f When compute DOTS, convert /./ to / to avoid
accidentally converting it to /../.

From-SVN: r6113
1993-11-19 20:19:29 +00:00
Richard Stallman
c3c1218645 Include "tconfig.h" before "runtime.h".
From-SVN: r6112
1993-11-18 08:08:17 +00:00
Richard Kenner
00b14c22f0 (math.h): Add missing quoting of *' when fixing prototype of sqr'.
From-SVN: r6111
1993-11-17 19:15:24 -05:00
Richard Stallman
9d3a34d458 (push_init_level): When aligning next struct field,
make sure there's another field left.

From-SVN: r6110
1993-11-16 13:40:41 +00:00
Richard Kenner
79bdabb4db (movdi): Use 'Q' instead of 'm' for FP.
From-SVN: r6109
1993-11-16 07:15:44 -05:00
Richard Kenner
e560f22692 (EXTRA_CONSTRAINT): New macro.
(SECONDARY_{INPUT,OUTPUT}_RELOAD_CLASS): Disallow unaligned into float regs.

From-SVN: r6108
1993-11-16 07:15:18 -05:00
Richard Stallman
e63a24c8a1 (diff): Don't compare bi-parser.c
From-SVN: r6107
1993-11-16 10:34:26 +00:00
Richard Stallman
39eae9f47a (sdbout_symbol): If non-static var has static-style RTL,
don't output anything for it.

From-SVN: r6106
1993-11-16 10:22:29 +00:00
Richard Stallman
aa988991ba (force_to_mode): Don't do right-shift in a narrower mode.
From-SVN: r6105
1993-11-16 07:20:33 +00:00
Richard Stallman
02b35b12a6 (NO_DOT_IN_LABEL, NO_DOLLAR_IN_LABEL): Defined.
From-SVN: r6104
1993-11-16 06:23:53 +00:00
Richard Stallman
89771b7fb9 Undo previous change.
From-SVN: r6103
1993-11-16 03:11:01 +00:00
Richard Stallman
c28464adaf (stmp-fixproto): Don't depend on xsys-protos.h.
From-SVN: r6102
1993-11-16 03:10:14 +00:00
Richard Stallman
a860f3ceea (REAL_VALUE_TO_DECIMAL): Defined.
From-SVN: r6101
1993-11-15 10:30:16 +00:00
Richard Stallman
11734ce8b4 (RETURN_IN_MEMORY): Define.
From-SVN: r6100
1993-11-15 10:26:25 +00:00
Richard Stallman
fc62385421 (push_init_level, really_start_incremental_init):
Skip any nameless bitfields at start of record.
(process_init_element): Skip any nameless bitfields after the field
just processed.

From-SVN: r6099
1993-11-15 07:20:32 +00:00
Richard Stallman
c110c53d6e (assign_parms): Clear STACK_PARM when we have a
pass-by-pointer parm that we load into a pseudo.

From-SVN: r6098
1993-11-15 05:40:19 +00:00
Richard Kenner
a3579a47d1 (find_basic_blocks): When starting new basic block for a CALL_INSN in the presence of nonlocal labels...
(find_basic_blocks): When starting new basic block for a CALL_INSN in
the presence of nonlocal labels, don't get confused with following
CLOBBER.
(flow_analysis): Use same logic as find_basic_block to see when the
insn after a CALL_INSN starts a new basic block.

From-SVN: r6097
1993-11-14 23:18:24 -05:00
Richard Stallman
b258707c7e (expand_expr): For TRUTH_AND_EXPR...
(expand_expr): For TRUTH_AND_EXPR, TRUTH_OR_EXPR
and TRUTH_XOR_EXPR, if result mode doesn't match operands,
don't use subtarget.

(store_expr): Convert constants to proper mode in two places.

From-SVN: r6096
1993-11-15 02:42:39 +00:00
Richard Stallman
649f35f167 (getmntent): Delete the arg decls
because BSD 4.4 and Sunos disagree on them.

From-SVN: r6095
1993-11-15 02:14:32 +00:00
Richard Stallman
6fa497223b (SECONDARY_INPUT_RELOAD_CLASS):
Moving any kind of integer cst to float reg needs intermediate.

From-SVN: r6094
1993-11-15 02:13:58 +00:00
Richard Stallman
116c9aab44 Test __bsdi__ like __BSD_NET2__.
From-SVN: r6093
1993-11-15 02:08:56 +00:00