aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
AgeCommit message (Collapse)AuthorFilesLines
1997-09-26c-typeck.c (build_binary_op): Warn about comparing signed vs unsigned if...Paul Eggert1-3/+3
* c-typeck.c (build_binary_op): Warn about comparing signed vs unsigned if -W is specified and -Wno-sign-compare is not. * c-decl.c (warn_sign_compare): Initialize to -1. (c_decode_option): -Wall no longer implies -Wsign-compare. From-SVN: r15739
1997-09-10dwarf2 EH supportJason Merrill1-1/+36
From-SVN: r15255
1997-08-29pa.md (reload_peepholes): Make sure operand is a REG before examining REGNO.Jeffrey A Law1-19/+0
* pa.md (reload_peepholes): Make sure operand is a REG before examining REGNO. Allow general registers too. Fixes sporatic c-torture failure. Remove last change to fold-const.c and c-decl.c From-SVN: r15000
1997-08-27c-decl.c (grokdeclarator): If array index or size calculations overflow, ↵Doug Evans1-0/+19
issue an error. * c-decl.c (grokdeclarator): If array index or size calculations overflow, issue an error. * fold-const.c (int_const_binop): New static function. (const_binop, size_binop): Call it. Brought over from the fsf. From-SVN: r14967
1997-08-11Initial revisionmisc/cutover-egcs-1Jeff Law1-8/+17
From-SVN: r14764
1997-08-02parmlist_tags_warning): Only suppress warning on union if anonymous.Richard Kenner1-1/+1
From-SVN: r14638
1997-08-02(init_decl_processing): Add __builtin_aggregate_incoming_address.Richard Kenner1-0/+4
From-SVN: r14609
1997-07-19c-decl.c (duplicate_decls): Set DECL_ABSTRACT_ORIGIN to olddecl if inline ↵Doug Evans1-0/+2
function and not new definition. * c-decl.c (duplicate_decls): Set DECL_ABSTRACT_ORIGIN to olddecl if inline function and not new definition. From-SVN: r14480
1997-06-09(complete_array_type): Remove obsolete references to change_main_variant.Richard Kenner1-6/+0
From-SVN: r14197
1997-04-25xJason Merrill1-1/+0
From-SVN: r13979
1997-04-13(c_decode_option): Ignore -Wundef, -Wno-undef.Richard Kenner1-0/+4
From-SVN: r13875
1997-03-25* c-decl.c (grokdeclarator): Pedwarn qualified void function return type.Doug Evans1-0/+7
From-SVN: r13802
1997-02-02(start_function): Fix improper installation of last change.Richard Kenner1-8/+8
From-SVN: r13581
1997-01-19Fix editing error in last change.Richard Kenner1-1/+1
From-SVN: r13537
1997-01-19(start_decl): Add code for -Wmain.Richard Kenner1-2/+103
(c_decode_option): Add -fhosted, -ffreestanding, and -Wmain. From-SVN: r13517
1996-12-07(poplevel): Don't call output_inline_function if DECL_SAVED_INSNS isRichard Kenner1-1/+1
not set. From-SVN: r13224
1996-11-20xJason Merrill1-0/+4
From-SVN: r13209
1996-11-20xJason Merrill1-0/+1
From-SVN: r13208
1996-11-12(grokdeclarator): Generate a warning if -Wimplicit, unless a warningRichard Kenner1-4/+14
was already generated by -Wreturn-type. From-SVN: r13135
1996-11-12(field_decl_cmp): Use `const void *' arguments.Richard Kenner1-3/+6
From-SVN: r13130
1996-10-09(dollars_in_ident): DOLLARS_IN_IDENTIFIERS is now Boolean.Richard Kenner1-13/+4
(c_decode_option): -fdollars-in-identifiers is now independent of -ansi, of -traditional, and of DOLLARS_IN_IDENTIFIERS. From-SVN: r12930
1996-09-27Allow short to be size_tMichael Meissner1-8/+10
From-SVN: r12853
1996-09-23(finish_struct): Check PCC_BITFIELD_TYPE_MATTERS value.Richard Kenner1-2/+3
(finish_struct): Check PCC_BITFIELD_TYPE_MATTERS value. arbitrary expression. From-SVN: r12828
1996-09-22(pushdecl): Check new declaration actually conflicts before warning about ↵Richard Kenner1-0/+1
implicit external vs. (pushdecl): Check new declaration actually conflicts before warning about implicit external vs. static declarations. From-SVN: r12772
1996-08-11(finish_struct): If pedantic, also warn if struct/union has no namedRichard Kenner1-3/+11
members. From-SVN: r12612
1996-07-03formatting tweaksMike Stump1-4/+4
From-SVN: r12390
1996-06-28(init_decl_processing): Register __builtin_memset and memset asRichard Kenner1-1/+12
builtin functions. From-SVN: r12362
1996-06-06(grokdeclarator): Call pop_obstacks after creatingJim Wilson1-1/+1
TYPE_DECL. From-SVN: r12178
1996-06-04(start_decl): Always set DECL_COMMON on statics.Jason Merrill1-1/+1
From-SVN: r12158
1996-06-03(start_struct): Set TYPE_PACKED from flag_pack_struct.Richard Kenner1-2/+5
(start_enum): Likewise but from flag_short_enums. (finish_enum): Test TYPE_PACKED, not flag_short_enums. From-SVN: r12140
1996-05-19Add prototypes for all static functions.Richard Kenner1-11/+17
From-SVN: r12041
1996-05-06-fno-common changeJason Merrill1-3/+7
From-SVN: r11940
1996-04-16(clear_limbo_values): New function.Richard Kenner1-0/+18
(pushdecl): Call it for function body blocks. From-SVN: r11828
1996-04-14(finish_enum): Don't crash if no type can represent all enumeration values.Richard Kenner1-2/+10
From-SVN: r11771
1996-04-08(finish_function): Always warn if main doesn't return int.Richard Kenner1-3/+3
From-SVN: r11674
1996-03-05(duplicate_decl): If making decl non-external, copy context from oldRichard Kenner1-0/+2
to new. From-SVN: r11439
1996-02-19warn_sign_compareJason Merrill1-0/+9
From-SVN: r11298
1996-02-13(finish_decl): TREE_ASM_WRITTEN says if duplicate_decls modified declaration ↵Richard Kenner1-5/+8
to... (finish_decl): TREE_ASM_WRITTEN says if duplicate_decls modified declaration to match an outside file scope declaration. From-SVN: r11264
1996-02-12Changes to distinguish typedef from original type in debug output.Per Bothner1-1/+1
* c-decl.c (pushdecl): Set DECL_ORIGINAL_TYPE for typedef origin. From-SVN: r11215
1996-02-02(finish_struct): Fix typo in transparent union warning that led to core dump.Paul Eggert1-1/+1
From-SVN: r11161
1996-01-27(init_decl_processing): Add definitions for __builtin_setjmp andRichard Kenner1-0/+13
__builtin_longjmp. From-SVN: r11113
1996-01-15(finish_incomplete_decl): Warn if completing an array that wasn't declared ↵Richard Kenner1-4/+7
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-01(finish_struct): Warn if field with enumeral type is narrower thanRichard Kenner1-1/+8
values of that type. From-SVN: r10928
1995-12-24(finish_struct): Set DECL_C_BIT_FIELD when set DECL_BIT_FIELD.Richard Kenner1-1/+1
From-SVN: r10857
1995-12-04(finish_struct): Don't mess with the type of bitfields.Jason Merrill1-21/+0
From-SVN: r10673
1995-11-29(duplicate_decls): Add new paramter different_binding_level.Jim Wilson1-119/+134
Lots of changes to use new new parameter. (pushdecl): Delete variable declared_global. New variable different_binding_level and code to set it. Move extern/static warning before duplicate_decls call. Don't let global typedefs conflict with nested extern declarations. Move oldglobal test inside code for setting IDENTIFIER_LIMBO_VALUE. (lookup_name_current_level_global): Delete. From-SVN: r10618
1995-10-27(pushdecl): Don't test TREE_PUBLIC when deciding whether to register aRichard Kenner1-1/+10
duplicate decl in the current block. From-SVN: r10528
1995-09-11(redeclaration_error_message): For TYPE_DECLs, return 0 ifRichard Kenner1-0/+9
TYPE_MAIN_VARIANT of old type is same as new type. From-SVN: r10311
1995-08-29(finish_struct): If transparent_union attribute specified, validate itRichard Kenner1-0/+10
once we finish laying the union out. From-SVN: r10293
1995-07-14(field_decl_cmp): Rewritten to make sure that a null name always sortsRichard Kenner1-1/+9
low against other names. From-SVN: r10137