Eric Botcazou
58f1b7061e
re PR ada/42253 (run time crash on null for thin pointers)
...
PR ada/42253
* gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
pointer base types are variant of each other. Apply special treatment
for null to fat pointer types in all cases.
From-SVN: r157107
2010-02-27 14:27:27 +00:00
GCC Administrator
cb7e3948d0
Daily bump.
...
From-SVN: r157105
2010-02-27 00:17:05 +00:00
Eric Botcazou
2743db69c5
re PR ada/43096 (miscompilation of ACATS c37105a at -O2)
...
PR ada/43096
* tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
the same alias set.
From-SVN: r157102
2010-02-26 23:10:24 +00:00
H.J. Lu
4d16c0dc91
Set the default arch at least to Prescott/Pentium 4.
...
2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc: Set the default arch at least to Prescott for
i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
if SSE math is enabled.
From-SVN: r157101
2010-02-26 14:35:34 -08:00
Manuel López-Ibáñez
0e94b75085
diagnostic.c (diagnostic_initialize): Update.
...
2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
* diagnostic.c (diagnostic_initialize): Update.
(diagnostic_report_diagnostic): Test inhibit_notes_p for
informative notes.
* diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
(diagnostic_inhibit_notes): New.
* toplev.c (process_options): inhibit notes with -fcompare-debug.
From-SVN: r157100
2010-02-26 22:06:56 +00:00
Manuel López-Ibáñez
7e1542b921
re PR c/20631 (Support -std=c90 as alias for -std=c89)
...
2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/20631
* doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
* doc/standards.texi: Likewise.
* doc/extend.texi: Likewise.
* doc/trouble.texi: Likewise.
* doc/cppopts.texi: Likewise.
* doc/install.texi: Likewise.
* c.opt (std=c90,std=gnu90): New options.
* c-opts.c (c_common_handle_option): Handle them.
testsuite/
* gcc.dg/cpp/c90-pedantic.c: New.
* gcc.dg/cpp/c90.c: New.
* gcc.dg/gnu90-const-expr-1.c: New.
* gcc.dg/Woverlength-strings-pedantic-c90.c: New.
From-SVN: r157096
2010-02-26 17:09:29 +00:00
Manuel López-Ibáñez
0b901e4cdc
re PR c/24577 (diagnostic informative note labelled "error")
...
2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/24577
* c-decl.c (undeclared_variable): Use an informative note.
From-SVN: r157095
2010-02-26 16:56:09 +00:00
Richard Guenther
3753001420
re PR tree-optimization/43186 (A loop in tree_unroll_loops_completely never ends)
...
2010-02-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43186
* gimple.h (gimple_fold): Remove.
* gimple.c (gimple_fold): Remove. Inline into single user ...
* tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
Try harder for conditions.
* gcc.c-torture/compile/pr43186.c: New testcase.
From-SVN: r157093
2010-02-26 16:01:52 +00:00
Jakub Jelinek
095c7b3cbd
re PR debug/43190 (Used pointer typedefs eliminated from debug info)
...
PR debug/43190
* function.c (used_types_insert): Don't skip through named pointer
types. Don't use TYPE_MAIN_VARIANT if the original type has a name
and it is different from the main variant's type.
* c-c++-common/dwarf2/pr43190.c: New test.
From-SVN: r157092
2010-02-26 16:58:57 +01:00
Nick Clifton
a1e205cf51
* config/rx/rx.md (sminsi3): Remove bogus alternative.
...
From-SVN: r157091
2010-02-26 15:32:27 +00:00
H.J. Lu
a3af5e2615
Support --with-fpmath=sse for x86.
...
2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc: Support --with-fpmath=sse for x86.
* config/i386/ssemath.h: New.
* doc/install.texi (--with-fpmath=sse): Documented.
From-SVN: r157090
2010-02-26 06:52:01 -08:00
H.J. Lu
482b2e5b35
Add -mno-mmx to x86 in gcc.dg/torture/stackalign/stackalign.exp.
...
2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
PR testsuite/37074:
* gcc.dg/torture/stackalign/stackalign.exp: Add -mno-mmx to x86.
From-SVN: r157089
2010-02-26 06:49:02 -08:00
Richard Guenther
2f81659160
re PR tree-optimization/43188 ("error: alignment of array elements is greater than element size")
...
2010-02-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43188
* tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
vector types of over-aligned element type.
* gcc.c-torture/compile/pr43188.c: New testcase.
From-SVN: r157088
2010-02-26 13:34:38 +00:00
H.J. Lu
7ce321b3e3
Correct expand_vec_perm_blend in i386.c for V8HImode merge.
...
gcc/
2010-02-26 Uros Bizjak <ubizjak@gmail.com>
PR target/43175
* config/i386/i386.c (expand_vec_perm_blend): Use correct
operands in V8HImode subregs. Fix operand order in VEC_MERGE
rtx.
gcc/testsuite/
2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
PR target/43175
* gcc.target/i386/vperm-v4si-2-sse4.c: New.
From-SVN: r157087
2010-02-26 05:18:17 -08:00
Jan Kratochvil
b55b184a4a
* doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
...
From-SVN: r157086
2010-02-26 11:54:26 +00:00
Jakub Jelinek
6764d92cee
Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
...
* Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
* var-tracking.c: Include diagnostic.h.
(debug_dv): New function.
(dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
From-SVN: r157085
2010-02-26 12:03:46 +01:00
Jakub Jelinek
5a30996511
re PR debug/43160 (Wrong debug info in guality/vla-1.c (f1))
...
PR debug/43160
* var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
(add_value_chain, add_value_chains, remove_value_chain,
remove_value_chains): Handle DEBUG_EXPRs.
(check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
From-SVN: r157084
2010-02-26 12:02:39 +01:00
Jakub Jelinek
e7140c8da2
re PR debug/43161 (Wrong debug info in guality/vla-1.c (f2))
...
PR debug/43161
* regcprop.c (struct queued_debug_insn_change): New type.
(struct value_data_entry): Add debug_insn_changes field.
(struct value_data): Add n_debug_insn_changes field.
(debug_insn_changes_pool): New variable.
(free_debug_insn_changes, apply_debug_insn_changes,
cprop_find_used_regs_1, cprop_find_used_regs): New functions.
(kill_value_one_regno): Call free_debug_insn_changes if needed.
(init_value_data): Clear debug_insn_changes and n_debug_insn_changes
fields.
(replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
changes for them.
(copyprop_hardreg_forward_1): Don't call apply_change_group for
DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
changes, call cprop_find_used_regs via note_stores.
(copyprop_hardreg_forward): When copying vd from predecessor
which has any queued DEBUG_INSN changes, make sure the pointers are
cleared. At the end call df_analyze and then if there are any
DEBUG_INSN changes queued at the end of some basic block for still
live registers, apply them.
(pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
From-SVN: r157083
2010-02-26 12:01:28 +01:00
Uros Bizjak
894b386f8e
config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
...
* config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
(arm*-*-*): Ditto.
From-SVN: r157082
2010-02-26 09:17:00 +01:00
H.J. Lu
3fd7763031
Set default arch/cpu for i[34567]86-*-*|x86_64-*-* targets.
...
2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
targets. Set the default with_cpu/with_arch from arch/cpu.
Allow x86-64 and native for with_cpu/with_arch.
From-SVN: r157081
2010-02-25 18:37:40 -08:00
Nicolas Benoit
4b9c607584
ebitmap.c: Change calls to verify_popcount with calls to sbitmap_verify_popcount.
...
2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
* ebitmap.c: Change calls to verify_popcount with calls to
sbitmap_verify_popcount.
(ebitmap_clear_bit): Fixed map->cacheindex test and
map>cache update when bit clearing results in an empty
element.
From-SVN: r157080
2010-02-25 20:51:27 -05:00
Eric Botcazou
cac1c927c2
* g++.dg/abi/packed1.C: Expect warning on the SPARC.
...
From-SVN: r157079
2010-02-26 00:21:04 +00:00
GCC Administrator
bac872a35a
Daily bump.
...
From-SVN: r157078
2010-02-26 00:17:00 +00:00
Michael Meissner
2fcd8e02d6
Fix PR target/43154
...
From-SVN: r157074
2010-02-25 22:26:55 +00:00
Gerald Pfeifer
f61ae06585
extend.texi (Symbol-Renaming Pragmas): Fix spelling of #pragma extern_prefix.
...
* doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
#pragma extern_prefix.
From-SVN: r157072
2010-02-25 20:48:57 +00:00
Ed Smith-Rowland
7703dc47e1
random.tcc (operator<<): Use max_digits10.
...
2010-02-25 Ed Smith-Rowland <3dw4rd@verizon.net>
* include/bits/random.tcc (operator<<): Use max_digits10.
From-SVN: r157068
2010-02-25 17:34:30 +00:00
Ed Smith-Rowland
018afad39f
limits (__numeric_limits_base::max_digits10, [...]): Add.
...
2010-02-25 Ed Smith-Rowland <3dw4rd@verizon.net>
* include/std/limits (__numeric_limits_base::max_digits10,
numeric_limits<>::max_digits10, numeric_limits<>::lowest): Add.
* src/limits.cc: Define max_digits10.
* config/abi/pre/gnu.ver: Adjust.
* testsuite/18_support/numeric_limits/dr559.cc: Test max_digits10
and lowest too.
* testsuite/18_support/numeric_limits/lowest.cc: New.
* testsuite/18_support/numeric_limits/max_digits10.cc: New.
From-SVN: r157067
2010-02-25 17:13:04 +00:00
Paolo Carlini
640f8e6548
functional_hash.h (__hash_combine): Remove.
...
2010-02-25 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/functional_hash.h (__hash_combine): Remove.
(_Fnv_hash_base<>::hash(const char*, size_t)): Add defaulted
hash parameter.
(_Fnv_hash::__hash_combine(const _Tp&, size_t)): Add.
* include/std/system_error (hash<system_error>): Adjust.
* src/compatibility-c++0x.cc (hash<system_error>): Likewise.
From-SVN: r157065
2010-02-25 13:32:52 +00:00
Jakub Jelinek
0679656478
re PR debug/43166 (ICE in simplify_subreg on fortran code)
...
PR debug/43166
* cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
BLKmode, assert op0 is a MEM and just adjust its mode.
* trans-common.c (build_common_decl): Also update DECL_MODE,
and DECL_SIZE when encountering a larger common block and call
layout_decl.
* gfortran.dg/debug/pr43166.f: New test.
From-SVN: r157063
2010-02-25 11:50:24 +01:00
Jakub Jelinek
7d5d39bb9d
re PR debug/43165 (ice in simplify_subreg, at simplify-rtx.c:5146)
...
PR debug/43165
* cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
if bitpos isn't multiple of mode's bitsize.
* gcc.dg/torture/pr43165.c: New test.
From-SVN: r157062
2010-02-25 11:41:52 +01:00
Jerry DeLisle
f205d1da0f
Fix ChangeLog Entry.
...
From-SVN: r157061
2010-02-25 05:53:35 +00:00
Jerry DeLisle
f983954d59
transfer.c (require_type): Subtract one from item_count for output of error message.
...
2010-02-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* io/transfer.c (require_type): Subtract one from item_count for output
of error message. Add comment before formatted_transfer function
explaining why the item_count is off by one.
From-SVN: r157060
2010-02-25 05:47:10 +00:00
Benjamin Kosnik
03a32789f4
faq.xml: Adjust structure for pdf index.
...
2010-02-24 Benjamin Kosnik <bkoz@redhat.com>
* doc/xml/faq.xml: Adjust structure for pdf index.
* doc/xml/manual/mt_allocator.xml: Same.
* doc/xml/manual/allocator.xml: Same.
* doc/xml/manual/ctype.xml: Same.
* doc/xml/manual/numerics.xml: Same.
* doc/xml/manual/codecvt.xml: Same.
* doc/xml/manual/intro.xml: Same.
* doc/xml/manual/shared_ptr.xml: Same.
* doc/xml/manual/status_cxxtr1.xml: Same.
* doc/xml/manual/auto_ptr.xml: Same.
* doc/xml/manual/internals.xml: Same.
* doc/xml/manual/status_cxx1998.xml: Same.
* doc/xml/manual/parallel_mode.xml: Same.
* doc/xml/manual/profile_mode.xml: Same.
* doc/xml/manual/containers.xml: Same.
* doc/xml/manual/io.xml: Same.
* doc/xml/manual/concurrency_extensions.xml: Same.
* doc/xml/manual/appendix_porting.xml: Same.
* doc/xml/manual/utilities.xml: Same.
* doc/xml/manual/support.xml: Same.
* doc/xml/manual/bitmap_allocator.xml: Same.
* doc/xml/manual/configure.xml: Same.
* doc/xml/manual/build_hacking.xml: Same.
* doc/xml/manual/evolution.xml: Same.
* doc/xml/manual/using.xml: Same.
* doc/xml/manual/debug.xml: Same.
* doc/xml/manual/localization.xml: Same.
* doc/xml/manual/strings.xml: Same.
* doc/xml/manual/debug_mode.xml: Same.
* doc/xml/manual/locale.xml: Same.
* doc/xml/manual/extensions.xml: Same.
* doc/xml/manual/appendix_contributing.xml: Same.
* doc/xml/manual/prerequisites.xml: Same.
* doc/xml/manual/messages.xml: Same.
* doc/xml/manual/diagnostics.xml: Same.
* doc/xml/manual/algorithms.xml: Same.
* doc/xml/manual/appendix_free.xml: Same.
* doc/xml/manual/iterators.xml: Same.
* doc/xml/manual/spine.xml: Same.
* doc/xml/manual/status_cxxtr24733.xml: Same.
* doc/xml/manual/status_cxx200x.xml: Same.
* doc/Makefile.am: Refactor.
* doc/Makefile.in: Regenerate.
* include/bits/c++0x_warning.h: Tweak doxygen file markup.
From-SVN: r157059
2010-02-25 01:22:57 +00:00
GCC Administrator
72c2ffd351
Daily bump.
...
From-SVN: r157058
2010-02-25 00:17:16 +00:00
Manuel López-Ibáñez
124e0d274a
c.opt (-ftemplate-depth=): New.
...
2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
* c.opt (-ftemplate-depth=): New.
(-ftemplate-depth-): Deprecate.
* optc-gen.awk: Handle -ftemplate-depth=.
* opth-gen.awk: Likewise.
* c-opts.c (c_common_handle_option): Likewise.
* doc/invoke.texi (-ftemplate-depth-): Replace with
-ftemplate-depth=.
cp/
* pt.c (push_tinst_level): Replace -ftemplate-depth- with
-ftemplate-depth=.
From-SVN: r157054
2010-02-24 20:41:01 +00:00
Jason Merrill
0e7750a010
* doc/invoke.texi: Improve -Wabi and -fabi-version docs.
...
From-SVN: r157053
2010-02-24 14:26:45 -05:00
Jason Merrill
b66093b0c2
re PR c++/12909 (ambiguity in mangling vector types)
...
PR c++/12909
* mangle.c (write_type): Give -Wabi warning for old vector mangling.
From-SVN: r157052
2010-02-24 14:26:38 -05:00
Jason Merrill
254d1a5a0c
class.c (layout_class_type): Don't give -Wabi warning for a bug in a previous ABI version.
...
* class.c (layout_class_type): Don't give -Wabi warning for a bug
in a previous ABI version.
From-SVN: r157051
2010-02-24 14:26:29 -05:00
Rainer Orth
22faf0048f
libffi.texi (The Closure API): Fix typo.
...
* doc/libffi.texi (The Closure API): Fix typo.
* doc/libffi.info: Remove.
From-SVN: r157049
2010-02-24 16:02:17 +00:00
Rainer Orth
28c64ec893
* io/write_float.def (WRITE_FLOAT): Use __builtin_signbit.
...
From-SVN: r157048
2010-02-24 15:35:40 +00:00
Andrew Haley
9da60d2a10
re PR java/40816 (error: 'jvariant::jvariant(jbyte)' cannot be overloaded)
...
2010-02-24 Andrew Haley <aph@redhat.com>
PR java/40816
* include/jni_md.h: jboolean is an unsigned type.
From-SVN: r157047
2010-02-24 15:34:19 +00:00
Rainer Orth
241b534ec9
deallocate_global.cc: Require __cxa_atexit.
...
* testsuite/ext/new_allocator/deallocate_global.cc: Require
__cxa_atexit.
* testsuite/ext/throw_allocator/deallocate_global.cc: Likewise.
From-SVN: r157046
2010-02-24 15:31:22 +00:00
Rainer Orth
c26238f4ed
cfg.c (alloc_aux_for_block): Remove inline.
...
* cfg.c (alloc_aux_for_block): Remove inline.
(alloc_aux_for_edge): Likewise.
From-SVN: r157045
2010-02-24 15:27:46 +00:00
Rainer Orth
bef64e0fad
* config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
...
From-SVN: r157043
2010-02-24 14:40:32 +00:00
Rainer Orth
68ba2afe7c
sol2.h (NO_DBX_BNSYM_ENSYM): Define.
...
* config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
* config/i386/sol2-gas.h: New file.
* config.gcc (i[34567]86-*-solaris2*): Use it.
From-SVN: r157042
2010-02-24 13:57:20 +00:00
Manuel López-Ibáñez
2d2e923fc1
re PR c/43128 (c-c++-common/pr41779.c doesn't work)
...
2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/43128
* c-typeck.c (ep_convert_and_check): New.
(build_conditional_expr): Use it.
(build_binary_op): Likewise.
testsuite/
* c-c++-common/pr41779.c: Update.
From-SVN: r157040
2010-02-24 13:09:37 +00:00
Joseph Myers
015e9be7de
* zh_CN.po: Update.
...
From-SVN: r157039
2010-02-24 12:53:53 +00:00
Joseph Myers
696a28cf7f
* zh_CN.po: Update.
...
From-SVN: r157038
2010-02-24 12:53:05 +00:00
Rainer Orth
39e998c280
re PR testsuite/32547 (gnat.dg tasking tests fail on IRIX 5.3)
...
PR ada/32547
* lib/gnat-dg.exp (gnat_load): Redefine.
* ada/acats/run_acats: Run run_all.sh with $SHELL.
* ada/acats/run_all.sh: Downcase tasking not implemented message.
From-SVN: r157037
2010-02-24 12:51:44 +00:00
Rainer Orth
2607480d15
re PR libobjc/36610 (objc_msg_sendv is broken for targets which pass argument via registers)
...
PR libobjc/36610
* objc/execute/forward-1.x: XFAIL on alpha*-dec-osf*, 64-bit
i?86-*-solaris2*, mips-sgi-irix*, sparc*-sun-solaris2* with
-fgnu-runtime.
Sort entries.
From-SVN: r157035
2010-02-24 11:56:10 +00:00