Commit Graph

62234 Commits

Author SHA1 Message Date
Thomas Quinot
d6c7ed5017 g-socket.ads, [...]: Add new sockets constant MSG_NOSIGNAL (Linux-specific).
2004-10-04  Thomas Quinot  <quinot@act-europe.fr>

	* g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
	g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
	g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
	g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
	g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
	sockets constant MSG_NOSIGNAL (Linux-specific).
	Add new sockets constant MSG_Forced_Flags, list of flags to be set on
	all Send operations.
	For Linux, set MSG_NOSIGNAL on all send operations to prevent them
	from trigerring SIGPIPE.
	Rename components to avoid clash with Ada 2005 possible reserved
	word 'interface'.
	(Check_Selector): When the select system call returns with an error
	condition, propagate Socket_Error to the caller.

From-SVN: r88485
2004-10-04 16:49:35 +02:00
Diego Novillo
fded8de7d6 tree-ssa-dom.c (tree_ssa_dominator_optimize): Initialize OPT_STATS to 0.
* tree-ssa-dom.c (tree_ssa_dominator_optimize):
	Initialize OPT_STATS to 0.

From-SVN: r88484
2004-10-04 09:19:20 -04:00
Tobias Schlüter
ca2940c3e0 trans-array.c (gfc_conv_expr_descriptor): Check for substriungs.
2004-10-04  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
	Paul Brook  <paul@codesourcery.com>

	* trans-array.c (gfc_conv_expr_descriptor): Check for substriungs.
	Use gfc_get_expr_charlen.
	* trans-expr.c (gfc_get_expr_charlen): New function.
	* trans.h (gfc_get_expr_charlen): Add prototype.
testsuite/
	* gfortran.dg/pr17612.f90: New test.

Co-Authored-By: Paul Brook <paul@codesourcery.com>

From-SVN: r88483
2004-10-04 13:03:43 +00:00
Kazu Hirata
b805ea17e5 * trans-intrinsic.c: Fix a comment typo.
From-SVN: r88481
2004-10-04 12:00:04 +00:00
Kazu Hirata
59c4456e07 * tree-data-ref.c: Fix comment typos.
From-SVN: r88480
2004-10-04 11:57:09 +00:00
Sebastian Pop
68b26d5cd8 tree-data-ref.c (array_base_name_differ_p): Fix comments.
* tree-data-ref.c (array_base_name_differ_p): Fix comments.  When
	the predicate cannot be computed, don't initialize the result to
	false.

From-SVN: r88479
2004-10-04 09:12:43 +00:00
Gabriel Dos Reis
2d01edd760 Convert diagnostics to use quoting flag q 3/n
cp/
        Convert diagnostics to use quoting flag q 3/n
        * decl.c (pop_label, duplicate_decls,
        redeclaration_error_message,
        redeclaration_error_message, lookup_label, check_goto,
        make_typename_type, make_unbound_class_template,
        fixup_anonymous_aggr, check_tag_decl, start_decl,
        start_decl_1,
        grok_reference_init, layout_var_decl, maybe_commonize_var,
        check_for_uninitialized_const_var, reshape_init_array,
        reshape_init, check_initializer, cp_finish_decl,
        member_function_or_else, bad_specifiers, grokfndecl,
        grokvardecl,
        check_static_variable_definition, compute_array_index_type,
        create_array_type_for_decl,
        check_special_function_return_type,
        grokdeclarator, check_default_argument, grokparms,
        grok_ctor_properties, grok_op_properties,
        check_elaborated_type_specifier, xref_tag, finish_enum,
        build_enumerator, check_function_type,
        start_preparsed_function,
        store_parm_decls): Use quoting formats.
        * decl2.c (grok_array_decl, delete_sanity,
        check_member_template,
        check_java_method, check_classfn,
        finish_static_data_member_decl,
        grokfield, grokbitfield, grok_function_init,
        build_anon_union_vars, coerce_new_type, coerce_delete_type,
        check_default_args): Likewise.
        * parser.c (cp_parser_decl_specifier_seq): Likewise.

testsuite/
        * g++.dg/template/local1.C: Adjust quoting marks in
        testing for diagnostics.
        * g++.dg/tls/diag-2.C: Likewise.
        * g++.dg/other/error8.C: Likewise.

From-SVN: r88478
2004-10-04 06:04:43 +00:00
Eric Christopher
b9e6959bf6 dwarf2.h (dwarf_calling_convention): Add GNU prefix to locally defined enum.
2004-10-01  Eric Christopher  <echristo@redhat.com>

	* dwarf2.h (dwarf_calling_convention): Add GNU prefix to
	locally defined enum.
	* dwarf2out.c (add_calling_convention_attribute): Don't
	emit DW_CC_normal.

From-SVN: r88477
2004-10-04 05:29:27 +00:00
Kazu Hirata
13e5d623b3 MAINTAINERS (Various Maintainers): Move the "windows, cygwin, mingw" maintainer to ...
* MAINTAINERS (Various Maintainers): Move the "windows,
	cygwin, mingw" maintainer to ...
	(OS Port Maintainers): ... here.

From-SVN: r88476
2004-10-04 04:54:21 +00:00
Kazu Hirata
a6497c1b1b MAINTAINERS (Write After Approval): Remove those that are maintainers of some subsystem.
* MAINTAINERS (Write After Approval): Remove those that are
	maintainers of some subsystem.

From-SVN: r88475
2004-10-04 04:39:44 +00:00
Gabriel Dos Reis
1f070f2bf0 Convert diagnostics to use quoting flag q 2/n
Convert diagnostics to use quoting flag q 2/n
        * class.c (build_base_path, add_method, alter_access,
        handle_using_decl, check_bases,
        maybe_warn_about_overly_private_class, find_final_overrider,
        warn_hidden, finish_struct_anon,
        add_implicitly_declared_members,
        check_bitfield_decl, check_field_decls, layout_empty_base,
        build_base_field, check_methods, layout_virtual_bases,
        warn_about_ambiguous_bases, layout_class_type,
        finish_struct_1,
        resolve_address_of_overloaded_function, instantiate_type,
        note_name_declared_in_class): Use format flag "q" for quoting.

From-SVN: r88473
2004-10-04 00:40:26 +00:00
Roger Sayle
e6fecd0132 c_locale.cc (__convert_to_v): Use _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
* config/locale/generic/c_locale.cc (__convert_to_v): Use
	_GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
	Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
	to check for presence of strtold.

From-SVN: r88472
2004-10-04 00:19:57 +00:00
GCC Administrator
66cea67583 Daily bump.
From-SVN: r88470
2004-10-04 00:16:13 +00:00
Andrew Pinski
2912815478 PR c/17178, PR c/17820
2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/17178, PR c/17820
        * c-decl.c (pop_scope): Do not warn about unused static
        variables as they warned in the middle-end.

2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/17178
        * gcc.dg/unused-4.c: Adjust to be correct.

        PR c/17820
        * gcc.dg/unused-7.c: New test.

From-SVN: r88467
2004-10-03 17:10:07 -07:00
Kaveh R. Ghazi
ef7eaebfc6 builtins.c (expand_builtin_memcpy): Delete duplicate code and make the first parameter the expression not the arglist.
* builtins.c (expand_builtin_memcpy): Delete duplicate code
	and make the first parameter the expression not the arglist.

From-SVN: r88466
2004-10-04 00:04:58 +00:00
Gabriel Dos Reis
41775162a7 Convert diagnostics to use quoting flag q 1/n
Convert diagnostics to use quoting flag q 1/n
        * error.c (locate_error): Ignore quoting flag q.
        * call.c (build_user_type_conversion_1,
        build_operator_new_call,
        build_object_call, op_error, build_conditional_expr,
        build_new_op, build_op_delete_call, enforce_access,
        convert_like_real, convert_arg_to_ellipsis, build_x_va_arg,
        convert_default_arg, build_over_call, build_new_method_call,
        joust, perform_implicit_conversion, initialize_reference): Use
        the
        quoting flag q.

From-SVN: r88465
2004-10-03 23:02:30 +00:00
Ulrich Weigand
103b83eaf0 expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode as valid modes to expand address expressions.
* expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
	as valid modes to expand address expressions.

From-SVN: r88464
2004-10-03 22:50:18 +00:00
Frank Ch. Eigler
bf50d091ca * fixing typos in accidental checkin
From-SVN: r88463
2004-10-03 21:17:29 +00:00
Joseph Myers
3f75a25471 c-aux-info.c, [...]: Follow code formatting conventions.
* c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
	c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
	c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
	code formatting conventions.

From-SVN: r88462
2004-10-03 21:53:05 +01:00
Richard Sandiford
57c1f13e47 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
From-SVN: r88461
2004-10-03 20:13:54 +00:00
Joseph Myers
752dbdf033 * da.po: Update.
From-SVN: r88459
2004-10-03 20:24:17 +01:00
Andrew Pinski
a1b1b3cd6d re PR c++/17797 (ICE in build_reinterpret_cast)
2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17797
        * g++.dg/overload/template2.C: New test.

From-SVN: r88458
2004-10-03 11:17:52 -07:00
Andrew Pinski
a8c2c49233 re PR c++/17797 (ICE in build_reinterpret_cast)
2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17797
        * typeck.c (build_reinterpret_cast): Return if the inner type
        is error_mark_node.

From-SVN: r88457
2004-10-03 11:07:56 -07:00
Paolo Carlini
11aaf40c8c stl_list.h: Trivial formatting fixes.
2004-10-03  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_list.h: Trivial formatting fixes.
	* include/bits/stl_tree.h: Likewise.

From-SVN: r88451
2004-10-03 15:50:32 +00:00
Kazu Hirata
807e955b1e re PR tree-optimization/16632 (A couple fold-const.c optimizations are non-functional)
PR tree-optimization/16632
	* fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
	fold (A & C) == D into 0, fold ~C.  Similarly, for the case
	where | is used instead of &.

	PR tree-optimization/16632
	* testsuite/gcc.dg/tree-ssa/20041002-1.c: New.

From-SVN: r88450
2004-10-03 15:33:20 +00:00
Kazu Hirata
24109c9f28 fold-const.c (fold): When seeing if D & ~C != 0 to fold (A & C) == D into 0, fold ~C.
* fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
	fold (A & C) == D into 0, fold ~C.  Similarly, for the case
	where | is used instead of &.

	* testsuite/gcc.dg/tree-ssa/20041002-1.c: New.

From-SVN: r88449
2004-10-03 15:31:54 +00:00
Paul Brook
0146748a01 pr17286.f90: Add dg-do line.
* gfortran.dg/pr17286.f90: Add dg-do line.  Explicitly test bug,
	rather than relying on default formatting.

From-SVN: r88448
2004-10-03 14:01:51 +00:00
Tobias Schlüter
03ddaf352f simplify.c (range_check): Remove blank line at beginning of function.
2004-10-03  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>

	* simplify.c (range_check): Remove blank line at beginning of function.
	(gfc_simplify_dint): Same at end of function.
	(gfc_simplify_exponent, gfc_simplify_fraction): Simplify calculations.
	(gfc_simplify_bound): Fix indentation.
	(gfc_simplify_log10): Simplify calculation.
	(gfc_simplify_min, gfc_simplify_max): Remove blank line at beginning
	of function.
	(gfc_simplify_nearest): Same at end of function.
	(gfc_simplify_nint, gfc_simplify_idnint): Same at beginning of
	function.
	(gfc_simplify_rrspacing, gfc_simplify_set_exponent,
	gfc_simplify_spacing): Simplify calulations.

From-SVN: r88447
2004-10-03 13:30:37 +00:00
Feng Wang
046dcd5764 trans-intrinsic.c: Fix comments on spacing and rrspacing
2004-10-03  Feng Wang  <fengwang@nudt.edu.cn>

	* trans-intrinsic.c: Fix comments on spacing and rrspacing
	(gfc_conv_intrinsic_rrspacing): Add fold on constant trees.

From-SVN: r88446
2004-10-03 13:27:06 +00:00
Kazu Hirata
d3471d77af * ginclude/stddef.h: Fix a comment typo.
From-SVN: r88445
2004-10-03 13:25:05 +00:00
Aaron W. LaFramboise
830219eec1 abort.c ("libgfortran.h"): Move.
2004-10-03  Aaron W. LaFramboise <aaronavay62@aaronwl.com>

	* intrinsics/abort.c ("libgfortran.h"): Move.
	* intrinsics/date_and_time.c ("libgfortran.h"): Same.
	* intrinsics/write.c ("libgfortran.h"): Same.

From-SVN: r88444
2004-10-03 12:04:15 +00:00
Paolo Carlini
9d7bc6de21 sstream.tcc (seekpos): In case of success, just return __sp.
2004-10-03  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/sstream.tcc (seekpos): In case of success, just
	return __sp.

From-SVN: r88443
2004-10-03 11:33:53 +00:00
Eric Botcazou
fe7378d2bf re PR target/17443 (--enable-threads=single is ignored)
PR target/17443
	* config.gcc (i?86-*-solaris2*): Restore correct logic
	for --enable-threads option.
	(sparc64-*-solaris2*): Likewise.
	(sparc-*-solaris2*): Likewise.

From-SVN: r88442
2004-10-03 08:00:39 +00:00
Alan Modra
bf276e5c28 linux.h (TARGET_C99_FUNCTIONS): Define.
* config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
	(OS_MISSING_POWERPC64): Move, and comment.
	* config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
	(OS_MISSING_POWERPC64): Move, and comment.

From-SVN: r88440
2004-10-03 13:01:38 +09:30
Ian Lance Taylor
07ec381004 * arm.c (output_call_mem): Add missing \t.
From-SVN: r88438
2004-10-03 03:04:21 +00:00
Kaveh R. Ghazi
3e6b638642 builtins.c (expand_builtin_memcmp, [...]): Delete duplicate code.
* builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
	expand_builtin_strncmp): Delete duplicate code.

From-SVN: r88437
2004-10-03 01:53:09 +00:00
GCC Administrator
400356e3e9 Daily bump.
From-SVN: r88435
2004-10-03 00:16:10 +00:00
Frank Ch. Eigler
fefbfa2166 tree-mudflap.c (mf_build_check_statement_for): Reorganize to take check-base and -limit arguments.
2004-10-02  Frank Ch. Eigler  <fche@redhat.com>

	* tree-mudflap.c (mf_build_check_statement_for): Reorganize to
	take check-base and -limit arguments.
	(mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
	check ranges for ARRAY_REF and COMPONENT_REF.
	(execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
	instrumentation.

2004-10-02  Frank Ch. Eigler  <fche@redhat.com>

	* testsuite/libmudflap.c/pass50-frag.c, fail33-frag.c, fail34-frag.c:
	New tests for proper base/limit checking for aggregates.

From-SVN: r88432
2004-10-02 23:12:49 +00:00
Joseph Myers
7848dfcac1 c-objc-common.c (c_tree_printer): Correct description of %E.
* c-objc-common.c (c_tree_printer): Correct description of %E.
	Don't fall through after printing an expression.

testsuite:
	* gcc.dg/20040920-1.c: Update expected message text.

From-SVN: r88431
2004-10-02 20:15:45 +01:00
James A. Morrison
34c4f8c7d8 re PR treelang/17762 (treelang doesn't use mapped locations)
2004-10-02  James A. Morrison  <phython@gcc.gnu.org>

        PR other/17762
        * lex.l: Include input.h and errors.h
        (lineno): New variable.
        (LINEMAP_POSITION_FOR_COLUMN): Define as noop when USE_MAPPED_LOCATION
        is not defined.
        Set column position with LINEMAP_POSITION_FOR_COLUMN.
        Use error instead of fprintf.
        Set input_location with the value returned by linemap_start_line when
        USE_MAPPED_LOCATION is defined.
        (dump_lex_value): Use LOCATION_LINE.
        * parse.y: Include errors.h.
        Use error and warning instead of fprintf.
        (return): Move exp to rule scope and always set to $2.  Test against
        exp instead of $2.
        (init): Set $$ to $2.
        (print_token): Use LOCATION_LINE.
        * tree1.c (treelang_init): Call treelang_init_decl_processing last.
        Call linemap_add to set input_filename when USE_MAPPED_LOCATION is
        defined.
        (treelang_parse_file): Always start at line one.
        Rename input_filename to main_input_filename when USE_MAPPED_LOCATION is
        defined.
        Leave main_input_filename when done parsing the input.
        (insert_tree_name): Use error instead of fprintf.
        * treetree.c (tree_code_get_expression): Wrap long line.
        (tree_mark_addressable): Use %qD to print out DECLs.

2004-10-02  James A. Morrison  <phython@gcc.gnu.org>

        * compile/autofunc.tree: New File.
        * compile/badchar.tree: New File.
        * compile/externvar.tree: New File.
        * compile/mismatch.tree: New File.
        * compile/noproto.tree: New File.
        * compile/novar.tree: New File.
        * compile/var_defs.tree: Add duplicate variable.

From-SVN: r88430
2004-10-02 18:38:29 +00:00
James A. Morrison
039784fa0d parse.y: Use gcc_assert and gcc_unreachable instead of abort.
2004-10-02  James A. Morrison  <phython@gcc.gnu.org>

        * parse.y: Use gcc_assert and gcc_unreachable instead of abort.
        * tree1.c: Likewise.
        * treetree.c: Likewise.

From-SVN: r88429
2004-10-02 17:42:44 +00:00
James A. Morrison
7e57da121a lex.l: Remove random whitespace.
2004-10-02  James A. Morrison  <phython@gcc.gnu.org>

        * lex.l: Remove random whitespace.
        * parse.y: Reformat copyright notice.  Indent declarations.
        Wrap long lines, unwrap short lines.
        * tree1.c: Reformat copyright notice.  Wrap long lines.
        Remove random whitespace.
        (lookup_tree_name): Use LOCATION_LINE.
        * treetree.c: Reformat copyright notice.  Wrap long lines.
        Remove random whitespace.

From-SVN: r88428
2004-10-02 17:40:04 +00:00
P.J. Darcy
1abb828af1 ltcf-c.sh (tpf*): Add ld_shlibs=yes.
2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>

	* ltcf-c.sh (tpf*): Add ld_shlibs=yes.
	* ltcf-cxx.sh (tpf*): Likewise.
	* ltconfig (tpf*): Add TPF OS configuration support.

From-SVN: r88427
2004-10-02 16:33:06 +00:00
Kazu Hirata
c72f8eec54 * objc-act.c: Fix comment typos.
From-SVN: r88426
2004-10-02 15:56:06 +00:00
James A. Morrison
64beac09f9 parse.y (ELSE): Set tok to $1.
2004-09-28  James A. Morrison  <phython@gcc.gnu.org>

        * parse.y (ELSE): Set tok to $1.
        * treelang.texi: Wrap comments in @r{}.  Indent example comments.
        Use gcc when refering to the command line or website.  Update function
        definition.

From-SVN: r88425
2004-10-02 15:18:16 +00:00
Kazu Hirata
66efeafc2e * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
From-SVN: r88424
2004-10-02 12:47:11 +00:00
Kaz Kojima
3d47e9caa9 * testsuite/libffi.call/negint.c: New test case.
From-SVN: r88421
2004-10-02 07:02:41 +00:00
Ulrich Weigand
12d3155f3b * gcc.dg/tree-ssa/loop-1.c: Merge changed dg-options for s390-*-*.
From-SVN: r88420
2004-10-02 04:19:16 +00:00
Kazu Hirata
26d4492f61 tree-cfg.c (cleanup_tree_cfg): Speed up by calling delete_unrechable_blocks() only when necessary.
* tree-cfg.c (cleanup_tree_cfg): Speed up by calling
	delete_unrechable_blocks() only when necessary.

From-SVN: r88419
2004-10-02 02:00:51 +00:00
P.J. Darcy
ee0f32f4ac gthr-tpf.h (__gthread_recursive_mutex_t): New type.
2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>

	* gthr-tpf.h (__gthread_recursive_mutex_t): New type.
	(__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
	(__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
	__gthread_recursive_mutex_unlock): New functions.

From-SVN: r88418
2004-10-02 00:48:44 +00:00