Ian Lance Taylor
12df8a7eb6
Used signed infinities in VRP.
...
* tree-vrp.c (uses_overflow_infinity): New static function.
(supports_overflow_infinity): New static function.
(make_overflow_infinity): New static function.
(negative_overflow_infinity): New static function.
(positive_overflow_infinity): New static function.
(is_negative_overflow_infinity): New static function.
(is_positive_overflow_infinity): New static function.
(is_overflow_infinity): New static function.
(overflow_infinity_range_p): New static function.
(compare_values_warnv): New function split out of compare_values.
(compare_value): Call it.
(set_value_range_to_nonnegative): Add overflow_infinity
parameter. Change caller.
(vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
Change callers.
(vrp_expr_computes_nonzero): Likewise.
(compare_ranges, compare_range_with_value): Likewise.
(compare_name_with_value, compare_names): Likewise.
(vrp_evaluate_conditional): Likewise.
(set_value_range): Handle infinity
(vrp_operand_equal_p, operand_less_p): Likewise.
(extract_range_from_assert): Likewise.
(vrp_int_const_binop): Likewise.
(extract_range_from_binary_expr): Likewise.
(extract_range_from_unary_expr): Likewise.
(extract_range_from_comparison): Likewise.
(extract_range_from_expr): Likewise.
(dump_value_range): Likewise.
(vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
(test_for_singularity): Likewise.
(vrp_int_const_binop): Remove inline qualifier.
(adjust_range_with_scev): Add comment.
* tree-flow.h (vrp_evaluate_conditional): Update declaration.
From-SVN: r122487
2007-03-02 20:09:31 +00:00
Andrew Haley
386e9d408b
AnnotationInvocationHandler.java: Generify in a few places.
...
2007-03-02 Andrew Haley <aph@redhat.com>
* sun/reflect/annotation/AnnotationInvocationHandler.java:
Generify in a few places.
(equals): Rewrite to use invoke on local proxy.
(deepToString): Remove most of it.
(toString): Make nonstatic.
(arrayClone): Delete.
(coerce): New method.
(invoke): Rewrite to handle gcj's structures correctly.
* java/lang/natClass.cc (getDeclaredAnnotations): Fix test for
null loader.
* sources.am: Regenerate.
* Makefile.am: Likewise.
From-SVN: r122485
2007-03-02 19:34:18 +00:00
Diego Novillo
6e7e772dce
tree-ssa-structalias.c (could_have_pointers): Tidy.
...
* tree-ssa-structalias.c (could_have_pointers): Tidy.
(get_constraint_for): Likewise.
(do_structure_copy): Likewise.
(find_func_aliases): Fix references to MODIFY_EXPR.
(intra_create_variable_infos): Tidy.
* tree-ssa-operands.c (add_virtual_operand): Add argument
IS_CALL_SITE.
When adding members of alias sets, if IS_CALL_SITE is true and
the symbol is not call-clobbered, skip it.
Adjust all callers.
testsuite/ChangeLog
* gcc.dg/tree-ssa/20070302-1.c: New test.
From-SVN: r122484
2007-03-02 14:20:14 -05:00
Andrew Haley
0618281a42
AnnotationInvocationHandler.java: Generify in a few places.
...
2007-03-02 Andrew Haley <aph@redhat.com>
* sun/reflect/annotation/AnnotationInvocationHandler.java:
Generify in a few places.
(equals): Rewrite to use invoke on local proxy.
(deepToString): Remove most of it.
(toString): Make nonstatic.
(arrayClone): Delete.
(coerce): New method.
(invoke): Rewrite to handle gcj's structures correctly.
* java/lang/natClass.cc (getDeclaredAnnotations): Fix test for
null loader.
* sources.am: Regenerate.
* Makefile.am: Likewise.
From-SVN: r122483
2007-03-02 19:05:57 +00:00
Paolo Carlini
debac9f40d
9661-1.cc: Include <cstdlib>.
...
2007-03-02 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/objects/wchar_t/9661-1.cc: Include <cstdlib>.
* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
* testsuite/27_io/objects/char/9661-1.cc: Likewise.
* testsuite/27_io/objects/char/7.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/char/2.cc: Likewise.
* testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Likewise.
* testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/
11.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_character/wchar_t/
4.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_character/char/
4.cc: Likewise.
* testsuite/27_io/basic_ostream/seekp/wchar_t/
2346-fstream.cc: Likewise.
* testsuite/27_io/basic_ostream/seekp/char/
2346-fstream.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/close/char/4879.cc: Likewise.
* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
* testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
wchar_t/10.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
wchar_t/11.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
char/10.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
char/11.cc: Likewise.
* testsuite/ext/pb_ds/example/trie_dna.cc: Likewise.
* testsuite/ext/new_allocator/deallocate_global.cc: Likewise.
* testsuite/ext/new_allocator/deallocate_local.cc: Likewise.
* testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Likewise.
* testsuite/performance/27_io/ifstream_getline.cc: Likewise.
* testsuite/22_locale/locale/cons/4.cc: Likewise.
* testsuite/22_locale/locale/cons/5.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/thread/
mutex_weaktoshared.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/thread/
default_weaktoshared.cc: Likewise.
* testsuite/thread/pthread5.cc: Likewise.
* testsuite/thread/pthread1.cc: Likewise.
* testsuite/23_containers/deque/cons/assign/1.cc: Likewise.
From-SVN: r122482
2007-03-02 18:11:15 +00:00
Eric Botcazou
e0759b7392
alpha.c (alpha_gp_save_rtx): Insert the insns at the entry by means of emit_insn_at_entry.
...
* config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
entry by means of emit_insn_at_entry.
From-SVN: r122480
2007-03-02 18:01:37 +00:00
Richard Henderson
962f383322
expr.h (promoted_input_arg): Remove decl.
...
* expr.h (promoted_input_arg): Remove decl.
* function.c (promoted_input_arg): Merge into ...
* combine.c (setup_incoming_promotions): ... only caller.
Rearrange to avoid double loop.
From-SVN: r122479
2007-03-02 09:49:58 -08:00
Paolo Carlini
1769232d26
re PR libstdc++/28080 (header dependencies)
...
2007-03-02 Paolo Carlini <pcarlini@suse.de>
* testsuite/thread/pthread1.cc: Include <pthread.h>.
* testsuite/thread/pthread2.cc: Likewise.
* testsuite/thread/pthread3.cc: Likewise.
* testsuite/thread/pthread4.cc: Likewise.
* testsuite/thread/pthread5.cc: Likewise.
* testsuite/thread/pthread6.cc: Likewise.
* testsuite/thread/pthread7-rope.cc: Likewise.
2007-03-02 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/28080 (partial)
* include/tr1/random (class random_device): Rework to use simple
<cstdio> input, do not include <fstream>.
* include/tr1/random.tcc (all inserters and extractors): Refer
to ios_base as base class of basic_istream or basic_ostream.
From-SVN: r122478
2007-03-02 16:21:30 +00:00
Ben Elliston
7393f7f8d0
dfp.md: New file.
...
* config/rs6000/dfp.md: New file.
* config/rs6000/rs6000.md: Include dfp.md.
(add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
* config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
and TDmode decimal float modes in FP registers.
(num_insns_constant): Likewise.
(rs6000_legitimate_offset_address_p): Likewise.
(rs6000_legitimize_address): Likewise.
(rs6000_legitimize_reload_address): Likewise.
(rs6000_legitimate_address): Likewise.
(rs6000_emit_move): Likewise.
(function_arg_boundary): Likewise.
(function_arg_advance): Likewise.
(rs6000_darwin64_record_arg_recurse): Likewise.
(function_arg): Likewise.
(rs6000_gimplify_va_arg): Likewise.
(rs6000_split_multireg_move): Likewise.
(rs6000_output_function_epilogue): Likewise.
(rs6000_output_function_epilogue): Likewise.
(rs6000_register_move_cost): Likewise.
(rs6000_function_value): Likewise.
(rs6000_libcall_value): Likewise.
Co-Authored-By: Janis Johnson <janis187@us.ibm.com>
Co-Authored-By: Peter Bergner <bergner@vnet.ibm.com>
From-SVN: r122477
2007-03-02 09:57:08 -06:00
Uros Bizjak
0fa4c37026
i386.c (override_options): Put initialization of ix86_tune_mask and ix86_arch_mask to the correct place.
...
* config/i386/i386.c (override_options): Put initialization of
ix86_tune_mask and ix86_arch_mask to the correct place.
From-SVN: r122476
2007-03-02 14:36:54 +01:00
Richard Sandiford
1f24ba024d
t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
...
gcc/
* config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
From-SVN: r122475
2007-03-02 12:38:32 +00:00
Richard Sandiford
c3c9a5d23e
t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
...
gcc/
* config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
Use $MULTIDIR to choose between the kernel and RTP headers,
and use $WIND_BASE and $WIND_USR to locate them.
From-SVN: r122474
2007-03-02 12:37:31 +00:00
Uros Bizjak
8691cea396
re PR target/31019 (Microoptimization of the i386 and x86_64 compilers)
...
PR target/31019
* config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
(ARCHMASK): Define.
(TARGET_CMOVE): Use ARCHMASK.
(TARGET_CMPXCHG): Ditto.
(TARGET_CMPXCHG8B): Ditto.
(TARGET_XADD): Ditto.
(TARGET_BSWAP): Ditto.
* config/i386/i386.c (ix86_tune_mask): New global variable.
(ix86_arch_mask): Ditto.
(override_options): Initialize ix86_tune_mask and
ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
target_flags.
Co-Authored-By: Michael Meissner <michael.meissner@amd.com>
From-SVN: r122473
2007-03-02 13:26:55 +01:00
Manuel López-Ibáñez
4e2238672f
typeck.c (common_base_type): Delete unused function.
...
2007-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* typeck.c (common_base_type): Delete unused function.
From-SVN: r122472
2007-03-02 11:09:52 +00:00
Andrew Haley
7ac5faca97
AnnotationInvocationHandler.java: Whitespace only changes.
...
2007-03-02 Andrew Haley <aph@redhat.com>
* sun/reflect/annotation/AnnotationInvocationHandler.java:
Whitespace only changes.
2007-03-02 Andrew Haley <aph@redhat.com>
* sun/reflect/annotation/AnnotationInvocationHandler.java: Moved
from Classpath to libgcj local.
From-SVN: r122471
2007-03-02 11:01:19 +00:00
Andrew Haley
b2c6e79798
AnnotationInvocationHandler.java: Moved from Classpath to libgcj local.
...
2007-03-02 Andrew Haley <aph@redhat.com>
* sun/reflect/annotation/AnnotationInvocationHandler.java: Moved
from Classpath to libgcj local.
From-SVN: r122470
2007-03-02 10:58:26 +00:00
Ben Elliston
cee690f184
re PR middle-end/30992 (Scaling error in decimal floating-point arithmetic blows conversions to integers)
...
2007-03-02 Ben Elliston <bje@au.ibm.com>
PR 30992
* config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
From-SVN: r122469
2007-03-02 16:28:06 +11:00
Joseph Myers
37ea0b7e74
target.h (init_dwarf_reg_sizes_extra): New target hook.
...
* target.h (init_dwarf_reg_sizes_extra): New target hook.
* target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
* doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
* dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
hook.
* config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
rs6000_init_dwarf_reg_sizes_extra): New.
* config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
SPE register high parts.
testsuite:
* gcc.target/powerpc/spe-unwind-1.c, g++.dg/eh/simd-5.C: New
tests.
From-SVN: r122468
2007-03-02 01:55:06 +00:00
Brooks Moses
9c4d24932e
configure.ac: Add "--with-pdfdir" configure option, which defines pdfdir variable.
...
* configure.ac: Add "--with-pdfdir" configure option,
which defines pdfdir variable.
* Makefile.def (target=fixincludes): Add install-pdf to
missing targets.
(recursive_targets): Add install-pdf target.
(flags_to_pass): Add pdfdir.
* Makefile.tpl: Add pdfdir handling, add do-install-pdf
target.
* configure: Regenerate
* Makefile.in: Regenerate
From-SVN: r122467
2007-03-01 16:28:09 -08:00
Brooks Moses
bcc3d150be
Makefile.in: Add install-pdf target as copied from automake v1.10 rules.
...
* Makefile.in: Add install-pdf target as
copied from automake v1.10 rules.
* configure.ac: Add install-pdf to target list.
* configure: Regenerate.
From-SVN: r122466
2007-03-01 16:23:20 -08:00
Brooks Moses
c279aa90a7
Make-lang.in: Add install-pdf target as copied from automake v1.10 rules.
...
* Make-lang.in: Add install-pdf target as copied from
automake v1.10 rules.
From-SVN: r122465
2007-03-01 16:20:39 -08:00
Brooks Moses
b782689322
Make-lang.in: Add install-pdf target as copied from automake v1.10 rules.
...
* Make-lang.in: Add install-pdf target as copied from
automake v1.10 rules.
From-SVN: r122464
2007-03-01 16:19:35 -08:00
Brooks Moses
ba3e26e86c
Make-lang.in: Add install-pdf target as copied from automake v1.10 rules.
...
* Make-lang.in: Add install-pdf target as copied from
automake v1.10 rules.
From-SVN: r122463
2007-03-01 16:18:47 -08:00
Brooks Moses
e1eefa15ef
Make-lang.in: Add install-pdf target as copied from automake v1.10 rules.
...
* Make-lang.in: Add install-pdf target as copied from
automake v1.10 rules.
From-SVN: r122461
2007-03-01 16:17:38 -08:00
GCC Administrator
cb29729809
Daily bump.
...
From-SVN: r122460
2007-03-02 00:17:31 +00:00
Brooks Moses
7fe3e184e4
* Make-lang.in: Add dummy lang.install-pdf target.
...
From-SVN: r122457
2007-03-01 16:16:37 -08:00
Brooks Moses
5fbc626626
* Make-lang.in: Add dummy lang.install-pdf target.
...
From-SVN: r122456
2007-03-01 16:16:06 -08:00
Brooks Moses
95506ebf3c
* Make-lang.in: Add dummy lang.install-pdf target.
...
From-SVN: r122455
2007-03-01 16:15:32 -08:00
Brooks Moses
1c94084af2
Makefile.am: Add dummy install-pdf target.
...
* Makefile.am: Add dummy install-pdf target.
* Makefile.in: Regenerate
* include/Makefile.in: Regenerate
* testsuite/Makefile.in: Regenerate
* gcj/Makefile.in: Regenerate
From-SVN: r122454
2007-03-01 16:14:33 -08:00
Brooks Moses
00189cc66f
* Makefile.in: Add dummy install-pdf target.
...
From-SVN: r122453
2007-03-01 16:05:13 -08:00
Brooks Moses
ac84c17282
Makefile.in: Add install-html and install-pdf dummy targets.
...
* Makefile.in: Add install-html and install-pdf dummy
targets.
From-SVN: r122452
2007-03-01 16:04:17 -08:00
Brooks Moses
c4dc950de7
Makefile.am: Add install-pdf target as copied from automake v1.10 rules.
...
* Makefile.am: Add install-pdf target as copied from
automake v1.10 rules.
* Makefile.in: Regenerate
From-SVN: r122451
2007-03-01 16:03:11 -08:00
Brooks Moses
49c683a52c
* Makefile.in: Add dummy install-pdf target.
...
From-SVN: r122450
2007-03-01 16:01:53 -08:00
Brooks Moses
c0781449fe
Makefile.am: Add dummy install-pdf target.
...
* Makefile.am: Add dummy install-pdf target.
* Makefile.in: Regenerate
From-SVN: r122449
2007-03-01 16:00:52 -08:00
Brooks Moses
dd8e0a66b6
Makefile.am: Add dummy install-pdf target.
...
* Makefile.am: Add dummy install-pdf target.
* Makefile.in: Regenerate
From-SVN: r122448
2007-03-01 15:59:35 -08:00
Brooks Moses
385931236c
* Makefile.in: Add dummy install-pdf target.
...
From-SVN: r122447
2007-03-01 15:58:28 -08:00
Brooks Moses
e6e3b4b35e
Makefile.am: Add dummy install-pdf target.
...
* Makefile.am: Add dummy install-pdf target.
* Makefile.in: Regenerate
From-SVN: r122446
2007-03-01 15:57:32 -08:00
Brooks Moses
4fcb360b62
* Makefile.in: Add dummy install-pdf target.
...
From-SVN: r122445
2007-03-01 15:56:24 -08:00
Brooks Moses
32f1ac6d59
* Makefile.in: Add dummy install-pdf target.
...
From-SVN: r122444
2007-03-01 15:55:34 -08:00
Brooks Moses
b31f84844a
* Makefile.in: Add dummy install-pdf target.
...
From-SVN: r122443
2007-03-01 15:54:44 -08:00
Brooks Moses
86c43ef0c9
Makefile.am: Add dummy install-pdf target.
...
* Makefile.am: Add dummy install-pdf target.
* Makefile.in: Regenerate
From-SVN: r122442
2007-03-01 15:53:35 -08:00
Brooks Moses
4426724a02
Makefile.am: Add dummy install-pdf target.
...
* Makefile.am: Add dummy install-pdf target.
* Makefile.in: Regenerate
From-SVN: r122441
2007-03-01 15:52:38 -08:00
Brooks Moses
b5f8d49b84
Makefile.am: Add dummy install-pdf target.
...
* Makefile.am: Add dummy install-pdf target.
* Makefile.in: Regenerate
From-SVN: r122440
2007-03-01 15:51:37 -08:00
Brooks Moses
877f144b6b
Makefile.am: Add dummy install-pdf target.
...
* Makefile.am: Add dummy install-pdf target.
* Makefile.in: Regenerate
From-SVN: r122439
2007-03-01 15:50:30 -08:00
Brooks Moses
267686a745
Makefile.in: Add install-pdf target as copied from automake v1.10 rules.
...
* Makefile.in: Add install-pdf target as copied from
automake v1.10 rules.
* testsuite/Makefile.in: Add dummy install-pdf target.
From-SVN: r122438
2007-03-01 15:47:02 -08:00
Paul Brook
fe2d934b4b
arm.c (arm_legitimate_index_p): Limit iWMMXt addressing modes to LDRD for DImode.
...
2007-03-01 Paul Brook <paul@codesourcery.com>
* config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
modes to LDRD for DImode.
(output_move_double): Fixup out of range ldrd/strd.
(vfp_secondary_reload_class): Rename...
(coproc_secondary_reload_class): ... to this. Add wb argument.
* config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
coproc_secondary_reload_class for CLASS_IWMMXT.
(SECONDARY_INPUT_RELOAD_CLASS): Ditto.
* arm-protos.h (coproc_secondary_reload_class): Update prototype.
From-SVN: r122437
2007-03-01 22:58:40 +00:00
Zdenek Dvorak
2711355fbc
tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll factor by the estimated number of iterations.
...
* tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
factor by the estimated number of iterations.
(loop_prefetch_arrays): Do not prefetch in loops that iterate less than
prefetch latency.
* gcc.dg/tree-ssa/prefetch-4.c: New test.
From-SVN: r122435
2007-03-01 22:14:23 +00:00
Simon Baldwin
41dc91a890
re PR c++/23689 (Malformed typedef silently ignored)
...
cp/:
PR c++/23689
* decl.c (check_tag_decl): Added new warning for typedef ignored
when it precedes an otherwise valid non-typedef declaration.
testsuite/:
PR c++/23689
* warn/ignored_typedef.C: New.
* init/ctor8.C: Added dg-warning to consume ignored typedef
warning.
* template/typedef2.C: Ditto. Moved dg-error onto its own line
and added an explicit line number.
From-SVN: r122434
2007-03-01 19:13:02 +00:00
Richard Henderson
ceca734e8f
expr.c (emit_move_complex_push): Export.
...
* expr.c (emit_move_complex_push): Export.
(emit_move_complex_parts): Split out from ...
(emit_move_complex): ... here.
* expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
* config/i386/i386.md (movcdi): New.
From-SVN: r122432
2007-03-01 08:30:38 -08:00
Peter Breitenlohner
5f81370d9f
re PR other/16513 (Libiberty doesn't honor the multi-os-directory settings)
...
PR other/16513
* Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
Install headers in multilib independent location.
Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>
From-SVN: r122430
2007-03-01 15:30:27 +00:00