Benjamin Kosnik
d52a984783
ostream.tcc (ostream::seekp): Add error checking as per DR 129.
...
2001-06-11 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/3114
* include/bits/ostream.tcc (ostream::seekp): Add error checking as
per DR 129.
* include/bits/istream.tcc (istream::seekg): Same.
* testsuite/27_io/istream_seeks.cc: Fix.
libstdc++/3113
* include/bits/stl_function.h (binder2nd): Fix as per DR 109.
(binder1st): Same.
* include/bits/std_queue.h: Add c++config.h.
* testsuite/20_util/binders.cc: New test.
From-SVN: r43201
2001-06-11 19:20:20 +00:00
Stan Shebs
353e51f8e5
darwin.c (darwin_encode_section_info): Rewrite to simplify and fix coding mistakes.
...
* darwin.c (darwin_encode_section_info): Rewrite to simplify
and fix coding mistakes.
From-SVN: r43200
2001-06-11 18:59:42 +00:00
Nick Clifton
16f104b32c
Fix compile time warnings
...
From-SVN: r43199
2001-06-11 16:58:56 +00:00
Richard Henderson
d4a6cf3861
* g++.old-deja/g++.law/code-gen5.C: Don't send raw pointers to assert.
...
From-SVN: r43198
2001-06-11 09:34:29 -07:00
Richard Henderson
ccb83cbced
osf5.h (TARGET_LD_BUGGY_LDGP): New.
...
* config/alpha/osf5.h (TARGET_LD_BUGGY_LDGP): New.
* config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Default.
(struct machine_function): Add gp_save_rtx.
* config/alpha/alpha.c (alpha_mark_machine_status): Mark it.
(alpha_gp_save_rtx): New.
* config/alpha/alpha-protos.h: Declare it.
* config/alpha/alpha.md (exception_receiver): Make an expander.
Use alpha_gp_save_rtx if TARGET_LD_BUGGY_LDGP.
From-SVN: r43196
2001-06-11 09:27:26 -07:00
Richard Henderson
f90e86cd00
* config/alpha/osf.h (LINK_SPEC): Hide _GLOBAL_* symbols.
...
From-SVN: r43194
2001-06-11 09:21:52 -07:00
Rainer Orth
e8bec1365a
configure.in: Align --help messages.
...
* configure.in: Align --help messages.
Remove trailing full stops.
Consistently use lower case.
Fix DWARF 2 spelling.
* configure: Rebuilt.
From-SVN: r43192
2001-06-11 15:01:40 +00:00
Rainer Orth
887af1f271
alpha.h (CPP_SPEC): Don't define __LANGUAGE_C and variants for .cpp/.cp/.c++ files.
...
* config/alpha/alpha.h (CPP_SPEC): Don't define __LANGUAGE_C and
variants for .cpp/.cp/.c++ files.
Move definition of __LANGUAGE_C_PLUS_PLUS ...
(CPLUSPLUS_CPP_SPEC): ... here.
From-SVN: r43190
2001-06-11 14:48:11 +00:00
Jan Hubicka
4bb83350d4
* jump.c (duplicate_loop_exit_test): Fix loop header heuristics.
...
From-SVN: r43189
2001-06-11 13:49:24 +00:00
Joseph Myers
1552f87457
re PR c/3116 (Bug with using oldstyle prototype declarations)
...
* c-decl.c (store_parm_decls): When comparing types in an
old-style function declaration with those from a previous
prototype, compare the unqualified versions of parameter types.
Fixes PR c/3116.
testsuite:
* gcc.c-torture/compile/20010611-1.c: New test.
From-SVN: r43186
2001-06-11 14:26:19 +01:00
Matthias Klose
cff75d2efe
run_doxygen (find_doxygen): Tweak version check.
...
2001-06-11 Matthias Klose <doko@debian.org>
Phil Edwards <pme@sources.redhat.com>
* docs/doxygen/run_doxygen (find_doxygen): Tweak version check.
(main script): Echo more information.
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
From-SVN: r43184
2001-06-11 13:04:07 +00:00
Joseph Myers
bd91de6329
* doc/objc.texi: Use more logical markup. Use TeX dashes.
...
From-SVN: r43182
2001-06-11 13:05:10 +01:00
Joseph Myers
2c96a7ca3c
* doc/c-tree.texi: Use more logical markup.
...
From-SVN: r43180
2001-06-11 13:00:41 +01:00
Joseph Myers
f18b70f587
c-decl.c (xref_tag): Don't return previous tags of wrong type.
...
* c-decl.c (xref_tag): Don't return previous tags of wrong type.
testsuite:
* gcc.dg/c99-tag-1.c: Add more tests.
From-SVN: r43179
2001-06-11 12:50:29 +01:00
Aldy Hernandez
89cc6be350
do not combine asm stmts in scan_loop
...
From-SVN: r43178
2001-06-11 09:36:06 +00:00
Michael Hayes
5fd83d4e51
simplify-rtx.c (simplify_subreg): Fix offset calculation for complex values within a CONCAT.
...
* simplify-rtx.c (simplify_subreg): Fix offset calculation
for complex values within a CONCAT.
From-SVN: r43177
2001-06-11 09:30:50 +00:00
Joseph Myers
ecb7d6b3f4
install.texi: Update details of what components are included in the GCC distribution.
...
* doc/install.texi: Update details of what components are included
in the GCC distribution. Update default directory for g++
includes. Update documentation relating to old libio. Adjust
documentation on DejaGnu environment variables. Remove
documentation of --enable-cpplib.
From-SVN: r43175
2001-06-11 08:26:33 +01:00
Joseph Myers
3b04da4260
contrib.texi: Fix alphabetical order.
...
* doc/contrib.texi: Fix alphabetical order. Fix typos. Improve
markup.
From-SVN: r43173
2001-06-11 08:23:20 +01:00
GCC Administrator
0b51912a1d
Daily bump.
...
From-SVN: r43171
2001-06-11 07:16:15 +00:00
Richard Henderson
e16d045df7
ifcvt.c (life_data_ok): New.
...
* ifcvt.c (life_data_ok): New.
(merge_if_block): Use it to determine whether to update
global_live_at_end.
(if_convert): Set it.
From-SVN: r43170
2001-06-10 22:16:10 -07:00
Benjamin Kosnik
68fe6226c8
std_cwchar.h: Alphabetize.
...
2001-06-10 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cwchar.h: Alphabetize.
* include/bits/char_traits.h: Tweak.
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Check for
everything used by std_cwchar.h.
* aclocal.m4: Regenerate.
* configure.in: Regenerate.
* config.h.in: Regenerate.
From-SVN: r43167
2001-06-11 04:36:59 +00:00
Richard Henderson
ad5ef673ca
* config/alpha/osf5.h (ASM_OLDAS_SPEC): Add -c.
...
From-SVN: r43166
2001-06-10 19:31:56 -07:00
Alexandre Oliva
c474f76beb
invoke.texi (MN10300 Options): Document -mno-crt0.
...
* doc/invoke.texi (MN10300 Options): Document -mno-crt0.
(SH Options): Document -mieee.
* doc/install.texi (Final install): Remove obsolete information
about installing cross compilers.
* doc/gcc.1: Rebuilt.
From-SVN: r43164
2001-06-11 01:03:12 +00:00
Benjamin Kosnik
61c7194612
acinclude.m4 (GLIBCPP_ENABLE_C99): Add stdio.h checking.
...
2001-06-10 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_ENABLE_C99): Add stdio.h checking.
Add checking for strtof, _Exit in stdlib.h
* aclocal.m4: Regenerate.
* configure.in: Regenerate.
* include/c_std/bits/std_cstdio.h: Alphabetize lists.
(snprintf): Put C99 functions into __gnu_cxx namespace.
(vfscanf): Same.
(vscanf): Same.
(vsnprintf): Same.
(vsscanf): Same.
* include/c_std/bits/std_cstdlib.h: Alphabetize lists. Put undefs
for C99 functions within _GLIBCPP_USE_C99 guard.
(_Exit): Same.
(strtof): Same.
(strtold): Same.
* include/bits/locale_facets.tcc: Check if C99 is enabled.
* include/c_std/bits/std_cwchar.h (__gnu_cxx): Put undefs within
C99 guard.
* include/c_std/bits/cmath.tcc: Formatting tweak.
* include/c_std/bits/std_cmath.h: Same.
From-SVN: r43161
2001-06-10 23:26:34 +00:00
Richard Henderson
c176c051f8
alpha.c (override_options): Set align_loops, align_jumps, and align_functions.
...
* config/alpha/alpha.c (override_options): Set align_loops,
align_jumps, and align_functions.
* config/alpha/alpha.h (FUNCTION_BOUNDARY): Set to 32 bits.
(LOOP_ALIGN, LABEL_ALIGN_AFTER_BARRIER): Remove.
From-SVN: r43160
2001-06-10 16:15:03 -07:00
Michael Hayes
76321db654
emit-rtl.c (gen_lowpart_common): Do not assume that SFmode and DFmode are one and two words in size.
...
* emit-rtl.c (gen_lowpart_common): Do not assume that SFmode and DFmode
are one and two words in size.
From-SVN: r43158
2001-06-10 22:49:40 +00:00
Alexandre Oliva
2e24615021
ptrmem.C: Take into account different representation on MN10300 and ARM/Thumb.
...
* g++.old-deja/g++.abi/ptrmem.C: Take into account different
representation on MN10300 and ARM/Thumb.
From-SVN: r43157
2001-06-10 21:50:47 +00:00
Alexandre Oliva
eb2d06144a
typeck.c (get_member_function_from_ptrfunc): Don't clobber delta.
...
* typeck.c (get_member_function_from_ptrfunc) [vbit_in_delta]:
Don't clobber delta.
(expand_ptrmemfunc_cst) [ptrmemfunc_vbit_in_delta]: Adjust pfn.
From-SVN: r43156
2001-06-10 21:50:40 +00:00
Alexandre Petit-Bianco
9b8c19b4f5
exception.cc (cstdlib): Replaces stdlib.h.
...
2001-06-10 Alexandre Petit-Bianco <apbianco@redhat.com>
* exception.cc (cstdlib): Replaces stdlib.h.
(_Jv_Throw): Use std::abort().
(PERSONALITY_FUNCTION): Likewise.
(http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00620.html )
From-SVN: r43153
2001-06-10 13:59:37 -07:00
Richard Henderson
6cfc03411c
invoke.texi (Optimization Options): Document -fpeephole2.
...
* doc/invoke.texi (Optimization Options): Document -fpeephole2.
(Code Generation Options): Document -fnon-call-exceptions.
From-SVN: r43151
2001-06-10 12:55:57 -07:00
Richard Henderson
0bdcca681d
concat.c: Include string.h.
...
* concat.c: Include string.h. Fix int vs size_t usage.
Simplify the iteration loops. Use memcpy.
From-SVN: r43149
2001-06-10 11:57:15 -07:00
Mark Kettenis
33a1b84b69
* config/i386/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Undefine.
...
From-SVN: r43148
2001-06-10 11:54:50 -07:00
Tom Tromey
7abecd65ae
re PR java/2299 (Use of += for String arrays produces Segfault during compilation)
...
2001-03-20 Tom Tromey <tromey@redhat.com>
Alexandre Petit-Bianco <apbianco@redhat.com>
* parse.y (patch_assignment): Handle the case of a SAVE_EXPR
inside an array reference. Insertion of the array store check
rewritten. Fixes PR java/2299.
(http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00611.html )
Co-Authored-By: Alexandre Petit-Bianco <apbianco@redhat.com>
From-SVN: r43146
2001-06-10 11:45:06 -07:00
Jeff Sturm
21a6bb3c45
decl.c (create_primitive_vtable): Don't call make_decl_rtl.
...
2001-06-05 Jeff Sturm <jsturm@one-point.com>
* decl.c (create_primitive_vtable): Don't call make_decl_rtl.
(http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00265.html )
From-SVN: r43144
2001-06-10 11:24:53 -07:00
Toon Moene
226f8242c0
20010610.f: New.
...
2001-06-10 Toon Moene <toon@moene.indiv.nluug.nl>
* g77.f-torture/execute/20010610.f: New.
From-SVN: r43143
2001-06-10 17:57:29 +00:00
Stephane Carrez
46f41fed63
* m68hc11.md (peepholes): Remove unused and wrong peepholes.
...
From-SVN: r43142
2001-06-10 19:08:27 +02:00
Gabriel Dos Reis
2a2b2d432e
Makefile.in (c-parse.o): Depend on diagnostic.h
...
gcc/
2001-06-10 Mark Mitchell <mark@codesourcery.com>
Gabriel Dos Reis <gdr@codesourcery.com>
* Makefile.in (c-parse.o): Depend on diagnostic.h
(dwarf2out.o): Likewise.
* dwarf2out.c: #include diagnostic.h
* toplev.h (warningcount, errorcount, sorrycount): Remove
declarations.
* toplev.c (warningcount, errorcount, sorrycount): Remove
definitions.
* diagnostic.h (struct output_buffer): Reorder fields.
(diagnostic_kind_count): New macro.
(errorcount, warningcount, sorrycount): Define as macros.
(diagnostic_report_warnings_p): New macro.
(output_state): Add diagnostic_count field.
* diagnostic.c (warningcount, errorcount, inhibit_warnings):
Remove tentative declaration.
(count_error): Use diagnostic_report_warnings_p.
* c-parse.in: #include diagnostic.h
ch/
2001-06-10 Gabriel Dos Reis <gdr@codesourcery.com>
* decl.c: #include diagnostic.h
* actions.c: #include diagnostic.h
* Makefile.in (actions.o): Depend on diagnostic.h
(decl.o): Depend on diagnostic.h
cp/
2001-06-10 Mark Mitchell <mark@codesourcery.com>
Gabriel Dos Reis <gdr@codesourcery.com>
* Make-lang.in (cp/call.o): Depend on diagnostic.h
(cp/typeck.o): Depend on diagnostic.h
(cp/typeck2.o): Depend on diagnostic.h
(cp/repo.o): Depend on dignostic.h
* typeck.c: #include diagnostic.h
(convert_for_initialization): Remove extern declaration for
warningcount and errorcount.
* call.c: #include diagnostic.h
(convert_like_real): Remove extern declaration for warnincount and
errorcount.
* repo.c: #include diagnostic.h
* typeck2.c: #include diagnostic.h
From-SVN: r43140
2001-06-10 13:48:04 +00:00
Toon Moene
3f0ae30efc
g77install.texi: Remove.
...
2001-06-10 Toon Moene <toon@moene.indiv.nluug.nl>
* g77install.texi: Remove.
* Make-lang.in: Remove all mention of g77install.texi.
* g77.texi: Add documentation on how to get output always
flushed and how to increase the maximum unit number.
Remove all mention of g77install.texi.
* bugs.texi: Add documentation on how to change the threshold
for putting local arrays on the stack.
From-SVN: r43139
2001-06-10 13:23:19 +00:00
Stephane Carrez
9eee2c76b8
m68hc11.md ("extendhisi2"): Fix constraints to prefer a memory for operand 1.
...
* config/m68hc11/m68hc11.md ("extendhisi2"): Fix constraints to
prefer a memory for operand 1.
("*addsi3"): Fix constraints, the '!' was too strong.
("*addsi3_split"): Accept soft register and split accordingly.
From-SVN: r43137
2001-06-10 12:24:48 +02:00
Stephane Carrez
3bcda5fbce
m68hc11-protos.h (m68hc11_initialize_trampoline): Move definition in the RTX_CODE section.
...
* config/m68hc11/m68hc11-protos.h (m68hc11_initialize_trampoline):
Move definition in the RTX_CODE section.
From-SVN: r43134
2001-06-10 12:18:40 +02:00
Stephane Carrez
5becdf1187
m68hc11.h (RETURN_ADDR_RTX): Define the return address as relative to the argument pointer.
...
* config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Define the return
address as relative to the argument pointer.
From-SVN: r43133
2001-06-10 12:16:27 +02:00
Jan Hubicka
671413c5c9
* predict.def (PRED_OPCODE): Place before call and error_return.
...
From-SVN: r43131
2001-06-10 08:59:51 +00:00
Jan Hubicka
0b92ff33b8
predict.def (PRED_CALL, [...]): New.
...
* predict.def (PRED_CALL, PRED_ERROR_RETURN): New.
* predict.c (estimate_probability): Calculate dominance
information; improve detection of NORETURN heuristics;
add call/error_return heuiristics; tweak comparison heuristics
to recognize -1.
From-SVN: r43130
2001-06-10 08:01:57 +00:00
Benjamin Kosnik
680cd9ed7b
std_cstdio.h: Include cstddef for size_t.
...
2001-06-10 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cstdio.h: Include cstddef for size_t.
From-SVN: r43128
2001-06-10 07:42:25 +00:00
GCC Administrator
6651f4c1b9
Daily bump.
...
From-SVN: r43126
2001-06-10 07:16:09 +00:00
Alexandre Oliva
b1018de69d
invoke.texi (C Dialect Options): Document -aux-info.
...
* doc/invoke.texi (C Dialect Options): Document -aux-info.
(Debugging Options): Document -print-multi-directory and
-print-multi-lib.
* doc/gcc.1: Rebuilt.
From-SVN: r43124
2001-06-10 00:34:45 +00:00
Alexandre Oliva
c47af4b7d3
toplev.c (independent_decode_option): Require =' between
-aux-info' and filename in the same argument.
...
* toplev.c (independent_decode_option): Require `=' between
`-aux-info' and filename in the same argument.
* gcc.c: Don't pass -aux-info=filename twice.
From-SVN: r43123
2001-06-10 00:31:07 +00:00
Mark Mitchell
ceafcb9877
New test.
...
From-SVN: r43121
2001-06-09 23:08:24 +00:00
Mark Mitchell
e69decfd36
expr.c (expand_expr, [...]): Do not replace an array element with the known initializing value if...
...
* expr.c (expand_expr, case ARRAY_REF): Do not replace
an array element with the known initializing value if it has
side-effects.
* toplev.c (rest_of_compilation): Remove dead code before
purge_addressof.
From-SVN: r43120
2001-06-09 23:08:05 +00:00
Neil Booth
3bce8a01ef
cppinit.c (print_help): Document -fpreprocessed.
...
* cppinit.c (print_help): Document -fpreprocessed.
* invoke.texi: Similarly.
From-SVN: r43116
2001-06-09 22:55:49 +00:00