gcc.git
18 years agopthread_stop_world.c (GC_suspend_handler): Redirect to suspension routine if signal...
Keith Seitz [Wed, 21 Jun 2006 20:56:37 +0000 (20:56 +0000)]
pthread_stop_world.c (GC_suspend_handler): Redirect to suspension routine if signal is received and thread is flagged...

        * pthread_stop_world.c (GC_suspend_handler): Redirect to suspension
        routine if signal is received and thread is flagged SUSPENDED.
        (suspend_self): New function.
        (GC_suspend_thread): New function.
        (GC_resume_thread): New function.
        * include/gc.h (GC_suspend_thread): Declare.
        (GC_resumet_thread): Declare.
        * include/private/pthread_support.h (SUSPENDED): New GC_thread
        flag.

From-SVN: r114869

18 years agotrans-expr.c (gfc_conv_missing_dummy, [...]): Replace calls to convert on constant...
Francois-Xavier Coudert [Wed, 21 Jun 2006 20:44:31 +0000 (22:44 +0200)]
trans-expr.c (gfc_conv_missing_dummy, [...]): Replace calls to convert on constant integer nodes by build_int_cst.

* trans-expr.c (gfc_conv_missing_dummy, gfc_conv_unary_op,
gfc_conv_cst_int_power, gfc_conv_string_tmp,
gfc_conv_function_call): Replace calls to convert on constant
integer nodes by build_int_cst.
* trans-stmt.c (gfc_trans_do): Likewise.
* trans-io.c (set_internal_unit, transfer_namelist_element):
Likewise.
* trans-decl.c (build_entry_thunks): Likewise.

From-SVN: r114868

18 years ago* sv.po: Update.
Joseph Myers [Wed, 21 Jun 2006 19:45:55 +0000 (20:45 +0100)]
* sv.po: Update.

From-SVN: r114864

18 years ago2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
Andrew Pinski [Wed, 21 Jun 2006 19:32:13 +0000 (19:32 +0000)]
2006-06-21  Andrew Pinski  <pinskia@physics.uc.edu>

        * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
        section from the "Options for Code Generation Conventions".

From-SVN: r114863

18 years agore PR target/26347 (hidden weak extern functions fail regardless of existence on...
Richard Henderson [Wed, 21 Jun 2006 18:31:56 +0000 (11:31 -0700)]
re PR target/26347 (hidden weak extern functions fail regardless of existence on alpha/linux)

        PR target/26347
        PR target/27082
        * config/alpha/predicates.md (small_symbolic_operand): Deny weak
        symbols.
        (global_symbolic_operand): Allow weak symbols, even if local_p.

From-SVN: r114861

18 years agore PR tree-optimization/21274 (SSA Crash, reproducable)
Frank Ch. Eigler [Wed, 21 Jun 2006 16:35:27 +0000 (16:35 +0000)]
re PR tree-optimization/21274 (SSA Crash, reproducable)

2006-06-21  Frank Ch. Eigler  <fche@redhat.com>

PR 21274
mf-runtime.h installation based on ssp patch for PR 26473 from
Mark Mitchell  <mark@codesourcery.com>.
* configure.ac (ACX_NONCANONICAL_TARGET): Use it.
* Makefile.am (target_noncanonical): Define.
(libsubincludedir): New variable.
(nobase_libsubinclude_HEADERS): Add mf-runtime.h.
(include_HEADERS): Remove.
* configure, aclocal.m4, config.h.in: Regenerated.
* Makefile.in, testsuite/Makefile.in: Likewise.
* mf-runtime.h: Add #ifndef protection for conflicting _REENTRANT
and _THREAD_SAFE redefinition values.

From-SVN: r114855

18 years agowin32-threads.h (_Jv_ThreadDesc_t): New typedef.
Bryce McKinlay [Wed, 21 Jun 2006 16:27:14 +0000 (16:27 +0000)]
win32-threads.h (_Jv_ThreadDesc_t): New typedef.

2006-06-21  Bryce McKinlay  <mckinlay@redhat.com>

        * include/win32-threads.h (_Jv_ThreadDesc_t): New typedef.
        (_Jv_GetPlatformThreadID): New function.
        * include/posix-threads.h (_Jv_ThreadDesc_t): New typedef.
        (_Jv_GetPlatformThreadID): New function.

From-SVN: r114854

18 years agotree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
Eric Botcazou [Wed, 21 Jun 2006 15:09:36 +0000 (15:09 +0000)]
tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.

* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
(find_interesting_uses_address): Punt if above function returns true.

From-SVN: r114851

18 years agoconfigure: Regenerated.
Richard Guenther [Wed, 21 Jun 2006 11:48:04 +0000 (11:48 +0000)]
configure: Regenerated.

2006-06-21  Richard Guenther  <rguenther@suse.de>

        * configure: Regenerated.

From-SVN: r114849

18 years agomips.c (function_arg): Where one part of a complex argument is in registers and the...
Joseph Myers [Wed, 21 Jun 2006 10:36:53 +0000 (11:36 +0100)]
mips.c (function_arg): Where one part of a complex argument is in registers and the other part in the...

* config/mips/mips.c (function_arg): Where one part of a
complex argument is in registers and the other part in the stack,
return a REG not a PARALLEL.

testsuite:
* gcc.c-torture/execute/complex-7.c: New.

From-SVN: r114847

18 years agoacinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): When cross-compiling, put headers in...
Mark Mitchell [Wed, 21 Jun 2006 09:16:03 +0000 (09:16 +0000)]
acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): When cross-compiling, put headers in $prefix/$target/include/c++.

* acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): When
cross-compiling, put headers in $prefix/$target/include/c++.
* configure: Regenerated.

* configure.ac: Set gcc_gxx_include_dir to $target/include/c++
when cross-compiling.  Do not substitute libstdcxx_incdir.
* configure: Regenerated.

From-SVN: r114845

18 years agocritical.c (GOMP_critical_name_start): Fix *pptr initialization when gomp_mutex_t...
Jakub Jelinek [Wed, 21 Jun 2006 08:59:44 +0000 (10:59 +0200)]
critical.c (GOMP_critical_name_start): Fix *pptr initialization when gomp_mutex_t is larger than pointer and...

* critical.c (GOMP_critical_name_start): Fix *pptr initialization
when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
defined.

From-SVN: r114843

18 years agovarasm.c (mergeable_string_section): Check for embedded NULs and NUL termination...
Jakub Jelinek [Wed, 21 Jun 2006 08:58:44 +0000 (10:58 +0200)]
varasm.c (mergeable_string_section): Check for embedded NULs and NUL termination in the first int_size_in_bytes...

* varasm.c (mergeable_string_section): Check for embedded NULs and
NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
rather than TREE_STRING_LENGTH bytes.

* gcc.dg/merge-all-constants-1.c: New test.

From-SVN: r114842

18 years agoggc-page.c (extra_order_size_table): Add var_ann_d, tree_ssa_name, bitmap_element...
Richard Guenther [Wed, 21 Jun 2006 08:25:33 +0000 (08:25 +0000)]
ggc-page.c (extra_order_size_table): Add var_ann_d, tree_ssa_name, bitmap_element and phi_node with 4 arguments sizes.

2006-06-21  Richard Guenther  <rguenther@suse.de>

* ggc-page.c (extra_order_size_table): Add var_ann_d,
tree_ssa_name, bitmap_element and phi_node with 4 arguments
sizes.

From-SVN: r114841

18 years agotree-ssa-loop-niter.c (simplify_using_initial_conditions): Limit iteration over the...
Richard Guenther [Wed, 21 Jun 2006 08:11:28 +0000 (08:11 +0000)]
tree-ssa-loop-niter.c (simplify_using_initial_conditions): Limit iteration over the dominators.

2006-06-21  Richrad Guenther  <rguenther@suse.de>

* tree-ssa-loop-niter.c (simplify_using_initial_conditions):
Limit iteration over the dominators.

From-SVN: r114840

18 years agoDaily bump.
GCC Administrator [Wed, 21 Jun 2006 00:17:50 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r114837

18 years agoiris6.h (LIB_SPEC): Add support for -pthread.
Roger Sayle [Tue, 20 Jun 2006 23:54:05 +0000 (23:54 +0000)]
iris6.h (LIB_SPEC): Add support for -pthread.

* config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
(SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.

From-SVN: r114833

18 years agore PR c++/28113 (vectors initialized in ctors, not at compile time, cause altivec...
Janis Johnson [Tue, 20 Jun 2006 23:33:58 +0000 (23:33 +0000)]
re PR c++/28113 (vectors initialized in ctors, not at  compile time, cause altivec-3.C failure)

PR c++/28113
* g++.dg/ext/altivec-3.C: Remove cast from vector initializers.

From-SVN: r114832

18 years agonatSystemProperties.cc (insertSystemProperties): Bump "java.class.version" to 48.0.
Bryce McKinlay [Tue, 20 Jun 2006 21:28:30 +0000 (21:28 +0000)]
natSystemProperties.cc (insertSystemProperties): Bump "java.class.version" to 48.0.

2006-06-20  Bryce McKinlay  <mckinlay@redhat.com>

        * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
        Bump "java.class.version" to 48.0.

From-SVN: r114831

18 years agorandom.tcc (struct _Private::_Mod_w<>, [...]): Remove.
Paolo Carlini [Tue, 20 Jun 2006 19:41:51 +0000 (19:41 +0000)]
random.tcc (struct _Private::_Mod_w<>, [...]): Remove.

2006-06-20  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/random.tcc (struct _Private::_Mod_w<>,
_Private::__mod_w<>): Remove.
(struct _Private::_Shift<>): New.
(struct _Private::_Max_w<>): Rename to _Max, use the latter.
(mersenne_twister<>::seed(unsigned long), seed(_Gen&, false_type),
max()): Adjust.

From-SVN: r114826

18 years agoMakefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR to "$(dbexecdir)".
Thomas Fitzsimmons [Tue, 20 Jun 2006 19:25:32 +0000 (19:25 +0000)]
Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR to "$(dbexecdir)".

2006-06-20  Thomas Fitzsimmons  <fitzsim@redhat.com>

* Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR to
"$(dbexecdir)".
Build libjvm.la.
* Makefile.in: Regenerate.
* jni.cc (the_vm): Rename and export as ...
(_Jv_the_vm): New exported symbol.
(_Jv_JNI_AttachCurrentThread): Export.
(_Jv_JNI_DestroyJavaVM): Replace the_vm references with _Jv_the_vm
references.
(_Jv_GetJavaVM): Likewise.
(JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
JNI_GetCreatedJavaVMs): Move to ...
* jni-libjvm.cc: New file.

From-SVN: r114824

18 years agosimplify.c (gfc_simplify_rrspacing): Initialize and clear mpfr_t variable.
Steven G. Kargl [Tue, 20 Jun 2006 17:49:41 +0000 (17:49 +0000)]
simplify.c (gfc_simplify_rrspacing): Initialize and clear mpfr_t variable.

2006-06-20  Steven G. Kargl  <kargls@comcast.net>

        * simplify.c (gfc_simplify_rrspacing): Initialize and clear mpfr_t
        variable.

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

From-SVN: r114821

18 years agoBackport Windows 9x/ME VirtualQuery() fix from GC 6.7.
Ranjit Mathew [Tue, 20 Jun 2006 17:10:19 +0000 (17:10 +0000)]
Backport Windows 9x/ME VirtualQuery() fix from GC 6.7.

* os_dep.c (GC_wnt): Define.
(GC_init_win32): Set GC_wnt.
* dyn_load.c (GC_register_dynamic_libraries): Consider MEM_PRIVATE
sections also on Windows 9x/ME.

From-SVN: r114818

18 years agoalloc-pool.h (free_alloc_pool_if_empty): Prototype new function.
Richard Guenther [Tue, 20 Jun 2006 16:19:29 +0000 (16:19 +0000)]
alloc-pool.h (free_alloc_pool_if_empty): Prototype new function.

2006-06-20  Richard Guenther  <rguenther@suse.de>
Michael Matz  <matz@suse.de>

* alloc-pool.h (free_alloc_pool_if_empty): Prototype new
function.
* alloc-pool.c (free_alloc_pool_if_empty): New function.
* et-forest.h (et_free_pools): Prototype new function.
* et-forest.c (et_free_tree_force): Free parent occurrence.
(et_free_pools): New function.
* dominance.c (free_dominance_info): Free et-forest alloc
pools.

Co-Authored-By: Michael Matz <matz@suse.de>
From-SVN: r114817

18 years agoexpr.c (expand_expr_real_1): For vector constants with integer modes...
Roger Sayle [Tue, 20 Jun 2006 15:02:05 +0000 (15:02 +0000)]
expr.c (expand_expr_real_1): For vector constants with integer modes...

* expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
integer modes, attempt to directly construct an integer constant.

* fold-const.c (native_encode_vector): Determine the size of each
element from the vector type instead of the first vector element.

* tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
if all of its elements/components are constant.
(build_constructor_from_list): Likewise.

From-SVN: r114815

18 years agoeh_arm.cc (__cxa_begin_cleanup): Always return 'true'.
Vladimir Prus [Tue, 20 Jun 2006 14:08:31 +0000 (14:08 +0000)]
eh_arm.cc (__cxa_begin_cleanup): Always return 'true'.

2006-06-20  Vladimir Prus  <vladimir@codesourcery.com>

libstdc++/
* libsupc++/eh_arm.cc (__cxa_begin_cleanup): Always return 'true'.

From-SVN: r114812

18 years agore PR c++/28052 (ICE on invalid bitfield)
Volker Reichelt [Tue, 20 Jun 2006 13:02:47 +0000 (13:02 +0000)]
re PR c++/28052 (ICE on invalid bitfield)

PR c++/28052
* init.c (push_base_cleanups): Skip members with invalid types.
* typeck.c (build_class_member_access_expr): Robustify.

* g++.dg/other/bitfield2.C: New test.

From-SVN: r114811

18 years agore PR tree-optimization/27331 (segfault in fold_convert with -ftree-vectorize)
Zdenek Dvorak [Tue, 20 Jun 2006 10:26:45 +0000 (10:26 +0000)]
re PR tree-optimization/27331 (segfault in fold_convert with -ftree-vectorize)

PR tree-optimization/27331
* tree-data-ref.c (free_data_ref): New function.
(create_data_ref): Fail if the data reference has unknown access
function.
(free_data_refs): Use free_data_ref.

* gcc.dg/pr27331.c: New test.

From-SVN: r114810

18 years agore PR libgomp/26175 (In gcc-4.2.0 libgomp/.../powerpc/futex.h SYS_futex undefined)
Jakub Jelinek [Tue, 20 Jun 2006 09:55:42 +0000 (11:55 +0200)]
re PR libgomp/26175 (In gcc-4.2.0 libgomp/.../powerpc/futex.h SYS_futex undefined)

PR libgomp/26175
PR libgomp/26477
* configure.ac: If neither --enable-linux-futex nor
--disable-linux-futex is passed, determine the default by checking
for compiling and/or running against NPTL.  With --enable-linux-futex,
check if SYS_gettid and SYS_futex are defined.
* configure: Rebuilt.

From-SVN: r114809

18 years agore PR bootstrap/28072 (target-boehm-gc is being build for targets that do not support it)
David Ayers [Tue, 20 Jun 2006 08:45:08 +0000 (10:45 +0200)]
re PR bootstrap/28072 (target-boehm-gc is being build for targets that do not support it)

2006-06-20  David Ayers  <d.ayers@inode.at>

PR bootstrap/28072
* configure.in: Add target-boehm-gc to noconfigdirs depending on
whether target-libjava is being configured instead of whether the
java front end is enabled.
* configure: Regenerate.

From-SVN: r114808

18 years agore PR ada/18692 (Ada should have a dg testsuite)
James A. Morrison [Tue, 20 Jun 2006 06:20:37 +0000 (06:20 +0000)]
re PR ada/18692 (Ada should have a dg testsuite)

PR ada/18692
* lib/gnat.exp: New file.
* lib/gnat-dg.exp: Likewise.
* gnat.dg: New directory.
* gnat.dg/dg.exp: New driver.
* gnat.dg/specs: New directory.
* gnat.dg/specs/specs.exp: New driver.
* gnat.dg/style: New directory.
* gnat.dg/style/style.exp: New driver.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
From-SVN: r114805

18 years agore PR ada/18692 (Ada should have a dg testsuite)
James A. Morrison [Tue, 20 Jun 2006 06:06:50 +0000 (06:06 +0000)]
re PR ada/18692 (Ada should have a dg testsuite)

PR ada/18692
* Make-lang.in: Add check-gnat to lang_checks.  Rename existing
check-gnat into check-acats.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
From-SVN: r114804

18 years agore PR fortran/25049 (TRANSPOSE not allowed in initialisation expression)
Paul Thomas [Tue, 20 Jun 2006 04:30:48 +0000 (04:30 +0000)]
re PR fortran/25049 (TRANSPOSE not allowed in initialisation expression)

2006-06-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/25049
PR fortran/25050
* check.c (non_init_transformational): New function.
(find_substring_ref): New function to signal use of disallowed
transformational intrinsic in an initialization expression.
(gfc_check_all_any): Call previous if initialization expr.
(gfc_check_count): The same.
(gfc_check_cshift): The same.
(gfc_check_dot_product): The same.
(gfc_check_eoshift): The same.
(gfc_check_minloc_maxloc): The same.
(gfc_check_minval_maxval): The same.
(gfc_check_gfc_check_product_sum): The same.
(gfc_check_pack): The same.
(gfc_check_spread): The same.
(gfc_check_transpose): The same.
(gfc_check_unpack): The same.

PR fortran/18769
*intrinsic.c (add_functions): Add gfc_simplify_transfer.
*intrinsic.h : Add prototype for gfc_simplify_transfer.
*simplify.c (gfc_simplify_transfer) : New function to act as
placeholder for eventual implementation.  Emit error for now.

PR fortran/16206
* expr.c (find_array_element): Eliminate condition on length of
offset. Add bounds checking. Rearrange exit. Return try and
put gfc_constructor result as an argument.
(find_array_section): New function.
(find_substring_ref): New function.
(simplify_const_ref): Add calls to previous.
(simplify_parameter_variable): Return on NULL expr.
(gfc_simplify_expr): Only call gfc_expand_constructor for full
arrays.

PR fortran/20876
* match.c (gfc_match_forall): Add missing locus to gfc_code.

2006-06-20  Paul Thomas  <pault@gcc.gnu.org>

PR libfortran/28005
* m4/matmul.m4: aystride = 1 does not uniquely detect the
presence of a temporary transpose; an array element in the
first dimension produces the same signature.  Detect this
using the rank of a and add specific code.
* generated/matmul_r4.c: Regenerate.
* generated/matmul_r8.c: Regenerate.
* generated/matmul_r10.c: Regenerate.
* generated/matmul_r16.c: Regenerate.
* generated/matmul_c4.c: Regenerate.
* generated/matmul_c8.c: Regenerate.
* generated/matmul_c10.c: Regenerate.
* generated/matmul_c16.c: Regenerate.
* generated/matmul_i4.c: Regenerate.
* generated/matmul_i8.c: Regenerate.
* generated/matmul_i16.c: Regenerate.

2006-06-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/16206
* gfortran.dg/array_initializer_1.f90: New test.

PR fortran/28005
* gfortran.dg/matmul_3.f90: New test.

From-SVN: r114802

18 years agore PR middle-end/28075 (inliner introduces unnecessary type conversions)
Andrew Pinski [Tue, 20 Jun 2006 02:09:57 +0000 (19:09 -0700)]
re PR middle-end/28075 (inliner introduces unnecessary type conversions)

2006-06-19  Andrew Pinski  <pinskia@gmail.com>

        PR middle-end/28075
        * tree-inline.c (setup_one_parameter): Strip useless
        type conversion before adding it to the IR.
        (declare_return_variable): Likewise.

2006-06-19  Andrew Pinski  <pinskia@gmail.com>

        PR middle-end/28075
        * gcc.dg/tree-ssa/inline-1.c: New test.

From-SVN: r114801

18 years agore PR c/27149 (English in warning not grammatical: "the address of x, will always...
Martin Michlmayr [Tue, 20 Jun 2006 00:22:21 +0000 (00:22 +0000)]
re PR c/27149 (English in warning not grammatical: "the address of x, will always evaluate")

PR c/27149
* c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.

From-SVN: r114800

18 years agoDaily bump.
GCC Administrator [Tue, 20 Jun 2006 00:17:09 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r114798

18 years ago[should have been in previous commit]
Anatoly Sokolov [Mon, 19 Jun 2006 21:53:04 +0000 (21:53 +0000)]
[should have been in previous commit]

2006-06-19  Anatoly Sokolov <aesok@post.ru>

* gcc.dg/pr18241-1.c: Use __SIZE_TYPE__ instead of unsigned long
in malloc prototype; remove XFAIL.
* gcc.dg/pr18241-2.c: Ditto.
* gcc.dg/20050321-1.c: Use __SIZE_TYPE__ instead of unsigned long
in memset prototype; remove XFAIL.
* gcc.dg/tree-ssa/pr23382.c: Ditto.

From-SVN: r114790

18 years agopr18241-1.c: Use __SIZE_TYPE__ instead of unsigned long in malloc prototype; remove...
Anatoly Sokolov [Mon, 19 Jun 2006 21:51:24 +0000 (21:51 +0000)]
pr18241-1.c: Use __SIZE_TYPE__ instead of unsigned long in malloc prototype; remove XFAIL.

2006-06-19  Anatoly Sokolov <aesok@post.ru>

* gcc.dg/pr18241-1.c: Use __SIZE_TYPE__ instead of unsigned long
in malloc prototype; remove XFAIL.
* gcc.dg/pr18241-2.c: Ditto.
* gcc.dg/20050321-1.c: Use __SIZE_TYPE__ instead of unsigned long
in memset prototype; remove XFAIL.
* gcc.dg/tree-ssa/pr23382.c: Ditto.

From-SVN: r114789

18 years ago* pt.c (instantiate_template): Fix typo in comment.
Mark Mitchell [Mon, 19 Jun 2006 21:40:05 +0000 (21:40 +0000)]
* pt.c (instantiate_template): Fix typo in comment.

From-SVN: r114788

18 years agotree.c (variably_modified_type_p): VM arguments don't make the type a VM type.
Mike Stump [Mon, 19 Jun 2006 21:13:13 +0000 (21:13 +0000)]
tree.c (variably_modified_type_p): VM arguments don't make the type a VM type.

* tree.c (variably_modified_type_p): VM arguments don't make the
type a VM type.

testsuite:
* gcc.dg/vla-8.c: Add.

From-SVN: r114787

18 years agore PR tree-optimization/27090 (FRE does not look past previous type casts)
Richard Guenther [Mon, 19 Jun 2006 20:10:02 +0000 (20:10 +0000)]
re PR tree-optimization/27090 (FRE does not look past previous type casts)

2006-06-19  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/27090
* g++.dg/tree-ssa/pr27090.C: New testcase.

From-SVN: r114786

18 years agoparser.c (CP_LEXER_BUFFER_SIZE): Adjust to assure near power-of-two token vector...
Richard Guenther [Mon, 19 Jun 2006 20:08:28 +0000 (20:08 +0000)]
parser.c (CP_LEXER_BUFFER_SIZE): Adjust to assure near power-of-two token vector size.

2006-06-19  Richard Guenther  <rguenther@suse.de>

        * parser.c (CP_LEXER_BUFFER_SIZE): Adjust to assure near
        power-of-two token vector size.

From-SVN: r114785

18 years agotree-ssa-pre.c (try_combine_conversion): Strip useless type conversions after folding.
Richard Guenther [Mon, 19 Jun 2006 19:48:04 +0000 (19:48 +0000)]
tree-ssa-pre.c (try_combine_conversion): Strip useless type conversions after folding.

2006-06-19  Richard Guenther  <rguenther@suse.de>

* tree-ssa-pre.c (try_combine_conversion): Strip useless
type conversions after folding.

From-SVN: r114784

18 years agoggc-page.c (extra_order_size_tab): Add entries with size of struct function and basic...
Richard Guenther [Mon, 19 Jun 2006 18:57:28 +0000 (18:57 +0000)]
ggc-page.c (extra_order_size_tab): Add entries with size of struct function and basic_block.

2006-06-19  Richard Guenther  <rguenther@suse.de>

* ggc-page.c (extra_order_size_tab): Add entries with
size of struct function and basic_block.
(size_lookup): Extend to cover sizes up to 511.
(ggc_alloc_stat): Adjust user.
(ggc_pch_count_object): Likewise.
(ggc_pch_alloc_object): Likewise.
(ggc_pch_write_object): Likewise.

From-SVN: r114783

18 years agotree-ssa-loop-niter.c (implies_ge_p): New function.
Zdenek Dvorak [Mon, 19 Jun 2006 18:32:20 +0000 (20:32 +0200)]
tree-ssa-loop-niter.c (implies_ge_p): New function.

* tree-ssa-loop-niter.c (implies_ge_p): New function.
(derive_constant_upper_bound): Handle OP0 - CST in unsigned types
correctly.

From-SVN: r114782

18 years agore PR java/27908 (VMSecureRandom generateSeed infinite loop? (Regression))
Andrew Haley [Mon, 19 Jun 2006 17:39:16 +0000 (17:39 +0000)]
re PR java/27908 (VMSecureRandom generateSeed infinite loop? (Regression))

2006-06-19  Andrew Haley  <aph@redhat.com>

        * testsuite/libjava.lang/PR27908.out: New.
        * testsuite/libjava.lang/PR27908.java: New.

From-SVN: r114779

18 years agore PR java/1305 ([JSR133] GCJ ignores volatile modifier)
Andrew Haley [Mon, 19 Jun 2006 17:38:08 +0000 (17:38 +0000)]
re PR java/1305 ([JSR133] GCJ ignores volatile modifier)

2006-06-19  Andrew Haley  <aph@redhat.com>

        PR java/1305
        PR java/27908
        * expr.c (java_modify_addr_for_volatile): New function.
        (expand_java_field_op): Handle volatile fields.
        * java-gimplify.c (java_gimplify_component_ref): Call
        java_modify_addr_for_volatile to give the field_ref the correct
        volatile type.
        (java_gimplify_modify_expr): Likewise.
        * java-tree.h (java_modify_addr_for_volatile): New decl.

From-SVN: r114778

18 years agorandom (xor_combine<>::operator<<): Fix typo.
Paolo Carlini [Mon, 19 Jun 2006 16:03:07 +0000 (16:03 +0000)]
random (xor_combine<>::operator<<): Fix typo.

2006-06-19  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/random (xor_combine<>::operator<<): Fix typo.

* include/tr1/random (bernoulli_distribution::min(),
bernoulli_distribution::max(), geometric_distribution<>::min(),
geometric_distribution<>::max()): Remove.

* include/tr1/random (geometric_distribution<>::operator()):
Simplify formula.

* include/tr1/random: Minor cosmetic changes.

* testsuite/tr1/5_numerical_facilities/random/discard_block/
operators/equal.cc: New.
* testsuite/tr1/5_numerical_facilities/random/discard_block/
operators/not_equal.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/discard_block/
operators/serialize.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/xor_combine/
operators/equal.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/xor_combine/
operators/not_equal.cc: Likewise.
* testsuite/tr1/5_numerical_facilities/random/xor_combine/
operators/serialize.cc: Likewise.

From-SVN: r114777

18 years agolibgcc.S: Correct my wrong previous commit.
Denis Chertykov [Mon, 19 Jun 2006 15:04:27 +0000 (15:04 +0000)]
libgcc.S: Correct my wrong previous commit.

* config/avr/libgcc.S : Correct my wrong previous commit.

From-SVN: r114774

18 years agore PR target/27861 (ICE in expand_expr_real_1, at expr.c:6916)
Roger Sayle [Mon, 19 Jun 2006 14:57:17 +0000 (14:57 +0000)]
re PR target/27861 (ICE in expand_expr_real_1, at expr.c:6916)

PR target/27861
* expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
have stripped a SUBREG from the shift count, so we may need to
convert_to_mode back to the type's mode before calling make_tree.
Use new_amount instead of amount to avoid expanding a tree twice.

* gcc.dg/pr27861-1.c: New test case.

From-SVN: r114773

18 years agore PR middle-end/28045 (Bitfield, &&, and optimization => bad code generation)
Richard Guenther [Mon, 19 Jun 2006 14:48:47 +0000 (14:48 +0000)]
re PR middle-end/28045 (Bitfield, &&, and optimization => bad code generation)

2006-06-19  Richard Guenther  <rguenther@suse.de>

PR middle-end/28045
* fold-const.c (operand_equal_p): Check if the argument types
have the same precision before stripping NOPs.

* gcc.dg/torture/pr28045.c: New testcase.

From-SVN: r114772

18 years agore PR tree-optimization/27341 (ICE in in add_virtual_operand with complex types)
Daniel Berlin [Mon, 19 Jun 2006 14:33:46 +0000 (14:33 +0000)]
re PR tree-optimization/27341 (ICE  in in add_virtual_operand with complex types)

2006-06-19  Daniel Berlin  <dberlin@dberlin.org>

Fix PR tree-optimization/27341
* tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
statement we get.
* tree-complex.c (pass_lower_complex): Update SMT usage.

From-SVN: r114771

18 years agoposix-threads.h (_Jv_ThreadDebugSuspend): Declare.
Keith Seitz [Mon, 19 Jun 2006 14:10:02 +0000 (14:10 +0000)]
posix-threads.h (_Jv_ThreadDebugSuspend): Declare.

        * include/posix-threads.h (_Jv_ThreadDebugSuspend): Declare.
        (_Jv_ThreadDebugResume): Declare.
        (_Jv_ThreadDebugSuspendCount): Declare.
        * posix-threads.cc (_Jv_ThreadDebugSuspend): New function.
        (_Jv_ThreadDebugSuspendCount): New function.
        (_Jv_ThreadDebugResume): New function.

        * include/win32-threads.h (_Jv_ThreadDebugSuspend): Declare.
        (_Jv_ThreadDebugResume): Declare.
        (_Jv_ThreadDebugSuspendCount): Declare.
        * win32-threads.cc (_Jv_ThreadDebugSuspend): New function.
        (_Jv_ThreadDebugSuspendCount): New function.
        (_Jv_ThreadDebugResume): New function.

From-SVN: r114769

18 years agos390.md ("doloop_si64", [...]): Add a new alternative to the constraint strings.
Andreas Krebbel [Mon, 19 Jun 2006 08:01:56 +0000 (08:01 +0000)]
s390.md ("doloop_si64", [...]): Add a new alternative to the constraint strings.

2006-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>

* config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
Add a new alternative to the constraint strings. Add move of
operand 1 to 3 to the splitter definition.
("doloop_si_long"): Second contraint alternative removed.

From-SVN: r114767

18 years agore PR libgomp/27254 (FAIL: libgomp.fortran/reduction6.f90)
John David Anglin [Mon, 19 Jun 2006 03:07:54 +0000 (03:07 +0000)]
re PR libgomp/27254 (FAIL: libgomp.fortran/reduction6.f90)

PR libgomp/27254
* io/unit.c (get_internal_unit): Initialize and lock thread mutex
for internal units.

From-SVN: r114765

18 years agoDaily bump.
GCC Administrator [Mon, 19 Jun 2006 00:17:07 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r114763

18 years agoavr.h (avr_have_movw_lpmx_p): Declare.
Anatoly Sokolov [Sun, 18 Jun 2006 18:14:06 +0000 (22:14 +0400)]
avr.h (avr_have_movw_lpmx_p): Declare.

* config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
(TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
__AVR_HAVE_LPMX__.
(AVR_HAVE_MOVW) Define.
(ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
(ASM_SPEC): Add avr25.
(LINK_SPEC): Add avr25.
* config/avr/avr.c (avr_have_movw_lpmx_p): Add.
(base_arch_s): Add new member 'have_movw_lpmx'.
(avr_arch_types): Init 'have_movw_lpmx'.
(avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
(avr_override_options): Init 'avr_have_movw_lpmx_p'.
(output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
AVR_HAVE_MOVW.
(avr_file_start): Do not output '.arh' derective.
* config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
(__do_copy_data): Use __AVR_HAVE_LPMX__.
* config/avr/avr.md (mcu_enhanced): Delete.
(mcu_have_movw): Define.
(negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
(call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
* config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
(MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
attiny861 and at86rf401 devices.

From-SVN: r114758

18 years agore PR fortran/26801 (-fbounds-check generates segfault)
Francois-Xavier Coudert [Sun, 18 Jun 2006 17:36:47 +0000 (19:36 +0200)]
re PR fortran/26801 (-fbounds-check generates segfault)

PR fortran/26801

* trans-intrinsic.c (gfc_conv_associated): Use pre and post blocks
of the scalarization expression.

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

From-SVN: r114757

18 years agobfin.h (REG_CLASS_FROM_LETTER): Rename constraint 'B' to 'v', 'l' to 'u'.
Jie Zhang [Sun, 18 Jun 2006 10:30:23 +0000 (10:30 +0000)]
bfin.h (REG_CLASS_FROM_LETTER): Rename constraint 'B' to 'v', 'l' to 'u'.

* config/bfin/bfin.h (REG_CLASS_FROM_LETTER): Rename constraint 'B'
to 'v', 'l' to 'u'.
* config/bfin/bfin.md: Change comment accordingly.
(define_insn loop_end): Replace 'h' with 'v'.
(lsetup_with_autoinit): Replace 'l' with 'u'.
(lsetup_without_autoinit): Ditto.
* md.texi: Record this change.

From-SVN: r114756

18 years agobfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead of 4096.
Jie Zhang [Sun, 18 Jun 2006 10:09:59 +0000 (10:09 +0000)]
bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead of 4096.

* config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
of 4096.

From-SVN: r114755

18 years agoAdd PR reference to last ChangeLog entry.
Jerry DeLisle [Sun, 18 Jun 2006 06:44:29 +0000 (06:44 +0000)]
Add PR reference to last ChangeLog entry.

From-SVN: r114754

18 years agore PR fortran/19310 ([4.1 Only] unnecessary error for overflowing results)
Jerry DeLisle [Sun, 18 Jun 2006 06:42:26 +0000 (06:42 +0000)]
re PR fortran/19310 ([4.1 Only] unnecessary error for overflowing results)

2006-06-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/19310
PR fortran/19904
* gfortran.dg/real_const_3.f90: New test.

From-SVN: r114753

18 years agore PR fortran/19310 ([4.1 Only] unnecessary error for overflowing results)
Jerry DeLisle [Sun, 18 Jun 2006 06:36:45 +0000 (06:36 +0000)]
re PR fortran/19310 ([4.1 Only] unnecessary error for overflowing results)

2006-06-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/19310
* arith.c (gfc_range_check): Return ARITH_OK if -fno-range-check. Add
return of ARITH_NAN, ARITH_UNDERFLOW, and ARITH_OVERFLOW.
(gfc_arith_divide): If -fno-range-check allow mpfr to divide by zero.
* gfortran.h (gfc_option_t): Add new flag.
* invoke.texi: Document new flag.
* lang.opt: Add option -frange-check.
* options.c (gfc_init_options): Initialize new flag.
(gfc_handle_options): Set flag if invoked.
* simplify.c (range_check): Add error messages for
overflow, underflow, and other errors.
* trans-const.c (gfc_conv_mpfr_to_tree): Build NaN and Inf from mpfr
result.

From-SVN: r114752

18 years agoDaily bump.
GCC Administrator [Sun, 18 Jun 2006 00:17:21 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r114750

18 years agocpp.texi, [...] (@dircategory): Use "Software development" instead of "Programming"...
Karl Berry [Sat, 17 Jun 2006 23:25:16 +0000 (23:25 +0000)]
cpp.texi, [...] (@dircategory): Use "Software development" instead of "Programming"...

* doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
doc/gccint.texi, doc/install.texi (@dircategory): Use
"Software development" instead of "Programming", following
the Free Software Directory.

From-SVN: r114746

18 years agogcj.texi (@dircategory): Use "Software development" instead of "Programming"...
Karl Berry [Sat, 17 Jun 2006 23:23:27 +0000 (23:23 +0000)]
gcj.texi (@dircategory): Use "Software development" instead of "Programming"...

* gcj.texi (@dircategory): Use "Software development" instead
of "Programming", following the Free Software Directory.

From-SVN: r114745

18 years agogfortran.texi (@dircategory): Use "Software development" instead of "Programming"...
Karl Berry [Sat, 17 Jun 2006 23:22:05 +0000 (23:22 +0000)]
gfortran.texi (@dircategory): Use "Software development" instead of "Programming"...

* gfortran.texi (@dircategory): Use "Software development"
instead of "Programming", following the Free Software Directory.

From-SVN: r114744

18 years agotreelang.texi (@dircategory): Use "Software development" instead of "Programming"...
Karl Berry [Sat, 17 Jun 2006 23:21:37 +0000 (23:21 +0000)]
treelang.texi (@dircategory): Use "Software development" instead of "Programming"...

* treelang.texi (@dircategory): Use "Software development"
instead of "Programming", following the Free Software Directory.

From-SVN: r114743

18 years agognat-style.texi (@dircategory): Use "Software development" instead of "Programming"...
Karl Berry [Sat, 17 Jun 2006 23:20:52 +0000 (23:20 +0000)]
gnat-style.texi (@dircategory): Use "Software development" instead of "Programming"...

* gnat-style.texi (@dircategory): Use "Software development"
instead of "Programming", following the Free Software Directory.

From-SVN: r114742

18 years agoi386.c (legitimate_tls_address): Add tp after DTPOFF.
Alexandre Oliva [Sat, 17 Jun 2006 17:07:42 +0000 (17:07 +0000)]
i386.c (legitimate_tls_address): Add tp after DTPOFF.

* config/i386/i386.c (legitimate_tls_address)
<TARGET_GNU2_TLS>: Add tp after DTPOFF.
* config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
(*tls_dynamic_gnu2_combine_64): Likewise.

From-SVN: r114741

18 years agotwister_rand_gen.cc: Adapt to simply use tr1::mt19937.
Ami Tavory [Sat, 17 Jun 2006 10:06:41 +0000 (10:06 +0000)]
twister_rand_gen.cc: Adapt to simply use tr1::mt19937.

2006-06-17  Ami Tavory  <atavory@gmail.com>
    Paolo Carlini  <pcarlini@suse.de>

* testsuite/util/rng/twister_rand_gen.cc: Adapt to simply use
tr1::mt19937.
* testsuite/util/rng/twister_rand_gen.hpp: Likewise.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
From-SVN: r114740

18 years agore PR c++/28016 (emitting template constant)
Mark Mitchell [Sat, 17 Jun 2006 01:11:34 +0000 (01:11 +0000)]
re PR c++/28016 (emitting template constant)

PR c++/28016
* decl.c (cp_finsh_decl): Do not emit uninstantiated static data
members.
PR c++/28016
* g++.dg/template/static26.C: New test.

From-SVN: r114739

18 years agoDaily bump.
GCC Administrator [Sat, 17 Jun 2006 00:17:19 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r114737

18 years agore PR c++/27979 (conversion check confused by enum bitfields)
Mark Mitchell [Fri, 16 Jun 2006 23:12:08 +0000 (23:12 +0000)]
re PR c++/27979 (conversion check confused by enum bitfields)

PR c++/27979
* call.c (standard_conversion): Strip cv-qualifiers from bitfield
types.
PR c++/27979
* g++.dg/expr/bitfield2.C: New test.

From-SVN: r114733

18 years agohash_data_map_rand.cc: Revert accidental commit.
Paolo Carlini [Fri, 16 Jun 2006 23:09:38 +0000 (23:09 +0000)]
hash_data_map_rand.cc: Revert accidental commit.

2006-06-16  Paolo Carlini  <pcarlini@suse.de>

* testsuite/ext/pb_ds/regression/hash_data_map_rand.cc: Revert
accidental commit.
* testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/list_update_no_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Same.
* testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Same.
* testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc: Same.

From-SVN: r114732

18 years agorandom (uniform_real<>::uniform_real(_RealType, _RealType)): Implement.
Paolo Carlini [Fri, 16 Jun 2006 23:04:51 +0000 (23:04 +0000)]
random (uniform_real<>::uniform_real(_RealType, _RealType)): Implement.

2006-06-16  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/random (uniform_real<>::uniform_real(_RealType,
_RealType)): Implement.
(uniform_real<>::min()): Likewise.
(uniform_real<>::max()): Likewise.
(uniform_real<>::reset()): Likewise.

* include/tr1/random (class uniform_real<>): Minor cosmetic tweaks.

From-SVN: r114730

18 years ago2006-06-16 Paolo Carlini <pcarlini@suse.de>
Paolo Carlini [Fri, 16 Jun 2006 22:14:33 +0000 (22:14 +0000)]
2006-06-16  Paolo Carlini  <pcarlini@suse.de>

* Fix ChangeLog typo.

From-SVN: r114729

18 years agolocale_facets.tcc (time_get<>::_M_extract_via_format): Ignore the value of the __err...
Paolo Carlini [Fri, 16 Jun 2006 22:13:13 +0000 (22:13 +0000)]
locale_facets.tcc (time_get<>::_M_extract_via_format): Ignore the value of the __err argument.

2006-06-17  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format):
Ignore the value of the __err argument.
(time_get<>::do_get_weekday): Likewise.
(time_get<>::do_get_monthname): Likewise.
* testsuite/22_locale/time_get/get_year/wchar_t/5.cc: New.
* testsuite/22_locale/time_get/get_year/char/5.cc: Likewise.
* testsuite/22_locale/time_get/get_monthname/wchar_t/5.cc: Likewise.
* testsuite/22_locale/time_get/get_monthname/char/5.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/wchar_t/5.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/char/5.cc: Likewise.
* testsuite/22_locale/time_get/get_date/wchar_t/5.cc: Likewise.
* testsuite/22_locale/time_get/get_date/char/5.cc: Likewise.
* testsuite/22_locale/time_get/get_time/wchar_t/5.cc: Likewise.
* testsuite/22_locale/time_get/get_time/char/5.cc: Likewise.

From-SVN: r114728

18 years agore PR c++/27884 (bogus error: invalid use of 'register' in linkage specification)
Mark Mitchell [Fri, 16 Jun 2006 18:45:50 +0000 (18:45 +0000)]
re PR c++/27884 (bogus error: invalid use of 'register' in linkage specification)

PR c++/27884
* decl.c (have_extern_spec): Remove.
(start_decl): Do not check have_extern_spec.
(start_function): Likewise.
* cp-tree.h (have_extern_spec): Remove.
* parser.c (cp_parser_linkage_specification): Don't set
have_extern_spec.
(cp_parser_init_declarator): Likewise.
(cp_parser_parameter_declaration): Do not treat parameters as
within the scope of an unbraced linkage specification.
PR c++/27884
* g++.dg/parse/linkage2.C: New test

From-SVN: r114727

18 years agore PR target/27540 (libgomp fails to configure on IRIX 5.3)
Rainer Orth [Fri, 16 Jun 2006 17:53:03 +0000 (17:53 +0000)]
re PR target/27540 (libgomp fails to configure on IRIX 5.3)

PR target/27540
* configure.in: Only enable libgomp on IRIX 6.
* configure: Regenerate.

From-SVN: r114726

18 years agore PR fortran/27965 (invalid "Array bound mismatch" runtime error)
Francois-Xavier Coudert [Fri, 16 Jun 2006 17:03:43 +0000 (19:03 +0200)]
re PR fortran/27965 (invalid "Array bound mismatch" runtime error)

PR fortran/27965
* trans-array.c (gfc_conv_ss_startstride): Correct the runtime
conditions for bounds-checking. Check for nonzero stride.
Don't check the last dimension of assumed-size arrays. Fix the
dimension displayed in the error message.

From-SVN: r114724

18 years agore PR middle-end/27116 (Incorrect integer division (wrong sign).)
Richard Guenther [Fri, 16 Jun 2006 14:56:34 +0000 (14:56 +0000)]
re PR middle-end/27116 (Incorrect integer division (wrong sign).)

2006-06-16  Richard Guenther  <rguenther@suse.de>

PR middle-end/27116
* fold-const.c (negate_expr_p): Do not introduce undefined
overflow in negating INTEGER_CSTs.
(fold_negate_expr): Rename from negate_expr.  Revert last
change for folding BIT_NOT_EXPR.  Change semantics to
return NULL_TREE for non-simplified negations.  Do not
strip type conversions and unify type handling.
(negate_expr): New function, wrap around fold_negate_expr
but ensure building a tree always.  Strip type conversions
here, fold to result type.
(fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.

* gcc.dg/pr15785-1.c: Revert last change.
* gcc.dg/torture/pr27116-2.c: New testcase.

From-SVN: r114723

18 years agore PR middle-end/27802 (ICE with longjmp)
Roger Sayle [Fri, 16 Jun 2006 13:21:45 +0000 (13:21 +0000)]
re PR middle-end/27802 (ICE with longjmp)

PR middle-end/27802
* reg-stack.c (subst_stack_regs): Handle noreturn function calls
that (would) return their results in stack registers.

* gcc.dg/pr27802-1.c: New test case.

From-SVN: r114721

18 years agoclass.c (make_class_data): When using flag_indirect_classes, don't initialize the...
Andrew Haley [Fri, 16 Jun 2006 08:56:29 +0000 (08:56 +0000)]
class.c (make_class_data): When using flag_indirect_classes, don't initialize the vtable of Class instances.

2006-06-16  Andrew Haley  <aph@redhat.com>

        * class.c (make_class_data): When using flag_indirect_classes,
        don't initialize the vtable of Class instances.

2006-06-16  Andrew Haley  <aph@redhat.com>

        * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Don't
        copy the whole Class instance from the initializer: instead, copy
        everything but the first word (the vtable pointer).
        Change prototype to (const char* class_initializer).
        (_Jv_RegisterNewClasses): Change prototype to (const char**).
        * java/lang/Class.h (_Jv_RegisterNewClasses): Change prototype to
        (const char**).

From-SVN: r114714

18 years agofold-const.c (fold_truthop): Only return new tree node if we canonicalized something.
Michael Matz [Fri, 16 Jun 2006 08:34:39 +0000 (08:34 +0000)]
fold-const.c (fold_truthop): Only return new tree node if we canonicalized something.

2006-06-16  Michael Matz  <matz@suse.de>
Richard Guenther  <rguenther@suse.de>

* fold-const.c (fold_truthop): Only return new tree node if
we canonicalized something.

Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r114713

18 years agofunction.h (enum function_frequency): Move declaration out of struct function.
Richard Guenther [Fri, 16 Jun 2006 08:33:09 +0000 (08:33 +0000)]
function.h (enum function_frequency): Move declaration out of struct function.

2006-06-16  Richard Guenther  <rguenther@suse.de>

* function.h (enum function_frequency): Move declaration
out of struct function.
(struct function): Move bool fields and the enum to the bitfield
section.  Reorder elements to avoid padding.  Remove unused
fields left over from the RTL inliner removal.
* function.c (free_after_compilation): Do not zero removed fields.
* Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
(ipa-type-escape.o): Likewise.

From-SVN: r114712

18 years agocgraph.h (struct cgraph_local_info): Turn bool elements into a bitfield.
Richard Guenther [Fri, 16 Jun 2006 08:30:34 +0000 (08:30 +0000)]
cgraph.h (struct cgraph_local_info): Turn bool elements into a bitfield.

2006-06-16  Richard Guenther  <rguenther@suse.de>

* cgraph.h (struct cgraph_local_info): Turn bool elements
into a bitfield.
(struct cgraph_node): Likewise.
(struct cgraph_varpool_node): Likewise.

From-SVN: r114711

18 years agotype_utils.hpp (numeric_traits): Add, const expression interface to std::numeric_limi...
Benjamin Kosnik [Fri, 16 Jun 2006 06:32:22 +0000 (06:32 +0000)]
type_utils.hpp (numeric_traits): Add, const expression interface to std::numeric_limits::min and max functions.

2006-06-15  Benjamin Kosnik  <bkoz@redhat.com>

* include/ext/pb_ds/detail/type_utils.hpp (numeric_traits): Add,
const expression interface to std::numeric_limits::min and max
functions.
* include/ext/pb_ds/trie_policy.hpp (string_trie_e_access_traits):
Use it.

* include/ext/pb_ds/detail/resize_policy/
hash_load_check_resize_trigger_imp.hpp: Format.
* include/ext/pb_ds/detail/pat_trie_/internal_node.hpp: Same.

From-SVN: r114706

18 years agore PR c++/27689 (function template incorrectly selected as candidate)
Mark Mitchell [Fri, 16 Jun 2006 06:08:49 +0000 (06:08 +0000)]
re PR c++/27689 (function template incorrectly selected as candidate)

PR c++/27689
* cp-tree.h (CLASSTYPE_SPECIALIZATION_OF_PRIMARY_TEMPLATE_P): New
macro.
* pt.c (unify): Use it.
PR c++/27689
* g++.dg/template/ttp18.C: New test.
* g++.dg/template/ttp19.C: Likewise.

From-SVN: r114703

18 years agore PR c++/27666 (ICE with volatile in conditional expression)
Mark Mitchell [Fri, 16 Jun 2006 02:33:35 +0000 (02:33 +0000)]
re PR c++/27666 (ICE with volatile in conditional expression)

PR c++/27666
* call.c (build_conditional_expr): Robustify.
PR c++/27666
* g++.dg/expr/cond9.C: New test.

From-SVN: r114702

18 years agore PR c++/27640 (segfault, related to constructor instantiation and virtual base...
Mark Mitchell [Fri, 16 Jun 2006 02:09:10 +0000 (02:09 +0000)]
re PR c++/27640 (segfault, related to constructor instantiation and virtual base case and templates and new operator)

PR c++/27640
* pt.c (instantiate_template): Set processing_template_decl to
zero while performing substitutions.
PR c++/27640
* g++.dg/template/ctor7.C: New test.

From-SVN: r114701

18 years agoDaily bump.
GCC Administrator [Fri, 16 Jun 2006 00:17:23 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r114699

18 years agorandom.tcc (mersenne_twister<>::operator()()): Reload the last position of the _M_x...
Paolo Carlini [Fri, 16 Jun 2006 00:04:43 +0000 (00:04 +0000)]
random.tcc (mersenne_twister<>::operator()()): Reload the last position of the _M_x vector too.

2006-06-15  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/random.tcc (mersenne_twister<>::operator()()):
Reload the last position of the _M_x vector too.

From-SVN: r114695

18 years ago* gcc.dg/vmx/pr27842.c: Remove dg-do directive; use default.
Janis Johnson [Thu, 15 Jun 2006 21:32:20 +0000 (21:32 +0000)]
* gcc.dg/vmx/pr27842.c: Remove dg-do directive; use default.

From-SVN: r114690

18 years agofold-const.c (fold_truth_not_expr): Rename from invert_truthvalue.
Richard Guenther [Thu, 15 Jun 2006 18:55:18 +0000 (18:55 +0000)]
fold-const.c (fold_truth_not_expr): Rename from invert_truthvalue.

2006-06-15  Richard Guenther  <rguenther@suse.de>

* fold-const.c (fold_truth_not_expr): Rename from
invert_truthvalue.  Give it fold_* semantics to avoid
generating garbage.
(invert_truthvalue): New function.  Wrapper around
fold_truth_not_expr.
(optimize_minmax_comparison): Avoid creating garbage.
(fold_unary): Use fold_truth_not_expr for folding
TRUTH_NOT_EXPR.
(fold_ternary): Replace uses of invert_truthvalue with
fold_truth_not_expr where applicable.
* tree.h (fold_truth_not_expr): Prototype.

From-SVN: r114683

18 years agoMakefile.am: Do not recurse into tools directory.
Thomas Fitzsimmons [Thu, 15 Jun 2006 18:42:46 +0000 (18:42 +0000)]
Makefile.am: Do not recurse into tools directory.

2006-06-15  Thomas Fitzsimmons  <fitzsim@redhat.com>

* classpath/Makefile.am: Do not recurse into tools directory.
* classpath/Makefile.in: Regenerate.

From-SVN: r114682

18 years agore PR middle-end/27781 (weak-attribute over-optimisation)
Richard Guenther [Thu, 15 Jun 2006 17:23:41 +0000 (17:23 +0000)]
re PR middle-end/27781 (weak-attribute over-optimisation)

2006-06-16  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/27781
* Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
* ipa-pure-const.c (target.h): Include.
(analyze_function): Do not analyze functions that do not
        bind locally.

* gcc.dg/tree-ssa/pr27781.c: New testcase.

From-SVN: r114681

18 years ago_Pragma6.c: Fix comment.
Joern Rennecke [Thu, 15 Jun 2006 16:36:21 +0000 (17:36 +0100)]
_Pragma6.c: Fix comment.

* gcc.dg/cpp/_Pragma6.c: Fix comment.
Test is not supported on sh*-unknown-elf nor sh*-superh-elf.
* g++.dg/cpp/_Pragma1.C: Likewise.

From-SVN: r114680

18 years agore PR middle-end/27793 (num_ssa_names inconsistent or immediate use iterator wrong)
Andrew MacLeod [Thu, 15 Jun 2006 13:30:17 +0000 (13:30 +0000)]
re PR middle-end/27793 (num_ssa_names inconsistent or immediate use iterator wrong)

2006-06-15  Andrew MacLeod  <amacleod@redhat.com>

PR middle-end/27793
* tree-dfa.c (referenced_vars_dup_list): Remove.
(find_referenced_vars): Remove assert.
(referenced_var_check_and_insert): Replace dup list with assert.
* tree-ssa.c (delete_tree_ssa): Remove dup list processing.
* tree-flow.h (referenced_vars_dup_list): Remove extern decl.

From-SVN: r114678

18 years agotrans-array.h (gfc_trans_create_temp_array): Add bool argument.
Thomas Koenig [Thu, 15 Jun 2006 10:30:09 +0000 (10:30 +0000)]
trans-array.h (gfc_trans_create_temp_array): Add bool argument.

2006-06-15  Thomas Koenig <Thomas.Koenig@online.de>

* trans-array.h (gfc_trans_create_temp_array):  Add bool
argument.
* trans-arrray.c (gfc_trans_create_temp_array): Add extra
argument "function" to show if we are translating a function.
If we are translating a function, perform checks whether
the size along any argument is negative.  In that case,
allocate size 0.
(gfc_trans_allocate_storage):  Add function argument (as
false) to gfc_trans_create_temp_array call.
* trans-expr.c (gfc_conv_function_call):  Add function
argument (as true) to gfc_trans_create_temp_array call.
* trans-stmt.c (gfc_conv_elemental_dependencies): Add
function argument (as false) to gfc_trans_create_temp_array
call.
* trans-intrinsic.c:  Likewise.

2006-06-15  Thomas Koenig <Thomas.Koenig@online.de>

* gfortran.dg/allocate_zerosize_2.f90:  New test case.

From-SVN: r114677