Steven Bosscher
6e72d1e9f1
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
2004-06-14 06:55:35 +02:00
Jason Merrill
e5da415c49
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
2004-06-13 23:41:31 -04:00
Daniel Berlin
ce25943a4d
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
2004-06-14 01:27:57 +00:00
GCC Administrator
bd85b0cba6
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r83074.2
2004-06-14 00:16:16 +00:00
GCC Administrator
fc2ce0d019
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r83073.2
2004-06-14 00:16:11 +00:00
Paul Brook
6956a6f38a
* intrinsic.c (add_sym_2s): Use correct function types.
...
From-SVN: r83071
2004-06-13 23:23:24 +00:00
Paul Brook
a9e7b9d395
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
2004-06-13 22:58:30 +00:00
Daniel Berlin
3bce843ee3
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
2004-06-13 22:52:34 +00:00
Andrew Pinski
a40de696ac
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
2004-06-13 15:15:51 -07:00
Andrew Pinski
d29647a46c
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
2004-06-13 14:41:45 -07:00
Diego Novillo
a18f61f853
* tree-sra.c (tree_sra): Update documentation.
...
From-SVN: r83064
2004-06-13 15:48:53 -04:00
Steven G. Kargl
cdaa9fc44c
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
2004-06-13 20:25:53 +02:00
Tobias Schlüter
9d409075cb
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
2004-06-13 19:48:23 +02:00
Joseph Myers
132da1a5aa
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
2004-06-13 18:14:09 +01:00
Eric Christopher
118a3a8ba8
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
2004-06-13 16:24:52 +00:00
Paolo Carlini
fc6b41718d
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
2004-06-13 09:52:14 +00:00
Kaz Kojima
9f680e794f
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
2004-06-13 06:35:56 +00:00
Roger Sayle
965703ed8e
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
2004-06-13 02:46:08 +00:00
Eric Christopher
3839e36afc
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
2004-06-13 00:40:37 +00:00
GCC Administrator
3e7ea383e6
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r83049.2
2004-06-13 00:16:53 +00:00
GCC Administrator
3cc88877dc
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r83048.2
2004-06-13 00:16:44 +00:00
Jon Ziegler
a308828af3
All right, I'm in! Working on apple-ppc-branch for now, mostly testing.
...
From-SVN: r83046
2004-06-13 00:14:29 +00:00
Paul Brook
b3b65c9af5
Fix changelog typo.
...
From-SVN: r83042
2004-06-12 19:51:13 +00:00
Tobias Schlüter
fd52837724
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
2004-06-12 19:48:41 +00:00
Roger Sayle
08039bd80b
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
2004-06-12 19:41:51 +00:00
Bud Davis
a2a2059fd7
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
2004-06-12 17:59:30 +00:00
Steven G. Kargl
2bd7494908
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
2004-06-12 17:34:47 +00:00
Paul Brook
b08eae9288
* gfortran.fortran-torture/execute/contained_3.f90: New test.
...
From-SVN: r83033
2004-06-12 15:37:23 +00:00
Tobias Schlüter
f814193b9d
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
2004-06-12 15:15:41 +00:00
Tobias Schlüter
c52eae8de0
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
2004-06-12 17:02:01 +02:00
Tobias Schlüter
a13c75880a
PR fortran/15665 Fixup ChangeLog from my previous commit
...
From-SVN: r83030
2004-06-12 16:50:49 +02:00
Tobias Schlüter
c5dc831c5e
PR fortran/15655Fixup ChangeLog entries from previous commit by Paul Brook
...
From-SVN: r83029
2004-06-12 16:09:43 +02:00
Tobias Schlüter
662ef0f5c6
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
2004-06-12 16:06:19 +02:00
Bud Davis
4aef80f8e0
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
2004-06-12 13:42:46 +00:00
Steven Bosscher
7b1b4aed94
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
2004-06-12 15:17:39 +02:00
Mark Wielaard
ff6ea709cb
* javax/swing/RepaintManager.java
...
(paintDirtyRegions): Use entrySet(), not values().
From-SVN: r83025
2004-06-12 13:06:40 +00:00
Bud Davis
8204210bd6
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
2004-06-12 12:50:54 +00:00
Steven Bosscher
3d27dbd01a
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
2004-06-12 12:50:42 +00:00
Paolo Carlini
4a787fa8bf
[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
2004-06-12 08:10:24 +00:00
Zack Weinberg
019c8e8087
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
2004-06-12 06:02:51 +00:00
Zack Weinberg
2fac9c017f
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
2004-06-12 05:53:54 +00:00
Andreas Jaeger
9ade247982
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
2004-06-12 06:34:58 +02:00
Peter Jakubek
b605eb59fc
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
2004-06-12 03:06:40 +02:00
Daniel Berlin
7e6eb623f9
[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
2004-06-12 00:18:35 +00:00
GCC Administrator
e4602cf33b
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r83008.2
2004-06-12 00:16:18 +00:00
GCC Administrator
ef2c2c4849
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r83007.2
2004-06-12 00:16:13 +00:00
John David Anglin
e2ddd6caae
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
2004-06-11 23:09:58 +00:00
John David Anglin
9839edf18d
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
2004-06-11 22:46:13 +00:00
Roger Sayle
41c64ac012
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
2004-06-11 21:34:23 +00:00
Richard Henderson
9098a3ecee
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
2004-06-11 14:29:46 -07:00