OSDN Git Service

pf3gnuchains/gcc-fork.git
14 years ago * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
ian [Sat, 20 Jun 2009 01:23:50 +0000 (01:23 +0000)]
* config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
(rs6000_attribute_table): Make static; move before use.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148738 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoDaily bump.
gccadmin [Sat, 20 Jun 2009 00:16:48 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148737 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Paul Thomas <pault@gcc.gnu.org>
pault [Fri, 19 Jun 2009 21:58:27 +0000 (21:58 +0000)]
2009-06-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40440
* trans-expr.c (gfc_conv_procedure_call): Do not deallocate
allocatable components if the argument is a pointer.

2009-06-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40440
* gfortran.dg/alloc_comp_result_2.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148731 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
ebotcazou [Fri, 19 Jun 2009 21:33:21 +0000 (21:33 +0000)]
* tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
<tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
Propagate the TREE_READONLY flag without overwriting it.
(substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
Propagate the TREE_READONLY flag onto the result.
(process_call_operands): Move around.  Use correct constant value.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148729 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoFix PR 40482
ramana [Fri, 19 Jun 2009 21:22:44 +0000 (21:22 +0000)]
Fix PR 40482
2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

    PR target/40482
    * config/arm/arm.c (thumb_shiftable_const): Truncate val to
    32 bits.
    * config/arm/arm.md: Likewise.

2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

    PR target/40482
    * gcc.target/arm/pr40482.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148728 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago./:
ian [Fri, 19 Jun 2009 20:55:27 +0000 (20:55 +0000)]
./:
* tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
to GIMPLE_ERROR_MARK.

* c-typeck.c (build_conditional_expr): Add op1_original_type and
op2_original_type parameters.  Warn about using different enum
types.
* c-parser.c (c_parser_conditional_expression): Pass original
types to build_conditional_expr.
* c-tree.h (build_conditional_expr): Update declaration.
testsuite/:
* gcc.dg/Wcxx-compat-18.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148727 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * gcc-interface/trans.c (emit_check): Do not wrap up the result
ebotcazou [Fri, 19 Jun 2009 18:18:54 +0000 (18:18 +0000)]
* gcc-interface/trans.c (emit_check): Do not wrap up the result
in a SAVE_EXPR.
(protect_multiple_eval): Always protect complex expressions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148723 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * config/i386/i386.c (ix86_function_specific_save): Test that
ian [Fri, 19 Jun 2009 17:56:01 +0000 (17:56 +0000)]
* config/i386/i386.c (ix86_function_specific_save): Test that
fields match values, rather than testing the values are in a
certain range.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148721 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 19 Jun 2009 17:49:31 +0000 (17:49 +0000)]
2009-06-19  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/random.h (_Adaptor): Simplify for _DInputType always
a floating point type.
(uniform_int_distribution<>::uniform_int_distribution(_IntType,
_IntType)): Fix second default argument.
(uniform_int_distribution<>::_M_call): Remove.
(uniform_int_distribution<>::operator()(_UniformRandomNumberGenerator&,
const param_type&)): Only declare.
* include/bits/random.tcc (uniform_int_distribution<>::_M_call(
_UniformRandomNumberGenerator&, result_type, result_type, true_type):
Remove.
uniform_int_distribution<>::operator()(_UniformRandomNumberGenerator&,
const param_type&): Define here.
(geometric_distribution<>::operator()(_UniformRandomNumberGenerator&,
const param_type&), discrete_distribution<>::operator()
(_UniformRandomNumberGenerator&, const param_type&),
piecewise_constant_distribution<>::operator()
(_UniformRandomNumberGenerator&, const param_type&),
piecewise_linear_distribution<>::operator()
(_UniformRandomNumberGenerator&, const param_type&)): Use double as
the second template argument of _Adaptor.
* testsuite/26_numerics/random/uniform_int_distribution/cons/
default.cc: Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148720 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 19 Jun 2009 17:17:14 +0000 (17:17 +0000)]
2009-06-19  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/random.tcc (discrete_distribution<>::param_type::
       param_type(size_t, double, double, _Func),
discrete_distribution<>::operator()(_UniformRandomNumberGenerator&,
const param_type&)): Tidy.
(piecewise_constant_distribution<>::param_type::_M_initialize):
Use reserve, fix.
(piecewise_constant_distribution<>::param_type::
param_type(initializer_list<>, _Func),
piecewise_constant_distribution<>::param_type::
param_type(size_t, _RealType, _RealType, _Func),
        piecewise_linear_distribution<>::param_type::
param_type(initializer_list<>, _Func),
        piecewise_linear_distribution<>::param_type::
param_type(size_t, _RealType, _RealType, _Func)): Use reserve, tidy.
(piecewise_constant_distribution<>::param_type::
param_type(_InputIteratorB, _InputIteratorB, _InputIteratorW),
piecewise_constant_distribution<>::
operator()(_UniformRandomNumberGenerator&, const param_type&),
       piecewise_linear_distribution<>::
operator()(_UniformRandomNumberGenerator&, const param_type&)): Fix.
(operator>>(std::basic_istream<>&,
piecewise_constant_distribution<>&),
operator>>(std::basic_istream<>&, piecewise_linear_distribution<>&)):
Use reserve.
* include/bits/random.h: Minor cosmetic changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148719 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 19 Jun 2009 16:47:35 +0000 (16:47 +0000)]
2009-06-19  Richard Guenther  <rguenther@suse.de>

* tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
ADDR_EXPR pointers.
(ptr_derefs_may_alias_p): Likewise.
(ptr_deref_may_alias_ref_p_1): New function.
(ptr_deref_may_alias_ref_p): Likewise.
(ref_maybe_used_by_call_p_1): Handle builtins that are not
covered by looking at the ESCAPED solution.
(call_may_clobber_ref_p_1): Likewise.
* tree-ssa-structalias.c (get_constraint_for_ptr_offset):
Handle NULL_TREE offset.  Do not produce redundant constraints.
(process_all_all_constraints): New helper function.
(do_structure_copy): Use it.
(handle_lhs_call): Likewise.
(find_func_aliases): Handle some builtins with pointer arguments
and/or return values explicitly.

* gcc.c-torture/execute/20090618-1.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148718 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
ian [Fri, 19 Jun 2009 15:57:06 +0000 (15:57 +0000)]
* varasm.c (const_rtx_hash_1): Remove const qualifier from shift.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148713 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
ian [Fri, 19 Jun 2009 15:53:07 +0000 (15:53 +0000)]
* rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148712 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * gfortran.h (gfc_expr): Use mpc_t to represent complex numbers.
ghazi [Fri, 19 Jun 2009 15:33:55 +0000 (15:33 +0000)]
* gfortran.h (gfc_expr): Use mpc_t to represent complex numbers.

* arith.c, dump-parse-tree.c, expr.c, module.c, resolve.c,
simplify.c, target-memory.c, target-memory.h, trans-const.c,
trans-expr.c: Convert to mpc_t throughout.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148711 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago./:
ian [Fri, 19 Jun 2009 15:32:43 +0000 (15:32 +0000)]
./:
* ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
* sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
version.

* c-decl.c (finish_decl): If -Wc++-compat, warn about
uninitialized const.
testsuite/:
* gcc.dg/Wcxx-compat-17.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148710 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago./:
ian [Fri, 19 Jun 2009 15:29:18 +0000 (15:29 +0000)]
./:
* dse.c (struct store_info): Rename bitmap field to bmap.  Change
all uses.

* c-decl.c (in_struct, struct_types): Remove.
(struct c_binding): Add in_struct field.
(c_binding_ptr): Define type, along with VEC.
(struct c_struct_parse_info): Define.
(struct_parse_info): New static variable.
(bind): Initialize in_struct field.
(start_struct): Remove enclosing_in_struct and
enclosing_struct_types parameters.  Add
enclosing_struct_parse_info parameter.  Change all callers.  Set
struct_parse_info rather than in_struct and struct_types.
(grokfield): If -Wc++-compat and there is a symbol binding for the
field name, set the in_struct flag and push it on the
struct_parse_info->fields vector.
(warn_cxx_compat_finish_struct): New static function.
(finish_struct): Remove enclosing_in_struct and
enclosing_struct_types parameters.  Add
enclosing_struct_parse_info parameter.  Change all callers.  Don't
set C_TYPE_DEFINED_IN_STRUCT here.  Call
warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
parameter.  Only push on struct_types if warn_cxx_compat.
(finish_enum): Only push on struct_types if warn_cxx_compat.
(declspecs_add_type): Add loc parameter.  Change all callers.
Change all error calls to error_at.  Pass loc, not input_location,
to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
defined in a struct.  If -Wc++-compat and parsing a struct, record
that a typedef name was used.
* c-parser.c (c_parser_declspecs): Get location to pass to
declspecs_add_type.
(c_parser_struct_or_union_specifier): Update calls to start_struct
and finish_struct.
* c-tree.h (struct c_struct_parse_info): Declare.
(finish_struct, start_struct): Update declarations.
(declspecs_add_type): Update declaration.
objc/:
* objc-act.c (objc_in_struct, objc_struct_types): Remove.
(objc_struct_info): New static variable.
(objc_start_struct): Pass &objc_struct_info, not &objc_in_struct
and &objc_struct_types, to start_struct.
(objc_finish_struct): Likewise for finish_struct.
objcp/:
* objcp-decl.h (start_struct): Remove in_struct and struct_types
parameters.  Add struct_info parameter.
(finish_struct): Likewise.
testsuite/:
* gcc.dg/Wcxx-compat-15.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148709 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago./:
ian [Fri, 19 Jun 2009 15:25:16 +0000 (15:25 +0000)]
./:
* c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
variable with an anonymous type.
fortran/:
* cpp.c (struct gfc_cpp_option_data): Give this struct, used for
the global variable gfc_cpp_option, a name.
testsuite/:
* gcc.dg/Wcxx-compat-16.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148708 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * see.c: Remove for real.
uros [Fri, 19 Jun 2009 14:26:24 +0000 (14:26 +0000)]
* see.c: Remove for real.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148707 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * optabs.h (enum optab_index): Add new OTI_significand.
uros [Fri, 19 Jun 2009 14:22:16 +0000 (14:22 +0000)]
* optabs.h (enum optab_index): Add new OTI_significand.
(significand_optab): Define corresponding macro.
* optabs.c (init_optabs): Initialize significand_optab.
* genopinit.c (optabs): Implement significand_optab using
significand?f2 patterns.
* builtins.c (expand_builtin_mathfn): Handle
BUILT_IN_SIGNIFICAND{,F,L}.
(expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
expand_builtin_mathfn if flag_unsafe_math_optimizations is set.

* config/i386/i386.md (significandxf2, significand<mode>2): New
expanders to implement significandf, significand and significandl
built-ins as inline x87 intrinsics.

testsuite/ChangeLog:

* gcc.dg/builtins-34.c: Add significand cases.

PR testsuite/40491
* testsuite/gcc.dg/20080522-1.c: Remove testcase for real.
* testsuite/gcc.dg/20080528-1.c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148705 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoUpdate comments.
charlet [Fri, 19 Jun 2009 12:29:26 +0000 (12:29 +0000)]
Update comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148703 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoMinor reformatting.
charlet [Fri, 19 Jun 2009 12:29:07 +0000 (12:29 +0000)]
Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148702 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Emmanuel Briot <briot@adacore.com>
charlet [Fri, 19 Jun 2009 12:23:38 +0000 (12:23 +0000)]
2009-06-19  Emmanuel Briot  <briot@adacore.com>

* prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
make sure we always return a name ending with a path separator.

2009-06-19  Javier Miranda  <miranda@adacore.com>

* sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
Save and restore the visibility of the parent when installed.

2009-06-19  Jose Ruiz  <ruiz@adacore.com>

* s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
by Common which contains all these fields.

* s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
Remove code duplication in this package by means of calling the
equivalent code in s-taprob.

2009-06-19  Robert Dewar  <dewar@adacore.com>

* a-einuoc.ads: Minor reformatting

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148701 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Ed Falis <falis@adacore.com>
charlet [Fri, 19 Jun 2009 11:06:38 +0000 (11:06 +0000)]
2009-06-19  Ed Falis  <falis@adacore.com>

* a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148698 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
charlet [Fri, 19 Jun 2009 10:59:04 +0000 (10:59 +0000)]
2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>

* einfo.ads (Handling of Type'Size Values): Fix Object_Size values.

2009-06-19  Robert Dewar  <dewar@adacore.com>

* a-nudira.adb (Need_64): Handle negative ranges and also dynamic
ranges

* checks.adb (Determine_Range): Move the test for generic types later.

* sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
cases.
(Eval_Relational_Op): Fold more cases including string compares

* sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148697 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Robert Dewar <dewar@adacore.com>
charlet [Fri, 19 Jun 2009 10:54:36 +0000 (10:54 +0000)]
2009-06-19  Robert Dewar  <dewar@adacore.com>

* sem_type.ads, sem_ch12.adb: Minor reformatting

* s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly

2009-06-19  Ed Schonberg  <schonberg@adacore.com>

* exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
primitive operation of a rivate extension whose controlling argument
is an out parameter.

* sem.adb (Walk_Library_Units): exclude generic package declarations
from check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148696 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * sem.adb (Walk_Library_Items): Include bodies in the list of units to
charlet [Fri, 19 Jun 2009 10:49:31 +0000 (10:49 +0000)]
* sem.adb (Walk_Library_Items): Include bodies in the list of units to
traverse, to account for front-end inlining and instantiations in a
spec or in the main unit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148695 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Thomas Quinot <quinot@adacore.com>
charlet [Fri, 19 Jun 2009 10:47:49 +0000 (10:47 +0000)]
2009-06-19  Thomas Quinot  <quinot@adacore.com>

* i-vxwoio.ads: Add comments

2009-06-19  Thomas Quinot  <quinot@adacore.com>

* socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
(GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
(GNAT.Sockets.Thin.Socket_Ioctl): Use new function
Thin_Common.Socket_Ioctl.
(GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
__gnat_socket_ioctl.
(__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
argument after the file descriptor and request code.

2009-06-19  Robert Dewar  <dewar@adacore.com>

* checks.adb: Minor reformatting

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148694 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Jose Ruiz <ruiz@adacore.com>
charlet [Fri, 19 Jun 2009 10:38:49 +0000 (10:38 +0000)]
2009-06-19  Jose Ruiz  <ruiz@adacore.com>

* env.c (__gnat_environ): RTX does not support this functionality.

2009-06-19  Sergey Rybin  <rybin@adacore.com>

* gnat_ugn.texi, vms_data.ads: Fix VMS qualifiers.

2009-06-19  Ed Schonberg  <schonberg@adacore.com>

* sem.adb (Walk_Library_Items): Include bodies in the list of units to
traverse, to account for front-end inlining and instantiations in a
spec or in the main unit.

2009-06-19  Robert Dewar  <dewar@adacore.com>

* checks.adb (Determine_Range): Do not attempt to get range of generic
type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148693 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Sergey Rybin <rybin@adacore.com>
charlet [Fri, 19 Jun 2009 10:34:46 +0000 (10:34 +0000)]
2009-06-19  Sergey Rybin  <rybin@adacore.com>

* gnat_ugn.texi, vms_data.ads: Add the documentation for the new
gnatmetric option for generating the schema file for gnatmetric XML
output. Add corresponding VMS qualifier.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148692 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Robert Dewar <dewar@adacore.com>
charlet [Fri, 19 Jun 2009 10:32:08 +0000 (10:32 +0000)]
2009-06-19  Robert Dewar  <dewar@adacore.com>

* g-cgi.adb: Minor reformatting

2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>

* s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
signal code for SIGFPE and raise Program_Error for SIGILL.

* s-osinte-solaris.ads: Remove signal code constants for SIGFPE.

2009-06-19  Ed Schonberg  <schonberg@adacore.com>

* sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
generic package if there is a visibility candidate that is declared in
a regular package.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148691 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-19 Janus Weil <janus@gcc.gnu.org>
janus [Fri, 19 Jun 2009 08:11:21 +0000 (08:11 +0000)]
2009-06-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/40450
* trans-expr.c (gfc_conv_procedure_call): Only add an extra addr_expr
to a procedure pointer actual argument, if it is not itself a
dummy arg.

2009-06-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/40450
* gfortran.dg/proc_ptr_20.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148690 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * config/avr/avr.c (avr_override_options): Remove setting value of
aesok [Fri, 19 Jun 2009 07:35:25 +0000 (07:35 +0000)]
* config/avr/avr.c (avr_override_options): Remove setting value of
PARAM_INLINE_CALL_COST.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148689 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoDaily bump.
gccadmin [Fri, 19 Jun 2009 00:16:33 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148688 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago PR 40488
rth [Thu, 18 Jun 2009 23:27:40 +0000 (23:27 +0000)]
    PR 40488
        * tree-pass.h (TDF_ASMNAME): New.
        * tree-dump.c (dump_options): Add asmname.
        * doc/invoke.texi: Document it.

        * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
        (dump_decl_name): ...here.
        (dump_function_name): New flags arg; mind TDF_ASMNAME.
        (dump_generic_node): Update dump_function_name calls.
        (print_call_name): New flags arg; update all dump calls.
        * diagnostic.h (print_call_name): Update.
        * gimple-pretty-print.c (dump_gimple_call): Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148685 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agogcc/
hjl [Thu, 18 Jun 2009 21:12:12 +0000 (21:12 +0000)]
gcc/

2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>

PR target/40470
* config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.

gcc/testsuite/

2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>

PR target/40470
* gcc.dg/torture/pr40470-1.c: New.
* gcc.dg/torture/pr40470-2.c: Likewise.
* gcc.dg/torture/pr40470-3.c: Likewise.
* gcc.dg/torture/pr40470-4.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148673 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * doc/plugins.texi: Document plugin_is_GPL_compatible.
dnovillo [Thu, 18 Jun 2009 19:48:35 +0000 (19:48 +0000)]
* doc/plugins.texi: Document plugin_is_GPL_compatible.
* plugin.c (str_license): Declare.
(try_init_one_plugin): Assert that the symbol
'plugin_is_GPL_compatible' exists.

testsuite/ChangeLog

* gcc.dg/plugin/selfassign.c: Declare plugin_is_GPL_compatible.
* gcc.dg/plugin/ggcplug.c: Likewise.
* gcc.dg/plugin/one_time_plugin.c: Likewise.
* g++.dg/plugin/selfassign.c: Likewise.
* g++.dg/plugin/attribute_plugin.c: Likewise.
* g++.dg/plugin/dumb_plugin.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148667 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * class.c (get_vtable_decl): Replace finish_decl with cp_finish_decl.
aldyh [Thu, 18 Jun 2009 18:09:12 +0000 (18:09 +0000)]
    * class.c (get_vtable_decl): Replace finish_decl with cp_finish_decl.
        * decl.c (finish_decl): Remove.
        (declare_global_var): Replace finish_decl with cp_finish_decl.
        (start_method): Same.
        * rtti.c (emit_tinfo_decl): Same.
        * pt.c (tsubst_expr): Same.
        (instantiate_decl): Same.
        * decl2.c (grokbitfield): Same.
        * name-lookup.c (pushdecl_top_level_1): Same.
        * cp-tree.h: Remove finish_decl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148666 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agosee removal
razya [Thu, 18 Jun 2009 16:11:18 +0000 (16:11 +0000)]
see removal

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148665 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agosee removal
razya [Thu, 18 Jun 2009 16:08:00 +0000 (16:08 +0000)]
see removal

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148664 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-18 Martin Jambor <mjambor@suse.cz>
jamborm [Thu, 18 Jun 2009 15:38:36 +0000 (15:38 +0000)]
2009-06-18  Martin Jambor  <mjambor@suse.cz>

* tree-sra.c: Include statistics.h
(sra_stats): New variable.
(sra_initialize): Clear sra_stats.
(create_access_replacement): Increment sra_stats.replacements.
(get_access_replacement): Do not return twice.
(analyze_all_variable_accesses): Increment statistics counter by the
number of scalarized aggregates.
(generate_subtree_copies): Increment sra_stats.subtree_copies.
(sra_modify_expr): Increment sra_stats.exprs.
(load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
(sra_modify_assign): Increment sra_stats.exprs,
sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
(perform_intra_sra): Update statistics counters.
* Makefile.in (tree-sra.o): Add statistics.h to dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148663 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
manu [Thu, 18 Jun 2009 15:10:23 +0000 (15:10 +0000)]
2009-06-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>

libcpp/
* expr.c (num_div_op): Take explicit location.
testsuite/
* gcc.dg/cpp/arith-3.c: Add column info.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148662 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * system-aix64.ads: New file.
hainque [Thu, 18 Jun 2009 14:13:20 +0000 (14:13 +0000)]
* system-aix64.ads: New file.
* gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
64bit system.ads for ppc64 multilib variants.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148659 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
sandra [Thu, 18 Jun 2009 12:33:27 +0000 (12:33 +0000)]
2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
(arm_scalar_mode_supported_p): New function.

gcc/testsuite/
* gcc.target/arm/fp16-compile-none-2.c: New.
* gcc.target/arm/fp16-compile-ieee-12.c: New.
* gcc.target/arm/fp16-compile-alt-12.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148657 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
sandra [Thu, 18 Jun 2009 12:30:19 +0000 (12:30 +0000)]
2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>

gcc/testsuite/
* gcc.target/arm/fp16-compile-alt-1.c: New.
* gcc.target/arm/fp16-compile-alt-2.c: New.
* gcc.target/arm/fp16-compile-alt-3.c: New.
* gcc.target/arm/fp16-compile-alt-4.c: New.
* gcc.target/arm/fp16-compile-alt-5.c: New.
* gcc.target/arm/fp16-compile-alt-6.c: New.
* gcc.target/arm/fp16-compile-alt-7.c: New.
* gcc.target/arm/fp16-compile-alt-8.c: New.
* gcc.target/arm/fp16-compile-alt-9.c: New.
* gcc.target/arm/fp16-compile-alt-10.c: New.
* gcc.target/arm/fp16-compile-alt-11.c: New.
* gcc.target/arm/fp16-compile-ieee-1.c: New.
* gcc.target/arm/fp16-compile-ieee-2.c: New.
* gcc.target/arm/fp16-compile-ieee-3.c: New.
* gcc.target/arm/fp16-compile-ieee-4.c: New.
* gcc.target/arm/fp16-compile-ieee-5.c: New.
* gcc.target/arm/fp16-compile-ieee-6.c: New.
* gcc.target/arm/fp16-compile-ieee-7.c: New.
* gcc.target/arm/fp16-compile-ieee-8.c: New.
* gcc.target/arm/fp16-compile-ieee-9.c: New.
* gcc.target/arm/fp16-compile-ieee-10.c: New.
* gcc.target/arm/fp16-compile-ieee-11.c: New.
* gcc.target/arm/fp16-compile-none-1.c: New.
* gcc.target/arm/fp16-compile-exprtype.c: New.
* gcc.target/arm/fp16-compile-vcvt.c: New.
* gcc.target/arm/fp16-builtins-1.c: New.
* gcc.target/arm/fp16-rounding-alt-1.c: New.
* gcc.target/arm/fp16-rounding-ieee-1.c: New.
* gcc.target/arm/fp16-param-1.c: New.
* gcc.target/arm/fp16-return-1.c: New.
* gcc.target/arm/fp16-unprototyped-1.c: New.
* gcc.target/arm/fp16-unprototyped-2.c: New.
* gcc.target/arm/fp16-variadic-1.c: New.
* gcc.dg/torture/arm-fp16-compile-assign.c: New.
* gcc.dg/torture/arm-fp16-compile-convert.c: New.
* gcc.dg/torture/arm-fp16-int-convert-alt.c: New.
* gcc.dg/torture/arm-fp16-int-convert-ieee.c: New.
* gcc.dg/torture/arm-fp16-ops.h: New.
* gcc.dg/torture/arm-fp16-ops-1.c: New.
* gcc.dg/torture/arm-fp16-ops-2.c: New.
* gcc.dg/torture/arm-fp16-ops-3.c: New.
* gcc.dg/torture/arm-fp16-ops-4.c: New.
* gcc.dg/torture/arm-fp16-ops-5.c: New.
* gcc.dg/torture/arm-fp16-ops-6.c: New.
* gcc.dg/torture/arm-fp16-ops-7.c: New.
* gcc.dg/torture/arm-fp16-ops-8.c: New.
* g++.dg/ext/arm-fp16/fp16-overload-1.C: New.
* g++.dg/ext/arm-fp16/fp16-return-1.C: New.
* g++.dg/ext/arm-fp16/fp16-param-1.C: New.
* g++.dg/ext/arm-fp16/fp16-mangle-1.C: New.
* g++.dg/ext/arm-fp16/arm-fp16-ops.h: New.
* g++.dg/ext/arm-fp16/arm-fp16-ops-1.C: New.
* g++.dg/ext/arm-fp16/arm-fp16-ops-2.C: New.
* g++.dg/ext/arm-fp16/arm-fp16-ops-3.C: New.
* g++.dg/ext/arm-fp16/arm-fp16-ops-4.C: New.
* g++.dg/ext/arm-fp16/arm-fp16-ops-5.C: New.
* g++.dg/ext/arm-fp16/arm-fp16-ops-6.C: New.
* g++.dg/ext/arm-fp16/arm-fp16-ops-7.C: New.
* g++.dg/ext/arm-fp16/arm-fp16-ops-8.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148656 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-18 Paul Brook <paul@codesourcery.com>
sandra [Thu, 18 Jun 2009 12:26:37 +0000 (12:26 +0000)]
2009-06-18  Paul Brook  <paul@codesourcery.com>
    Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
(__extendhfsf2, __truncsfhf2): Define.
* config/arm/fp16.c: New file.
* config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
* config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148655 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
sandra [Thu, 18 Jun 2009 12:24:10 +0000 (12:24 +0000)]
2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/extend.texi (Half-Precision): New section.
* doc/invoke.texi (Option Summary): List -mfp16-format.
(ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
* config/arm/arm.opt (mfp16-format=): New.
* config/arm/arm.c: Include intl.h.
(TARGET_INVALID_PARAMETER_TYPE): Redefine.
(TARGET_INVALID_RETURN_TYPE): Redefine.
(TARGET_PROMOTED_TYPE): Redefine.
(TARGET_CONVERT_TO_TYPE): Redefine.
(arm_fp16_format): Define.
(all_fpus): Add entry for neon-fp16.
(fp_model_for_fpu): Likewise.
(struct fp16_format): Declare.
(all_fp16_formats): Define.
(arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
functions.
(arm_override_options): Set arm_fp16_format. Call sorry for fp16
and no ldrh.
(arm_legitimate_index_p): Treat HFmode like HImode.
(thumb1_legitimate_address_p): Make it recognize HFmode constants.
(coproc_secondary_reload_class): Special-case HFmode.
(arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
(arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
(arm_init_fp16_builtins): New.
(arm_init_builtins): Call it.
(arm_invalid_parameter_type): New.
(arm_invalid_return_type): New.
(arm_promoted_type): New.
(arm_convert_to_type).
(arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
format.
(arm_emit_fp16_const): New function.
(arm_mangle_type): Mangle __fp16 as "Dh".
* config/arm/arm.h (TARGET_VFPD32): Make it know about
FPUTYPE_NEON_FP16.
(TARGET_NEON_FP16): New.
(TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
(enum fputype): Add FPUTYPE_NEON_FP16.
(enum arm_fp16_format_type): Declare.
(arm_fp16_format): Declare.
(LARGEST_EXPONENT_IS_NORMAL): Define.
* config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
* config/arm/arm-modes.def (HFmode): Define.
* config/arm/vfp.md: (*movhf_vfp): New.
(extendhfsf2): New.
(truncsfhf2): New.
* config/arm/arm.md: (fpu): Add neon_fp16.
(floatsihf2, floatdihf2): New.
(fix_trunchfsi2, fix_trunchfdi2): New.
(truncdfhf2): New.
(extendhfdf2): New.
(movhf): New.
(*arm32_movhf): New.
(*thumb1_movhf): New.
(consttable_2): Add check for HFmode constants.
(consttable_4): Handle HFmode constants.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148654 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
uros [Thu, 18 Jun 2009 11:35:38 +0000 (11:35 +0000)]
* convert.c (convert_to_integer): Convert (int)logb() into ilogb().

testsuite/ChangeLog:

* gcc.dg/builtins-65.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148653 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-18 Janus Weil <janus@gcc.gnu.org>
janus [Thu, 18 Jun 2009 08:09:40 +0000 (08:09 +0000)]
2009-06-18  Janus Weil  <janus@gcc.gnu.org>

PR fortran/40451
* resolve.c (resolve_contained_fntype): Prevent implicit typing for
procedures with explicit interface.
* symbol.c (gfc_check_function_type): Ditto.

2009-06-18  Janus Weil  <janus@gcc.gnu.org>

PR fortran/40451
* gfortran.dg/proc_ptr_result_4.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148652 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * ChangeLog: Various fixes.
uros [Thu, 18 Jun 2009 07:58:17 +0000 (07:58 +0000)]
* ChangeLog: Various fixes.
* testsuite/ChangeLog: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148651 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * collect2.c (main): Use CONST_CAST2 to perform char ** to
hainque [Thu, 18 Jun 2009 07:45:09 +0000 (07:45 +0000)]
* collect2.c (main): Use CONST_CAST2 to perform char ** to
const char ** conversion in AIX specific section.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148649 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-17 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 18 Jun 2009 01:40:44 +0000 (01:40 +0000)]
2009-06-17  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/23_containers/list/check_construct_destroy.h: New.
Move test logic here.
* testsuite/23_containers/list/moveable.h: Same.
* testsuite/23_containers/list/modifiers/insert/25288.h: Same.
* testsuite/23_containers/list/modifiers/1.h: Same.
* testsuite/23_containers/list/modifiers/2.h: Same.
* testsuite/23_containers/list/modifiers/3.h: Same.
* testsuite/23_containers/list/modifiers/swap/1.h: Same.
* testsuite/23_containers/list/modifiers/swap/2.h: Same.
* testsuite/23_containers/list/modifiers/swap/3.h: Same.
* testsuite/23_containers/list/operations/1.h: Same.
* testsuite/23_containers/list/operations/2.h: Same.
* testsuite/23_containers/list/operations/3.h: Same.
* testsuite/23_containers/list/operations/4.h: Same.
* testsuite/23_containers/list/operations/5.h: Same.
* testsuite/23_containers/list/capacity/1.h: Same.
* testsuite/23_containers/list/init-list.h: Same.
* testsuite/23_containers/list/cons/1.h: Same.
* testsuite/23_containers/list/cons/2.h: Same.
* testsuite/23_containers/list/cons/3.h: Same.
* testsuite/23_containers/list/cons/4.h: Same.
* testsuite/23_containers/list/cons/5.h: Same.
* testsuite/23_containers/list/cons/6.h: Same.
* testsuite/23_containers/list/cons/7.h: Same.
* testsuite/23_containers/list/cons/8.h: Same.
* testsuite/23_containers/list/cons/9.h: Same.
* testsuite/23_containers/list/cons/clear_allocator.h: Same.
* testsuite/23_containers/list/modifiers/insert/25288.cc: Include test
header.
* testsuite/23_containers/list/modifiers/1.cc: Same.
* testsuite/23_containers/list/modifiers/2.cc: Same.
* testsuite/23_containers/list/modifiers/3.cc: Same.
* testsuite/23_containers/list/modifiers/swap/1.cc: Same.
* testsuite/23_containers/list/modifiers/swap/2.cc: Same.
* testsuite/23_containers/list/modifiers/swap/3.cc: Same.
* testsuite/23_containers/list/operations/1.cc: Same.
* testsuite/23_containers/list/operations/2.cc: Same.
* testsuite/23_containers/list/operations/3.cc: Same.
* testsuite/23_containers/list/operations/4.cc: Same.
* testsuite/23_containers/list/operations/5.cc: Same.
* testsuite/23_containers/list/capacity/1.cc: Same.
* testsuite/23_containers/list/init-list.cc: Same.
* testsuite/23_containers/list/cons/1.cc: Same.
* testsuite/23_containers/list/cons/2.cc: Same.
* testsuite/23_containers/list/cons/3.cc: Same.
* testsuite/23_containers/list/cons/4.cc: Same.
* testsuite/23_containers/list/cons/5.cc: Same.
* testsuite/23_containers/list/cons/6.cc: Same.
* testsuite/23_containers/list/cons/7.cc: Same.
* testsuite/23_containers/list/cons/8.cc: Same.
* testsuite/23_containers/list/cons/9.cc: Same.
* testsuite/23_containers/list/cons/clear_allocator.cc: Same.
* testsuite/23_containers/list/check_construct_destroy.cc: Same.
* testsuite/23_containers/list/moveable.cc: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148644 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
hjl [Thu, 18 Jun 2009 01:06:55 +0000 (01:06 +0000)]
2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (ix86_special_builtin_type): Remove
UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
(bdesc_special_args): Updated.
(ix86_init_mmx_sse_builtins): Likewise.
(ix86_expand_special_args_builtin): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148643 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * tree-pretty-print.c (maybe_dump_asm_name): New.
rth [Thu, 18 Jun 2009 00:30:48 +0000 (00:30 +0000)]
    * tree-pretty-print.c (maybe_dump_asm_name): New.
        (dump_decl_name): Use it.
        (PRINT_FUNCTION_NAME): Merge into...
        (dump_function_name): ... here.  Use maybe_dump_asm_name.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148642 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoQuick fix to last ChangeLog entry.
ccoutant [Thu, 18 Jun 2009 00:20:31 +0000 (00:20 +0000)]
Quick fix to last ChangeLog entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148641 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoDaily bump.
gccadmin [Thu, 18 Jun 2009 00:16:57 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148640 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * dbxout.c (dbxout_source_line): Add is_stmt parameter.
ccoutant [Wed, 17 Jun 2009 23:54:40 +0000 (23:54 +0000)]
* dbxout.c (dbxout_source_line): Add is_stmt parameter.
Change caller.
* debug.c (struct gcc_debug_hooks): Change placeholder for
source_line hook.
(debug_nothing_int_charstar_int): Replaced by...
(debug_nothing_int_charstar_int_bool): ...this.
* debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
source_line prototype.
(debug_nothing_int_charstar_int): Replaced by...
(debug_nothing_int_charstar_int_bool): ...this.
* defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
* dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
Output is_stmt operand when necessary.
* final.c (last_is_stmt): New variable.
(final_start_function): Initialize last_is_stmt.
(final_scan_insn): Pass is_stmt to source_line debug hook.
(notice_source_line): Add is_stmt parameter.
* sdbout.c (sdbout_source_line): Add is_stmt parameter.
* vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
Change callers.
* xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
* xcoffout.h (xcoffout_source_line): Add is_stmt parameter.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148635 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
ian [Wed, 17 Jun 2009 22:48:45 +0000 (22:48 +0000)]
* expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
Change all uses.
(struct store_by_pieces_d): Rename from store_by_pieces.  Change
call uses.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148633 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
nemet [Wed, 17 Jun 2009 22:11:47 +0000 (22:11 +0000)]
* tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
tree_strip_sign_nop_conversions and
tree_ssa_strip_useless_type_conversions rather than stripping
the operations here.
(tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
Declare them.
* gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
* tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
* tree.c (tree_nop_conversion, tree_sign_nop_conversion,
tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
functions.

testsuite/
* gcc.c-torture/execute/bitfld-5.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148631 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoCreate new constraint "d" for PowerPC FPRs with 64-bit values.
eager [Wed, 17 Jun 2009 21:51:28 +0000 (21:51 +0000)]
Create new constraint "d" for PowerPC FPRs with 64-bit values.
Replace uses of "f" constraint with "d" as needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148630 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * profile.c (total_num_never_executed): Don't define.
ian [Wed, 17 Jun 2009 20:23:57 +0000 (20:23 +0000)]
* profile.c (total_num_never_executed): Don't define.
(compute_branch_probabilities): Don't count or print
num_never_executed.
(init_branch_prob): Don't set total_num_never_executed.
(end_branch_prob): Don't print total_num_never_executed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148628 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * include/cpplib.h (progname): Don't declare.
ian [Wed, 17 Jun 2009 20:22:02 +0000 (20:22 +0000)]
* include/cpplib.h (progname): Don't declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148627 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * python/hook.in: Do not fail when there is no current objfile.
tromey [Wed, 17 Jun 2009 20:06:27 +0000 (20:06 +0000)]
* python/hook.in: Do not fail when there is no current objfile.
Use os.path.normpath.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148626 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-17 David Daney <ddaney@caviumnetworks.com>
daney [Wed, 17 Jun 2009 19:27:35 +0000 (19:27 +0000)]
2009-06-17  David Daney  <ddaney@caviumnetworks.com>

* jump.c (cleanup_barriers): Handle case of no insns before a
barrier.

2009-06-17  David Daney  <ddaney@caviumnetworks.com>

* gcc.dg/builtin-unreachable-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148624 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-17 David Daney <ddaney@caviumnetworks.com>
daney [Wed, 17 Jun 2009 19:14:56 +0000 (19:14 +0000)]
2009-06-17  David Daney  <ddaney@caviumnetworks.com>

* gcc.target/i386/builtin-unreachable.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148622 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
dje [Wed, 17 Jun 2009 18:18:34 +0000 (18:18 +0000)]
    * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
        (nabstd2_fpr): Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148621 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-17 Steve Ellcey <sje@cup.hp.com>
sje [Wed, 17 Jun 2009 15:37:20 +0000 (15:37 +0000)]
2009-06-17  Steve Ellcey  <sje@cup.hp.com>

* expr.c (expand_assignment): Change complex type check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148614 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
bstarynk [Wed, 17 Jun 2009 13:36:47 +0000 (13:36 +0000)]
2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>

* gcc/doc/plugins.texi (Building GCC plugins): Added new section.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148612 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago./:
ian [Wed, 17 Jun 2009 13:21:23 +0000 (13:21 +0000)]
./:
* c-pch.c (get_ident): Don't set size of templ array.
(pch_init): Don't set size of partial_pch array.

* c-typeck.c (digest_init): If -Wc++-compat, warn about using a
string constant to intialize an array whose size is the length of
the string.
testsuite/:
* gcc.dg/Wcxx-compat-14.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148611 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * gcc.dg/func-ptr-conv-1.c: Update column info.
aldyh [Wed, 17 Jun 2009 12:59:39 +0000 (12:59 +0000)]
    * gcc.dg/func-ptr-conv-1.c: Update column info.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148609 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * decl.c (build_struct): Rewrite loop over constructor elements.
ian [Wed, 17 Jun 2009 12:53:01 +0000 (12:53 +0000)]
* decl.c (build_struct): Rewrite loop over constructor elements.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148608 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-17 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 17 Jun 2009 12:30:54 +0000 (12:30 +0000)]
2009-06-17  Richard Guenther  <rguenther@suse.de>

PR middle-end/40404
* gcc.c-torture/execute/pr40404.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148606 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-17 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 17 Jun 2009 10:29:22 +0000 (10:29 +0000)]
2009-06-17  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/40389
* tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
to addressable types.
* gimple.c (walk_stmt_load_store_addr_ops): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148597 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-17 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 17 Jun 2009 10:26:24 +0000 (10:26 +0000)]
2009-06-17  Richard Guenther  <rguenther@suse.de>

PR middle-end/40460
* tree-chrec.h (build_polynomial_chrec): If we cannot determine
if there is no evolution of left in the loop bail out.
* tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
chrec_fold_multiply.

* g++.dg/torture/pr40460.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148593 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago Relax constraints on Machine_Attribute argument types:
hainque [Wed, 17 Jun 2009 08:58:35 +0000 (08:58 +0000)]
    Relax constraints on Machine_Attribute argument types:
        * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
        missing type.
        (Analyze_Attribute, case Machine_Attribute): Allow any type for
        arg 3.
        * gcc-interface/decl.c (prepend_attributes): Accept static
        expressions of any type as attribute arguments, not only string
        literals.
        * gnat_rm.texi (pragma Machine_Attribute section): Adjust to
        reflect the relaxation of the restriction on the Info argument type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148589 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago PR target/39254
amylaar [Wed, 17 Jun 2009 04:27:29 +0000 (04:27 +0000)]
    PR target/39254
        * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
        for the symbol ref of a constant that is the source of a move
        - nor for any other not-obvious-label-ref constants.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148568 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-16 Olatunji Ruwase <tjruwase@google.com>
dnovillo [Wed, 17 Jun 2009 02:18:55 +0000 (02:18 +0000)]
2009-06-16  Olatunji Ruwase  <tjruwase@google.com>

* plugin.c(position_pass): Skip newly inserted pass during list
traversal to avoid repeated insertion.

2009-06-05  Olatunji Ruwase  <tjruwase@google.com>

* gcc.dg/plugin/one_time_plugin.c: New test.
* gcc.dg/plugin/one_time-test-1.c: New test.
* gcc.dg/plugin/plugin.exp: Added one_time_plugin.c test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148566 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoDaily bump.
gccadmin [Wed, 17 Jun 2009 00:16:46 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148565 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * vec.h (VEC_stack_alloc): Define different version if
ian [Wed, 17 Jun 2009 00:10:23 +0000 (00:10 +0000)]
* vec.h (VEC_stack_alloc): Define different version if
GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
(DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
(DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
(DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148562 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
redi [Tue, 16 Jun 2009 21:24:41 +0000 (21:24 +0000)]
2009-06-16  Jonathan Wakely  <jwakely.gcc@gmail.com>

* libsupc++/exception_ptr.h (exception_ptr::swap(exception_ptr&&)):
Remove.
(exception_ptr::operator=(exception_ptr&&)): Cast source to
rvalue-reference so that move constructor is called.
* testsuite/18_support/exception_ptr/move.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148555 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
hjl [Tue, 16 Jun 2009 21:17:31 +0000 (21:17 +0000)]
2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>

* config.gcc (extra_headers): Add ia32intrin.h for x86.

* config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
(ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and
UINT8_FTYPE_UINT8_INT
(bdesc_special_args): Add __builtin_ia32_rdtsc and
__builtin_ia32_rdtscp.
(bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
__builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
and __builtin_ia32_rorhi,
(ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and
UINT8_FTYPE_UINT8_INT.
(ix86_expand_args_builtin): Likewise.
(ix86_expand_special_args_builtin): Likewise.

* config/i386/i386.md (UNSPECV_RDTSCP): New.
(UNSPECV_RDTSC): Likewise.
(UNSPECV_RDPMC): Likewise.
(*bsr): Removed to ...
(bsr): This
(*bsr_rex64): Removed to ...
(bsr_rex64): This.
(rdpmc): New.
(*rdpmc): Likewise.
(*rdpmc_rex64): Likewise.
(rdtsc): Likewise.
(*rdtsc): Likewise.
(*rdtsc_rex64): Likewise.
(rdtscp): Likewise.
(*rdtscp): Likewise.
(*rdtscp_rex64): Likewise.

* config/i386/ia32intrin.h: New.

* config/i386/x86intrin.h: Include <ia32intrin.h>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148554 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-16 Jonathan Wakely <jwakely.gcc@gmail.com>
redi [Tue, 16 Jun 2009 20:34:43 +0000 (20:34 +0000)]
2009-06-16  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/std/thread (~thread(), operator=(thread&&)): Call terminate
if joinable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148552 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * ira-build.c (copy_info_to_removed_store_destinations):
ian [Tue, 16 Jun 2009 20:25:30 +0000 (20:25 +0000)]
* ira-build.c (copy_info_to_removed_store_destinations):
Initialize parent_a.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148551 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * c-decl.c (grokdeclarator): Change size_varies to bool.
ian [Tue, 16 Jun 2009 20:20:21 +0000 (20:20 +0000)]
* c-decl.c (grokdeclarator): Change size_varies to bool.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148550 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * sel-sched.c: Make forward declarations of move_op_hooks and
ian [Tue, 16 Jun 2009 19:09:35 +0000 (19:09 +0000)]
* sel-sched.c: Make forward declarations of move_op_hooks and
fur_hooks explicitly extern.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148549 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * df-problems.c (df_byte_lr_alloc): Don't set problem_data to
ian [Tue, 16 Jun 2009 19:01:18 +0000 (19:01 +0000)]
* df-problems.c (df_byte_lr_alloc): Don't set problem_data to
itself.
* vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148548 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * resource.c (mark_referenced_resources): Change
ian [Tue, 16 Jun 2009 18:55:20 +0000 (18:55 +0000)]
* resource.c (mark_referenced_resources): Change
include_delayed_effects parameter to bool.  Change all callers.
(mark_end_of_function_resources): Likewise.
* reorg.c (insn_references_resource_p): Likewise.
(insn_sets_resource_p): Likewise.
* resource.h (mark_referenced_resources): Update declaration.
(mark_end_of_function_resources): Update declaration.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148547 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
dje [Tue, 16 Jun 2009 18:51:54 +0000 (18:51 +0000)]
    * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
cp/
        * g++-spec.c (LIBSTDCXX_STATIC): Default to NULL.
        (lang_specific_driver): Always allocate extra argument.
        Add LIBSTDCXX_STATIC to arglist if defined and linking
        statically.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148546 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
dje [Tue, 16 Jun 2009 18:46:47 +0000 (18:46 +0000)]
    * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
        GCC can bootstrap on AIX with GNU Binutils 2.20.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148545 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * Make-lang.in (cp/class.o): Depend upon gt-cp-class.h.
ian [Tue, 16 Jun 2009 17:56:59 +0000 (17:56 +0000)]
* Make-lang.in (cp/class.o): Depend upon gt-cp-class.h.
(cp/semantics.o): Depend upon gt-cp-semantics.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148544 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-16 Wim Lewis <wiml@hhhh.org>
andreast [Tue, 16 Jun 2009 17:55:39 +0000 (17:55 +0000)]
2009-06-16  Wim Lewis  <wiml@hhhh.org>

* src/powerpc/ffi.c: Avoid clobbering cr3 and cr4, which are
supposed to be callee-saved.
* src/powerpc/sysv.S (small_struct_return_value): Fix overrun of
return buffer for odd-size structs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148543 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-16 Andreas Tobler <a.tobler@schweiz.org>
andreast [Tue, 16 Jun 2009 17:28:29 +0000 (17:28 +0000)]
2009-06-16  Andreas Tobler  <a.tobler@schweiz.org>

PR libffi/40444
* testsuite/lib/libffi-dg.exp (libffi_target_compile): Add
allow_stack_execute for Darwin.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148542 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
ian [Tue, 16 Jun 2009 16:59:03 +0000 (16:59 +0000)]
* Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148541 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
ian [Tue, 16 Jun 2009 16:55:41 +0000 (16:55 +0000)]
* toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
inline, not extern inline.
(exact_log2): Likewise.
* toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
test CLZ_HWI.
(exact_log2): Likewise, but don't test CTZ_HWI.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148540 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * bitmap.c (bitmap_clear): Don't declare as inline.
ian [Tue, 16 Jun 2009 16:46:31 +0000 (16:46 +0000)]
* bitmap.c (bitmap_clear): Don't declare as inline.
* gimple.c (gimplify_assign): Likewise.
* tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
* haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
(sched_scan_info): Remove duplicate definition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148539 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-16 Andrew Haley <aph@redhat.com>
aph [Tue, 16 Jun 2009 16:14:54 +0000 (16:14 +0000)]
2009-06-16  Andrew Haley  <aph@redhat.com>

* configure.ac (TARGETDIR): Add missing blank lines.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148538 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago./:
ian [Tue, 16 Jun 2009 14:24:40 +0000 (14:24 +0000)]
./:
* c-common.c (skip_evaluation): Don't define.
(c_inhibit_evaluation_warnings): Define global variable.
(overflow_warning): Check c_inhibit_evaluation_warnings rather
than skip_evaluation.
(convert_and_check, warn_for_div_by_zero): Likewise.
* c-common.h (skip_evaluation): Don't declare.
(c_inhibit_evaluation_warnings): Declare.
* c-parser.c (c_parser_typeof_specifier): Set
c_inhibit_evaluation_warnings rather than skip_evaluation.
(c_parser_conditional_expression): Likewise.
(c_parser_binary_expression): Likewise.
(c_parser_sizeof_expression): Likewise.
(c_parser_alignof_expression): Likewise.
* c-typeck.c (build_indirect_ref): Check
c_inhibit_evaluation_warnings rather than skip_evaluation.
(build_conditional_expr, build_binary_op): Likewise.
cp/:
* parser.c (cp_unevaluated_operand): Define global variable.
(cp_parser_question_colon_clause): Increment
c_inhibit_evaluation_warnings when evaluating an expression which
will never be executed.
(cp_parser_decltype): Increment cp_unevaluated_operand and
c_inhibit_evaluation_warnings, not skip_evaluation.
(cp_parser_sizeof_operand): Likewise.
(cp_parser_enclosed_template_argument_list): Save
cp_unevaluated_operand and c_inhibit_evaluation_warnings, not
skip_evaluation.
* cp-tree.h (struct saved_scope): Remove skip_evaluation field.
Add unevaluated_operand and inhibit_evaluation_warnings fields.
(cp_unevaluated_operand): Declare.
* name-lookup.c (push_to_top_level): Save cp_unevaluated_operand
and c_inhibit_evaluation_warnings rather than skip_evaluation.
(pop_from_top_level): Restore cp_unevaluated_operand and
c_inhibit_evaluation_warnings rather than skip_evaluation.
* class.c (build_base_path): Check cp_unevaluated_operand rather
than skip_evaluation.
* typeck.c (build_class_member_access_expr): Likewise.
(cp_build_binary_op): Don't warn about bad shift counts if
c_inhibit_evaluation_warnings is non-zero.
* pt.c (coerce_template_parms): Save state of
cp_unevaluated_operand and c_inhibit_evaluation_warnings, not
skip_evaluation.
(tsubst_aggr_type): Likewise.
(tsubst_pack_expansion): Check cp_unevaluated_operand rather than
skip_evaluation.
(tsubst_copy): Likewise.
(tsubst): Set cp_unevaluated_operand and
c_inhibit_evaluation_warnings, not skip_evaluation.
(tsubst_copy_and_build): Likewise.
* call.c (convert_arg_to_ellipsis): Check cp_unevaluated_operand
rather than skip_evaluation.
* decl2.c (mark_used): Likewise.
* semantics.c (finish_non_static_data_member): Likewise.
* cvt.c (cp_convert_and_check): Check
c_inhibit_evaluation_warnings rather than skip_evaluation.
* mangle.c (write_type): Set cp_unevaluated_operand rather than
skip_evaluation.
testsuite/:
* g++.dg/warn/skip-1.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148535 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-16 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 16 Jun 2009 14:12:44 +0000 (14:12 +0000)]
2009-06-16  Richard Guenther  <rguenther@suse.de>

* tree-ssa-alias.c (is_escape_site): Remove.
* tree-ssa-alias.h (enum escape_type): Remove.
(is_escape_site): Likewise.
* tree-ssa-structalias.c (find_func_aliases): Handle escapes
via casts and asms without deferring to is_escape_site.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148534 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago PR middle-end/40446
jakub [Tue, 16 Jun 2009 13:48:07 +0000 (13:48 +0000)]
PR middle-end/40446
* expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
use gen_lowpart if op0 has complex mode.

* g++.dg/other/pr40446.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148533 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoRegenerate classfiles in rev 148530 with correct ecj version
doko [Tue, 16 Jun 2009 13:36:37 +0000 (13:36 +0000)]
Regenerate classfiles in rev 148530 with correct ecj version

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148532 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2009-06-16 Matthias Klose <doko@ubuntu.com>
doko [Tue, 16 Jun 2009 13:22:43 +0000 (13:22 +0000)]
2009-06-16  Matthias Klose  <doko@ubuntu.com>

        * tools/gnu/classpath/tools/gjdoc/Main.java (getGjdocVersion): Use
        gnu.classpath.Configuration.CLASSPATH_VERSION as version number.
        * tools/gnu/classpath/tools/doclets/htmldoclet/HtmlDoclet.java
        (getDocletVersion): Likewise.
        * tools/classes/gnu/classpath/tools/gjdoc/Main*.class: Regenerate.
        * tools/classes/gnu/classpath/tools/doclets/htmldoclet/HtmlDoclet*.class:
        Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148530 138bc75d-0d04-0410-961f-82ee72b054a4