Commit Graph

9287 Commits

Author SHA1 Message Date
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
Torbjorn Granlund
67cd4f83cf (const_uint32_operand): New function.
(const_sint32_operand): New function.

From-SVN: r9306
1995-04-03 22:53:36 +00:00
Richard Kenner
88f63c77d9 (clear_storage, expand_assignment, store_{expr,constructor}): Use ptr_mode instead of Pmode in some places.
(clear_storage, expand_assignment, store_{expr,constructor}): Use ptr_mode
instead of Pmode in some places.
(expand_expr, expand_builtin): Likewise.
(push_block, store_expr): Convert size to Pmode.
(expand_expr, case ADDR_EXPR): Convert from Pmode to ptr_mode.

From-SVN: r9305
1995-04-03 18:12:50 -04:00
Richard Kenner
ea534b63c6 (convert_memory_address): New function.
(memory_address): Call if it needed.
(promote_mode, case POINTER_TYPE): Use Pmode and pointer extension.
(allocate_dynamic_stack_space): Convert size from ptr_mode.

From-SVN: r9304
1995-04-03 18:12:15 -04:00
Richard Kenner
ff0dbdd176 (nonzero_bits, case REG): Check POINTERS_EXTEND_UNSIGNED.
(num_sign_bit_copies, case REG): Likewise.

From-SVN: r9303
1995-04-03 18:11:26 -04:00
Jim Wilson
96ec484f7a (allocate_dynamic_stack_space): Correct typo in last change.
From-SVN: r9302
1995-04-03 15:08:08 -07:00
Jim Wilson
9a4bdb8649 (gen_shifty_op, case ASHIFTRT): Return 0 if shift count is not a constant.
From-SVN: r9301
1995-04-03 15:00:32 -07:00
Jason Merrill
08fda98275 Add -frepo
From-SVN: r9300
1995-04-03 20:37:59 +00:00
Michael Meissner
641916126a Get correct bit offset for big endian (SUBREG (REG))
From-SVN: r9299
1995-04-03 20:19:05 +00:00
Mike Stump
faae18abc2 62nd Cygnus<->FSF merge
From-SVN: r9298
1995-04-03 19:28:01 +00:00
Roland McGrath
684cfb6b2f Include "config/linux.h" instead of "linux.h", to avoid recursion.
From-SVN: r9297
1995-04-03 04:08:34 +00:00
Jim Wilson
c27b5c621a (simplify_relational_operation): Don't simplify A-B for
compare of A and B when the compare is unsigned.

From-SVN: r9296
1995-04-02 14:34:42 -07:00
Richard Kenner
e3124505ec (stdio.h): BSDI 2.0 changed the spelling of _VA_LIST_ to
_BSD_VA_LIST_.

From-SVN: r9295
1995-04-02 08:22:56 -04:00
Richard Kenner
0b1dbf9e61 (default_compilers): Pass -W and -w to gnat1.
From-SVN: r9294
1995-04-02 08:11:46 -04:00
Richard Kenner
6c6923cc2f (STDC_VALUE): Add #undef.
From-SVN: r9293
1995-04-02 07:57:23 -04:00
Richard Kenner
0bcec3673d (chain_member_purpose): New function.
From-SVN: r9292
1995-04-02 07:55:13 -04:00
Richard Kenner
df52f9914d (ASM_FILE_START, LIB_SPEC): Delete from here.
From-SVN: r9291
1995-04-02 07:54:48 -04:00
Richard Kenner
5a57ced09e (RETURN_POPS_ARGS, ENCODE_SECTION_INFO): Call chain_member_purpose, not chain_member_value.
(RETURN_POPS_ARGS, ENCODE_SECTION_INFO): Call chain_member_purpose, not
chain_member_value.
(ASM_FILE_START, LIB_SPEC): Move to here.

From-SVN: r9290
1995-04-02 07:54:18 -04:00
Jason Merrill
293c9fdd72 avoid spurious signed/unsigned comparison warnings.
From-SVN: r9289
1995-04-01 20:18:49 +00:00
Richard Kenner
2a50a79275 (SHELL): New definition.
From-SVN: r9288
1995-04-01 09:46:59 -05:00
Richard Kenner
9e5a8d4760 Remove unneeded fixes relating to __stdcall.
From-SVN: r9287
1995-04-01 09:45:31 -05:00
Richard Kenner
b2d189f4f5 Remove unneeded #define's for non-ANSI functions.
From-SVN: r9286
1995-04-01 09:45:11 -05:00
Richard Kenner
9863b14c26 (LIB_SPEC): Add OLDNAMES.LIB.
From-SVN: r9285
1995-04-01 09:44:55 -05:00
Richard Kenner
4660a9df1d (CPP_PREDEFINES): Add definitions for __stdcall and __cdecl.
From-SVN: r9284
1995-04-01 09:44:35 -05:00
Richard Kenner
783e5bca05 (cse_insn): When emitting a BARRIER, don't put it after a deleted
insn.

From-SVN: r9283
1995-04-01 09:36:47 -05:00
Richard Kenner
a229128df5 (push_reload): Initialize secondary_{in,out}_icode.
From-SVN: r9282
1995-04-01 08:50:50 -05:00
Richard Kenner
665bf3512b (print_multilib_info): Don't use LAST_PATH if not set.
From-SVN: r9281
1995-04-01 08:25:16 -05:00
Richard Kenner
d0d99d5f3e (extv, extzv): Don't use immediate value for operand 1.
From-SVN: r9280
1995-04-01 08:15:54 -05:00
Richard Kenner
cc1f5387e3 (expand_asm_operands): Properly ignore invalid reg in clobber.
From-SVN: r9279
1995-04-01 07:48:19 -05:00
Richard Kenner
25cbb59e7c General code cleanup.
Add prototypes for static functions.
Remove unnecessary casts to (char *); add casts to (U_CHAR *).
Add parentheses suggested by `gcc -Wparentheses'.
Rename local variables as suggested by `gcc -Wshadow'.
<fcntl.h>, <stdlib.h>, <string.h>, <unistd.h>: New includes.
<sys/time.h>, <sys/resource.h>: Include only if defined(RLIMIT_STACK).
<time.h>: Include, unless <sys/time.h> already does.
(HAVE_FCNTL_H, HAVE_STDLIB_H, HAVE_SYS_TIME_H): New symbols.
(HAVE_UNISTD_H, STDC_HEADERS, TIME_WITH_SYS_TIME): Likewise.
(__attribute__, PROTO, VA_START, PRINTF_ALIST, PRINTF_DCL): New macros.
(PRINTF_PROTO{,_1,_2,_3}, DO_PROTO): Likewise.
(bcopy, bzero, bcmp): If #defined by configuration file, use that.
If STDC_HEADERS is defined, use standard C functions.
If BSTRING is defined, or USG and VMS are not defined, use
the C library.  Otherwise, use my_bcopy, my_bzero, my_bcmp.
(localtime): Remove no-longer-necessary explicit declaration.
(getenv, index, rindex): Don't declare explicitly if the appropriate system
eader should declare it.
(fdopen): Remove no-longer-used declaration.
(vprintf): Define a subsitute macro if !defined(HAVE_VPRINTF).
(main): Replace `fdopen (dup (fileno (stdout)), "w"))' with `stdout'.
(get_lintcmd, rescan, create_definition): Use bcmp instead of strncmp when both
operands are known to be free of null bytes.
(check_macro_name, compare_defs, collect_expansion): Likewise.
(do_assert, compare_token_lists, assertion_lookup, do_line): Likewise.
(skip_if_group, lookup): Likewise.
(rescan): Remove unused label `startagain'.
Abort instead of printing nonsense if the stack is corrupted when there was an
unterminated successful conditional.
(pcfinclude): Include explicit double-cast through GENERICPTR to identify
particularly egregious type puns.
(create_definition, do_define, check_macro_name): Use %.*s printf format to
avoid painful copying-and-casting.
(do_once): Return void, not (unused) int.
(do_ident, do_pragma, do_sccs): Accept extra arguments so that all
directive-handler's types match.
(do_sccs): Define only if SCCS_DIRECTIVE is defined.
(skip_if_group, dump_single_macro): Add `default: break;' to keep -Wswitch
happy.
(error, warning, error_with_line, vwarning_with_line, pedwarn): Use
stdarg/vararg/vfprintf instead of passing bogus char * args around.
(pedwarn_with_line, pedwarn_with_file_and_line, fatal):  Likewise.
(verror, vwarning, verror_with_line, vwarning_with_line): New fcns.
(dump_single_macro): Abort if ap points to garbage.
(make_definition, make_undef, make_assertion): Parameter now char *.
(xmalloc, xrealloc, xcalloc, savestring, index0): Make sizes size_t
instead of unsigned; make pointer parameters GENERICPTR, not char *.
(xcalloc): Use bzero to clear memory instead of using own loop.

From-SVN: r9278
1995-04-01 07:02:06 -05:00
Richard Kenner
3378918eed Remove #include of machine/ansi.h.
From-SVN: r9277
1995-03-31 18:34:12 -05:00
Ken Raeburn
b24b1d788c (umul_ppmm mc68000): Use %# instead of #.
From-SVN: r9276
1995-03-31 16:37:52 +00:00
Michael Meissner
566cdc73b6 Add -fpack-struct.
From-SVN: r9275
1995-03-31 14:35:03 +00:00
Richard Kenner
7b09543e23 Initial revision
From-SVN: r9274
1995-03-31 08:40:10 -05:00
Richard Kenner
9f6c07883f Fix premature close comment.
From-SVN: r9273
1995-03-31 08:26:01 -05:00
Richard Kenner
b50a024db7 (expand_asm_operands): Properly handle output that can't be directly
written into.

From-SVN: r9272
1995-03-31 08:19:01 -05:00
Richard Kenner
d161fae48b (init_attributes): A_FORMAT is only for decls.
From-SVN: r9271
1995-03-31 07:26:28 -05:00
Richard Kenner
af6f30c465 (structsp): Correct error in last change.
From-SVN: r9270
1995-03-31 07:26:06 -05:00
Jason Merrill
7e6f1890c8 Remove explicit 0-initializations of static variables.
From-SVN: r9269
1995-03-30 23:51:30 +00:00
Jim Wilson
d6c8056260 (get_last_value): Revert back to use prev_nonnote_insn instead of prev_real_insn.
(get_last_value): Revert back to use prev_nonnote_insn
instead of prev_real_insn.  Modify test that ignores USE insns.

From-SVN: r9268
1995-03-30 15:34:12 -08:00
Jim Wilson
1ff5cbcd76 (SELECT_SECTION): Apply constant DECL_INITIAL test only to DECLs.
From-SVN: r9267
1995-03-30 15:25:51 -08:00
Richard Kenner
17ca38a2b9 (warn_if_unused_value): Add declaration.
From-SVN: r9266
1995-03-30 18:22:33 -05:00
Richard Kenner
150a992a67 (make warn_if_unused_value): No longer static.
From-SVN: r9265
1995-03-30 18:22:05 -05:00