Alexandre Oliva
db9e0d2af6
dwarf2out.c (dwarf2out_finish): Accept namespaces as context of limbo die nodes.
...
gcc/ChangeLog:
* dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
limbo die nodes.
gcc/testsuite/ChangeLog:
* g++.dg/ext/interface4.C, g++.dg/ext/interface4.h: New.
From-SVN: r121979
2007-02-15 04:19:33 +00:00
Kaveh R. Ghazi
5ad17e7d5a
nothrow-1.C: Skip test if -fpic/-fPIC is used.
...
* g++.dg/tree-ssa/nothrow-1.C: Skip test if -fpic/-fPIC is used.
From-SVN: r121976
2007-02-15 03:14:39 +00:00
Steven G. Kargl
eb62be4408
primary.c (match_logical_constant): Return MATCH_ERROR on invalid kind.
...
2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
* primary.c (match_logical_constant): Return MATCH_ERROR on invalid kind.
* gfortran.dg/logical_2.f90: New test.
From-SVN: r121974
2007-02-15 00:58:01 +00:00
GCC Administrator
d693dd2638
Daily bump.
...
From-SVN: r121972
2007-02-15 00:17:48 +00:00
Joseph Myers
07cb6e8c67
emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex types as aggregates not scalars.
...
* emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
types as aggregates not scalars.
* function.c (assign_stack_temp_for_type): Likewise.
testsuite:
* gcc.dg/torture/complex-alias-1.c: New test.
From-SVN: r121968
2007-02-14 23:38:01 +00:00
Zdenek Dvorak
702f9d782f
tree-dump.c (dump_switch_p_1): Require exact match of the option name.
...
* tree-dump.c (dump_switch_p_1): Require exact match of the option
name.
* gcc.dg/tree-prof/update-tailcall.c: Use -fdump-tree-tailc
instead of -fdump-tree-tailcall.
From-SVN: r121967
2007-02-14 22:06:11 +00:00
Zdenek Dvorak
3d88299026
passes.c (next_pass_1): Clear the next field of the copied pass structure.
...
* passes.c (next_pass_1): Clear the next field of the copied
pass structure.
From-SVN: r121966
2007-02-14 21:54:44 +00:00
Hans-Peter Nilsson
6b08c92c05
re PR middle-end/30768 (ICE in ext/pb_ds/regression/list_update_data_map_rand.cc)
...
PR middle-end/30768
* testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc:
Xfail ICE for cris-*-*.
From-SVN: r121959
2007-02-14 20:15:29 +00:00
Steven G. Kargl
64e56cf255
Fix a potential buffer overflow.
...
From-SVN: r121958
2007-02-14 20:02:39 +00:00
Jakub Jelinek
23ced53f12
TimeZone.java (getDateParams): Negate dayOfWeek.
...
2007-02-14 Jakub Jelinek <jakub@redhat.com>
Andrew Haley <aph@redhat.com>
* java/util/TimeZone.java (getDateParams): Negate dayOfWeek.
From-SVN: r121957
2007-02-14 19:53:22 +00:00
Brooks Moses
5fdc405835
* gfortran.dg/interface_10.f90: Fix comment typo.
...
From-SVN: r121956
2007-02-14 11:51:43 -08:00
Jakub Jelinek
70def3c8db
TimeZone.java (getDateParams): Negate dayOfWeek.
...
2007-02-14 Jakub Jelinek <jakub@redhat.com>
Andrew Haley <aph@redhat.com>
* java/util/TimeZone.java (getDateParams): Negate dayOfWeek.
Co-Authored-By: Andrew Haley <aph@redhat.com>
From-SVN: r121955
2007-02-14 19:31:58 +00:00
Richard Henderson
029f45bdc1
tree-sra.c (early_sra): New.
...
* tree-sra.c (early_sra): New.
(decl_can_be_decomposed_p): Deny va_list if early_sra.
(tree_sra_early, pass_sra_early): New.
* tree-pass.h (pass_sra_early): Declare.
* passes.c (init_optimization_passes): Use it.
From-SVN: r121953
2007-02-14 09:52:25 -08:00
Richard Biener
c4e74b1aaa
flags.h (issue_strict_overflow_warning): Convert to a macro.
...
2007-02-14 Richard Guenther <rguenther@suse.de>
* flags.h (issue_strict_overflow_warning): Convert to a macro.
From-SVN: r121951
2007-02-14 16:45:23 +00:00
Dorit Nuzman
932eea3d18
re PR tree-optimization/30771 (ice for legal code with -O2 -ftree-vectorize)
...
PR tree-optimization/30771
* tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
also phi nodes.
(vect_analyze_operations): Induction phis can now be marked as
used_in_loop.
(vect_mark_stmts_to_be_vectorized): No special treatment for phis.
Update documentation accordingly.
From-SVN: r121950
2007-02-14 14:10:57 +00:00
Gerald Pfeifer
09201a0980
* ltconfig (freebsd*): Default to elf.
...
From-SVN: r121948
2007-02-14 13:19:26 +00:00
Benjamin Kosnik
5f34ed87f7
configure.ac: Move AM_ICONV to native-only, add HAVE_ICONV for newlib.
...
2007-02-14 Benjamin Kosnik <bkoz@redhat.com>
* configure.ac: Move AM_ICONV to native-only, add HAVE_ICONV for
newlib.
* configure: Regenerate.
From-SVN: r121947
2007-02-14 11:07:17 +00:00
Nick Clifton
8225879cc7
builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at most 3 arguments are supported.
...
* builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at most 3 arguments are supported.
(DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
From-SVN: r121946
2007-02-14 08:27:01 +00:00
Seongbae Park
5ce02e408d
bitmap.c (bitmap_and, [...]): Ensure dst->current is valid.
...
2007-02-13 Seongbae Park <seongbae.park@gmail.com>
* bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
Ensure dst->current is valid.
From-SVN: r121903
2007-02-14 05:01:14 +00:00
Paul Brook
c147eacb9d
config.gcc: Add arm*-*-uclinux-*eabi.
...
2007-02-13 Paul Brook <paul@codesourcery.com>
gcc/
* config.gcc: Add arm*-*-uclinux-*eabi.
* config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
(SUBTARGET_EXTRA_LINK_SPEC): Define.
(STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
(LINK_GCC_C_SEQUENCE_SPEC): Undef.
(LINK_SPEC): Define.
(LIB_SPEC): Define.
* config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
register.
* config/arm/uclinux-eabi.h: New file.
* config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
* config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
based targets.
From-SVN: r121902
2007-02-14 00:29:52 +00:00
GCC Administrator
2f0fa07cd9
Daily bump.
...
From-SVN: r121900
2007-02-14 00:17:48 +00:00
Ian Lance Taylor
6ac015100f
common.opt: Add Wstrict-overflow and Wstrict-overflow=.
...
./: * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
* flags.h (warn_strict_overflow): Declare.
(enum warn_strict_overflow_code): Define.
(issue_strict_overflow_warning): New static inline function.
* opts.c (warn_strict_overflow): New variable.
(common_handle_option): Handle OPT_Wstrict_overflow and
OPT_Wstrict_overflow_.
* c-opts.c (c_common_handle_option): Set warn_strict_overflow for
OPT_Wall.
* fold-const.c: Include intl.h.
(fold_deferring_overflow_warnings): New static variable.
(fold_deferred_overflow_warning): New static variable.
(fold_deferred_overflow_code): New static variable.
(fold_defer_overflow_warnings): New function.
(fold_undefer_overflow_warnings): New function.
(fold_undefer_and_ignore_overflow_warnings): New function.
(fold_deferring_overflow_warnings_p): New function.
(fold_overflow_warning): New static function.
(make_range): Add strict_overflow_p parameter. Change all
callers.
(extract_muldiv, extract_muldiv_1): Likewise.
(fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
tree_expr_nonnegative_p.
(fold_negate_expr): Call fold_overflow_warning.
(fold_range_test): Likewise.
(fold_comparison): Likewise.
(fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
instead of tree_expr_nonnegative_p.
(tree_expr_nonnegative_warnv_p): Rename from
tree_expr_nonnegative_p, add strict_overflow_p parameter.
(tree_expr_nonnegative_p): New function.
(tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
strict_overflow_p parameter.
(tree_expr_nonzero_p): New function.
* passes.c (verify_interpass_invariants): New static function.
(execute_one_pass): Call it.
* tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
warnings.
(number_of_iterations_exit, loop_niter_by_eval): Likewise.
(estimate_numbers_of_iterations): Likewise.
(scev_probably_wraps_p): Likewise.
* tree-ssa-ccp.c: Include "toplev.h".
(evaluate_stmt): Defer fold overflow warnings until we know we are
going to optimize.
(struct fold_stmt_r_data): Add stmt field.
(fold_stmt_r): Defer fold overflow warnings until we know we
optimized.
(fold_stmt): Initialize stmt field of fold_stmt_r_data.
(fold_stmt_inplace): Likewise.
* tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
(cleanup_control_expr_graph): Defer fold overflow warnings until
we know we are going to optimize.
* tree-cfg.c (fold_cond_expr_cond): Likewise.
* tree-ssa-threadedge.c (simplify_control_stmt_condition):
Likewise.
* tree-vrp.c (vrp_expr_computes_nonnegative): Call
tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
* tree-ssa-loop-manip.c (create_iv): Likewise.
* c-typeck.c (build_conditional_expr): Likewise.
(build_binary_op): Likewise.
* tree-vrp.c (vrp_expr_computes_nonzero): Call
tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
(extract_range_from_unary_expr): Likewise.
* simplify-rtx.c (simplify_const_relational_operation): Warn when
assuming that signed overflow does not occur.
* c-common.c (pointer_int_sum): Ignore fold overflow warnings.
* tree.h (tree_expr_nonnegative_warnv_p): Declare.
(fold_defer_overflow_warnings): Declare.
(fold_undefer_overflow_warnings): Declare.
(fold_undefer_and_ignore_overflow_warnings): Declare.
(fold_deferring_overflow_warnings_p): Declare.
(tree_expr_nonzero_warnv_p): Declare.
* doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
of warning options.
(Warning Options): Document -Wstrict-overflow.
* Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
(tree-ssa-ccp.o): Likewise.
(tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
(fold-const.o): Depend on intl.h.
testsuite/:
* gcc.dg/Wstrict-overflow-1.c: New test.
* gcc.dg/Wstrict-overflow-2.c: New test.
* gcc.dg/Wstrict-overflow-3.c: New test.
* gcc.dg/Wstrict-overflow-4.c: New test.
* gcc.dg/Wstrict-overflow-5.c: New test.
* gcc.dg/Wstrict-overflow-6.c: New test.
* gcc.dg/Wstrict-overflow-7.c: New test.
* gcc.dg/Wstrict-overflow-8.c: New test.
* gcc.dg/Wstrict-overflow-9.c: New test.
* gcc.dg/Wstrict-overflow-10.c: New test.
From-SVN: r121895
2007-02-13 22:34:45 +00:00
Ian Lance Taylor
30d18db484
re PR middle-end/30751 (internal compiler error: in extract_insn, at recog.c:2108)
...
PR middle-end/30751
* lower-subreg.c (resolve_simple_move): Decompose subregs in
addresses.
From-SVN: r121894
2007-02-13 22:18:26 +00:00
Daniel Jacobowitz
291f172e62
configure.ac (target_libraries): Move libgcc before libiberty.
...
* configure.ac (target_libraries): Move libgcc before libiberty.
* configure: Regenerated.
From-SVN: r121893
2007-02-13 21:27:11 +00:00
Roger Sayle
2ebdbdfb69
builtin-bswap-2.c: New test case.
...
* gcc.target/ia64/builtin-bswap-2.c: New test case.
From-SVN: r121892
2007-02-13 20:42:42 +00:00
Stuart Hastings
ce9c43a1bf
* gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
...
From-SVN: r121891
2007-02-13 19:02:57 +00:00
Keith Seitz
a13c5b70a4
* gnu/classpath/jdwp/natVMVirtualMachine.cc
...
(jdwpBreakpointCB): New function.
(jdwpVMInitCB): Define and enable the breakpoint
callback.
From-SVN: r121889
2007-02-13 18:57:01 +00:00
Andrew Haley
b3a00d65b8
2007-02-13 Andrew Haley <aph@redhat.com>
...
* testsuite/libjava.lang/Divide_2.out
* testsuite/libjava.lang/Divide_2.java: New test.
From-SVN: r121887
2007-02-13 18:25:47 +00:00
Richard Henderson
138ae41e4d
alpha.c (alpha_stdarg_optimize_hook): Strip handled_component_p before looking for the indirect_ref.
...
* config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
handled_component_p before looking for the indirect_ref.
From-SVN: r121886
2007-02-13 09:29:35 -08:00
Richard Henderson
ea20d97016
pr29302-1.c: Moved from...
...
* gcc.c-torture/execute/ieee/pr29302-1.c: Moved from...
* gcc.c-torture/execute/pr29302-1.c: ... here.
From-SVN: r121885
2007-02-13 08:56:32 -08:00
Richard Henderson
2e6834d33e
i386.md (bswapsi_1): Rename from bswapsi2, remove flags clobber.
...
* config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
remove flags clobber.
(bswapsi2): New expander, emit code for !TARGET_BSWAP.
(bswaphi_lowpart): New.
(bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
remove TARGET_BSWAP test. Delete expander of the same name.
* optabs.c (widen_bswap, expand_doubleword_bswap): New.
(expand_unop): Use them.
From-SVN: r121884
2007-02-13 08:42:12 -08:00
Uros Bizjak
a23132e116
* config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
...
*cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
*movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
*ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
*ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
*ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
*ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
assembler dialect choice from asm templates.
From-SVN: r121883
2007-02-13 15:03:03 +01:00
Daniel Jacobowitz
c3a86da9a8
re PR bootstrap/30753 (checking for correct version of gmp.h... no)
...
PR bootstrap/30753
* configure.ac: Remove obsolete build / host tests. Use AC_PROG_CC
unconditionally. Use AC_PROG_CXX. Use ACX_TOOL_DIRS to find $prefix.
* configure: Regenerated.
Co-Authored-By: Paolo Bonzini <bonzini@gnu.org>
From-SVN: r121882
2007-02-13 13:39:19 +00:00
Dirk Mueller
9e0b7527be
locale_facets.tcc (num_get<>::do_get): Avoid warning about ambiguous else.
...
2007-02-13 Dirk Mueller <dmueller@suse.de>
* include/bits/locale_facets.tcc (num_get<>::do_get): Avoid
warning about ambiguous else.
From-SVN: r121881
2007-02-13 10:13:04 +00:00
Andreas Krebbel
7a23933bdd
ffi.c (ffi_prep_args, [...]): Add long double handling.
...
2007-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
* src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
ffi_closure_helper_SYSV): Add long double handling.
From-SVN: r121879
2007-02-13 07:54:40 +00:00
Keith Seitz
9606c9dd5e
jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast from jthread to Thread *; it is no longer needed.
...
* jvmti.cc (_Jv_JVMTI_GetStackTrace): Remove cast
from jthread to Thread *; it is no longer needed.
(_Jv_JVMTI_GetFrameCount): Likewise.
Fix small formatting typo.
From-SVN: r121878
2007-02-13 02:44:51 +00:00
Richard Henderson
174c12c748
i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
...
* config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
(fixuns_trunc<SSEMODEF>si2): Use it.
* config/i386/sse.md (vec_setv4sf_0): Export.
* config/i386/i386.c (ix86_build_const_vector): Export.
(ix86_split_convert_uns_si_sse): Rename from
ix86_expand_convert_uns_si_sse and rewrite as a splitter.
* config/i386/i386-protos.h: Update.
From-SVN: r121877
2007-02-12 17:20:02 -08:00
Manuel López-Ibáñez
2397c5750e
re PR c/29521 (Confusing warning for return with expression in function returning void)
...
2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c/29521
* c-typeck.c (c_finish_return): Improve warning message.
testsuite/
* gcc.dg/c90-return-1.c: Update output.
* gcc.dg/c99-return-1.c: Likewise.
From-SVN: r121876
2007-02-13 00:29:17 +00:00
Paolo Carlini
bad333ffe3
re PR libstdc++/21172 (potential integer overflow error in STL heap functions)
...
2007-02-12 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/21172
* include/bits/stl_heap.h (__adjust_heap(_RandomAccessIterator,
_Distance, _Distance, _Tp), __adjust_heap(_RandomAccessIterator,
_Distance, _Distance, _Tp, _Compare)): Avoid potential integer
overflow.
* include/bits/stl_heap.h (__is_heap(_RandomAccessIterator,
_RandomAccessIterator), __is_heap(_RandomAccessIterator,
_RandomAccessIterator, _StrictWeakOrdering): Mark inline.
(make_heap(_RandomAccessIterator, _RandomAccessIterator,
_Compare)): Do not mark inline.
* include/bits/stl_heap.h (push_heap(_RandomAccessIterator,
_RandomAccessIterator), sort_heap(_RandomAccessIterator,
_RandomAccessIterator)): Uncomment __glibcxx_requires_heap.
From-SVN: r121875
2007-02-13 00:25:30 +00:00
GCC Administrator
51d4712ed1
Daily bump.
...
From-SVN: r121873
2007-02-13 00:17:49 +00:00
Manuel López-Ibáñez
14a32e14b1
alias.c (find_symbolic_term): Delete unused function.
...
2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* alias.c (find_symbolic_term): Delete unused function.
From-SVN: r121869
2007-02-13 00:13:29 +00:00
Dirk Mueller
20af23d303
friend.c (do_friend): Annotate warning about friend declarations in templates with...
...
2007-02-13 Dirk Mueller <dmueller@suse.de>
* friend.c (do_friend): Annotate warning about friend
declarations in templates with OPT_Wnon_template_friend.
Convert informal message from warning() to inform().
From-SVN: r121867
2007-02-12 23:55:17 +00:00
Tom Tromey
40b86e5f2c
Collections.java (UnmodifiableMap.toArray): Imported changes from Classpath.
...
libjava/classpath
* java/util/Collections.java (UnmodifiableMap.toArray): Imported
changes from Classpath.
libjava
* sources.am, Makefile.in: Rebuilt.
* java/lang/Socket.java: Removed override.
* java/lang/DatagramSocket.java: Removed override.
* gnu/java/net/PlainSocketImpl.java (localSocketAddress): New
field.
(getLocalAddress): New method.
* gnu/java/net/PlainDatagramSocketImpl.java
(PlainDatagramSocketImpl): Throws IOException.
* gnu/java/net/natPlainSocketImplPosix.cc (write): Remove
'sizeof'.
(read): Likewise.
From-SVN: r121866
2007-02-12 23:52:39 +00:00
Paul Thomas
e8c30b5f9a
[multiple changes]
...
2007-02-13 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30554
* module.c (read_module): Set pointer_info to referenced if the
symbol has no namespace.
2007-02-12 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30554
* gfortran.dg/used_dummy_types_7.f90: New test.
From-SVN: r121865
2007-02-12 23:39:51 +00:00
Simon Martin
8ea6dfaef4
re PR c++/14622 (type mismatch in explicit template instantiation not detected)
...
PR c++/14622
* pt.c (do_decl_instantiation): Detect type mismatches in explicit
instantiations for variables.
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r121864
2007-02-12 22:17:06 +00:00
Uros Bizjak
0f7b6776a3
i386.md (paritydi2, paritysi2): New expanders.
...
* config/i386/i386.md (paritydi2, paritysi2): New expanders.
(paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
(*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
testsuite/ChangeLog:
* gcc.target/i386/parity-1.c: New test.
* gcc.target/i386/parity-2.c: New test.
From-SVN: r121863
2007-02-12 22:08:25 +01:00
Eric Botcazou
6170a99877
tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
...
* tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
* cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
the function, temporarily point the debug interface to the null one.
From-SVN: r121861
2007-02-12 21:01:33 +00:00
Richard Henderson
b9a8f075b6
Remove executable bits.
...
From-SVN: r121860
2007-02-12 12:58:58 -08:00
Eric Botcazou
d996473d67
dwarf2out.c (round_up_to_align): New static function.
...
* dwarf2out.c (round_up_to_align): New static function.
(field_byte_offset): Use it to round the offset.
From-SVN: r121859
2007-02-12 20:52:37 +00:00
Joseph Myers
ffcce7bcd8
* sv.po: Update.
...
From-SVN: r121857
2007-02-12 20:49:48 +00:00