gcc.git
23 years agoc-parse.in (c99_block_start, [...]): New.
Joseph Myers [Mon, 13 Nov 2000 14:08:09 +0000 (14:08 +0000)]
c-parse.in (c99_block_start, [...]): New.

* c-parse.in (c99_block_start, c99_block_end,
c99_block_lineno_labeled_stmt): New.
(simple_if, do_stmt_start): Use c99_block_lineno_labeled_stmt.
(stmt): Split off selection and iteration statements into...
(select_or_iter_stmt): New.  Use c99_block_lineno_labeled_stmt.

testsuite:
* gcc.dg/c99-scope-1.c: Remove xfail.
* gcc.dg/c99-scope-2.c: New test.

From-SVN: r37427

23 years agoinvoke.texi (-Wtrigraphs, [...]): Update.
Joseph Myers [Mon, 13 Nov 2000 14:02:54 +0000 (14:02 +0000)]
invoke.texi (-Wtrigraphs, [...]): Update.

* invoke.texi (-Wtrigraphs, -fdump-translation-unit, -save-temps,
-time): Update.

From-SVN: r37426

23 years agoarm.md (mulsidi3adddi, [...]): Revert previous change.
Richard Earnshaw [Mon, 13 Nov 2000 13:58:51 +0000 (13:58 +0000)]
arm.md (mulsidi3adddi, [...]): Revert previous change.

* arm.md (mulsidi3adddi, umulsidi3adddi): Revert previous change.
Rewrite to avoid use of match_dup.  Don't try to tie registers that
are not in the same mode.

From-SVN: r37425

23 years ago* invoke.texi: Update lists of languages and suffixes supported.
Joseph Myers [Mon, 13 Nov 2000 13:41:46 +0000 (13:41 +0000)]
* invoke.texi: Update lists of languages and suffixes supported.

From-SVN: r37424

23 years agoconfigure: Provide the original toplevel configure arguments (including $0) to...
Joseph Myers [Mon, 13 Nov 2000 13:39:36 +0000 (13:39 +0000)]
configure: Provide the original toplevel configure arguments (including $0) to...

* configure: Provide the original toplevel configure arguments
(including $0) to subprocesses in the environment rather than
through gcc/configargs.h.

gcc:
* configure.in: Take toplevel configure arguments from the
environment to create configargs.h and substitute
gcc_config_arguments, taking account of any existing configargs.h
if reconfiguring.
* configure: Regenerate.
* gccbug.in: Include toplevel configure arguments in gccbug.

From-SVN: r37423

23 years agovarasm.c (struct constant_descriptor): Put CONTENTS inside a union to make it well...
Richard Earnshaw [Mon, 13 Nov 2000 13:35:26 +0000 (13:35 +0000)]
varasm.c (struct constant_descriptor): Put CONTENTS inside a union to make it well-aligned.

* varasm.c (struct constant_descriptor): Put CONTENTS inside a
union to make it well-aligned.  Update all uses.

From-SVN: r37422

23 years agoc-parse.in (initelt): Give appropriate pedantic warnings...
Joseph Myers [Mon, 13 Nov 2000 13:31:16 +0000 (13:31 +0000)]
c-parse.in (initelt): Give appropriate pedantic warnings...

* c-parse.in (initelt): Give appropriate pedantic warnings,
depending on flag_isoc99, for non-ISO syntax and for C99 syntax
outside C99 mode.
(designator): If pedantic, pedwarn for a designator specifying a
range of elements.
* c-typeck.c (set_init_index, set_init_label): Don't pedwarn for
these cases.
* extend.texi: Document the C99 syntax as the preferred syntax,
and the pre-2.5 syntax as obsolete.  Mention use of designator
lists for nested subobjects.

From-SVN: r37421

23 years agoMAINTAINERS: Remove references to cccp.
Joseph Myers [Mon, 13 Nov 2000 13:25:53 +0000 (13:25 +0000)]
MAINTAINERS: Remove references to cccp.

* MAINTAINERS: Remove references to cccp. Change C9X reference to
C99.  Alphabetise "Write After Approval" list.

From-SVN: r37420

23 years agodiagnostic.c (vbuild_message_string, [...]): Add ATTRIBUTE_PRINTF.
Joseph Myers [Mon, 13 Nov 2000 13:23:37 +0000 (13:23 +0000)]
diagnostic.c (vbuild_message_string, [...]): Add ATTRIBUTE_PRINTF.

* diagnostic.c (vbuild_message_string, output_do_printf, vnotice):
Add ATTRIBUTE_PRINTF.
* tradcpp.c (v_message, warning, error, fatal, error_with_line):
Add ATTRIBUTE_PRINTF*.

java:
* parse.y (issue_warning_error_from_context): Add
ATTRIBUTE_PRINTF.

From-SVN: r37419

23 years agoDaily bump.
Jeff Law [Mon, 13 Nov 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r37418

23 years agofunction.c (assign_parms): When calling put_var_into_stack...
Mark Mitchell [Mon, 13 Nov 2000 07:00:55 +0000 (07:00 +0000)]
function.c (assign_parms): When calling put_var_into_stack...

* function.c (assign_parms): When calling put_var_into_stack, make
sure that there are no hidden pending sequences.

From-SVN: r37417

23 years agobuiltins.c (expand_builtin): Handle BUILT_IN_INDEX and BUILT_IN_RINDEX.
Kaveh R. Ghazi [Mon, 13 Nov 2000 02:14:05 +0000 (02:14 +0000)]
builtins.c (expand_builtin): Handle BUILT_IN_INDEX and BUILT_IN_RINDEX.

* builtins.c (expand_builtin): Handle BUILT_IN_INDEX and
BUILT_IN_RINDEX.  Add missing checks for BUILT_IN_STRCHR and
BUILT_IN_STRRCHR.

* builtins.def (BUILT_IN_INDEX, BUILT_IN_RINDEX): New entries.

* c-common.c (c_common_nodes_and_builtins): Declare index and
rindex when nonansi builtins are allowed.

* extend.texi (index, rindex): Document new builtins.

testsuite:
* gcc.c-torture/execute/string-opt-3.c: Also test builtin rindex.
* gcc.c-torture/execute/string-opt-4.c: Also test builtin index.

From-SVN: r37416

23 years agoconfigure: Turn on libstdc++ V3 by default.
Mark Mitchell [Mon, 13 Nov 2000 01:15:40 +0000 (01:15 +0000)]
configure: Turn on libstdc++ V3 by default.

* configure: Turn on libstdc++ V3 by default.

* configure.in: Turn on libstdc++ V3 by default.
* configure: Regenerated.

From-SVN: r37415

23 years agoltcf-c.sh: On Solaris, use `gcc -shared' to build a shared library if we've got GCC.
Mark Mitchell [Mon, 13 Nov 2000 00:49:03 +0000 (00:49 +0000)]
ltcf-c.sh: On Solaris, use `gcc -shared' to build a shared library if we've got GCC.

* ltcf-c.sh: On Solaris, use `gcc -shared' to build a shared library
if we've got GCC.

From-SVN: r37414

23 years agostd_cmath.h (abs): Change extern "C" declaration of `abs (double)' to ...
Mark Mitchell [Mon, 13 Nov 2000 00:43:39 +0000 (00:43 +0000)]
std_cmath.h (abs): Change extern "C" declaration of `abs (double)' to ...

* include/c/bits/std_cmath.h (abs): Change extern "C" declaration
of `abs (double)' to ...
(fabs): this.

From-SVN: r37413

23 years agoos_defines.h: Define __EXTENSIONS__.
Mark Mitchell [Mon, 13 Nov 2000 00:25:40 +0000 (00:25 +0000)]
os_defines.h: Define __EXTENSIONS__.

* config/os/solaris/solaris2.7/bits/os_defines.h: Define
__EXTENSIONS__.

From-SVN: r37412

23 years agogeneralize the release script a bit
Bruce Korb [Mon, 13 Nov 2000 00:25:21 +0000 (00:25 +0000)]
generalize the release script a bit

From-SVN: r37411

23 years ago* fixinc/mkfixinc.sh: Use the ordinary fixincludes on Solaris.
Mark Mitchell [Mon, 13 Nov 2000 00:19:37 +0000 (00:19 +0000)]
* fixinc/mkfixinc.sh: Use the ordinary fixincludes on Solaris.

From-SVN: r37410

23 years ago* reload1.c (set_label_offsets): Go inside of PARALLELs.
Jakub Jelinek [Sun, 12 Nov 2000 22:52:35 +0000 (23:52 +0100)]
* reload1.c (set_label_offsets): Go inside of PARALLELs.

From-SVN: r37409

23 years ago* invoke.texi: Clean up option summary.
Joseph Myers [Sun, 12 Nov 2000 19:17:59 +0000 (19:17 +0000)]
* invoke.texi: Clean up option summary.

From-SVN: r37408

23 years agoFix comment formating, and adjust sequence of #include headers.
Nick Clifton [Sun, 12 Nov 2000 18:40:22 +0000 (18:40 +0000)]
Fix comment formating, and adjust sequence of #include headers.

From-SVN: r37407

23 years agoconfigure.in: Fix filds test.
Marc Espie [Sun, 12 Nov 2000 14:06:23 +0000 (14:06 +0000)]
configure.in: Fix filds test.

* configure.in: Fix filds test.
* configure: Regen.

From-SVN: r37406

23 years agojump.c (delete_computation): Don't assume that just becuase an instruction sets a...
Mark Mitchell [Sun, 12 Nov 2000 13:01:37 +0000 (13:01 +0000)]
jump.c (delete_computation): Don't assume that just becuase an instruction sets a register...

* jump.c (delete_computation): Don't assume that just becuase an
instruction sets a register, that register is dead.

From-SVN: r37405

23 years agocppexp.c: Don't worry about pfile->skipping.
Neil Booth [Sun, 12 Nov 2000 11:46:21 +0000 (11:46 +0000)]
cppexp.c: Don't worry about pfile->skipping.

        * cppexp.c: Don't worry about pfile->skipping.
        * cpplib.c (struct if_stack): Make was_skipping unsigned char.
        (cpp_handle_directive): Save pfile->skipping in struct cpp_buffer
        for handled directives.
        (skip_rest_of_line): Use _cpp_lex_token after popping contexts
        and releasing lookaheads.
        (do_ifdef, do_ifndef, do_if): Use buffer->was_skipping.
        (do_else, do_elif, push_conditional): Update logic.
        (do_endif): Set buffer->was_skipping rather than pfile->skipping.
        (unwind_if_stack): Inline into cpp_pop_buffer.
        (cpp_push_buffer): Clear ifs->was_skipping for cpp_handle_directive.
        * cpplex.c (_cpp_lex_token): Clear skipping on EOF.  Handle
        multiple-include optimisation.
        * cpplib.h (struct cpp_buffer): New member was_skipping.
        * cppmacro.c (_cpp_get_token): Loop whilst pfile->skipping.  This
        works because skipping == 0 in directives.
        (_cpp_release_lookahead): Renamed from release_lookahead.
        (cpp_get_token): No need to check skipping as _cpp_get_token does
        this for us.  No need to handle MI optimisation.

From-SVN: r37404

23 years agoDaily bump.
Jeff Law [Sun, 12 Nov 2000 08:45:08 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r37403

23 years agoinclhack.def (sunos_matherr_decl): Bypass matherr declarations that use `__MATH_EXCEP...
Mark Mitchell [Sun, 12 Nov 2000 04:16:07 +0000 (04:16 +0000)]
inclhack.def (sunos_matherr_decl): Bypass matherr declarations that use `__MATH_EXCEPTION' in their prototypes, too.

* fixinc/inclhack.def (sunos_matherr_decl): Bypass matherr
declarations that use `__MATH_EXCEPTION' in their prototypes, too.
* fixinc/fixincl.x: Regenerated.

From-SVN: r37402

23 years agoavoid commenting out #endifs
Bruce Korb [Sun, 12 Nov 2000 03:37:33 +0000 (03:37 +0000)]
avoid commenting out #endifs

From-SVN: r37401

23 years agobasic_file.h (__basic_file): Don't use __c_wfile_type when _GLIBCPP_USE_WCHAR_T is...
Mark Mitchell [Sun, 12 Nov 2000 03:27:10 +0000 (03:27 +0000)]
basic_file.h (__basic_file): Don't use __c_wfile_type when _GLIBCPP_USE_WCHAR_T is not defined.

* include/bits/basic_file.h (__basic_file): Don't use __c_wfile_type
when _GLIBCPP_USE_WCHAR_T is not defined.

From-SVN: r37400

23 years agoconfigure.in: Don't add $outputs to all_lang_makefiles.
Zack Weinberg [Sun, 12 Nov 2000 02:09:33 +0000 (02:09 +0000)]
configure.in: Don't add $outputs to all_lang_makefiles.

* configure.in: Don't add $outputs to all_lang_makefiles.  Add
$srcdir/$s/Makefile.in if it exists.
* configure: Regenerate.

From-SVN: r37399

23 years ago* fixinc/mkfixinc.sh: Use the ordinary fixincludes on IRIX.
Mark Mitchell [Sun, 12 Nov 2000 01:50:39 +0000 (01:50 +0000)]
* fixinc/mkfixinc.sh: Use the ordinary fixincludes on IRIX.

From-SVN: r37398

23 years ago* gcc_build: Add -o option for setting the objdir to use.
Mark Mitchell [Sun, 12 Nov 2000 00:29:37 +0000 (00:29 +0000)]
* gcc_build: Add -o option for setting the objdir to use.

From-SVN: r37397

23 years agofunction.c (assign_parms): If TREE_ADDRESSABLE is set...
Jason Merrill [Sun, 12 Nov 2000 00:11:47 +0000 (19:11 -0500)]
function.c (assign_parms): If TREE_ADDRESSABLE is set...

        * function.c (assign_parms): If TREE_ADDRESSABLE is set, try to
        give the parm a register and then call put_var_into_stack.
        * stmt.c (expand_decl): Likewise.

cp/
        * typeck.c (mark_addressable): Don't call put_var_into_stack.

From-SVN: r37396

23 years agoerr-msg8.C: Avoid capricious line-number issues with error messages.
Mark Mitchell [Sat, 11 Nov 2000 23:59:50 +0000 (23:59 +0000)]
err-msg8.C: Avoid capricious line-number issues with error messages.

* g++.brendan/err-msg8.C: Avoid capricious line-number issues with
error messages.

From-SVN: r37395

23 years agodecl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics in inlines.
Jason Merrill [Sat, 11 Nov 2000 23:50:20 +0000 (18:50 -0500)]
decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics in inlines.

        * decl.c (maybe_commonize_var): Set DECL_UNINLINABLE for statics
        in inlines.

From-SVN: r37394

23 years ago* gcc.texi: Adjust wording.
Joseph Myers [Sat, 11 Nov 2000 23:44:24 +0000 (23:44 +0000)]
* gcc.texi: Adjust wording.

From-SVN: r37393

23 years agop700.C: Don't typedef wchar_t.
Mark Mitchell [Sat, 11 Nov 2000 23:23:06 +0000 (23:23 +0000)]
p700.C: Don't typedef wchar_t.

* g++.mike/p700.C: Don't typedef wchar_t.
* g++.mike/p784.C: Likewise.
* g++.mike/eb101.C: Don't use __wchar_t.

From-SVN: r37392

23 years agoinclhack.def (avoid_wchar_t_type): New fix.
Mark Mitchell [Sat, 11 Nov 2000 21:40:27 +0000 (21:40 +0000)]
inclhack.def (avoid_wchar_t_type): New fix.

* fixinc/inclhack.def (avoid_wchar_t_type): New fix.
* fininc/fixincl.x: Regenerated.

From-SVN: r37391

23 years agojcf-parse.c (process_zip_dir): Add finput parameter.
Anthony Green [Sat, 11 Nov 2000 20:19:42 +0000 (20:19 +0000)]
jcf-parse.c (process_zip_dir): Add finput parameter.

2000-11-11  Anthony Green  <green@redhat.com>

* jcf-parse.c (process_zip_dir): Add finput parameter.
(jcf_figure_file_type): Call process_zip_dir with appropriate
argument.

From-SVN: r37390

23 years ago20001111.[fx]: Test premature exit from DO loop.
Toon Moene [Sat, 11 Nov 2000 20:05:48 +0000 (21:05 +0100)]
20001111.[fx]: Test premature exit from DO loop.

2000-11-11  Toon Moene  <toon@moene.indiv.nluug.nl>

* g77.f-torture/execute/20001111.[fx]: Test premature exit
from DO loop.

From-SVN: r37389

23 years agoAdd self to MAINTAINERS file.
Philip Blundell [Sat, 11 Nov 2000 17:12:33 +0000 (17:12 +0000)]
Add self to MAINTAINERS file.

From-SVN: r37388

23 years agoNew execution test.
Bernd Schmidt [Sat, 11 Nov 2000 14:09:42 +0000 (14:09 +0000)]
New execution test.

From-SVN: r37387

23 years ago* invoke.texi: Correct spelling of -foptimize-register-move.
Joseph Myers [Sat, 11 Nov 2000 14:00:12 +0000 (14:00 +0000)]
* invoke.texi: Correct spelling of -foptimize-register-move.

From-SVN: r37386

23 years agoRemove CPP_PLACEMARKERs
Neil Booth [Sat, 11 Nov 2000 13:19:01 +0000 (13:19 +0000)]
Remove CPP_PLACEMARKERs

* cppexp.c (lex): Don't handle CPP_PLACEMARKER.
* cpplex.c (_cpp_lex_token): Rename skip_newlines to next_bol
* cpplib.c (skip_rest_of_line, check_eol, cpp_push_buffer):
           Similarly.
* cpplib.h: Remove CPP_PLACEMARKER.
(struct lexer_state): Rename skip_newlines to next_bol.
* cppmacro.c (stringify_arg): Don't handle CPP_PLACEMARKER.
Simplify prev_white handling as a result.
(paste_all_tokens): Don't worry about CPP_PLACEMARKERs.
(parse_arg): Empty arguments are now empty, not CPP_PLACEMARKERs.
(parse_args): Similarly.  Update argument count tests.
(enter_macro_context): Return 2 to indicate an empty macro.
(replace_args): Don't bother pre-expanding an empty argument.
Handle placemarkers and ## extension during pre-expansion.
(cpp_get_token): Handle empty macro expansions.  Don't worry
about CPP_PLACEMARKERs.
(_cpp_create_definition): Empty macros are now empty.
(cpp_macro_defintion): Don't special case empty macros.
* scan-decls.c: Don't bother with CPP_PLACEMARKERs.
* c-lex.c: Similarly.

From-SVN: r37385

23 years ago* release: New file.
Jeff Law [Sat, 11 Nov 2000 12:30:16 +0000 (05:30 -0700)]
* release: New file.

From-SVN: r37384

23 years agogcc.texi, [...]: Add new section discussing language standards...
Joseph Myers [Sat, 11 Nov 2000 10:06:22 +0000 (10:06 +0000)]
gcc.texi, [...]: Add new section discussing language standards...

* gcc.texi, invoke.texi: Add new section discussing language
standards; link to it where appropriate; refer to ISO C instead of
ANSI C.

From-SVN: r37383

23 years agoDaily bump.
Jeff Law [Sat, 11 Nov 2000 08:45:08 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r37382

23 years agobuiltins.c (std_expand_builtin_va_start): Take PARM_BOUNDARY into account.
Alexandre Oliva [Sat, 11 Nov 2000 06:04:59 +0000 (06:04 +0000)]
builtins.c (std_expand_builtin_va_start): Take PARM_BOUNDARY into account.

* builtins.c (std_expand_builtin_va_start): Take PARM_BOUNDARY
into account.

From-SVN: r37381

23 years agosh.h (MODES_TIEABLE_P): Don't tie SFmode to other FP modes.
Alexandre Oliva [Sat, 11 Nov 2000 05:54:02 +0000 (05:54 +0000)]
sh.h (MODES_TIEABLE_P): Don't tie SFmode to other FP modes.

* config/sh/sh.h (MODES_TIEABLE_P): Don't tie SFmode to other FP
modes.

From-SVN: r37380

23 years agocodecvt.h (__iconv_adaptor): New adaptor function...
Phil Edwards [Sat, 11 Nov 2000 00:37:45 +0000 (00:37 +0000)]
codecvt.h (__iconv_adaptor): New adaptor function...

2000-11-10  Phil Edwards  <pme@sources.redhat.com>

* include/bits/codecvt.h (__iconv_adaptor):  New adaptor function,
  courtesy of Alexandre Oliva, to handle const/non-const signatures.
  (codecvt::do_out):  Use.
  (codecvt::do_in):  And here.

From-SVN: r37379

23 years ago* Make-lang.in: Remove OUTPUT_OPTION from g77version.o target.
Rodney Brown [Fri, 10 Nov 2000 21:29:53 +0000 (13:29 -0800)]
* Make-lang.in: Remove OUTPUT_OPTION from g77version.o target.

From-SVN: r37378

23 years agoroot.texi: Remove non-historical EGCS reference.
Toon Moene [Fri, 10 Nov 2000 20:38:05 +0000 (21:38 +0100)]
root.texi: Remove non-historical EGCS reference.

2000-11-10  Toon Moene  <toon@moene.indiv.nluug.nl>

* root.texi: Remove non-historical EGCS reference.
Set current g77 version to 0.5.26.

From-SVN: r37377

23 years agocom.c (ffecom_stabilize_aggregate_) [case RTL_EXPR]: Abort.
Toon Moene [Fri, 10 Nov 2000 20:36:15 +0000 (21:36 +0100)]
com.c (ffecom_stabilize_aggregate_) [case RTL_EXPR]: Abort.

2000-11-10  Toon Moene  <toon@moene.indiv.nluug.nl>

* com.c (ffecom_stabilize_aggregate_) case RTL_EXPR:
Abort.

From-SVN: r37376

23 years agoAdd test of unsigned long long multuiple and accumulate.
Nick Clifton [Fri, 10 Nov 2000 19:27:35 +0000 (19:27 +0000)]
Add test of unsigned long long multuiple and accumulate.

From-SVN: r37375

23 years ago* gcc.texi, gcov.texi: Update dates and version numbers.
Joseph Myers [Fri, 10 Nov 2000 19:01:31 +0000 (19:01 +0000)]
* gcc.texi, gcov.texi: Update dates and version numbers.

From-SVN: r37374

23 years ago* include/bits/cpp_type_traits.h: Fix typos. Adjust formatting.
Gabriel Dos Reis [Fri, 10 Nov 2000 17:48:15 +0000 (17:48 +0000)]
* include/bits/cpp_type_traits.h: Fix typos.  Adjust formatting.

From-SVN: r37373

23 years agolocalefwd.h (_Count_ones<>::_S_halfcount, [...]): Turn into enumerators.
Gabriel Dos Reis [Fri, 10 Nov 2000 17:34:49 +0000 (17:34 +0000)]
localefwd.h (_Count_ones<>::_S_halfcount, [...]): Turn into enumerators.

* include/bits/localefwd.h (_Count_ones<>::_S_halfcount,
_Count_ones<>::_S_count): Turn into enumerators.

From-SVN: r37372

23 years agoconfigure.in: Remove AC_PROG_LEX and AC_PROG_YACC.
Zack Weinberg [Fri, 10 Nov 2000 17:23:09 +0000 (17:23 +0000)]
configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.

* configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.  Look for
flex and bison, specifically, first in a unified build and
then installed on the system.
* Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@.  Rename
LEXFLAGS to FLEXFLAGS.  Adjust ORDINARY_FLAGS_TO_PASS to
match.

(collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
cppdefault.o): Remove pointless sed munging of source file
name.

f:
* Make-lang.in (f/fini.o, f/proj-h.o): Remove pointless sed
munging of source file name.
($(srcdir)/f/intdoc.texi): Break up into several rules each of
which builds just one thing.  Don't mess with $(LANGUAGES).
(f/ansify.o, f/intdoc.o): Remove unnecessary rules.

From-SVN: r37371

23 years agoSeveral fixes to make reload handle POST_MODIFY correctly.
Bernd Schmidt [Fri, 10 Nov 2000 17:10:29 +0000 (17:10 +0000)]
Several fixes to make reload handle POST_MODIFY correctly.

From-SVN: r37370

23 years agolibgcc2.c (__shtab): Remove __shtab variable.
Jeff Law [Fri, 10 Nov 2000 16:38:26 +0000 (09:38 -0700)]
libgcc2.c (__shtab): Remove __shtab variable.

        * libgcc2.c (__shtab): Remove __shtab variable.
        * libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
        * Makefile.in (LIB2FUNCS): Remove _shtab from list of library
        members.
Forgot to commit with above change.

From-SVN: r37369

23 years ago* c-dump.h: New file.
Mark Mitchell [Fri, 10 Nov 2000 16:29:34 +0000 (16:29 +0000)]
* c-dump.h: New file.

From-SVN: r37368

23 years agoalpha.c (check_float_value): Use memcpy, not bcopy.
Kaveh R. Ghazi [Fri, 10 Nov 2000 16:01:28 +0000 (16:01 +0000)]
alpha.c (check_float_value): Use memcpy, not bcopy.

* alpha.c (check_float_value): Use memcpy, not bcopy.
* arm.c (output_move_double): Likewise.
* arm.md: Likewise.
* m88k.c (legitimize_operand): Likewise.
* m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
* m88k.md: Likewise.
* mips.c (override_options): Likewise.
* mips.md: Likewise.
* romp.c (output_fpops): Likewise.
* rs6000.c (rs6000_override_options): Likewise.
* sh.md: Likewise.
* vax.c (check_float_value): Likewise.

* emit-rtl.c (copy_rtx_if_shared, init_emit_once): Likewise.
* expmed.c (synth_mult): Likewise.
* final.c (add_bb_string): Likewise.
* genattr.c (main): Likewise.
* genattrtab.c (attr_string, simplify_cond, copy_rtx_unchanging):
Likewise.
* jump.c (thread_jumps): Likewise.
* prefix.c (save_string): Likewise.
* real.h (REAL_VALUE_FROM_CONST_DOUBLE): Likewise.
* regclass.c (init_reg_sets, init_reg_sets_1): Likewise.
* reload1.c (reload, eliminate_regs): Likewise.

cp:
* decl.c (grokdeclarator, save_function_data): Use memcpy, not bcopy.
* lex.c (copy_lang_decl): Likewise.

java:
* decl.c (copy_lang_decl): Use memcpy, not bcopy.
* jcf-parse.c (jcf_figure_file_type): Likewise.

From-SVN: r37367

23 years agogcc.texi (Service): Update to reflect current practice and location of the GNU servic...
Joseph Myers [Fri, 10 Nov 2000 12:58:07 +0000 (12:58 +0000)]
gcc.texi (Service): Update to reflect current practice and location of the GNU service directory.

* gcc.texi (Service): Update to reflect current practice and
location of the GNU service directory.

From-SVN: r37366

23 years agoFix ia64 float extend splitter crash.
Bernd Schmidt [Fri, 10 Nov 2000 11:43:43 +0000 (11:43 +0000)]
Fix ia64 float extend splitter crash.

From-SVN: r37365

23 years agoFix REG_INC note handling in register renamer.
Bernd Schmidt [Fri, 10 Nov 2000 10:44:42 +0000 (10:44 +0000)]
Fix REG_INC note handling in register renamer.

From-SVN: r37364

23 years agoDaily bump.
Jeff Law [Fri, 10 Nov 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r37363

23 years agoc-tree.texi: Fix typos.
Jan van Male [Fri, 10 Nov 2000 05:56:47 +0000 (06:56 +0100)]
c-tree.texi: Fix typos.

2000-11-08  Jan van Male  <jan.vanmale@fenk.wau.nl>

        * c-tree.texi: Fix typos.
        * extend.texi: Likewise
        * gcov.texi: Likewise
        * rtl.texi: Likewise
        * tm.texi: Likewise

From-SVN: r37362

23 years ago* c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
Hans-Peter Nilsson [Fri, 10 Nov 2000 05:26:10 +0000 (05:26 +0000)]
* c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
        in_system_header and flags[1] before dereferencing flags[2].

From-SVN: r37361

23 years agoreload1.c (reload_combine): Fixed calculation of first_index_reg, last_index_reg.
Matthew Hiller [Fri, 10 Nov 2000 05:22:48 +0000 (05:22 +0000)]
reload1.c (reload_combine): Fixed calculation of first_index_reg, last_index_reg.

* reload1.c (reload_combine): Fixed calculation of
first_index_reg, last_index_reg.

From-SVN: r37360

23 years agoc-dump.c (dequeue_and_dump): Dump function bodies.
Mark Mitchell [Fri, 10 Nov 2000 04:50:53 +0000 (04:50 +0000)]
c-dump.c (dequeue_and_dump): Dump function bodies.

* c-dump.c (dequeue_and_dump): Dump function bodies.

* dump.c (cp_dump_tree): Don't dump function bodies here.

From-SVN: r37359

23 years agoMakefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
Mark Mitchell [Fri, 10 Nov 2000 04:29:45 +0000 (04:29 +0000)]
Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.

* Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
(c-dump.o): New target.
* c-common.h (flag_dump_translation_unit): New variable.
(C_TYPE_QUALS): New macro.
(strip_array_types): New function.
(DECL_C_BIT_FIELD): New macro.
(SET_DECL_C_BIT_FIELD): Likewise.
(CLEAR_DECL_C_BIT_FIELD): Likewise.
(dump_info_p): New typedef.
(dump_tree_fn): Likewise.
(lang_dump_tree): New variable.
(dump_node_to_file): New function.
* c-common.c (flag_dump_translation_unit): Define it.
(strip_array_types): New function.
* c-decl.c (c_decode_option): Handle -fdump-translation-unit.
* c-lang.c (finish_file): Call dump_node_to_file if
flag_dump_translation_unit.
* c-semantics.c (mark_rtl_for_local_static): Fix typo in comment.
* c-tree.h (DECL_C_BIT_FIELD): Remove declaration.
* c-dump.c: New file.

* Make-lang.in (CXX_C_OBJS): Add c-dump.o.
(dump.o): Update dependency list.
* cp-tree.h (DECL_MAYBE_TEMPLATE): Remove.
(flag_dump_translation_unit): Likewise.
(CP_TYPE_QUALS): Adjust definition.
(DECL_C_BIT_FIELD): Remove.
(SET_DECL_C_BIT_FIELD): Likewise.
(CLEAR_DECL_C_BIT_FIELD): Likewise.
(add_maybe_template): Likewise.
(strip_array_types): Likewise.
(dump_node_to_file): Likewise.
(cp_dump_tree): New function.
* decl.c (init_decl_processing): Set lang_dump_tree.
* decl2.c (flag_dump_translation_unit): Remove.
* dump.c: Move most of it to ../c-dump.c.
(cp_dump_tree): New function.
* pt.c (add_maybe_template): Remove.
* typeck.c (strip_array_types): Likewise.

From-SVN: r37358

23 years ago* config/i386/cygwin.h: Add mingw startfile prefix.
Christopher Faylor [Fri, 10 Nov 2000 04:10:04 +0000 (04:10 +0000)]
* config/i386/cygwin.h: Add mingw startfile prefix.

From-SVN: r37357

23 years agoflow.c (invalidate_mems_from_set): Split out from ...
Richard Henderson [Fri, 10 Nov 2000 02:03:28 +0000 (18:03 -0800)]
flow.c (invalidate_mems_from_set): Split out from ...

        * flow.c (invalidate_mems_from_set): Split out from ...
        (mark_set_1): ... here.
        (try_pre_increment_1): Use it.  Use propagate_block_delete_insn
        instead of turning insn into a NOTE_INSN_DELETED.

From-SVN: r37356

23 years agoextend.texi, [...]: Move documentation of builtin versions of C library functions...
Joseph Myers [Fri, 10 Nov 2000 01:46:00 +0000 (01:46 +0000)]
extend.texi, [...]: Move documentation of builtin versions of C library functions to one place and...

* extend.texi, invoke.texi: Move documentation of builtin versions
of C library functions to one place and update.

From-SVN: r37355

23 years agofold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than the types themselves to...
Richard Henderson [Fri, 10 Nov 2000 00:12:01 +0000 (16:12 -0800)]
fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than the types themselves to discover type...

        * fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
        the types themselves to discover type equivalence.

From-SVN: r37354

23 years ago* Makefile.in (distclean): Remove a few extra leftovers.
Mike Stump [Fri, 10 Nov 2000 00:09:02 +0000 (00:09 +0000)]
* Makefile.in (distclean): Remove a few extra leftovers.

From-SVN: r37353

23 years agorecog.c (validate_replace_rtx_1): Consider subregs when replacing a register with...
Richard Henderson [Fri, 10 Nov 2000 00:07:52 +0000 (16:07 -0800)]
recog.c (validate_replace_rtx_1): Consider subregs when replacing a register with a constant inside a...

        * recog.c (validate_replace_rtx_1): Consider subregs when
        replacing a register with a constant inside a sign/zero_extend.

From-SVN: r37352

23 years agosequence-pt-1.c: Cast from pointer to integer via size_t instead of int.
Richard Henderson [Fri, 10 Nov 2000 00:01:29 +0000 (16:01 -0800)]
sequence-pt-1.c: Cast from pointer to integer via size_t instead of int.

        * gcc.dg/sequence-pt-1.c: Cast from pointer to integer
        via size_t instead of int.

From-SVN: r37351

23 years ago* config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
Richard Henderson [Thu, 9 Nov 2000 23:57:41 +0000 (15:57 -0800)]
* config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.

From-SVN: r37350

23 years agostring-opt-1.c: Make stub functions static.
Richard Henderson [Thu, 9 Nov 2000 23:21:39 +0000 (15:21 -0800)]
string-opt-1.c: Make stub functions static.

        * gcc.c-torture/execute/string-opt-1.c: Make stub functions static.
        * gcc.c-torture/execute/string-opt-2.c: Likewise.
        * gcc.c-torture/execute/string-opt-3.c: Likewise.
        * gcc.c-torture/execute/string-opt-4.c: Likewise.

From-SVN: r37349

23 years agodecl.c (init_decl_processing): Change definition of __wchar_t to wchar_t.
Eric Christopher [Thu, 9 Nov 2000 23:15:27 +0000 (23:15 +0000)]
decl.c (init_decl_processing): Change definition of __wchar_t to wchar_t.

2000-11-07  Eric Christopher  <echristo@redhat.com>

        * decl.c (init_decl_processing): Change definition of
        __wchar_t to wchar_t.  Remove artificial declaration of
        wchar_t.
        * lex.c: Change instances of __wchar_t to wchar_t.

From-SVN: r37348

23 years agoltcf-c.sh (aix4): Improve shared library configuration; require exporting symbols.
David Edelsohn [Thu, 9 Nov 2000 21:41:11 +0000 (21:41 +0000)]
ltcf-c.sh (aix4): Improve shared library configuration; require exporting symbols.

        * ltcf-c.sh (aix4): Improve shared library configuration; require
        exporting symbols.
        * ltcf-cxx.sh (aix4): Define.
        * ltconfig (aix4): Define library and soname specs appropriate for
        AIX.  Define command to create export symbols list.

From-SVN: r37347

23 years agoIn gcc/: 2000-11-09 Geoffrey Keating <geoffk@redhat.com>
Geoffrey Keating [Thu, 9 Nov 2000 21:29:54 +0000 (21:29 +0000)]
In gcc/: 2000-11-09 Geoffrey Keating <geoffk@redhat.com>

In gcc/:
2000-11-09  Geoffrey Keating  <geoffk@redhat.com>

* c-decl.c (finish_struct): When a structure is completed,
check all its variant types for completeness.

In gcc/testsuite/:
2000-11-09  Geoffrey Keating  <geoffk@redhat.com>

* gcc.c-torture/compile/20001109-1.c: New test.
* gcc.c-torture/compile/20001109-2.c: New test.

From-SVN: r37346

23 years agocpphash.c: Move cpp_defined here from cpplib.c.
Neil Booth [Thu, 9 Nov 2000 21:18:15 +0000 (21:18 +0000)]
cpphash.c: Move cpp_defined here from cpplib.c.

        * cpphash.c: Move cpp_defined here from cpplib.c.
        * cpplib.c: Update comments, move cpp_defined to cpphash.c.
        * cpplex.c (_cpp_lex_token): Don't leave the lexer at EOL.
        * cppmacro.c (cpp_get_token): Update comments, no need now
        to catch the CPP_EOF meaning EOL case.

From-SVN: r37345

23 years agosparc.c (sparc_va_arg): When the required alignment is more than that provided, copy...
Geoffrey Keating [Thu, 9 Nov 2000 17:38:20 +0000 (17:38 +0000)]
sparc.c (sparc_va_arg): When the required alignment is more than that provided, copy to a temporary.

* config/sparc/sparc.c (sparc_va_arg): When the required alignment
is more than that provided, copy to a temporary.

From-SVN: r37344

23 years ago* g++.old-deja/g++.brendan/err-msg8.C: Adjust error line.
Nathan Sidwell [Thu, 9 Nov 2000 17:09:33 +0000 (17:09 +0000)]
* g++.old-deja/g++.brendan/err-msg8.C: Adjust error line.

From-SVN: r37343

23 years agomklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from interpreting $out as a macro...
Alexandre Oliva [Thu, 9 Nov 2000 13:56:53 +0000 (13:56 +0000)]
mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from interpreting $out as a macro assignment.

* mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from
interpreting $out as a macro assignment.
* Makefile.in (T_TARGET): New auxiliary macro and target.
(all): Add a target right in the beginning, so that we don't build
T_TARGET by default.

From-SVN: r37342

23 years agoi386.md (mmx_pinsrw): Output operands in correct order for -mintel-syntax.
Graham Stott [Thu, 9 Nov 2000 11:30:02 +0000 (11:30 +0000)]
i386.md (mmx_pinsrw): Output operands in correct order for -mintel-syntax.

        * config/i386/i386.md (mmx_pinsrw): Output operands in correct
        order for -mintel-syntax.  Remove comment now that the operand
        order has been checked.
        (mmx_pextrw): Likewise.
        (mmx_pshufw): Likewise.

From-SVN: r37341

23 years agolex.c (do_identifier): Don't lookup_name for operators.
Nathan Sidwell [Thu, 9 Nov 2000 09:55:32 +0000 (09:55 +0000)]
lex.c (do_identifier): Don't lookup_name for operators.

gcp/ChangeLog:
* lex.c (do_identifier): Don't lookup_name for operators.
* parse.y (operator): Save looking_for_typename.
(unoperator): Restore it.
* spew.c (frob_opname): Use nth_token for lookahead.
testsuite/ChangeLog:
* g++.old-deja/g++.pt/operator1.C: New test.

From-SVN: r37340

23 years ago* gcc.dg/20001108-1.c: New test.
Jakub Jelinek [Thu, 9 Nov 2000 09:31:48 +0000 (10:31 +0100)]
* gcc.dg/20001108-1.c: New test.

From-SVN: r37339

23 years agobuiltins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
Jakub Jelinek [Thu, 9 Nov 2000 09:07:44 +0000 (10:07 +0100)]
builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.

* builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
(c_getstr): New function.
(expand_builtin_strstr): Do nothing if -fcheck-memory-usage.
If both arguments are constant string, optimize out.
(expand_builtin_strchr, expand_builtin_strrchr): New functions.
(expand_builtin_strpbrk): Use c_getstr, do nothing if
-fcheck-memory-usage.
(expand_builtin_fputs): Likewise.
(expand_builtin_strcmp): Add MODE argument.
Use even if !HAVE_cmpstrsi.
Optimize the case when both arguments are constant strings.
(expand_builtin): Adjust expand_builtin_strcmp caller.
Call expand_builtin_strchr and expand_builtin_strrchr.
* c-common.c (c_common_nodes_and_builtins): Add strchr and strrchr
builtins.
* builtins.def (BUILT_IN_STRRCHR): Add.

* gcc.c-torture/execute/string-opt-1.c: Add test for strstr
with both arguments constant strings.
* gcc.c-torture/execute/string-opt-3.c: New test.
* gcc.c-torture/execute/string-opt-4.c: New test.
* gcc.c-torture/execute/string-opt-5.c: New test.

From-SVN: r37338

23 years ago* Remove overlooked conflict marker.
Gerald Pfeifer [Thu, 9 Nov 2000 08:48:30 +0000 (08:48 +0000)]
* Remove overlooked conflict marker.

From-SVN: r37337

23 years ago* fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.
Gerald Pfeifer [Thu, 9 Nov 2000 08:46:02 +0000 (08:46 +0000)]
* fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.

From-SVN: r37336

23 years agoDaily bump.
Jeff Law [Thu, 9 Nov 2000 08:45:08 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r37335

23 years agocalls.c (expand_call, [...]): Use memcpy () instead of bcopy ().
Joseph Myers [Thu, 9 Nov 2000 07:45:15 +0000 (07:45 +0000)]
calls.c (expand_call, [...]): Use memcpy () instead of bcopy ().

* calls.c (expand_call, emit_library_call_value_1), collect2.c
(scan_prog_file), config/a29k/a29k.c (print_operand),
config/sparc/sparc.c (order_regs_for_local_alloc): Use memcpy ()
instead of bcopy ().
* real.h: Use memcmp () instead of bcmp ().
* config/m88k/m88k.c (m88k_layout_frame), config/sh/sh.c
(split_branches), config/sparc/sparc.c (ultra_flush_pipeline,
ultrasparc_sched_init, ultrasparc_sched_reorder),
config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Use memset ()
instead of bzero ().
* config/vax/xm-xms.h (FILE_NAME_NONDIRECTORY): Use strrchr ()
instead of rindex ().
* configure.in: Don't check for bzero, bcmp, index or rindex.
* configure, config.in: Regenerate.
* system.h: Don't include declarations for bzero, bcmp, index or
rindex.
* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Don't define
bzero, bcmp, index or rindex.

java:
* parse.y (create_new_parser_context): Use memset () instead of
bzero ().

From-SVN: r37334

23 years agocygwin.h: Add -no-win32 switch.
Christopher Faylor [Thu, 9 Nov 2000 03:02:33 +0000 (03:02 +0000)]
cygwin.h: Add -no-win32 switch.

* config/i386/cygwin.h: Add -no-win32 switch.  Separate -mno-cygwin include and
library paths from -mcygwin case.  Parameterize some declarations to avoid
warnings.  Use standard locations for include and lib dirs.

From-SVN: r37333

23 years agocodecvt.h (codecvt::do_out): Make it const-correct.
Mark Mitchell [Thu, 9 Nov 2000 02:57:23 +0000 (02:57 +0000)]
codecvt.h (codecvt::do_out): Make it const-correct.

* include/bits/codecvt.h (codecvt::do_out): Make it const-correct.
(codecvt::do_in): Likewise.

From-SVN: r37332

23 years agoFix {u}mulsidi3adddi patterns in arm.md and add testcase to check that the
Nick Clifton [Thu, 9 Nov 2000 01:26:21 +0000 (01:26 +0000)]
Fix {u}mulsidi3adddi patterns in arm.md and add testcase to check that the
fix stays in place.

From-SVN: r37331

23 years agoflow.c (init_propagate_block_info): Protect the rtx stored in mem_set_list from modif...
Richard Henderson [Thu, 9 Nov 2000 00:26:34 +0000 (16:26 -0800)]
flow.c (init_propagate_block_info): Protect the rtx stored in mem_set_list from modification by find_auto_inc.

        * flow.c (init_propagate_block_info): Protect the rtx stored in
        mem_set_list from modification by find_auto_inc.
        (mark_set_1): Likewise.

From-SVN: r37330

23 years agoMove directive handling into the lexer itself.
Neil Booth [Wed, 8 Nov 2000 23:08:07 +0000 (23:08 +0000)]
Move directive handling into the lexer itself.

        * cpplex.c (_cpp_lex_token): Handle directives directly.
        In the case of a directive interrupting a function-like
        macro invocation, use extra_char since read_ahead is
        used to store the '#'.  Return a CPP_EOF in this case.
        * cppmacro.c (parse_arg): No need to handle CPP_DHASH any more.
        (cpp_get_token): Don't handle directives here.
        * cpplib.h: Remove CPP_DHASH token type.

From-SVN: r37329

23 years agosnapshot: New file.
Jeff Law [Wed, 8 Nov 2000 22:43:50 +0000 (15:43 -0700)]
snapshot: New file.

* snapshot: New file.

Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
From-SVN: r37328