David Billinghurst [Wed, 15 Nov 2000 20:08:59 +0000 (20:08 +0000)]
mkcheck.in: Add function size_command() for irix.
2000-11-15 David Billinghurst <David.Billinghurst@riotinto.com>
* mkcheck.in: Add function size_command() for irix.
From-SVN: r37488
Neil Booth [Wed, 15 Nov 2000 19:25:22 +0000 (19:25 +0000)]
cpplib.c (start_directive, [...]): New functions.
* cpplib.c (start_directive, end_directive): New functions.
(_cpp_handle_directive, run_directive): Use them.
(_cpp_handle_directive): Don't -Wtraditional on indented
null directives.
(_cpp_push_buffer): Don't re-clear was_skipping.
* cpplib.h (struct cpp_reader): New member la_saved.
* cppmacro.c (cpp_get_token): Don't interpret _Pragma in
directives.
From-SVN: r37487
Neil Booth [Wed, 15 Nov 2000 19:23:41 +0000 (19:23 +0000)]
_Pragma1.c: Update.
* gcc.dg/cpp/_Pragma1.c: Update.
* gcc.dg/cpp/_Pragma2.c: New test.
From-SVN: r37486
Mark Mitchell [Wed, 15 Nov 2000 18:34:29 +0000 (18:34 +0000)]
toplev.c (wrapup_global_declarations): Don't write out artificial static variables that aren't needed.
* toplev.c (wrapup_global_declarations): Don't write out
artificial static variables that aren't needed.
* decl.c (wrapup_globals_for_namespace): Don't mark things
TREE_ASM_WRITTEN when they're not.
From-SVN: r37485
Toon Moene [Wed, 15 Nov 2000 18:26:42 +0000 (19:26 +0100)]
configure.in: See if `mkstemp' is available.
2000-11-15 Toon Moene <toon@moene.indiv.nluug.nl>
* libI77/configure.in: See if `mkstemp' is available.
* libI77/configure: Regenerate.
* libI77/open.c: Use `mkstemp' to create scratch
file atomically.
From-SVN: r37484
Kenneth Block [Wed, 15 Nov 2000 17:35:20 +0000 (17:35 +0000)]
cplus_dem.c: Eliminate use of DEFUN, it is obsolete and cannot be used in GCC.
* cplus_dem.c: Eliminate use of DEFUN, it is obsolete and cannot
be used in GCC.
From-SVN: r37483
Bernd Schmidt [Wed, 15 Nov 2000 17:29:00 +0000 (17:29 +0000)]
Workaround for Itanium A/B step errata
From-SVN: r37482
Fred Fish [Wed, 15 Nov 2000 15:56:59 +0000 (15:56 +0000)]
mkfixinc.sh (fixincludes): Add *-*-beos* to list of machines for which fixincludes is not needed.
* fixinc/mkfixinc.sh (fixincludes): Add *-*-beos* to list of
machines for which fixincludes is not needed.
* config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto.
From-SVN: r37481
Jason Merrill [Wed, 15 Nov 2000 15:50:51 +0000 (10:50 -0500)]
diagnostic.c (finish_abort): New fn.
* diagnostic.c (finish_abort): New fn.
(fancy_abort, error_recursion): Use it.
* toplev.c (crash_signal): Likewise.
* diagnostic.h: Declare it.
* typeck2.c (friendly_abort): Uncount the error before handing
off to fancy_abort.
From-SVN: r37480
Andrew Haley [Wed, 15 Nov 2000 14:39:14 +0000 (14:39 +0000)]
tree.c (build_type_no_quals): New function.
2000-11-13 Andrew Haley <aph@redhat.com>
* tree.c (build_type_no_quals): New function.
* tree.h (build_type_no_quals): Declare.
* c-common.c (c_get_alias_set): When considering type
compatibility for pointer types, ignore cv-qualifiers anywhere in
a pointer chain.
From-SVN: r37479
Nathan Sidwell [Wed, 15 Nov 2000 11:59:07 +0000 (11:59 +0000)]
typeck.c (lookup_anon_field): Cope with qv qualifiers.
cp/
* typeck.c (lookup_anon_field): Cope with qv qualifiers.
testsuite/
* g++.old-deja/g++.other/anon5.C: New test.
From-SVN: r37478
Hans-Peter Nilsson [Wed, 15 Nov 2000 11:58:16 +0000 (11:58 +0000)]
Correct style of last entry
From-SVN: r37477
Hans-Peter Nilsson [Wed, 15 Nov 2000 11:57:23 +0000 (11:57 +0000)]
Correct date and style of last entry
From-SVN: r37476
Kenneth Block [Wed, 15 Nov 2000 11:54:53 +0000 (11:54 +0000)]
cplus_dem.c: Add gnat demangler.
* cplus_dem.c: Add gnat demangler. Add java to demangle style
list.
From-SVN: r37475
Kenneth Block [Wed, 15 Nov 2000 11:52:30 +0000 (11:52 +0000)]
* demangle.h: Add gnat and java demangle styles.
From-SVN: r37474
Graham Stott [Wed, 15 Nov 2000 11:07:44 +0000 (11:07 +0000)]
regrename.c (scan_rtx_rtx): Skip to the next chain on encountering a terminated chain.
* regrename.c (scan_rtx_rtx): Skip to the next chain on
encountering a terminated chain.
From-SVN: r37473
Jeff Law [Wed, 15 Nov 2000 08:45:08 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r37472
Mark Mitchell [Wed, 15 Nov 2000 05:07:03 +0000 (05:07 +0000)]
class.c (build_vtbl_initializer): Fix typo in comment.
* class.c (build_vtbl_initializer): Fix typo in comment.
* typeck.c (expr_sizeof): Don't crash on errors.
From-SVN: r37471
Mark Mitchell [Wed, 15 Nov 2000 04:40:30 +0000 (04:40 +0000)]
configure.in: Move check for V3 above check for C++ header-file directory.
* configure.in: Move check for V3 above check for C++ header-file
directory.
* configure: Regenerated.
From-SVN: r37470
Benjamin Kosnik [Tue, 14 Nov 2000 21:05:05 +0000 (21:05 +0000)]
acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPOR): Set LIBS back to initial value.
2000-11-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPOR): Set LIBS back to
initial value.
(GLIBCPP_EXPORT_INCLUDES): Only export TOPLEVEL_INCLUDES if
building a canadian cross. This should fix the remaining java
build issues.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/bits/c++config (__GLIBCPP__): Set release version for 2.91.
From-SVN: r37469
Jim Wilson [Tue, 14 Nov 2000 20:42:43 +0000 (20:42 +0000)]
Fix cc1plus specs breakage.
* lang-specs.h: Add %2 after %(cc1_options).
From-SVN: r37468
DJ Delorie [Tue, 14 Nov 2000 19:45:29 +0000 (14:45 -0500)]
* config/v850/v850.c: Remove obstacks.
From-SVN: r37467
Joseph Myers [Tue, 14 Nov 2000 19:34:22 +0000 (19:34 +0000)]
c90-const-expr-2.c, [...]: Add more tests.
* gcc.dg/c90-const-expr-2.c, gcc.dg/c99-const-expr-2.c: Add more
tests.
From-SVN: r37466
Marek Michalkiewicz [Tue, 14 Nov 2000 19:05:41 +0000 (22:05 +0300)]
avr.c (avr_case_values_threshold): New.
* config/avr/avr.c (avr_case_values_threshold): New.
(avr_override_options): Set it depending on options, make it large
when not optimizing to work around "unable to generate reloads".
* config/avr/avr.h (TARGET_SWITCHES): Add -mno-tablejump option.
(EXTRA_SECTION_FUNCTIONS): Make the .progmem.gcc_sw_table section
executable if not AVR_MEGA. Make sure jump tables are word-aligned.
(JUMP_TABLES_IN_TEXT_SECTION): Define as 0, not 1.
(ASM_OUTPUT_ADDR_VEC_ELT): Optimize, use "rjmp" if not AVR_MEGA.
(avr_case_values_threshold): Declare as extern int.
(CASE_VALUES_THRESHOLD): Define as avr_case_values_threshold.
* config/avr/avr.md (tablejump): Removed.
(*tablejump_rjmp): New for jump tables made from "rjmp" instructions.
(*tablejump_lib, *tablejump_enh, *tablejump): Change to expect the
index in the table, not multiplied by 2.
(casesi): Change to match the above insns. Always enable.
* config/avr/libgcc.S (__tablejump__): Rename to __tablejump2__.
Change to expect the word address of the table, multiply it by 2
here and not in the caller. Change "adiw" to faster "inc".
From-SVN: r37465
Tom Tromey [Tue, 14 Nov 2000 18:59:10 +0000 (18:59 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (libgcj.zip): Fail immediately if compilation fails
and -k not given.
From-SVN: r37464
Don Lindsay [Tue, 14 Nov 2000 18:42:53 +0000 (18:42 +0000)]
Test which exposed a gcse bug at one time.
From-SVN: r37463
Neil Booth [Tue, 14 Nov 2000 18:32:06 +0000 (18:32 +0000)]
cppexp.c (parse_defined): Call cpp_get_token not _cpp_get_token.
* cppexp.c (parse_defined): Call cpp_get_token not
_cpp_get_token.
(lex): Similarly.
* cpplex.c (cpp_output_line): Similarly.
* cpplib.c (glue_header_name, do_line, do_ident,
parse_answer, parse_assertion): Similarly.
(_cpp_handle_diretive): Don't save to lookaheads
when processing directives.
* cppmacro.c (parse_arg, expand_arg): Call cpp_get_token not
_cpp_get_token.
(funlike_invocation_p): Don't save to lookaheads
when pre-expanding arguments.
(_cpp_get_token): Delete.
(cpp_get_token): Merge contents of _cpp_get_token.
From-SVN: r37462
Jakub Jelinek [Tue, 14 Nov 2000 18:05:45 +0000 (19:05 +0100)]
builtins.c (expand_builtin_setjmp): Set current_function_calls_setjmp.
* builtins.c (expand_builtin_setjmp): Set
current_function_calls_setjmp.
(expand_builtin_longjmp): Set current_function_calls_longjmp.
* config/sparc/sparc.md (builtin_setjmp_setup): New expand.
(do_builtin_setjmp_setup): New insn.
From-SVN: r37461
Richard Kenner [Tue, 14 Nov 2000 17:58:01 +0000 (17:58 +0000)]
tree.c (get_unwidened): Use host_integerp and tree_low_cst.
* tree.c (get_unwidened): Use host_integerp and tree_low_cst.
(int_fits_type_p): For variable bounds, call force_fit_type.
From-SVN: r37460
Jakub Jelinek [Tue, 14 Nov 2000 17:37:19 +0000 (18:37 +0100)]
varasm.c (struct deferred_string): New structure.
* varasm.c (struct deferred_string): New structure.
(const_str_htab): New variable.
(STRHASH): New macro.
(mark_const_str_htab_1, mark_const_str_htab, const_str_htab_hash,
constr_str_htab_eq, const_str_htab_del): New functions.
(output_constant_def): Add DEFER argument, defer string
constants until mark_constant_pool time if requested.
(mark_constant_pool): Walk the insn chain even if const_str_htab is
not empty.
(mark_constants): If a SYMBOL_REF for deferred string is found,
output it and remove from hash table.
(output_addressed_constants): Set DEFER to 0 in call to
output_constant_def.
* rtl.h (STRING_POOL_ADDRESS_P): Define.
(output_constant_def): Adjust prototype.
* expr.c (expand_expr): Set DEFER to 1 in call to output_constant_def.
* gcc.c-torture/execute/
20000801-4.c: Make sure the second string is
output.
From-SVN: r37459
Chandrakala Chavva [Tue, 14 Nov 2000 17:30:02 +0000 (12:30 -0500)]
optabs.c (expand_complex_ab): Use overflow-trapping optabs for signed types if flag_trapv.
* optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
signed types if flag_trapv.
From-SVN: r37458
Benjamin Kosnik [Tue, 14 Nov 2000 17:23:49 +0000 (17:23 +0000)]
acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPOR): Set LIBS back to initial value.
2000-11-14 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPOR): Set LIBS back to
initial value.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* include/bits/c++config (__GLIBCPP__): Set release version for 2.91.
From-SVN: r37457
Chandra Chavva [Tue, 14 Nov 2000 17:06:06 +0000 (12:06 -0500)]
New option --target-help.
From-SVN: r37456
Zack Weinberg [Tue, 14 Nov 2000 17:01:35 +0000 (17:01 +0000)]
tradcpp.c, tradcif.y: Update FSF mailing address, delete reference to GPLv1.
* tradcpp.c, tradcif.y: Update FSF mailing address, delete
reference to GPLv1.
From-SVN: r37455
Phil Edwards [Tue, 14 Nov 2000 16:38:02 +0000 (16:38 +0000)]
mkcheck.in: On a platform where we don't know how to extract section sizes...
2000-11-14 Phil Edwards <pme@sources.redhat.com>
* mkcheck.in: On a platform where we don't know how to extract
section sizes, just set them to zero. Use old method of reading
file contents.
From-SVN: r37454
Loren J. Rittle [Tue, 14 Nov 2000 13:49:27 +0000 (13:49 +0000)]
c_io_stdio.h: Don't define __c_wfile_type when _GLIBCPP_USE_WCHAR_T is not defined.
* config/c_io_stdio.h: Don't define __c_wfile_type
when _GLIBCPP_USE_WCHAR_T is not defined.
From-SVN: r37453
Joseph Myers [Tue, 14 Nov 2000 10:38:01 +0000 (10:38 +0000)]
* c-common.h (CTI_C_SIZE_TYPE): Update comment.
From-SVN: r37452
Jakub Jelinek [Tue, 14 Nov 2000 10:31:32 +0000 (11:31 +0100)]
varasm.c (struct varasm_status): Change x_const_rtx_sym_hash_table to array of pool_constnat pointers.
* varasm.c (struct varasm_status): Change x_const_rtx_sym_hash_table
to array of pool_constnat pointers.
(struct pool_constant): Add next_sym and label members.
(struct pool_sym): Remove.
(init_varasm_status): Change pool_sym into pool_constant.
(mark_pool_constant): Mark pc->label string as well.
(mark_pool_sym_hash_table): Remove.
(mark_varasm_status): Remove it from caller as well.
(free_varasm_status): Don't free pool_sym structures.
(force_const_mem): Don't allocate pool_sym structure, instead
fill pool->label and chain it into rtx_sym hash table.
(find_pool_constant, mark_constant_pool): Use pool_constant instead
of pool_sym.
From-SVN: r37451
Jakub Jelinek [Tue, 14 Nov 2000 10:23:38 +0000 (11:23 +0100)]
reload1.c (emit_input_reload_insns): Honour forcing of constants into memory by PREFERRED_RELOAD_CLASS NO_REGS.
* reload1.c (emit_input_reload_insns): Honour forcing of constants
into memory by PREFERRED_RELOAD_CLASS NO_REGS.
From-SVN: r37450
Michael Matz [Tue, 14 Nov 2000 09:58:40 +0000 (09:58 +0000)]
Michael Matz <matzmich@cs.tu-berlin.de>
* dominance.c: New file.
* Makefile.in (OBJS): Add dominance.o.
* flow.c (compute_flow_dominators): Remove.
(compute_immediate_dominators): Remove.
(compute_immediate_postdominators): Remove.
* basic-block.h: Remove their prototypes.
(calculate_dominance_info): Add prototype.
* dce.c (eliminate_dead_code): Change calls to above functions.
Don't compute dominators but only immediate dominators.
* flow.c (flow_loops_find): Change callers.
* gcse.c (compute_code_hoist_data): Likewise.
* haifa-sched.c (schedule_insns): Likewise.
* ifcvt.c (if_convert): Likewise.
* ssa.c (convert_to_ssa): Likewise, and only compute immediate
dominators.
From-SVN: r37449
Richard Henderson [Tue, 14 Nov 2000 09:51:46 +0000 (01:51 -0800)]
stmt.c (warn_if_unused_value): Don't warn if the expression has side effects.
* stmt.c (warn_if_unused_value): Don't warn if the expression
has side effects.
From-SVN: r37448
Richard Henderson [Tue, 14 Nov 2000 09:47:13 +0000 (01:47 -0800)]
c-typeck.c (c_sizeof): Fold result to c_size_type_node.
* c-typeck.c (c_sizeof): Fold result to c_size_type_node.
(c_sizeof_nowarn, c_alignof, c_alignof_expr): Likewise.
From-SVN: r37447
Richard Henderson [Tue, 14 Nov 2000 09:46:55 +0000 (01:46 -0800)]
typeck.c (c_sizeof): Be strict about casting result value back to c_size_type_node.
* typeck.c (c_sizeof): Be strict about casting result value
back to c_size_type_node.
(expr_sizeof, c_sizeof_nowarn, c_alignof): Likewise.
From-SVN: r37446
Jeff Law [Tue, 14 Nov 2000 08:45:08 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r37445
Phil Edwards [Mon, 13 Nov 2000 23:49:41 +0000 (23:49 +0000)]
acinclude.m4 (GLIBCPP_CHECK_TARGET): New macro...
2000-11-13 Phil Edwards <pme@sources.redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_TARGET): New macro, replacing
GLIBCPP_CHECK_CPU and GLIBCPP_CHECK_OS, sourcing configure.target.
(GLIBCPP_CONFIGURE): Call new macro here.
* configure.host: Cleanup.
* configure.in: Remove those two macros.
* configure.target: New file.
* aclocal.m4: Regenerated.
* configure: Ditto.
* Makefile.in: Ditto.
* libio/Makefile.in: Ditto.
* libmath/Makefile.in: Ditto.
* libsupc++/Makefile.in: Ditto.
* src/Makefile.in: Ditto.
* mkcheck.in: Use libtool. Split things out into functions.
From-SVN: r37443
Alexandre Petit-Bianco [Mon, 13 Nov 2000 23:38:41 +0000 (23:38 +0000)]
Makefile.am (tmp-libstdsc++.INC:): Do not use -I$(top_builddir).
2000-11-12 Alexandre Petit-Bianco <apbianco@cygnus.com>
* Makefile.am (tmp-libstdsc++.INC:): Do not use -I$(top_builddir).
* Makefile.in: Regenerate.
From-SVN: r37442
David Edelsohn [Mon, 13 Nov 2000 22:32:05 +0000 (22:32 +0000)]
acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Add test for libiconv.a providing wchar_t support functions.
2000-11-12 David Edelsohn <edelsohn@gnu.org>
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Add test for
libiconv.a providing wchar_t support functions.
* aclocal.m4: Regenerate.
From-SVN: r37441
Franz Sirl [Mon, 13 Nov 2000 22:20:03 +0000 (22:20 +0000)]
loop.c (basic_induction_var): Revert accidental checkin.
2000-11-13 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* loop.c (basic_induction_var): Revert accidental checkin.
From-SVN: r37440
Loren J. Rittle [Mon, 13 Nov 2000 22:14:18 +0000 (22:14 +0000)]
acinclude.m4 (GLIBCPP_ENABLE_ATOMICITY): Handle FreeBSD.
2000-11-12 Loren J. Rittle <ljrittle@acm.org>
* acinclude.m4 (GLIBCPP_ENABLE_ATOMICITY): Handle FreeBSD.
* aclocal.m4, configure: Rebuilt.
From-SVN: r37439
Hans-Peter Nilsson [Mon, 13 Nov 2000 21:22:10 +0000 (21:22 +0000)]
c-lex.c (cb_leave_file): Harmonize conditions and order of statements to those of process_directive for...
* c-lex.c (cb_leave_file): Harmonize conditions and order of
statements to those of process_directive for (action == act_pop).
* collect2.c (main): Pass on -B options from COLLECT_GCC_OPTIONS.
* local-alloc.c (equiv_init_movable_p): References to CC0 are not
movable.
From-SVN: r37438
Brent Verner [Mon, 13 Nov 2000 21:04:54 +0000 (21:04 +0000)]
wrap_langinfo.h: New file.
2000-11-12 Brent Verner <brent@rcfile.org>
* include/c_std/bits/wrap_langinfo.h: New file.
* include/c_std/langinfo.h: New file.
* include/bits/codecvt.h (__enc_trants::__enc_traits()): Bring in
CODESET from _C_legacy::CODESET if using shadow headers.
* src/Makefile.am: Add new files.
* src/Makefile.in: Regenerate.
From-SVN: r37437
Benjamin Kosnik [Mon, 13 Nov 2000 20:58:46 +0000 (20:58 +0000)]
wrap_langinfo.h: New file.
2000-11-12 Brent Verner <brent@rcfile.org>
* include/c_std/bits/wrap_langinfo.h: New file.
* include/c_std/langinfo.h: New file.
* include/bits/codecvt.h (__enc_trants::__enc_traits()): Bring in
CODESET from _C_legacy::CODESET if using shadow headers.
From-SVN: r37436
Joseph Myers [Mon, 13 Nov 2000 20:00:22 +0000 (20:00 +0000)]
c-parse.in (stmts_and_decls): Deprecate use of label at end of compound statement.
* c-parse.in (stmts_and_decls): Deprecate use of label at end of
compound statement.
testsuite:
* gcc.dg/wtr-label-1.c, gcc.dg/990214-1.c: Add semicolons after
labels at end of compound statements.
From-SVN: r37435
Neil Booth [Mon, 13 Nov 2000 18:40:37 +0000 (18:40 +0000)]
cpplex.c (_cpp_lex_token): CPP_COMMENT and true CPP_EOF cases return without MI check.
* cpplex.c (_cpp_lex_token): CPP_COMMENT and true CPP_EOF
cases return without MI check.
* cpplib.c (do_diagnostic): Take boolean of whether to
print the directive name.
(do_error, do_warning): Update.
(do_pragma_dependency): Use it.
* cpplib.h (VARARGS_FIRST): Delete.
(struct cpp_token): Delete integer.
* cppmacro.c (enter_macro_context): Move disabled check
to _cpp_get_token.
(_cpp_get_token): Simplify into a single loop.
From-SVN: r37434
Richard Earnshaw [Mon, 13 Nov 2000 17:12:25 +0000 (17:12 +0000)]
Fix minor typo.
From-SVN: r37433
Richard Earnshaw [Mon, 13 Nov 2000 16:56:57 +0000 (16:56 +0000)]
configure.in: Use 'test -f' not '[ -e'.
* configure.in: Use 'test -f' not '[ -e'.
* configure: Regenerated.
From-SVN: r37432
DJ Delorie [Mon, 13 Nov 2000 16:37:09 +0000 (11:37 -0500)]
mn10300.md (store_movm): Note which registers are really used or clobbered.
* config/mn10300/mn10300.md (store_movm): Note which registers are
really used or clobbered.
From-SVN: r37431
Jakub Jelinek [Mon, 13 Nov 2000 14:41:38 +0000 (15:41 +0100)]
* gcc.c-torture/execute/loop-7.c: New test.
From-SVN: r37430
Joseph Myers [Mon, 13 Nov 2000 14:20:04 +0000 (14:20 +0000)]
c-parse.in (ends_in_label): Remove from %union and %type.
* c-parse.in (ends_in_label): Remove from %union and %type.
(decls, stmts, lineno_stmt_or_labels, xstmts,
lineno_stmt_or_label, stmt_or_label): Remove.
(stmts_and_decls, lineno_stmt_decl_or_labels_ending_stmt,
lineno_stmt_decl_or_labels_ending_decl,
lineno_stmt_decl_or_labels_ending_label,
lineno_stmt_decl_or_labels_ending_error,
lineno_stmt_decl_or_labels, compstmt_contents_nonempty,
lineno_stmt, lineno_label): New.
(compstmt_nostart): Use compstmt_contents_nonempty.
testsuite:
* gcc.dg/c99-mixdecl-1.c, gcc.dg/c90-mixdecl-1.c: New tests.
From-SVN: r37429
Joseph Myers [Mon, 13 Nov 2000 14:14:44 +0000 (14:14 +0000)]
c-common.c (boolean_increment): New function.
* c-common.c (boolean_increment): New function.
* c-common.h (enum c_tree_index): Add CTI_C_BOOL_TYPE,
CTI_C_BOOL_TRUE and CTI_C_BOOL_FALSE.
(c_bool_type_node, c_bool_true_node, c_bool_false_node): Define.
(boolean_increment): Declare.
* c-convert.c (convert): Allow for BOOLEAN_TYPE.
* c-decl.c (init_decl_processing): Create boolean nodes.
(finish_struct): Allow for _Bool bitfields.
* c-parse.in (reswords): Add _Bool.
(rid_to_yy): Allow for RID_BOOL.
* c-typeck.c (default_conversion): Make booleans promote to int.
(convert_arguments, build_unary_op, build_modify_expr,
convert_for_assignment): Allow for booleans.
* ginclude/stdbool.h: Make conforming to C99.
cp:
* typeck.c (build_unary_op): Use boolean_increment from
c-common.c, moving the relevant code there.
testsuite:
* gcc.dg/c99-bool-1.c: New test.
From-SVN: r37428
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
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
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
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
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
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
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
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
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
Jeff Law [Mon, 13 Nov 2000 08:45:07 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r37418
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
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
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
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
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
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
Bruce Korb [Mon, 13 Nov 2000 00:25:21 +0000 (00:25 +0000)]
generalize the release script a bit
From-SVN: r37411
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
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
Joseph Myers [Sun, 12 Nov 2000 19:17:59 +0000 (19:17 +0000)]
* invoke.texi: Clean up option summary.
From-SVN: r37408
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
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
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
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
Jeff Law [Sun, 12 Nov 2000 08:45:08 +0000 (01:45 -0700)]
Daily bump.
From-SVN: r37403
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
Bruce Korb [Sun, 12 Nov 2000 03:37:33 +0000 (03:37 +0000)]
avoid commenting out #endifs
From-SVN: r37401
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
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
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
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
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
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
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
Joseph Myers [Sat, 11 Nov 2000 23:44:24 +0000 (23:44 +0000)]
* gcc.texi: Adjust wording.
From-SVN: r37393
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
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
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
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
Philip Blundell [Sat, 11 Nov 2000 17:12:33 +0000 (17:12 +0000)]
Add self to MAINTAINERS file.
From-SVN: r37388