Andrew Haley [Mon, 14 Feb 2005 14:58:22 +0000 (14:58 +0000)]
re PR java/19907 (Incorrect code generated for ManifestElement.java)
2005-02-14 Andrew Haley <aph@redhat.com>
PR java/19907
* expr.c (expand_byte_code): Call promote_arguments().
(promote_arguments): New function.
* decl.c (check_local_unnamed_variable): Remve special case for
new verifier.
(find_local_variable): Promote all boolean types to int
when searching for local variable decls.
From-SVN: r95015
Anthony Green [Mon, 14 Feb 2005 14:57:37 +0000 (14:57 +0000)]
re PR libgcj/18116 (JNI uses dot instead of slash as the package separator)
2005-02-14 Anthony Green <green@redhat.com>
PR libgcj/18116
* testsuite/libjava.jni/PR18116.c: New file.
* testsuite/libjava.jni/PR18116.java: New file.
* testsuite/libjava.jni/PR18116.out: New file.
From-SVN: r95014
Sebastian Pop [Mon, 14 Feb 2005 14:54:37 +0000 (15:54 +0100)]
lambda-code.c (lambda_loopnest_to_gcc_loopnest, [...]): Use standard_iv_increment_position for computing the bsi position for create_iv.
* lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
Use standard_iv_increment_position for computing the bsi position
for create_iv.
* tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
the bsi position.
From-SVN: r95013
Kazu Hirata [Mon, 14 Feb 2005 14:43:56 +0000 (14:43 +0000)]
directives.c, [...]: Update copyright.
* directives.c, files.c, init.c, internal.h, macro.c, pch.c,
traditional.c: Update copyright.
From-SVN: r95012
Anthony Green [Mon, 14 Feb 2005 13:51:29 +0000 (13:51 +0000)]
jni.cc (nathash_add): Don't strdup the method signature.
2005-02-13 Anthony Green <green@redhat.com>
* jni.cc (nathash_add): Don't strdup the method signature.
(_Jv_JNI_RegisterNatives): Convert the slashes to dots in the
method signature.
Update copyright.
From-SVN: r95010
Nathan Sidwell [Mon, 14 Feb 2005 13:45:42 +0000 (13:45 +0000)]
re PR c++/19884 (ICE on explicit instantiation of a non-template constructor)
cp:
PR c++/19884
* pt.c (check_explicit_specialization): Make sure namespace
binding lookup found an overloaded function.
(lookup_template_function): Just assert FNS is an overloaded
function.
PR c++/19895
* decl.c (grokdeclarator): Check for error mark node in ptrmem
construction.
testsuite:
PR c++/19895
* g++.dg/parse/ptrmem3.C: New.
PR c++/19884
* g++.old-deja/g++.oliva/template6.C: Add another case.
* g++.dg/template/explicit6.C: New.
From-SVN: r95009
Alexandre Oliva [Mon, 14 Feb 2005 12:01:15 +0000 (12:01 +0000)]
re PR c++/17816 (duplicate definition of pure virtual function not diagnosed)
gcc/cp/ChangeLog:
PR c++/17816
* decl.c (redeclaration_error_message): Report redefinition of
pure virtual function.
gcc/testsuite/ChangeLog:
PR c++/17816
* g++.dg/other/redecl2.C: New.
From-SVN: r95008
Zdenek Dvorak [Mon, 14 Feb 2005 11:37:52 +0000 (12:37 +0100)]
re PR rtl-optimization/17428 (internal compiler error: in spill_failure, at reload1.c:1880 (-fspeculative-prefetching))
PR target/17428
* cfgrtl.c (safe_insert_insn_on_edge): Avoid extending life range of hard
registers.
* value-prof.c (insn_prefetch_values_to_profile): Only scan normal insns.
* value-prof.c (rtl_find_values_to_profile): Do not look for values to
profile in libcalls.
From-SVN: r95007
Razya Ladelsky [Mon, 14 Feb 2005 11:21:09 +0000 (11:21 +0000)]
add myself to MAINTAINERS file
From-SVN: r95006
Nathan Sidwell [Mon, 14 Feb 2005 09:36:35 +0000 (09:36 +0000)]
re PR c++/19891 (Covariant returns are broken)
cp:
PR c++/19891
* class.c (build_simple_base_path): Build the component_ref
directly.
(update_vtable_entry_for_fn): Walk the covariant's binfo chain
rather than using lookup_base.
* search.c (dfs_walk_once): Add non-recursive assert check.
* typeck.c (build_class_member_access_expr): It is possible for
the member type to be both const and volatile.
testsuite:
PR c++/19891
* g++.dg/abi/covariant4.C: New.
From-SVN: r95005
Nathan Sidwell [Mon, 14 Feb 2005 09:24:41 +0000 (09:24 +0000)]
bitmap.h (bitmap_and_compl_into): Return bool.
* bitmap.h (bitmap_and_compl_into): Return bool.
* bitmap.c (bitmap_and_compl_into): Return changed flag.
From-SVN: r95004
Paolo Bonzini [Mon, 14 Feb 2005 08:52:24 +0000 (08:52 +0000)]
re PR bootstrap/19818 (GCC 4.0 cannot bootstrap itself)
include:
2005-02-08 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/19818
* ansidecl.h (PARAMS): Guard from redefinition.
libcpp:
2005-02-08 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/19818
* configure.ac: Check for declaration of basename and getopt.
* config.in: Regenerate.
* configure: Regenerate.
* internal.h (ustrcspn): New.
* macro.c (create_iso_definition): Fix allocation of memory.
(padding_token): Add cast to remove const-ness.
* pch.c (cpp_read_state): Use ustrcspn.
From-SVN: r95003
James A. Morrison [Mon, 14 Feb 2005 02:27:18 +0000 (02:27 +0000)]
re PR tree-optimization/19944 (cris-elf testsuite failures: gcc.dg/pr15784-1.c, gcc.dg/pr15784-2.c)
2005-02-13 James A. Morrison <phython@gcc.gnu.org>
PR tree-optimization/19944
* fold-const.c (fold): Re-add ABS_EXPR folding.
From-SVN: r95002
GCC Administrator [Mon, 14 Feb 2005 00:16:51 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r94999
David Edelsohn [Sun, 13 Feb 2005 21:31:35 +0000 (21:31 +0000)]
re PR target/19019 (GCC ldouble format incompatibility with XLC long double)
PR target/19019
* config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
{TARGET,MASK}_XL_COMPAT.
(SUBTARGET_SWITCHES): Rename xl-call to xl-compat. Use
MASK_XL_COMPAT.
* config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
* config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
TARGET_XL_COMPAT.
(rs6000_arg_partial_bytes): Same.
(rs6000_generate_compare): Generate PARALLEL for compare if TFmode
and XL compatibility enabled.
* config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
* config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
test to final condition.
(cmptf_internal2): New.
* doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
xl-compat. Add TFmode information to description.
From-SVN: r94991
Andrew Pinski [Sun, 13 Feb 2005 20:08:29 +0000 (20:08 +0000)]
re PR ada/19942 (Stage 2 compilation of ali.adb causes GNAT bug box)
2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
PR ada/19942
* utils.c (gnat_type_for_mode): Return null instead of ICE because we asked
for an unknown mode.
From-SVN: r94989
Kazu Hirata [Sun, 13 Feb 2005 19:05:03 +0000 (19:05 +0000)]
* flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
From-SVN: r94988
Jason Merrill [Sun, 13 Feb 2005 17:10:47 +0000 (12:10 -0500)]
temporarily revert last changes
From-SVN: r94987
James A. Morrison [Sun, 13 Feb 2005 16:26:11 +0000 (16:26 +0000)]
treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non scalar integer types.
2005-02-13 James A. Morrison <phython@gcc.gnu.org>
* treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
scalar integer types.
From-SVN: r94986
Tobias Schlüter [Sun, 13 Feb 2005 15:32:45 +0000 (16:32 +0100)]
trans-stmt.c (generate_loop_for_temp_to_lhs, [...]): Remove if whose condition is always true.
* trans-stmt.c (generate_loop_for_temp_to_lhs,
generate_loop_for_rhs_to_temp): Remove if whose condition is
always true.
From-SVN: r94985
Frank Ch. Eigler [Sun, 13 Feb 2005 12:58:28 +0000 (12:58 +0000)]
* typo fix
From-SVN: r94984
Frank Ch. Eigler [Sun, 13 Feb 2005 12:49:34 +0000 (12:49 +0000)]
re PR libmudflap/19319 (Mudflap produce many violations on simple, correct c++ program)
2005-02-13 Frank Ch. Eigler <fche@redhat.com>
PR mudflap/19319
* testsuite/libmudflap.c++/pass55-frag.c: New test.
From-SVN: r94983
Richard Guenther [Sun, 13 Feb 2005 10:25:02 +0000 (10:25 +0000)]
re PR libstdc++/11706 (std::pow(T, int) implementation pessimizes code)
2005-02-13 Richard Guenther <rguenth@gcc.gnu.org>
Paolo Carlini <pcarlini@suse.de>
PR libstdc++/11706
* include/c_std/std_cmath.h (pow): Use __builtin_powi[lf]
for integer overloads.
* testsuite/26_numerics/cmath/powi.cc: New.
Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
From-SVN: r94982
Jason Merrill [Sun, 13 Feb 2005 06:58:20 +0000 (01:58 -0500)]
cp-demangle.c (__cxa_demangle): Change resolution of ambiguous arguments.
* cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
arguments.
From-SVN: r94980
Jason Merrill [Sun, 13 Feb 2005 06:43:58 +0000 (01:43 -0500)]
re PR libmudflap/19319 (Mudflap produce many violations on simple, correct c++ program)
PR mudflap/19319
* gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
slot explicit.
PR c++/16405
* fold-const.c (fold_indirect_ref_1): Split out from...
(build_fold_indirect_ref): Here.
(fold_indirect_ref): New fn.
* tree.h: Declare it.
* gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
(gimplify_modify_expr_rhs): Likewise.
(gimplify_expr): Likewise.
From-SVN: r94979
James A. Morrison [Sun, 13 Feb 2005 06:41:01 +0000 (06:41 +0000)]
pr15784-1.c, [...]: New tests.
2005-02-13 James A. Morrison <phython@gcc.gnu.org>
* gcc.dg/pr15784-1.c, gcc.dg/pr15784-2.c, gcc.dg/pr15784-3.c: New tests.
From-SVN: r94978
James A. Morrison [Sun, 13 Feb 2005 06:21:35 +0000 (06:21 +0000)]
re PR tree-optimization/14303 ([tree-ssa] gcc.c-torture/execute/
20020720-1.c is not fully folded)
2005-02-13 James A. Morrison <phython@gcc.gnu.org>
PR tree-optimization/14303
PR tree-optimization/15784
* fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
Fold ABS_EXPR<x> < 0 to false. Fold ABS_EXPR<x> == 0 to x == 0 and
ABS_EXPR<x> != 0 to x != 0.
From-SVN: r94977
Kazu Hirata [Sun, 13 Feb 2005 03:58:21 +0000 (03:58 +0000)]
passes.c (rest_of_handle_gcse): Remove dead assignments to tem and tem2.
* passes.c (rest_of_handle_gcse): Remove dead assignments to
tem and tem2.
From-SVN: r94967
Kazu Hirata [Sun, 13 Feb 2005 03:49:53 +0000 (03:49 +0000)]
passes.c (rest_of_handle_gcse): Don't run cse_main and delete_trivially_dead_insns too many times.
* passes.c (rest_of_handle_gcse): Don't run cse_main and
delete_trivially_dead_insns too many times.
From-SVN: r94963
GCC Administrator [Sun, 13 Feb 2005 00:16:15 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r94949
Richard Henderson [Sat, 12 Feb 2005 20:02:35 +0000 (12:02 -0800)]
utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes...
* utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
From-SVN: r94946
Dorit Naishlos [Sat, 12 Feb 2005 19:33:44 +0000 (19:33 +0000)]
* gcc.dg/vect/vect-96.c: Fix typo.
From-SVN: r94945
Tobias Schlüter [Sat, 12 Feb 2005 15:44:01 +0000 (16:44 +0100)]
symbol.c (gfc_use_ha_derived): Remove, fold functionality into ...
* symbol.c (gfc_use_ha_derived): Remove, fold functionality into ...
(gfc_use_derived): ... this function.
From-SVN: r94942
Kriang Lerdsuwanakij [Sat, 12 Feb 2005 15:40:28 +0000 (15:40 +0000)]
re PR c++/14479 (enum definition in template class with template methods causes error.)
PR c++/14479
PR c++/19487
* pt.c (maybe_check_template_type): Remove.
* cp-tree.h (maybe_check_template_type): Remove prototype.
* name-lookup.c (maybe_process_template_type_declaration): Don't
use maybe_check_template_type.
* g++.dg/template/enum5.C: New test.
From-SVN: r94941
Kazu Hirata [Sat, 12 Feb 2005 15:21:14 +0000 (15:21 +0000)]
builtins.c, [...]: Update copyright.
* builtins.c, java-except.h, jcf-parse.c, jv-scan.c, lex.c,
parse-scan.y: Update copyright.
From-SVN: r94940
Kazu Hirata [Sat, 12 Feb 2005 15:17:56 +0000 (15:17 +0000)]
c-tree.h, [...]: Fix comment typos.
* c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
simplify-rtx.c, tree-ssa-live.h: Fix comment typos. Follow
spelling conventions.
From-SVN: r94939
Mark Wielaard [Sat, 12 Feb 2005 13:51:11 +0000 (13:51 +0000)]
Fixes bug libgcj/8170
Fixes bug libgcj/8170
* java/lang/ClassLoader.java (loadClass): Don't rewrap
ClassNotFoundException.
* gnu/java/lang/MainThread.java (run): Chain NoClassDefFoundError.
* gnu/gcj/runtime/NameFinder.java (remove_interpreter): Removed.
(remove_internal): New field superceding remove_interpreter.
(sanitizeStack): Remove all no-package classes starting with "_Jv_".
Remove no-class methods starting with "_Jv_". And Replace null
class or method names with the empty string. Stop at either the
MainThread or a real Thread run() method.
(newElement): Made static.
* java/net/URLClassLoader.java (findClass): Throw
ClassNotFoundExceptions including urls, plus parent using toString().
(thisString): New field.
(toString): New method.
From-SVN: r94935
Ira Rosen [Sat, 12 Feb 2005 12:57:12 +0000 (12:57 +0000)]
tree-vectorizer.c (vect_get_base_and_offset): Remove.
* tree-vectorizer.c (vect_get_base_and_offset): Remove.
(vect_is_simple_iv_evolution): Remove redundant parameter
and step check.
(vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
without last parameter.
(vect_analyze_pointer_ref_access): Get access_fn as parameter.
Return pointer step. Call vect_is_simple_iv_evolution without
last parameter. Check only that the step is multiple of size
type. Remove stmt_vinfo updates.
(vect_get_memtag_and_dr): Remove.
(vect_get_memtag): New function.
(vect_address_analysis): New function.
(vect_object_analysis): New function.
(vect_analyze_data_refs): Call vect_object_analysis and
vect_get_memtag. Update stmt_vinfo fields.
From-SVN: r94934
Ira Rosen [Sat, 12 Feb 2005 11:47:19 +0000 (11:47 +0000)]
tree-data-ref.c (array_base_name_differ_p): Check that the bases exist and are objects.
* tree-data-ref.c (array_base_name_differ_p): Check that the bases
exist and are objects. Remove checks for pointer.
* tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
(vect_create_data_ref_ptr): Likewise.
(vect_base_addr_differ_p): New function.
(vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
(vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
Don't set the DR_BASE_NAME field of data-ref.
(vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
From-SVN: r94932
Uros Bizjak [Sat, 12 Feb 2005 11:34:24 +0000 (12:34 +0100)]
optabs.h (enum optab_index): Add new OTI_ldexp.
* optabs.h (enum optab_index): Add new OTI_ldexp.
(ldexp_optab): Define corresponding macro.
* optabs.c (init_optabs): Initialize ldexp_optab.
* genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
patterns.
* builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
using ldexp_optab.
(expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
* config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
to implement ldexpf, ldexp and ldexpl built-ins as inline x87
intrinsics.
testsuite:
* gcc.dg/builtins-34.c: Also check ldexp*.
From-SVN: r94931
Ira Rosen [Sat, 12 Feb 2005 10:24:40 +0000 (10:24 +0000)]
tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base to base_address.
2005-02-13 Ira Rosen <irar@il.ibm.com>
* tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
to base_address.
* tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
stmt_vec_info.
(vect_get_base_and_offset): Always return an address.
(vect_create_addr_base_for_vector_ref): Remove treatment for
different data reference types.
(vect_compute_data_ref_alignment): Rename base to base_address in
stmt_vec_info. Get the object in order to force its alignment.
(vect_get_memtag_and_dr): Rename base to base_address in
stmt_vec_info. Extract the object for memtag analysis.
From-SVN: r94930
Hans-Peter Nilsson [Sat, 12 Feb 2005 07:46:43 +0000 (07:46 +0000)]
* gcc.dg/tree-ssa/
20040703-1.c: Quote decimal dot.
From-SVN: r94929
Per Bothner [Sat, 12 Feb 2005 06:12:40 +0000 (22:12 -0800)]
re PR java/15543 ("jv-scan --complexity" segfaults)
PR java/15543
* parse-scan.y (input_location): Remove variable.
(main_input_filename): New - replaces input_filename, which isn't
settable if USE_MAPPED_LOCATION.
* lex.c (java_init_lex): Wrap some more places in #ifndef JC1-LITE,
so we don't reference input_location or wfl_operator in that case.
* jv-scan.c (expand_location): Remove - no longer used.
(main): Set main_input_filename rather than input_filename.
From-SVN: r94928
Hans-Peter Nilsson [Sat, 12 Feb 2005 01:08:33 +0000 (01:08 +0000)]
re PR regression/19898 (cris-elf testsuite failure: gcc.c-torture/execute/strlen-1.c execution, -O2 and higher)
PR regression/19898.
* config/cris/cris.c (cris_notice_update_cc): When testing if insn
changes cc_status, use apply modified_in_p to part of cc_status
and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
body.
From-SVN: r94914
Richard Henderson [Sat, 12 Feb 2005 00:26:57 +0000 (16:26 -0800)]
tree-complex.c (expand_complex_libcall): New.
* tree-complex.c (expand_complex_libcall): New.
(expand_complex_multiplication): Use it for c99 compliance.
(expand_complex_division): Likewise.
* fold-const.c (fold_complex_add, fold_complex_mult): New.
(fold): Call them.
* builtins.c (built_in_names): Remove const.
* tree.c (build_common_builtin_nodes): Build complex arithmetic
builtins.
* tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
(BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
(built_in_names): Remove const.
* c-common.c (c_common_type_for_mode): Handle complex modes.
* flags.h, toplev.c (flag_complex_method): Rename from
flag_complex_divide_method.
* libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
__mulsc3, __muldc3, __mulxc3, __multc3): New.
* libgcc2.h: Declare them.
* libgcc-std.ver: Export them.
* mklibgcc.in (lib2funcs): Build them.
From-SVN: r94909
GCC Administrator [Sat, 12 Feb 2005 00:16:59 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r94907
Janis Johnson [Sat, 12 Feb 2005 00:05:08 +0000 (00:05 +0000)]
13450.cc: Fix XFAIL selector.
* testsuite/26_numerics/complex/13450.cc: Fix XFAIL selector.
* testsuite/26_numerics/complex/complex_value.cc: Ditto.
* testsuite/26_numerics/complex/pow.cc: Ditto.
From-SVN: r94904
Janis Johnson [Fri, 11 Feb 2005 22:40:16 +0000 (22:40 +0000)]
libstdc++.exp: Load target-supports-dg.exp.
* testsuite/lib/libstdc++.exp: Load target-supports-dg.exp.
* testsuite/26_numerics/complex/13450.cc: XFAIL for broken_cplxf_arg.
* testsuite/26_numerics/complex/complex_value.cc: Ditto.
* testsuite/26_numerics/complex/pow.cc: Ditto.
From-SVN: r94902
Janis Johnson [Fri, 11 Feb 2005 22:36:53 +0000 (22:36 +0000)]
gcc-dg.exp: (dg-require-weak...
* lib/gcc-dg.exp: (dg-require-weak, dg-require-visibility,
dg-require-alias, dg-require-gc-sections, dg-require-profiling,
dg-require-dll, dg-require-iconv, dg-require-named-sections,
dg-require-effective-target, dg-skip-if, dg-xfail-if, selector_opd,
selector_list, selector_expression, dg-process-target): Move to new
file target-supports-dg.exp.
* lib/target-supports-dg.exp: New.
From-SVN: r94901
Janis Johnson [Fri, 11 Feb 2005 22:34:57 +0000 (22:34 +0000)]
target-supports.exp (check_effective_target_broken_cplxf_arg): New.
* lib/target-supports.exp (check_effective_target_broken_cplxf_arg):
New.
From-SVN: r94900
Janis Johnson [Fri, 11 Feb 2005 22:33:16 +0000 (22:33 +0000)]
cls_align_longdouble.c: Remove dg-options.
* testsuite/libffi.call/cls_align_longdouble.c: Remove dg-options.
* testsuite/libffi.call/float.c: Ditto.
* testsuite/libffi.call/float2.c: Ditto.
* testsuite/libffi.call/float3.c: Ditto.
From-SVN: r94899
Steven Bosscher [Fri, 11 Feb 2005 21:52:34 +0000 (21:52 +0000)]
re PR tree-optimization/19876 (g++ starts eating all the memory and the CPU)
PR tree-optimization/19876
Partially revert my change from 2005-01-14
* tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
(compute_antic): ...and remove the loop here.
From-SVN: r94896
Jakub Jelinek [Fri, 11 Feb 2005 21:12:48 +0000 (22:12 +0100)]
re PR c++/19666 (Trouble with prt-to-members: rejects-valid/ICE in fold_convert)
PR c++/19666
2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
* fold-const.c (fold_convert): Treat OFFSET_TYPE like
POINTER_TYPE and INTEGER_TYPE.
* gcc/testsuite/g++.dg/other/ptrmem6.C: New test.
[[Split portion of a mixed commit.]]
From-SVN: r94893.2
Jakub Jelinek [Fri, 11 Feb 2005 21:08:44 +0000 (22:08 +0100)]
re PR middle-end/19858 (ICE on simple SSE code)
PR middle-end/19858
* fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
is number of inner's bits, avoid creating a BIT_FIELD_REF.
* gcc.c-torture/compile/
20050210-1.c: New test.
From-SVN: r94892
Jakub Jelinek [Fri, 11 Feb 2005 21:05:28 +0000 (22:05 +0100)]
sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of crtend.o if -pie.
* config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
crtend.o if -pie. Use %{x:a;:b} spec syntax.
From-SVN: r94890
Richard Henderson [Fri, 11 Feb 2005 20:22:23 +0000 (12:22 -0800)]
re PR c++/19634 (Infinite memory usage on Alpha)
PR c++/19632
* pt.c (get_mostly_instantiated_function_type): Save and restore
flag_access_control instead of push/pop_access_scope.
From-SVN: r94889
Daniel Jacobowitz [Fri, 11 Feb 2005 20:18:59 +0000 (20:18 +0000)]
linux-unwind.h (mips_fallback_frame_state): Adjust offsets for the big-endian 32-bit case.
* config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
offsets for the big-endian 32-bit case.
From-SVN: r94888
Joseph Myers [Fri, 11 Feb 2005 19:55:07 +0000 (19:55 +0000)]
* config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
From-SVN: r94887
Dale Johannesen [Fri, 11 Feb 2005 18:12:33 +0000 (18:12 +0000)]
cselib.c (cselib_process_insn): Clear out regs where HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
2005-02-11 Dale Johannesen <dalej@apple.com>
* cselib.c (cselib_process_insn): Clear out regs where
HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
* reload.c (find_equiv_reg): Ditto.
From-SVN: r94885
Mark Mitchell [Fri, 11 Feb 2005 17:15:50 +0000 (17:15 +0000)]
re PR c++/19755 (-Wmissing-braces doesn't warn anymore)
PR c++/19755
* decl.c (reshape_init): Issue warnings about missing braces.
PR c++/19755
* g++.dg/warn/Wbraces1.C: New test.
From-SVN: r94882
Kazu Hirata [Fri, 11 Feb 2005 16:28:37 +0000 (16:28 +0000)]
* cp-tree.def, except.c, ptree.c: Update copyright.
From-SVN: r94881
Ian Lance Taylor [Fri, 11 Feb 2005 15:09:53 +0000 (15:09 +0000)]
read-rtl.c (read_rtx_1): Give fatal error if we see a vector with no elements.
* read-rtl.c (read_rtx_1): Give fatal error if we see a vector
with no elements.
From-SVN: r94879
Ian Lance Taylor [Fri, 11 Feb 2005 15:07:33 +0000 (15:07 +0000)]
tree.c (build_function_type_list): Work correctly if there are no arguments.
* tree.c (build_function_type_list): Work correctly if there are
no arguments.
From-SVN: r94878
Ulrich Weigand [Fri, 11 Feb 2005 14:40:55 +0000 (14:40 +0000)]
s390.md ("*cmpdi_cct", [...]): Use %h instead of %c to print immediate operand.
* config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
"*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
TARGET_ZARCH instead of TARGET_64BIT.
From-SVN: r94877
Ralf Corsepius [Fri, 11 Feb 2005 08:13:12 +0000 (09:13 +0100)]
2005-02-11 Ralf Corsepius <ralf.corsepius@rtems.org>
* config/rs6000/t-rtems:
(MULTILIB_OPTIONS): Remove mcpu=602.
(MUTLILIB_DIRNAMES): Remove m602.
(MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
Let mcpu=602 match mcpu=603.
(MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
From-SVN: r94876
John David Anglin [Fri, 11 Feb 2005 01:46:20 +0000 (01:46 +0000)]
linux-unwind.h (pa32_fallback_frame_state): Handle misaligned signal trampolines.
* pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
signal trampolines.
From-SVN: r94869
David Daney [Fri, 11 Feb 2005 01:12:57 +0000 (01:12 +0000)]
linux-unwind.h: Add exception clause to copyright.
2005-02-10 David Daney <ddaney@avtrex.com>
* config/alpha/linux-unwind.h: Add exception clause to copyright.
* config/i386/linux-unwind.h: Likewise.
* config/ia64/linux-unwind.h: Likewise.
* config/mips/linux-unwind.h: Likewise.
* config/pa/linux-unwind.h: Likewise.
* config/rs6000/linux-unwind.h: Likewise.
* config/s390/linux-unwind.h: Likewise.
* config/sh/linux-unwind.h: Likewise.
* config/sparc/linux-unwind.h: Likewise.
From-SVN: r94868
GCC Administrator [Fri, 11 Feb 2005 00:18:19 +0000 (00:18 +0000)]
Daily bump.
From-SVN: r94863
Ian Lance Taylor [Thu, 10 Feb 2005 23:29:41 +0000 (23:29 +0000)]
* MAINTAINERS: Update my e-mail address.
From-SVN: r94859
Steven Bosscher [Thu, 10 Feb 2005 22:57:30 +0000 (22:57 +0000)]
re PR tree-optimization/17549 (10% increase in codesize with C code compared to GCC 3.3)
PR tree-optimization/17549
* tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
TER to replace a DEF with its expression if the DEF and the
rhs of the expression we replace into have the same root
variable.
From-SVN: r94853
Richard Sandiford [Thu, 10 Feb 2005 20:43:44 +0000 (20:43 +0000)]
mips.md: Fix the placement of the match_scratch in the lea64 peephole2.
* config/mips/mips.md: Fix the placement of the match_scratch in the
lea64 peephole2.
From-SVN: r94846
Kazu Hirata [Thu, 10 Feb 2005 20:13:21 +0000 (20:13 +0000)]
cse.c, [...]: Fix comment typos.
* cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
Fix comment typos.
From-SVN: r94845
Mike Stump [Thu, 10 Feb 2005 19:21:33 +0000 (19:21 +0000)]
Fix typo...
From-SVN: r94843
Mike Stump [Thu, 10 Feb 2005 19:05:34 +0000 (19:05 +0000)]
* libsupc++/del_op.cc: Don't include cstdlib when !_GLIBCXX_HOSTED.
From-SVN: r94842
Zdenek Dvorak [Thu, 10 Feb 2005 19:02:44 +0000 (20:02 +0100)]
tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
* tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
(strip_offset): Handle addresses.
(add_address_candidates): Use strip_offset.
(difference_cost): Reflect strip_offset change.
(force_var_cost, difference_cost): Strip nops.
From-SVN: r94841
Kazu Hirata [Thu, 10 Feb 2005 18:59:07 +0000 (18:59 +0000)]
builtins.def, [...]: Update copyright.
* builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
config/cris/cris-protos.h, config/cris/cris.c: Update
copyright.
From-SVN: r94840
Kazu Hirata [Thu, 10 Feb 2005 18:46:31 +0000 (18:46 +0000)]
* df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
From-SVN: r94839
Tom Tromey [Thu, 10 Feb 2005 18:33:54 +0000 (18:33 +0000)]
Makefile.in: Rebuilt.
* external/sax/Makefile.in: Rebuilt.
* external/sax/Makefile.am (all-local): Removed.
(BUILT_SOURCES): New variable.
(mostlyclean-local): No error if no classes to delete.
* external/w3c_dom/Makefile.in: Rebuilt.
* external/w3c_dom/Makefile.am (all-local): Removed.
(BUILT_SOURCES): New variable.
(mostlyclean-local): No error if no classes to delete.
From-SVN: r94838
Jeff Law [Thu, 10 Feb 2005 17:53:46 +0000 (10:53 -0700)]
tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
* tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
(lookup_avail_expr): Similarly.
From-SVN: r94836
Andreas Jaeger [Thu, 10 Feb 2005 15:43:53 +0000 (16:43 +0100)]
* init.c (__gnat_initialize): Mark parameter as unused.
From-SVN: r94832
Richard Guenther [Thu, 10 Feb 2005 15:16:51 +0000 (15:16 +0000)]
builtins.c (fold_builtin_powi): New function.
2005-02-10 Richard Guenther <rguenth@gcc.gnu.org>
* builtins.c (fold_builtin_powi): New function.
(fold_builtin_1): Call it.
* gcc.dg/builtins-52.c: New testcase.
From-SVN: r94831
Arnaud Charlet [Thu, 10 Feb 2005 14:05:21 +0000 (15:05 +0100)]
Minor reformatting.
From-SVN: r94829
Arnaud Charlet [Thu, 10 Feb 2005 14:04:42 +0000 (15:04 +0100)]
New file.
From-SVN: r94828
Arnaud Charlet [Thu, 10 Feb 2005 14:00:09 +0000 (15:00 +0100)]
Resync.
From-SVN: r94827
Arnaud Charlet [Thu, 10 Feb 2005 13:57:23 +0000 (14:57 +0100)]
[multiple changes]
2005-02-09 Sergey Rybin <rybin@adacore.com>
* gnat_ugn.texi: Add to the gnatpp section the paragraph describing
the difference between compact and incompact layout and add the record
representation clause to the example illustrating different layouts.
Add the description of '-A5' gnatpp option ("align 'AT' keywords in
component clauses").
2005-02-09 Florian Villoing <villoing@adacore.com>
* gnat_ugn.texi: Fix typos.
Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
@file.
Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
in the generated documentation.
2005-02-09 Arnaud Charlet <charlet@adacore.com>
* gnat_ugn.texi: Remove all mentions of FSU threads, which are no
longer supported.
Update linker wrapper when linking with non GNU C++.
2005-02-09 Pascal Obry <obry@adacore.com>
* gnat_ugn.texi:
Document the procedure to debug the DllMain routine on Windows.
Add note about -funwind-tables and mixed Ada and C/C++ programming in
ZCX mode.
Document new BIND qualifer /RETURN_CODES=VMS.
2005-02-09 Ben Brosgol <brosgol@adacore.com>
* gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
Edited gnatmetric chapter
2005-02-09 Robert Dewar <dewar@adacore.com>
* gnat_rm.texi:
Changes to document new wide wide character support
For AI-285
Update documentation on Normalize_Scalars and Initialize_Scalars
2005-02-09 Pascal Obry <obry@adacore.com>
* s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
2005-02-09 Jose Ruiz <ruiz@adacore.com>
* s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
from the VxWorks kernel) that is needed for getting the active
priority of the different tasks.
* s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
Use a pragma Elaborate_Body in the spec file instead.
Noticed by code reading.
2005-02-09 Thomas Quinot <quinot@adacore.com>
* exp_util.ads: Minor correction in comment.
2005-02-09 Arnaud Charlet <charlet@adacore.com>
* s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
since this procedure is now too complex to be worth inlining.
From-SVN: r94826
Arnaud Charlet [Thu, 10 Feb 2005 13:57:01 +0000 (14:57 +0100)]
usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions) Slight fix to...
* usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
Slight fix to documentation of -gnaty with no parameters
* xr_tabls.ads: Add ??? comment for missing overall comment
* xsinfo.adb: Make default file name be sinfo.h, since this is what
we now use by default.
* xsnames.adb: Adjust end of file test to look for five space followed
by '#' instead of six spaces. The format of xsnames.adb was modified
in the last update.
* a-numeri.ads: Add reference to AI-388 for greek letter pi
identifier.
* clean.adb: Minor reformatting.
* gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
gnatname.adb: Minor reformatting
Add 2005 to copyright output when utility is run
* csets.adb: Eliminate obsolete comment
* debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
Update comments.
* sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
From-SVN: r94825
Arnaud Charlet [Thu, 10 Feb 2005 13:56:44 +0000 (14:56 +0100)]
s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite recursion warnings when...
* s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
recursion warnings when compiled with -gnatdm.
From-SVN: r94824
Arnaud Charlet [Thu, 10 Feb 2005 13:56:32 +0000 (14:56 +0100)]
s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len] fields for foreign threads.
* s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
fields for foreign threads.
From-SVN: r94823
Arnaud Charlet [Thu, 10 Feb 2005 13:56:20 +0000 (14:56 +0100)]
s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
* s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
Minor reformatting.
From-SVN: r94822
Arnaud Charlet [Thu, 10 Feb 2005 13:56:10 +0000 (14:56 +0100)]
sem_ch7.adb (Uninstall_Declarations): Exchange full and private views of a private type after handling its private...
* sem_ch7.adb (Uninstall_Declarations): Exchange full and private
views of a private type after handling its private dependents, to
maintain proper stack discipline between entry and exit from the
package.
From-SVN: r94821
Arnaud Charlet [Thu, 10 Feb 2005 13:55:59 +0000 (14:55 +0100)]
sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even with expansion disabled.
* sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
with expansion disabled. The actual subtype is needed among other
places when the selected component appears in the context of a loop
bound, and denotes a packed array.
(Operator_Check): Always use the first subtype in the
error message, to avoid the appearance of internal base types.
(Transform_Object_Operation): Copy each actual in full
to the parameter associations of the constructed call, rather than
using the shallow copy mechanism of New_Copy_List. This ensures that
the chaining of named associations is done properly.
(Complete_Object_Operation): Rewrite node, rather than
replacing it, so that we can trace back to the original selected
component.
* sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
and calls that use object notation, if the called function is not
declared in a withed unit, place the elaboration constraint on the
unit in the context that makes the function accessible.
(Check_Elab_Subtype_Declaration): Check whether a subtype declaration
imposes an elaboration constraint between two packages.
From-SVN: r94820
Arnaud Charlet [Thu, 10 Feb 2005 13:55:43 +0000 (14:55 +0100)]
prj-makr.adb (Process_Directory): Put file name in canonical case before matching against the patterns.
* prj-makr.adb (Process_Directory): Put file name in canonical case
before matching against the patterns.
If gnatname has been invoked as <prefix>-gnatname
then invoke the compiler as <prefix>-gcc, not just "gcc".
From-SVN: r94819
Arnaud Charlet [Thu, 10 Feb 2005 13:55:33 +0000 (14:55 +0100)]
re PR ada/16592 (Ada tools don't use the newly built shared libraries)
* s-asthan-vms.adb: Removed.
* s-asthan-vms-alpha.adb: Added.
* Makefile.in [VMS] (LN,LN_S): Define as cp -p
Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
[VMS]: Add translations for g-enblsp.adb.
(LIBGNAT_SRCS): Add seh_init.c.
(LIBGNAT_OBJS): Add seh_init.o.
PR ada/16592
Link all gnat tools with -static-libgcc, since
-shared-libgcc is now used by default on some systems (e.g. linux with
recent binutils).
Remove references to Makefile.prolog/generic, no longer used.
From-SVN: r94818
Arnaud Charlet [Thu, 10 Feb 2005 13:54:58 +0000 (14:54 +0100)]
make.adb (Gnatmake): Do not fail when the main project has no object directory.
* make.adb (Gnatmake): Do not fail when the main project has no object
directory.
From-SVN: r94817
Arnaud Charlet [Thu, 10 Feb 2005 13:54:45 +0000 (14:54 +0100)]
init.c (__gnat_initialize): Add a new parameter eh which contains the address of the exception registration.
* init.c (__gnat_initialize): Add a new parameter eh which contains the
address of the exception registration. The Win32 version of this
routine calls __gnat_install_SEH_handler() to initialize the SEH
(Structured Exception Handling) handler.
(__gnat_error_handler) [Win32]: Removed. Not needed as we use
SEH (Structured Exception Handling) now.
(__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
(__gnat_initialize for ppc-vxworks): Adjust comments and the
preprocessor condition protecting the call to the extra eh setup
subprogram, which is only available for the ppc target.
(__gnat_clear_exception_count): replaced reference to
variable taskIdCurrent by call to taskIdSelf(), cleaner.
* seh_init.c: New file.
* Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
(GNATBIND_OBJS): Idem.
* misc.c (gnat_parse_file): Update call to __gnat_initialize. This
routine takes a new parameter (a pointer to the exception registration
for the SEH (Structured Exception Handling) support.
* raise.h: (__gnat_install_SEH_handler): New prototype.
Update copyright notice.
* s-tassta.adb (Task_Wrapper): Declare the exception registration
record and initialize it by calling __gnat_install_SEH_handler.
From-SVN: r94816
Arnaud Charlet [Thu, 10 Feb 2005 13:54:28 +0000 (14:54 +0100)]
gnatbl.c: [VMS] (_POSIX_EXIT): Define.
* gnatbl.c: [VMS] (_POSIX_EXIT): Define.
[VMS] (#define exit hack): Remove.
From-SVN: r94815
Arnaud Charlet [Thu, 10 Feb 2005 13:54:15 +0000 (14:54 +0100)]
exp_ch4.adb (Expand_Composite_Equality): If a component is an unchecked union with no inferable discriminants...
* exp_ch4.adb (Expand_Composite_Equality): If a component is an
unchecked union with no inferable discriminants, return a
Raise_Program_Error node, rather than inserting it at the point the
type is frozen.
(Expand_Record_Equality, Component_Equality): Handle properly the case
where some subcomponent is an unchecked union whose generated equality
code raises program error.
From-SVN: r94814
Arnaud Charlet [Thu, 10 Feb 2005 13:53:58 +0000 (14:53 +0100)]
exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a component of an array of arrays in an...
* exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
component of an array of arrays in an assignment context, and the
aggregate has component associations that require sliding on
assignment, force reanalysis of the aggregate to generate a temporary
before the assignment.
(Must_Slide): Make global to the package, for use in Gen_Assign.
From-SVN: r94813
Eric Botcazou [Thu, 10 Feb 2005 13:53:21 +0000 (14:53 +0100)]
Fix for c330001 - PR ada/19386
2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
Fix for c330001 - PR ada/19386
* decl.c:
(gnat_to_gnu_field): Do not necessarily invoke make_packable_type
on the field if Pragma Component_Alignment (Storage_Unit).
(gnat_to_gnu_entity, case object): Do not treat a renaming that has
side-effects as if it were a constant; also make SAVE_EXPR to protect
side-effects.
(gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
UNION_TYPE.
(make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
(components_to_record): Test it.
Fix improper usage of REFERENCE_CLASS_P.
* utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
RECORD_TYPE.
* utils2.c: Minor reformatting.
* utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
handle other cases like RECORD_TYPE.
* utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
From-SVN: r94812
Doug Rupp [Thu, 10 Feb 2005 13:51:58 +0000 (14:51 +0100)]
adaint.c, [...] (to_ptr32): New function.
2005-02-09 Doug Rupp <rupp@adacore.com>
Thomas Quinot <quinot@adacore.com>
* adaint.c, adaint.h
[VMS] (to_ptr32): New function.
(MAYBE_TO_PTR32): New macro.
(__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
for pointer size.
[VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
[VMS] (#define fork()): Remove since unneccessary.
(__gnat_set_close_on_exec): New routine to support
GNAT.OS_Lib.Set_Close_On_Exec.
* g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
the parent side as close-on-exec so that they are not inherited by the
child.
* g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
set or clear the FD_CLOEXEC flag on a file descriptor.
From-SVN: r94811