Joseph Myers
26d4fec72e
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
2000-11-13 13:31:16 +00:00
Joseph Myers
1173593dd6
MAINTAINERS: Remove references to cccp.
...
* MAINTAINERS: Remove references to cccp. Change C9X reference to
C99. Alphabetise "Write After Approval" list.
From-SVN: r37420
2000-11-13 13:25:53 +00:00
Joseph Myers
88f3c47786
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
2000-11-13 13:23:37 +00:00
Jeff Law
e6ddd086ce
Daily bump.
...
From-SVN: r37418
2000-11-13 01:45:07 -07:00
Mark Mitchell
db5fbfb420
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
2000-11-13 07:00:55 +00:00
Kaveh R. Ghazi
c7b6c6cd47
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
2000-11-13 02:14:05 +00:00
Mark Mitchell
34f6fbdb65
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
2000-11-13 01:15:40 +00:00
Mark Mitchell
520907ee6d
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
2000-11-13 00:49:03 +00:00
Mark Mitchell
81dfdc485e
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
2000-11-13 00:43:39 +00:00
Mark Mitchell
b5430af63f
os_defines.h: Define __EXTENSIONS__.
...
* config/os/solaris/solaris2.7/bits/os_defines.h: Define
__EXTENSIONS__.
From-SVN: r37412
2000-11-13 00:25:40 +00:00
Bruce Korb
f6820157d1
generalize the release script a bit
...
From-SVN: r37411
2000-11-13 00:25:21 +00:00
Mark Mitchell
2f86842d45
* fixinc/mkfixinc.sh: Use the ordinary fixincludes on Solaris.
...
From-SVN: r37410
2000-11-13 00:19:37 +00:00
Jakub Jelinek
0c0ba09c8c
* reload1.c (set_label_offsets): Go inside of PARALLELs.
...
From-SVN: r37409
2000-11-12 23:52:35 +01:00
Joseph Myers
84a0e7b854
* invoke.texi: Clean up option summary.
...
From-SVN: r37408
2000-11-12 19:17:59 +00:00
Nick Clifton
4816b8e47a
Fix comment formating, and adjust sequence of #include headers.
...
From-SVN: r37407
2000-11-12 18:40:22 +00:00
Marc Espie
ee7692d2fd
configure.in: Fix filds test.
...
* configure.in: Fix filds test.
* configure: Regen.
From-SVN: r37406
2000-11-12 14:06:23 +00:00
Mark Mitchell
f8c4f86051
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
2000-11-12 13:01:37 +00:00
Neil Booth
b528a07e0e
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
2000-11-12 11:46:21 +00:00
Jeff Law
46bdc296a8
Daily bump.
...
From-SVN: r37403
2000-11-12 01:45:08 -07:00
Mark Mitchell
995c461cce
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
2000-11-12 04:16:07 +00:00
Bruce Korb
56a77e1e84
avoid commenting out #endifs
...
From-SVN: r37401
2000-11-12 03:37:33 +00:00
Mark Mitchell
8d8523fe52
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
2000-11-12 03:27:10 +00:00
Zack Weinberg
72aaffbd37
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
2000-11-12 02:09:33 +00:00
Mark Mitchell
bbdd639d33
* fixinc/mkfixinc.sh: Use the ordinary fixincludes on IRIX.
...
From-SVN: r37398
2000-11-12 01:50:39 +00:00
Mark Mitchell
8a3d997e53
* gcc_build: Add -o option for setting the objdir to use.
...
From-SVN: r37397
2000-11-12 00:29:37 +00:00
Jason Merrill
d96a6d1a1c
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
2000-11-11 19:11:47 -05:00
Mark Mitchell
5696467825
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
2000-11-11 23:59:50 +00:00
Jason Merrill
492cca2489
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
2000-11-11 18:50:20 -05:00
Joseph Myers
8ee322c993
* gcc.texi: Adjust wording.
...
From-SVN: r37393
2000-11-11 23:44:24 +00:00
Mark Mitchell
b72bd9c21a
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
2000-11-11 23:23:06 +00:00
Mark Mitchell
8b4c8a8695
inclhack.def (avoid_wchar_t_type): New fix.
...
* fixinc/inclhack.def (avoid_wchar_t_type): New fix.
* fininc/fixincl.x: Regenerated.
From-SVN: r37391
2000-11-11 21:40:27 +00:00
Anthony Green
ac51395dc0
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
2000-11-11 20:19:42 +00:00
Toon Moene
da909756e6
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
2000-11-11 20:05:48 +00:00
Philip Blundell
0bbd37ed8c
Add self to MAINTAINERS file.
...
From-SVN: r37388
2000-11-11 17:12:33 +00:00
Bernd Schmidt
3e5c33c0b7
New execution test.
...
From-SVN: r37387
2000-11-11 14:09:42 +00:00
Joseph Myers
639726baa5
* invoke.texi: Correct spelling of -foptimize-register-move.
...
From-SVN: r37386
2000-11-11 14:00:12 +00:00
Neil Booth
4c2b647d42
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
2000-11-11 13:19:01 +00:00
Jeff Law
1e8ba2a38c
* release: New file.
...
From-SVN: r37384
2000-11-11 12:30:16 +00:00
Joseph Myers
c1030c7c86
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
2000-11-11 10:06:22 +00:00
Jeff Law
0babc59ad8
Daily bump.
...
From-SVN: r37382
2000-11-11 01:45:08 -07:00
Alexandre Oliva
3650b6953d
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
2000-11-11 06:04:59 +00:00
Alexandre Oliva
93a7784807
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
2000-11-11 05:54:02 +00:00
Phil Edwards
585ddf9c47
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
2000-11-11 00:37:45 +00:00
Rodney Brown
d2ea6600c8
* Make-lang.in: Remove OUTPUT_OPTION from g77version.o target.
...
From-SVN: r37378
2000-11-10 13:29:53 -08:00
Toon Moene
edf9f6c7a4
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
2000-11-10 20:38:05 +00:00
Toon Moene
a8d0a42e36
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
2000-11-10 20:36:15 +00:00
Nick Clifton
93ae2b3e06
Add test of unsigned long long multuiple and accumulate.
...
From-SVN: r37375
2000-11-10 19:27:35 +00:00
Joseph Myers
9a5a13c9bd
* gcc.texi, gcov.texi: Update dates and version numbers.
...
From-SVN: r37374
2000-11-10 19:01:31 +00:00
Gabriel Dos Reis
ca6c441841
* include/bits/cpp_type_traits.h: Fix typos. Adjust formatting.
...
From-SVN: r37373
2000-11-10 17:48:15 +00:00
Gabriel Dos Reis
982b8443e8
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
2000-11-10 17:34:49 +00:00