1. 08 Dec, 2000 9 commits
    • fp-bit.c (_fpmul_parts): Use USItype variables as inputs for multiplies. · cf9f5da0
      	* fp-bit.c (_fpmul_parts): Use USItype variables as inputs
      	for multiplies.
      
      From-SVN: r38130
      J"orn Rennecke committed
    • Daily bump. · 7213219e
      From-SVN: r38129
      Jeff Law committed
    • Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove ccosl, cexpl, clog10l, csinhl, ctanhl, ctanl. · 0ba2a514
      	* libmath/Makefile.am (EXTRA_LONG_DOUBLE_yes): Remove ccosl,
      	cexpl, clog10l, csinhl, ctanhl, ctanl.
      	(EXTRA_DIST): Remove ccos, ccosf, csin, csinf, ccosh, ccoshf,
      	csing, csinhf, clog10, clog10f, ctan, ctanf, ctanh, ctanhf.
      	* libmath/Makefile.in: Regenarate.
      	* libmath/ccos.c: Remove.
      	* libmath/ccosf.c: Likewise.
      	* libmath/ccosl.c: Likewise.
      	* libmath/csin.c: Likewise.
      	* libmath/csinf.c: Likewise.
      	* libmath/csinl.c: Likewise.
      	* libmath/ctan.c: Likewise.
      	* libmath/ctanf.c: Likewise.
      	* libmath/ctanl.c: Likewise.
      	* libmath/ccosh.c: Likewise.
      	* libmath/ccoshf.c: Likewise.
      	* libmath/ccoshl.c: Likewise.
      	* libmath/csinh.c: Likewise.
      	* libmath/csinhf.c: Likewise.
      	* libmath/csinhl.c: Likewise.
      	* libmath/ctanh.c: Likewise.
      	* libmath/ctanhf.c: Likewise.
      	* libmath/ctanhl.c: Likewise.
      	* libmath/cexp.c: Likewise.
      	* libmath/cexpf.c: Likewise.
      	* libmath/cexpl.c: Likewise.
      	* libmath/clog10.c: Likewise.
      	* libmath/clog10f.c: Likewise.
      	* libmath/clog10l.c: Likewise.
      	* libmath/complex-stub.h: Remove forward declaration of functions
      	mentioned above.
      
      	* include/bits/std_complex.h(tan, tanh): Define primary templates.
      	(complex<>): Remove friend declarations for tan<> and tanh<>.
      	* src/complex.cc(tan, tanh): Remove specializations.
      
      	* acinclude.m4: Remove check for ccos, ccosf, ccosl, ccosh,
      	ccoshf, ccoshl,	csin, csinf, csinl, csinh, csinhf, csinhl, cexp,
      	cexpf, cexpl, ctan, ctanf, ctanl, ctanh, ctanhf, ctanhl.
      	* aclocal.m4: Regenarate.
      	* configure: Regenarate.
      
      From-SVN: r38128
      Gabriel Dos Reis committed
    • acinclude.m4: Don't forget to remove check for cpowl as it is no longer needed... · ecddf6a8
      	* acinclude.m4: Don't forget to remove check for cpowl as it is no
      	longer needed, nor is the corresponding stub existent.
      	* aclocal.m4: Regenarate.
      	* configure: Regenarate.
      
      From-SVN: r38127
      Gabriel Dos Reis committed
    • * Makefile.in (local-distclean): Remove leftover built files. · 5e59997c
      From-SVN: r38126
      Mike Stump committed
    • * Makefile.in (distclean): Remove alloca.c hashtab.c. · 2e35898e
      From-SVN: r38125
      Mike Stump committed
    • safe-ctype.h: New file. · f6bbde28
      include:
      	* safe-ctype.h: New file.
      libiberty:
      	* safe-ctype.c: New file.
      	* Makefile.in (CFILES): Add safe-ctype.c.
      	(REQUIRED_OFILES): Add safe-ctype.o.
      
      	* argv.c: Define ISBLANK and use it, not isspace.
      	* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
      	strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h.  Use
      	uppercase ctype macros.  Don't test ISUPPER(c)/ISLOWER(c)
      	before calling TOLOWER(c)/TOUPPER(c).
      gcc:
      	* Makefile.in (HOST_RTL): Add safe-ctype.o.
      	(safe-ctype.o): New rule.
      	* system.h: Include safe-ctype.h, not ctype.h.  No need to
      	wrap ctype macros.
      
      	* cpphash.h: Zap IStable and related macros.  Define is_* in
      	terms of safe-ctype.h macros.
      	* cppinit.c: Delete the IStable and all related code.
      
      	* tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
      	is_space arrays.  Delete initialize_char_syntax.  Change all
      	references to the above arrays to use macros instead.
      	* tradcpp.h: Define is_idchar, is_idstart, is_space, and
      	is_nvspace in terms of safe_ctype.h's macros.
      	* tradcif.y: is_idchar, is_idstart are macros not arrays.
      
      	* config/i370/i370.c, config/winnt/dirent.c,
      	config/winnt/fixinc-nt.c, config/winnt/ld.c:
      	Use uppercase ctype macros.  If we included ctype.h,
      	include safe-ctype.h instead.
      
      	* fixinc/fixfixes.c: Use uppercase ctype macros.  Don't test
      	ISLOWER(c) before calling TOUPPER(c).
      	* fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
      	* fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h.  No need to
      	wrap ctype macros.  Don't test ISUPPER(x) before calling TOLOWER(x).
      gcc/ch:
      	* lex.c: Don't bother checking whether ISUPPER(c) before
      	calling TOLOWER(c).  Don't bother checking whether isascii(c)
      	before testing ISSPACE(c); ISSPACE(c) includes '\n'.
      gcc/f:
      	* Make-lang.in: Link f/fini with safe-ctype.o.
      	* bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c).
      	* com.c: Use TOUPPER, not ffesrc_toupper.
      	* fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c).
      	* intrin.c: Don't test IN_CTYPE_DOMAIN(c).
      	* src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their
      	initializing code; use TOUPPER and TOLOWER instead of
      	ffesrc_toupper and ffesrc_tolower.
      	* src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_.
      	Don't define ffesrc_toupper or ffesrc_tolower.
      gcc/java:
      	* jvgenmain.c: Use ISPRINT not isascii.
      
      From-SVN: r38124
      Zack Weinberg committed
    • * g++.old-deja/g++.other/eh3.C: New testcase. · f3588f1a
      From-SVN: r38123
      Geoffrey Keating committed
    • c-decl.c (grokdeclarator): preserve previous alignments when rebuilding array types. · 54d7f9aa
      * c-decl.c (grokdeclarator): preserve previous alignments when
      rebuilding array types.
      
      From-SVN: r38122
      DJ Delorie committed
  2. 07 Dec, 2000 31 commits
    • wtr-aggr-init-1.c, [...]: Update. · 5133d90e
              * gcc.dg/wtr-aggr-init-1.c, wtr-escape-1.c, wtr-int-type-1.c,
              wtr-label-1.c, wtr-static-1.c, wtr-strcat-1.c, wtr-suffix-1.c,
              wtr-switch-1.c, wtr-unary-plus-1.c, wtr-union-init-1.c
              wtr-union-init-2.c, wtr-union-init-3.c: Update.
              * gcc.dg/cpp/extratokens.c, tr-warn4.c, tr-warn5.c, tr-warn6.c:
              Update.
      
      From-SVN: r38121
      Neil Booth committed
    • cppfiles.c (struct include_file): Move from cpphash.h. · 642ce434
              * cppfiles.c (struct include_file): Move from cpphash.h.
              (_cpp_never_reread): New function.
              (open_file, read_include_file): Use it.
              (stack_include_file): Set the buffer's sysp according to the
              path in which the file was found.
              (find_include_file): Don't set sysp.
              (cpp_make_system_header, actual_directory): Update.
              (_cpp_execute_include): Do #include_next lookup handling here,
              not in cpplib.c.  Use _cpp_never_reread.
              * cpphash.h (struct_include_file): Remove.
              (struct cpp_buffer): New member sysp.
              (CPP_IN_SYSTEM_HEADER, _cpp_execute_include): Update.
              (_cpp_never_reread): New.
              * cpplib.c (read_line_number): Rename read_flag.  Rework slightly.
              (end_directive): Clear line_extension flag.
              (_cpp_handle_directive): Set line_extension flag for #number.
              (do_include_next): Handle path lookup in _cpp_execute_include.
              (do_line): Cleanup to use read_flag.  Don't allow flags in #line.
              (_cpp_do_file_change): Update.
              (do_pragma_once): Use cpp_never_reread.  Clean up.
              * cpplib.h (struct lexer_state): New member line_extension.
      
      From-SVN: r38120
      Neil Booth committed
    • format-nonlit-1.c, [...]: Use __SIZE_TYPE__ instead of int for type of integers cast to pointers. · 02428c5d
      	* gcc.dg/format-nonlit-1.c, gcc.dg/format-nonlit-2.c: Use
      	__SIZE_TYPE__ instead of int for type of integers cast to
      	pointers.
      
      From-SVN: r38119
      Joseph Myers committed
    • Fix typo. · 6c1ce62b
      From-SVN: r38118
      Mike Stump committed
    • texi2pod.pl: If multiple @c man sections with the same tag appear... · f4e8dec6
      	* texi2pod.pl: If multiple @c man sections with the same tag
      	appear, concatenate them in the final output.  When skipping,
      	ignore block commands that can't cause skipping, and honor
      	those that can.  Ensure that verbatim blocks are separate
      	paragraphs.
      
      From-SVN: r38117
      Zack Weinberg committed
    • * Makefile.in (distclean): When cleaning, remove testsuite. · b25a8973
      From-SVN: r38116
      Mike Stump committed
    • ctype_base.h (ctype_base): Change space mask. · 4716be24
      
      2000-12-07  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
      
      	* config/os/generic/bits/ctype_base.h (ctype_base): Change space mask.
      
      	* config/os/generic/bits/ctype_noninline.h (ctype): Remove default
      	arguments in definition.
      	* config/os/solaris/solaris2.7/bits/ctype_noninline.h (ctype): Same.
      	* config/os/solaris/solaris2.6/bits/ctype_noninline.h (ctype): Same.
      	* config/os/solaris/solaris2.5/bits/ctype_noninline.h (ctype): Same.
      	* config/os/newlib/bits/ctype_noninline.h (ctype): Same.
      	* config/os/irix/bits/ctype_noninline.h (ctype): Same.
      	* config/os/hpux/bits/ctype_noninline.h (ctype): Same.
      	* config/os/bsd/netbsd/bits/ctype_noninline.h (ctype): Same.
      	* config/os/bsd/freebsd/bits/ctype_noninline.h (ctype): Same.
      	* config/os/aix/bits/ctype_noninline.h (ctype): Same.
      
      	* include/bits/locale_facets.h: Tweak.
      
      From-SVN: r38115
      Benjamin Kosnik committed
    • flow.c (calculate_global_regs_live): Force the stack pointer live after reload as well. · f846e0de
              * flow.c (calculate_global_regs_live): Force the stack pointer live
              after reload as well.
      
      From-SVN: r38114
      Richard Henderson committed
    • class.c (check_field_decls): Don't special case anonymous fields in error messages. · 38da6039
      	* class.c (check_field_decls): Don't special case anonymous
      	fields in error messages.
      	(note_name_declared_in_class): Use %D on diagnostic.
      
      	* tree.c (pod_type_p): Use strip_array_types.
      	(cp_valid_lang_attribute): Likewise.
      	* typeck.c (cp_type_quals): Strip arrays separately, to avoid
      	multiple evaluations.
      	(cp_has_mutable_p): Use strip_array_types.
      
      From-SVN: r38112
      Nathan Sidwell committed
    • cp-tree.h (sufficient_parms_p): Declare new function. · a11d04b5
      	* cp-tree.h (sufficient_parms_p): Declare new function.
      	* call.c (sufficient_parms_p): New function, broken out of ...
      	(add_function_candidate): ... here. Use it.
      	(add_conv_candidate): Use it.
      	* decl.c (grok_ctor_properties): Use it.
      
      From-SVN: r38111
      Nathan Sidwell committed
    • optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT. · 5eec2847
      	* optimize.c (copy_body_r): Set STMT_IS_FULL_EXPR_P on EXPR_STMT.
      
      	* g++.old-deja/g++.other/cleanup4.C: New test.
      
      From-SVN: r38110
      Jakub Jelinek committed
    • Daily bump. · c0d82ab1
      From-SVN: r38109
      Jeff Law committed
    • * gcc_update: Don't touch tradcif.c or java/parse.h. · beb039fe
      From-SVN: r38108
      Joseph Myers committed
    • * Changelog: Forgotten commit. · 47e4bafa
      From-SVN: r38107
      Neil Booth committed
    • c-common.c (warn_format_security): New variable. · c907e684
      	* c-common.c (warn_format_security): New variable.
      	(check_format_info): Warn about non-literal formats with no format
      	arguments if either -Wformat-nonliteral or -Wformat-security is
      	specified.
      	(set_Wformat): Set warn_format_security for settings other than 1.
      	* c-common.h (warn_format_security): Declare.
      	* c-decl.c (c_decode_option): Decode -Wformat-security and
      	-Wno-format-security.
      	* invoke.texi: Document -Wformat-security.
      	* toplev.c (documented_lang_options): Include -Wformat-security
      	and -Wno-format-security.
      
      cp:
      	* decl2.c (lang_decode_option): Handle -Wformat-security.
      
      testsuite:
      	* format-sec-1.c: New test.
      
      From-SVN: r38106
      Joseph Myers committed
    • c-common.c (check_format_info): Warn for non-constant format strings with… · 1c248308
      c-common.c (check_format_info): Warn for non-constant format strings with strftime formats if -Wformat-nonliteral.
      
      	* c-common.c (check_format_info): Warn for non-constant format
      	strings with strftime formats if -Wformat-nonliteral.  Where the
      	format can convert arguments, if the format is not a string
      	literal and there are no arguments to the format, give a different
      	warning message from the general non-string-literal case.
      
      testsuite:
      	* gcc.dg/format-nonlit-3.c: New test.
      
      From-SVN: r38105
      Joseph Myers committed
    • c-common.c (format_wanted_type): Add reading_from_flag. · 014e7f1d
      	* c-common.c (format_wanted_type): Add reading_from_flag.
      	(print_char_table): Mark %s and %S formats with flag "R".
      	(check_format_info_main): Set up reading_from_flag appropriately.
      	If aflag, always set writing_in_flag rather than relying on the
      	format used being a scanf format and so having it set.
      	(check_format_types): Check for formats reading through null
      	pointers.
      
      testsuite:
      	* gcc.dg/c90-printf-1.c: Add test for printf formats reading
      	through a null pointer.
      
      From-SVN: r38104
      Joseph Myers committed
    • invoke.texi (-Wformat): Document what format features are checked. · 8308e0b7
      	* invoke.texi (-Wformat): Document what format features are
      	checked.
      
      From-SVN: r38103
      Joseph Myers committed
    • pt.c (verify_class_unification): New function. · 74601d7c
      	* pt.c (verify_class_unification): New function.
      	(get_class_bindings): Use it.
      	(try_class_unification): Tidy.
      	(unify): Handle when argument of a template-id is not
      	template parameter dependent.
      	(template_args_equal): Handle when TREE_CODE's do not match.
      
      	* g++.old-deja/g++.oliva/partspec1.C: Remove XFAIL.
      	* g++.old-deja/g++.pt/partial4.C: New test.
      
      From-SVN: r38102
      Kriang Lerdsuwanakij committed
    • c-common.c (parse_in): Make a cpp_reader *. · 9ba2e1ef
              * c-common.c (parse_in): Make a cpp_reader *.
              * cppfiles.c (_cpp_fake_include): Remove.
              * cpphash.h: Similarly.
              * cpplib.c (do_line): Don't call _cpp_fake_include.  A valid
              #line always creates a callback; FC_RENAME if there are no
              #line flags.
              * fix-header.c (read_scan_file): cpp_push_buffer cannot fail.
              The first EOF must be our get_char buffer.
      
      From-SVN: r38101
      Neil Booth committed
    • locale_facets.h (ctype): Remove _Ctype_nois and _Ctype and replace with common… · 167ed88f
      locale_facets.h (ctype): Remove _Ctype_nois and _Ctype and replace with common __ctype_abstract_base.
      
      
      2000-12-06  Benjamin Kosnik  <bkoz@kredhat.com>
      
      	* include/bits/locale_facets.h (ctype): Remove _Ctype_nois and
      	_Ctype and replace with common __ctype_abstract_base.
      	(ctype<wchar_t>::_M_convert_to_wmask): Move to locale.cc.
      	* config/os/gnu-linux/bits/ctype_noninline.h (ctype<char>::ctype):
      	And here.
      	* config/os/solaris/solaris2.7/bits/ctype_noninline.h (ctype): Same.
      	* config/os/solaris/solaris2.6/bits/ctype_noninline.h (ctype): Same.
      	* config/os/solaris/solaris2.5/bits/ctype_noninline.h (ctype): Same.
      	* config/os/newlib/bits/ctype_noninline.h (ctype): Same.
      	* config/os/irix/bits/ctype_noninline.h (ctype): Same.
      	* config/os/hpux/bits/ctype_noninline.h (ctype): Same.
      	* config/os/generic/bits/ctype_noninline.h (ctype): Same.
      	* config/os/aix/bits/ctype_noninline.h (ctype): Same.
      	* config/os/bsd/netbsd/bits/ctype_noninline.h (ctype): Same.
      	* config/os/bsd/freebsd/bits/ctype_noninline.h (ctype): Same.
      	* src/locale-inst.cc: Clean instantiations.
      	* src/locale.cc (ctype<char>): Add definitions here.
      	(ctype<wchar_t>::_M_wmask): Move definitions here.
      
      	* config/os/generic/bits/ctype_inline.h (ctype<char>::is):
      	Implement in a generic way, with only "C" functionality and no
      	knowlege of the target os.
      	* config/os/generic/bits/os_defines.h: Change comments to C++ style.
      	* testsuite/22_locale/ctype_char_members.cc (test01): Add tests.
      
      	* include/bits/codecvt.h (ctype_byname): Remove specializations,
      	as not required.
      	* include/bits/localefwd.h (codecvt_byname): And here.
      	* src/codecvt.cc: Remove codecvt_byname specializations.
      
      	* include/c/bits/std_cstdio.h: Include c++config.h.
      
      From-SVN: r38100
      Benjamin Kosnik committed
    • * config/h8300/h8300.h: Fix formatting. · 1120a1d3
      From-SVN: r38095
      Kazu Hirata committed
    • config.gcc (a29k*-*-rtems*, [...]): New targets. · bc98ef7f
              * config.gcc (a29k*-*-rtems*, arm*-*-rtems*, c4x-*-rtems*,
              h8300-*-rtems*, hppa1.1-*-rtems, *mips*-*-rtems*): New targets.
              * config.gcc (*-rtems*): Add support for gthr-rtems.h.
              * gthr-rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
              config/h8300/rtems.h, config/mips/rtems.h: New files.
      
      From-SVN: r38094
      Joel Sherrill committed
    • config.gcc: Reorganize handling of *-*-gnu*, to share target specific make details with Linux. · 5eeab2e3
      	* config.gcc: Reorganize handling of *-*-gnu*, to share target
      	specific make details with Linux.  Update comments to clarify
              the distinction between GNU/Linux and GNU/Hurd.
      
      From-SVN: r38093
      Mark Kettenis committed
    • c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX. · f5720527
          * c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX.
          * collect2.c (scan_libraries): Remove unused `ch'.
          (COFF specific stuff): Prototype ldgetname.  Declare and prototype
          ldbtread and ldclose.
      
      From-SVN: r38092
      Rodney Brown committed
    • contrib.texi: Fix my email address. · 6b4b8cb9
              * contrib.texi: Fix my email address.  Update Per's
              list of contributions.
      
      From-SVN: r38091
      Jeffrey A Law committed
    • * gcc.c-torture/execute/ieee/hugeval.x: New. · 56ef50e4
      From-SVN: r38090
      J. David Anglin committed
    • Forgot to commit with last change. · 0460a979
      From-SVN: r38089
      Jeff Law committed
    • osf.h: Standarize copyright statement. · 2398fb2a
      
      	* config/alpha/osf.h: Standarize copyright statement.
      	* config/arc/arc.h: Likewise.
      	* config/arm/elf.h config/arm/coff.h config/arm/aout.h: Likewise.
      	* config/arm/arm.c config/arm/arm.h: Likewise.
      	* config/elxsi/elxsi.h: Likewise.
      	* config/i386/sco.h: Likewise.
      	* config/m68k/crds.h config/m68k/hp320.h config/m68k/lynx.h: Likewise.
      	* config/m68k/m68kv4.h config/m68k/next21.h: Likewise.
      	* config/m68k/sun3.h: Likewise.
      	* config/m88k/dgux.h config/m88k/dguxbcs.h: Likewise.
      	* config/pdp11/2bsd.h config/pdp11/pdp11.h: Likewise.
      	* config/romp/romp.h: Likewise.
      	* config/rs6000/aix41.h: Likewise.
      	* config/sparc/sysv4.h: Likewise.
      	* config/we32k/we32k.c config/we32k/we32k.h: Likewise.
      	* fixinc/gnu-regex.c fixinc/gnu-regex.h: Likewise.
      	* cpplib.h cppexp.c cselib.h profile.c: Likewise.
      	* longlong.h: Likewise.
      	* libgcc2.c: Likewise.
      
      From-SVN: r38088
      Rodney Brown committed
    • actions.h: Standarize copyright statement. · 48e1571a
              * actions.h: Standarize copyright statement.
              * except.c inout.c lang.c lex.c lex.h loop.c nloop.c: Likewise.
              * parse.c tasking.c tasking.h timing.c xtypeck.c: Likewise.
      
      From-SVN: r38087
      Rodney Brown committed