1. 30 Jul, 2008 16 commits
    • gigi.h (build_vms_descriptor64): New function prototype. · 6ca2b0a0
      2008-07-30  Doug Rupp  <rupp@adacore.com>
      
      	* gigi.h (build_vms_descriptor64): New function prototype.
      	(fill_vms_descriptor): Modified function prototype.
      
      	* utils.c (build_vms_descriptor64): New function.
      
      	* utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
      
      	* trans.c (call_to_gnu): Call fill_vms_descriptor with new third
      	argument.
      
      	* decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
      	64bit and 32bit descriptor and save the 64bit version as an alternate
      	TREE_TYPE in the parameter.
      	(make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
      	thin pointer.
      
      	* ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
      
      From-SVN: r138307
      Doug Rupp committed
    • Resync · 002b2ad6
      From-SVN: r138306
      Arnaud Charlet committed
    • 2008-07-30 Jose Ruiz <ruiz@adacore.com> · f921a1cd
      	* adaint.c
      	(__gnat_file_exists): Do not use __gnat_stat for RTX.
      	(__main for RTX in RTSS mode): Create this dummy procedure symbol to
      	avoid the use of this symbol from libgcc.a in RTX kernel mode.
      
      	* cio.c
      	(put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
      	the function RtPrintf for console output.
      	
      	* argv.c Do not use the environ variable for RTX.
      	
      	* gnatlink.adb (gnatlink): The part that handles the --RTS option has
      	been moved before the call to Osint.Add_Default_Search_Dirs in order
      	to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
      	from the appropriate run time.
      	
      	* targparm.ads
      	(RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
      	target is a RTSS module for RTX.
      	
      	* targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
      	RTX_RTSS_Kernel_Module
      	(Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
      
      	* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
      	exception handling mechanism for Windows and RTX in Win32 mode, but
      	not for RTX in kernel mode (RTSS).
      	(LIBGNAT_SRCS): Remove ada.h
      
      From-SVN: r138305
      Jose Ruiz committed
    • osint.ads: Minor reformatting · 88462e81
      2008-07-30  Robert Dewar  <dewar@adacore.com>
      
      	* osint.ads: Minor reformatting
      
      From-SVN: r138304
      Robert Dewar committed
    • mlib-utl.adb: Minor reformatting · fe42997b
      2008-07-30  Robert Dewar  <dewar@adacore.com>
      
      	* mlib-utl.adb: Minor reformatting
      
      From-SVN: r138303
      Robert Dewar committed
    • make.adb: Minor reformatting · 015fbc5c
      2008-07-30  Robert Dewar  <dewar@adacore.com>
      
      	* make.adb: Minor reformatting
      
      From-SVN: r138302
      Robert Dewar committed
    • configure.ac: Add makefile fragments for hpux. · 00afcaa0
      2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
      
      	* configure.ac: Add makefile fragments for hpux.
      	* Makefile.def (flags_to_pass): Add ADA_CFLAGS.
      	* Makefile.tpl (HOST_EXPORTS): Pass ADA_CFLAGS.
      	* configure: Regenerate.
      	* Makefile.in: Regenerate.
      
      config:
      2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
      
      	* mh-pa: New, from gcc/config/pa/x-ada.
      	* mh-pa-hpux10: New, from gcc/config/pa/x-ada-hpux10.
      
      gcc:
      2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
      
      	* configure.ac: Substitute ADA_CFLAGS.
      	* configure: Regenerate.
      	* config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
      	* Makefile.in: Remove mention of X_* variables.
      	* config/pa/x-ada-hpux10: Remove.
      	* config/pa/x-ada: Remove.
      
      	* doc/fragments.texi: Update.
      
      gcc/ada:
      2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
      
      	* gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
      	T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
      	(ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
      	* gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
      	X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
      	ALL_ADA_CFLAGS): Remove.
      	(ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
              replace ALL_ADA_CFLAGS with ADA_CFLAGS.
      	(GCC_CFLAGS): Remove X_CFLAGS.
      	(LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
      	(ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
      	(ADA_CFLAGS): Substitute.
      	
      gnattools:
      2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
      
      	* configure.ac (x_ada_cflags): Remove.
      	(ADA_CFLAGS): Substitute.
      	* configure: Regenerate.
      	* Makefile.in (ADA_CFLAGS): Substitute.
      	(T_ADA_CFLAGS, X_ADA_CFLAGS, ALL_ADA_CFLAGS): Remove.
      	(TOOLS_FLAGS_TO_PASS_1, TOOLS_FLAGS_TO_PASS_1re,
      	TOOLS_FLAGS_TO_PASS_NATIVE, TOOLS_FLAGS_TO_PASS_CROSS):
      	Pass ADA_CFLAGS.
      
      From-SVN: r138301
      Paolo Bonzini committed
    • move wrong gcc/ChangeLog entry to gnattools/ChangeLog · cd913357
      From-SVN: r138300
      Paolo Bonzini committed
    • Fix date on entry headline. · f90354fd
      From-SVN: r138298
      Olivier Hainque committed
    • irix-crti.asm: .hide __gcc_init and __gcc_fini. · c67a9338
              * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
              * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
              __dso_handle explicitly here.
      
      From-SVN: r138297
      Olivier Hainque committed
    • re PR c/34389 (-Wconversion produces wrong warning) · 6715192c
      2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR 34389
      	* c-typeck.c (build_binary_op): Encapsulate code into...
      	* c-common.c (shorten_binary_op): ...this new function.
      	(conversion_warning): Use the new function. Handle non-negative
      	constant in bitwise-and.
      	* c-common.h (shorten_binary_op): Declare.
      cp/
      	* typeck.c (build_binary_op): Encapsulate code into
      	shorten_binary_op.
      testsuite/
      	* gcc.dg/Wconversion-pr34389.c: New.
      	* g++.dg/warn/Wconversion-pr34389.C: New.
      
      From-SVN: r138296
      Manuel López-Ibáñez committed
    • scan.c (make_sstring_space): Add explicit conversions of allocator's return value. · 473e1062
      	* scan.c (make_sstring_space): Add explicit conversions of
      	allocator's return value.
      	* fix-header.c (recognized_function): Likewise.
      
      From-SVN: r138295
      Olivier Hainque committed
    • re PR ada/5911 (Support for multilib in Ada) · a7dafa20
      gcc/ChangeLog
      2008-07-29  Laurent Guerby <laurent@guerby.net>
      
              PR ada/5911
              * gnattools/Makefile.in: Replace stamp-gnatlib by
              stamp-gnatlib-rts.
      
      gcc/ada/ChangeLog
      2008-07-29  Laurent Guerby <laurent@guerby.net>
      
              PR ada/5911
              * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
              Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
              Replace stamp-gnatlib* by stamp-gnatlib*-rts.
              * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
              by stamp-gnatlib2-rts.
      
      From-SVN: r138294
      Laurent GUERBY committed
    • re PR ada/15479 (Ada manual problems) · 70b1e376
      gcc/ada/
      	PR documentation/15479
      	* gnat-style.texi: Remove AdaCore copyright statement and GPL
      	statement for GNAT.  Add @copying stanza, use it.  Update to
      	GFDL 1.2.  Do not list GFDL as Invariant Section, do not list
      	title as Front-Cover Text.
      	* gnat_rm.texi: Likewise.
      	* gnat_ugn.texi: Likewise.
      
      gcc/
      	* doc/cpp.texi: Update to GFDL 1.2.
      	* doc/gcc.texi: Do not list GPL as Invariant Section.
      	* doc/gccint.texi: Likewise.  Update copyright years.
      	* doc/install.texi: Update copyright years.
      
      gcc/fortran/
      	* gfc-internals.texi: Update to GFDL 1.2.  Do not list GPL as
      	Invariant Section.
      	* gfortran.texi: Likewise.
      	* intrinsic.texi: Do not list GPL as Invariant Section.
      	* invoke.texi: Likewise.  Update copyright years.
      
      gcc/java/
      	* gcj.texi: Update copyright years.  Do not list GPL as
      	Invariant Section.
      
      libgomp/
      	* libgomp.texi: Update to GFDL 1.2.  Update copyright years.
      	Do not list GPL as Invariant Section.
      
      From-SVN: r138293
      Ralf Wildenhues committed
    • re PR target/36955 (TLS LIBCALL change breaks libstdc++ built with older binutils) · d161cb2d
      	PR target/36955
      	* config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
      	a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
      
      From-SVN: r138291
      Alan Modra committed
    • Daily bump. · 559d6599
      From-SVN: r138289
      GCC Administrator committed
  2. 29 Jul, 2008 24 commits
    • * gcc.dg/pr32370.c: Force 64 bits on IA64. · ce49641d
      From-SVN: r138277
      Steve Ellcey committed
    • trans-expr.c (conv_parent_component_references): New function to build missing parent references. · 7d1f1e61
      2008-07-29  Paul Thomas  <pault@gcc.gnu.org>
      
      fortran/	
      	* trans-expr.c (conv_parent_component_references): New function
      	to build missing parent references.
      	(gfc_conv_variable): Call it
      	* symbol.c (gfc_add_component): Check that component name in a
      	derived type extension does not appear in parent.
      	(gfc_find_component): For a derived type extension, check if
      	the component appears in the parent derived type by calling
      	self. Separate errors for private components and private types.
      	* decl.c (match_data_constant): Add extra arg to call to
      	gfc_match_structure_constructor.
      	(check_extended_derived_type): New function to check that a
      	parent derived type exists and that it is OK for exension.
      	(gfc_get_type_attr_spec): Add extra argument 'name' and return
      	it if extends is specified.
      	(gfc_match_derived_decl): Match derived type extension and
      	build a first component of the parent derived type if OK. Add
      	the f2k namespace if not present.
      	* gfortran.h : Add the extension attribute.
      	* module.c : Handle attribute 'extension'.
      	* match.h : Modify prototypes for gfc_get_type_attr_spec and
      	gfc_match_structure_constructor.
      	* primary.c (build_actual_constructor): New function extracted
      	from gfc_match_structure_constructor and modified to call self
      	iteratively to build derived type extensions, when f2k named
      	components are used.
      	(gfc_match_structure_constructor): Do not throw error for too
      	many components if a parent type is being handled. Use
      	gfc_find_component to generate errors for non-existent or
      	private components.  Iteratively call self for derived type
      	extensions so that parent constructor is built.  If extension
      	and components left over, throw error.
      	(gfc_match_rvalue): Add extra arg to call to
      	gfc_match_structure_constructor.
      	* trans-array.c (gfc_conv_resolve_dependencies): If lhs and rhs
      	are the same symbol, aliassing does not matter.
      testsuite/
      	* gfortran.dg/extends_1.f03: New test.
      	* gfortran.dg/extends_2.f03: New test.
      	* gfortran.dg/extends_3.f03: New test.
      	* gfortran.dg/extends_4.f03: New test.
      	* gfortran.dg/extends_5.f03: New test.
      	* gfortran.dg/extends_6.f03: New test.
      	* gfortran.dg/private_type_6.f90: Modify error message.
      	* gfortran.dg/structure_constructor_7.f03: Modify error message.
      	* gfortran.dg/structure_constructor_8.f03: Modify error message.
      
      From-SVN: r138275
      Paul Thomas committed
    • Moved to gcc-interface directory. · e54cf157
      From-SVN: r138274
      Arnaud Charlet committed
    • set.h: Minor formatting fixes. · b798df05
      2008-07-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/debug/set.h: Minor formatting fixes.
      	* include/debug/multiset.h: Likewise.
      	* include/debug/safe_association.h: Likewise.
      	* include/debug/vector: Likewise.
      	* include/debug/map.h: Likewise.
      	* include/debug/string: Likewise.
      	* include/debug/multimap.h: Likewise.
      	* include/bits/stl_list.h: Likewise.
      	* include/bits/stl_map.h: Likewise.
      	* include/bits/stl_set.h: Likewise.
      	* include/bits/stl_multimap.h: Likewise.
      	* include/bits/stl_vector.h: Likewise.
      	* include/bits/stl_multiset.h: Likewise.
      	* include/bits/stl_bvector.h: Likewise.
      
      From-SVN: r138263
      Paolo Carlini committed
    • trans.c (process_inlined_subprograms): Remove tree_really_inline check. · 13669c36
      	* trans.c (process_inlined_subprograms): Remove tree_really_inline
      	check.
      
      From-SVN: r138261
      Arnaud Charlet committed
    • Moved to gcc-interface. · 68c989b0
      From-SVN: r138260
      Arnaud Charlet committed
    • c-decl.c (merge_decls): Do not handle DECL_INLINE. · 54dfd46b
      
      	* c-decl.c (merge_decls): Do not handle DECL_INLINE.
      	(grokdeclarator): Likewise.
      	* langhooks.c (lhd_warn_unused_global_decl): Use
      	DECL_DECLARED_INLINE_P.
      	* print-tree.c (print_node): Remove DECL_INLINE check.
      
      From-SVN: r138258
      Jan Hubicka committed
    • re PR tree-optimization/36945 (PRE/SCCVN do not handle aggregate function arguments correctly) · ce94d354
      2008-07-29  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/36945
      	* tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
      	* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
      	Record invariant addresses un-decomposed.
      	(copy_reference_ops_from_call): Record reference call
      	arguments properly.  Simplify.
      	* tree-ssa-pre.c (create_component_ref_by_pieces_1): New
      	helper split out from ...
      	(create_component_ref_by_pieces): ... here.  Simplify.
      	Prepare for recursive invocation for call arguments.
      	(create_expression_by_pieces): Adjust call to
      	create_component_ref_by_pieces.
      	(compute_avail): Process operand 2 of reference ops.
      
      	* gcc.dg/tree-ssa/ssa-pre-18.c: New testcase.
      
      From-SVN: r138257
      Richard Guenther committed
    • gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF. · 0f3a057a
      2008-07-29  Richard Guenther  <rguenther@suse.de>
      
      	* gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for
      	OBJ_TYPE_REF.
      
      From-SVN: r138256
      Richard Guenther committed
    • utility: Include <initializer_list>, per the current WP. · f2752f1d
      2008-07-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/std/utility: Include <initializer_list>, per the current WP.
      
      	* testsuite/lib/libstdc++.exp (check_v3_target_cstdint): Tweak,
      	don't use -std=gnu++0x unnecessarily.
      	* testsuite/18_support/numeric_limits/char16_32_t.cc: Use
      	dg-require-cstdint.
      	* testsuite/18_support/headers/cstdint/types_std_c++0x.cc: Likewise.
      	* testsuite/tr1/8_c_compatibility/cstdint/types_std_tr1.cc: Likewise.
      
      From-SVN: r138255
      Paolo Carlini committed
    • trans.c (process_inlined_subprograms): Remove tree_really_inline check. · 343eba42
      
      	* trans.c (process_inlined_subprograms): Remove tree_really_inline
      	check.
      
      From-SVN: r138254
      Jan Hubicka committed
    • class.c (build_utf8_ref): Set DECL_SIZE and DECL_SIZE_UNIT from ctype's sizes. · 8452fee7
      	* class.c (build_utf8_ref): Set DECL_SIZE and DECL_SIZE_UNIT
      	from ctype's sizes.
      
      From-SVN: r138252
      Jakub Jelinek committed
    • class.c (build_utf8_ref): Pad initializer string to utf8const_type's alignment. · ef5b0e6e
      	* class.c (build_utf8_ref): Pad initializer string to utf8const_type's
      	alignment.
      
      From-SVN: r138251
      Jakub Jelinek committed
    • re PR c++/36852 (Two dimensional array in template method argument list incorrectly interpreted.) · eb9c434c
      	PR c++/36852
      	* tree.c (cplus_array_hash, build_cplus_array_type_1): Hash on
      	TYPE_UID instead of pointers.
      
      	* g++.dg/pch/array-1.C: New test.
      	* g++.dg/pch/array-1.Hs: New file.
      
      From-SVN: r138250
      Jakub Jelinek committed
    • * c-format.c (check_format_types): Revert unwanted checkin. · 11cc4546
      From-SVN: r138249
      Jakub Jelinek committed
    • Resync. · ebf5ba04
      From-SVN: r138248
      Arnaud Charlet committed
    • gcc-interface: New directory. · a1ab4c31
      	* gcc-interface: New directory.
      
      	* ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
      	utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
      	config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
      	to gcc-interface subdirectory.
      
      From-SVN: r138246
      Arnaud Charlet committed
    • Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o. · 46897370
      2008-07-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
      
      	* Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
      
      From-SVN: r138245
      Aaron W. LaFramboise committed
    • flags.h (flag_really_no_inline): Remove. · e90acd93
      
      
      	* flags.h (flag_really_no_inline): Remove.
      	* cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
      	* toplev.c (flag_really_no_inline): Remove.
      	* c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
      	* ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
      	(cgraph_decide_inlining_incrementally): Likewise.
      	(compute_inline_parameters): Likewise.
      	* opts.c (decode_options): Simplify.
      	* c-opts.c (c_common_post_options): Do not set flag_no_inline.
      	* common.opt (finline): Initialize to 1.
      	* tree-inline.c (inlinable_function_p): Check flag_no_inline.
      
      	* lang.c (java_post_options): Remove handling of flag_no_inline.
      
      	* misc.c (gnat_post_options): Do not set flag_no_inline.
      
      	* options.c (gfc_post_options): Do not set flag_no_inline.
      
      From-SVN: r138238
      Jan Hubicka committed
    • predict.c (always_optimize_for_size_p): New function. · bf08ebeb
      
      	* predict.c (always_optimize_for_size_p): New function.
      	(optimize_bb_for_size_p, optimize_bb_for_speed_p,
      	optimize_edge_for_size_p, optimize_edge_for_speed_p,
      	optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
      	functions.
      	(rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
      	* function.c (prepare_function_start): Set default profile.
      	* function.h (rtl_data): Add maybe_hot_insn_p.
      	* cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
      	(construct_exit_block): Likewise.
      	(tree_expand_cfg): Likewise.
      	* basic-block.h
      	(optimize_bb_for_size_p, optimize_bb_for_speed_p,
      	optimize_edge_for_size_p, optimize_edge_for_speed_p,
      	optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
      	(rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
      	Declare.
      
      From-SVN: r138237
      Jan Hubicka committed
    • optimize.c (maybe_clone_body): Remove DECL_INLINE. · 99355518
      
       	* optimize.c (maybe_clone_body): Remove DECL_INLINE.
      	* decl.c (duplicate_decls): Likewise.
      	(grokfndecl): Likewise.
      	(start_method): Likewise.
      	* method.c (make_thunk, make_alias_for, implicitly_declare_fn):
      	Likewise.
      	* pt.c (register_specialization, regenerate_decl_from_template):
      	Likewise.
      	* decl2.c (grokfield): Likewise.
      
      From-SVN: r138236
      Jan Hubicka committed
    • re PR c/34985 (Warning "defined but not used" despite __attribute__((__used__))) · e27fb29c
      2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR 34985
      	* c-decl.c (merge_decls): Merge USED flags.
      cp/
      	* decl.c (duplicate_decls): Merge USED flags.
      testsuite/
      	* gcc.dg/pr34985.c: New.
      	* g++.dg/warn/pr34985.C: New.
      
      From-SVN: r138235
      Manuel López-Ibáñez committed
    • re PR fortran/36403 (Some fortran tests using eoshift fail on SH) · 1fbfb0e2
      2008-07-29  Daniel Kraft  <d@domob.eu>
      
      	PR fortran/36403
      	* trans-intrinsic.c (conv_generic_with_optional_char_arg):  New method
      	to append a string-length even if the string argument is missing, e.g.
      	for EOSHIFT.
      	(gfc_conv_intrinsic_function):  Call the new method for EOSHIFT, PACK
      	and RESHAPE.
      
      2008-07-29  Daniel Kraft  <d@domob.eu>
      
      	PR fortran/36403
      	* gfortran.dg/char_eoshift_5.f90:  New test.
      	* gfortran.dg/intrinsic_optional_char_arg_1.f90:  New test.
      
      From-SVN: r138234
      Daniel Kraft committed
    • sh.c (sh_gimplify_va_arg_expr): Unshare the addr... · 8c54989a
      	* config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
      	valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
      	next_stack, lab_false and lab_over trees.
      
      From-SVN: r138233
      Kaz Kojima committed