Commit Graph

10932 Commits

Author SHA1 Message Date
Doug Evans
4a5891aff9 (v9 INIT_CUMULATIVE_ARGS): Fix typos.
From-SVN: r11062
1996-01-18 00:14:51 +00:00
Paul Eggert
78ae7d8040 (HOST_WIDE_INT_MASK): Renamed from LONG_MASK; use HOST_WIDE_INT.
(HOST_WIDE_INT, HOST_BITS_PER_WIDE_INT): New (actually resuscitated) macros.
(parse_c_expression, expression_value, parse_escape, left_shift, right_shift,
struct constant, exp, parse_number, yylex): Replace `long' with
`HOST_WIDE_INT'.

From-SVN: r11061
1996-01-18 00:12:52 +00:00
Paul Eggert
047380ca13 (PTR_INT_TYPE): Remove obsolete define to `long'.
(parse_escape, parse_c_expression, eval_if_expression, get_lintcmd, do_line,
do_if, do_elif): Replace `long' with `HOST_WIDE_INT'.
(trigraph_pcp): Don't assume a pointer difference fits in an int.

From-SVN: r11060
1996-01-18 00:12:52 +00:00
Jim Wilson
34ea783bd5 (extract_bit_field): For multi-word bitfield, clobber target before
storing to it.

From-SVN: r11059
1996-01-17 15:56:06 -08:00
Doug Evans
b52ef430a3 Recognize go32* as an os.
From-SVN: r11044
1996-01-17 23:54:58 +00:00
Doug Evans
f8743a9303 Update copyright address.
From-SVN: r11043
1996-01-17 23:53:33 +00:00
Doug Evans
85a9f41b14 Initial revision
From-SVN: r11042
1996-01-17 23:52:27 +00:00
Richard Stallman
82732e5f7a Default OS to nextstep if machine vendor is Next.
-ns2 is an alias for -nextstep.

From-SVN: r11041
1996-01-17 22:40:42 +00:00
Doug Evans
47851d2ccd {t-sol2,t-sunos40,t-sunos41}: Define away LIBGCC1_TEST so that cross compilers targeted at these systems will...
* sparc/{t-sol2,t-sunos40,t-sunos41}: Define away LIBGCC1_TEST
	so that cross compilers targeted at these systems will build.

From-SVN: r11040
1996-01-17 22:38:27 +00:00
Mike Stump
be99da7733 78th Cygnus<->FSF merge
From-SVN: r11039
1996-01-17 18:57:55 +00:00
Doug Evans
3a26543176 gcc.c (process_command): New local lang_n_files, and use it in test of -c with -o.
* gcc.c (process_command): New local lang_n_files, and use
	it in test of -c with -o.  Move test of -save-temps.
	Test for trailing NUL in -c.

From-SVN: r11038
1996-01-17 14:51:41 +00:00
Richard Kenner
5b65a74fb5 (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Put back.
(pcfinclude): Use HOST_WIDE_INT for casting pointer to integer.

From-SVN: r11037
1996-01-17 07:47:23 -05:00
Richard Kenner
e18c4cfeb8 Update comments.
From-SVN: r11036
1996-01-17 07:28:48 -05:00
Jeff Law
7b5311b193 * va-pa.h (__gnuc_va_list): Use a "void *".
From-SVN: r11035
1996-01-17 03:26:27 -07:00
Per Bothner
a4a315ef52 cppexp.c (cpp_lex): Do cpp_pop_buffer after CPP_POP so retried cpp_skip_hspace will actually work.
* cppexp.c (cpp_lex):  Do cpp_pop_buffer after CPP_POP so retried
cpp_skip_hspace will actually work.
* cppexp.c (SKIP_OPERAND):  New macro.
(cpp_parse_expr):  Suppress evaluation and diagnostics in
unevaluated subexpressions.

From-SVN: r11034
1996-01-16 15:46:59 -08:00
Mike Stump
9ba73d3880 expr.c (expand_expr, [...]): Make sure cleanups live on the function_obstack as they are used by the...
* expr.c (expand_expr, case COND_EXPR): Make sure cleanups live on
	the function_obstack as they are used by the exception handling code.
	(defer_cleanups_to): Ditto.
	(TRUTH_ANDIF_EXPR): Ditto.
	(TRUTH_ORIF_EXPR): Ditto.
Fixes eh43.C

From-SVN: r11033
1996-01-16 22:40:15 +00:00
Jim Wilson
f14c3e3d87 (new_include_prefix): Ignore ENOTDIR error from stat.
From-SVN: r11032
1996-01-16 10:56:29 -08:00
Doug Evans
7e245bad44 t-sol2 (crt[1in].o): Add missing -c.
* i386/t-sol2 (crt[1in].o): Add missing -c.
	* sparc/t-sol2 (crt[1in].o,gcrt1.o): Likewise.
	Source files are assembler.

From-SVN: r11031
1996-01-16 18:51:39 +00:00
Doug Evans
ed846da308 (do_spec_1, case 'W'): Rename local index' to cur_index' to avoid warning
on solaris.

From-SVN: r11030
1996-01-16 17:18:36 +00:00
Ian Lance Taylor
3c35520e75 Use dbxcoff.h
From-SVN: r11029
1996-01-16 16:51:49 +00:00
Ian Lance Taylor
1c940b476e Update copyright
From-SVN: r11028
1996-01-16 16:49:43 +00:00
Ian Lance Taylor
9480420717 Use dbxcoff.h
From-SVN: r11027
1996-01-16 16:44:22 +00:00
Ian Lance Taylor
e786ce5529 Initial revision
From-SVN: r11026
1996-01-16 16:39:57 +00:00
Richard Kenner
9c57488b49 (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Remove.
(parse_escape, parse_c_expression, eval_if_expression):
Change return type to `long'; all callers changed.
(pcfinclude): Use `int', not HOST_WIDE_INT; any integral type will do.

From-SVN: r11025
1996-01-16 09:42:55 -05:00
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