1. 02 Mar, 2001 19 commits
    • remove spurious code · f11fc7bf
      From-SVN: r40194
      Nick Clifton committed
    • print-rtl.c (print_rtx): Cast enums to int for comparison. · dbbbbf3b
      	* print-rtl.c (print_rtx): Cast enums to int for comparison.
      	* c-decl.c (grokdeclarator): Cast enums to int for comparison and
      	shifts.
      	* c-format.c (C_STD_VER): Cast to int for comparisons.
      	(check_function_format): Cast various enums to int for &.
      	(maybe_read_dollar_number): Likewise.
      	(check_format_info): Likewise.
      	(check_format_info_main): Likewise.
      	* expr.c (emit_move_insn_1): Cast enums to unsigned int for comparison.
      	(safe_from_p): Likewise.
      	* varasm.c (const_hash): Cast enum to int for %.
      	* emit-rtl.c (init_emit_once): Use int loop variable to work around
      	pcc enum problems with < and ++ operators.
      	* regclass.c (init_reg_sets_1): Cast enums for comparison.
      	(choose_hard_reg_mode): Use unsigned int to iterate over CCmodes.
      	(regclass_init): Change enum class to int to iterate over reg_classes.
      	* genrecog.c (merge_trees): Cast enums for comparison.
      	* rtl.h (GET_CODE): Cast to enum rtx_code.
      	(PUT_CODE): Cast to ENUM_BITFIELD(rtx_code).
      	(GET_MODE): Cast to enum machine_mode.
      	(PUT_MODE): Cast to ENUM_BITFIELD(machine_mode).
      	(GET_NOTE_INSN_NAME): Cast enum to int.
      	* tree.h (TREE_CODE): Cast to enum tree_code.
      	(TREE_SET_CODE): Cast VALUE to ENUM_BITFIELD(tree_code).
              * timevar.c (timevar_print): Change loop variable id from enum to
      	unsigned int.
      	* fixinc/fixincl.c (VLEVEL): Cast enums in comparison to unsigned int.
      	* config/i386/i386.md: Use PUT_MODE for mode assignment.
      	* toplev.c (compile_file): Cast enum DFI to int.
      	(decode_d_option): Likewise.
      
      From-SVN: r40193
      John David Anglin committed
    • [multiple changes] · 4cacbdf2
      
      2001-03-02  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
      
              * include/bits/istream.tcc: change type of __extracted to __size_type
      
      2001-03-02  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* src/wstring-inst.cc: New file.
      	* src/Makefile.am (EXTRA_LTLIBRARIES): Remove.
      	(libinst_wstring_la_SOURCES): Remove.
      	(libstdc___la_LIBADD): Remove libinst_wstring_la.
      	(sources): Add wstring-inst.cc
      	* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Remove
      	libinst_wstring_la.
      
      From-SVN: r40192
      Benjamin Kosnik committed
    • cppinit.c (append_include_chain): Mark "after" include file name list as a system directory. · 4737b274
      * cppinit.c (append_include_chain): Mark "after" include file name list as a
      system directory.
      * cpp.texi: Document new behavior.
      
      From-SVN: r40189
      Christopher Faylor committed
    • locale.cc: initialise __ret with zero · 758c46c9
      
      2001-03-02  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
      
              * src/locale.cc: initialise __ret with zero
              * src/strstream.cc:cast gptr to int_type
      
      From-SVN: r40188
      Peter Schmid committed
    • typeck.c (build_static_cast): Allow enum to enum conversions as per DR 128. · 7eeb553c
      cp:
      	* typeck.c (build_static_cast): Allow enum to enum conversions
      	as per DR 128.
      testsuite:
      	* g++.old-deja/g++.other/enum3.C: New test.
      
      From-SVN: r40187
      Nathan Sidwell committed
    • class.c (check_field_decls): Pointers to member do not a non-pod struct make, as per DR 148. · d282fcb2
      cp:
      	* class.c (check_field_decls): Pointers to member do not a
      	non-pod struct make, as per DR 148.
      testsuite:
      	* g++.old-deja/g++.other/pod1.C: New test.
      
      From-SVN: r40186
      Nathan Sidwell committed
    • call.c (joust): cp_pedwarn when using gnu extension concerning worst conversion sequences. · f86fdf68
      cp:
      	* call.c (joust): cp_pedwarn when using gnu extension concerning
      	worst conversion sequences.
      testsuite:
      	* g++.old-deja/g++.ext/overload1.C: New test.
      
      From-SVN: r40182
      Nathan Sidwell committed
    • Daily bump. · 584bb3ec
      From-SVN: r40179
      GCC Administrator committed
    • cppfiles.c (struct include_file): Update. · 591e15a1
              * cppfiles.c (struct include_file): Update.
              (stack_include_file): Use search_from.
              (cpp_included, find_include_file): Update.
              (cpp_execute_include): Update.  ptr->name may not be
              null terminated.  Use the new search_from member variable
              of cpp_buffer.
              (_cpp_compare_file_date): Similarly.
              (search_from): New function, similiar to actual_directory.
              (actual_directory): Delete.
              (remap_filename): Update.  loc->name may not be null terminated.
              (struct file_name_list): Rename search_path.  Update.
              * cpphash.h (struct cpp_buffer): Delete actual_dir.  New members
              search_from and dir.
              (struct cpp_reader): Remove actual_dirs.
              * cppinit.c (struct cpp_pending): Update for renamed objects.
              (append_include_chain, remove_dup_dir, remove_dup_dirs,
              merge_include_chains, cpp_destroy, cpp_start_read): Similarly.
              * cpplib.h (struct cpp_options): Similarly.
      
      From-SVN: r40178
      Neil Booth committed
    • Changes merged from Kawa's gnu.math. · c04278f7
      	* java/math/BigInteger.java
      	* gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count.
      	(rshift(int[],int[],int,int):  Removed - not needed.
      	(gcd):  Use rshift0 rather than rshift.
      	* java/math/BigInteger.java (setShiftRight):  Likewise.
      	(divide):  Simplify by using rshift0.
      	(divide):  Zero-extend results if high-order bit set.
      
      From-SVN: r40177
      Per Bothner committed
    • xm-lynx.h, [...]: Do not define TRUE or FALSE. · d6edb99e
      	* config/xm-lynx.h, config/xm-std32.h, config/a29k/xm-a29k.h,
      	config/a29k/xm-unix.h, config/alpha/xm-alpha.h,
      	config/arc/xm-arc.h, config/arm/xm-arm.h, config/c4x/xm-c4x.h,
      	config/clipper/xm-clix.h, config/convex/xm-convex.h,
      	config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
      	config/elxsi/xm-elxsi.h, config/fr30/xm-fr30.h,
      	config/h8300/xm-h8300.h, config/i370/xm-i370.h,
      	config/i370/xm-linux.h, config/i370/xm-mvs.h,
      	config/i370/xm-oe.h, config/i386/xm-aix.h,
      	config/i386/xm-i386.h, config/i386/xm-osf.h,
      	config/i860/xm-i860.h, config/i960/xm-i960.h,
      	config/ia64/xm-ia64.h, config/m32r/xm-m32r.h,
      	config/m68k/xm-m68k.h, config/m88k/xm-m88k.h,
      	config/mcore/xm-mcore.h, config/mips/xm-mips.h,
      	config/mn10200/xm-mn10200.h, config/mn10300/xm-mn10300.h,
      	config/ns32k/xm-ns32k.h, config/pa/xm-linux.h,
      	config/pa/xm-pa.h, config/pa/xm-pa64hpux.h,
      	config/pa/xm-pahpux.h, config/pa/xm-papro.h,
      	config/pj/xm-pj.h, config/romp/xm-romp.h,
      	config/rs6000/xm-beos.h, config/rs6000/xm-rs6000.h,
      	config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
      	config/sparc/xm-sparc.h, config/sparc/xm-sysv4.h,
      	config/v850/xm-v850.h, config/vax/xm-vax.h,
      	config/vax/xm-vms.h, config/we32k/xm-we32k.h:
      	Do not define TRUE or FALSE.
      
      	* config/i386/xm-aix.h, config/i386/xm-osf.h: Delete; made
      	empty by above change.
      	* config.gcc: Remove references to these files.
      
      	* configure.in: Detect stdbool.h.
      	* configure, config.in: Regenerate.
      	* system.h: Include stddef.h here if available.  Set
      	HAVE__BOOL based on GCC_VERSION and __STDC_VERSION__.  Then
      	set up a sensible boolean type at the very end.
      
      	* combine.c, cse.c, expr.c, fold-const.c, gensupport.c,
      	f/com.c, config/mcore/mcore.c:
      	Rename variables named 'true' and/or 'false'.
      
      	* hash.h: Delete 'boolean' typedef and related #undefs.
      	* f/proj.h: Delete 'bool' type.  Don't include stddef.h here.
      
      	* function.c, ggc-common.c, hash.h, hash.c, tlink.c, cp/decl.c,
      	java/class.c, java/decl.c, java/java-tree.h:
      	Replace all uses of 'boolean' with 'bool'.
      
      From-SVN: r40176
      Zack Weinberg committed
    • safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc compatibility. · 9bb9ef28
      	* safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc
      	compatibility.
      
      From-SVN: r40175
      John David Anglin committed
    • cpplib.c (_cpp_init_stacks): Cast enum for comparison. · 37b8524c
      	* cpplib.c (_cpp_init_stacks): Cast enum for comparison.
      	* cppexp.c (lex): Cast enums for comparison.
      	* cppinit.c (parse_option): Cast enum for comparison.
      	* cpplex.c (cpp_spell_token): Cast enums to int for minus.
      	(cpp_output_token): Likewise.
      	(cpp_can_paste): Cast enums for comparsion and plus/minus.
      	(cpp_avoid_paste): Cast enums for minus and comparison.
      
      From-SVN: r40174
      John David Anglin committed
    • gcc.c, [...]: Add zero initializer for cpp_spec field to all array elements. · f7143427
      	* gcc.c, cp/lang-specs.h, f/lang-specs.h, java/lang-specs.h,
      	objc/lang-specs.h: Add zero initializer for cpp_spec field to
      	all array elements.
      	* cp/lang-specs.h: Don't put an #ifdef inside the initializer
      	list; set a default for CPLUSPLUS_CPP_SPEC and use it.
      
      From-SVN: r40173
      Zack Weinberg committed
    • cpphash.h (struct cpp_reader): Add print_version field. · cb773845
      	* cpphash.h (struct cpp_reader): Add print_version field.
      	* cppinit.c (cpp_handle_option): For -v, -version, and --version,
      	just set print_version and other flags as appropriate.
      	(cpp_post_options): Print version here if print_version is set.
      
      	* toplev.c (exit_after_options): New flag.
      	(independent_decode_option): Don't exit here; just set
      	exit_after_options.
      	(main): Exit after calling lang_hooks.post_options if
      	exit_after_options is true.
      
      	* cppinit.c (append_include_chain): Drop never-used case QUOTE.
      	(merge_include_chains): Adjust comment to match code.
      
      From-SVN: r40171
      Zack Weinberg committed
    • stringpool.c (set_identifier): New function. · 71b7be38
      	* stringpool.c (set_identifier): New function.
      	* tree.h: Prototype it.
      
      	* c-parse.in: Kill D_YES. If compiled for objc, call
      	save_and_forget_protocol_qualifiers from init_reswords.
      	* objc/objc-act.c (remember_protocol_qualifiers,
      	forget_protocol_qualifiers): Don't diddle C_IS_RESERVED_WORD.
      	Swap out the non-keyword IDENTIFIER_NODEs for keyword ones, or
      	vice versa.
      	(save_and_forget_protocol_qualifiers): New function.
      	* c-lex.h: Prototype save_and_forget_protocol_qualifiers.
      
      From-SVN: r40170
      Zack Weinberg committed
  2. 01 Mar, 2001 15 commits
  3. 28 Feb, 2001 6 commits