Commit Graph

76843 Commits

Author SHA1 Message Date
Kaveh Ghazi
f0d1d9711d Add PR numbers for previously installed fix.
From-SVN: r117399
2006-10-03 16:17:57 +00:00
Benjamin Kosnik
382a135134 native_pq_tag.hpp: Remove.
2006-10-03  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/util/native_type/priority_queue/native_pq_tag.hpp: Remove.
	* testsuite/util/statistic/sample_var.hpp: Rename to...
	* testsuite/util/statistic/sample_variance.hpp: ... this.
	* testsuite/util/statistic/res_recorder.hpp: Rename to...
	* testsuite/util/statistic/result_recorder.hpp: ... this.
	* testsuite/util/statistic/sample_mean.hpp: Format.
	* testsuite/util/statistic/sample_mean_confidence_checker.hpp: Same.
	* testsuite/util/regression/trait/priority_queue/trait.hpp: Same.
	* testsuite/util/regression/trait/erase_if_fn.hpp: Same.
	* testsuite/util/regression/trait/assoc/trait.hpp: Same.
	* testsuite/util/native_type/priority_queue/
	native_priority_queue.hpp: Same.
	* testsuite/util/native_type/assoc/native_tree_tag.hpp: Same.
	* testsuite/util/native_type/assoc/native_hash_tag.hpp: Same.
	* testsuite/util/native_type/assoc/native_hash_map.hpp: Same.
	* testsuite/util/performance/priority_queue/timing/join_test.hpp: Same.
	* testsuite/util/performance/priority_queue/timing/
	modify_test.hpp: Same.
	* testsuite/util/performance/assoc/timing/
	subscript_insert_test.hpp: Same.
	* testsuite/util/performance/time/timing_test_base.hpp: Same.

From-SVN: r117397
2006-10-03 14:26:14 +00:00
François-Xavier Coudert
c55cebdacd re PR middle-end/27478 (entry and addressable and value-expr: and the gimplifier)
PR middle-end/27478

	* trans-decl.c (gfc_get_fake_result_decl): Mark var as
	TREE_ADDRESSABLE.

	* gfortran.dg/entry_8.f90: New test.

From-SVN: r117396
2006-10-03 13:44:09 +00:00
Gary Benson
704312e738 2006-10-03 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java
	(<clinit>): Reorder the static initializers.

From-SVN: r117394
2006-10-03 10:27:28 +00:00
Volker Reichelt
95fb85c625 re PR c++/29291 (ICE on invalid use of new)
PR c++/29291
	* init.c (build_new): Check for invalid init.

	* g++.dg/parse/new4.C: New test.

From-SVN: r117393
2006-10-03 10:08:22 +00:00
Uros Bizjak
36a43def8a * ChangeLog: Add missing entries to last entry.
From-SVN: r117389
2006-10-03 08:33:02 +02:00
Uros Bizjak
285e8bda5c pthread-init-common.h: Define _GNU_SOURCE.
* gcc-dg/pthread-init-common.h: Define _GNU_SOURCE. Add tests for
        PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
        PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
        PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP and
        PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP mutex initializers.

From-SVN: r117387
2006-10-03 08:01:49 +02:00
Uros Bizjak
4d98def06f inclhack.def (glibc_mutex_init): Also fix PTHREAD_MUTEX_(RECURSIVE|ERRORCHECK|ADAPTIVE)_NP and...
* inclhack.def (glibc_mutex_init): Also fix
	PTHREAD_MUTEX_(RECURSIVE|ERRORCHECK|ADAPTIVE)_NP and
	PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP initializers.

From-SVN: r117386
2006-10-03 07:52:05 +02:00
Jerry DeLisle
6aacba3755 re PR fortran/19260 (& not required when splitting a token in continuation)
2006-10-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/19260
	* gfortran.dg/continuation.f90: Rename to continuation_1.f90.
	* gfortran.dg/continuation_2.f90: New test.

	PR fortran/19262
	* gfortran.dg/continuation_3.f90: New test.
	* gfortran.dg/continuation_4.f90: New test.
	* gfortran.dg/continuation_5.f: New test.
	* gfortran.dg/continuation_6.f: New test.

From-SVN: r117385
2006-10-03 04:09:49 +00:00
Jerry DeLisle
5a06474ce9 re PR fortran/19262 (more than thirty-nine continuation lines should issue a std-warn)
2006-10-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

    PR fortran/19262
    * gfortran.h (gfc_option_t): Add max_continue_fixed and max_continue_free.
    * options.c (gfc_init_options): Initialize fixed form and free form
    consecutive continuation line limits.
    * scanner.c (gfc_scanner_init_1): Initialize continue_line
    and continue_count. (gfc_next_char_literal): Count the number of
    continuation lines in the current statement and warn if
    limit is exceeded.

2006-10-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

    PR fortran/19260
    * scanner.c (gfc_next_char_literal): Add check for missing '&'
    and warn if in_string, otherwise return ' '.

From-SVN: r117384
2006-10-03 03:58:20 +00:00
Jack Howarth
2834a5fe89 unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first arg to be struct mach_header_64* instead.
* unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first
	arg to be struct mach_header_64* instead.

From-SVN: r117383
2006-10-03 01:20:22 +00:00
GCC Administrator
f154929ca6 Daily bump.
From-SVN: r117381
2006-10-03 00:17:16 +00:00
Mark Mitchell
3c17e16e31 re PR c++/29226 (ICE in make_decl_rtl, at varasm.c:886)
PR c++/29226
	* typeck.c (cxx_sizeof_or_alignof_type): Tidy.  In templates, do
	not try to actually evaluate sizeof for a VLA type.
	PR c++/29226
	* g++.dg/template/vla1.C: New test.

From-SVN: r117375
2006-10-02 22:21:02 +00:00
Paolo Carlini
1c846af9c5 rc_string_base.h (_M_compare<wchar_t>): Protect with _GLIBCXX_USE_WCHAR_T.
2006-10-02  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/rc_string_base.h (_M_compare<wchar_t>):
	Protect with _GLIBCXX_USE_WCHAR_T.
	* include/ext/sso_string_base.h (_M_compare<wchar_t>):
	Likewise.
	(__sso_string_base<>::_M_destroy): Inline.

From-SVN: r117373
2006-10-02 16:09:19 +00:00
Benjamin Kosnik
1f1a03efff basic_types.hpp (comp_hash_): Remove, format.
2006-10-02  Benjamin Kosnik  <bkoz@redhat.com>

	* include/ext/pb_ds/detail/basic_types.hpp (comp_hash_): Remove,
	format.	
	* include/ext/pb_ds/detail/types_traits.hpp
	(types_traits::comp_hash): Use pair typedef.	
	* include/ext/pb_ds/detail/hash_fn/ranged_probe_fn.hpp: Same.
	* include/ext/pb_ds/detail/hash_fn/ranged_hash_fn.hpp: Same.

From-SVN: r117371
2006-10-02 14:53:41 +00:00
Gary Benson
93a8f49bfa 2006-10-02 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java
	(checkConnect): Reinstated.
	(loopbackAddress): Ensure initialized from non-null object.

From-SVN: r117370
2006-10-02 10:54:43 +00:00
Francois-Xavier Coudert
e227ac577f re PR fortran/29210 ([4.1 only] Name parameter in complex constant not allowed in F95)
PR fortran/29210

	* primary.c (match_sym_complex_part): Named constants as real or
	imaginary part of complex a named constant are only allowed in
	Fortran 2003.

	* gfortran.dg/complex_parameter_1.f90: New test.

From-SVN: r117368
2006-10-02 09:21:45 +00:00
Jakub Jelinek
82181741c1 re PR c/29154 (*(* ppointer++)++ = *pointer++ generates bad code)
PR c/29154
	* gimplify.c (gimplify_self_mod_expr): Run inner expression's post
	side effects after the outer expression's post side effects.

	* gcc.c-torture/execute/20060929-1.c: New test.

From-SVN: r117366
2006-10-02 08:11:49 +02:00
Mark Mitchell
51a203d95e re PR c++/29105 (segfault in add_candidates with a non template base class and a template member function)
PR c++/29105
	* pt.c (tsubst_baselink): Substituteinto the qualifying scope.
	* semantics.c (baselink_for_fns): Build a baselink, even when
	processing a template.
	PR c++/29105
	* g++.dg/template/member6.C: New test.
	* g++.dg/parse/typename7.C: Adjust error markers.

From-SVN: r117361
2006-10-02 04:12:51 +00:00
Mark Mitchell
297d410513 re PR c++/29080 (Multiple-inheritance with template method function code triggers "internal compiler error: in build_base_path, at cp/class.c:273")
PR c++/29080
	* parser.c (cp_parser_postfix_dot_deref_expression): Use
	BASELINK_ACCESS_BINFO as the qualifying scope when calling
	adjust_result_of_qualified_name_lookup. 
	PR c++/29080
	* g++.dg/template/member7.C: New test.

From-SVN: r117360
2006-10-02 04:12:30 +00:00
GCC Administrator
3af947c66a Daily bump.
From-SVN: r117357
2006-10-02 00:17:15 +00:00
Paolo Carlini
276116fdcc random (xor_combine<>::_M_initialize_max_aux): New.
2006-10-01  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/random (xor_combine<>::_M_initialize_max_aux): New.
	(xor_combine<>::operator()()): Tweak per N2079.
	* include/tr1/random.tcc (xor_combine<>::_M_initialize_max_aux):
	Define.
	(xor_combine<>::_M_initialize_max): Use it.
	* testsuite/tr1/5_numerical_facilities/random/xor_combine/
	cons/default.cc: Adjust.
	* docs/html/ext/tr1.html: Adjust.

From-SVN: r117353
2006-10-02 00:12:50 +00:00
Sandra Loosemore
a40776a295 tree.h (DECL_FIELD_OFFSET, [...]): Fix comments to reflect actual behavior and relationship between...
2006-10-01  Sandra Loosemore  <sandra@codesourcery.com>

	* gcc/tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET):  Fix
	comments to reflect actual behavior and relationship between
	DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN.

	* gcc/doc/c-tree.texi (Working with declarations): Fix documentation
	of FIELD_DECL likewise.

From-SVN: r117352
2006-10-01 19:38:08 -04:00
Brooks Moses
3397327cdc gfortran.texi: Corrected references to MALLOC intrinsic.
2006-10-01  Brooks Moses  <bmoses@stanford.edu>

	* gfortran.texi: Corrected references to MALLOC intrinsic.
	* invoke.texi: Minor cleanup and clarification to the Dialect
	Options section.

From-SVN: r117350
2006-10-01 19:11:31 +00:00
Ryan Mansfield
5f79d6437c re PR c/20533 (documentation: attribute 'used', applied to a variable)
2006-10-01  Ryan Mansfield  <rmansfield@qnx.com>

	PR c/20533
	* doc/extend.texi: Add used variable attribute description.

From-SVN: r117349
2006-10-01 19:03:24 +00:00
Paolo Carlini
56f61bfff3 type_traits.h: Avoid _T, badname for some targets; also avoid plain T.
2006-10-01  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/type_traits.h: Avoid _T, badname for some targets;
	also avoid plain T.

From-SVN: r117347
2006-10-01 10:39:16 +00:00
Paolo Carlini
bc8b35b594 basic_file_stdio.cc: As an extension...
2006-10-01  Paolo Carlini  <pcarlini@suse.de>

	* config/io/basic_file_stdio.cc: As an extension, and
	consistently with C facilities, allow for in|out|app and
	in|out|app|binary openmodes.
	* testsuite/27_io/basic_filebuf/open/char/4.cc: New.

From-SVN: r117346
2006-10-01 08:27:49 +00:00
Francois-Xavier Coudert
f53c2bfab1 * libgfortran.h: Add prototype for internal_unpack_c16.
From-SVN: r117345
2006-10-01 07:54:09 +00:00
Uros Bizjak
f6f7aabcd6 inclhack.def (pthread_mutex_init): New fix.
* inclhack.def (pthread_mutex_init): New fix.
        * tests/base/pthread.h: Update.

        * fixincl.x: Regenerate.

From-SVN: r117343
2006-10-01 07:47:33 +02:00
Brooks Moses
da1e2517fa invoke.texi: Add mention of BOZ constants and integer overflow to -fno-range-check.
2006-09-30  Brooks Moses  <bmoses@stanford.edu>

	* invoke.texi:  Add mention of BOZ constants and integer
	overflow to -fno-range-check.
	* fortran.texi:  Add mention of -fno-range-check to
	section on BOZ contants.

From-SVN: r117342
2006-10-01 00:51:21 +00:00
GCC Administrator
04652d6c8d Daily bump.
From-SVN: r117340
2006-10-01 00:17:32 +00:00
Francois-Xavier Coudert
5da8d27d97 f2c_specifics.F90: Special-case conjg functions so that their suffices are _4 and _8 instead of...
* intrinsics/f2c_specifics.F90: Special-case conjg functions so
	that their suffices are _4 and _8 instead of _c4 and _c8.

From-SVN: r117335
2006-09-30 22:32:41 +00:00
Joseph Myers
7ed322d7b5 re PR c/24010 (Duplicate C99 dot initializer warning missing)
PR c/24010
	* c.opt (Woverride-init): New.
	* c-opts.c (c_common_post_options): Default warn_override_init to
	extra_warnings.
	* c-typeck.c (add_pending_init, output_init_element): Warn for
	overriding initializers without side effects.
	* doc/invoke.texi (-Woverride-init): Document.
	(-Wextra): Update.

testsuite:
	* gcc.dg/Woverride-init-1.c, gcc.dg/Woverride-init-2.c,
	gcc.dg/Woverride-init-3.c: New tests.

From-SVN: r117334
2006-09-30 20:46:06 +01:00
Keith Seitz
19add4f7e4 java-interp.h (prepared): Change type to pc_t.
* include/java-interp.h (prepared): Change type to pc_t.
        (insn_index): Define for both DIRECT_THREADED and bytecode interpreters.
        * interpret.cc [!DIRECT_THREADED] (POKEI): Fix typo.
        (insn_index): Implement for bytecode interpreter.
        * interpret-run.cc [!DIRECT_THREADED] (AVAL1U): Add _Jv_Linker class
        qualifier to resolve_pool_entry.
        [!DIRECT_THREADED] (AVAL2U): Likewise.
        [!DIRECT_THREADED] bytecode() cannot be called without an object.
        Changed all typos.
        [!DIRECT_THREADED] Likewise for defining_class.

From-SVN: r117333
2006-09-30 19:20:16 +00:00
Bernhard Fischer
05c1e3a7a9 resolve.c: Fix commentary typo.
2006-09-30  Bernhard Fischer  <aldot@gcc.gnu.org>

	* resolve.c: Fix commentary typo.  Fix whitespace.

From-SVN: r117332
2006-09-30 21:10:54 +02:00
Eric Botcazou
2d72242356 re PR rtl-optimization/28096 (fdlibm/strtod.c miscompiled at -O2)
PR rtl-optimization/28096
	* ifcvt.c (check_cond_move_block): Return FALSE if the source of an
	assignment has already been used as a destination earlier in the
	block.

From-SVN: r117331
2006-09-30 13:31:29 +00:00
Benjamin Kosnik
10d2ebc511 types_traits.hpp (store_extra_false_type): To false_type.
2006-09-30  Benjamin Kosnik  <bkoz@redhat.com>

	* include/ext/pb_ds/detail/types_traits.hpp (store_extra_false_type):
	To false_type.
	(store_extra_true_type): To true_type.
	(no_throw_copies_true_type): To true_type.
	(no_throw_copies_false_type): To false_type.
	* include/ext/pb_ds/detail/cc_hash_table_map_/
	insert_no_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/cc_hash_table_map_/
	resize_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/cc_hash_table_map_/
	insert_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/cc_hash_table_map_/
	entry_list_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/cc_hash_table_map_/
	debug_no_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/cc_hash_table_map_/cc_ht_map_.hpp: Same.
	* include/ext/pb_ds/detail/cc_hash_table_map_/
	debug_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/cc_hash_table_map_/
	resize_no_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/gp_hash_table_map_/
	insert_no_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/gp_hash_table_map_/
	resize_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/gp_hash_table_map_/gp_ht_map_.hpp: Same.
	* include/ext/pb_ds/detail/gp_hash_table_map_/
	insert_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/gp_hash_table_map_/
	find_no_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/gp_hash_table_map_/
	debug_no_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/gp_hash_table_map_/
	debug_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/gp_hash_table_map_/
	resize_no_store_hash_fn_imps.hpp: Same.
	* include/ext/pb_ds/detail/list_update_map_/lu_map_.hpp: Same.

From-SVN: r117329
2006-09-30 10:25:12 +00:00
Benjamin Kosnik
beb5d0f44c constructor_destructor_no_store_hash_fn_imps.hpp: Formating fixes.
2006-09-29  Benjamin Kosnik  <bkoz@redhat.com>

	* include/ext/pb_ds/detail/cc_hash_table_map_/
	constructor_destructor_no_store_hash_fn_imps.hpp: Formating fixes.
	* include/ext/pb_ds/detail/basic_tree_policy/
	null_node_metadata.hpp: Same.
	* include/ext/pb_ds/detail/binary_heap_/const_point_iterator.hpp: Same.
	* include/ext/pb_ds/detail/basic_types.hpp: Same.
	* include/ext/pb_ds/detail/list_update_policy/
	mtf_lu_policy_imp.hpp: Same.
	* include/ext/pb_ds/detail/list_update_policy/
	counter_lu_metadata.hpp: Same.
	* include/ext/pb_ds/detail/list_update_policy/
	sample_update_policy.hpp: Same.
	* include/ext/pb_ds/detail/list_update_policy/
	counter_lu_policy_imp.hpp: Same.
	* include/ext/pb_ds/list_update_policy.hpp: Same.

From-SVN: r117328
2006-09-30 00:39:20 +00:00
GCC Administrator
2e67b71839 Daily bump.
From-SVN: r117326
2006-09-30 00:17:18 +00:00
Steven G. Kargl
d68d3a3d4b cpu_time.c: Add cpu_time_10 and cpu_time_16 routines.
2006-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>
 
	* intrinsics/cpu_time.c:  Add cpu_time_10 and cpu_time_16 routines.

From-SVN: r117320
2006-09-29 22:21:53 +00:00
Joseph Myers
be14fe72cb re PR other/25035 (libssp causes a failure with cross compilers with unified trees)
PR other/25035
	* configure.ac (AC_EXEEXT): Remove.
	(GCC_NO_EXECUTABLES): Call.
	(ssp_use_symver): Default to no if unable to link.
	(AC_CHECK_FUNCS): Hardwire results if unable to link.
	* aclocal.m4, configure, Makefile.in: Regenerate.

From-SVN: r117318
2006-09-29 22:18:51 +01:00
Francois-Xavier Coudert
4a44c1a228 re PR libfortran/18791 (CABS specifics declared of wrong type)
PR fortran/18791

        * gfortran.dg/specifics_1.f90: New test.
        * gfortran.fortran-torture/execute/specifics.f90: Add tests for
        complex specifics.

        * m4/specific.m4: Special-case cabs so that its return type is
        real. Special-case conjg so that their suffices are _4, _8, _10 and
        _16 instead of _c4, _c8, _c10 and _c16.
        * intrinsics/f2c_specifics.F90: Special-case conjg functions so
        that their suffices are _4 and _8 instead of _c4 and _c8.
        * generated/_conjg_c4.F90: Regenerate.
        * generated/_conjg_c8.F90: Regenerate.
        * generated/_conjg_c10.F90: Regenerate.
        * generated/_conjg_c16.F90: Regenerate.
        * generated/_abs_c4.F90: Regenerate.
        * generated/_abs_c8.F90: Regenerate.
        * generated/_abs_c10.F90: Regenerate.
        * generated/_abs_c16.F90: Regenerate.

From-SVN: r117317
2006-09-29 20:41:11 +00:00
Kaveh R. Ghazi
57270ac1c8 pthread-init-1.c, [...]: New.
* gcc.dg/pthread-init-1.c, pthread-init-2.c,
	pthread-init-common.h: New.

From-SVN: r117314
2006-09-29 19:33:50 +00:00
Kaveh R. Ghazi
a77d42cf21 inclhack.def (solaris_mutex_init_2): Update for Solaris9.
* inclhack.def (solaris_mutex_init_2): Update for Solaris9.
	Prevent it from running on solaris10 or later.
	(solaris_once_init_2): Fix comment.
	* tests/base/pthread.h: Update.

	* fixincl.x: Regenerate.

From-SVN: r117310
2006-09-29 19:14:58 +00:00
Steven G. Kargl
504652cb45 nearest_1.f90: Add -ffloat-store to defeat extra precision on some archs.
2006-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>

	* gfortran.dg/nearest_1.f90: Add -ffloat-store to defeat extra
	precision on some archs.

From-SVN: r117309
2006-09-29 17:39:52 +00:00
Benjamin Kosnik
3454c18fb5 type_traits.h (__remove_unsigned): Fix up for signed char, bool, wchar_t, and floating point types.
2006-09-29  Benjamin Kosnik  <bkoz@redhat.com>
            Howard Hinnant  <hhinnant@apple.com>
            Paolo Carlini  <pcarlini@suse.de>

	* include/ext/type_traits.h (__remove_unsigned): Fix up for signed
	char, bool, wchar_t, and floating point types.
	(__add_unsigned): Same.	
	* testsuite/ext/type_traits: New.
	* testsuite/ext/type_traits.cc: Move...
	* testsuite/ext/type_traits/numeric_traits.cc: ...here.	
	* testsuite/ext/type_traits/add_unsigned_floating_neg.cc: New.
	* testsuite/ext/type_traits/add_unsigned_integer_neg.cc: New.
	* testsuite/ext/type_traits/remove_unsigned_floating_neg.cc: New.
	* testsuite/ext/type_traits/remove_unsigned_integer_neg.cc: New.
	* testsuite/ext/type_traits/add_unsigned.cc: New.
	* testsuite/ext/type_traits/remove_unsigned.cc: New.
	

Co-Authored-By: Howard Hinnant <hhinnant@apple.com>
Co-Authored-By: Paolo Carlini <pcarlini@suse.de>

From-SVN: r117303
2006-09-29 13:38:58 +00:00
Joseph Myers
4bd726d0bc acinclude.m4 (enable_symvers): Default to no if unable to link.
* acinclude.m4 (enable_symvers): Default to no if unable to link.
	* configure: Regenerate.

From-SVN: r117301
2006-09-29 13:19:45 +01:00
Eric Botcazou
7a19767892 Fix nits.
From-SVN: r117300
2006-09-29 06:52:47 +00:00
Eric Botcazou
b55e7f34bc decl.c (gnat_to_gnu_entity): Do not set "const" flag on "pure" Ada subprograms if SJLJ exceptions are used.
* decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
	on "pure" Ada subprograms if SJLJ exceptions are used.
	* trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
	on the declaration node of JMPBUF_SAVE.
	* utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
	of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
	* utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.

From-SVN: r117299
2006-09-29 06:52:04 +00:00
Eric Botcazou
4f6c213142 builtins.c (expand_builtin_setjmp): Delete.
* builtins.c (expand_builtin_setjmp): Delete.
	(expand_builtin) <BUILT_IN_SETJMP>: Mark as unreachable.
	<BUILT_IN_SETJMP_SETUP>: New case.
	<BUILT_IN_SETJMP_DISPATCHER>: Likewise.
	<BUILT_IN_SETJMP_RECEIVER>: Likewise.
	* builtins.def (BUILT_IN_SETJMP_SETUP): New built-in stub.
	(BUILT_IN_SETJMP_DISPATCHER): Likewise.
	(BUILT_IN_SETJMP_RECEIVER): Likewise.
	* gimple-low.c (struct lower_data): New field calls_builtin_setjmp.
	(lower_function_body): Initialize it to false.  If it is set to true
	at the end of the processing, emit the setjmp dispatcher.
	(lower_stmt) <CALL_EXPR>: Invoke lower_builtin_setjmp if the callee
	is __builtin_setjmp and set calls_builtin_setjmp to true as well.
	<MODIFY_EXPR>: Fall through to above case if there is a CALL_EXPR
	on the rhs of the assignment.
	(lower_builtin_setjmp): New function.
	* tree.c (build_common_builtin_nodes): Build BUILT_IN_SETJMP_SETUP,
	BUILT_IN_SETJMP_DISPATCHER and BUILT_IN_SETJMP_RECEIVER nodes.
	* tree-cfg.c (make_exit_edges) <CALL_EXPR>: Use specific predicate
	to detect calls that can go to non-local labels.  Use specific
	helper to create the abnormal edges associated with them.
	<MODIFY_EXPR>: Likewise.
	(make_abnormal_goto_edges): New function extracted from...
	(make_goto_expr_edges): ...here.  Call it for computed gotos.
	(simple_goto_p): Minor tweak.
	(tree_can_make_abnormal_goto): New predicate.
	(tree_redirect_edge_and_branch): Return zero on all abnormal edges.
	(tree_purge_dead_abnormal_call_edges): New function.
	* tree-flow.h (tree_can_make_abnormal_goto): Declare.
	(tree_purge_dead_abnormal_call_edges): Likewise.
	(make_abnormal_goto_edges): Likewise.
	* tree-inline.c (expand_call_inline): Simplify statement frobbing.
	Purge all dead abnormal edges if the call was in the last statement.
	* tree-optimize.c (has_abnormal_outgoing_edge_p): New predicate.
	(execute_fixup_cfg): If there are non-local labels in the function,
	scan the basic blocks and split them at calls that can go to non-local
	labels or add missing abnormal call edges.  Write down the CFG in the
	dump file.
	(pass_fixup_cfg): Remove TODO_dump_func flag.
	* unwind-sjlj.c: Poison setjmp.
	* doc/install.texi (enable-sjlj-exceptions): Use more general wording.
	* doc/tm.texi (DWARF2_UNWIND_INFO): Likewise.
	(TARGET_UNWIND_TABLES_DEFAULT): Fix typo.
	(DONT_USE_BUILTIN_SETJMP): Document it.

From-SVN: r117298
2006-09-29 06:32:58 +00:00