Commit Graph

5074 Commits

Author SHA1 Message Date
Richard Stallman
e6157ab48f (main): If -v, print header search dir list.
From-SVN: r5087
1993-08-06 08:24:14 +00:00
Richard Stallman
d3ab975391 (output_init_element): Call default_conversion here.
Set constructor_erroneous, etc., here.
(process_init_element): Not here.

From-SVN: r5086
1993-08-06 07:08:12 +00:00
Richard Stallman
fda59a9a3f Test and define __INT_WCHAR_T_H.
From-SVN: r5085
1993-08-06 05:58:10 +00:00
Richard Stallman
61df2ee2d5 (finish_struct): No pedwarn for field with enum type if size matches int.
(grokdeclarator): No error for void type for extern or global var.

(grokdeclarator): Warn here for volatile fn returning non-void type.
(start_function): Not here.

(grokdeclarator): Don't pass on const and volatile
fron function value type to function type.

From-SVN: r5084
1993-08-06 01:11:37 +00:00
Richard Stallman
d8e29a65dd (attrib): Support attribute volatile' with alias noreturn', and `const'.
(stmt): In an expr stmt, call default_conversion for arrays/functions.

From-SVN: r5083
1993-08-06 01:09:27 +00:00
Richard Stallman
3550617cd5 (decl_attributes): Support attributes `volatile'
with alias `noreturn', and `const'.

From-SVN: r5082
1993-08-06 01:08:12 +00:00
Richard Stallman
d11fdb4528 (output_init_element): Call digest_init before calling output_constant.
(output_init_element): Call digest_init before
calling output_constant.  Always pass 0, 0 for last 2 args
to digest_init.

(build_binary_op): Warn about ordered comparison
between pointers to complete and incomplete types.

(digest_init): No error for a STRING_CST that already
went through digest_init.
(parser_build_binary_op): Generate a NON_LVALUE_EXPR, not NOP_EXPR,
around a constant value.

From-SVN: r5081
1993-08-06 01:07:18 +00:00
Brendan Kehoe
5f11ca4c7e Cygnus<->FSF merge, added g++ driver in C
From-SVN: r5080
1993-08-05 21:01:02 -04:00
Richard Kenner
a638896014 (layout_type): Put size-related nodes in same obstack as type.
From-SVN: r5079
1993-08-05 19:23:52 -04:00
Richard Kenner
d9cbc259b2 (make_node, copy_node): Set TYPE_OBSTACK.
(build_type_variant, build_type_copy, build_pointer_type): Put new node in
same obstack as old node; use push/pop obstacks.

From-SVN: r5078
1993-08-05 19:23:22 -04:00
Richard Kenner
b20e883e39 (TYPE_OBSTACK): New macro.
(struct tree_type): Add new field obstack.

From-SVN: r5077
1993-08-05 19:22:48 -04:00
Richard Kenner
f72ccbe63a (push_reload, find_reloads): Refine when we reload inside a SUBREG by respecting BYTE_LOADS_*_EXTEND...
(push_reload, find_reloads): Refine when we reload inside a SUBREG by
respecting BYTE_LOADS_*_EXTEND; see comments in push_reload.

From-SVN: r5076
1993-08-05 19:17:30 -04:00
Michael Meissner
ebe6d7a7cc Enable .size for elf functions.
From-SVN: r5075
1993-08-05 21:17:07 +00:00
Jeff Law
caa0eccd7b toplev.c (rest_of_compilation): If not optimizing, turn off DECL_INLINE for functions declared as inline.
* toplev.c (rest_of_compilation): If not optimizing, turn off
	DECL_INLINE for functions declared as inline.  Avoid turning on
	DECL_INLINE when -finline-functions is used without -O.

From-SVN: r5074
1993-08-04 23:45:32 -06:00
Richard Stallman
b31a1e3f17 (handler): Check whether c_file and o_file are 0.
From-SVN: r5073
1993-08-05 04:06:59 +00:00
Richard Stallman
956af06945 Comment change.
From-SVN: r5072
1993-08-04 23:18:30 +00:00
Richard Kenner
20748cab1f (eliminate_regs_in_insn): Fix typo in last change.
From-SVN: r5071
1993-08-04 19:12:26 -04:00
Richard Stallman
543624ee23 (movdf+2): Allow `f' register as source operand in
first alternative.

From-SVN: r5070
1993-08-04 22:34:32 +00:00
Richard Kenner
05b4c365bb (eliminate_regs_in_insn): Always do elimination in REG_NOTES if we
changed anything in the insn.

From-SVN: r5069
1993-08-04 18:28:48 -04:00
Richard Kenner
065e678f6e (ASM_FILE_START): Write out two backslashes for each backslash in the
filename.

From-SVN: r5068
1993-08-04 18:05:15 -04:00
Richard Kenner
742f704138 Include gvarargs.h after hconfig.h, like elsewhere.
From-SVN: r5067
1993-08-04 07:34:51 -04:00
Richard Stallman
14553b7569 (process_command): Don't check whether file `-' exists.
From-SVN: r5066
1993-08-04 03:57:21 +00:00
John Hassey
1c66daf534 removed INSTALL_HEADERS= so that fixinc.dgux will work
From-SVN: r5065
1993-08-04 01:49:41 +00:00
John Hassey
5d53a417d7 Initial revision
From-SVN: r5064
1993-08-04 01:47:35 +00:00
Richard Kenner
3a08477ac5 (store_one_arg): Don't pass ARG->STACK as TARGET if it is a different
mode than the expression (i.e., a promoted mode).

From-SVN: r5063
1993-08-03 17:34:43 -04:00
Richard Kenner
377017c491 (code_to_optab): New variable.
(init_optab): Initialize it.

From-SVN: r5062
1993-08-03 17:33:37 -04:00
Richard Kenner
9c951f801e Declare code_to_optab.
From-SVN: r5061
1993-08-03 17:33:11 -04:00
Richard Kenner
6139ff2019 (force_to_mode): Now pass actual AND mask instead of number off;
generalize appropriately.
Move most cases from simplify_and_const_int in.
(simplify_and_const_int): Remove most code from here; call force_to_mode
instead.
(subst, make_extraction, make_compound_operation): Change calls to
force_to_mode.
(make_field_assignment): Likewise.
(simplify_comparison): Add call to force_to_mode when doing a sign bit
comparison.

From-SVN: r5060
1993-08-03 17:31:46 -04:00
Richard Stallman
f5393ab90a (struct undo): Rename rtx' fields to r'.
(undo_all, SUBST, gen_rtx_combine): Corresponding changes.

From-SVN: r5059
1993-08-03 21:27:41 +00:00
Jim Wilson
2a81034fac (block_alloc): Don't attempt to allocate a
SCRATCH if it will not fit in scratch_list.

From-SVN: r5058
1993-08-03 12:38:40 -07:00
Richard Stallman
cf0e292fd0 entered into RCS
From-SVN: r5057
1993-08-03 03:13:17 +00:00
Richard Kenner
5109d49f79 (subst): Move simple operations inside IF_THEN_ELSE if the IF_THEN_ELSE is in the second operand as well as the first.
(subst): Move simple operations inside IF_THEN_ELSE if the IF_THEN_ELSE is in
the second operand as well as the first.
(subst, case NEG): Use plus_constant to make a PLUS.
(subst, case MINUS): Simplify (minus 1 (comparison foo bar)).
(subst, case EQ): Add a number of missing cases where comparisons may be
replaced with arithmetic or logical ops.
(subst, case IF_THEN_ELSE): Handle (if_then_else COND (OP Z C1) Z) in a more
general manner.
(simplify_and_const_int): Make AND with gen_binary in case we can simplify it.

From-SVN: r5056
1993-08-02 18:52:56 -04:00
Richard Stallman
5937bc8428 (CLIB): Fix typo.
From-SVN: r5055
1993-08-02 19:18:17 +00:00
Richard Stallman
5836dc64e2 (substitute_address): In prototype, don't specify
the arg types of the arg functions.

From-SVN: r5054
1993-08-02 19:17:13 +00:00
Richard Stallman
5e24110e65 (expand_call): Check properly for volatile function.
From-SVN: r5053
1993-08-02 04:03:10 +00:00
Richard Stallman
f01d4c3dc8 (ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): Definitions deleted.
From-SVN: r5052
1993-08-01 20:16:30 +00:00
Richard Stallman
04e61bd4dd (PIC_CASE_VECTOR_ADDRESS): Defined.
(GO_IF_LEGITIMATE_ADDRESS): If pic, accept LABEL+INDEX.

From-SVN: r5051
1993-08-01 20:14:21 +00:00
Richard Stallman
19b2fd27ea (do_tablejump): Use PIC_CASE_VECTOR_ADDRESS if defined.
From-SVN: r5050
1993-08-01 20:11:48 +00:00
Richard Stallman
89ef104634 Call default_conversion for NAME.
(build_shared_structure_initializer):
Call default_conversion for NAME.
(add_objc_string): Make an ADDR_EXPR to return.
(init_objc_symtab): Make ADDR_EXPR for UOBJC_SELECTOR_TABLE_decl.

Build all CONSTRUCTORs with types.
(build_constructor): New function.  All CONSTRUCTOR builds changed.
(init_def_list, init_objc_symtab): New arg TYPE.
(init_module_descriptor): Likewise.
(init_objc_symtab): Pass TYPE arg to init_def_list.
(generate_objc_symtab_decl): Pass TYPE arg to init_objc_symtab.
(build_module_descriptor): Pass TYPE arg to init_module_descriptor.
(build_descriptor_table_initializer): New arg TYPE.
(generate_method_descriptors): Pass TYPE arg to
build_descriptor_table_initializer.
(generate_protocols): Pass TYPE arg to build_protocol_initializer.
(uild_protocol_initializer): New arg TYPE.
(build_ivar_list_initializer): New arg TYPE.
(generate_ivar_lists): Pass TYPE arg to build_ivar_list_initializer.
(build_dispatch_table_initializer): New arg TYPE.
(generate_dispatch_tables): Pass TYPE arg to
build_dispatch_table_initializer.
(build_category_initializer): New arg TYPE.
(build_shared_structure_initializer): New arg TYPE.
(generate_category): Pass TYPE arg to build_category_initializer.
(generate_shared_structures): Pass TYPE arg to
build_shared_structure_initializer.

From-SVN: r5049
1993-08-01 05:53:52 +00:00
Richard Stallman
61e215dd1f (process_init_element): Treat string constants specially
only for arrays of integers.

From-SVN: r5048
1993-07-31 20:13:36 +00:00
Richard Stallman
97093ccaa2 (digest_init): Finish getting rid of tail.
Also get rid of old_tail_contents.  Don't set free_tree_list.
(free_tree_list): Var deleted.

From-SVN: r5047
1993-07-31 05:52:40 +00:00
Richard Kenner
33558beb6a (fold...
(fold, case NOP_EXPR): Delete a pair of conversions back to the
original type when intermediate type is at least as wide.

From-SVN: r5046
1993-07-30 19:07:52 -04:00
Richard Kenner
819126a607 (mult_is_very_cheap): Delete.
(mult_cost): Delete.
(init_expmed): Delete computation of mult_cost and mult_is_very_cheap.
(expand_mult): Compute mult_cost here for every constant multiplier.
(synth_mult): Return found algorithms through a struct pointer.

From-SVN: r5045
1993-07-30 06:49:23 -04:00
Richard Kenner
0d4d42c365 Remove change of July 21.
(this_basic_block): New variable.
(combine_instructions): Set it.
(try_combine, distribute_links): Use it and basic_block_head to see if
we've gone to a new basic block instead of trying to reproduce
calculation done in flow.

From-SVN: r5044
1993-07-30 06:47:51 -04:00
Richard Kenner
5eb94e4e8b (expand_return): Don't use jumps for "return x == y" if they are
expensive.

From-SVN: r5043
1993-07-30 06:45:24 -04:00
Richard Stallman
790e949032 (push_init_level): For braces around scalar, just warn.
(process_init_element): Special handling for {"foo"}.
(struct constructor_stack): New field `replacement_value'.
(push_init_level, really_start_incremental_init): Clear new field.
(pop_init_level): Return the replacement_value if any.
At top level in initializer, output that value,
and set the array size from it.

(digest_init): Delete arg TAIL.  Fix all calls.

(convert_for_assignment): Mismatch in signedness
of pointer targets should not inhibit warnings for const mismatch.

From-SVN: r5042
1993-07-30 06:52:04 +00:00
Richard Stallman
6d7512e473 (ffssi2 and ffshi2 recognizers): Generate unique labels by hand.
From-SVN: r5041
1993-07-30 06:46:33 +00:00
Richard Kenner
81d57b8e1d (copy_rtx_and_substitute, case LABEL_REF): If we turn off
LABEL_REF_NONLOCAL_P, increment function_call_count.

From-SVN: r5040
1993-07-29 18:58:13 -04:00
Richard Stallman
b8bb540c81 (CC, OLDCC): Deleted.
From-SVN: r5039
1993-07-29 18:17:52 +00:00
Richard Stallman
f5c081fd9e [__HIGHC__]: Include alloca.h.
From-SVN: r5038
1993-07-29 18:15:59 +00:00