Commit Graph

124807 Commits

Author SHA1 Message Date
Jeff Law
188eb57781 Fix typo.
From-SVN: r201908
2013-08-21 13:42:11 -06:00
Jeff Law
b9ebee5df9 tree-flow.h (register_jump_thread): Pass vector of edges instead of each important edge.
* tree-flow.h (register_jump_thread): Pass vector of edges
       instead of each important edge.
       * tree-ssa-threadedge.c (thread_across_edge): Build the jump
       thread path into a vector and pass that to register_jump_thread.
       * tree-ssa-threadupdate.c (register_jump_thread): Conver the
       passed in edge vector to the current 3-edge form.

From-SVN: r201907
2013-08-21 13:27:54 -06:00
Paolo Carlini
98cf9ac919 re PR c++/56130 (__attribute__((deprecated)) does not affect C++ reference)
2013-08-21  Paolo Carlini  <paolo.carlini@oracle.com>

	* call.c (build_new_method_call_1): Use INDIRECT_REF_P.
	* cp-tree.h (REFERENCE_REF_P): Likewise.
	* semantics.c (finish_offsetof): Likewise.


/cp
2013-08-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/56130
	* semantics.c (finish_id_expression): Handle deprecated references.

/testsuite
2013-08-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/56130
	* g++.dg/warn/deprecated-7.C: New.

From-SVN: r201906
2013-08-21 19:06:05 +00:00
Jeff Law
dd5e84232f Revert:
2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>

        * dce.c (fini_dce): Call df_analyze again just in case
        delete_unmarked_insns removed anything.

From-SVN: r201905
2013-08-21 12:35:01 -06:00
Paolo Carlini
9835f8a1f8 pr57451.C: Remove spurious dg-do directive.
2013-08-21  Paolo Carlini  <paolo.carlini@oracle.com>

	* g++.dg/tree-prof/pr57451.C: Remove spurious dg-do directive.

From-SVN: r201902
2013-08-21 15:28:09 +00:00
Joern Rennecke
445dc8dfd8 reload.h (struct reg_equivs): Rename to ..
* reload.h (struct reg_equivs): Rename to ..
        (struct reg_equivs_s): .. this.

From-SVN: r201901
2013-08-21 15:38:35 +01:00
Martin Liska
e0df53dd42 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
From-SVN: r201900
2013-08-21 14:27:10 +00:00
Rainer Orth
e7d1d3ebe7 Don't nest comment in gcc/config/sol2.h.
* config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest
	comment.

From-SVN: r201899
2013-08-21 14:25:44 +00:00
Jeff Law
5562e26eaf tree-vrp.c (simplify_stmt_for_jump_threading): Try to simplify assignments too.
* tree-vrp.c (simplify_stmt_for_jump_threading): Try to
	simplify assignments too.  If the RHS collapses to a singleton
	range, then return the value for the range.

	* gcc.dg/tree-ssa/ssa-vrp-thread-1.c: New test.

From-SVN: r201898
2013-08-21 06:36:36 -06:00
Paolo Carlini
8724cfdd3b re PR c++/56134 (ICE: alias attribute on c++ static class member;)
2013-08-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/56134
	* g++.dg/ext/attr-alias-3.C: New.

From-SVN: r201897
2013-08-21 11:20:15 +00:00
Kirill Yukhin
c7ecdec646 sse.md (V16): Rename to...
* config/i386/sse.md (V16): Rename to...
        (VMOVE): this.
        (mov<mode>): Update iterator name.
        (*mov<mode>_internal): Ditto.
        (push<mode>1): Ditto.
        (movmisalign<mode>): Ditto.

From-SVN: r201895
2013-08-21 08:34:56 +00:00
GCC Administrator
09011f93f6 Daily bump.
From-SVN: r201894
2013-08-21 00:16:57 +00:00
Jan Hubicka
bfa3b50aab re PR bootstrap/58186 (LTO profiledbootstrap fails in stage feedback for fortran/frontend-passes.c with "edge ... has no corresponding call_stmt")
PR bootstrap/58186
	* cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
	entry for direct edges.
	(cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.

From-SVN: r201891
2013-08-20 21:41:36 +00:00
Caroline Tice
8bc16536d6 Fix logging to not use /tmp or the current directory...
Fix logging to not use /tmp or the current directory; get
the location for writing log files from an environment
variable; use secure getenv whenever possible.

From-SVN: r201890
2013-08-20 13:43:16 -07:00
Steven Bosscher
ddfee90670 MAINTAINERS: Add myself as RTL optimizers reviewer.
* MAINTAINERS: Add myself as RTL optimizers reviewer.

From-SVN: r201889
2013-08-20 19:23:24 +00:00
Phil Muldoon
c77efe8f42 re PR libstdc++/53477 (pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range)
2013-08-20  Phil Muldoon  <pmuldoon@redhat.com>

	PR libstdc++/53477
	http://sourceware.org/bugzilla/show_bug.cgi?id=15195

	* python/libstdcxx/v6/printers.py (Printer.__call__): If a value
	is a reference, fetch referenced value.
	(RxPrinter.invoke): Ditto.
	* testsuite/libstdc++-prettyprinters/cxx11.cc (main): Add -O0
	flag. Add referenced value tests.

From-SVN: r201888
2013-08-20 19:20:42 +00:00
David Malcolm
6cd4d135d7 Revert my last two changes, r201865 and r201864
2013-08-20  David Malcolm  <dmalcolm@redhat.com>

	Revert my last two changes, r201865 and r201864:

	Revert r201865:
	2013-08-20  David Malcolm  <dmalcolm@redhat.com>

	Make opt_pass and gcc::pass_manager be GC-managed, so that pass
	instances can own GC refs.

	* Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
	* context.c (gcc::context::gt_ggc_mx): Traverse passes_.
	(gcc::context::gt_pch_nx): Likewise.
	(gcc::context::gt_pch_nx):  Likewise.
	* ggc.h (gt_ggc_mx <T>): New.
	(gt_pch_nx_with_op <T>): New.
	(gt_pch_nx <T>): New.
	* passes.c (opt_pass::gt_ggc_mx): New.
	(opt_pass::gt_pch_nx): New.
	(opt_pass::gt_pch_nx_with_op): New.
	(pass_manager::gt_ggc_mx): New.
	(pass_manager::gt_pch_nx): New.
	(pass_manager::gt_pch_nx_with_op): New.
	(pass_manager::operator new): Use
	ggc_internal_cleared_alloc_stat rather than xcalloc.
	* pass_manager.h (class pass_manager): Add GTY((user)) marking.
	(pass_manager::gt_ggc_mx): New.
	(pass_manager::gt_pch_nx): New.
	(pass_manager::gt_pch_nx_with_op): New.
	* tree-pass.h (class opt_pass): Add GTY((user)) marking.
	(opt_pass::operator new): New.
	(opt_pass::gt_ggc_mx): New.
	(opt_pass::gt_pch_nx): New.
	(opt_pass::gt_pch_nx_with_op): New.

	Revert r201864:
	2013-08-20  David Malcolm  <dmalcolm@redhat.com>

	* Makefile.in (GTFILES): Add context.h.
	* context.c (gcc::context::operator new): New.
	(gcc::context::gt_ggc_mx): New.
	(gcc::context::gt_pch_nx): New.
	(gcc::context::gt_pch_nx): New.
	* context.h (gcc::context): Add GTY((user)) marking.
	(gcc::context::operator new): New.
	(gcc::context::gt_ggc_mx): New.
	(gcc::context::gt_pch_nx): New.
	(gcc::context::gt_pch_nx): New.
	(g): Add GTY marking.
	(gt_ggc_mx (gcc::context *)): New.
	(gt_pch_nx (gcc::context *)): New.
	(gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
	void *cookie)): New.
	* gengtype.c (open_base_files) <ifiles>: Add context.h.

From-SVN: r201887
2013-08-20 15:51:18 +00:00
Alexey Makhalov
a046136a50 dce.c (fini_dce): Call df_analyze again just in case delete_unmarked_insns removed anything.
* dce.c (fini_dce): Call df_analyze again just in case
       delete_unmarked_insns removed anything.

From-SVN: r201886
2013-08-20 09:14:49 -06:00
Janus Weil
bf7a6c1cb1 re PR fortran/53655 ([F03] "default initializer" warnings)
2013-08-20  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/53655
	* trans-decl.c (generate_local_decl): Check if type has any components.

2013-08-20  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/53655
	* gfortran.dg/intent_out_8.f90: New.

From-SVN: r201884
2013-08-20 16:16:26 +02:00
Teresa Johnson
67598720af re PR rtl-optimization/57451 (Incorrect debug ranges emitted for -freorder-blocks-and-partition -g)
2013-08-20  Teresa Johnson  <tejohnson@google.com>

	PR rtl-optimizations/57451
	* final.c (reemit_insn_block_notes): Prevent lexical blocks
	from crossing split section boundaries.

	* testsuite/g++.dg/tree-prof/pr57451.C: New test.

From-SVN: r201883
2013-08-20 13:29:53 +00:00
Jason Merrill
c5918c2199 re PR c++/58119 (Invalid ambiguous default type conversion with only a single invalid conversion listed.)
PR c++/58119
	* cvt.c (build_expr_type_conversion): Don't complain about a
	template that can't match the desired type category.

From-SVN: r201880
2013-08-20 08:58:47 -04:00
Matthew Gretton-Dann
f8693fafef linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>

	* config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
	* config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
	with MULTLIB_DEFAULTS.

From-SVN: r201879
2013-08-20 12:18:36 +00:00
Nick Clifton
7d0b9a9cf8 target.def (narrow_volatile_bitfield): Note that the default value is false, not !TARGET_STRICT_ALIGN.
* target.def (narrow_volatile_bitfield): Note that the default
	value is false, not !TARGET_STRICT_ALIGN.
	* doc/tm.texi: Regenerate.

From-SVN: r201878
2013-08-20 12:17:16 +00:00
Paolo Carlini
25a9a3671a 2013-08-20 Paolo Carlini <paolo.carlini@oracle.com>
* Fix ChangeLog.

From-SVN: r201875
2013-08-20 11:53:34 +00:00
Paolo Carlini
802e8b38a1 re PR c++/58190 (FAIL: g++.dg/pr57878.C (test for excess errors) on x86_64-apple-darwin10)
2013-08-20  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58190
	* g++.dg/pr57878.C: Use __SIZE_TYPE__.

From-SVN: r201874
2013-08-20 11:39:15 +00:00
Gabriel Dos Reis
8ccb81bdb8 error.c (pp_ggc_formatted_text): New.
* error.c (pp_ggc_formatted_text): New.
	(type_as_string): Use it in lieu of pp_formatted_text.
	(type_as_string_translate): Likewise.
	(expr_as_string): Likewise.
	(decl_as_string): Likewise.
	(decl_as_string_translate): Likewise.
	(lang_decl_name): Likewise.
	(decl_to_string): Likewise.
	(expr_to_string): Likewise.
	(fndecl_to_string): Likewise.
	(parm_to_string): Likewise.
	(type_to_string): Likewise.
	(args_to_string): Likewise.
	(subst_to_string): Likewise.

From-SVN: r201873
2013-08-20 11:23:30 +00:00
Tim Shen
f6f0407c4c regex_constants.h: Add underlying unsigned int for enum syntax_option_type.
2013-08-20  Tim Shen  <timshen91@gmail.com>

	* include/bits/regex_constants.h: Add underlying `unsigned int` for
	  enum syntax_option_type.

From-SVN: r201872
2013-08-20 10:36:42 +00:00
Pavel Chupin
8edb8dc817 Fix LIB_SPEC for systems without libpthread.
* config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
	* config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
	for Android.
	* config/i386/linux-common.h: Likewise.
	* config/mips/linux-common.h: Likewise.

From-SVN: r201871
2013-08-20 08:31:40 +00:00
Zhouyi Zhou
d71ff3faa1 tree-ssa-ccp.c (get_default_value): Remove redundant condition checks.
* tree-ssa-ccp.c (get_default_value): Remove redundant condition
       checks.

From-SVN: r201870
2013-08-20 00:25:10 -06:00
Alan Modra
a98cbc3694 floatformat.h (floatformat_ibm_long_double): Delete.
include/
	* floatformat.h (floatformat_ibm_long_double): Delete.
	(floatformat_ibm_long_double_big): Declare.
	(floatformat_ibm_long_double_little): Declare.
libiberty/
	* floatformat.c (floatformat_ibm_long_double): Rename to..
	(floatformat_ibm_long_double_big): ..this.
	(floatformat_ibm_long_double_little): New.

From-SVN: r201869
2013-08-20 15:01:41 +09:30
Benjamin De Kosnik
6a56e2dd33 MAINTAINERS: Update name, email.
2013-08-19  Benjamin De Kosnik  <bkoz@gnu.org>

	* MAINTAINERS: Update name, email.

From-SVN: r201868
2013-08-20 03:10:19 +00:00
Balaji V. Iyer
318cda8521 re PR c/57490 (ICE on c-c++-common/cilk-plus/AN/an-if.c)
Fix for PR c/57490.

gcc/c/ChangeLog
+2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c/57490
+       * c-array-notation.c (fix_conditional_array_notations_1): Added a
+       check for truth values.
+       (expand_array_notation_exprs): Added truth values case.  Removed an
+       unwanted else.  Added for-loop to walk through subtrees in default
+       case.
+

gcc/cp/ChangeLog
+2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c/57490
+       * cp-array-notation.c (cp_expand_cond_array_notations): Added a
+       check for truth values.
+       (expand_array_notation_exprs): Added truth values case.  Removed an
+       unwanted else.  Added for-loop to walk through subtrees in default
+       case.
+       * call.c (build_cxx_call): Inherited the type of the array notation for
+       certain built-in array notation functions.
+

gcc/testsuite/ChangeLog
+2013-08-19  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c/57490
+       * c-c++-common/cilk-plus/AN/pr57490.c: New test.
+

From-SVN: r201867
2013-08-19 18:10:56 -07:00
David Malcolm
e42c64cb6d Make opt_pass and gcc::pass_manager be GC-managed
2013-08-20  David Malcolm  <dmalcolm@redhat.com>

	Make opt_pass and gcc::pass_manager be GC-managed, so that pass
	instances can own GC refs.

	* Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
	* context.c (gcc::context::gt_ggc_mx): Traverse passes_.
	(gcc::context::gt_pch_nx): Likewise.
	(gcc::context::gt_pch_nx):  Likewise.
	* ggc.h (gt_ggc_mx <T>): New.
	(gt_pch_nx_with_op <T>): New.
	(gt_pch_nx <T>): New.
	* passes.c (opt_pass::gt_ggc_mx): New.
	(opt_pass::gt_pch_nx): New.
	(opt_pass::gt_pch_nx_with_op): New.
	(pass_manager::gt_ggc_mx): New.
	(pass_manager::gt_pch_nx): New.
	(pass_manager::gt_pch_nx_with_op): New.
	(pass_manager::operator new): Use
	ggc_internal_cleared_alloc_stat rather than xcalloc.
	* pass_manager.h (class pass_manager): Add GTY((user)) marking.
	(pass_manager::gt_ggc_mx): New.
	(pass_manager::gt_pch_nx): New.
	(pass_manager::gt_pch_nx_with_op): New.
	* tree-pass.h (class opt_pass): Add GTY((user)) marking.
	(opt_pass::operator new): New.
	(opt_pass::gt_ggc_mx): New.
	(opt_pass::gt_pch_nx): New.
	(opt_pass::gt_pch_nx_with_op): New.

From-SVN: r201865
2013-08-20 00:54:49 +00:00
David Malcolm
910c02a071 Make gcc::context be GC-managed
* Makefile.in (GTFILES): Add context.h.
	* context.c (gcc::context::operator new): New.
	(gcc::context::gt_ggc_mx): New.
	(gcc::context::gt_pch_nx): New.
	(gcc::context::gt_pch_nx): New.
	* context.h (gcc::context): Add GTY((user)) marking.
	(gcc::context::operator new): New.
	(gcc::context::gt_ggc_mx): New.
	(gcc::context::gt_pch_nx): New.
	(gcc::context::gt_pch_nx): New.
	(g): Add GTY marking.
	(gt_ggc_mx (gcc::context *)): New.
	(gt_pch_nx (gcc::context *)): New.
	(gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
	void *cookie)): New.
	* gengtype.c (open_base_files) <ifiles>: Add context.h.

From-SVN: r201864
2013-08-20 00:48:14 +00:00
GCC Administrator
c28878251a Daily bump.
From-SVN: r201863
2013-08-20 00:16:58 +00:00
Alan Modra
af4b4236a4 re PR target/57865 (Broken _save64gpr and _rest64gpr usage)
PR target/57865
	* config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
	(rs6000_emit_epilogue): Likewise.

From-SVN: r201860
2013-08-20 09:09:05 +09:30
Dehao Chen
0d6332222b value-prof.c (gimple_ic): Fix the bug of adding EH edge.
2013-08-19  Dehao Chen (dehao@google.com)

        * value-prof.c (gimple_ic): Fix the bug of adding EH edge.

From-SVN: r201859
2013-08-19 22:14:00 +00:00
Dehao Chen
f524d0aa99 dwarf2.def (DW_AT_GNU_discriminator): New attribute.
2013-08-19  Dehao Chen  <dehao@google.com>

	* dwarf2.def (DW_AT_GNU_discriminator): New attribute.

From-SVN: r201855
2013-08-19 20:11:09 +00:00
Peter Bergner
e2323f5b33 builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
gcc/
	* builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
	(BUILT_IN_FABSD64): Likewise.
	(BUILT_IN_FABSD128): Likewise.
	* builtins.c (expand_builtin): Add support for new DFP ABS builtins.
	(fold_builtin_1): Likewise.
	* config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping destination
	and source operands.
	(*abstd2_fpr): Likewise.
	(*nabstd2_fpr): Likewise.

gcc/testsuite/
	* gcc.target/powerpc/dfp-dd-2.c: New test.
	* gcc.target/powerpc/dfp-td-2.c: Likewise.
	* gcc.target/powerpc/dfp-td-3.c: Likewise.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r201849
2013-08-19 12:49:33 -05:00
Richard Sandiford
7a3def9768 mulsize-1.c: Check for SLL as well as SUBU.
gcc/testsuite/
	* gcc.target/mips/mulsize-1.c: Check for SLL as well as SUBU.
	* gcc.target/mips/mulsize-2.c: Check for ADDU rather than SUBU.
	Check for SLL too.

From-SVN: r201848
2013-08-19 17:35:57 +00:00
Richard Sandiford
cfbf3ee885 mips.c (mips_adjust_insn_length): Add checks for JUMP_P and INSN_P.
gcc/
	* config/mips/mips.c (mips_adjust_insn_length): Add checks for
	JUMP_P and INSN_P.

From-SVN: r201847
2013-08-19 17:29:59 +00:00
Aldy Hernandez
d3136aeb7a invoke.texi (-fcilkplus): Clarify that implementation is incomplete.
* doc/invoke.texi (-fcilkplus): Clarify that implementation is
	incomplete.

From-SVN: r201846
2013-08-19 17:19:38 +00:00
Joern Rennecke
266694cd11 * gcc.dg/tree-ssa/vrp87.c [avr-*-*] (dg-additional-options): New.
From-SVN: r201845
2013-08-19 18:01:23 +01:00
Joern Rennecke
49f032040e re PR testsuite/52641 (Test cases fail for 16-bit int targets)
PR testsuite/52641
        * gcc.dg/tree-ssa/pr31261.c [int16]: Change expected unsigned type.
        * gcc.dg/tree-ssa/ssa-pre-21.c [! size32plus]: Mark as xfail.
        * gcc.dg/tree-ssa/vector-4.c (SItype): New typedef.
        (v4si): Use it.
        * gcc.dg/tree-ssa/ssa-pre-30.c: Test requires int32.
        * gcc.dg/tree-ssa/vrp58.c: Adjust scan expression for int16.

From-SVN: r201844
2013-08-19 16:16:45 +01:00
Joern Rennecke
89b1fbefef vrp55.c: Use keeps_null_pointer_checks to determine correct test response.
* gcc.dg/tree-ssa/vrp55.c: Use keeps_null_pointer_checks to determine
        correct test response.

From-SVN: r201843
2013-08-19 16:13:33 +01:00
Joern Rennecke
dced9cd71a ssa-dom-thread-4.c [avr-*-*]: Expect 6 times "Threaded".
* gcc.dg/tree-ssa/ssa-dom-thread-4.c [avr-*-*]: Expect 6 times
        "Threaded".

From-SVN: r201842
2013-08-19 16:11:55 +01:00
Paolo Carlini
9485d254d1 parser.c (cp_parser_lambda_introducer, [...]): Use cp_parser_lookup_name_simple.
2013-08-19  Paolo Carlini  <paolo.carlini@oracle.com>

	* parser.c (cp_parser_lambda_introducer, cp_parser_decltype_expr):
	Use cp_parser_lookup_name_simple.

2013-08-19  Paolo Carlini  <paolo.carlini@oracle.com>

	* name-lookup.h (pop_bindings_and_leave_scope): Declare.
	* name-lookup.c (pop_bindings_and_leave_scope): Define.
	* parser.c (cp_parser_lambda_declarator_opt,
	cp_parser_direct_declarator, cp_parser_cache_defarg): Use it.

From-SVN: r201839
2013-08-19 14:23:37 +00:00
Alexander Ivchenko
d33d9e47d4 target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
* target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
	* builtins.c (default_libc_has_function): New.
	(gnu_libc_has_function): Ditto.
	(no_c99_libc_has_function): Ditto.
	(expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
	instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
	(fold_builtin_sincos): Likewise.
	(fold_builtin_cexp): Likewise.
	* builtins.def (DEF_C94_BUILTIN): Likewise.
	(DEF_C99_BUILTIN): Likewise.
	(DEF_C99_C90RES_BUILTIN): Likewise.
	(DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
	definitions to using this define.
	* config/darwin-protos.h (darwin_libc_has_function): New.
	* config/darwin.c: (darwin_libc_has_function: Ditto.
	* config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
	TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
	* config/darwin.h: Ditto.
	* config/elfos.h: Ditto.
	* config/freebsd.h: Ditto.
	* config/i386/cygming.h: Ditto.
	* config/i386/djgpp.h: Ditto.
	* config/i386/i386-interix.h: Ditto.
	* config/microblaze/microblaze.h: Ditto.
	* config/mmix/mmix.h: Ditto.
	* config/gnu-user.h: Ditto.
	* config/ia64/hpux.h: Ditto.
	* config/pa/pa-hpux.h: Ditto.
	* config/pdp11/pdp11.h: Ditto.
	* config/picochip/picochip.h: Ditto.
	* config/linux.h: Ditto.
	* config/netbsd.h: Ditto.
	* config/openbsd.h: Ditto.
	* config/rs6000/aix43.h: Ditto.
	* config/rs6000/aix51.h: Ditto.
	* config/rs6000/aix52.h: Ditto.
	* config/rs6000/aix53.h: Ditto.
	* config/rs6000/aix61.h: Ditto.
	* config/rs6000/darwin.h: Ditto.
	* config/rs6000/linux.h: Ditto.
	* config/rs6000/linux64.h: Ditto.
	* config/s390/tpf.h: Ditto.
	* config/sol2-10.h: Ditto.
	* config/sol2.h: Ditto.
	* config/vms/vms.h: Ditto.
	* config/vxworks.h: Ditto.
	* config/linux-android.c (linux_android_libc_has_function):
	New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
	* config/linux-protos.h (linux_android_libc_has_function):
	New declaration.
	* config/i386/i386.c (ix86_libc_has_function): New.
	* config/i386/i386-protos.h
	(ix86_libc_has_function): New declaration.
	* config/i386/i386.md
	("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
	("isinf<mode>2): Likewise.
	* convert.c (convert_to_integer): Using new target hook
	TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
	TARGET_C99_FUNCTIONS.
	* fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
	* tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
	* coretypes.h (function_class): New enum for different
	classes of functions.
	* defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
	* doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
	(TARGET_HAS_SINCOS): Likewise.
	(TARGET_LIBC_HAS_FUNCTION): New.
	* doc/tm.texi: Regenerated.
	* targhooks.h (default_libc_has_function): New declaration.
	(no_c99_libc_has_function): Ditto.
	(gnu_libc_has_function): Ditto.
	* system.h: Add the poisoning of TARGET_C99_FUNCTIONS
	and TARGET_HAS_SINCOS.

From-SVN: r201838
2013-08-19 12:21:26 +00:00
Joern Rennecke
89138a6e3e * gcc.target/avr/progmem-error-1.cpp: Update linenumber of error.
From-SVN: r201837
2013-08-19 12:59:39 +01:00
Jan Hubicka
eefe9a995c Makeifle-in (ipa-devirt.o): New.
* Makeifle-in (ipa-devirt.o): New.
	(GTFILES): Add ipa-utils.h and ipa-devirt.c
	* cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
	(analyze_functions): Look into possible targets of polymorphic call.
	* dumpfile.c (dump_files): Add type-inheritance dump.
	* dumpfile.h (TDI_inheritance): New.
	* ipa-devirt.c: New file.
	* ipa-utils.h (odr_type_d): Forward declare.
	(odr_type): New type.
	(build_type_inheritance_graph): Declare.
	(possible_polymorphic_call_targets): Declare and introduce inline
	variant when only edge is pased.
	(dump_possible_polymorphic_call_targets): Likewise.
	* timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
	* tree.c (type_in_anonymous_namespace_p): Break out from ...
	(types_same_for_odr): ... here.
	* tree.h (type_in_anonymous_namespace_p): Declare.

	* g++.dg/ipa/type-inheritance-1.C: New testcase.

From-SVN: r201836
2013-08-19 10:14:06 +00:00