aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
AgeCommit message (Collapse)AuthorFilesLines
1997-12-20bitmap.c (bitmap_clear): Ensure `inline' is at the beginning of the declaration.Kaveh R. Ghazi1-1/+1
* bitmap.c (bitmap_clear): Ensure `inline' is at the beginning of the declaration. * c-decl.c (finish_decl): Use parentheses around && within ||. * rtl.c: Include stdlib.h. (read_skip_spaces): Add parentheses around assignments used as truth values. (read_rtx): Initialize list_rtx. * cppexp.c (parse_number): Use || when operands are truth values. * alias.c (find_base_value): Add default case. (memrefs_conflict): Likewise. * combine.c (sets_function_arg_p): Likewise. * genemit.c (gen_exp): Likewise. * local-alloc.c (contains_replace_regs): Likewise. * rtlanal.c (jmp_uses_reg_or_mem): Likewise. * fold-const.c (fold_convert): Use "&&" for truth values. (fold): Add default case. * sdbout.c (sdbout_field_types): Fix typo in declaration. (sdbout_one_type): Add default case. * alpha.c (alpha_sa_mask): Prototype only if OPEN_VMS. (some_operand): Add default case. (input_operand): Likewise. (signed_comparison_operator): Likewise. (divmod_operator): Likewise. (alpha_set_memflags_1): Likewise. * reload1.c (reload_cse_simplify_operands): Ensure function always returns a value. * scan-decls.c (scan_decls): Likewise. * c-lex.c (skip_white_space): Fix typo in declaraion. * c-typeck.c (comp_target_types): Add parentheses around assignment used as truth value. (print_spelling): Likewise. (constructor_implicit, constructor_result): Remove unused variables. * collect2.c (scan_library): Protect prototype with #ifdef SCAN_LIBRARIES. * emit-rtl.c (find_line_note): Fix typo in declaration. * final.c (asm_insn_count): Protect prototype with #ifdef HAVE_ATTR_length. * flow.c (find_auto_inc): Protect prototype with #ifdef AUTO_INC_DEC. (try_pre_increment_1, try_pre_increment): Likewise. * regclass.c (auto_inc_dec_reg_p): Protect prototype with #ifdef FORBIDDEN_INC_DEC_CLASSES. Make return type explicit. * gcov-io.h (__store_long, __write_long, __read_long): Fix unsigned/signed comparisons. * gcov.c (read_files): Remove unused "first_type" variable. (scan _for_source_files): Initialize s_ptr. (function_summary): Eliminate "%lf" formatting, use %ld for longs. (output_data): Initialize branch_probs and last_line_num. Eliminate "%lf" formatting, use "%ld" for longs. Co-Authored-By: Jeffrey A Law <law@cygnus.com> From-SVN: r17158
1997-12-06Merge from gcc-2.8Jeff Law1-1/+1
From-SVN: r16987
1997-11-02Update mainline egcs to gcc2 snapshot 971021.Jeff Law1-12/+63
From-SVN: r16278
1997-10-16c-decl.c (start_struct): Ensure that structs with forward declarations are ↵Mike Stump1-0/+1
in fact packed when... * c-decl.c (start_struct): Ensure that structs with forward declarations are in fact packed when -fpack-struct is given. * stor-layout.c (layout_record): Ignore STRUCTURE_SIZE_BOUNDARY if we are packing a structure. This allows a structure with only bytes to be aligned on a byte boundary and have no padding on a m68k. From-SVN: r15939
1997-09-27c-decl.c (init_decl_processing): Add __builtin_dwarf_reg_size.Jason Merrill1-0/+2
* c-decl.c (init_decl_processing): Add __builtin_dwarf_reg_size. * tree.h (built_in_function): Likewise. * expr.c (expand_builtin): Likewise. * except.h: Likewise. * dwarf2out.c (expand_builtin_dwarf_reg_size): New fn. * libgcc2.c (copy_reg): New fn. (__throw): Use it. From-SVN: r15750
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