Andreas Jaeger [Mon, 14 Jun 2004 13:53:45 +0000 (15:53 +0200)]
* gcc_update: Add libcpp.
From-SVN: r83100
Arnaud Charlet [Mon, 14 Jun 2004 13:19:14 +0000 (15:19 +0200)]
[multiple changes]
2004-06-14 Pascal Obry <obry@gnat.com>
* gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
Windows. Fix minor typo.
* mlib-tgt-mingw.adb: New implementation using the GCC -shared option
which is now supported on Windows. With this implementation using the
Library Project feature is no different on Windows than on UNIX.
2004-06-14 Vincent Celier <celier@gnat.com>
* makegpr.adb (Compile_Sources): Nothing to do when there are no
non-Ada sources.
* mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
* prj-part.adb (Parse_Single_Project): When a duplicate project name is
found, show the project name and the path of the previously parsed
project file.
2004-06-14 Ed Schonberg <schonberg@gnat.com>
* exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
array, avoid copying the actual before the call.
2004-06-14 Thomas Quinot <quinot@act-europe.fr>
* g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
Instead, allocate memory on worst-case alignment assumptions, and then
return an aligned address within the allocated zone.
2004-06-14 Robert Dewar <dewar@gnat.com>
* bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
elab entities in predefined units in No_Run_Time_Mode.
(Gen_Adainit_C): Same fix
(Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
units in No_Run_Time_Mode
(Gen_Elab_Calls_C): Same fix
* symbols-vms-alpha.adb: Minor reformatting
* g-debpoo.ads: Minor reformatting
* lib.adb (In_Same_Extended_Unit): Version working on node id's
* lib.ads (In_Same_Extended_Unit): Version working on node id's
* lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
working on nodes.
* make.adb: Minor reformatting
* par-ch12.adb: Minor reformatting
* par-prag.adb: Add dummy entry for pragma Profile_Warnings
* prj-strt.adb: Minor reformatting
* restrict.ads, restrict.adb: Redo handling of profile restrictions to
be more general.
* sem_attr.adb: Minor reformatting
* sem_ch7.adb: Minor reformatting
* sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
for type in the same unit as the object declaration.
* sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
static string expressions and not just string literals.
Minor reformatting
(Set_Warning): Reset restriction warning flag for restriction pragma
Implement pragma Profile_Warnings
Implement pragma Profile (Restricted)
Give obolescent messages for old restrictions and pragmas
* snames.h, snames.ads, snames.adb: Add new entry for pragma
Profile_Warnings.
* s-rident.ads: Add declarations for restrictions required by profile
Restricted and profile Ravenscar.
* targparm.ads, targparm.adb: Allow pragma Profile in system.ads
* gnat_ugn.texi: Correct some missing entries in the list of GNAT
configuration pragmas.
From-SVN: r83099
Paolo Carlini [Mon, 14 Jun 2004 13:03:45 +0000 (13:03 +0000)]
slist: Trivial formatting fixes.
2004-06-14 Paolo Carlini <pcarlini@suse.de>
* include/ext/slist: Trivial formatting fixes.
From-SVN: r83098
Ulrich Weigand [Mon, 14 Jun 2004 12:11:06 +0000 (12:11 +0000)]
s390.c: Include "tree-gimple.h".
* config/s390/s390.c: Include "tree-gimple.h".
(s390_gimplify_va_arg): New function.
(TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
(s390_va_arg): Remove.
* config/s390/s390-protos.h (s390_va_arg): Remove.
* config/s390/s390.h (EXPAND_BUILTIN_VA_ARG): Call abort ().
From-SVN: r83090
J"orn Rennecke [Mon, 14 Jun 2004 12:09:08 +0000 (12:09 +0000)]
basic-block.h (could_fall_through): Declare.
* basic-block.h (could_fall_through): Declare.
* cfganal.c (can_fallthru): Succeed if the target is EXIT_BLOCK_PTR.
Fail if the source already has a fallthrough edge to the exit
block pointer.
(could_fall_through): New function.
* cfgbuild.c (make_edges): Check if we already have a fallthrough
edge to the exit block pointer.
* cfglayout.c (fixup_fallthru_exit_predecessor): Check that it is
not called before reload has completed.
Handle special case of first block having a fall-through exit edge.
(cfg_layout_finalize): Don't call it before reload or if we have
rtl epilogues.
(fixup_reorder_chain): A fall through to the exit block does not
require the block to come last. Add sanity checks.
* cfgrtl.c (rtl_split_edge): Add special handling of fall through
edges to the exit block.
* function.c (cfglayout.h): #include.
(thread_prologue_and_epilogue_insns): If we have neither return nor
epilogue, but a fall through to the exit block from mid-function,
force a non-fall-through exit.
* Makefile.in (function.o): Depend on CFGLAYOUT_H.
From-SVN: r83089
Paolo Carlini [Mon, 14 Jun 2004 10:49:36 +0000 (10:49 +0000)]
locale_facets.tcc (time_get<>::_M_extract_name): Don't use the 'magic number' 10 in the computation of __minlen...
2004-06-14 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
Don't use the 'magic number' 10 in the computation of __minlen;
never access __name past __minlen; in the loop over __i3, don't
decrease __nmatches and increase __i3 at once, only either of
the two; tidy.
From-SVN: r83088
Alan Modra [Mon, 14 Jun 2004 10:05:07 +0000 (10:05 +0000)]
rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu for power5 and rs64a.
* config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu
for power5 and rs64a. Correct condition for default. Correct power3,
620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries. Add -many.
From-SVN: r83086
Andrew Pinski [Mon, 14 Jun 2004 07:46:33 +0000 (07:46 +0000)]
linking.m (_objcInit): New empty function for Darwin only.
2004-06-14 Andrew Pinski <pinskia@physics.uc.edu>
* linking.m (_objcInit): New empty function
for Darwin only.
From-SVN: r83082
Paolo Bonzini [Mon, 14 Jun 2004 07:45:43 +0000 (07:45 +0000)]
Fixed 2005-05-25 entry to mention that rtlhooks-def.h was added.
From-SVN: r83081
Steven Bosscher [Mon, 14 Jun 2004 04:55:35 +0000 (04:55 +0000)]
gcse.c (hash_scan_set, [...]): Revert previous change, don't use CALL_P.
2004-06-13 Steven Bosscher <stevenb@suse.de>
* gcse.c (hash_scan_set, hash_scan_insn, mark_set, mark_oprs_set):
Revert previous change, don't use CALL_P.
From-SVN: r83080
Jason Merrill [Mon, 14 Jun 2004 03:41:31 +0000 (23:41 -0400)]
tree.h: Move std_gimplify_va_arg_expr protoype here.
* tree.h: Move std_gimplify_va_arg_expr protoype here.
* tree-gimple.h: From here.
From-SVN: r83079
Daniel Berlin [Mon, 14 Jun 2004 01:27:57 +0000 (01:27 +0000)]
Fix PR tree-optimization/15979 Fix PR tree-optimization/15981
2004-06-13 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/15979
Fix PR tree-optimization/15981
* tree-ssa-pre.c (insert_aux): Fix faulty logic so that we don't
try to insert values undefined along some path.
From-SVN: r83076
GCC Administrator [Mon, 14 Jun 2004 00:16:16 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r83074.2
GCC Administrator [Mon, 14 Jun 2004 00:16:11 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r83073.2
Paul Brook [Sun, 13 Jun 2004 23:23:24 +0000 (23:23 +0000)]
* intrinsic.c (add_sym_2s): Use correct function types.
From-SVN: r83071
Paul Brook [Sun, 13 Jun 2004 22:58:30 +0000 (22:58 +0000)]
Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
* Makefile.am (gfor_helper_src): Add runtime/normalize.f90.
* configure.ac: Add checks for nextafter and nextafterf.
* Makefile.in, config.h.in, configure: Regenerate.
* libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare.
* intrinsics/rand.c (rand): Use normalize_r4_i4.
* intrinsics/random.c (random_r4): Use normalize_r4_i4.
(random_r8): Use normalize_r8_i8.
* runtime/normalize.c: New file.
testsuite/
* gfortran.fortran-torture/execute/random_2.f90: New test.
From-SVN: r83070
Daniel Berlin [Sun, 13 Jun 2004 22:52:34 +0000 (22:52 +0000)]
tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things are available everywhere too.
2004-06-13 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things
are available everywhere too.
From-SVN: r83069
Andrew Pinski [Sun, 13 Jun 2004 22:15:51 +0000 (22:15 +0000)]
fold-const.c (fold_checksum_tree <case 't'>): Only look at TREE_VALUES if the EXPR is an ENUMERAL_TYPE.
2004-06-13 Andrew Pinski <pinskia@physics.uc.edu>
* fold-const.c (fold_checksum_tree <case 't'>): Only
look at TREE_VALUES if the EXPR is an ENUMERAL_TYPE.
Only look at TYPE_MIN_VALUE and TYPE_MAX_VALUE if
EXPR is an INTEGERAL_TYPE or a scalar float type.
From-SVN: r83068
Andrew Pinski [Sun, 13 Jun 2004 21:41:45 +0000 (21:41 +0000)]
decl.c (grokdeclarator): Do not depend on C99's _Bool's behavior.
2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
* decl.c (grokdeclarator): Do not depend on C99's _Bool's behavior.
From-SVN: r83066
Diego Novillo [Sun, 13 Jun 2004 19:48:53 +0000 (19:48 +0000)]
* tree-sra.c (tree_sra): Update documentation.
From-SVN: r83064
Steven G. Kargl [Sun, 13 Jun 2004 18:25:53 +0000 (18:25 +0000)]
random.c: Fix several spelling and formatting mistakes in comments.
* random.c: Fix several spelling and formatting mistakes in
comments.
(random_r8): Fix loop to make random numbers range in [0,1(.
Co-Authored-By: Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
From-SVN: r83063
Tobias Schlüter [Sun, 13 Jun 2004 17:48:23 +0000 (19:48 +0200)]
random.c (random_r4): Burn a random number.
2004-06-13 Steven G. Kargl <kargls@comcast.net>
* random.c (random_r4): Burn a random number.
(random_r8): fix infinite loop.
From-SVN: r83062
Joseph Myers [Sun, 13 Jun 2004 17:14:09 +0000 (18:14 +0100)]
c-typeck.c (comptypes, [...]): Remove flags parameter.
* c-typeck.c (comptypes, tagged_types_tu_compatible_p,
function_types_compatible_p, type_lists_compatible_p): Remove
flags parameter.
* c-tree.h (comptypes): Likewise.
(COMPARE_STRICT): Remove.
* c-decl.c, c-lang.c, c-parse.in, c-typeck.c, objc/objc-act.c: All
callers changed.
From-SVN: r83061
Eric Christopher [Sun, 13 Jun 2004 16:24:52 +0000 (16:24 +0000)]
c-decl.c (diagnose_mismatched_decls): Improve error message.
2004-06-13 Eric Christopher <echristo@redhat.com>
* c-decl.c (diagnose_mismatched_decls): Improve error message.
Remove unused code.
* c-typeck.c (comptypes): Add location in standard we're checking.
2004-06-13 Eric Christopher <echristo@redhat.com>
* gcc.dg/noncompile/redecl-1.c: Fix error message.
From-SVN: r83060
Paolo Carlini [Sun, 13 Jun 2004 09:52:14 +0000 (09:52 +0000)]
locale_facets.tcc (time_get<>::do_get_time, [...]): Use only once _M_extract_via_format...
2004-06-13 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (time_get<>::do_get_time,
time_get<>::do_get_date): Use only once _M_extract_via_format,
instead of going through "%X"/"%x" and calling it two times
(+ using widen).
From-SVN: r83059
Kaz Kojima [Sun, 13 Jun 2004 06:35:56 +0000 (06:35 +0000)]
libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4.
* config/sh/libgcc-std.ver: Add __unorddf2 and __unordsf2 with
version 3.3.4.
From-SVN: r83057
Roger Sayle [Sun, 13 Jun 2004 02:46:08 +0000 (02:46 +0000)]
expmed.c (shift_cost, [...]): Additionally index by machine mode.
* expmed.c (shift_cost, shiftadd_cost, shiftsub_cost): Additionally
index by machine mode.
(init_expmed): Initialize shift_cost, shiftadd_cost and shiftsub_cost
tables inside the loop over machine modes.
(synth_mult, expand_mult_highpart_optab, expand_mult_highpart,
expand_divmod): Index shift*_cost by the appropriate machine mode.
From-SVN: r83053
Eric Christopher [Sun, 13 Jun 2004 00:40:37 +0000 (00:40 +0000)]
s390.h: Rename TARGET_TPF to TARGET_TPF_PROFILING.
2004-06-12 Eric Christopher <echristo@redhat.com>
* config/s390/s390.h: Rename TARGET_TPF to TARGET_TPF_PROFILING.
* config/s390/s390.md: Ditto.
* config/s390/s390.c: Ditto.
(s390_frame_info): Conditionalize frame and setup info on
TARGET_TPF_PROFILING.
(s390_arg_frame_offset): Ditto.
From-SVN: r83051
GCC Administrator [Sun, 13 Jun 2004 00:16:53 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r83049.2
GCC Administrator [Sun, 13 Jun 2004 00:16:44 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r83048.2
Jon Ziegler [Sun, 13 Jun 2004 00:14:29 +0000 (00:14 +0000)]
All right, I'm in! Working on apple-ppc-branch for now, mostly testing.
From-SVN: r83046
Paul Brook [Sat, 12 Jun 2004 19:51:13 +0000 (19:51 +0000)]
Fix changelog typo.
From-SVN: r83042
Tobias Schlüter [Sat, 12 Jun 2004 19:48:41 +0000 (19:48 +0000)]
Make-lang.in (F95_OBJS, [...]): Alpabetize.
* Make-lang.in (F95_OBJS, F95_PARSER_OBJS): Alpabetize. Move data.c
* data.c (gfc_get_section_index): Remove dependency on trans.h.
From-SVN: r83041
Roger Sayle [Sat, 12 Jun 2004 19:41:51 +0000 (19:41 +0000)]
fold-const.c (omit_two_operands): New function.
* fold-const.c (omit_two_operands): New function.
* tree.h (omit_two_operands): Prototype here.
* builtins.c (fold_builtin_unordered_cmp): New function to lower
C99 unordered comparison builtins to the appropriate tree nodes.
(fold_builtin_1): Use fold_builtin_unordered_cmp to lower
BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
BUILT_IN_ISLESSEQUAL and BUILT_IN_ISLESSGREATER. Manually lower
BUILT_IN_ISUNORDERED comparisons to an UNORDERED_EXPR tree node.
(simplify_builtin_memcmp, simplify_builtin_strncmp,
simplify_builtin_strncat, simplify_builtin_strspn): Use the new
omit_two_operands function to build the required COMPOUND_EXPRs.
From-SVN: r83040
Bud Davis [Sat, 12 Jun 2004 17:59:30 +0000 (17:59 +0000)]
re PR libfortran/15292 (libgfortran depends on c99 functionality round and roundf)
PR gfortran/15292
* intrinsics/c99_functions.c: New file.
* Makefile.am: Add new file.
* configure.ac: Added test for round/roundf.
* Makefile.in: Regenerate.
* configure: Regenerate.
* configure.h.in: Regenerate.
From-SVN: r83036
Steven G. Kargl [Sat, 12 Jun 2004 17:34:47 +0000 (17:34 +0000)]
check.c (gfc_check_second_sub, [...]): New functions.
* check.c (gfc_check_second_sub, gfc_check_irand, gfc_check_rand
gfc_check_srand, gfc_check_etime, gfc_check_etime_sub): New functions.
* gfortran.h (gfc_generic_isym_id): New symbols GFC_ISYM_ETIME,
GFC_ISYM_IRAND, GFC_ISYM_RAND, GFC_ISYM_SECOND.
* trans-intrinsic.c: Use symbols.
* intrinsic.c (add_sym_2s): New function.
* intrinsic.c: Add etime, dtime, irand, rand, second, srand.
* intrinsic.h: Function prototypes.
* iresolve.c (gfc_resolve_etime_sub, gfc_resolve_second_sub
gfc_resolve_srand): New functions.
libgfortran
* Makefile.am: Add rand.c and etime.c
* Makefile.in: Regenerated.
* aclocal.in: Regenerated.
* cpu_time.c (second_sub, second): New functions.
* rand.c (irand, rand, srand): New file.
* etime.c (etime_sub, etime): New file.
From-SVN: r83034
Paul Brook [Sat, 12 Jun 2004 15:37:23 +0000 (15:37 +0000)]
* gfortran.fortran-torture/execute/contained_3.f90: New test.
From-SVN: r83033
Tobias Schlüter [Sat, 12 Jun 2004 15:15:41 +0000 (15:15 +0000)]
re PR libfortran/14923 (gfortran misses the DATE_AND_TIME intrinsic)
PR fortran/14923
* intrinsics/date_and_time.c: New file.
* Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c.
* Makefile.in, aclocal.m4: Regenerate.
* libgfortran.h: Prototype date_and_time().
testsuite/
* gfortran.fortran-torture/execute/date_time_1.f90: New test.
Co-Authored-By: Steven Bosscher <stevenb@suse.de>
From-SVN: r83032
Tobias Schlüter [Sat, 12 Jun 2004 15:02:01 +0000 (17:02 +0200)]
re PR fortran/14957 (testsuite issues)
fortran/
PR fortran/14957
* decl.c (gfc_match_end): Require END {SUBROUTINE|FUNCTION} for
contained procedure.
testsuite/
PR fortran/14957
* gfortran.fortran-torture/execute/stack_varsize.f90: Correct
syntax errors in end statements of contained subroutines.
From-SVN: r83031
Tobias Schlüter [Sat, 12 Jun 2004 14:50:49 +0000 (16:50 +0200)]
PR fortran/15665 Fixup ChangeLog from my previous commit
From-SVN: r83030
Tobias Schlüter [Sat, 12 Jun 2004 14:09:43 +0000 (16:09 +0200)]
PR fortran/15655Fixup ChangeLog entries from previous commit by Paul Brook
From-SVN: r83029
Tobias Schlüter [Sat, 12 Jun 2004 14:06:19 +0000 (16:06 +0200)]
re PR fortran/12841 (passing null to a subroutine)
fortran/
PR fortran/12841
* interface.c (compare_parameter, compare_actual_formal): Don't
check types and array shapes for NULL()
* trans-expr.c (conv_function_call): No double indirection for
NULL()
( I had accidentally committed the interface.c part before)
testuite/
PR fortran/12841
* gfortran.fortran-torture/execute/null_arg.f90: New test.
From-SVN: r83028
Bud Davis [Sat, 12 Jun 2004 13:42:46 +0000 (13:42 +0000)]
args.c: Implement GETARG and IARGC.
* intrinsics/args.c: Implement GETARG and IARGC.
* Makefile.am: Add it.
* Makefile.in: Regenerate.
testsuite/
* gfortran.fortran-torture/execute/getarg_1.f90: New test.
From-SVN: r83027
Steven Bosscher [Sat, 12 Jun 2004 13:17:39 +0000 (13:17 +0000)]
gcse.c (record_set_info): Use predicates like REG_P.
* gcse.c (record_set_info): Use predicates like REG_P.
(mems_conflict_for_gcse_p): Likewise.
(load_killed_in_block_p): Likewise.
(hash_expr_1): Likewise.
(insert_set_in_table): Likewise.
(gcse_constant_p): Likewise.
(hash_scan_set): Likewise.
(hash_scan_insn): Likewise.
(canon_list_insert): Likewise.
(record_last_mem_set_info): Likewise.
(record_last_set_info): Likewise.
(compute_hash_table_work): Likewise.
(mark_set): Likewise.
(mark_clobber): Likewise.
(mark_oprs_set): Likewise.
(compute_transp): Likewise.
(find_avail_set): Likewise.
(cprop_insn): Likewise.
(do_local_cprop): Likewise.
(cprop): Likewise.
(find_implicit_sets): Likewise.
(find_bypass_set): Likewise.
(bypass_conditional_jumps): Likewise.
(insert_insn_end_bb): Likewise.
(pre_insert_copy_insn): Likewise.
(compute_transpout): Likewise.
(next_ls_expr): Likewise.
(invalidate_any_buried_refs): Likewise.
(compute_ld_motion_mems): Likewise.
(reg_set_info): Likewise.
(reg_clear_last_set): Likewise.
(find_moveable_store): Likewise.
(compute_store_table): Likewise.
(find_loads): Likewise.
(store_killed_in_insn): Likewise.
(insert_insn_start_bb): Likewise.
(reg_set_between_after_reload_p): Likewise.
(reg_used_between_after_reload_p): Likewise.
(is_jump_table_basic_block): Likewise.
(gcse_after_reload): Likewise.
(hash_scan_set_after_reload): Likewise.
(compute_hash_table_after_reload): Likewise.
Co-Authored-By: Andreas Jaeger <aj@suse.de>
From-SVN: r83026
Mark Wielaard [Sat, 12 Jun 2004 13:06:40 +0000 (13:06 +0000)]
* javax/swing/RepaintManager.java
(paintDirtyRegions): Use entrySet(), not values().
From-SVN: r83025
Bud Davis [Sat, 12 Jun 2004 12:50:54 +0000 (12:50 +0000)]
re PR libfortran/12839 (incorrect IO of Inf)
2004-06-12 Bud Davis <bdavis9659@comcast.net>
PR gfortran/12839
* gfortran.fortran-torture/execute/nan_inf_fmt.f90: New test.
* io/write.c(write_float): format inf and nan IAW F2003.
From-SVN: r83024
Steven Bosscher [Sat, 12 Jun 2004 12:50:42 +0000 (12:50 +0000)]
rtl.h (MEM_P, [...]): New predicates.
* rtl.h (MEM_P, NONJUMP_INSN_P, CALL_INSN_P): New predicates.
(INSN_P): Don't look at the rtx code class, just explicitly
check for one of the tree RTX_INSN codes.
From-SVN: r83023
Paolo Carlini [Sat, 12 Jun 2004 08:10:24 +0000 (08:10 +0000)]
[multiple changes]
2004-06-12 Paolo Carlini <pcarlini@suse.de>
* include/ext/algorithm: Trivial formatting fixes.
* include/ext/functional: Likewise.
* include/ext/hash_fun.h: Likewise.
* include/ext/iterator: Likewise.
2004-06-12 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (find(const _CharT*, size_type,
size_type)): Reimplement using std::search.
* src/string-inst.cc: Instantiate std::search for char/wchar_t.
2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
* testsuite/performance/21_strings/string_find.cc: New.
From-SVN: r83022
Zack Weinberg [Sat, 12 Jun 2004 06:02:51 +0000 (06:02 +0000)]
c-typeck.c (default_function_array_conversion): Use build_pointer_type not TYPE_POINTER_TO.
* c-typeck.c (default_function_array_conversion): Use
build_pointer_type not TYPE_POINTER_TO.
From-SVN: r83021
Zack Weinberg [Sat, 12 Jun 2004 05:53:54 +0000 (05:53 +0000)]
configure.ac: Don't invoke ACX_HEADER_STDBOOL.
gcc:
* configure.ac: Don't invoke ACX_HEADER_STDBOOL.
* configure, config.in: Regenerate.
* system.h: Unconditionally define bool as unsigned char,
BOOL_BITFIELD as unsigned int.
* domwalk.h: Use BOOL_BITFIELD.
libcpp:
* configure.ac: Don't invoke ACX_HEADER_STDBOOL.
* configure, config.in: Regenerate.
* system.h: Unconditionally define bool as unsigned char,
BOOL_BITFIELD as unsigned int.
* .cvsignore: New file.
From-SVN: r83020
Andreas Jaeger [Sat, 12 Jun 2004 04:34:58 +0000 (06:34 +0200)]
libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4.
* libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4.
* libgcc-darwin.ver: Likewise.
From-SVN: r83017
Peter Jakubek [Sat, 12 Jun 2004 01:06:40 +0000 (01:06 +0000)]
reload.c (find_reloads): Force reload for pseudo registers on big endian machines.
* reload.c (find_reloads): Force reload for pseudo registers on big
endian machines.
From-SVN: r83014
Daniel Berlin [Sat, 12 Jun 2004 00:18:35 +0000 (00:18 +0000)]
[multiple changes]
2004-06-11 Steven Bosscher <stevenb@suse.de>
* tree-ssa-dce.c (mark_control_dependent_edges_necessary):
Don't try to mark anything control dependent on the entry or
exit blocks.
2004-06-11 Daniel Berlin <dberlin@dberlin.org>
Fix Bug 15899
Fix Bug 15460
* tree.h (SSA_NAME_VALUE): New macro.
(struct tree_ssa_name): Add value_handle member.
* tree-ssa-pre.c: Replaced.
* tree-flow.h (tree_ann_type): Add CST_ANN, EXPR_ANN.
(struct cst_ann_d): New.
(struct expr_ann_d): New.
(union tree_ann_d): Add cst_ann, expr_ann.
* tree-dfa.c (create_cst_ann): New function.
(create_expr_ann): Ditto.
* tree-flow-inline.h (cst_ann): New function.
(expr_ann): Ditto.
(get_cst_ann): Ditto.
(get_expr_ann): Ditto..
From-SVN: r83010
GCC Administrator [Sat, 12 Jun 2004 00:16:18 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r83008.2
GCC Administrator [Sat, 12 Jun 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r83007.2
John David Anglin [Fri, 11 Jun 2004 23:09:58 +0000 (23:09 +0000)]
pa.c (pa_hpux_init_libfunc): Add support for unord_optab.
* pa.c (pa_hpux_init_libfunc): Add support for unord_optab.
* pa/quadlib.c (enum qfcmp_magic): Define magic values for call to
_U_Qfcmp library function.
(_U_Qfltgt, _U_Qfunle, _U_Qfunlt, _U_Qfunge, _U_Qfungt, _U_Qfuneq,
_U_Qfunord, _U_Qford): Add more TFmode builtin compare functions.
From-SVN: r83004
John David Anglin [Fri, 11 Jun 2004 22:46:13 +0000 (22:46 +0000)]
pa.c (legitimize_pic_address): Use UNSPEC_DLTIND14R to identify unspec used for loading address from DLT.
* pa.c (legitimize_pic_address): Use UNSPEC_DLTIND14R to identify
unspec used for loading address from DLT.
* pa.md: Define constants for the uses of UNSPEC and UNSPEC_VOLATILE.
Change all users of UNSPEC and UNSPEC_VOLATILE to use new constants.
Don't use short code sequence when loading the address of a nonlocal
label.
(nonlocal_goto): New expander.
(indirect_goto): New jump pattern for nonlocal gotos.
(short_jump): Remove extra whitespace.
(builtin_longjmp): Clobber memory and hard frame pointer. Restore
frame pointer via virtual_stack_vars_rtx when we have a nonlocal goto
pattern.
From-SVN: r83003
Roger Sayle [Fri, 11 Jun 2004 21:34:23 +0000 (21:34 +0000)]
expmed.c (synth_mult): Add an additional MODE argument for the machine mode of the multiplication.
* expmed.c (synth_mult): Add an additional MODE argument for the
machine mode of the multiplication. Update recursive calls. Use
mode instead of word_mode for determining operation costs.
(choose_mult_variant): Update calls to synth_mult with "mode".
From-SVN: r83002
Richard Henderson [Fri, 11 Jun 2004 21:29:46 +0000 (14:29 -0700)]
tree-ssa-operands.c (get_stmt_operands): Clear makes_aliased_loads and makes_aliased_stores.
* tree-ssa-operands.c (get_stmt_operands): Clear makes_aliased_loads
and makes_aliased_stores.
From-SVN: r83001
Mike Stump [Fri, 11 Jun 2004 20:33:54 +0000 (20:33 +0000)]
Merge in xfails from PR14107.
From-SVN: r82999
Andrew Pinski [Fri, 11 Jun 2004 20:31:29 +0000 (20:31 +0000)]
install.text (--enable-shared): Fix typo.
2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
* doc/install.text (--enable-shared): Fix typo.
From-SVN: r82998
Richard Henderson [Fri, 11 Jun 2004 20:21:02 +0000 (13:21 -0700)]
alpha.c (alpha_gimplify_va_arg_1): Remove post_p argument.
* config/alpha/alpha.c (alpha_gimplify_va_arg_1): Remove post_p
argument. Use internal post for call to gimplify_expr. Tidy
rounded type size computation.
(alpha_gimplify_va_arg): Use get_formal_tmp_var and
get_initialized_tmp_var.
From-SVN: r82997
Andrew Pinski [Fri, 11 Jun 2004 20:17:46 +0000 (20:17 +0000)]
install.texi (--enable-shared): Update libobjc's shared library status.
2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
* doc/install.texi (--enable-shared): Update libobjc's shared library status.
Remove reference to libf2c.
From-SVN: r82996
Andrew Pinski [Fri, 11 Jun 2004 20:11:12 +0000 (20:11 +0000)]
configure.ac: Support --enable-shared=libobjc.
2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
* configure.ac: Support --enable-shared=libobjc.
* configure: Regenerate.
From-SVN: r82995
Jason Merrill [Fri, 11 Jun 2004 18:41:47 +0000 (14:41 -0400)]
i386.h (EXPAND_BUILTIN_VA_ARG): Just abort.
* config/i386/i386.h (EXPAND_BUILTIN_VA_ARG): Just abort.
* config/i386/i386.c (ix86_va_arg): Remove.
* config/rs6000/rs6000.h (EXPAND_BUILTIN_VA_ARG): Just abort.
* config/rs6000/rs6000.c (rs6000_va_arg): Remove.
* config/alpha/alpha.h (EXPAND_BUILTIN_VA_ARG): Just abort.
* config/alpha/alpha.c (alpha_va_arg): Remove.
* config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Just abort.
* config/sparc/sparc.c (sparc_va_arg): Remove.
* tree-ssa-operands.c (get_stmt_operands): Use a V_MAY_DEF if the
assignment might throw.
* tree-eh.c (tree_could_throw_p): Support non-call exceptions in
expressions.
From-SVN: r82992
Joern Rennecke [Fri, 11 Jun 2004 18:15:19 +0000 (19:15 +0100)]
Add PR number in:
PR 15886:
* sh.h (ALLOCATE_INITIAL_VALUE): Use return_address_pointer_rtx.
From-SVN: r82987
Mark Mitchell [Fri, 11 Jun 2004 18:14:52 +0000 (18:14 +0000)]
re PR c++/15862 ('enum yn' fails)
PR c++/15862
* name-lookup.c (unqualified_namespace_lookup): Do not ignore type
bindings for undeclared built-ins.
PR c++/15862
* g++.dg/parse/enum1.C: New test.
From-SVN: r82986
J"orn Rennecke [Fri, 11 Jun 2004 18:13:32 +0000 (18:13 +0000)]
* sh.h (ALLOCATE_INITIAL_VALUE): Use return_address_pointer_rtx.
From-SVN: r82985
Zack Weinberg [Fri, 11 Jun 2004 18:07:12 +0000 (18:07 +0000)]
ChangeLog: Merge text from include/ChangeLog.
* ChangeLog: Merge text from include/ChangeLog.
* include/ChangeLog: Delete.
From-SVN: r82984
Mark Mitchell [Fri, 11 Jun 2004 17:46:45 +0000 (17:46 +0000)]
Add missing ChangeLog entries
From-SVN: r82983
Andrew Pinski [Fri, 11 Jun 2004 17:37:06 +0000 (17:37 +0000)]
re PR libobjc/15901 (libobjc is not build shared if you do not supply --enable-shared)
2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
PR libobjc/15901
* configure.ac: Do not disable shared by default.
* configure: Regenerate.
From-SVN: r82980
Joseph Myers [Fri, 11 Jun 2004 16:50:08 +0000 (17:50 +0100)]
install.texi (Prerequisites): Update documentation of required versions of autoconf and automake.
* doc/install.texi (Prerequisites): Update documentation of
required versions of autoconf and automake. Remove mention of
libf2c.
From-SVN: r82975
Arnaud Charlet [Fri, 11 Jun 2004 10:47:39 +0000 (12:47 +0200)]
[multiple changes]
2004-06-11 Vincent Celier <celier@gnat.com>
* mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
gnatsym, when symbol policy is Restricted.
* mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
gnatsym, when symbol policy is Restricted.
* symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
read the symbol file.
(Finalize): Fail in symbol policy Restricted if a symbol in the original
symbol file is not in the object files. Do not create a new symbol file
when symbol policy is Restricted.
* gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
in Scng.
* gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
Restricted.
(Usage): Line for new switch -R
* make.adb (Initialize): When the platform is not VMS, add the
directory where gnatmake is invoked in the front of the path, if
gnatmake is invoked with directory information. Change the Scan_Args
while loop to a for loop.
(Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
if Depth is equal or greater than the proposed depth, there is nothing
to do.
(Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
instead of 0.
* prj.ads: Add new symbol policy Restricted.
* prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
with the new parameters Check_All_Labels and Case_Location.
* prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
(Library_Symbol_File needs to be defined).
* prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
and Case_Location If Check_All_Labels is True, check that all values of
the string type are used, and output warning(s) if they are not.
* prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
and Case_Location.
* gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
* gnat_ugn.texi: Update documentation about the library directory in
Library Projects.
* makegpr.adb (Display_Command): In verbose mode, also display the
value of the CPATH env var, when the compiler is gcc.
(Initialize): Change the Scan_Args while loop to a for loop
(Compile_Individual_Sources): Change directory to object directory
before compilations.
* symbols.ads: New symbol policy Restricted.
2004-06-11 Olivier Hainque <hainque@act-europe.fr>
* a-except.adb (Raise_After_Setup family): Remove. The responsibility
is now taken care of internally in the Exception_Propagation package
and does not require clients assistance any more.
* a-exexpr.adb (Is_Setup_And_Not_Propagated,
Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
functions. Helpers to maintain a predicate required in the handling of
occurrence transfer between tasks.
This is now handled internally and does not require clients assistance
for the setup/propagate separation anymore.
(Setup_Exception, Propagate_Exception): Simplify the Private_Data
allocation strategy, handle the Setup_And_Not_Propagated predicate and
document.
* s-taenca.adb (Check_Exception): Use raise_with_msg instead of
raise_after_setup, now that everything is handled internally within the
setup/propagation engine.
2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
* exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
Add additional conditions for the case of an actual being a simple
name or literal. Improve inlining by preventing the generation
of temporaries with a short lifetime (one use).
2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
PR ada/15587
* einfo.ads: Minor comment updates for Has_Completion and
E_Constant list of flags.
* sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
and constant redeclarations now set the Has_Completion flag of their
defining identifiers.
* sem_ch7.adb (Analyze_Package_Spec): Add procedure
Inspect_Deferred_Constant_Completion.
Used to detect private deferred constants that have not been completed
either by a constant redeclaration or pragma Import. Emits error message
"constant declaration requires initialization expression".
* sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
completes a deferred constant.
2004-06-11 Geert Bosch <bosch@gnat.com>
* eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
* s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
calculating exponent for scaling denormal numbers.
(Leading_Part): Properly raise Constraint_Error for zero or negative
Adjustment.
(Remainder): Properly raise Constraint_Error for zero divisor.
2004-06-11 Thomas Quinot <quinot@act-europe.fr>
* sem_util.adb: Minor reformatting.
* exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
dereference when accessing the entry parameter record.
(Check_Array_Type): Always check for possible implicit dereference.
(maybe_implicit_dereference): Rename to check_no_implicit_derefence.
Abort if a pointer is still present (denoting that an implicit
dereference was left in the tree by the front-end).
* sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
dereference when accessing the entry parameter record.
(Check_Array_Type): Always check for possible implicit dereference.
(maybe_implicit_dereference): Rename to check_no_implicit_derefence.
Abort if a pointer is still present (denoting that an implicit
dereference was left in the tree by the front-end).
2004-06-11 Emmanuel Briot <briot@act-europe.fr>
* g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
message, like the compiler itself does. Easier to parse the output.
* g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
* gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
be base names, and not includes directories.
2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
* Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
so that dependencies are properly taken into account by make.
2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
PR ada/15622
* s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
2004-06-11 Jerome Guitton <guitton@act-europe.fr>
* Makefile.in (install-gnatlib): install target-specific run-time files.
* Make-lang.in: Remove obsolete targets.
2004-06-11 Ed Schonberg <schonberg@gnat.com>
* par-ch12.adb (P_Generic): Add scope before analyzing subprogram
specification, to catch misuses of program unit names.
* sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
superfluous conversions in an instance.
2004-06-11 Ed Schonberg <schonberg@gnat.com>
PR ada/15403
* sem_ch12.adb (Save_References): If operator node has been folded to
enumeration literal, associated_node must be discarded.
2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
* s-stchop-vxworks.adb: Add required pragma Convention to
Task_Descriptor because it is updated by a C function.
From-SVN: r82973
Mark Wielaard [Fri, 11 Jun 2004 10:42:59 +0000 (10:42 +0000)]
jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to NoSuchMethodError.
* jni.cc (_Jv_JNI_GetAnyMethodID): Add name and signature to
NoSuchMethodError.
From-SVN: r82972
Jason Merrill [Fri, 11 Jun 2004 06:08:09 +0000 (02:08 -0400)]
sparc.c (sparc_gimplify_va_arg): New fn.
* config/sparc/sparc.c (sparc_gimplify_va_arg): New fn.
(TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
From-SVN: r82963
Jerry Quinn [Fri, 11 Jun 2004 05:54:02 +0000 (05:54 +0000)]
GregorianCalendar.java (computeTime): Skip buggy formulae when we already know the answer.
2004-06-11 Jerry Quinn <jlquinn@optonline.net>
* java/util/GregorianCalendar.java (computeTime): Skip buggy formulae
when we already know the answer.
* java/util/SimpleTimeZone.java (serialVersionOnStream): Bump to 2.
(setStartRule,setEndRule): Don't take abs of day number.
(getOffset): Clarify docs. Add argument checks.
(isBefore): Take abs of day number in DOW_LE_DOM_MODE.
(equals,hasSameRules,toString,readObject): Use startTimeMode and
endTimeMode.
From-SVN: r82962
Jason Merrill [Fri, 11 Jun 2004 05:46:37 +0000 (01:46 -0400)]
fix typo
From-SVN: r82961
Jerry Quinn [Fri, 11 Jun 2004 05:31:09 +0000 (05:31 +0000)]
typeclass.h: Add GPL plus exception license.
2004-06-11 Jerry Quinn <jlquinn@optonline.net>
* typeclass.h: Add GPL plus exception license. Add include
guard.
From-SVN: r82960
Jason Merrill [Fri, 11 Jun 2004 03:26:31 +0000 (23:26 -0400)]
gimplify.c (gimplify_modify_expr): Don't force a temporary of an aggregate_value_p type.
* gimplify.c (gimplify_modify_expr): Don't force a temporary
of an aggregate_value_p type.
From-SVN: r82959
Jeff Law [Fri, 11 Jun 2004 03:22:30 +0000 (21:22 -0600)]
fold-const.c (fold_inf_compare): Avoid creating non-gimple code when we are in gimple form.
* fold-const.c (fold_inf_compare): Avoid creating non-gimple
code when we are in gimple form.
* gcc.c-torture/compile/
20040610-1.c: New test.
From-SVN: r82958
Giovanni Bajo [Fri, 11 Jun 2004 03:11:07 +0000 (03:11 +0000)]
typeck2.c (abstract_virtual_errors): Reword diagnostics, make them appear at the correct location.
* typeck2.c (abstract_virtual_errors): Reword diagnostics, make them
appear at the correct location.
* g++.old-deja/g++.robertl/eb4.C: Adjust error markers.
* g++.old-deja/g++.other/decl3.C: Likewise.
From-SVN: r82957
GCC Administrator [Fri, 11 Jun 2004 00:16:14 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r82953.2
GCC Administrator [Fri, 11 Jun 2004 00:16:10 +0000 (00:16 +0000)]
Daily bump.
[[Split portion of a mixed commit.]]
From-SVN: r82952.2
Diego Novillo [Thu, 10 Jun 2004 22:37:05 +0000 (22:37 +0000)]
Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
* Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
* tree-flow.h (ssa_names, num_ssa_names, ssa_name): Declare.
(highest_ssa_version): Remove.
* tree-outof-ssa.c (new_temp_expr_table): Replace
highest_ssa_version with num_ssa_names.
(dump_replaceable_exprs): Likewise.
(rewrite_vars_out_of_ssa): Likewise.
* tree-ssa-ccp.c (initialize): Likewise
* tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
* tree-ssa-dce.c (tree_dce_init): Likewise.
* tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
* tree-ssa-live.c (create_ssa_var_map): Likewise.
(dump_var_map): Likewise.
* tree-ssa.c (verify_ssa): Likewise.
(kill_redundant_phi_nodes): Likewise.
Do not build a local array of SSA_NAMEs. Use the ssa_names table.
* tree-ssanames.c: Include tree-flow.h
(ssa_names): New varray.
(init_ssa_names): Initialize ssa_names.
Reserve the first slot of the ssa_names table.
(make_ssa_name): Push the newly created SSA_NAME into ssa_names.
Assign version numbers using num_ssa_names.
From-SVN: r82950
Joseph Myers [Thu, 10 Jun 2004 22:13:24 +0000 (23:13 +0100)]
sourcebuild.texi (Front End): Add details of more installation documentation required.
* doc/sourcebuild.texi (Front End): Add details of more
installation documentation required.
From-SVN: r82948
Brian Booth [Thu, 10 Jun 2004 21:41:08 +0000 (21:41 +0000)]
tree-ssa.texi: Remove references to VDEF and add descriptions of V_MAY_DEF and V_MUST_DEF.
* doc/tree-ssa.texi: Remove references to VDEF and add descriptions
of V_MAY_DEF and V_MUST_DEF.
* tree-dfa.c (dfa_stats_d): Add num_v_must_defs and rename
num_vdefs to num_v_may_defs.
(compute_immediate_uses_for_stmt): Rename occurences of vdef
to v_may_def.
(redirect_immediate_uses): Ditto.
(dump_dfa_stats): Ditto. Also added code to dump num_v_must_defs.
(collect_dfa_stats_r): Rename occurences of vdef to v_may_def.
Also add code to sum up the number of v_must_defs.
(vdefs_disappeared_p): Replace with...
(v_may_defs_disappeared_p): This.
(v_must_defs_disappeared_p): New function.
(mark_new_vars_to_rename): Rename occurences of vdef to v_may_def.
Also add code to mark new variables found in V_MUST_DEFs for
renameing.
* tree-flow.h (stmt_ann_d): Add v_must_def_ops and replace
vdef_ops to v_may_def_ops.
(get_vdef_ops): Replace with...
(get_v_may_def_ops): This.
* tree-flow-inline.h (get_vdef_ops): Replace with...
(get_v_may_def_ops): This.
(get_v_must_def_ops): New function.
(get_vdef_result_ptr): Replace with...
(get_v_may_def_result_ptr): This.
(get_vdef_op_ptr): Ditto with...
(get_v_may_def_op_ptr); This.
(get_v_must_def_op_ptr): New function.
* tree-into-ssa.c (mark_def_sites): Rename occurences of vdef
to v_may_def. Also add code to mark statements with
V_MUST_DEFs as definition sites.
(rewrite_stmt): Rename occurences of vdef to v_may_def. Also
add code to register new V_MUST_DEFs made by the statement.
* tree-outof-ssa.c (VIRTUAL_PARTITION): Update comments.
(check_replaceable): Rename occurences of vdef to v_may_def. Also
add check for V_MUST_DEFs.
(find_replaceable_in_bb): Ditto.
* tree-pretty-print.c (dump_vops): Rename occurences of vdef
to v_may_def. Also add code to dump V_MUST_DEFs.
* tree-sra.c (mark_all_vdefs): Replace with...
(mark_all_v_may_defs): This.
(mark_all_v_must_defs): New function.
(create_scalar_copies): Replace call to mark_all_vdefs with
calls to mark_all_v_may_defs and mark_all_v_must_defs.
(scalarize_structures): Rename occurences of vdef to v_may_def.
Also add a check for V_MUST_DEFs.
(scalarize_modify_expr): Rename occurences of vdef to v_may_def.
* tree-ssa-alias.c (global_var): Update comment.
(compute_may_aliases): Ditto.
(compute_points_to_and_addr_escape): Rename occurences of vdef
to v_may_def. Also add code to mark variables in V_MUST_DEF
operands as being written to.
(group_aliases): Update comment.
(maybe_create_global_var): Ditto.
* tree-ssa.c (verify_ssa): Rename occurences of vdef to v_may_def.
Also add a check for V_MUST_DEFs on GIMPLE registers.
(replace_immediate_uses): Rename occurences of vdef to v_may_def.
* tree-ssa-ccp.c (visit_stmt): Rename occurences of vdef
to v_may_def. Also add code to mark all V_MUST_DEF operands
VARYING.
(initialize): Ditto.
(set_rhs): Rename occurences of vdef to v_may_def. Also add
code to update SSA_NAMEs in V_MUST_DEFs.
* tree-ssa-copy.c (cprop_into_stmt): Rename occurences of vdef
to v_may_def.
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Rename
occurences of vdef to v_may_def. Also add code to mark statements
with V_MUST_DEFs as necessary.
(propagate_necessity): Rename occurences of vdef to v_may_def.
* tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Rename
occurences of vdef to v_may_def. Also add code to mark operands
in V_MUST_DEFs for renaming.
(eliminate_redundant_computations): Rename occurences of vdef
to v_may_def.
(record_equivalences_from_stmt): Rename occurences of vdef
to v_may_def. Also add code to record VUSEs for V_MUST_DEFs.
(optimize_stmt): Remove unnesessary variable vdefs. Update
comment.
(register_definitions_for_stmt): Rename occurences of vdef
to v_may_def. Also add code to register definitions made with
V_MUST_DEFs.
* tree-ssa-dse.c (fix_stmt_vdefs): Replace with...
(fix_stmt_v_may_defs): This.
(fix_phi_uses): Rename occurences of vdef to v_may_def.
(dse_optimize_stmt): Ditto.
* tree-ssa-live.c (create_ssa_var_map): Rename occurences of vdef
to v_may_def. Also add code to mark V_MUST_DEF operands as being
used in virtual operators.
* tree-ssa-loop.c (mark_defs_for_rewrite): Rename occurences of
vdef to v_may_def. Also add code to mark V_MUST_DEF operands for
renaming.
* tree-ssa-operands.c (opf_kill_def): New flag for killing
definitions.
(build_vdefs): Renamed to...
(build_v_may_defs): This.
(build_v_must_defs): New variable.
(voperands_d): Add v_must_def_ops and replace vdef_ops with
v_may_def_ops.
(append_vdef): Replace with...
(append_v_may_def): This.
(append_v_must_def): New function.
(NUM_FREE): Increment for V_MUST_DEF
(optype_freelist): Increment its size for V_MUST_DEF
(allocate_vdef_optype): Replace with...
(allocate_v_may_def_optype): This.
(allocate_v_must_def_optype): New function.
(free_vdefs): Replace with...
(free_v_may_defs): This.
(free_v_must_defs): New function.
(remove_vdefs): Replace with...
(remove_v_may_defs): This.
(remove_v_must_defs): New function.
(init_ssa_operands): Rename occurences of vdef to v_may_def. Also
add code to initialize build_v_must_defs.
(finalize_ssa_vdefs): Replace with...
(finalize_ssa_v_may_defs): This.
(finalize_ssa_vuses): Rename occurences of vdef to v_may_def.
(finalize_ssa_v_must_defs): New function.
(finalize_ssa_stmt_operands): Replace call to finalize_ssa_vdefs
with calls to finalize_ssa_v_may_defs and finalize_ssa_v_must_defs.
(verify_start_operands): Rename occurences of vdef to v_may_def.
Also add check for build_v_must_defs.
(get_stmt_operands): Rename occurences of vdef to v_may_def.
Also add code to handle V_MUST_DEFs and to use opf_kill_def for
killing definitions.
(get_expr_operands): Update comment and use opf_kill_def for
killing definitions.
(add_stmt_operand): Replace code that appends VDEFs with code
that appends V_MUST_DEFs when opf_kill_def is set and V_MAY_DEFs
otherwise.
(add_call_clobber_ops): Update comments.
* tree-ssa-operands.h (vdef_optype_d): Replace with...
(v_may_def_optype_d): This.
(v_must_def_optype_d): New structure.
(VDEF_OPS): Replace with...
(V_MAY_DEF_OPS): This.
(STMT_VDEF_OPS): Same with...
(STMT_V_MAY_DEF_OPS): This.
(NUM_VDEFS): And...
(NUM_V_MAY_DEFS): This.
(VDEF_RESULT_PTR): As well as...
(V_MAY_DEF_RESULT_PTR): This.
(VDEF_RESULT): Same goes for...
(V_MAY_DEF_RESULT): This.
(VDEF_OP_PTR): And...
(V_MAY_DEF_OP_PTR): This.
(VDEF_OP): And...
(V_MAY_DEF_OP): This.
(V_MUST_DEF_OPS): New macro.
(STMT_V_MUST_DEF_OPS): Ditto.
(NUM_V_MUST_DEFS): Ditto.
(V_MUST_DEF_OP_PTR): Ditto.
(V_MUST_DEF_OP): Ditto.
(remove_vdefs): Replace signature with...
(remove_v_may_defs): This.
(remove_v_must_defs): New function signature.
* tree-ssa-pre.c (subst_phis): Replace call to remove_vdefs
with calls to remove_v_may_defs and remove_v_must_defs.
(process_left_occs_and_kills): Rename occurences of vdef to v_may_def.
Also add code that marks left occurences of operands in V_MUST_DEFs.
* tree-tailcall.c (find_tail_calls): Rename occurences of vdef
to v_may_def. Also add check for V_MUST_DEFs.
(eliminate_tail_call):Rename occurences of vdef to v_may_def.
testsuite:
* gcc.dg/tree-ssa/
20031015-1.c: Scan for
V_MAY_DEF instead of VDEF.
* gcc.dg/tree-ssa/
20040517-1.c: Ditto.
From-SVN: r82947
Vladimir Makarov [Thu, 10 Jun 2004 21:06:07 +0000 (21:06 +0000)]
re PR target/15653 (Gcc 3.4 ICE on valid code)
2004-06-10 Vladimir Makarov <vmakarov@redhat.com>
PR target/15653
* haifa-sched.c (schedule_block): Finish cycle after issuing asm
insn.
From-SVN: r82942
Volker Reichelt [Thu, 10 Jun 2004 20:58:43 +0000 (20:58 +0000)]
re PR web/15263 (configure.html: end tag for element "H4" which is not open...)
PR web/15263
* doc/install.texi: Remove superfluous linebreak.
From-SVN: r82940
Aaron W. LaFramboise [Thu, 10 Jun 2004 19:54:59 +0000 (19:54 +0000)]
istream.tcc (istream::ignore): Fix for -Wuninitialized.
2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
* include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
From-SVN: r82939
Roger Sayle [Thu, 10 Jun 2004 19:46:03 +0000 (19:46 +0000)]
builtins.c (expand_builtin): Fall back to library function call for conj...
* builtins.c (expand_builtin): Fall back to library function call for
conj, conjf, conjl, creal, crealf, creall, cimag, cimagf and cimagl.
(fold_builtin_1): Lower built-ins BUILT_IN_CONJ{,F,L} to CONJ_EXPR,
BUILT_IN_CREAL{,F,L} to REALPART_EXPR, and BUILT_IN_CIMAG{,F,L} to
IMAGPART_EXPR respectively.
From-SVN: r82938
Jason Merrill [Thu, 10 Jun 2004 18:28:53 +0000 (14:28 -0400)]
re PR c++/15875 (rejects pointer to member in template)
PR c++/15875
Revert:
2004-06-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* init.c (build_offset_ref): Build SCOPE_REF with non-null
TREE_TYPE for non-dependent names.
* pt.c (type_dependent_expression_p): Handle SCOPE_REF with
unknown_type_node as its TREE_TYPE.
* cxx-pretty_print.c (pp_cxx_unqualified_id): Handle BASELINK.
* error.c (dump_decl) <SCOPE_REF case>: Use pp_expression.
(dump_expr) <SCOPE_REF case>: Likewise.
From-SVN: r82933
J"orn Rennecke [Thu, 10 Jun 2004 18:14:53 +0000 (18:14 +0000)]
sh.c (dump_table): New argument start.
* sh.c (dump_table): New argument start. Changed caller.
(fixup_mova): New function.
(find_barrier): Use it.
(sh_reorg): Likewise. Check for CODE_FOR_casesi_worker_2.
If the label a mova refers to is above the mova itself, change
the mova into a load.
* sh.md (*casesi_worker): Rename to:
(casesi_worker_1).
(casesi_worker_2): New insn.
From-SVN: r82932
Jan van Dijk [Thu, 10 Jun 2004 16:54:49 +0000 (18:54 +0200)]
std_complex.h (sin(const complex<_Tp>& __z)): Make this function return a value.
2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
* include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
this function return a value.
From-SVN: r82928
Jason Merrill [Thu, 10 Jun 2004 15:50:26 +0000 (11:50 -0400)]
fix conflict markers
From-SVN: r82926
Jason Merrill [Thu, 10 Jun 2004 15:49:49 +0000 (11:49 -0400)]
target.h (struct gcc_target): Change gimplify_va_arg_expr hook signature.
* target.h (struct gcc_target): Change gimplify_va_arg_expr
hook signature.
* tree-gimple.h: Adjust.
* config/alpha/alpha.c (alpha_gimplify_va_arg): Adjust.
* config/i386/i386.c (ix86_gimplify_va_arg): Adjust.
Use fold_convert.
* config/ia64/ia64.c (ia64_gimplify_va_arg): Adjust.
* config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust.
Use COMPLEX_EXPR for complex numbers. Use fold_convert.
* builtins.c (std_gimplify_va_arg_expr): Adjust. Use fold_convert.
(gimplify_va_arg_expr): Return GS_ERROR in error case.
Gimplify valist rather than calling stabilize_va_list.
From-SVN: r82925
Stephen Crowley [Thu, 10 Jun 2004 15:39:32 +0000 (15:39 +0000)]
re PR libmudflap/13505 ([tree-ssa] libmudflap mf-hooks2.c build failure on cygwin)
2004-06-10 Stephen Crowley <stephen.crowley@sbcglobal.net>
PR libmudflap/13505
* mf-hooks2.c (semctl): Add cygwin porting hack.
From-SVN: r82923
Zdenek Dvorak [Thu, 10 Jun 2004 15:01:01 +0000 (17:01 +0200)]
Makefile.in (df.o): Remove fibheap dependency.
* Makefile.in (df.o): Remove fibheap dependency.
* df.h: Do not include sbitmap.h.
(struct ref): New field "data".
(DF_REF_DATA): New accessor macro.
(struct df): Field "dom" removed.
(df_analyze_subcfg): New function.
(transfer_function_sbitmap, transfer_function_bitmap): Replaced by ...
(transfer_function): ... new type.
(iterative_dataflow_sbitmap, iterative_dataflow_bitmap): Replaced by ...
(iterative_dataflow): ... new function.
(enum set_representation, struct dataflow): New.
* df.c: Do not include fibheap.h.
(df_reg_def_chain_clean, df_reg_use_chain_clean,
(df_bb_table_realloc, df_analyse_subcfg, free_reg_ref_chain,
prune_to_subcfg, df_bb_modify): New functions.
(df_bitmaps_alloc, df_reg_def_chain_create, df_reg_use_chain_create,
df_refs_update, df_reg_table_realloc, df_ref_create,
df_bb_reg_def_chain_create, df_bb_reg_use_chain_create,
df_bb_rd_local_compute, df_bb_ru_local_compute, df_bb_lr_local_compute,
df_analyse_1, df_insn_modify): Support analysing only a part of the cfg.
(dataflow_set_a_op_b, dataflow_set_copy): New functions.
(df_rd_transfer_function, df_ru_transfer_function,
df_lr_transfer_function): Type of bitmaps changed to void *.
(hybrid_search_bitmap, hybrid_search_sbitmap): Merge into ...
(hybrid_search): ... new function.
(iterative_dataflow_bitmap, iterative_dataflow_sbitmap): Merge into ...
(iterative_dataflow): ... new function. Avoid use of fibheaps for
a worklist. Do not process basic blocks unnecessarily.
From-SVN: r82921
Mark Mitchell [Thu, 10 Jun 2004 14:26:23 +0000 (14:26 +0000)]
re PR c++/15227 (Trouble with invalid function definition)
PR c++/15227
* parser.c (cp_parser_direct_declarator): Robustify.
PR c++/15877
* pt.c (tsubst_copy): Use decl_constant_value on enumeration
constants in non-dependent contexts.
PR c++/14211
PR c++/15076
* typeck.c (build_static_cast): Wrap casts in NON_LVALUE_EXPR when
necessary.
PR c++/14211
* g++.dg/conversion/const1.C: New test.
PR c++/15076
* g++.dg/conversion/reinterpret1.C: New test.
PR c++/15877
* g++.dg/template/enum2.C: New test.
PR c++/15227
* g++.dg/template/error13.C: New test.
From-SVN: r82917
Roger Sayle [Thu, 10 Jun 2004 13:29:34 +0000 (13:29 +0000)]
fold-const.c (fold_abs_const): Make extern.
* fold-const.c (fold_abs_const): Make extern.
* tree.h (fold_abs_const): Prototype here.
* builtins.c (fold_builtin_fabs): New function to transform
fabs, fabsf and fabsl builtins into ABS_EXPR tree nodes.
(fold_builtin_abs): New function to transform abs, labs, llabs
and imaxabs builtins into ABS_EXPR tree nodes.
(expand_builtin): Fall back to a function call for abs, labs,
llabs and imaxabs builtins that survive constant folding.
(fold_builtin_1): Call fold_builtin_fabs for FABS, FABSF and
FABSL, and fold_builtin_abs for ABS, LABS, LLABS and IMAXABS.
From-SVN: r82916
Tobias Schlüter [Thu, 10 Jun 2004 12:41:32 +0000 (14:41 +0200)]
re PR fortran/14957 (testsuite issues)
PR fortran/14957
* gfortran.fortran-torture/execute/intrinsic_scale.f90: Make all
arguments to test_* REAL and of the right size.
From-SVN: r82915