1. 23 Sep, 1999 1 commit
    • toplev.c (documented_lang_options): Add -fshort-wchar. · 12a39b12
      	* toplev.c (documented_lang_options): Add -fshort-wchar.
      	* c-decl.c (c_decode_option): Likewise.
      	(init_decl_processing): If -fshort-wchar, use 'short unsigned int'
      	for wchar_t.
      	* c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
      	* gcc.c (default_compilers): If -fshort-wchar,
      	override __WCHAR_TYPE__.
      	* tm.texi (C Dialect Options): Add -fshort-wchar.
      
      From-SVN: r29638
      Jason Merrill committed
  2. 18 Sep, 1999 1 commit
  3. 16 Sep, 1999 1 commit
  4. 14 Sep, 1999 1 commit
    • c-lex.c (handle_generic_pragma): Remove unused variable `c'. · da09e317
             * c-lex.c (handle_generic_pragma): Remove unused variable `c'.
      
             * unroll.c (find_common_reg_term, subtract_reg_term,
             loop_find_equiv_value): Add static prototypes.
             (unroll_loop): Wrap variable `prev' in macro HAVE_cc0.
             (copy_loop_body): Remove unreachable break statement.
      
             * sparc.c (sparc_va_arg): Remove unused variable `tmp'.
      
             * sparc.h (sparc_va_start, sparc_va_arg): Add extern prototypes.
      
      From-SVN: r29409
      Kaveh R. Ghazi committed
  5. 08 Sep, 1999 1 commit
    • Linas Vepstas <linas@linas.org> · f3ad1f9c
              * c-common.c: Use ISGRAPH, ISLOWER, toupper.
              * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c,
              genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise.
              * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC.
              * defaults.h (TARGET_ESC): Add default.
      
      From-SVN: r29192
      Linas Vepstas committed
  6. 07 Sep, 1999 1 commit
  7. 06 Sep, 1999 1 commit
    • Makefile.in (C_AND_OBJC_OBJS): Remove ggc-callbacks.o. · 1526a060
      	* Makefile.in (C_AND_OBJC_OBJS): Remove ggc-callbacks.o.
      	(c-parse.o, c-decl.o, c-lang.o, c-lex.o, c-common.o,
      	$(out_object_file)): Depend on ggc.h.
      	* c-common.c: Include "ggc.h".
      	(combine_strings): If doing GC, use ggc_alloc_string.
      	* c-decl.c: Include "ggc.h".
      	(ggc_p): Define with value 0.
      	(mark_binding_level): New function.
      	(init_decl_processing): Add GC roots.
      	(mark_c_function_context): New function.
      	(lang_mark_false_label_stack): New function.
      	(lang_mark_tree): New function.
      	(lang_cleanup_tree): New function.
      	* c-lang.c: Include "ggc.h".
      	(lang_init): Call c_parse_init.
      	* c-lex.c: Include "ggc.h".
      	(check_linenum): If doing GC, don't copy filenames to permanent
      	obstack.
      	* c-parse.in: Include "ggc.h".
      	(c_parse_init): New function.
      	* c-tree.h (c_parse_init, mark_c_function_context): Declare.
      	* objc/Make-lang.in (objc-parse.o): Depend on ggc.h.
      
      	* except.c (mark_eh_state): Mark more state.
      	* function.c (mark_function_state): Likewise.
      	* ggc-simple.c (ggc_alloc_rtvec): Bring in sync with non-gc version.
      	(ggc_alloc_string) [GGC_DUMP]: Fix typo.
      	* toplev.c (mark_file_stack): New function.
      	(compile_file): If doing GC, use ggc_alloc_string on input filename.
      	(main): Add root for input_file_stack.
      
      	* i386.c: Include "ggc.h".
      	(ix86_mark_machine_status): New function.
      	(override_options): Set mark_machine_status.
      
      From-SVN: r29143
      Bernd Schmidt committed
  8. 07 Aug, 1999 1 commit
  9. 04 Aug, 1999 1 commit
    • c-lex.c: Sync with C++ frontend. · fbb18613
      	* c-lex.c: Sync with C++ frontend.
      	(linemode): New variable.
      	(parse_float): imag, conversion_errno, and type are output only.
      	(yylex): Adjust.  Move initial '.' case into main switch.
      	Use linemode.
      	(handle_generic_pragma): Just deal with tokens.
      	(readescape): Use ISXDIGIT and ISGRAPH.
      	* c-parse.in: Add END_OF_LINE token.
      
      	* c-lex.c (lang_init): Generalize.
      	(nextchar): Remove.  Replace uses with UNGETC.
      	(skip_white_space): Handle linemode here.  Optimize for cpplib.
      	(skip_white_space_on_line): Remove.
      	(extend_token_buffer_to): New fn.
      	(extend_token_buffer): Use it.
      	(read_line_number, check_newline): Just deal with tokens.
      	(token_getch, token_put_back): New fns.
      	(yylex): Use them.  More cpplib optimizations.  Simplify.
      
      	* c-lex.c (init_parse): Set cpp_token to CPP_DIRECTIVE.
      	(consume_string): Make this smart about USE_CPPLIB.
      	(check_newline): Rewrite to be intelligent about USE_CPPLIB.
      	(yylex): Rewrite to be intelligent about USE_CPPLIB.
      	Also, clean up cases where we redundantly set token_buffer[0].
      	(read_line_number): New fn.
      	(ignore_escape_flag): New variable.
      
      From-SVN: r28507
      Jason Merrill committed
  10. 03 Aug, 1999 1 commit
  11. 21 Jul, 1999 1 commit
    • For gcc: · cc144655
      	* c-lex.c (yylex) : Correct the test for overflow when lexing
      	integer literals.
      
      For gcc/cp:
      	* lex.c (real_yylex) : Correct the test for overflow when lexing
      	integer literals.
      
      From-SVN: r28206
      Gavin Romig-Koch committed
  12. 06 Jul, 1999 1 commit
  13. 02 Jul, 1999 1 commit
    • For gcc: · 835f9b4d
      	* c-decl.c (widest_integer_literal_type_node,
      	widest_unsigned_literal_type) : New.
      	(init_decl_processing): Handle/use the two new types.
      	* c-common.c (type_for_size,type_for_mode) : Same.
      	* c-lex.c (yylex) : Same.
      	* c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
      	Same.
      	* c-tree.h (widest_integer_literal_type_node,
      	widest_unsigned_literal_type) : New.
      For gcc/cp:
      	* cp-tree.h (widest_integer_literal_type_node,
      	widest_unsigned_literal_type) : New.
      	* decl.c (widest_integer_literal_type_node,
      	widest_unsigned_literal_type) : New.
      	(init_decl_processing): Handle/use the two new types.
      	* lex.c (real_yylex): Same.
      	* typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
      	Same.
      
      From-SVN: r27923
      Gavin Romig-Koch committed
  14. 01 Jul, 1999 1 commit
    • For gcc: · ed534bdd
      	* c-lex.c (yylex): Improve 'integer constant out of range' messages.
      For gcc/cp:
      	* lex.c (real_yylex): Improve 'integer constant out of range' messages.
      
      From-SVN: r27873
      Gavin Romig-Koch committed
  15. 07 Jun, 1999 1 commit
    • c-lex.c (GETC): Redefine to call getch. · 505e0385
      Mon Jun  7 14:07:39 1999  Dave Brolley  <brolley@cygnus.com>
      	* c-lex.c (GETC): Redefine to call getch.
      	(UNGETC): Redefine to call put_back.
      	(putback_buffer): New structure type.
      	(putback): New static structure.
      	(getch): New function.
      	(put_back): New function.
      	(yylex): Replace unused bytes from bad multibyte character.
      
      From-SVN: r27393
      Dave Brolley committed
  16. 20 Mar, 1999 1 commit
    • Warning fixes: · 54ea1de9
              * c-lex.c (yylex): Remove unused variable `bytes'.
              * flow.c (print_rtl_with_bb): Cast the return value of alloca.
              * function.c (assign_parms): Wrap variable `varargs_setup' in
              macro SETUP_INCOMING_VARARGS.
              (thread_prologue_and_epilogue_insns): Mark parameter `f' with
              ATTRIBUTE_UNUSED.
              * local-alloc.c (no_equiv): Likewise for parameter `store'.
              * sched.c (schedule_insns): Remove unused variables `insn' and `next'.
              * tlink.c (symbol_hash_newfunc, symbol_hash_lookup,
              file_hash_newfunc, file_hash_lookup, demangled_hash_newfunc,
              demangled_hash_lookup, symbol_push, symbol_pop, file_push,
              file_pop, tlink_init, tlink_execute, frob_extension,
              obstack_fgets, tfgets, pfgets, freadsym, read_repo_file,
              maybe_tweak, recompile_files, read_repo_files,
              demangle_new_symbols, scan_linker_output): Add static prototype.
              (symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc):
              Make the third argument a `hash_table_key'.
              * toplev.c (debug_start_source_file): Mark parameter `filename'
              with ATTRIBUTE_UNUSED.
      
      From-SVN: r25871
      Kaveh R. Ghazi committed
  17. 17 Mar, 1999 1 commit
  18. 16 Mar, 1999 1 commit
  19. 22 Feb, 1999 1 commit
  20. 18 Feb, 1999 1 commit
    • bitmap.c (bitmap_print): Qualify a char* with the `const' keyword. · 5d5993dd
              * bitmap.c (bitmap_print): Qualify a char* with the `const' keyword.
              * bitmap.h (bitmap_print): Likewise.
              * c-decl.c (builtin_function, grokdeclarator, grokfield): Likewise.
              * c-lang.c (build_objc_string): Likewise.
              * c-lex.c (yyerror, extend_token_buffer): Likewise.  Don't include
              limits.h or ctype.h.  Remove unused variable `p'.
              * c-lex.h (yyerror): Qualify a char* with the `const' keyword.
              * c-pragma.c (handle_pragma_token): Likewise.
              * c-pragma.h (handle_pragma_token): Likewise.
              * c-tree.h (build_objc_string, builtin_function, grokfield,
              build_indirect_ref, lvalue_or_else, readonly_warning, error_init,
              pedwarn_init): Likewise.
              * c-typeck.c (convert_for_assignment, warn_for_assignment,
              push_string, warning_init, incomplete_type_error,
              build_indirect_ref, lvalue_or_else, readonly_warning,
              build_c_cast, spelling, push_member_name, print_spelling,
              error_init, pedwarn_init, start_init): Likewise.
              * objc/objc-act.c (build_objc_string): Likewise.
              * print-tree.c (print_node_brief, print_node): Likewise.
              * tree.h (lvalue_or_else, print_node, print_node_brief): Likewise.
      
      From-SVN: r25296
      Kaveh R. Ghazi committed
  21. 15 Feb, 1999 1 commit
    • c-common.c (UNGETC [USE_CPPLIB=1]): Do nothing if c is EOF. · 4d9a1b48
      1999-02-15 16:59 -0500  Zack Weinberg  <zack@midnite.ec.rhno.columbia.edu>
      	* c-common.c (UNGETC [USE_CPPLIB=1]): Do nothing if c is EOF.
      	* c-lex.c: Likewise.
      	* cpplib.c (cpp_push_buffer, cpp_pop_buffer): Use a linked
      	list in malloced memory for the buffer stack.
      	(cpp_get_token): Don't pop the last buffer off the stack.
      	Calls after CPP_EOF has been returned produce CPP_EOF with no
      	state change.
      	(cpp_finish): Pop last buffer here.
      	(do_line): Don't free ip->last_nominal_fname if it is equal to
      	ip->fname.
      	(special_symbol): If a T_CONST is the empty string, push a
      	single `@ ' escape instead.
      	(macroexpand): Special symbol buffers have escapes too.
      	* cpplib.h (struct cpp_buffer): Remove unused fields, add prev
      	buffer pointer.
      	(struct cpp_reader): Remove buffer_stack.  Add
      	buffer_stack_depth.
      	(CPP_PREV_BUFFER, CPP_NULL_BUFFER): Buffer stack is now a
      	linked list.
      
      From-SVN: r25218
      Zack Weinberg committed
  22. 27 Jan, 1999 1 commit
  23. 23 Dec, 1998 1 commit
    • Warning fixes: · 973838fd
              * alias.c (record_alias_subset): Remove ignored `&'.
              (init_alias_once): Likewise.
              * c-lex.c (UNGETC): Cast first argument of comma expression to void.
              * config/mips/mips.c (mips_asm_file_end): Cast the result of
              fwrite to `int' when comparing against one.
              * config/mips/mips.h (CAN_ELIMINATE): Add parens around && within ||.
              (INITIAL_ELIMINATION_OFFSET): Add braces to avoid ambiguous `else'.
              * cse.c (rehash_using_reg): Change type of variable `i' to
              unsigned int.
              * dwarf2out.c (initial_return_save): Cast -1 to unsigned before
              assigning it to one.
              * except.c (duplicate_eh_handlers): Remove unused variable `tmp'.
              * final.c (final_scan_insn): Likewise for variable `i'.
              (output_asm_insn): Cast a char to unsigned char when used as an
              array index.
              * gcse.c (compute_pre_ppinout): Cast -1 to SBITMAP_ELT_TYPE when
              assigning it to one.
              * loop.c (strength_reduce): Remove unused variables `count' and `temp'.
              * recog.c (preprocess_constraints): Cast a char to unsigned char
              when used as an array index.
              * regmove.c (find_matches): Likewise.
              * reload1.c (calculate_needs): Add default case in switch.
              (eliminate_regs_in_insn): Initialize variable `offset'.
              (set_offsets_for_label): Change type of variable `i' to unsigned.
              (reload_as_needed): Wrap variable `i' in macro check on
              AUTO_INC_DEC || INSN_CLOBBERS_REGNO_P.
              * scan-decls.c (scan_decls): Mark parameters `argc' and `argv'
              with ATTRIBUTE_UNUSED.  Cast variable `start_written' to size_t
              when comparing against one.
              * stor-layout.c (layout_decl): Cast maximum_field_alignment to
              unsigned when comparing against one.  Likewise for
              GET_MODE_ALIGNMENT().
              (layout_record): Cast record_align to int when comparing against a
              signed value.
              (layout_type): Cast TYPE_ALIGN() to int when comparing against a
              signed value.
              * tree.c (get_identifier): Cast variable `len' to unsigned when
              comparing against one.
              (maybe_get_identifier): Likewise
      
      From-SVN: r24403
      Kaveh R. Ghazi committed
  24. 02 Dec, 1998 1 commit
  25. 01 Dec, 1998 1 commit
    • c-common.c (declare_function_name): Declare predefinied variable `__func__'. · 6f4d7222
              * c-common.c (declare_function_name): Declare predefinied variable
              `__func__'.
              * c-decl.c (flag_isoc9x): Set to 1 by default.
              (c_decode_option): Handle -std= option.  Remove -flang-isoc9x.
              (grokdeclarator): Always emit warning about implicit int for ISO C 9x.
              * c-parse.in: Allow constructors in ISO C 9x.
              Rewrite designator list handling.
              Allow [*] parameters.
              Don't warn about comma at end of enum definition for ISO C 9x.
              * cccp.c (c9x): New variable.
              (rest_extension): New variable.
              (print_help): Document new -std= option.
              (main): Recognize -std= option.  Set c9x appropriately.
              (create_definition): Recognize ISO C 9x vararg macros.
              * gcc.c (default_compilers): Adjust specs for -std options.
              (option_map): Add --std.
              (display_help): Document -std.
              * toplev.c (documented_lang_options): Add -std and remove
              -flang-isoc9x.
              * c-lex.c (yylex): Recognize hex FP constants and call REAL_VALUE_ATOF
              or REAL_VALUE_HTOF based on base of the constants.
              * fold-const.c (real_hex_to_f): New function.  Replacement function
              for hex FP conversion if REAL_ARITHMETIC is not defined.
              * real.c (asctoeg): Add handling of hex FP constants.
              * real.h: Define REAL_VALUE_HTOF if necessary using ereal_atof or
              real_hex_to_f.
      
      Co-Authored-By: Richard Henderson <rth@cygnus.com>
      Co-Authored-By: Stephen L Moshier <moshier@world.std.com>
      
      From-SVN: r24049
      Ulrich Drepper committed
  26. 25 Nov, 1998 1 commit
    • gcc.c: Split out Objective-C specs to... · b12da25e
              * gcc.c: Split out Objective-C specs to...
              * objc/lang-specs.h: here. (New file.) Make the specs cpplib
              aware.
              * c-lex.c (init_parse): Always initialize the filename global.
              * objc/objc-act.c (lang_init): Always call check_newline at
              beginning of file.
      
      From-SVN: r23850
      Zack Weinberg committed
  27. 29 Oct, 1998 1 commit
    • [multiple changes] · add7091b
      1998-10-28 16:10 -0500	Zack Weinberg  <zack@rabi.phys.columbia.edu>
      	 * c-lang.c: Declare extern char *yy_cur if USE_CPPLIB.
      	   (lang_init): Call check_newline always.
      	 * c-lex.c (init_parse) [USE_CPPLIB=1]: After calling
      	   cpp_start_read, set yy_cur and yy_lim to read from
      	   parse_in.token_buffer, so that we'll see the first #line
      	   directive.
      	 * cpplib.c (cpp_start_read): finclude the main input file
      	   before processing -include/-imacros.	 Process -imacros and
      	   -include separately, and handle -include by stacking a
      	   buffer for the file in question as if it'd been #included.
      	 * toplev.c (documented_lang_options) Recognize -H when
      	   USE_CPPLIB is on.
      1998-10-28 16:09 -0500	Zack Weinberg  <zack@rabi.phys.columbia.edu>
      	 * cpplib.c: Merge do_once into do_pragma.  Break file handling
      	   code out of do_include.
      	   Move append_include_chain, deps_output,
      	   file_cleanup, redundant_include_p, import_hash,
      	   lookup_import, add_import, read_filename_string, read_name_map,
      	   open_include_file, finclude, safe_read to cppfiles.c.
      	   Move prototypes for deps_output, append_include_chain,
      	   finclude to cpplib.h.  Move definition of struct
      	   file_name_list there also.
      	 * cppfiles.c: New file.  Contains all the above functions
      	   broken out of cpplib.c; also hack_vms_include_specification
      	   from cccp.c and find_include_file, a new function broken out of
      	   do_include.
      	 * Makefile.in (cppmain): Depend on cppfiles.o.
      	   (fix-header): Likewise.
      	   (cppfiles.o): New target.
      	 * configure.in (--enable-c-cpplib): Add cppfiles.o to
      	   extra_c_objs.  Add ../cppfiles.o to extra_cxx_objs.
      
      From-SVN: r23424
      Zack Weinberg committed
  28. 21 Oct, 1998 1 commit
    • invoke.texi: Document -flang-isoc9x. · 3932261a
      	* invoke.texi: Document -flang-isoc9x.
      	* Makefile.in (OBJS): Add splay-tree.o.
      	(c-common.o): Depend on rtl.h.
      	(splay-tree.o): List dependencies and provide build rule.
      	* rtl.h (record_alias_subset): New function.
      	* alias.c: Include splay-tree.h.
      	(alias_set_entry): New type.
      	(CHECK_ALIAS_SETS_FOR_CONSISTENCY): Remove.
      	(DIFFERENT_ALIAS_SETS_P): Use mem_in_disjoint_alias_sets_p.
      	(mems_in_disjoin_alias_sets_p): New function.
      	(alias_set_compare): Likewise.
      	(insert_subset_children): Likewise.
      	(get_alias_set_entry): Likewise.
      	* tree.h (TYPE_RESTRICT): New macro.
      	(TYPE_UNQUALIFIED): New manifest constant.
      	(TYPE_QUAL_CONST): Likewise
      	(TYPE_QUAL_VOLATILE): Likewise.
      	(TYPE_QUAL_RESTRICT): Likewise.
      	(tree_type): Add restrict_flag.  Reduce count of free bits.
      	(DECL_POINTER_ALIAS_SET): New macro.
      	(DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
      	(tree_decl): Add pointer_alias_set.
      	(build_qualified_type): New function.
      	(build_type_variant): Define in terms of build_qualified_type.
      	* tree.c (set_type_quals): New function.
      	(make_node): Initializae DECL_POINTER_ALIAS_SET.
      	(build_type_attribute_variant): Use build_qualified_type and
      	set_type_quals.
      	(build_type_variant): Rename, and modify, to become...
      	(build_qualified_type): New function.
      	(build_complex_type): Use set_type_quals.
      	* c-tree.h (C_TYPE_OBJECT_P): New macro.
      	(C_TYPE_FUNCTION_P): Likewise.
      	(C_TYPE_INCOMPLETE_P): Likewise.
      	(C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
      	(c_apply_type_quals_to_decl): New function.
      	(c_build_qualified_type): New function.
      	(c_build_type_variant): Define in terms of c_build_qualified_type.
      	(flag_isoc9x): Declare.
      	* c-typeck.c (qualify_type): Use c_build_qualified_type.
      	(common_type): Change to use TYPE_QUALS.
      	(comptypes): Likewise.
      	(convert_for_assignment): Likewise.
      	* c-aux-info.c (gen_type): Likewise.  Deal with `restrict'.
      	* c-decl.c (flag_isoc9x): Define.
      	(c_decode_option): Handle -flang-isoc9x.
      	(grokdeclarator): Update to handle restrict.  Use TYPE_QUALS,
      	c_build_qualified_type, etc.  Use c_apply_type_quals_to_decl.
      	* c-lex.c (init_lex): Deal with restrict.
      	(init_lex): Don't treat restrict as a reserved word in
      	-traditional mode, or without -flang-isoc9x.
      	* c-lex.h (rid): Add RID_RESTRICT.
      	* c-parse.gperf (restrict, __restrict, __restrict__): Make
      	equivalent to RID_RESTRICT.
      	* c-parse.in (TYPE_QUAL): Update comment.
      	* c-common.c: Include rtl.h.
      	(c_find_base_decl): New function.
      	(c_build_type_variant): Rename, and modify, to become ...
      	(c_build_qualified_type): New function.
      	(c_apply_type_quals_to_decl): Likewise.
      	(c_get_alias_set): For INDIRECT_REFs, check to see if we can find
      	a particular alias set for the reference.
      	* toplev.c (documented_lang_options): Add -flang-isoc9x.
      
      From-SVN: r23212
      Mark Mitchell committed
  29. 16 Oct, 1998 1 commit
  30. 13 Oct, 1998 1 commit
    • Warning fixes: · c84e2712
      	* Makefile.in (gencheck.o): Depend on gansidecl.h.
      	* c-common.c (print_char_table): Add missing initializers.
      	(scan_char_table): Likewise.
      	(time_char_table): Likewise.
      	* c-decl.c (c_decode_option): Mark parameter `argc' with
      	ATTRIBUTE_UNUSED.
      	(declare_parm_level): Mark parameter `definition_flag' with
      	ATTRIBUTE_UNUSED.
      	* c-lex.c (readescape): Use `(unsigned)1' in shift.
      	(yylex): Likewise.  Cast `sizeof' to an (int) when comparing
      	against one.
      	* calls.c (store_one_arg): Remove unused parameter `fndecl'.  All
      	callers changed.
      	(emit_call_1): Mark parameters `fndecl' and `funtype' with
      	ATTRIBUTE_UNUSED.
      	(expand_call): Cast result of MIN() to (unsigned int) when
      	comparing against an unsigned value.
      	* cccp.c (pcfinclude): Remove unused parameter `limit'.  All
      	callers changed.
      	(make_definition): Remove unused parameter `op'.  All callers
      	changed.
      	(create_definition): Cast REST_EXTENSION_LENGTH to (long) when
      	comparing against the result of pointer arithmetic.
      	* config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Cast to (unsigned)
      	when comparing against one.
      	* dwarf2out.c (dwarf2out_frame_debug): Cast REGNO() and
       	HARD_FRAME_POINTER_REGNUM to (unsigned) when comparing against
       	one.
      	(output_die): Move variable `i' into the scope in which it is
      	used.  Change its type to `unsigned'.
      	(output_die): Cast the result of `strlen' to (int) when passing it
      	to ASM_OUTPUT_ASCII().
      	(output_pubnames): Likewise.
      	(output_line_info): Likewise.
      	* emit-rtl.c (global_rtl): Add missing initializers.
      	* explow.c (promote_mode): Mark parameter `for_call' with
      	ATTRIBUTE_UNUSED.
      	* expmed.c (expand_shift): Cast the result of GET_MODE_BITSIZE to
       	`unsigned HOST_WIDE_INT' when comparing against one.
      	(synth_mult): Change type of variable `cost' to int.
      	(emit_store_flag): Use `(unsigned HOST_WIDE_INT) 1' in shift.
      	* expr.c (copy_blkmode_from_reg): Cast BITS_PER_WORD to (unsigned)
      	when comparing against one.
      	(get_inner_reference): Change variable `alignment' to unsigned.
      	(expand_expr): Cast the result of GET_MODE_ALIGNMENT to (unsigned
      	int) when comparing against one.
      	(expand_builtin_setjmp): Change type of variable `i' to size_t.
      	* fold-const.c (div_and_round_double): Cast BASE to
      	(HOST_WIDE_INT) when comparing against one.
      	* gencheck.c: Include gansidecl.h.
      	(main): Mark parameter `argv' with ATTRIBUTE_UNUSED.
      	* optabs.c (gen_cond_trap): Mark parameters `code', `op2' and
      	`tcode' with ATTRIBUTE_UNUSED.
      	* real.c (edivm): Cast constant value to (unsigned long) in
      	expression compared against an unsigned value.
      	* stmt.c (expand_return): Cast BITS_PER_WORD to (unsigned) when
      	comparing against one.
      	(expand_end_case): Cast CASE_VALUES_THRESHOLD to (unsigned int)
      	when comparing against one.
      	* stor-layout.c (mode_for_size): Cast MAX_FIXED_MODE_SIZE to
      	(unsigned int) when comparing against one.  Likewise for
      	GET_MODE_BITSIZE.
      	(smallest_mode_for_size): Likewise.
      	(save_storage_status): Mark parameter `p' with ATTRIBUTE_UNUSED.
      	(restore_storage_status): Likewise.
      	* toplev.c (debug_args): Add missing initializer.
      	(f_options): Spelling correction.  Add missing initializers.
      	(documented_lang_options): Likewise.
      	(debug_end_source_file): Mark parameter `lineno' with
      	ATTRIBUTE_UNUSED.
      	* tree.c (valid_machine_attribute): Mark parameters `attr_args',
      	`decl' and `type' with ATTRIBUTE_UNUSED.
      	* varasm.c (decode_reg_name): Cast `sizeof' expression to (int)
      	when comparing against one.
      	(assemble_variable): Mark parameter `top_level' with
      	ATTRIBUTE_UNUSED.
      	(assemble_external_libcall): Mark parameter `fun' with
      	ATTRIBUTE_UNUSED.
      	(output_constant_pool): Mark parameters `fnname' and `fndecl' with
      	ATTRIBUTE_UNUSED.
      
      From-SVN: r23054
      Kaveh R. Ghazi committed
  31. 08 Oct, 1998 1 commit
  32. 01 Oct, 1998 1 commit
  33. 21 Sep, 1998 1 commit
  34. 09 Sep, 1998 1 commit
  35. 02 Sep, 1998 1 commit
  36. 27 Jul, 1998 1 commit
  37. 20 Jul, 1998 1 commit
    • configure.in (enable_c_mbchar): New configure option. · 56f48ce9
      Mon Jul 20 16:16:38 1998  Dave Brolley  <brolley@cygnus.com>
      	* configure.in (enable_c_mbchar): New configure option.
      	(extra_cpp_objs): Always available now.
      	* cexp.y (mbchar.h): #include it.
      	(yylex): Handle Multibyte characters in character literals.
      	* cccp.c (mbchar.h): #include it.
      	(main): Set character set based on LANG environment variable.
      	(rescan): Handle multibyte characters in comments.
      	(skip_if_group): See above.
      	(validate_else): See above.
      	(skip_to_end_of_comment): See above.
      	(macarg1): See above.
      	(discard_comments): See above.
      	(rescan): Handle multibyte characters in string and character literals.
      	(collect_expansion): See above.
      	(skip_quoted_string): See above.
      	(macroexpand): See above.
      	(macarg1): See above.
      	(discard_comments): See above.
      	(change_newlines): See above.
      	* c-lex.c (mbchar.h): #include it.
      	(GET_ENVIRONMENT): New macro.
      	(init_lex): Set character set based on LANG environment variable.
      	(yylex): Handle multibyte characters in character literals.
      	(yylex): Handle multibyte characters in string literals.
      	* Makefile.in (mbchar.o): New target.
      	(cccp$(exeext)): @extra_cpp_objs@ is always available.
      	(cppmain$(exeext)): @extra_cpp_objs@ is always available.
      	* mbchar.[ch]: New files for multibyte character handling.
      
      From-SVN: r21303
      Dave Brolley committed
  38. 06 Jul, 1998 1 commit
    • c-decl.c: Add warn_multichar. · 4a870dba
              * c-decl.c: Add warn_multichar.
              (c_decode_option): Handle -Wno-multichar.
              * c-lex.c (yylex): Check it.
              * c-tree.h: Declare it.
              * toplev.c (lang_options): Add it.
              * invoke.texi: Document it.
      
      From-SVN: r20968
      Jason Merrill committed
  39. 29 Jun, 1998 1 commit
  40. 19 Jun, 1998 1 commit