Richard Kenner
da51a4782b
General code cleanup in the style of 1995-04-01 change.
...
Add prototypes for static functions.
Add parentheses suggested by `gcc -Wparentheses'.
Use `long' uniformly, instead of long, int, HOST_WIDE_INT mess.
(struct constant): Use `signedp' flag (with sign bit) instead of
`unsignedp' flag; it's a little more convenient.
(HAVE_STDLIB_H, STDC_HEADERS, LONG_MASK, __attribute__, PROTO,
VA_START, PRINTF_ALIST, PRINTF_DCL, PRINTF_PROTO, PRINTF_PROTO_1,
vfprintf, SIGNED, UNSIGNED): New symbols.
<stdlib.h>: Include if HAVE_STDLIB_H.
<string.h>: New include.
(HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Remove.
(yylex, yyerror, expression_value, parse_number,
initialize_random_junk): Now static.
(overflow_sum_sign): Renamed from possible_sum_sign, with an
extra arg SIGNEDP.
(parse_number): Inline strcmp when checking for "0x".
(yylex): Keep track of mask needed when decoding wide characters.
(parse_escape): New arg RESULT_MASK; use it instead of
assuming char width.
(yylex, parse_escape, parse_c_expression): Store all host
integers as long, not int or HOST_WIDE_INT.
(left_shift): No need to do signed left shifts separately.
These changes are for the test program (if TEST_EXP_READER):
(pedantic, traditional): Allocate storage.
(main): Set pedantic, traditional, yydebug depending on args.
(is_hor_space, warning, lookup): Change types and implementation
to match rest of program.
(pedwarn, check_assertion, xmalloc): New functions.
From-SVN: r11024
1996-01-16 09:42:30 -05:00
Richard Kenner
2994a9acb7
(skip_quoted_string): If pedantic and not pedantic_errors,
...
skipped multiline strings elicit a warning, not an error.
(rescan): Minor code reorg to keep it parallel with skip_quoted_string.
From-SVN: r11023
1996-01-16 09:33:52 -05:00
Richard Kenner
e28ea75bd1
(extract_bit_field): Don't abort if not MEM_IN_STRUCT_P.
...
From-SVN: r11022
1996-01-16 09:09:47 -05:00
Richard Kenner
15c577a80f
(left_shift_overflows): Remove; unused.
...
From-SVN: r11021
1996-01-16 08:56:11 -05:00
Richard Kenner
3298a1b11f
(memref_referenced_p, case REG): Fix last change.
...
From-SVN: r11020
1996-01-16 08:51:43 -05:00
Richard Kenner
36102b210e
(const_binop): Strip NOPS from both args.
...
From-SVN: r11019
1996-01-16 08:42:19 -05:00
Richard Kenner
43e046cbc1
(emit_move_insn_1): Don't emit clobber when moving by parts and source
...
equals destination.
From-SVN: r11018
1996-01-16 08:21:16 -05:00
Richard Kenner
3e53ea4860
(expand_fix): Don't copy TARGET to TO if same.
...
From-SVN: r11017
1996-01-16 08:20:15 -05:00
Richard Kenner
995d54ddbc
(regclass): Remove useless cast.
...
From-SVN: r11016
1996-01-16 08:08:21 -05:00
Richard Kenner
8ef376a9b5
(convert_for_assignment): Don't automatically convert from a union
...
member to the union.
From-SVN: r11015
1996-01-16 07:05:47 -05:00
Richard Kenner
96f158f7bd
(ASM_OUTPUT_SECTION_NAME): Define section attributes only when a
...
section is defined the first time.
From-SVN: r11014
1996-01-16 06:25:50 -05:00
Richard Kenner
5aee39a517
(ASM_WEAKEN_LABEL): Deleted; not supported.
...
From-SVN: r11013
1996-01-16 06:03:20 -05:00
Richard Kenner
d33fc50c39
Add test for SCO Open Server 5.
...
From-SVN: r11012
1996-01-15 20:59:42 -05:00
Richard Kenner
de93b35508
(sco5): New case.
...
From-SVN: r11009
1996-01-15 20:58:43 -05:00
Richard Kenner
8512c0f4b1
Add CRTSTUFF_CFLAGS_S.
...
From-SVN: r11008
1996-01-15 20:58:04 -05:00
Richard Kenner
fdec1d3005
Initial revision
...
From-SVN: r11007
1996-01-15 20:57:28 -05:00
Richard Kenner
38b3fa0818
(LIBGCC2_CLFAGS): Add -DIN_LIBGCC2.
...
(libgcc1.a): Add -DIN_LIBGCC1.
(stamp-crtS): remove -fpic, use CRTSTUFF_CFLAGS_S
From-SVN: r11006
1996-01-15 20:56:34 -05:00
Richard Kenner
0bdab7ff71
(ASM_SPEC): New macro.
...
From-SVN: r11005
1996-01-15 20:44:08 -05:00
Richard Kenner
5fc08cad60
(process_commands): Remove inadvertant fallthrough.
...
From-SVN: r11004
1996-01-15 20:36:45 -05:00
Richard Kenner
5cfac96e55
(finish_incomplete_decl): Warn if completing an array that wasn't declared extern.
...
(finish_incomplete_decl): Warn if completing an array that wasn't
declared extern. Simplify test for whether completion is needed.
From-SVN: r11003
1996-01-15 20:05:06 -05:00
Doug Evans
3c71736a3c
Update coprygith.
...
From-SVN: r11002
1996-01-15 22:28:18 +00:00
Doug Evans
8e20a7c25c
Update copyright.
...
From-SVN: r11001
1996-01-15 22:27:41 +00:00
Doug Evans
24462b5c6a
Updatee copyright.
...
From-SVN: r11000
1996-01-15 22:26:22 +00:00
Doug Evans
05a81fe58a
c-lex.c (check_newline): Pass character after `#pragma' to HANDLE_PRAGMA.
...
* c-lex.c (check_newline): Pass character after `#pragma' to
HANDLE_PRAGMA. Don't call get_directive_line if at end of line.
* c-common.c (get_directive_line): Watch for EOF.
* h8300/h8300.h (HANDLE_PRAGMA): New argument `c'.
Must issue `return' now.
* i960/i960.h (HANDLE_PRAGMA): Likewise.
* sh/sh.h (HANDLE_PRAGMA): Likewise.
* nextstep.h (HANDLE_PRAGMA): Likewise.
* h8300/h8300.c (handle_pragma): New argument `ch'.
Simplify pragma processing. Delete support for `#pragma section'.
* i960/i960.c (process_pragma): New argument `c'. Change result to
terminating character.
* nextstep.c (handle_pragma): Likewise.
* sh/sh.c (handle_pragma): Likewise. Also simplified.
From-SVN: r10999
1996-01-15 22:25:24 +00:00
Doug Evans
9298a6b0eb
sched.c (reemit_notes): Add prototype.
...
* sched.c (reemit_notes): Add prototype.
(sched_analyze_2): Reorganize comments. Call prev_nonnote_insn.
(sched_analyze): Add abort call.
(schedule_block): Undo last patch. Call prev_nonnote_insn.
Move call of reemit_notes to after SCHED_GROUP_P scheduling.
Set `head' to `last'.
From-SVN: r10998
1996-01-15 21:56:13 +00:00
Michael Meissner
0f64530277
Fix little endian adddi3/subdi3
...
From-SVN: r10997
1996-01-15 21:53:30 +00:00
Roland McGrath
968ad7cfe2
Initial revision
...
From-SVN: r10996
1996-01-15 21:20:17 +00:00
Richard Kenner
d09699ddcf
Allocate address areas for the "stab" and "stabstr" sections.
...
From-SVN: r10995
1996-01-15 15:30:44 -05:00
Richard Kenner
7609251b66
Allocate address areas for the "stab" and "stabstr" sections.
...
From-SVN: r10994
1996-01-15 15:15:52 -05:00
Richard Kenner
b02ab63aa4
({,round_}trampoline_address): TRAMPOLINE_ALIGNMENT is in bits, not
...
bytes.
From-SVN: r10993
1996-01-15 14:57:49 -05:00
Richard Kenner
e20566775f
(do_xifdef): Warn about `#ifdef 0' if not traditional; formerly the
...
warning was issued if not pedantic.
From-SVN: r10992
1996-01-15 14:38:51 -05:00
Michael Meissner
58a0888230
Don't make .sbss2 a @nobits section.
...
From-SVN: r10991
1996-01-15 18:28:12 +00:00
Richard Kenner
605bf7304d
(objc_{write,read}_type, case _C_STRUCT_B): Fix typo.
...
From-SVN: r10990
1996-01-15 12:31:49 -05:00
Richard Kenner
3d27140a15
(expand_expr, case COMPONENT_REF): Don't make recursive call on object
...
with EXPAND_SUM.
From-SVN: r10989
1996-01-15 10:02:59 -05:00
Richard Kenner
acc3b6d90a
(pushdi): Allow "i" for operand 1.
...
(extendqidi2): Improve 68000 code generation.
(adddi_lshrdi_63): New pattern.
From-SVN: r10988
1996-01-15 08:49:58 -05:00
Richard Kenner
046693f3e1
Initial revision
...
From-SVN: r10987
1996-01-15 08:38:00 -05:00
Richard Kenner
311519df05
(INSTALL_ASSERT_H): Unset it.
...
From-SVN: r10986
1996-01-15 08:37:29 -05:00
Richard Kenner
8baa67d994
(STARTFILE_SPEC): Use crtbegin.o for both shared llibrary and normal executable; use gcrt1.o for -profile.
...
(STARTFILE_SPEC): Use crtbegin.o for both shared llibrary and normal
executable; use gcrt1.o for -profile.
(ENDFILE_SPEC): Use crtend.o for shared llibrary and normal executable.
From-SVN: r10985
1996-01-15 08:31:41 -05:00
Richard Kenner
503388d49b
(LIB_SPEC): Remove %{mieee-fp:-lieee}.
...
Use -lc_p for -profile.
(CC1_SPEC): New macro.
From-SVN: r10984
1996-01-15 08:28:30 -05:00
Richard Kenner
274351baa6
(in_data_section): New function.
...
From-SVN: r10983
1996-01-15 07:40:55 -05:00
Richard Kenner
ec9aa89501
(build_c_cast): Don't warn about alignment when we have an opaque type.
...
From-SVN: r10982
1996-01-15 07:36:59 -05:00
Richard Kenner
bd5f6d441a
(find_equiv_reg): Apply single_set, not PATTERN, to WHERE.
...
From-SVN: r10981
1996-01-15 07:22:46 -05:00
Richard Kenner
2142b2d5d6
(mark_referenced_resources, case TRAP_IF): Set volatil.
...
From-SVN: r10980
1996-01-15 07:02:10 -05:00
Richard Kenner
5b4ddd855b
(save_expr_regs): Delete declaration; unused.
...
From-SVN: r10979
1996-01-15 06:20:22 -05:00
Michael Meissner
e1f83b4dcd
make exception table work with -mrelocable; fix long long ++/--; Make long longs passed correctly in V.4
...
From-SVN: r10978
1996-01-15 03:07:35 +00:00
Jeff Law
ff9b5bd87c
* expr.c (expand_assignment): Fix alignment parm in emit_block_move.
...
From-SVN: r10977
1996-01-14 18:34:36 -07:00
Jim Wilson
1c3f2e007c
(save_for_inline_copying, case NOTE): Copy RTX_INTEGRATED_P bit.
...
From-SVN: r10976
1996-01-14 16:57:18 -08:00
Jim Wilson
d6837949c3
(schedule_block): Copy RTX_INTEGRATE_P bit when create a new note.
...
From-SVN: r10975
1996-01-14 15:59:52 -08:00
Richard Kenner
f395cd861e
(stupid_find_reg): Don't try to allocate reg if live over more than
...
5,000 insns.
From-SVN: r10974
1996-01-14 17:57:47 -05:00
Jeff Law
981e5cd940
* pa.h (STACK_BOUNDARY): Bring back down to 64bits.
...
From-SVN: r10973
1996-01-13 23:03:38 -07:00