Commit Graph

157 Commits

Author SHA1 Message Date
Richard Kenner
c470260b41 (grokdeclarator): Properly validate __complex__ and create the various
kinds of complex integer types.

From-SVN: r6311
1993-12-25 07:52:49 -05: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 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
cbee980e82 (finish_enum): Undo previous change.
From-SVN: r5997
1993-11-04 19:39:42 +00:00
Richard Stallman
5c28da2454 (finish_enum): Always make an enum signed if it will fit.
From-SVN: r5996
1993-11-04 19:38:34 +00:00
Richard Stallman
708e813b0c (finish_function): If rest_of_compilation set DECL_INITIAL
to null, leave it null.

From-SVN: r5943
1993-10-30 08:33:30 +00:00
Richard Stallman
b4d4e33ddd (finish_decl): After preserve_initializer call, set
TREE_PERMANENT bit in initializer.

From-SVN: r5800
1993-10-19 03:19:18 +00:00
Richard Stallman
70efc776c8 (finish_decl): Error if block-scope static var has incomplete type.
(complete_array_type): Correctly set MAXINDEX to one less than array size.

From-SVN: r5672
1993-10-08 04:59:33 +00:00
Richard Stallman
20bf3fac14 (complete_array_type): Correctly set MAXINDEX to one less than array size.
From-SVN: r5670
1993-10-08 01:49:18 +00:00
Richard Kenner
561d994ff6 (init_decl_processing): Call init_function_format_info.
From-SVN: r5606
1993-10-05 15:13:36 -04:00
Richard Stallman
7e4849dad4 (init_decl_processing): Use signed_type and unsigned_type
to set signed_wchar_type_node and unsigned_wchar_type_node.

From-SVN: r5504
1993-09-28 02:01:48 +00:00
Richard Stallman
55b4742bf3 (flag_allow_single_precision): New variable.
(c_decode_option): Handle -fallow-single-precision.

From-SVN: r5425
1993-09-23 02:04:32 +00:00
Richard Stallman
ecd4cee03c (complete_array_type): Handle TREE_PURPOSE of array constructor elements.
From-SVN: r5316
1993-09-13 20:17:48 +00:00
Richard Stallman
75b4643788 (build_enumerator): Choose type properly for wide constants.
(finish_enum): Always set type of the enumerators to the enum type.

From-SVN: r5271
1993-09-07 12:26:20 +00:00
Richard Stallman
eaf2e788fd (grokdeclarator): For PARM_DECLs, only call
c_build_type_variant is constp or volatilep is true.

From-SVN: r5263
1993-09-05 22:35:15 +00:00
Richard Kenner
25a1019f18 (build_enumerator): Apply default conversion to constant-expression.
From-SVN: r5258
1993-09-03 19:02:27 -04:00
Jim Wilson
549a367ad6 (finish_decl): For static const variables, preserve
initializers instead of discarding them.

From-SVN: r5245
1993-09-01 15:59:32 -07:00
Richard Kenner
18192b41d2 (struct c_function): Remove unneeded enum_next_value.
(push_c_function_context, pop_c_function_context): Don't save it.

From-SVN: r5230
1993-08-31 06:25:38 -04:00
Richard Kenner
fd48df3e75 (get_parm_info...
(get_parm_info, store_parm_decls): If PROMOTE_PROTOTYPE, promote all
integral types shorter than int, including short enums.

From-SVN: r5228
1993-08-30 16:13:42 -04:00
Michael Meissner
6e026f481e Do not report -Wnested-extern errors for __FUNCTION__/__PRETTY_FUNCTION__.
From-SVN: r5146
1993-08-12 21:14:02 +00:00
Doug Evans
6706083e3a c-decl.c (init_decl_processing): Make long long available to | use for SIZE_TYPE and PTRDIFF_TYPE.
* c-decl.c (init_decl_processing): Make long long available to
|       use for SIZE_TYPE and PTRDIFF_TYPE.

From-SVN: r5101
1993-08-07 19:50:59 +00:00
Richard Stallman
f3b4fb6ec8 (finish_decl): Allow file-scope static incomplete array.
From-SVN: r5094
1993-08-07 08:48:29 +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
1c5334be7d Fix typo in last change.
From-SVN: r5036
1993-07-29 02:33:32 +00:00
Richard Stallman
6df4a7b923 (start_function): Warn if volatile fn returns non-void.
From-SVN: r5022
1993-07-28 17:45:51 +00:00
Bill Cox
27d433a267 Fix print_lang_decl and print_lang_type function headers.
From-SVN: r4988
1993-07-26 18:09:09 +00:00
Jim Wilson
6f65afb0df (insert_block): Correct typo in comment.
From-SVN: r4869
1993-07-06 15:23:54 -07:00
Richard Stallman
ec820a12da (duplicate_decls): Don't warn for non-extern var decl
following an extern one (for -Wredundant-decls).

From-SVN: r4856
1993-07-06 06:12:49 +00:00
Richard Kenner
47df02623a (poplevel): Start new function context when writing inline function.
From-SVN: r4755
1993-06-26 11:21:20 -04:00
Richard Kenner
a34731a692 (init_decl_processing): When making SIZETYPE, start with name in SIZE_TYPE.
(init_decl_processing): When making SIZETYPE, start with name in
SIZE_TYPE.  If -traditional, use a signed version of that type, if it
is unsigned.

From-SVN: r4752
1993-06-26 11:15:29 -04:00
Richard Stallman
a419ff54d6 (c_decode_option): Handle -fdollars-in-identifiers.
From-SVN: r4728
1993-06-25 18:01:20 +00:00
Richard Stallman
f537a5c50f (grokdeclarator): Avoid the use of macros for ..._TYPE
nodes in cases where a parameter's type is error_mark_node.

From-SVN: r4708
1993-06-22 06:07:19 +00:00
Richard Stallman
eda115ddc4 (finish_decl): Don't modify DECL_INITIAL of a PARM_DECL.
From-SVN: r4662
1993-06-11 17:32:08 +00:00
Richard Stallman
a2469305ae (pushdecl): Copy DECL_FRAME_SIZE for inline function decls.
From-SVN: r4639
1993-06-05 20:32:28 +00:00
Richard Stallman
d575f110ff (finish_decl): If type is laid out, but decl is not, call layout_decl.
From-SVN: r4572
1993-05-26 04:22:32 +00:00
Richard Stallman
f4e5900810 (complete_array_type): Delete the code to call change_main_variant.
From-SVN: r4446
1993-05-14 04:36:34 +00:00
Richard Stallman
e1fe03e98f (complete_array_type): Call change_main_variant.
(complete_array_type): Make maxindex -1 for empty constructor.

From-SVN: r4417
1993-05-11 04:37:41 +00:00
Jim Wilson
50e658546e (grokdeclarator, ARRAY_REF case): Build array type, and
then build the variant array type.

From-SVN: r4314
1993-05-03 17:10:51 -07:00
Richard Kenner
32831d4b72 (pushdecl): Don't make a copy of type of error_mark_node.
From-SVN: r4238
1993-04-26 18:47:48 -04:00
Richard Kenner
e09d75bd97 (init_decl_processing): Last arg to __builtin_apply is size_t, not int.
From-SVN: r4214
1993-04-25 12:59:28 -04:00
Richard Kenner
773edaeff2 (shadow_tag_warned): Let warned have three values, so that a mere warning doesn't prevent a pedwarn.
(shadow_tag_warned): Let warned have three values, so that a mere
warning doesn't prevent a pedwarn.  Don't skip the error call at the
end on accounted of warned.

From-SVN: r4203
1993-04-23 19:27:20 -04:00
Richard Kenner
6a5ed5bf13 (push_parm_decl): Turn off warning when parameter shadows typedef.
From-SVN: r4202
1993-04-23 19:18:52 -04:00
Richard Stallman
06038f1264 (finish_struct): Promote unsigned bitfield to signed int
if the field isn't as wide as an int.

From-SVN: r4178
1993-04-18 03:35:35 +00:00
Richard Kenner
6b2a374b2c (pop_label_level, combine_parm_decls): Correct args in error calls.
From-SVN: r4132
1993-04-13 16:56:37 -04:00
Tom Wood
abe31bf86e > (grokfield): Check for statically allocated objects.
From-SVN: r4065
1993-04-09 23:10:58 +00:00
Richard Stallman
fbe23ee741 (finish_enum): Store layout results into variant types.
From-SVN: r4045
1993-04-09 00:00:06 +00:00
Richard Stallman
39ab948e9d (start_function): Inhibit missing prototype warning for `main'.
From-SVN: r4038
1993-04-06 22:07:51 +00:00
Per Bothner
f062da046b c-decl.c (lookup_name_current_level): Make non-static.
From-SVN: r4020
1993-04-04 23:59:02 -07:00
Richard Stallman
42f00318ab (store_parm_decls): Use pedwarn for "promoted arg doesn't
match prototype" warning.

From-SVN: r3908
1993-03-29 04:49:21 +00:00
Tom Wood
efb993178b *** empty log message ***
From-SVN: r3843
1993-03-23 12:53:46 +00:00