platform/upstream/gcc.git
17 years agore PR c++/28741 (ICE with static member in invalid template class)
Lee Millward [Mon, 21 Aug 2006 17:41:18 +0000 (17:41 +0000)]
re PR c++/28741 (ICE with static member in invalid template class)

        PR c++/28741
        * tree.c (decl_anon_ns_mem_p): Robustify.
        * decl2.c (determine_visibility): Likewise.

        * g++.dg/template/void7.C: New test.

From-SVN: r116303

17 years agore PR c++/28505 (ICE with invalid constructors)
Lee Millward [Mon, 21 Aug 2006 17:34:44 +0000 (17:34 +0000)]
re PR c++/28505 (ICE with invalid constructors)

        PR c++/28505
        * decl.c (grokdeclarator): Return early after
        issuing diagnostic about an incomplete type.

        * g++.dg/parse/ctor7.C: New test.
        * g++.dg/parse/ctor8.C: Likewise.

From-SVN: r116302

17 years agore PR c++/26269 (Declaring a variable too late yields bogus error message)
Lee Millward [Mon, 21 Aug 2006 17:27:48 +0000 (17:27 +0000)]
re PR c++/26269 (Declaring a variable too late yields bogus error message)

        PR c++/26269
        * decl.c (duplicate_decls): Return early if either
        newdecl or olddecl is error_mark_node.

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

From-SVN: r116301

17 years agogimplify.c (gimplify_init_constructor): Arrange for the temporary captures of compone...
Olivier Hainque [Mon, 21 Aug 2006 16:01:03 +0000 (16:01 +0000)]
gimplify.c (gimplify_init_constructor): Arrange for the temporary captures of components overlapping the lhs to happen...

* gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
Arrange for the temporary captures of components overlapping the lhs
to happen before the lhs is possibly cleared.

testsuite/
* gnat.dg/self_aggregate_with_zeros.adb: New test.
* gnat.dg/self_aggregate_with_array.adb: New test.

From-SVN: r116300

17 years agodecContext.c (decContextSetStatusFromString): Constify.
Kaveh R. Ghazi [Mon, 21 Aug 2006 12:34:25 +0000 (12:34 +0000)]
decContext.c (decContextSetStatusFromString): Constify.

* decContext.c (decContextSetStatusFromString): Constify.
* decContext.h (decContextSetStatusFromString): Likewise.
* decNumber.c (decNumberFromString): Likewise.
* decNumber.h (decNumberFromString): Likewise.
* decimal128.c (decimal128FromString): Likewise.
* decimal128.h (decimal128FromString): Likewise.
* decimal32.c (decimal32FromString): Likewise.
* decimal32.h (decimal32FromString): Likewise.
* decimal64.c (decimal64FromString): Likewise.
* decimal64.h (decimal64FromString): Likewise.

From-SVN: r116296

17 years agopr-support.c (__gnu_unwind_execute): Insert " + 1" in necessary places to pass the...
Mark Shinwell [Mon, 21 Aug 2006 10:10:58 +0000 (10:10 +0000)]
pr-support.c (__gnu_unwind_execute): Insert " + 1" in necessary places to pass the correct "number of registers"...

gcc/
* config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
necessary places to pass the correct "number of registers" values
to _Unwind_VRS_Pop.

gcc/testsuite/
  * g++.dg/eh/arm-vfp-unwind.C: New test.

From-SVN: r116291

17 years agotree-ssa-alias.c (eq_ptr_info, [...]): New function.
Jan Hubicka [Mon, 21 Aug 2006 01:53:11 +0000 (03:53 +0200)]
tree-ssa-alias.c (eq_ptr_info, [...]): New function.

* tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
(create_name_tags): Instead of quadratic checking use hashtable.
* bitmap.h: Include hashtab.h.
(bitmap_hash): Declare.
* bitmap.c (bitmap_hash): New function.

From-SVN: r116285

17 years agore PR middle-end/28071 (A file that can not be compiled in reasonable time/space)
Jan Hubicka [Mon, 21 Aug 2006 01:42:39 +0000 (03:42 +0200)]
re PR middle-end/28071 (A file that can not be compiled in reasonable time/space)

PR rtl-optimization/28071
* tree-optimize.c (tree_rest_of_compilation): Do not remove edges
twice.
* tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
* ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
(cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
cgraph_decide_inlining_incrementally): Update use of
cgraph_check_inline_limits.
* cgraph.c (edge_hash, edge_eq): New function.
(cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
cgraph_edge_remove_caller, cgraph_node_remove_callees,
cgraph_remove_node): Maintain call site hash.
* cgraph.h (struct cgraph_node): Add call_site_hash.
(cgraph_set_call_stmt): New function.

From-SVN: r116284

17 years agoDaily bump.
GCC Administrator [Mon, 21 Aug 2006 00:17:33 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r116281

17 years agore PR middle-end/28071 (A file that can not be compiled in reasonable time/space)
Jan Hubicka [Mon, 21 Aug 2006 00:00:14 +0000 (02:00 +0200)]
re PR middle-end/28071 (A file that can not be compiled in reasonable time/space)

PR rtl-optimization/28071
* reload1.c (reg_has_output_reload): Turn into regset.
(reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
choose_reload_regs, emit_reload_insns): Update to new
reg_has_output_reload.

From-SVN: r116277

17 years agore PR c++/28341 (ICE with references as template parameters)
Mark Mitchell [Sun, 20 Aug 2006 23:53:10 +0000 (23:53 +0000)]
re PR c++/28341 (ICE with references as template parameters)

PR c++/28341
* tree.c (cast_valid_in_integral_constant_expression_p): New
function.
* cp-tree.h (tsubst_copy_and_build): Adjust prototype.
* pt.c (tsubst_expr): Add integral_constant_expression_p
parameter.
(fold_non_dependent_expr): Adjust callers of
tsubst_{expr,copy_and_build}.
(tsubst_friend_function): Likewise.
(tsubst_template_arg): Likewise.
(tsubst_default_argument): Likewise.
(tsubst_decl): Likewise.
(tsubst): Likewise.
(tsubst_omp_clasuses): Likewise.
(regenerate_decl_fromp_template): Likewise.
(instantiate_decl): Likewise.
(tsubst_initializer_list): Likewise.
(tsubst_enum): Likewise.
(tsubst_expr): Use RECUR throughout.
(tsubst_copy_and_build): Change definition of RECUR.  Do not allow
invalid casts in integral constant expressions.
* parser.c (cp_parser_postfix_expression): Use
cast_valid_in_integral_constant_expression_p.
(cp_parser_cast_expression): Likewise.
(cp_parser_functional_cast): Likewise.

PR c++/28346
* pt.c (tsubst_qualified_id): Do not strip references from
OFFSET_REFs.

2006-08-20  Mark Mitchell  <mark@codesourcery.com>

PR c++/28341
* g++.dg/template/ref3.C: New test.
* g++.dg/template/nontype13.C: New test.

PR c++/28346
* g++.dg/template/ptrmem17.C: New test.

2006-08-20  Mark Mitchell  <mark@codesourcery.com>

* objcp-lang.c (objcp_tsubst_copy_and_build): Adjust call to
tsubst_copy_and_build.

From-SVN: r116276

17 years agore PR middle-end/28779 (internal compiler error: in cgraph_estimate_size_after_inlini...
Jan Hubicka [Sun, 20 Aug 2006 18:46:54 +0000 (18:46 +0000)]
re PR middle-end/28779 (internal compiler error: in cgraph_estimate_size_after_inlining, at ipa-inline.c:106)

PR middle-end/28779
* ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
function body sizes.
* cgraphunit.c (cgraph_analyze_function): Don't do so.

From-SVN: r116274

17 years agorandom (gamma_distribution<>::_M_initialize, [...]): Add.
Paolo Carlini [Sun, 20 Aug 2006 16:05:05 +0000 (16:05 +0000)]
random (gamma_distribution<>::_M_initialize, [...]): Add.

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

* include/tr1/random (gamma_distribution<>::_M_initialize,
gamma_distribution<>::_M_l_d): Add.
(gamma_distribution<>::gamma_distribution(const result_type&),
operator>>(std::basic_istream<>&, gamma_distribution&)): Use it.
include/tr1/random.tcc (gamma_distribution<>::_M_initialize):
Define.
(gamma_distribution<>::operator()): Adjust.

* include/tr1/random (geometric_distribution<>::_M_initialize): Add.
(geometric_distribution<>::geometric_distribution(const _RealType&),
operator>>(std::basic_istream<>&, geometric_distribution&)): Use it.

From-SVN: r116273

17 years agore PR fortran/25828 ([f2003] ACCESS='STREAM' io support)
Janne Blomqvist [Sun, 20 Aug 2006 09:22:04 +0000 (12:22 +0300)]
re PR fortran/25828 ([f2003] ACCESS='STREAM' io support)

2006-08-20  Janne Blomqvist  <jb@gcc.gnu.org>

PR fortran/25828
* gfortran.texi: Mention STREAM I/O among supported F2003
features.

From-SVN: r116271

17 years agoPR target/28648 c:
Danny Smith [Sun, 20 Aug 2006 08:46:13 +0000 (08:46 +0000)]
PR target/28648 c:

* tree.c (handle_dll_attribute): Return early if not a
    var or function decl.

testsuite
* gcc.dg/attr-invalid.c: Add tests for invalid dllimport.

From-SVN: r116270

17 years agore PR fortran/28601 (ICE on reexport of renamed type)
Paul Thomas [Sun, 20 Aug 2006 05:45:43 +0000 (05:45 +0000)]
re PR fortran/28601 (ICE on reexport of renamed type)

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

PR fortran/28601
PR fortran/28630
* gfortran.h : Eliminate gfc_dt_list structure and reference
to it in gfc_namespace.
* resolve.c (resolve_fl_derived): Remove the building of the
list of derived types for the current namespace.
* symbol.c (find_renamed_type): New function to find renamed
derived types by symbol name rather than symtree name.
(gfc_use_derived): Search parent namespace for identical
derived type and use it, even if local version is complete,
except in interface bodies. Ensure that renamed derived types
are found by call to find_renamed_type. Recurse for derived
type components.
(gfc_free_dt_list): Remove.
(gfc_free_namespace): Remove call to previous.
* trans-types.c (copy_dt_decls_ifequal): Remove.
(gfc_get_derived_type): Remove all the paraphenalia for
association of derived types, including calls to previous.
* match.c (gfc_match_allocate): Call gfc_use_derived to
associate any derived types that are being allocated.

PR fortran/20886
* resolve.c (resolve_actual_arglist): The passing of
a generic procedure name as an actual argument is an
error.

PR fortran/28735
* resolve.c (resolve_variable): Check for a symtree before
resolving references.

PR fortran/28762
* primary.c (match_variable): Return MATCH_NO if the symbol
is that of the program.

PR fortran/28425
* trans-expr.c (gfc_trans_subcomponent_assign): Translate
derived type component expressions other than another derived
type constructor.

PR fortran/28496
* expr.c (find_array_section): Correct errors in
the handling of a missing start value for the
index triplet in an array reference.

PR fortran/18111
* trans-decl.c (gfc_build_dummy_array_decl): Before resetting
reference to backend_decl, set it DECL_ARTIFICIAL.
(gfc_get_symbol_decl): Likewise for original dummy decl, when
a copy is made of an array.
(create_function_arglist): Likewise for the _entry paramter
in entry_masters.
(build_entry_thunks): Likewise for dummies in entry thunks.

PR fortran/28600
* trans-decl.c (gfc_get_symbol_decl): Ensure that the
DECL_CONTEXT of the length of a character dummy is the
same as that of the symbol declaration.

PR fortran/28771
* decl.c (add_init_expr_to_sym): Remove setting of charlen for
an initializer of an assumed charlen variable.

PR fortran/28660
* trans-decl.c (generate_expr_decls): New function.
(generate_dependency_declarations): New function.
(generate_local_decl): Call previous if not either a dummy or
a declaration in an entry master.

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

PR fortran/28630
* gfortran.dg/used_types_2.f90: New test.

PR fortran/28601
* gfortran.dg/used_types_3.f90: New test.

PR fortran/20886
* gfortran.dg/generic_actual_arg.f90: New test.

PR fortran/28735
* gfortran.dg/module_private_array_refs_1.f90: New test.

PR fortran/28762
* gfortran.dg/program_name_1.f90: New test.

PR fortran/28425
* gfortran.dg/derived_constructor_comps_1.f90: New test.

PR fortran/28496
* gfortran.dg/array_initializer_2.f90: New test.

PR fortran/18111
* gfortran.dg/unused_artificial_dummies_1.f90: New test.

PR fortran/28600
* gfortran.dg/assumed_charlen_function_4.f90: New test.

PR fortran/28771
* gfortran.dg/assumed_charlen_in_main.f90: New test.

PR fortran/28660
* gfortran.dg/dependent_decls_1.f90: New test.

From-SVN: r116268

17 years agoDaily bump.
GCC Administrator [Sun, 20 Aug 2006 00:17:25 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r116266

17 years agore PR fortran/25217 (Derived type dummy argument having intent(out) attribute)
Erik Edelmann [Sat, 19 Aug 2006 21:05:59 +0000 (21:05 +0000)]
re PR fortran/25217 (Derived type dummy argument having intent(out) attribute)

fortran/
2006-08-19  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25217
        * resolve.c (resolve_fl_variable): Set a default initializer for
        derived types with INTENT(OUT) even if 'flag' is true.
        * trans-expr.c (gfc_conv_function_call): Insert code to
        reinitialize INTENT(OUT) arguments of derived type with default
        initializers.

testsuite/
2006-08-19  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/25217
        * gfortran.dg/derived_init_2.f90: New.

From-SVN: r116261

17 years agobacktrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC" as another sequence that can...
Ranjit Mathew [Sat, 19 Aug 2006 15:35:11 +0000 (15:35 +0000)]
backtrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC" as another sequence that can indicate a "pushl %ebp...

* sysdep/i386/backtrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC"
as another sequence that can indicate a "pushl %ebp; movl %esp, %ebp"
function prologue.

From-SVN: r116258

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

From-SVN: r116255

17 years agocheck_jni_methods.sh: Don't use the "set -C" command which isn't available in all...
Roger Sayle [Fri, 18 Aug 2006 19:58:06 +0000 (19:58 +0000)]
check_jni_methods.sh: Don't use the "set -C" command which isn't available in all shells.

2006-08-18  Roger Sayle  <roger@eyesopen.com>

* scripts/check_jni_methods.sh: Don't use the "set -C" command
which isn't available in all shells.

From-SVN: r116251

17 years agore PR target/27565 (ICE in assign_stack_temp_for_type for vectors with SPE)
Joseph Myers [Fri, 18 Aug 2006 19:15:31 +0000 (20:15 +0100)]
re PR target/27565 (ICE in assign_stack_temp_for_type for vectors with SPE)

PR target/27565
* config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
alignment of SPE vector types.

From-SVN: r116249

17 years agoNodeWriter.java (writeParents): Removed debugging prints.
Tom Tromey [Fri, 18 Aug 2006 17:27:29 +0000 (17:27 +0000)]
NodeWriter.java (writeParents): Removed debugging prints.

* gnu/java/util/prefs/NodeWriter.java (writeParents): Removed
debugging prints.
* gnu/java/util/prefs/NodeReader.java (readNodes): Removed debugging
print.
(readEntries): Likewise.

From-SVN: r116247

17 years agorandom (class binomial_distribution<>): Add.
Paolo Carlini [Fri, 18 Aug 2006 17:15:43 +0000 (17:15 +0000)]
random (class binomial_distribution<>): Add.

2006-08-18  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/random (class binomial_distribution<>): Add.
* include/tr1/random.tcc (binomial_distribution<>::operator(),
operator<<(std::basic_ostream<>&, const binomial_distribution<>&),
operator>>(std::basic_istream<>&, binomial_distribution<>&,
binomial_distribution<>::_M_waiting(), binomial_distribution<>::
_M_initialize()): Define.
* testsuite/tr1/5_numerical_facilities/random/binomial_distribution/
requirements/typedefs.cc: New.

* include/tr1/random (geometric_distribution<>::
geometric_distribution(const _RealType&)): Fix DEBUG_ASSERT
limits.

* include/tr1/random (poisson_distribution): Add normal_distribution
member, adjust consistently; minor tweaks and rearrangements of the
arithmetic.
(operator>>(std::basic_istream<>&, poisson_distribution<>&)): Move
out of line.
* include/tr1/random.tcc: Adjust.

* include/tr1/random.tcc (normal_distribution<>::operator()): Minor
tweaks.

From-SVN: r116245

17 years agore PR libstdc++/28765 (__gnu_cxx::__vstring::clear() is slow)
Paolo Carlini [Fri, 18 Aug 2006 15:42:05 +0000 (15:42 +0000)]
re PR libstdc++/28765 (__gnu_cxx::__vstring::clear() is slow)

2006-08-18  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/28765
* include/ext/rc_string_base.h (_M_clear): New.
* include/ext/sso_string_base.h (_M_clear): Likewise.
* include/ext/vstring.h (clear): Use it.

From-SVN: r116240

17 years agotree.c (is_attribute_with_length_p): Remove a duplicated assert.
Christophe Jaillet [Fri, 18 Aug 2006 05:48:13 +0000 (07:48 +0200)]
tree.c (is_attribute_with_length_p): Remove a duplicated assert.

2006-08-18  Christophe Jaillet  <christophe.jaillet@wanadoo.fr>

* tree.c (is_attribute_with_length_p): Remove a duplicated assert.

From-SVN: r116237

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

From-SVN: r116235

17 years agoffi_common.h (struct): Revert accidental commit.
Andreas Tobler [Thu, 17 Aug 2006 19:07:29 +0000 (21:07 +0200)]
ffi_common.h (struct): Revert accidental commit.

2006-08-17  Andreas Tobler  <a.tobler@schweiz.ch>

* include/ffi_common.h (struct): Revert accidental commit.

From-SVN: r116230

17 years agoMakefile.am (install-exec-hook): Support $(DESTDIR).
H.J. Lu [Thu, 17 Aug 2006 17:03:34 +0000 (17:03 +0000)]
Makefile.am (install-exec-hook): Support $(DESTDIR).

2006-08-17  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (install-exec-hook): Support $(DESTDIR).
* Makefile.in: Regenerated.

From-SVN: r116227

17 years ago* gcc.c-torture/execute/pr28289.c: New test.
J"orn Rennecke [Thu, 17 Aug 2006 13:28:03 +0000 (13:28 +0000)]
* gcc.c-torture/execute/pr28289.c: New test.

From-SVN: r116224

17 years agore PR c/28744 (externally_visible attribute not effective with prior declaration...
Jakub Jelinek [Thu, 17 Aug 2006 11:52:26 +0000 (13:52 +0200)]
re PR c/28744 (externally_visible attribute not effective with prior declaration of symbol.)

PR c/28744
* cgraph.h (struct cgraph_node): Remove externally_visible
bitfield.
* cgraphunit.c (process_function_and_variable_attributes): Set
local.externally_visible rather than externally_visible.

PR c/28744
* c-common.c (handle_externally_visible_attribute): First look
at TREE_CODE and only if it is function or var decl, check for
non-public objects.  Don't warn for DECL_EXTERNAL.
* cgraphunit.c (process_function_and_variable_attributes): Warn
if externally_visible attribute is used on non-public object.

* gcc.dg/attr-externally-visible-1.c: New test.
* gcc.dg/attr-externally-visible-2.c: New test.
* g++.dg/parse/attr-externally-visible-1.C: New test.
* g++.dg/parse/attr-externally-visible-2.C: New test.

From-SVN: r116222

18 years agoFix typo in previously applied patch.
Jan Hubicka [Thu, 17 Aug 2006 10:08:31 +0000 (10:08 +0000)]
Fix typo in previously applied patch.

From-SVN: r116221

18 years agore PR tree-optimization/27865 (tree check failure building FreePOOMA)
Jan Hubicka [Thu, 17 Aug 2006 09:44:12 +0000 (11:44 +0200)]
re PR tree-optimization/27865 (tree check failure building FreePOOMA)

PR tree-optimization/27865
* reload1.c (forget_marked_reloads): New function.
(forget_old_reloads_1): When data are passed, just mark the registers
for later removal.
(reload_as_needed): Use the new mechanizm.

From-SVN: r116220

18 years agore PR c++/28606 (Destructor accepted as return-type of constructor)
Volker Reichelt [Thu, 17 Aug 2006 09:07:39 +0000 (09:07 +0000)]
re PR c++/28606 (Destructor accepted as return-type of constructor)

PR c++/28606
* parser.c (cp_parser_diagnose_invalid_type_name): Handle BIT_NOT_EXPR.
Fix formatting.
(cp_parser_parse_and_diagnose_invalid_type_name): Tighten condition
for valid type-names.
(cp_parser_unqualified_id): Fix error handling for destructors.

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

From-SVN: r116217

18 years agore PR target/28146 (-O2 produces invalid code on s390-linux-gnu: gcc-4.1.2 20060608)
Alexandre Oliva [Thu, 17 Aug 2006 08:55:02 +0000 (08:55 +0000)]
re PR target/28146 (-O2 produces invalid code on s390-linux-gnu: gcc-4.1.2 20060608)

PR target/28146
* reload.h (reg_equiv_alt_mem_list): New declaration.
* reload1.c (reg_equiv_alt_mem_list): New definition.
(reload): Initialize it and release it.
(delete_output_reload): Use it.
* reload.c (push_reg_equiv_alt_mem): New function.
(find_reloads_toplev): Call it.
(find_reloads_address, find_reloads_address_1): Likewise.
(find_reloads_subreg_address): Likewise.

From-SVN: r116215

18 years agore PR rtl-optimization/28489 (ICE in move_insn, at haifa-sched.c:1968)
Maxim Kuvyrkov [Thu, 17 Aug 2006 08:48:37 +0000 (08:48 +0000)]
re PR rtl-optimization/28489 (ICE in move_insn, at haifa-sched.c:1968)

2006-08-17  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

PR rtl-optimization/28489
* sched-ebb.c (begin_schedule_ready): Create basic block
at the right place.
(advance_target_bb): Skip empty blocks.
* haifa-sched.c (bb_note): Make global.
* sched-int.h (bb_note): Add prototype.

2006-08-17  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

PR rtl-optimization/28489
* gcc.c-torture/compile/pr28489.c: New test.

From-SVN: r116214

18 years agore PR tree-optimization/27865 (tree check failure building FreePOOMA)
Zdenek Dvorak [Thu, 17 Aug 2006 08:22:05 +0000 (10:22 +0200)]
re PR tree-optimization/27865 (tree check failure building FreePOOMA)

PR tree-optimization/27865
* tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
for pointer types.
* tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
fold_used_pointer, pointer_used_p): New functions.
(analyze_scalar_evolution_1): Use fold_used_pointer.
* tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
* tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
for pointers.

From-SVN: r116213

18 years agore PR c++/28710 (ICE redeclaring template as non-template)
Volker Reichelt [Thu, 17 Aug 2006 08:06:27 +0000 (08:06 +0000)]
re PR c++/28710 (ICE redeclaring template as non-template)

PR c++/28710
* decl.c (xref_tag): Improve error message.  Return early on error.

* g++.dg/template/redecl4.C: New test.

From-SVN: r116211

18 years agore PR c++/28711 (ICE on invalid initializer for multidimensional array)
Volker Reichelt [Thu, 17 Aug 2006 08:02:39 +0000 (08:02 +0000)]
re PR c++/28711 (ICE on invalid initializer for multidimensional array)

PR c++/28711
* pt.c (tsubst_copy_and_build) <case CONSTRUCTOR>: Robustify.

* g++.dg/template/ctor8.C: New test.

From-SVN: r116210

18 years agore PR libgomp/28725 (Case Sensitive OpenMP environment variables and patch)
Jakub Jelinek [Thu, 17 Aug 2006 07:58:02 +0000 (09:58 +0200)]
re PR libgomp/28725 (Case Sensitive OpenMP environment variables and patch)

PR libgomp/28725
* env.c: Include ctype.h.
(parse_schedule, parse_unsigned_long, parse_boolean): Allow
leading and/or trailing whitespace and compare strings case
insensitively.

From-SVN: r116209

18 years ago[multiple changes]
Paolo Bonzini [Thu, 17 Aug 2006 07:02:55 +0000 (07:02 +0000)]
[multiple changes]

2006-08-17  Paolo Bonzini <bonzini@gnu.org>

PR c++/28573
* c-common.c (fold_offsetof_1): Add an argument and recurse down to it
or the INTEGER_CST.  Fail on a CALL_EXPR.
(fold_offsetof): Pass new argument to fold_offsetof_1.
* c-parser.c (c_parser_postfix_expression): Don't include a NULL
operand into an INDIRECT_REF.
* c-typeck.c (build_unary_op): Adjust call to fold_offsetof.

cp:
2006-08-17  Paolo Bonzini  <bonzini@gnu.org>

PR c++/28573
* semantics.c (finish_offsetof): Add new argument to fold_offsetof.

testsuite:
2006-08-17  Paolo Bonzini  <bonzini@gnu.org>

PR c++/28573
* g++.dg/parse/offsetof6.C: New test.
* g++.dg/parse/offsetof7.C: New test.

From-SVN: r116208

18 years agore PR testsuite/28602 (All gfortran.dg/gomp tests fail)
John David Anglin [Thu, 17 Aug 2006 02:26:59 +0000 (02:26 +0000)]
re PR testsuite/28602 (All gfortran.dg/gomp tests fail)

PR testsuite/28602
* gfortran.dg/gomp/gomp.exp: Return if check_effective_target_fopenmp
is false.

From-SVN: r116207

18 years ago* libtool-version: Updated.
Tom Tromey [Thu, 17 Aug 2006 01:57:55 +0000 (01:57 +0000)]
* libtool-version: Updated.

From-SVN: r116206

18 years agore PR c++/28302 (ICE with bit-complement for vectors)
Andrew Pinski [Thu, 17 Aug 2006 01:56:47 +0000 (18:56 -0700)]
re PR c++/28302 (ICE with bit-complement for vectors)

2006-08-16  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/28302
        * typeck.c (build_unary_op <case BIT_NOT_EXPR:>): Don't call
        perform_integral_promotions for non integral type
2006-08-16  Andrew Pinski  <pinskia@physics.uc.edu>

        PR C++/28302
        * g++.dg/ext/vector3.C: New test.

From-SVN: r116205

18 years agojvspec.c (lang_specific_driver): Add -s-bc-abi when needed.
Jakub Jelinek [Thu, 17 Aug 2006 01:03:21 +0000 (03:03 +0200)]
jvspec.c (lang_specific_driver): Add -s-bc-abi when needed.

gcc/java/ChangeLog
* jvspec.c (lang_specific_driver): Add -s-bc-abi when needed.
libjava/ChangeLog
* configure, Makefile.in: Rebuilt.
* Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj_bc.la.
(libgcj_bc_la_SOURCES): New variable.
(libgcj_bc_la_LDFLAGS): Likewise.
(libgcj_bc_la_LIBADD): Likewise.
(libgcj_bc_la_DEPENDENCIES): Likewise.
(libgcj_bc_la_LINK): Likewise.
(libgcj_bc_dummy_LINK): Likewise.
(libgcj_bc.la): New target.
(install-exec-hook): Likewise.
* libgcj.spec.in (*lib): Use LIBGCJ_SPEC.
* libgcj_bc.c: New file.
* configure.ac (LIBGCJ_SPEC): New subst.
* configure.host (use_libgcj_bc): New variable.

Co-Authored-By: Bryce McKinlay <bryce@mckinlay.net.nz>
From-SVN: r116204

18 years agore PR c++/28385 (templated function call goes awry)
Jason Merrill [Thu, 17 Aug 2006 00:51:37 +0000 (20:51 -0400)]
re PR c++/28385 (templated function call goes awry)

        PR c++/28385
        * pt.c (tsubst) [TEMPLATE_TYPE_PARM]: Ignore quals from template
        if arg is a function.

From-SVN: r116203

18 years agoDaily bump.
GCC Administrator [Thu, 17 Aug 2006 00:17:17 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r116201

18 years agoPR gcov/profile/26570
Zdenek Dvorak [Thu, 17 Aug 2006 00:13:24 +0000 (02:13 +0200)]
PR gcov/profile/26570

PR gcov/profile/26570
* value-prof.c (static_values): Removed.
(tree_find_values_to_profile): Do not set static_values.
(find_values_to_profile): Do not free static_values.
* profile.c (instrument_values): Do not free the values.
(branch_prob): Free the values.

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

From-SVN: r116197

18 years ago* config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
Naveen.H.S [Thu, 17 Aug 2006 00:05:07 +0000 (00:05 +0000)]
* config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.

From-SVN: r116196

18 years agore PR c/27697 (incorrect warning about constness of pointer to an array in a const...
Joseph Myers [Wed, 16 Aug 2006 23:10:46 +0000 (00:10 +0100)]
re PR c/27697 (incorrect warning about constness of pointer to an array in a const struct)

PR c/27697
* c-typeck.c (build_component_ref): Combine qualifiers of
structure or union and field.

testsuite:
* gcc.dg/qual-component-1.c: New test.

From-SVN: r116194

18 years agore PR c++/28593 (ICE on invalid operator new)
Volker Reichelt [Wed, 16 Aug 2006 21:35:18 +0000 (21:35 +0000)]
re PR c++/28593 (ICE on invalid operator new)

PR c++/28593
* init.c (build_new): Return early on invalid placement.

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

From-SVN: r116191

18 years agore PR middle-end/28071 (A file that can not be compiled in reasonable time/space)
Zdenek Dvorak [Wed, 16 Aug 2006 21:25:39 +0000 (23:25 +0200)]
re PR middle-end/28071 (A file that can not be compiled in reasonable time/space)

PR rtl-optimization/28071
* basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
* dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
* tree-into-ssa.c (struct dom_dfsnum): New.
(cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
functions.
(insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
compute_global_livein.
(prepare_block_for_update, prepare_use_sites_for): Mark the uses
in phi nodes in the correct blocks.

From-SVN: r116190

18 years agore PR tree-optimization/28364 (poor optimization choices when iterating over a std...
Zdenek Dvorak [Wed, 16 Aug 2006 21:14:11 +0000 (23:14 +0200)]
re PR tree-optimization/28364 (poor optimization choices when iterating over a std::string (probably not c++-specific))

PR tree-optimization/28364
* tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
correctly.
(fold_affine_expr): New function.
(may_eliminate_iv): Use fold_affine_expr.

From-SVN: r116189

18 years agore PR c/27489 (ICE on broken switch condition)
Volker Reichelt [Wed, 16 Aug 2006 20:50:18 +0000 (20:50 +0000)]
re PR c/27489 (ICE on broken switch condition)

PR c/27489
* c-typeck.c (c_start_case): Handle invalid orig_type correctly.
Clean up.

From-SVN: r116188

18 years agoinvoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
Mike Stump [Wed, 16 Aug 2006 20:36:23 +0000 (20:36 +0000)]
invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.

* doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
* doc/cppopts.texi (-MD): Likewise.

From-SVN: r116187

18 years agoOops - this should have been part of r116159, but I forgot to include it on the commi...
Nick Clifton [Wed, 16 Aug 2006 08:20:51 +0000 (08:20 +0000)]
Oops - this should have been part of r116159, but I forgot to include it on the commit command line. Doh!

From-SVN: r116180

18 years agoDaily bump.
GCC Administrator [Wed, 16 Aug 2006 00:18:02 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r116177

18 years agore PR fortran/25828 ([f2003] ACCESS='STREAM' io support)
Jerry DeLisle [Tue, 15 Aug 2006 23:14:03 +0000 (23:14 +0000)]
re PR fortran/25828 ([f2003] ACCESS='STREAM' io support)

2006-08-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/25828
* gfortran.dg/streamio_1.f90: New test.
* gfortran.dg/streamio_2.f90: New test.
* gfortran.dg/streamio_3.f90: New test.
* gfortran.dg/streamio_4.f90: New test.
* gfortran.dg/streamio_5.f90: New test.
* gfortran.dg/streamio_6.f90: New test.
* gfortran.dg/streamio_7.f90: New test.
* gfortran.dg/streamio_8.f90: New test.

From-SVN: r116173

18 years agore PR fortran/25828 ([f2003] ACCESS='STREAM' io support)
Jerry DeLisle [Tue, 15 Aug 2006 23:06:44 +0000 (23:06 +0000)]
re PR fortran/25828 ([f2003] ACCESS='STREAM' io support)

2006-08-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/25828
* libgfortran.h: Rename GFC_LARGE_IO_INT to GFC_IO_INT.
* io/file_pos.c (st_backspace): Ignore if access=STREAM.
(st_rewind): Handle case of access=STREAM.
* io/open.c (access_opt): Add STREAM_ACCESS.
(edit_modes): Set current_record to zero only if not STREAM.
(new_unit): Initialize maxrec, recl, and last_record for STREAM.
* io/read.c (read_x): Advance file position for STREAM.
* io/io.h (enum unit_access): Align IOPARM flags with frontend.
Add ACCESS_STREAM. Add prototype for is_stream_io () function.
Use GFC_IO_INT.
* io/inquire.c (inquire_via_unit): Add text for access = "STREAM".
* io/unit.c (is_stream_io): New function to return true if access =
STREAM.
* io/transfer.c (file_mode): Add modes for unformatted stream and
formatted stream. (current_mode): Return appropriate file mode based
on access flags.
(read_block): Handle formatted stream reads.
(read_block_direct): Handle unformatted stream reads.
(write_block): Handle formatted stream writes.
(write_buf): Handle unformatted stream writes.
(unformatted_read): Fix up, use temporary for size.
(pre_position): Position file for STREAM access.
(data_transfer_init): Initialize for stream access, skip irrelevent
error checks.
(next_record_r),(next_record_w), and (next_record): Do nothing for
stream I/O.
(finalize_transfer): Flush when all done if stream I/O.

From-SVN: r116172

18 years agore PR fortran/25828 ([f2003] ACCESS='STREAM' io support)
Jerry DeLisle [Tue, 15 Aug 2006 23:03:28 +0000 (23:03 +0000)]
re PR fortran/25828 ([f2003] ACCESS='STREAM' io support)

2006-08-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/25828
* gfortran.h: Add new pointer for stream position to st_inquire.
Rename gfc_large_io_int_kind to gfc_intio_kind.
* trans-types.c (gfc_init_kinds): use gfc_intio_kind.
* io.c: Add new IO tag for file position going in and another for out.
(match_dt_element): Match new tag_spos.
(gfc_resolve_dt): Resolve new tag_spos.
(gfc_free_inquire): Free inquire->strm_pos.
(match_inquire_element): Match new tag_strm_out.
(gfc_resolve_inquire): Resolve new tag_strm_out.
* trans-io.c: Rename IOPARM_type_large_io_int to IOPARM_type_intio.
(gfc_build_st_parameter): Same.
(gfc_build_io_library_fndecls) Same. and add build pointer type pintio.
(gfc_trans_inquire): Translate strm_pos for inquire.
* ioparm.def: Reorder flags to accomodate addition of new inquire
flag for strm_pos_out and add it in.

From-SVN: r116171

18 years agore PR c/28287 (ICE with misplaced attribute weak)
Danny Smith [Tue, 15 Aug 2006 21:46:30 +0000 (21:46 +0000)]
re PR c/28287 (ICE with misplaced attribute weak)

gcc
PR c/28287
* c-common.c (handle_weak_attribute): Ignore and warn if
not a FUNCTION_ or VAR_DECL

testsuite

* gcc.dg/attr-invalid.c: Add tests for invalid weak attribute.

From-SVN: r116170

18 years agoIncorrect date in changelog
Kyle Galloway [Tue, 15 Aug 2006 21:10:01 +0000 (21:10 +0000)]
Incorrect date in changelog

From-SVN: r116169

18 years agoForgot to commit changelog with last patch.
Kyle Galloway [Tue, 15 Aug 2006 21:04:05 +0000 (21:04 +0000)]
Forgot to commit changelog with last patch.

2006-08-15  Kyle Galloway  <kgallowa@redhat.com>

  * ChangeLog: Added entry for previous patch

From-SVN: r116168

18 years agojava-interp.h (_Jv_InterpMethod::run_debug): New method.
Kyle Galloway [Tue, 15 Aug 2006 20:40:10 +0000 (20:40 +0000)]
java-interp.h (_Jv_InterpMethod::run_debug): New method.

2006-08-15  Kyle Galloway  <kgallowa@redhat.com>

  * include/java-interp.h (_Jv_InterpMethod::run_debug): New method.
  * interpret.cc: Added placeholder for debug variable type info to STORE*
  macros.
  (_Jv_InterpMethod::run_debug): New method.
  (_Jv_InterpMethod::run_sync_object_debug): New method.
  (_Jv_InterpMethod::run_sync_class_debug): New method.
  (_Jv_InterpMethod::run_normal_debug): New method.
  (_Jv_InterpMethod::run_class_debug): New method.
  (_Jv_InterpMethod::ncode ()): Changed to select either debug or normal
  versions of these functions.
  * interpret-run.cc: New file, holds contents of old
  _Jv_InterpMethod::run method.
  * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Changed to select
  appropriate function for debug or normal mode.

From-SVN: r116167

18 years agore PR c/28280 (bogus "statement with no effect" warning with VLA and typeof)
Mike Stump [Tue, 15 Aug 2006 18:01:19 +0000 (18:01 +0000)]
re PR c/28280 (bogus "statement with no effect" warning with VLA and typeof)

PR c/28280
* c-parser.c (c_parser_typeof_specifier): Don't use
c_finish_expr_stmt, open code desired semantics instead.

From-SVN: r116163

18 years agore PR c++/28594 (ICE with invalid template parameter)
Lee Millward [Tue, 15 Aug 2006 17:21:09 +0000 (17:21 +0000)]
re PR c++/28594 (ICE with invalid template parameter)

PR c++/28594
* pt.c (process_template_parm): Robustify.
* g++.dg/template/void6.C: New test.

From-SVN: r116160

18 years agoconfig.gcc (x86-mingw32): Add a gthr-win32.h including makefile fragment to tmake_fil...
Nick Clifton [Tue, 15 Aug 2006 17:06:18 +0000 (17:06 +0000)]
config.gcc (x86-mingw32): Add a gthr-win32.h including makefile fragment to tmake_file only if...

* config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
  fragment to tmake_file only if threads are enabled.
* config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
* config/i386/t-gthr-win32: New file. ... here.

From-SVN: r116159

18 years agore PR c/28649 (Poor error recovery of C parser)
Volker Reichelt [Tue, 15 Aug 2006 16:52:25 +0000 (16:52 +0000)]
re PR c/28649 (Poor error recovery of C parser)

PR c/28649
* c-parser.c (c_parser_compound_statement_nostart): Reset
parser->error after each statement.

* gcc.dg/parse-error-1.c: New test.
* gcc.dg/parse-error-2.c: New test.
* gcc.dg/cpp/digraph2.c: Add error-marker.
* gcc.dg/noncompile/920923-1.c: Likewise.

From-SVN: r116157

18 years agorandom (poisson_distribution<>::_M_initialize): Add.
Paolo Carlini [Tue, 15 Aug 2006 15:11:24 +0000 (15:11 +0000)]
random (poisson_distribution<>::_M_initialize): Add.

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

* include/tr1/random (poisson_distribution<>::_M_initialize): Add.
(poisson_distribution<>::poisson_distribution(const _RealType&):
Use it.
(operator>>(std::basic_istream<>&, poisson_distribution<>&)):
Likewise.
(poisson_distribution<>::_M_large): Remove.
* include/tr1/random.tcc (poisson_distribution<>::_M_initialize):
Define.
(operator<<(std::basic_ostream<>&, const poisson_distribution<>&)):
Do not output the constants.

* include/tr1/random (operator>>(std::basic_istream<>&,
gamma_distribution&)): Minor tweak.

* include/tr1/random.tcc (poisson_distribution<>::operator()):
Minor tweak.

* include/tr1/random: Consistently, all data members private.

From-SVN: r116155

18 years agore PR middle-end/28713 (GNU OpenMP produces type mismatches)
Jakub Jelinek [Tue, 15 Aug 2006 14:57:52 +0000 (16:57 +0200)]
re PR middle-end/28713 (GNU OpenMP produces type mismatches)

PR middle-end/28713
* omp-low.c (lower_omp_parallel): Convert t to
receiver_decl's type.
(expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
source before comparison.

From-SVN: r116154

18 years agore PR middle-end/28724 (atomic produces type mismatches)
Jakub Jelinek [Tue, 15 Aug 2006 14:56:28 +0000 (16:56 +0200)]
re PR middle-end/28724 (atomic produces type mismatches)

PR middle-end/28724
* gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
to itype in assignment to oldival2.

From-SVN: r116153

18 years agoffi_common.h: Remove lint directives.
Andreas Tobler [Tue, 15 Aug 2006 09:36:39 +0000 (11:36 +0200)]
ffi_common.h: Remove lint directives.

2006-08-15  Andreas Tobler  <a.tobler@schweiz.ch>

* include/ffi_common.h: Remove lint directives.
* include/ffi.h.in: Likewise.

From-SVN: r116152

18 years agorandom.tcc (mersenne_twister<>::operator()): Revert last change (per gcc-patches...
Paolo Carlini [Tue, 15 Aug 2006 09:08:31 +0000 (09:08 +0000)]
random.tcc (mersenne_twister<>::operator()): Revert last change (per gcc-patches/2006-08/msg00484.html).

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

* include/tr1/random.tcc (mersenne_twister<>::operator()): Revert
last change (per gcc-patches/2006-08/msg00484.html).

From-SVN: r116151

18 years agorandom (class poisson_distribution<>): Add.
Paolo Carlini [Tue, 15 Aug 2006 02:28:45 +0000 (02:28 +0000)]
random (class poisson_distribution<>): Add.

2006-08-14  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/random (class poisson_distribution<>): Add.
* include/tr1/random.tcc (poisson_distribution<>::operator(),
operator<<(std::basic_ostream<>&, const poisson_distribution<>&),
operator>>(std::basic_istream<>&, poisson_distribution<>&,
poisson_distribution<>::poisson_distribution(const _RealType&)):
Define.
* testsuite/tr1/5_numerical_facilities/random/poisson_distribution/
requirements/typedefs.cc: New.

* include/tr1/random.tcc (mersenne_twister<>::operator()): Tweak
a bit for efficiency.

* include/tr1/random.tcc (operator<<(std::basic_ostream<>&,
const normal_distribution<>&), operator>>(std::basic_istream<>&,
normal_distribution<>&)): Do not output _M_saved unnecessarily.

* include/tr1/random: Trivial formatting fixes.
* include/tr1/cmath: Likewise.

From-SVN: r116149

18 years ago[multiple changes]
Andrew Pinski [Tue, 15 Aug 2006 01:43:28 +0000 (18:43 -0700)]
[multiple changes]

2006-07-14  Andrew Pinski  <pinksia@physics.uc.edu>

        PR c/27490
        PR c/27489
        * c-typeck.c (build_compound_expr): If the second expression
        is an error mark, then just return an error mark instead of
        creating a COMPOUND_EXPR.
2006-08-14  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/27490
        * gcc.dg/sizeof-2.c: New testcase.

        PR c/27489
        * gcc.dg/switch-A.c: New testcase.

From-SVN: r116148

18 years agoDaily bump.
GCC Administrator [Tue, 15 Aug 2006 00:17:23 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r116146

18 years ago* Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
Mike Stump [Mon, 14 Aug 2006 23:40:41 +0000 (23:40 +0000)]
* Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.

From-SVN: r116142

18 years agore PR c++/28288 (ICE with min/max operator)
Steve Ellcey [Mon, 14 Aug 2006 23:15:57 +0000 (23:15 +0000)]
re PR c++/28288 (ICE with min/max operator)

PR c++/28288
PR c++/14556
* g++.old-deja/g++.warn/compare1.C: Delete.
* g++.dg/opt/pr7503-2.C: Delete.
* g++.dg/opt/pr7503-3.C: Delete.
* g++.dg/opt/pr7503-4.C: Delete.
* g++.dg/opt/pr7503-5.C: Delete.
* g++.dg/opt/max1.C: Delete.
* g++.dg/warn/minmax.C: Delete.
* g++.dg/expr/minmax.C: New test.

From-SVN: r116141

18 years agore PR c++/28288 (ICE with min/max operator)
Steve Ellcey [Mon, 14 Aug 2006 23:13:54 +0000 (23:13 +0000)]
re PR c++/28288 (ICE with min/max operator)

PR c++/28288
PR c++/14556
* operators.def: Remove <?, ?>, <?=, and >?= operators.
* parser.c: Remove CPP_MIN, CPP_MAX, CPP_MIN_EQ, and CPP_MAX_EQ.
(cp_parser_warn_min_max): Remove.
* include/cpplib.h: Remove <?, >?, <?=, and >?= tokens.
(CPP_LAST_EQ): Change.
(CPP_LAST_PUNCTUATOR): Change.
* expr.c (cpp_operator): Remove MIN and MAX.
(reduce): Remove CPP_MIN and CPP_MAX.
(num_binary_op): Ditto.
* lex.c (_cpp_lex_direct): Ditto.
(cpp_avoid_paste): Remove ? as legal symbol after > or <.

From-SVN: r116140

18 years agoImported GNU Classpath 0.92
Mark Wielaard [Mon, 14 Aug 2006 23:12:35 +0000 (23:12 +0000)]
Imported GNU Classpath 0.92

2006-08-14  Mark Wielaard  <mark@klomp.org>

       Imported GNU Classpath 0.92
       * HACKING: Add more importing hints. Update automake version
       requirement.

       * configure.ac (gconf-peer): New enable AC argument.
       Add --disable-gconf-peer and --enable-default-preferences-peer
       to classpath configure when gconf is disabled.
       * scripts/makemake.tcl: Set gnu/java/util/prefs/gconf and
       gnu/java/awt/dnd/peer/gtk to bc. Classify
       gnu/java/security/Configuration.java as generated source file.

       * gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
       gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
       gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
       gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
       gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
       gnu/java/lang/management/VMThreadMXBeanImpl.java,
       gnu/java/lang/management/VMMemoryMXBeanImpl.java,
       gnu/java/lang/management/VMCompilationMXBeanImpl.java: New VM stub
       classes.
       * java/lang/management/VMManagementFactory.java: Likewise.
       * java/net/VMURLConnection.java: Likewise.
       * gnu/java/nio/VMChannel.java: Likewise.

       * java/lang/Thread.java (getState): Add stub implementation.
       * java/lang/Class.java (isEnum): Likewise.
       * java/lang/Class.h (isEnum): Likewise.

       * gnu/awt/xlib/XToolkit.java (getClasspathTextLayoutPeer): Removed.

       * javax/naming/spi/NamingManager.java: New override for StackWalker
       functionality.

       * configure, sources.am, Makefile.in, gcj/Makefile.in,
       include/Makefile.in, testsuite/Makefile.in: Regenerated.

From-SVN: r116139

18 years agore PR c++/28559 (ICE with friend and __attribute__)
Jason Merrill [Mon, 14 Aug 2006 21:25:03 +0000 (17:25 -0400)]
re PR c++/28559 (ICE with friend and __attribute__)

        PR c++/28559
        * parser.c (cp_parser_elaborated_type_specifier): Also ignore
        attributes applied to a TYPENAME_TYPE.

From-SVN: r116137

18 years ago* c-decl.c, var-tracking.c: Fix comment typos.
Kazu Hirata [Mon, 14 Aug 2006 17:55:03 +0000 (17:55 +0000)]
* c-decl.c, var-tracking.c: Fix comment typos.

From-SVN: r116134

18 years agore PR testsuite/28703 (FAIL: gcc.c-torture/execute/pr28651.c execution)
Richard Guenther [Mon, 14 Aug 2006 15:05:37 +0000 (15:05 +0000)]
re PR testsuite/28703 (FAIL: gcc.c-torture/execute/pr28651.c execution)

2006-08-14  Richard Guenther  <rguenther@suse.de>

PR testsuite/28703
* gcc.c-torture/execute/pr28651.c: Do not use argc
to avoid optimization, instead forbid inlining.

From-SVN: r116129

18 years agoThread.java (accessControlState): New field.
Gary Benson [Mon, 14 Aug 2006 14:24:52 +0000 (14:24 +0000)]
Thread.java (accessControlState): New field.

2006-08-14  Gary Benson  <gbenson@redhat.com>

* java/lang/Thread.java (accessControlState): New field.
* java/security/VMAccessControlState.java: New file.
* java/security/natVMAccessControlState.cc: Likewise.
* java/security/VMAccessController.java
(contexts, inGetContext): Removed.
(pushContext, popContext, getContext): Use VMAccessControlState.
* Makefile.am (nat_source_files): Updated.
* sources.am, Makefile.in: Rebuilt.

From-SVN: r116128

18 years agore PR rtl-optimization/28634 (rounding problem with -fdelayed-branch on hppa/mips)
Richard Sandiford [Mon, 14 Aug 2006 11:55:52 +0000 (11:55 +0000)]
re PR rtl-optimization/28634 (rounding problem with -fdelayed-branch on hppa/mips)

gcc/
PR rtl-optimization/28634
* reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
for floating-point modes unless flag_unsafe_math_optimizations.

gcc/testsuite/
PR rtl-optimization/28634
* gcc.c-torture/execute/ieee/pr28634.c: New test.

From-SVN: r116124

18 years agoDaily bump.
GCC Administrator [Mon, 14 Aug 2006 00:17:25 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r116120

18 years agore PR c/27184 (Wrong code with pointers to arrays and types and strict aliasing)
Alexandre Oliva [Sun, 13 Aug 2006 20:16:46 +0000 (20:16 +0000)]
re PR c/27184 (Wrong code with pointers to arrays and types and strict aliasing)

2006-08-13  Alexandre Oliva  <aoliva@redhat.com>
            Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/27184
        * tree.c (build_array_type): Unify array types with
        unspecified index_type.
        * c-decl.c (grokdeclarator): Make sure we do not modify a
        unified incomplete array type.
        * c-typeck.c (store_init_value): Create distinct type before
        filling in the index type in an initializer from a compound
        literal.

        * c-decl.c (grokdeclarator): Remove code where we copy the
        array type over.

2006-08-13  Alexandre Oliva  <aoliva@redhat.com>

        PR c/27184
        * gcc.dg/torture/pr27184.c: New test

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
From-SVN: r116116

18 years agotree-pass.h (TODO_update_ssa): Fix which bit is used to take into account for TODO_du...
Andrew Pinski [Sun, 13 Aug 2006 16:49:24 +0000 (16:49 +0000)]
tree-pass.h (TODO_update_ssa): Fix which bit is used to take into account for TODO_dump_cgraph.

2006-08-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
        into account for TODO_dump_cgraph.
        (TODO_update_ssa_no_phi): Likewise.
        (TODO_update_ssa_full_phi): Likewise.
        (TODO_update_ssa_only_virtuals): Likewise.
        (TODO_remove_unused_locals): Likewise.
        (TODO_set_props): Likewise.
        (TODO_update_stmt_usage): Likewise.

From-SVN: r116111

18 years agoc-common.c (strict_aliasing_warning): Fix formatting.
Dirk Mueller [Sun, 13 Aug 2006 15:04:41 +0000 (15:04 +0000)]
c-common.c (strict_aliasing_warning): Fix formatting.

2006-08-13  Dirk Mueller  <dmueller@suse.de>

       * c-common.c (strict_aliasing_warning): Fix formatting.

From-SVN: r116109

18 years agoinvoke.texi: Fix spelling errors.
Matthias Klose [Sun, 13 Aug 2006 07:27:30 +0000 (07:27 +0000)]
invoke.texi: Fix spelling errors.

2006-08-13  Matthias Klose  <doko@debian.org>

        * doc/invoke.texi: Fix spelling errors.

From-SVN: r116107

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

From-SVN: r116105

18 years ago* gcc.target/i386/pr27827.c: Only compile on ilp32 target.
Jakub Jelinek [Sat, 12 Aug 2006 13:39:05 +0000 (15:39 +0200)]
* gcc.target/i386/pr27827.c: Only compile on ilp32 target.

From-SVN: r116099

18 years ago* intrinsics/bessel.c: Add prototypes for all functions.
Francois-Xavier Coudert [Sat, 12 Aug 2006 07:30:04 +0000 (09:30 +0200)]
* intrinsics/bessel.c: Add prototypes for all functions.

From-SVN: r116098

18 years agostat_1.f90: Make test pass when run under sudo.
Francois-Xavier Coudert [Sat, 12 Aug 2006 01:03:29 +0000 (03:03 +0200)]
stat_1.f90: Make test pass when run under sudo.

* gfortran.dg/stat_1.f90: Make test pass when run under sudo.
* gfortran.dg/stat_2.f90: Likewise.
* gfortran.dg/chmod_1.f90: Likewise.
* gfortran.dg/chmod_2.f90: Likewise.
* gfortran.dg/chmod_3.f90: Likewise.

From-SVN: r116097

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

From-SVN: r116095

18 years ago* gfortran.dg/direct_io_6.f90: Skip on *-*-aix*.
David Edelsohn [Fri, 11 Aug 2006 20:40:52 +0000 (20:40 +0000)]
* gfortran.dg/direct_io_6.f90: Skip on *-*-aix*.

From-SVN: r116091

18 years agore PR rtl-optimization/23454 (ICE in invert_exp_1, at jump.c:1719)
Eric Botcazou [Fri, 11 Aug 2006 19:01:45 +0000 (21:01 +0200)]
re PR rtl-optimization/23454 (ICE in invert_exp_1, at jump.c:1719)

PR rtl-optimization/23454
* reorg.c (relax_delay_slots): Update comment.

From-SVN: r116088

18 years agostl_bvector.h (__fill_bvector(_Bit_iterator, _Bit_iterator, bool)): New.
Paolo Carlini [Fri, 11 Aug 2006 10:39:37 +0000 (10:39 +0000)]
stl_bvector.h (__fill_bvector(_Bit_iterator, _Bit_iterator, bool)): New.

2006-08-11  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_bvector.h (__fill_bvector(_Bit_iterator,
_Bit_iterator, bool)): New.
(fill(_Bit_iterator, _Bit_iterator, const bool&)): Use it.

From-SVN: r116081

18 years agore PR middle-end/28651 (signed compare incorrectly false for (int)(U+4)<(int)U where...
Richard Guenther [Fri, 11 Aug 2006 07:44:45 +0000 (07:44 +0000)]
re PR middle-end/28651 (signed compare incorrectly false for (int)(U+4)<(int)U where U is unsigned INT_MAX (for optimized  x86))

2006-08-11  Richard Guenther  <rguenther@suse.de>

PR middle-end/28651
* simplify-rtx.c (simplify_const_relational_operation):
Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
codes.

* gcc.c-torture/execute/pr28651.c: New testcase.

From-SVN: r116079

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

From-SVN: r116077