1. 17 Oct, 2011 1 commit
    • dodji's avatar
      Linemap infrastructure for virtual locations · 97bfb9ef
      dodji authored
      This is the first instalment of a set which goal is to track locations
      of tokens across macro expansions.  Tom Tromey did the original work
      and attached the patch to PR preprocessor/7263.  This opus is a
      derivative of that original work.
      
      This patch modifies the linemap module of libcpp to add virtual
      locations support.
      
      A virtual location is a mapped location that can resolve to several
      different physical locations.  It can always resolve to the spelling
      location of a token.  For tokens resulting from macro expansion it can
      resolve to:
        - either the location of the expansion point of the macro.
        - or the location of the token in the definition of the
        macro
        - or, if the token is an argument of a function-like macro,
        the location of the use of the matching macro parameter in
        the definition of the macro
      
      The patch creates a new type of line map called a macro map.  For every
      single macro expansion, there is a macro map that generates a virtual
      location for every single resulting token of the expansion.
      
      The good old type of line map we all know is now called an ordinary
      map.  That one still encodes spelling locations as it has always had.
      
      As a result linemap_lookup as been extended to return a macro map when
      given a virtual location resulting from a macro expansion.  The layout
      of structs line_map has changed to support this new type of map.  So
      did the layout of struct line_maps.  Accessor macros have been
      introduced to avoid messing with the implementation details of these
      datastructures directly.  This helped already as we have been testing
      different ways of arranging these datastructure.  Having to constantly
      adjust client code that is too tied with the internals of line_map and
      line_maps would have been even more painful.
      
      Of course, many new public functions have been added to the linemap
      module to handle the resolution of virtual locations.
      
      This patch introduces the infrastructure but no part of the compiler
      uses virtual locations yet.
      
      However the client code of the linemap data structures has been
      adjusted as per the changes.  E.g, it's not anymore reliable for a
      client code to manipulate struct line_map directly if it just wants to
      deal with spelling locations, because struct line_map can now
      represent a macro map as well.  In that case, it's better to use the
      convenient API to resolve the initial (possibly virtual) location to a
      spelling location (or to an ordinary map) and use that.
      
      This is the reason why the patch adjusts the Java, Ada and Fortran
      front ends.
      
      Also, note that virtual locations are not supposed to be ordered for
      relations '<' and '>' anymore.  To test if a virtual location appears
      "before" another one, one has to use a new operator exposed by the
      line map interface.  The patch updates the only spot (in the
      diagnostics module) I have found that was making the assumption that
      locations were ordered for these relations.  This is the only change
      that introduces a use of the new line map API in this patch, so I am
      adding a regression test for it only.
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180081 138bc75d-0d04-0410-961f-82ee72b054a4
      97bfb9ef
  2. 11 Oct, 2011 1 commit
  3. 24 Aug, 2011 1 commit
    • jsm28's avatar
      * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o) · fc3bd902
      jsm28 authored
      	(CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
      	(CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
      	(CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
      	(collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
      	(c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
      	(intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
      	rules.
      	(lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
      
      ada:
      	* gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o)
      	(CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o)
      	(CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New.
      	(ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o)
      	(ada/initialize.o, ada/raise.o): Remove explicit compilation rules.
      
      fortran:
      	* Make-lang.in (fortran/cpp.o): Remove explicit compilation rule.
      
      go:
      	* Make-lang.in (CFLAGS-go/go-lang.o): New.
      	(go/go-lang.o): Remove explicit compilation rule.
      
      java:
      	* Make-lang.in (CFLAGS-java/jcf-io.o, CFLAGS-java/j...
      fc3bd902
  4. 18 Aug, 2011 1 commit
  5. 10 Aug, 2011 1 commit
  6. 08 Aug, 2011 1 commit
    • ro's avatar
      gcc: · 76fd9e61
      ro authored
      	* config/sparc/driver-sparc.c: New file.
      	* config/sparc/x-sparc: New file.
      	* config.host: Use driver-sparc.o, sparc/x-sparc on
      	sparc*-*-solaris2*.
      	* config/sparc/sparc.opt (native): New value for enum
      	processor_type.
      	* config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
      	* config/sparc/sparc.c (sparc_option_override): Abort if
      	PROCESSOR_NATIVE gets here.
      	* config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
      	(EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
      	DRIVER_SELF_SPECS): Define.
      	* doc/invoke.texi (SPARC Options, -mcpu): Document native.
      	(SPARC Options, -mtune): Likewise.
      	* configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
      	Substitute result.
      	* configure: Regenerate.
      	* Makefile.in (EXTRA_GCC_LIBS): Set.
      	(xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
      	(cpp$(exeext)): Likewise.
      
      	gcc/cp:
      	* Make-lang.in (g++$(exeext)): Add $(EXTRA_GCC_LIBS).
      
      	gcc/fortran:
      	* Make-lang.in (gfortran$(exeext)): Add $(EXTRA_GCC_LIBS).
      
      	gcc/go:
      	* Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS).
      
      	gcc/java:
      	* Make-lang.in ($(XGCJ)$(exeext)): Add $(EXTRA_GCC_LIBS).
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177559 138bc75d-0d04-0410-961f-82ee72b054a4
      76fd9e61
  7. 19 Jul, 2011 1 commit
    • rguenth's avatar
      2011-07-19 Richard Guenther <rguenther@suse.de> · 2cc66f2a
      rguenth authored
      	* tree.h (fold_build_pointer_plus_loc): New helper function.
      	(fold_build_pointer_plus_hwi_loc): Likewise.
      	(fold_build_pointer_plus): Define.
      	(fold_build_pointer_plus_hwi): Likewise.
      
      	* builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
      	(fold_builtin_memory_op): Likewise.
      	(fold_builtin_stpcpy): Likewise.
      	(fold_builtin_memchr): Likewise.
      	(fold_builtin_strstr): Likewise.
      	(fold_builtin_strchr): Likewise.
      	(fold_builtin_strrchr): Likewise.
      	(fold_builtin_strpbrk): Likewise.
      	(fold_builtin_strcat): Likewise.
      	(expand_builtin_memory_chk): Likewise.
      	(fold_builtin_memory_chk): Likewise.
      	* c-typeck.c (build_unary_op): Likewise.
      	* cgraphunit.c (thunk_adjust): Likewise.
      	* fold-const.c (build_range_check): Likewise.
      	(fold_binary_loc): Likewise.
      	* omp-low.c (extract_omp_for_data): Likewise.
      	(expand_omp_for_generic): Likewise.
      	(expand_omp_for_static_nochunk): Likewise.
      	(expand_omp_for_static_chunk): Likewise.
      	* tree-affine.c (add_elt_to_tree): Likewise.
      	* tree-data-ref.c (split_constant_offset_1): Likewise.
      	* tree-loop-distribution.c (generate_memset_zero): Likewise.
      	* tree-mudflap.c (mf_xform_derefs_1): Likewise.
      	* tree-predcom.c (ref_at_iteration): Likewise.
      	* tree-ssa-address.c (tree_mem_ref_addr): Likewise.
      	(add_to_parts): Likewise.
      	(create_mem_ref): Likewise.
      	* tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
      	* tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
      	(number_of_iterations_le): Likewise.
      	* tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
      	* tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
      	(vect_create_addr_base_for_vector_ref): Likewise.
      	* tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
      	(vect_create_cond_for_alias_checks): Likewise.
      	* tree-vrp.c (extract_range_from_assert): Likewise.
      
      	* config/alpha/alpha.c (alpha_va_start): Likewise.
      	(alpha_gimplify_va_arg_1): Likewise.
      	* config/i386/i386.c (ix86_va_start): Likewise.
      	(ix86_gimplify_va_arg): Likewise.
      	* config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
      	* config/mep/mep.c (mep_expand_va_start): Likewise.
      	(mep_gimplify_va_arg_expr): Likewise.
      	* config/mips/mips.c (mips_va_start): Likewise.
      	(mips_gimplify_va_arg_expr): Likewise.
      	* config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
      	* config/rs6000/rs6000.c (rs6000_va_start): Likewise.
      	(rs6000_gimplify_va_arg): Likewise.
      	* config/s390/s390.c (s390_va_start): Likewise.
      	(s390_gimplify_va_arg): Likewise.
      	* config/sh/sh.c (sh_va_start): Likewise.
      	(sh_gimplify_va_arg_expr): Likewise.
      	* config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
      	* config/spu/spu.c (spu_va_start): Likewise.
      	(spu_gimplify_va_arg_expr): Likewise.
      	* config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
      	Likewise.
      	(xstormy16_gimplify_va_arg_expr): Likewise.
      	* config/xtensa/xtensa.c (xtensa_va_start): Likewise.
      	(xtensa_gimplify_va_arg_expr): Likewise.
      
      	c-family/
      	* c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
      	* c-omp.c (c_finish_omp_for): Likewise.
      
      	cp/
      	* call.c (build_special_member_call): Use fold_build_pointer_plus.
      	* class.c (build_base_path): Likewise.
      	(convert_to_base_statically): Likewise.
      	(dfs_accumulate_vtbl_inits): Likewise.
      	* cp-gimplify.c (cxx_omp_clause_apply_fn): Likewise.
      	* except.c (expand_start_catch_block): Likewise.
      	* init.c (expand_virtual_init): Likewise.
      	(build_new_1): Likewise.
      	(build_vec_delete_1): Likewise.
      	(build_vec_delete): Likewise.
      	* rtti.c (build_headof): Likewise.
      	(tinfo_base_init): Likewise.
      	* typeck.c (get_member_function_from_ptrfunc): Likewise.
      	(cp_build_addr_expr_1): Likewise.
      	* typeck2.c (build_m_component_ref): Likewise.
      
      	fortran/
      	* trans-expr.c (fill_with_spaces): Use fold_build_pointer_plus.
      	(gfc_trans_string_copy): Likewise.
      	* trans-intrinsic.c (gfc_conv_intrinsic_repeat): Likewise.
      	* trans-types.c (gfc_get_array_descr_info): Likewise.
      	* trans.c (gfc_build_array_ref): Likewise.
      
      	java/
      	* builtins.c (static): Use fold_build_pointer_plus.
      	* class.c (make_class_data): Likewise.
      	(build_symbol_entry): Likewise.
      	* except.c (build_exception_object_ref): Likewise.
      	* expr.c (build_java_arrayaccess): Likewise.
      	(build_field_ref): Likewise.
      	(build_known_method_ref): Likewise.
      	(build_invokevirtual): Likewise.
      
      	objc/
      	* objc-next-runtime-abi-02.c (objc_v2_build_ivar_ref):
      	Use fold_build_pointer_plus.
      	(objc2_build_ehtype_initializer): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176461 138bc75d-0d04-0410-961f-82ee72b054a4
      2cc66f2a
  8. 06 Jul, 2011 1 commit
    • rguenth's avatar
      2011-07-06 Richard Guenther <rguenther@suse.de> · c38a75b7
      rguenth authored
      	* tree.c (build_common_tree_nodes_2): Merge with
      	build_common_tree_nodes.
      	* tree.h (build_common_tree_nodes): Adjust prototype.
      	(build_common_tree_nodes_2): Remove.
      	* doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
      	* doc/tm.texi (lang_hooks.builtin_function): Regenerate.
      
      	c-family/
      	* c-common.c (c_common_nodes_and_builtins):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	fortran/
      	* f95-lang.c (gfc_init_decl_processing):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	go/
      	* go-lang.c (go_langhook_init):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	java/
      	* decl.c (java_init_decl_processing):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	lto/
      	* lto-lang.c (lto_init):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      
      	ada/
      	* gcc-interface/misc.c (gnat_init):
      	Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
      	Re-initialize boolean_false_node.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175906 138bc75d-0d04-0410-961f-82ee72b054a4
      c38a75b7
  9. 21 Jun, 2011 1 commit
    • amacleod's avatar
      cosmetic. Add sync_ to all the expand_builtin defines which do not match the... · 2797f13a
      amacleod authored
      cosmetic. Add sync_ to all the expand_builtin defines which do not match the actual builtin_sync_ names.
      
      2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
      
      	* builtins.c: Add sync_ or SYNC__ to builtin names.
      	* sync-builtins.def: Add sync_ or SYNC__ to builtin names.
      	* omp-low.c: Add sync_ or SYNC__ to builtin names.
      	* c-family/c-common.c: Add sync_ or SYNC__ to builtin names.
      	* c-family/c-omp.c: Add sync_ or SYNC__ to builtin names.
      	* java/builtins.c: Add sync_ or SYNC__ to builtin names.
      	* java/expr.c: Add sync_ or SYNC__ to builtin names.
      	* cp/semantics.c: Add sync_ or SYNC__ to builtin names.
      	* fortran/trans-openmp.c: Add sync_ or SYNC__ to builtin names.
      	* fortran/trans-stmt.c: Add sync_ or SYNC__ to builtin names.
      	* fortran/trans-decl.c: Add sync_ or SYNC__ to builtin names.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175270 138bc75d-0d04-0410-961f-82ee72b054a4
      2797f13a
  10. 07 Jun, 2011 2 commits
    • rguenth's avatar
      2011-06-07 Richard Guenther <rguenther@suse.de> · 35c2230f
      rguenth authored
      	* decl.c (java_init_decl_processing): Call build_common_nodes,
      	build_common_nodes_2 at the beginning.  Remove then duplicate
      	initializations.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174747 138bc75d-0d04-0410-961f-82ee72b054a4
      35c2230f
    • rguenth's avatar
      2011-06-07 Richard Guenther <rguenther@suse.de> · 1af0124d
      rguenth authored
      	* tree.c (build_common_tree_nodes): Also initialize size_type_node.
      	Call set_sizetype from here.
      
      	c-family/
      	* c-common.c (c_common_nodes_and_builtins): Do not set
      	size_type_node or call set_sizetype.
      
      	go/
      	* go-lang.c (go_langhook_init): Do not set
      	size_type_node or call set_sizetype.
      
      	fortran/
      	* f95-lang.c (gfc_init_decl_processing): Do not set
      	size_type_node or call set_sizetype.
      
      	java/
      	* decl.c (java_init_decl_processing): Properly initialize
      	size_type_node.
      
      	lto/
      	* lto-lang.c (lto_init): Do not set
      	size_type_node or call set_sizetype.
      
      	ada/
      	* gcc-interface/misc.c (gnat_init): Do not set
      	size_type_node or call set_sizetype.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174743 138bc75d-0d04-0410-961f-82ee72b054a4
      1af0124d
  11. 30 May, 2011 1 commit
  12. 26 May, 2011 1 commit
    • froydnj's avatar
      make TS_BLOCK a substructure of TS_BASE · 027fc6ef
      froydnj authored
      gcc/
      	* tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
      	TS_BASE instead of TS_COMMON.
      	(find_decls_types_r): Check for TS_TYPED structure before looking at
      	TREE_TYPE.
      	* tree.h (struct tree_block): Inherit from tree_base, not tree_common.
      	Add chain field.
      	(BLOCK_CHAIN): Use new chain field.
      
      gcc/c-family/
      	* c-common.c (warning_candidate_p): Check for BLOCKs.
      
      gcc/java/
      	* decl.c (poplevel): Don't access TREE_TYPE of BLOCKs.
      	* expr.c (build_jni_stub): Likewise.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174300 138bc75d-0d04-0410-961f-82ee72b054a4
      027fc6ef
  13. 24 May, 2011 1 commit
    • jsm28's avatar
      * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o. · eb65953e
      jsm28 authored
      	(OBJS): Remove options.o, opts-common.o and prefix.o.
      	(OBJS-libcommon-target): New.
      	(ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
      	(BACKEND): Include libcommon-target.a.
      	(MOSTLYCLEANFILES): Include libcommon-target.a.
      	(libcommon-target.a): New.
      	(xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
      	prefix.o.
      
      ada:
      	* gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
      	$(EXTRA_GNAT1_OBJS).
      	(GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
      	(EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
      	(gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
      	* gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
      	libcommon-target.a instead of prefix.o.
      
      cp:
      	* Make-lang.in (GXX_OBJS): Remove prefix.o.
      	(g++$(exeext)): Use libcommon-target.a.
      	(CXX_C_OBJS): Remove prefix.o.
      
      fortran:
      	* Make-lang.in (GFORTRAN_D_OBJS): Remove prefix.o.
      	(gfortran$(exeext)): Use libcommon-target.a.
      
      go:
      	* Make-lang.in (GCCGO_OBJS): Remove prefix.o.
      	(gccgo$(exeext)): Use libcommon-target.a.
      
      java:
      	* Make-lang.in ($(XGCJ)$(exeext)): Use libcommon-target.a instead
      	of prefix.o.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174109 138bc75d-0d04-0410-961f-82ee72b054a4
      eb65953e
  14. 20 May, 2011 1 commit
    • jsm28's avatar
      * Makefile.in (LIBDEPS): Add libcommon.a. · 0b4f4daf
      jsm28 authored
      	(LIBS): Likewise.
      	(GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
      	(OBJS-common): Remove diagnostic.o, input.o, intl.o,
      	pretty-print.o and version.o.
      	(OBJS-libcommon): New.
      	(ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
      	(BACKEND): Add libcommon.a.
      	(MOSTLYCLEANFILES): Likewise.
      	(libcommon.a): New.
      	(xgcc$(exeext)): Don't explicitly use version.o and intl.o.
      	(cpp$(exeext)): Likewise.
      	(COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
      	pretty-print.o and input.o.
      	(lto-wrapper$(exeext)): Don't explicitly use intl.o.
      	(lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
      	(errors.o): Remove.
      	(mips-tfile): Don't explicitly use version.o.
      	(mips-tdump): Likewise.
      	(gcov.o): Depend on $(DIAGNOSTIC_H).
      	(gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
      	(GCOV_OBJS): Remove intl.o, version.o and errors.o.
      	(GCOV_DUMP_OBJS): Remove version.o and errors.o.
      	* gcov-dump.c: Include intl.h and diagnostic.h.
      	(main): Initialize diagnostics.
      	* gcov.c: Include diagnostic.h.
      	(fnotice): Remove.
      	(main): Initialize diagnostics.
      	* lto-wrapper.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      
      ada:
      	* gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove
      	version.o.
      	* gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
      	libcommon.a instead of version.o.
      
      cp:
      	* Make-lang.in (GXX_OBJS): Remove intl.o and version.o.
      
      fortran:
      	* Make-lang.in (GFORTRAN_D_OBJS): Remove version.o and intl.o.
      
      go:
      	* Make-lang.in (GCCGO_OBJS): Remove intl.o and version.o.
      
      java:
      	* Make-lang.in ($(XGCJ)$(exeext)): Don't explicitly use intl.o and
      	version.o.
      	(JCFDUMP_OBJS): Remove errors.o, version.o and intl.o.
      	(JVGENMAIN_OBJS): Remove errors.o and intl.o.
      	(java/jcf-dump.o, java/jvgenmain.o): Depend in $(DIAGNOSTIC_H).
      	* jcf-dump.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      	* jvgenmain.c: Include diagnostic.h.
      	(main): Initialize diagnostics.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173958 138bc75d-0d04-0410-961f-82ee72b054a4
      0b4f4daf
  15. 11 May, 2011 1 commit
    • froydnj's avatar
      split tree_type · 8f2eb9e1
      froydnj authored
      gcc/ada/
      	* gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
      	(TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
      	(TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
      
      gcc/cp/
      	* cp-tree.h (TYPENAME_TYPE_FULLNAME, TYPEOF_TYPE_EXPR): Use
      	TYPE_VALUES_RAW.
      	(UNDERLYING_TYPE_TYPE, DECLTYPE_TYPE_EXPR): Likewise.
      	(DECLTYPE_TYPE_ID_EXPR_OR_MEMBER_ACCESS_P): Likewise.
      	(TEMPLATE_TYPE_PARM_INDEX): Likewise.
      
      gcc/
      	* ggc-page.c (extra_order_size_table): Use struct
      	tree_type_non_common.
      	* lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
      	(unpack_ts_type_common_value_fields): ...this.  Update comment.
      	(unpack_value_fields): Adjust for renaming.
      	(lto_input_ts_type_tree_pointers): Split into...
      	(lto_input_ts_type_common_tree_pointer): ...this and...
      	(lto_input_ts_type_non_common_tree_pointers): ...this.
      	(lto_input_tree_pointers): Adjust for above split.
      	* lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
      	(pack_ts_type_common_value_fields): ...this.  Update comment.
      	(lto_output_ts_type_tree_pointers): Split into...
      	(lto_output_ts_type_common_tree_pointers): ...this and...
      	(lto_output_ts_type_non_common_tree_pointers): ...this.
      	(lto_output_tree_pointers): Adjust for above split.
      	* lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
      	TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
      	* stor-layout.c (vector_type_mode): Adjust location of mode field.
      	* tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
      	Define.
      	(struct tree_type): Split into...
      	(struct tree_type_common: ...this and...
      	(struct tree_type_with_lang_specific): ...this and...
      	(struct tree_type_non_common): ...this.  Adjust accessor macros
      	accordingly.
      	(TYPE_VALUES_RAW): Define.
      	(union tree_node): Update for above changes.
      	* tree.c (tree_node_structure_for_code) [tcc_type]: Return
      	TS_TYPE_NON_COMMON.
      	(initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
      	Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
      	(tree_code_size) [tcc_type]: Use struct tree_type_non_common.
      	* treestructu.def (TS_TYPE): Remove.
      	(TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
      	Define.
      
      gcc/java/
      	* java-tree.h (TYPE_ARGUMENT_SIGNATURE): Use TYPE_MINVAL.
      
      gcc/lto/
      	* lto.c (lto_ft_type): Use TYPE_MINVAL and TYPE_MAXVAL.  Adjust
      	location of binfo field.
      	(lto_fixup_prevailing_decls): Likewise.
      
      gcc/objc/
      	* objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Use proper accessors.
      	(CLASS_NST_METHODS, CLASS_CLS_METHODS): Likewise.
      	(PROTOCOL_NAME, PROTOCOL_NST_METHODS, PROTOCOL_CLS_METHODS): Likewise.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173658 138bc75d-0d04-0410-961f-82ee72b054a4
      8f2eb9e1
  16. 07 May, 2011 1 commit
    • ebotcazou's avatar
      2011-05-07  Eric Botcazou  <ebotcazou@adacore.com> · 1d2bb655
      ebotcazou authored
      	* langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
      	type to bool and adjust comment.
      	* fold-const.c (fold_range_test): Adjust call to global_bindings_p.
      	(fold_mathfn_compare): Remove calls to global_bindings_p.
      	(fold_inf_compare): Likewise.
      	* stor-layout.c (variable_size): Adjust call to global_bindings_p.
      	* c-tree.h (global_bindings_p): Adjust prototype.
      	* c-decl.c (global_bindings_p): Return bool and simplify.
      ada/
      	* gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
      	* gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
      cp/
      	* name-lookup.h (global_bindings_p): Adjust prototype.
      	* name-lookup.c (global_bindings_p): Return bool.
      fortran/
      	* f95-lang.c (global_bindings_p): Return bool and simplify.
      go/
      	* go-lang.c (global_bindings_p): Return bool and simplify.
      java/
      	* java-tree.h (global_bindings_p): Adjust prototype.
      	* decl.c (global_bindings_p): Return bool.
      lto/
      	* lto-lang.c (global_bindings_p): Return bool.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173535 138bc75d-0d04-0410-961f-82ee72b054a4
      1d2bb655
  17. 06 May, 2011 1 commit
    • froydnj's avatar
      generalize build_case_label to the rest of the compiler · b6e3dd65
      froydnj authored
      gcc/ada/
      	* gcc-interface/trans.c (Case_Statement_to_gnu): Call
      	build_case_label.
      
      gcc/
      	* except.c (sjlj_emit_dispatch_table): Call build_case_label.
      	* gimplify.c (gimplify_switch_expr): Likewise.
      	* omp-low.c (expand_omp_sections): Likewise.
      	* tree-eh.c (lower_try_finally_switch): Likewise.
      	(lower_eh_dispatch): Likewise.
      	* tree.h (build_case_label): Declare.
      	* tree.c (build_case_label): Define.
      
      gcc/c-family/
      	* c-common.c (c_add_case_label): Omit the loc argument to
      	build_case_label.
      	* c-common.h (build_case_label): Remove.
      	* c-semantics.c (build_case_label): Remove.
      
      gcc/cp/
      	* decl.c (finish_case_label): Omit the loc argument to
      	build_case_label.
      
      gcc/fortran/
      	* trans-decl.c (gfc_trans_entry_master_switch): Call build_case_label.
      	* trans-io.c (add_case): Likewise.
      	* trans-stmt.c (gfc_trans_integer_select): Likewise.
      	(gfc_trans_character_select): Likewise.
      
      gcc/go/
      	* go-gcc.cc (Gcc_backend::switch_statement): Call build_case_label.
      
      gcc/java/
      	* expr.c (expand_java_switch): Call build_case_label.
      	(expand_java_add_case): Likewise.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173467 138bc75d-0d04-0410-961f-82ee72b054a4
      b6e3dd65
  18. 29 Apr, 2011 1 commit
  19. 20 Apr, 2011 1 commit
    • meyering's avatar
      remove useless if-before-free tests · dd045aee
      meyering authored
      Change "if (E) free (E);" to "free (E);" everywhere except in the
      libgo/, intl/, zlib/ and classpath/ directories.
      Also transform equivalent variants like
      "if (E != NULL) free (E);" and allow an extra cast on the
      argument to free.  Otherwise, the tested and freed "E"
      expressions must be identical, modulo white space.
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172785 138bc75d-0d04-0410-961f-82ee72b054a4
      dd045aee
  20. 18 Apr, 2011 1 commit
  21. 14 Apr, 2011 1 commit
    • froydnj's avatar
      gcc/ada/ · 2149d019
      froydnj authored
      	* gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
      
      gcc/
      	* function.h (block_chainon): Declare.
      	* function.c (block_chainon): Define.
      
      gcc/cp/
      	* decl.c (poplevel): Use block_chainon.
      
      gcc/fortran//
      	* f95-lang.c (poplevel): Use BLOCK_CHAIN and block_chainon.
      
      gcc/java/
      	* decl.c (poplevel): Use BLOCK_CHAIN and block_chainon.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172418 138bc75d-0d04-0410-961f-82ee72b054a4
      2149d019
  22. 13 Apr, 2011 1 commit
    • froydnj's avatar
      gcc/ada/ · 9b88d08d
      froydnj authored
      	* gcc-interface/ada-tree.h (union lang_tree_node): Check for
      	TS_COMMON before calling TREE_CHAIN.
      	* gcc-interface/misc.c (gnat_init_ts): New function.
      	(LANG_HOOKS_INIT_TS): Define.
      
      gcc/
      	* c-decl.c (union lang_tree_node): Check for TS_COMMON before
      	calling TREE_CHAIN.
      	* print-tree.c (print_node): Likewise.
      	* tree-inline.c (copy_tree_r): Likewise.
      	* c-lang.c (LANG_HOOKS_INIT_TS): Define.
      	* lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
      	instead of TS_COMMON.
      	* lto-streamer-out.c (lto_output_tree_pointers): Likewise.
      	* tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
      	(copy_node_stat): Zero TREE_CHAIN only if necessary.
      	(MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
      	(MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
      	...and these...
      	(MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
      	* tree.h: ...here.
      	(TREE_CHAIN): Check for a TS_COMMON structure.
      	(TREE_TYPE): Check for a TS_TYPED structure.
      
      gcc/c-family/
      	* c-common.h (c_common_init_ts): Declare.
      	* c-common.c (c_common_init_ts): Define.
      
      gcc/cp/
      	* cp-lang.c (cp_init_ts): Call cp_common_init_ts.  Move
      	tree_contains_struct initialization to...
      	* cp-objcp-common.c (cp_common_init_ts): ...here.  Use MARK_*
      	macros.
      	* cp-objcp-common.h (cp_common_init_ts): Declare.
      	* cp-tree.h (union lang_tree_node): Check for TS_COMMON before
      	calling TREE_CHAIN.
      
      gcc/fortran/
      	* f95-lang.c (union lang_tree_node): Check for TS_COMMON before
      	calling TREE_CHAIN.
      
      gcc/go/
      	* go-lang.c (union lang_tree_node): Check for TS_COMMON before
      	calling TREE_CHAIN.
      
      gcc/java/
      	* java-tree.h (union lang_tree_node): Check for TS_COMMON before
      	calling TREE_CHAIN.
      
      gcc/lto/
      	* lto-tree.h (union lang_tree_node): Check for TS_COMMON before
      	calling TREE_CHAIN.
      	* lto.c (lto_fixup_common): Likewise.
      
      gcc/objc/
      	* objc-lang.c (objc_init_ts): Move code for this function...
      	* objc-act.c (objc_common_init_ts): ...here. Define.
      	* objc-act.h (objc_common_init_ts): Declare.
      
      gcc/objcp/
      	* objcp-lang.c (objcxx_init_ts): Call objc_common_init_ts and
      	cp_common_init_ts.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172359 138bc75d-0d04-0410-961f-82ee72b054a4
      9b88d08d
  23. 11 Apr, 2011 1 commit
    • jamborm's avatar
      2011-04-11 Martin Jambor <mjambor@suse.cz> · 924de091
      jamborm authored
      gcc/
      	* cgraph.c (cgraph_local_info): Call cgraph_get_node instead
      	of cgraph_node,	handle NULL return value.
      	(cgraph_global_info): Likewise.
      	(cgraph_rtl_info): Likewise.
      	* tree-inline.c (estimate_num_insns): Likewise.
      	* gimplify.c (unshare_body): Likewise.
      	(unvisit_body): Likewise.
      	(gimplify_body): Likewise.
      	* predict.c (optimize_function_for_size_p): Likewise.
      	* tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
      	(call_may_clobber_ref_p_1): Likewise.
      	* varasm.c (function_section_1): Likewise.
      	(assemble_start_function): Likewise.
      
      gcc/java/
      	* decl.c (java_mark_decl_local): Call cgraph_get_node instead of
      	cgraph_node and handle returned NULL.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172258 138bc75d-0d04-0410-961f-82ee72b054a4
      924de091
  24. 10 Apr, 2011 1 commit
  25. 25 Mar, 2011 1 commit
    • ktietz's avatar
      Changelog c-family/ · 82715bcd
      ktietz authored
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* c-ada-spec.c (compare_comment): Use filename_cmp
      	instead of strcmp for filename.
      
      
      Changelog fortran/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* scanner.c (preprocessor_line): Use filename_cmp
      	instead of strcmp.
      
      Changelog gcc/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* collect2.c (write_c_file_stat): Handle backslash
      	as right-hand directory separator.
      	(resolve_lib_name): Use IS_DIR_SEPARATOR instead of
      	checking just for slash.
      	* coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
      	instead of checking for trailing slash.
      	* gcc.c (record_temp_file): Use filename_cmp instead
      	of strcmp.
      	(do_spec_1): Likewise.
      	(replace_outfile_spec_function): Likewise.
      	(is_directory): Use filename_ncmp instead of strncmp.
      	(print_multilib_info): Likewise.
      	* gcov.c (find_source): Use filename_cmp instead
      	instead of strcmp.
      	(make_gcov_file_name): Fix order of slash/backslash
      	checks.
      	* incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
      	(add_standard_paths): Likewise.
      	* mips-tfile.c (saber_stop): Handle backslash.
      	* prefix.c (update_path): Use filename_ncmp instead of
      	strncmp.
      	* profile.c (output_location): Use filename_cmp instead
      	of strcmp.
      	* read-md.c (handle_toplevel_file): Handle backslash.
      	* tlink.c (frob_extension):  Likewise.
      	* tree-cfg.c (same_line_p): Use filename_cmp instead of
      	strcmp.
      	* tree-dump.c (dequeue_and_dump): Handle backslash.
      	* tree.c (get_file_function_name): Likewise.
      	* gengtype.c (read_input_list): Likewise.
      	(get_file_realbasename): Likewise.
      	(get_output_file_with_visibility): Use filename_cmp
      	instead of strcmp.
      
      ChangeLog java/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* jcf-parse.c (java_read_sourcefilenames): Use filename_cmp
      	instead of strcmp.
      	(set_source_filename): Likewise.
      	* win32-host.c (jcf_open_exact_case): Likewise.
      
      ChangeLog lto/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* lto.c (lto_resolution_read): Use filename_cmp instead
      	of strcmp.
      	(lto_read_section_data): Likewise.
      
      
      ChangeLog cp/
      
      2011-03-25  Kai Tietz  <ktietz@redhat.com>
      
      	* lex.c (interface_strcmp): Handle dos-paths.
      	(handle_pragma_implementation): Use filename_cmp instead of
      	strcmp.
      	(in_main_input_context): Likewise.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171522 138bc75d-0d04-0410-961f-82ee72b054a4
      82715bcd
  26. 21 Mar, 2011 1 commit
    • ktietz's avatar
      ChangeLog gcc/ · ac86af5d
      ktietz authored
      2011-03-21  Kai Tietz  <ktietz@redhat.com>
      
      	PR target/12171
      	* doc/plugins.texi: Adjust documentation
      	for plugin register_callback.
      	* tree.h (attribute_spec): Add new member
      	affects_type_identity.
      	- Zitierten Text anzeigen -
      	* attribs.c (empty_attribute_table): Adjust
      	attribute_spec initializers.
      	* config/alpha/alpha.c: Likewise.
      	* config/arc/arc.c: Likewise.
      	* config/arm/arm.c: Likewise.
      	* config/avr/avr.c: Likewise.
      	* config/bfin/bfin.c: Likewise.
      	* config/crx/crx.c: Likewise.
      	* config/darwin.h: Likewise.
      	* config/h8300/h8300.c: Likewise.
      	* config/i386/cygming.h: Likewise.
      	* config/i386/i386.c: Likewise.
      	* config/ia64/ia64.c: Likewise.
      	* config/m32c/m32c.c: Likewise.
      	* config/m32r/m32r.c: Likewise.
      	* config/m68hc11/m68hc11.c: Likewise.
      	* config/m68k/m68k.c: Likewise.
      	* config/mcore/mcore.c: Likewise.
      	* config/mep/mep.c: Likewise.
      	* config/microblaze/microblaze.c: Likewise.
      	* config/mips/mips.c: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* config/rx/rx.c: Lik...
      ac86af5d
  27. 13 Feb, 2011 1 commit
  28. 21 Jan, 2011 1 commit
    • ktietz's avatar
      2011-01-21 Kai Tietz <kai.tietz@onevision.com> · 6a457a13
      ktietz authored
              PR bootstrap/47215
              * decl.c (java_init_decl_processing): Remove
              va_list_type_node related type initializations.
      
      2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
      
      	PR bootstrap/47215
      	* config/i386/i386.c (ix86_local_alignment): Handle
      	case for va_list_type_node is nil.
      	(ix86_canonical_va_list_type): Likewise.
      
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169080 138bc75d-0d04-0410-961f-82ee72b054a4
      6a457a13
  29. 11 Jan, 2011 1 commit
  30. 07 Jan, 2011 2 commits
  31. 03 Jan, 2011 2 commits
    • jakub's avatar
      Update Copyright years for files modified in 2010. · d91f7526
      jakub authored
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168438 138bc75d-0d04-0410-961f-82ee72b054a4
      d91f7526
    • jakub's avatar
      gcc/ · e487a6af
      jakub authored
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov.c (print_version): Likewise.
      	* gcov-dump.c (print_version): Likewise.
      	* mips-tfile.c (main): Likewise.
      	* mips-tdump.c (main): Likewise.
      gcc/fortran/
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      gcc/java/
      	* jcf-dump.c (version): Update copyright notice dates.
      libmudflap/
      	* mf-runtime.c (__mf_usage): Update copyright notice dates.
      libjava/
      	* gnu/gcj/convert/Convert.java (version): Update copyright notice
      	dates.
      	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise.
      libjava/classpath/
      	* gnu/java/rmi/registry/RegistryImpl.java (version): Update
      	copyright notice dates.
      	* tools/gnu/classpath/tools/orbd/Main.java (run): Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168432 138bc75d-0d04-0410-961f-82ee72b054a4
      e487a6af
  32. 15 Dec, 2010 1 commit
  33. 07 Dec, 2010 1 commit
  34. 03 Dec, 2010 1 commit
  35. 01 Dec, 2010 1 commit
    • jsm28's avatar
      * common.opt (main_input_filename, main_input_basename, · 0e763b2a
      jsm28 authored
      	main_input_baselength): New Variable entries.  From toplev.c.
      	* final.c (output_quoted_string): Move from toplev.c.
      	* output.h (output_quoted_string): Move from toplev.h.
      	* opts-global.c (read_cmdline_options): Use gcc_options pointer to
      	access main_input_filename, main_input_baselength and
      	main_input_basename.
      	* targhooks.c: Include intl.h and opts.h.
      	(option_affects_pch_p, default_get_pch_validity): Move from
      	toplev.c.
      	* targhooks.h (option_affects_pch_p, default_get_pch_validity):
      	Move from toplev.h.
      	* toplev.c (main_input_filename, main_input_basename,
      	main_input_baselength): Move to common.opt.
      	(output_quoted_string): Move to final.c.
      	(warn_deprecated_use): Move to tree.c.
      	(option_affects_pch_p, default_get_pch_validity,
      	pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
      	* toplev.h (skip_leading_substring): Move to tree-dump.c.
      	(warn_deprecated_use): Move to tree.h.
      	(output_quoted_string): Move to output.h.
      	(main_input_filename, main_input_basename, main_input_baselength):
      	Move to common.opt.
      	(default_get_pch_validity, default_pch_valid_p): Move to
      	targhooks.c.
      	* tree-dump.c (skip_leading_substring): Move from toplev.h.
      	* tree.c (warn_deprecated_use): Move from toplev.c.
      	* tree.h (warn_deprecated_use): Move from toplev.h.
      	* c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
      	config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
      	config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
      	config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
      	config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
      	config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
      	config/mcore/mcore.c, config/mep/mep.c,
      	config/microblaze/microblaze.c, config/mips/mips.c,
      	config/mmix/mmix.c, config/mn10300/mn10300.c,
      	config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
      	config/picochip/picochip.c, config/s390/s390.c,
      	config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
      	config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
      	config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
      	graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
      	varasm.c, xcoffout.c: Don't include toplev.h.
      	* Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
      	gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
      	varasm.o, xcoffout.o): Update dependencies.
      	* config/arm/t-arm (arm.o): Update dependencies.
      	* config/spu/t-spu-elf (spu.o): Update dependencies.
      
      cp:
      	* cp-objcp-common.c, lex.c, typeck.c: Don't include toplev.h.
      	* Make-lang.in (cp/lex.o, cp/cp-objcp-common.o, cp/typeck2.o):
      	Update dependencies.
      
      java:
      	* jcf-parse.c: Don't include toplev.h.
      	* Make-lang.in (java/jcf-parse.o): Don't depend on toplev.h.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167329 138bc75d-0d04-0410-961f-82ee72b054a4
      0e763b2a
  36. 30 Nov, 2010 2 commits
    • jsm28's avatar
      * hwint.c: New. Extracted from toplev.c. · b96c136c
      jsm28 authored
      	* hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
      	Move from toplev.h.
      	* toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
      	Move to hwint.c.
      	* toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
      	Move to hwint.h.
      	* builtins.c, combine.c, config/i386/winnt.c, double-int.c,
      	explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
      	ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
      	real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
      	stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
      	tree-ssa-loop-niter.c, tree-vect-data-refs.c,
      	tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
      	tree-vrp.c: Don't include toplev.h.
      	* genattrtab.c, genconditions.c, genemit.c, genextract.c,
      	genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
      	toplev.h in generated output.
      	* Makefile.in (OBJS-common): Add hwint.o.
      	Dependencies for above files changed to remove toplev.h.
      	(hwint.o): New.
      	(insn-attrtab.o, ...
      b96c136c
    • jsm28's avatar
      * diagnostic-core.h: Include bversion.h. · 92468061
      jsm28 authored
      	* toplev.h: Don't include input.h or bversion.h.
      	(parse_optimize_options): Don't declare here.
      	* alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
      	caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
      	combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
      	config/host-darwin.c, config/i386/host-cygwin.c,
      	config/i386/host-mingw32.c, config/i386/msformat-c.c,
      	config/i386/netware.c, config/i386/nwld.c,
      	config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
      	config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
      	config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
      	config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
      	config/score/score3.c, config/score/score7.c,
      	config/sh/symbian-base.c, config/sh/symbian-c.c,
      	config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
      	config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
      	cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
      	fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
      	graphite-blocking.c, graphite-clast-to-gimple.c,
      	graphite-dependences.c, graphite-flattening.c,
      	graphite-interchange.c, graphite-poly.c,
      	graphite-scop-detection.c, graphite.c, haifa-sched.c,
      	implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
      	ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
      	lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
      	lto-opts.c, lto-section-in.c, lto-section-out.c,
      	lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
      	params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
      	regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
      	sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
      	sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
      	tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
      	tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
      	tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
      	tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
      	tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
      	tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
      	include toplev.h.
      	* Makefile.in (TOPLEV_H): Remove.  All uses changed to use
      	toplev.h.  Dependencies for above files and c-family files changed
      	to remove $(TOPLEV_H) or toplev.h.
      	(C_TREE_H): Don't include $(TOPLEV_H).
      	(DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
      	bversion.h.
      	* config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
      	config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
      	config/t-darwin, config/t-sol2,
      	config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
      	Dependencies for above files changed to remove $(TOPLEV_H) or
      	toplev.h.
      
      c-family:
      	* c-common.h (parse_optimize_options): Declare.
      	* c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
      	c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
      
      cp:
      	* cp-gimplify.c, cp-lang.c, cvt.c, cxx-pretty-print.c, error.c,
      	except.c, expr.c, friend.c, init.c, mangle.c, name-lookup.c,
      	optimize.c, parser.c, rtti.c, tree.c, typeck2.c: Don't include
      	toplev.h.
      	* Make-lang.in: Dependencies for above files changed to remove
      	toplev.h.
      
      java:
      	* expr.c, lang.c, mangle.c, mangle_name.c, typeck.c,
      	verify-glue.c: Don't include toplev.h.
      	* Make-lang.in: Dependencies for above files changed to remove
      	toplev.h.
      
      lto:
      	* Make-lang.in (lto/lto-object.o): Depend on toplev.h instead of
      	$(TOPLEV_H).
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167293 138bc75d-0d04-0410-961f-82ee72b054a4
      92468061