platform/upstream/gcc.git
13 years agore PR fortran/47085 ([OOP] Problem in allocate( SOURCE=) for polymorphic component)
Janus Weil [Thu, 30 Dec 2010 11:53:35 +0000 (12:53 +0100)]
re PR fortran/47085 ([OOP] Problem in allocate( SOURCE=)  for polymorphic component)

2010-12-30  Janus Weil  <janus@gcc.gnu.org>

PR fortran/47085
* match.c (gfc_match_allocate): Check for 'class_ok'.
* primary.c (gfc_match_varspec): Ditto.

2010-12-30  Janus Weil  <janus@gcc.gnu.org>

PR fortran/47085
* gfortran.dg/allocate_class_1.f90: New.

From-SVN: r168340

13 years agore PR testsuite/47050 (gcc.target/i386/aggregate-ret[12].c FAIL with -m64)
Kai Tietz [Thu, 30 Dec 2010 11:51:14 +0000 (11:51 +0000)]
re PR testsuite/47050 (gcc.target/i386/aggregate-ret[12].c FAIL with -m64)

2010-12-30  Kai Tietz  <kai.tietz@onevision.com>

        PR testsuite/47050
        * gcc.target/i386/aggregate-ret1.c: Restrict to ilp32.
        * gcc.target/i386/aggregate-ret2.c: Likewise.

From-SVN: r168339

13 years agopdp11.md (movmemhi, movmemhi1): Correct constraints.
Paul Koning [Thu, 30 Dec 2010 11:50:40 +0000 (06:50 -0500)]
pdp11.md (movmemhi, movmemhi1): Correct constraints.

* config/pdp11/pdp11.md (movmemhi, movmemhi1): Correct
constraints.
* config/pdp11/pdp11.c (output_block_move): Rewrite.

From-SVN: r168338

13 years agoIn gcc/objc/: 2010-12-30 Nicola Pero <nicola@nicola.brainstorm.co.uk>
Nicola Pero [Thu, 30 Dec 2010 08:59:29 +0000 (08:59 +0000)]
In gcc/objc/: 2010-12-30 Nicola Pero <nicola@nicola.brainstorm.co.uk>

In gcc/objc/:
2010-12-30  Nicola Pero  <nicola@nicola.brainstorm.co.uk>

* objc-act.c (start_class): Warn when a class attribute is
ignored.
(objc_declare_protocols): Warn when a protocol attribute in a
protocol forward-declaration is ignored.
(start_protocol): Warn when a protocol attribute is ignored.

In gcc/testsuite/:
2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/attributes/class-attribute-3.m: New.
* objc.dg/attributes/proto-attribute-4.m: New.
* obj-c++.dg/attributes/class-attribute-3.mm: New.
* obj-c++.dg/attributes/proto-attribute-4.mm: New.

From-SVN: r168337

13 years agore PR tree-optimization/47060 (ICE: SIGSEGV in reduction_phi (tree-parloops.c:212...
Jakub Jelinek [Thu, 30 Dec 2010 08:24:58 +0000 (09:24 +0100)]
re PR tree-optimization/47060 (ICE: SIGSEGV in reduction_phi (tree-parloops.c:212) with -O -ffast-math -ftree-parallelize-loops=2 -fno-tree-dce)

PR tree-optimization/47060
* tree-parloops.c (reduction_phi): Return NULL if PHI is NULL.

* gcc.dg/autopar/pr47060.c: New test.

From-SVN: r168336

13 years agopdp11-protos.h (pdp11_asm_output_var): Declare.
Paul Koning [Thu, 30 Dec 2010 02:09:04 +0000 (21:09 -0500)]
pdp11-protos.h (pdp11_asm_output_var): Declare.

* config/pdp11/pdp11-protos.h (pdp11_asm_output_var): Declare.
* config/pdp11/pdp11.c (pdp11_asm_output_var): New function.
* config/pdp11/pdp11.h (ASM_OUTPUT_ALIGNED_COMMON,
ASM_OUTPUT_ALIGNED_LOCAL): New macros.
(ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.

From-SVN: r168333

13 years agore PR target/47129 (ia64-hp-vms: ia64.o: dwarf2out_vms_debug_main_pointer undeclared)
Joern Rennecke [Thu, 30 Dec 2010 01:58:10 +0000 (01:58 +0000)]
re PR target/47129 (ia64-hp-vms: ia64.o: dwarf2out_vms_debug_main_pointer undeclared)

PR target/47129
* config/ia64/ia64.c: Include "dwarf2out.h" .

From-SVN: r168332

13 years agoDaily bump.
GCC Administrator [Thu, 30 Dec 2010 00:19:14 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r168331

13 years agoIn gcc/objc/: 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Wed, 29 Dec 2010 22:59:46 +0000 (22:59 +0000)]
In gcc/objc/: 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/objc/:
2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc-act.c (objc_set_method_opt): Tidy up error messages.  In
particular, explicitly mention whether the error is due to the
@optional or @required keyword instead of mentioning
"@optional/@required".

In gcc/testsuite/:
2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/enhanced-proto-2.m: Updated.
* obj-c++.dg/enhanced-proto-2.mm: Updated.

From-SVN: r168327

13 years agoIn gcc/objc/: 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Wed, 29 Dec 2010 21:52:00 +0000 (21:52 +0000)]
In gcc/objc/: 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/objc/:
2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>

PR objc/47118
* objc-act.c (objc_build_synchronized): Check the argument of
@synchronized and emit an appropriate error if it is not a valid
Objective-C object.  Deal gracefully with that case.  Updated
comments and variable names.

In gcc/testsuite/:
2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>

PR objc/47118
* objc.dg/sync-3.m: New.
* obj-c++.dg/sync-3.mm: New.

From-SVN: r168326

13 years agore PR tree-optimization/47074 (tree check fail in create_access_replacement)
Jakub Jelinek [Wed, 29 Dec 2010 21:49:37 +0000 (22:49 +0100)]
re PR tree-optimization/47074 (tree check fail in create_access_replacement)

PR tree-optimization/47074
* gimple-fold.c (gimplify_and_update_call_from_tree): Call
pop_gimplify_context if returning early.

From-SVN: r168325

13 years agodump_parse_tree.c (show_components): Show ALLOCATABLE.
Thomas Koenig [Wed, 29 Dec 2010 21:33:03 +0000 (21:33 +0000)]
dump_parse_tree.c (show_components): Show ALLOCATABLE.

2010-12-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

* dump_parse_tree.c (show_components):  Show
ALLOCATABLE.

From-SVN: r168324

13 years agore PR fortran/46838 ([OOP] Initialization of polymorphic allocatable components)
Janus Weil [Wed, 29 Dec 2010 16:14:11 +0000 (17:14 +0100)]
re PR fortran/46838 ([OOP] Initialization of polymorphic allocatable components)

2010-12-29  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46838
* expr.c (gfc_default_initializer): Handle allocatable CLASS components.

2010-12-29  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46838
* gfortran.dg/alloc_comp_class_2.f90: New.

From-SVN: r168322

13 years agofrontend-passes.c (gfc_code_walker): Handle expressions in EXEC_CALL, EXEC_ASSIGN_CAL...
Thomas Koenig [Wed, 29 Dec 2010 14:51:44 +0000 (14:51 +0000)]
frontend-passes.c (gfc_code_walker): Handle expressions in EXEC_CALL, EXEC_ASSIGN_CALL and EXEC_CALL_PPC.

2010-12-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

* frontend-passes.c (gfc_code_walker): Handle expressions
in EXEC_CALL, EXEC_ASSIGN_CALL and EXEC_CALL_PPC.
Separate cases in switch statements by blank lines.

2010-12-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

* gfortran.dg/character_comparison_7.f90:  New test.

From-SVN: r168320

13 years ago* ja.po: Update.
Joseph Myers [Wed, 29 Dec 2010 14:10:07 +0000 (14:10 +0000)]
* ja.po: Update.

From-SVN: r168318

13 years agoIn gcc/c-family/: 2010-12-29 Nicola Pero <nicola@nicola.brainstorm.co.uk>
Nicola Pero [Wed, 29 Dec 2010 12:22:09 +0000 (12:22 +0000)]
In gcc/c-family/: 2010-12-29 Nicola Pero <nicola@nicola.brainstorm.co.uk>

In gcc/c-family/:
2010-12-29  Nicola Pero  <nicola@nicola.brainstorm.co.uk>

PR objc/47075
* c-objc.h (objc_finish_message_expr): Added argument to
prototype.

In gcc/objc/:
2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>

PR objc/47075
* objc-act.h (PROPERTY_REF_DEPRECATED_GETTER): New.
* objc-tree.def (PROPERTY_REF): Increased the number of operands
from 3 to 4.
* objc-act.c (objc_finish_message_expr): Added optional argument
allowing to return the deprecated method prototype for deprecated
methods, instead of immediately emitting the deprecation warning.
(objc_maybe_build_component_ref): Do not warn for a deprecated
property.  When building the getter call, get the deprecated
method prototype from objc_finish_message_expr() and put it into
the PROPERTY_REF.
(objc_build_class_component_ref): Same change.
(finish_class): Mark the getter and setter as deprecated if they
are generated from a deprecated property.
(objc_gimplify_property_ref): If the getter is deprecated, emit a
deprecation warning.
(objc_build_setter_call, objc_build_message_expr,
objc_finish_foreach_loop): Updated call to
objc_finish_message_expr.

In gcc/objcp/:
2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>

* objcp-lang.c (objcp_tsubst_copy_and_build): Update call to
objc_finish_message_expr.

In gcc/testsuite/:
2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>

PR objc/47075
* objc.dg/property/at-property-deprecated-1.m: Updated.
* objc.dg/property/at-property-deprecated-2.m: New.
* objc.dg/property/dotsyntax-deprecated-1.m: New.
* obj-c++.dg/property/at-property-deprecated-1.mm: Updated.
* obj-c++.dg/property/at-property-deprecated-2.mm: New.
* obj-c++.dg/property/dotsyntax-deprecated-1.mm: New.

From-SVN: r168315

13 years ago* ja.po: Update.
Joseph Myers [Wed, 29 Dec 2010 11:45:53 +0000 (11:45 +0000)]
* ja.po: Update.

From-SVN: r168314

13 years agoUse diagnostic-core.h instead of diagnostic.h.
Sebastian Pop [Wed, 29 Dec 2010 05:26:17 +0000 (05:26 +0000)]
Use diagnostic-core.h instead of diagnostic.h.

2010-12-28  Sebastian Pop  <sebastian.pop@amd.com>

* Makefile.in (graphite.o): Depends on DIAGNOSTIC_CORE_H.
(graphite-clast-to-gimple.o): Same.
(graphite-poly.o): Same.
* graphite-clast-to-gimple.c: Include diagnostic-core.h.
* graphite-poly.c: Same.
* graphite.c: Same.

From-SVN: r168310

13 years agore PR c++/47068 ([C++0x] internal compiler error on decltype(~ expression))
Jason Merrill [Wed, 29 Dec 2010 02:17:47 +0000 (21:17 -0500)]
re PR c++/47068 ([C++0x] internal compiler error on decltype(~ expression))

PR c++/47068
* semantics.c (finish_id_expression): Don't note non-names
as being used in the class.

From-SVN: r168309

13 years agoparser.c (cp_parser_unary_expression): Remove redundant C++0x check.
Jason Merrill [Wed, 29 Dec 2010 02:17:37 +0000 (21:17 -0500)]
parser.c (cp_parser_unary_expression): Remove redundant C++0x check.

* parser.c (cp_parser_unary_expression): Remove redundant C++0x
check.

From-SVN: r168308

13 years agoIn gcc/objc/: 2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Wed, 29 Dec 2010 01:16:55 +0000 (01:16 +0000)]
In gcc/objc/: 2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/objc/:
2010-12-28  Nicola Pero  <nicola.pero@meta-innovation.com>

PR objc/47076
* objc-act.c (lookup_protocol): Added 'definition_required'
argument.  If 'definition_required', and the protocol is not
defined, emit a warning.
(objc_declare_protocols): Updated call to lookup_protocol.
(start_protocol): Same change.
(check_protocol_recursively): Same change.
(objc_build_protocol_expr): Same change.
(lookup_and_install_protocols): Added definition_required argument.
Pass it to lookup_protocol.
(objc_get_protocol_qualified_type): Updated call to
lookup_and_install_protocols.
(start_class): Updated calls to lookup_and_install_protocols; pass
true to 'definition_required' to get the warnings.
(start_protocol): Updated calls to lookup_and_install_protocols.

In gcc/testsuite/:
2010-12-28  Nicola Pero  <nicola.pero@meta-innovation.com>

PR objc/47076
* objc.dg/protocol-forward-1.m: New.
* obj-c++.dg/protocol-forward-1.mm: New.
* objc.dg/attributes/proto-attribute-2.m: Updated.
* objc.dg/class-protocol-1.m: Updated.
* obj-c++.dg/attributes/proto-attribute-2.mm: Updated.
* obj-c++.dg/class-protocol-1.mm: Updated.

From-SVN: r168307

13 years agoDaily bump.
GCC Administrator [Wed, 29 Dec 2010 00:18:28 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r168306

13 years agore PR fortran/45827 ([OOP] mio_component_ref(): Component not found)
Janus Weil [Tue, 28 Dec 2010 21:21:53 +0000 (22:21 +0100)]
re PR fortran/45827 ([OOP] mio_component_ref(): Component not found)

2010-12-28  Janus Weil  <janus@gcc.gnu.org>
    Daniel Franke  <dfranke@gcc.gnu.org>

PR fortran/45827
* module.c (mio_component_ref): Handle components of CLASS variables.

2010-12-28  Janus Weil  <janus@gcc.gnu.org>

PR fortran/45827
* gfortran.dg/class_32.f90: New.

Co-Authored-By: Daniel Franke <dfranke@gcc.gnu.org>
From-SVN: r168302

13 years agore PR debug/46931 (Subversion id 167184 breaks building perlbench on power7 with...
Richard Guenther [Tue, 28 Dec 2010 20:20:29 +0000 (20:20 +0000)]
re PR debug/46931 (Subversion id 167184 breaks building perlbench on power7 with debug)

PR debug/46931
* tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Update
SSA before removing dead stmts.

From-SVN: r168299

13 years agoReplace _rdrand_uXX with _rdrandXX_step.
H.J. Lu [Tue, 28 Dec 2010 19:33:40 +0000 (19:33 +0000)]
Replace _rdrand_uXX with _rdrandXX_step.

gcc/

2010-12-28  H.J. Lu  <hongjiu.lu@intel.com>
    Uros Bizjak  <ubizjak@gmail.com>

* config/i386/i386-builtin-types.def (PUSHORT): New.
(INT_FTYPE_PUSHORT): Likewise.
(INT_FTYPE_PUNSIGNED): Likewise.
(INT_FTYPE_PULONGLONG): Likewise.
Remove "DEF_FUNCTION_TYPE (UINT16)".

* config/i386/i386.c (ix86_builtins): Remove
IX86_BUILTIN_RDRAND16, IX86_BUILTIN_RDRAND32 and
IX86_BUILTIN_RDRAND64.  Add IX86_BUILTIN_RDRAND16_STEP,
IX86_BUILTIN_RDRAND32_STEP and IX86_BUILTIN_RDRAND64_STEP.
(bdesc_special_args): Remove IX86_BUILTIN_RDRAND16,
IX86_BUILTIN_RDRAND32 and IX86_BUILTIN_RDRAND64.
(ix86_init_mmx_sse_builtins): Handle IX86_BUILTIN_RDRAND16_STEP,
IX86_BUILTIN_RDRAND32_STEP and IX86_BUILTIN_RDRAND64_STEP.
(ix86_expand_builtin): Likewise.
(ix86_expand_special_args_builtin): Remove UINT16_FTYPE_VOID.

* config/i386/i386.md (UNSPEC_RDRAND): New.
(UNSPECV_RDRAND): Removed.
(rdrand<mode>): Likewise.
(rdrand<mode>_1): Also set FLAGS_REG.  Replace UNSPECV_RDRAND
with UNSPEC_RDRAND.

* config/i386/immintrin.h (_rdrand_u16): Removed.
(_rdrand_u32): Likewise.
(_rdrand_u64): Likewise.
(_rdrand16_step): New.
(_rdrand32_step): Likewise.
(_rdrand64_step): Likewise.

* doc/extend.texi (__builtin_ia32_rdrand16): Removed.
(__builtin_ia32_rdrand32): Likewise.
(__builtin_ia32_rdrand64): Likewise.
(__builtin_ia32_rdrand16_step): New.
(__builtin_ia32_rdrand32_step): Likewise.
(__builtin_ia32_rdrand64_step): Likewise.

gcc/testsuite/

2010-12-28  H.J. Lu  <hongjiu.lu@intel.com>

* gcc.target/i386/rdrand-1.c: Updated.
* gcc.target/i386/rdrand-2.c: Likewise.
* gcc.target/i386/rdrand-3.c: Likewise.

Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
From-SVN: r168298

13 years agoFix bootstrap without graphite.
Sebastian Pop [Tue, 28 Dec 2010 19:09:16 +0000 (19:09 +0000)]
Fix bootstrap without graphite.

2010-12-28  Sebastian Pop  <sebastian.pop@amd.com>

* Makefile.in (graphite.o): Add dependence on DIAGNOSTIC_H.
* graphite.c: Include diagnostic.h.

From-SVN: r168297

13 years agoDo not include unnecessary .h files.
Sebastian Pop [Tue, 28 Dec 2010 17:09:16 +0000 (17:09 +0000)]
Do not include unnecessary .h files.

2010-12-28  Sebastian Pop  <sebastian.pop@amd.com>

* Makefile.in (TREE_VECTORIZER_H): Removed duplicate definition.
(tree-browser.o): Update dependences.
(omega.o): Same.
(tree-chrec.o): Same.
(tree-scalar-evolution.o): Same.
(tree-data-ref.o): Same.
(sese.o): Same.
(graphite.o): Same.
(graphite-blocking.o): Same.
(graphite-clast-to-gimple.o): Same.
(graphite-cloog-util.o): Same.
(graphite-dependences.o): Same.
(graphite-flattening.o): Same.
(graphite-interchange.o): Same.
(graphite-poly.o): Same.
(graphite-ppl.o): Same.
(graphite-scop-detection.o): Same.
(graphite-sese-to-poly.o): Same.
(tree-loop-linear.o): Same.
(tree-loop-distribution.o): Same.
(tree-parloops.o): Same.
(lambda-mat.o): Same.
(lambda-trans.o): Same.
(lambda-code.o): Same.
* tree-browser.o: Do not include unnecessary .h files.
* omega.o: Same.
* tree-chrec.o: Same.
* tree-scalar-evolution.o: Same.
* tree-data-ref.o: Same.
* sese.o: Same.
* graphite.o: Same.
* graphite-blocking.o: Same.
* graphite-clast-to-gimple.o: Same.
* graphite-cloog-util.o: Same.
* graphite-dependences.o: Same.
* graphite-flattening.o: Same.
* graphite-interchange.o: Same.
* graphite-poly.o: Same.
* graphite-ppl.o: Same.
* graphite-scop-detection.o: Same.
* graphite-sese-to-poly.o: Same.
* tree-loop-linear.o: Same.
* tree-loop-distribution.o: Same.
* tree-parloops.o: Same.
* lambda-mat.o: Same.
* lambda-trans.o: Same.
* lambda-code.o: Same.
* graphite.h: Removed.

From-SVN: r168296

13 years agopdp11.md: Correct length attribute for float literal case.
Paul Koning [Tue, 28 Dec 2010 17:04:37 +0000 (12:04 -0500)]
pdp11.md: Correct length attribute for float literal case.

* config/pdp11/pdp11.md: Correct length attribute for float
literal case.

From-SVN: r168295

13 years agoIn gcc/objc/: 2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Tue, 28 Dec 2010 12:39:29 +0000 (12:39 +0000)]
In gcc/objc/: 2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/objc/:
2010-12-28  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc-act.c (objc_start_category_interface): Produce an error if
a class extension is found after the class @implementation.

In gcc/testsuite/:
2010-12-28  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/class-extension-4.m: New.
* obj-c++.dg/class-extension-4.mm: New.

From-SVN: r168294

13 years ago* builtins.c (SLOW_UNALIGNED_ACCESS): Remove.
Jie Zhang [Tue, 28 Dec 2010 06:13:28 +0000 (06:13 +0000)]
* builtins.c (SLOW_UNALIGNED_ACCESS): Remove.

From-SVN: r168293

13 years agoIn gcc/testsuite/: 2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Tue, 28 Dec 2010 03:40:58 +0000 (03:40 +0000)]
In gcc/testsuite/: 2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/testsuite/:
2010-12-28  Nicola Pero  <nicola.pero@meta-innovation.com>

PR objc/47073
* objc.dg/incomplete-type-1.m: New test.

In gcc/objc/:
2010-12-28  Nicola Pero  <nicola.pero@meta-innovation.com>

PR objc/47073
* objc-act.c (encode_method_prototype): Fixed both location and
format string of error "type %qT does not have a known size".

From-SVN: r168285

13 years agoDaily bump.
GCC Administrator [Tue, 28 Dec 2010 00:19:36 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r168284

13 years agofreebsd.opt (assert=, [...]): New Driver options.
Joseph Myers [Mon, 27 Dec 2010 22:42:13 +0000 (22:42 +0000)]
freebsd.opt (assert=, [...]): New Driver options.

* config/freebsd.opt (assert=, defsym=, profile, pthread,
rpath-link=, rpath=, soname=): New Driver options.

From-SVN: r168278

13 years ago* ja.po: Update.
Joseph Myers [Mon, 27 Dec 2010 16:49:57 +0000 (16:49 +0000)]
* ja.po: Update.

From-SVN: r168277

13 years agodump-parse-tree.c (show_typespec): Also show character kind.
Thomas Koenig [Mon, 27 Dec 2010 15:33:39 +0000 (15:33 +0000)]
dump-parse-tree.c (show_typespec): Also show character kind.

2010-12-27  Thomas Koenig  <tkoenig@gcc.gnu.org>

* dump-parse-tree.c (show_typespec):  Also show character kind.

From-SVN: r168276

13 years agore PR c++/46626 (simple use of virtual methods causes pure virtual method call in...
Jakub Jelinek [Mon, 27 Dec 2010 12:54:30 +0000 (13:54 +0100)]
re PR c++/46626 (simple use of virtual methods causes pure virtual method call in c++0x mode)

PR c++/46626
* semantics.c (build_data_member_initialization): For CLEANUP_STMT
recurse into CLEANUP_BODY.

* g++.dg/cpp0x/constexpr-base4.C: New test.

From-SVN: r168271

13 years agoDaily bump.
GCC Administrator [Mon, 27 Dec 2010 00:18:18 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r168261

13 years agoIn gcc/testsuite/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Sun, 26 Dec 2010 22:49:57 +0000 (22:49 +0000)]
In gcc/testsuite/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/testsuite/:
2010-12-26  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/gnu-api-2-class.m: Xfail the test on Apple Darwin m64.
* objc.dg/gnu-api-2-ivar.m: Same.
* objc.dg/gnu-api-2-method.m: Same.
* objc.dg/gnu-api-2-objc.m: Same.
* objc.dg/gnu-api-2-object.m: Same.
* objc.dg/gnu-api-2-protocol.m: Same.
* obj-c++.dg/gnu-api-2-class.mm: Same.
* obj-c++.dg/gnu-api-2-ivar.mm: Same.
* obj-c++.dg/gnu-api-2-method.mm: Same.
* obj-c++.dg/gnu-api-2-objc.mm: Same.
* obj-c++.dg/gnu-api-2-object.mm: Same.
* obj-c++.dg/gnu-api-2-protocol.mm: Same.

From-SVN: r168256

13 years agotree.c (get_binfo_at_offset): Use BINFO_TYPE instead of TREE_TYPE, compare TYPE_MAIN_...
Martin Jambor [Sun, 26 Dec 2010 21:01:11 +0000 (22:01 +0100)]
tree.c (get_binfo_at_offset): Use BINFO_TYPE instead of TREE_TYPE, compare TYPE_MAIN_VARIANTs of types.

2010-12-26  Martin Jambor  <mjambor@suse.cz>

* tree.c (get_binfo_at_offset): Use BINFO_TYPE instead of TREE_TYPE,
compare TYPE_MAIN_VARIANTs of types.

From-SVN: r168255

13 years agoIn gcc/testsuite/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Sun, 26 Dec 2010 18:21:38 +0000 (18:21 +0000)]
In gcc/testsuite/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/testsuite/:
2010-12-26  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/pr44509.m: New.

In gcc/objc/:
2010-12-26  Nicola Pero  <nicola.pero@meta-innovation.com>

* config-lang.in (gtfiles): Added c-family/c-cppbuiltin.c.

In gcc/objcp/:
2010-12-26  Nicola Pero  <nicola.pero@meta-innovation.com>

* config-lang.in (gtfiles): Added c-family/c-cppbuiltin.c.

From-SVN: r168254

13 years ago* gcc/config/m68k/t-linux (M68K_MLIB_CPU): Only include 680x0 CPUs.
Andreas Schwab [Sun, 26 Dec 2010 18:19:04 +0000 (18:19 +0000)]
* gcc/config/m68k/t-linux (M68K_MLIB_CPU): Only include 680x0 CPUs.

From-SVN: r168253

13 years agoIn gcc/testsuite/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Sun, 26 Dec 2010 18:05:00 +0000 (18:05 +0000)]
In gcc/testsuite/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/testsuite/:
2010-12-26  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/gnu-api-2-class.m: Updated the test to work with the
Apple runtime as well.
* obj-c++.dg/gnu-api-2-class.mm: Same change.
* objc.dg/gnu-api-2-ivar.m: Same change.
* obj-c++.dg/gnu-api-2-ivar.mm: Same change.
* objc.dg/gnu-api-2-method.m: Same change.
* obj-c++.dg/gnu-api-2-method.mm: Same change.
* objc.dg/gnu-api-2-objc.m: Same change.
* obj-c++.dg/gnu-api-2-objc.mm: Same change.
* objc.dg/gnu-api-2-object.m: Same change.
* obj-c++.dg/gnu-api-2-object.mm: Same change.
* objc.dg/gnu-api-2-property.m: Same change.
* obj-c++.dg/gnu-api-2-property.mm: Same change.
* objc.dg/gnu-api-2-protocol.m: Same change.
* obj-c++.dg/gnu-api-2-protocol.mm: Same change.

* objc.dg/gnu-api-2-objc.m: Also, fixed test for
objc_disposeClassPair not to create a new class pair with the same
name as an existing class, and to test that the class pair is
created correctly.
* obj-c++.dg/gnu-api-2-objc.mm: Same change.

From-SVN: r168252

13 years agoIn libobjc/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Sun, 26 Dec 2010 16:56:01 +0000 (16:56 +0000)]
In libobjc/: 2010-12-26 Nicola Pero <nicola.pero@meta-innovation.com>

In libobjc/:
2010-12-26  Nicola Pero  <nicola.pero@meta-innovation.com>

* init.c (create_tree_of_subclasses_inherited_from): Use
class_superclass_of_class instead of assuming a class is
unresolved when it could be resolved.  Tidied up code.
(__objc_tree_insert_class): Enhanced DEBUG_PRINTF.
(objc_tree_insert_class): Tidied up loop; return immediately upon
inserting a class.
(__objc_exec_class): Do not set __objc_class_tree_list.

In gcc/testsuite/:
2010-12-26  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/special/special.exp: Added load-category-2 and
load-category-3 tests.
* objc.dg/special/load-category-2.h: New.
* objc.dg/special/load-category-2.m: New.
* objc.dg/special/load-category-2a.m: New.
* objc.dg/special/load-category-3.h: New.
* objc.dg/special/load-category-3.m: New.
* objc.dg/special/load-category-3a.m: New.

From-SVN: r168251

13 years ago* sv.po: Update.
Joseph Myers [Sun, 26 Dec 2010 11:34:24 +0000 (11:34 +0000)]
* sv.po: Update.

From-SVN: r168250

13 years agoChangeLog: Fix formatting issues and remove duplicate entries.
Uros Bizjak [Sun, 26 Dec 2010 09:18:55 +0000 (10:18 +0100)]
ChangeLog: Fix formatting issues and remove duplicate entries.

* ChangeLog: Fix formatting issues and remove duplicate entries.
* testsuite/ChangeLog: Ditto.

From-SVN: r168249

13 years agoDaily bump.
GCC Administrator [Sun, 26 Dec 2010 00:17:47 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r168248

13 years ago* de.po: Update.
Joseph Myers [Sat, 25 Dec 2010 20:56:25 +0000 (20:56 +0000)]
* de.po: Update.

From-SVN: r168244

13 years agore PR testsuite/47057 (FAIL/XPASS gcc.dg/vect/costmodel/ppc/costmodel-vect-outer...
Ira Rosen [Sat, 25 Dec 2010 12:53:58 +0000 (12:53 +0000)]
re PR testsuite/47057 (FAIL/XPASS gcc.dg/vect/costmodel/ppc/costmodel-vect-outer-fir.c)

        PR testsuite/47057
        * gcc.dg/vect/costmodel/ppc/costmodel-vect-outer-fir.c: Change
        comment. Expect two outer loops to get vectorized.

From-SVN: r168242

13 years agore PR c++/15774 (Conflicting function decls not diagnosed)
Kai Tietz [Sat, 25 Dec 2010 10:41:05 +0000 (10:41 +0000)]
re PR c++/15774 (Conflicting function decls not diagnosed)

2010-12-25  Kai Tietz  <kai.tietz@onevision.com>

PR c++/15774
* decl.c (decls_match): Check for FUNCTION_DECL
also for identity of compatible attributes.

ChangeLog gcc/testsuite

2010-12-25  Kai Tietz  <kai.tietz@onevision.com>

PR c++/15774
* g++.dg/warn/pr15774-1.C: New test.
* g++.dg/warn/pr15774-2.C: New test.

From-SVN: r168241

13 years agoDaily bump.
GCC Administrator [Sat, 25 Dec 2010 00:19:01 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r168236

13 years agoIn libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Fri, 24 Dec 2010 20:10:46 +0000 (20:10 +0000)]
In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>

In libobjc/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

* selector.c (sel_getTypedSelector): Return NULL if given a NULL
argument.
(sel_registerTypedName): Same.
(sel_registerName): Same.
* objc/runtime.h: Updated documentation.

In gcc/testsuite/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/gnu-api-2-sel.m: Test calling sel_getUid,
sel_registerName and sel_registerTypedName with NULL arguments.
Updated the test to work with the Apple runtime as well.
* obj-c++.dg/gnu-api-2-sel.mm: Same change.

From-SVN: r168231

13 years agoIn libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Fri, 24 Dec 2010 18:41:05 +0000 (18:41 +0000)]
In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>

In libobjc/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc/runtime.h (class_addIvar): Updated documentation.  The
alignment is actually the log_2 of the alignment in bytes.
* ivars.c (class_addIvar): Corresponding change to the
implementation.

In gcc/testsuite/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/gnu-api-2-class.m: Updated test to pass log_2 of the
alignment to class_addIvar, instead of the alignment itself.
* obj-c++.dg/gnu-api-2-class.mm: Same change.

From-SVN: r168230

13 years agoIn libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Fri, 24 Dec 2010 17:00:19 +0000 (17:00 +0000)]
In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>

In libobjc/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc/runtime.h (sel_getType): Renamed to sel_getTypeEncoding to
be consistent with method_getTypeEncoding and
ivar_getTypeEncoding.
(sel_copyTypedSelectorList, sel_getTypedSelector): New.
* selector.c (sel_getType): Renamed to sel_getTypeEncoding.
(sel_copyTypedSelectorList, sel_getTypedSelector): New.
(sel_get_type): Updated call to sel_getType.

In gcc/testsuite/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/gnu-api-2-sel.m: Updated for renaming of sel_getType to
sel_getTypeEncoding.  Test that sel_getTypeEncoding returns NULL
when called with a NULL argument.  Added test for
sel_copyTypedSelectorList and sel_getTypedSelector.
* obj-c++.dg/gnu-api-2-sel.mm: Same changes.

From-SVN: r168229

13 years ago* gnat.dg/opt13_pkg.ad[sb]: Fix line ending.
Eric Botcazou [Fri, 24 Dec 2010 16:15:38 +0000 (16:15 +0000)]
* gnat.dg/opt13_pkg.ad[sb]: Fix line ending.

From-SVN: r168227

13 years agoIn libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Fri, 24 Dec 2010 15:32:25 +0000 (15:32 +0000)]
In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>

In libobjc/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc/runtime.h (class_conformsToProtocol,
class_copyProtocolList): Updated documentation.

In gcc/testsuite/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

* obj-c.dg/gnu-api-2-class.m: Test that class_conformsToProtocol()
does not check the superclasses.
* obj-c++.dg/gnu-api-2-class.mm: Same change.

From-SVN: r168226

13 years agore PR rtl-optimization/47036 (ICE: in move_cond_jump, at sel-sched.c:4901 with -fsche...
Alexander Monakov [Fri, 24 Dec 2010 14:19:23 +0000 (17:19 +0300)]
re PR rtl-optimization/47036 (ICE: in move_cond_jump, at sel-sched.c:4901 with -fschedule-insns -fselective-scheduling -fno-dce)

PR rtl-optimization/47036
* sel-sched-ir.c (fallthru_bb_of_jump): Remove special support for
unconditional jumps.
* sel-sched.c (moveup_expr): Ditto.

testsuite:
* g++.dg/opt/pr47036.C: New.

From-SVN: r168225

13 years agore PR fortran/31821 (character pointer => target(range) should detect if lengths...
Thomas Koenig [Fri, 24 Dec 2010 08:42:04 +0000 (08:42 +0000)]
re PR fortran/31821 (character pointer => target(range) should detect if lengths don't match)

2010-12-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/31821
* check.c (gfc_var_strlen):  New function, also including
substring references.
(gfc_check_same_strlen):  Use gfc_var_strlen.

2010-12-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/31821
* gfortran.dg/char_pointer_assign_6.f90:  New test.

From-SVN: r168224

13 years agoAvoid endless loop on array with recursive length.
Ian Lance Taylor [Fri, 24 Dec 2010 01:26:14 +0000 (01:26 +0000)]
Avoid endless loop on array with recursive length.

From-SVN: r168223

13 years agoDon't crash on invalid use of multiple results.
Ian Lance Taylor [Fri, 24 Dec 2010 00:51:10 +0000 (00:51 +0000)]
Don't crash on invalid use of multiple results.

From-SVN: r168222

13 years agoAvoid endless loop checking whether type is pointer.
Ian Lance Taylor [Fri, 24 Dec 2010 00:33:49 +0000 (00:33 +0000)]
Avoid endless loop checking whether type is pointer.

From-SVN: r168221

13 years agoDaily bump.
GCC Administrator [Fri, 24 Dec 2010 00:19:53 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r168220

13 years agoAvoid endless loop inheriting interfaces.
Ian Lance Taylor [Fri, 24 Dec 2010 00:13:35 +0000 (00:13 +0000)]
Avoid endless loop inheriting interfaces.

From-SVN: r168216

13 years agoIn libobjc/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Thu, 23 Dec 2010 19:46:04 +0000 (19:46 +0000)]
In libobjc/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>

In libobjc/:
2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>

* init.c (create_tree_of_subclasses_inherited_from): Updated
DEBUG_PRINTF messages.
(__objc_tree_insert_class): Same.
(__objc_send_load_using_method_list): Same.
(__objc_send_load): Same.
(__objc_exec_class): Same.  In particular, do not print the module
name since it is no longer used.
* sendmsg.c (__objc_send_initialize): Added DEBUG_PRINTFs for
tracking +initialize calls.
(__objc_update_dispatch_table_for_class): Added DEBUG_PRINTFs for
tracking updates of dispatch tables.
(__objc_install_dispatch_table_for_class): Same.

From-SVN: r168215

13 years agoFix PR46758: Do not use int_cst_value.
Sebastian Pop [Thu, 23 Dec 2010 16:26:11 +0000 (16:26 +0000)]
Fix PR46758: Do not use int_cst_value.

2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>
    Richard Guenther  <rguenther@suse.de>

PR tree-optimization/46758
* graphite-sese-to-poly.c (scan_tree_for_params_right_scev): Use
tree_int_to_gmp instead of int_cst_value.
(scan_tree_for_params_int): Same.
(scan_tree_for_params): Same.
(pdr_add_data_dimensions): Use ppl_set_inhomogeneous_tree.

* gcc.dg/graphite/run-id-pr46758.c: New.

Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r168211

13 years agoFix PR47002: memory leaks.
Sebastian Pop [Thu, 23 Dec 2010 16:25:52 +0000 (16:25 +0000)]
Fix PR47002: memory leaks.

2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/47002
* tree-data-ref.c (compute_data_dependences_for_loop): Pass in a
pointer to the loop_nest.
(analyze_all_data_dependences): Initialize and free the loop_nest.
(free_dependence_relations): Do not free loop_nest.
(build_rdg): Pass in the loop_nest, datarefs, and dependence_relations.
(free_rdg): Also free the data on edges.
* tree-data-ref.h (build_rdg): Update declaration.
(compute_data_dependences_for_loop): Same.
* tree-if-conv.c (if_convertible_loop_p_1): Pass in the loop_nest.
(if_convertible_loop_p): Allocate and free loop_nest.
* tree-loop-distribution.c (rdg_flag_loop_exits): Free conds.
(free_rdg_components): VEC_free components.
(distribute_loop): Update call to build_rdg.  Allocate and free
loop_nest, datarefs, and dependence_relations.
* tree-loop-linear.c (linear_transform_loops): Allocate and free
loop_nest.
* tree-parloops.c (loop_parallel_p): Same.
* tree-predcom.c (tree_predictive_commoning_loop): Same.
* tree-vect-data-refs.c (vect_analyze_data_refs): Pass to
compute_data_dependences_for_loop a pointer to LOOP_VINFO_LOOP_NEST.
* tree-vect-loop.c (new_loop_vec_info): Initialize LOOP_VINFO_LOOP_NEST.
(destroy_loop_vec_info): Free LOOP_VINFO_MAY_ALIAS_DDRS and
LOOP_VINFO_LOOP_NEST.
* tree-vect-slp.c (destroy_bb_vec_info): Call free_data_refs and
free_dependence_relations.
* tree-vectorizer.h (struct _loop_vec_info): Add a field loop_nest.
(LOOP_VINFO_LOOP_NEST): New.

From-SVN: r168210

13 years agoipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even when not checking.
Martin Jambor [Thu, 23 Dec 2010 16:12:07 +0000 (17:12 +0100)]
ipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even when not checking.

2010-12-23  Martin Jambor  <mjambor@suse.cz>

* ipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even
when not checking.

From-SVN: r168209

13 years ago* configure: Regenerate.
Hariharan Sandanagobalane [Thu, 23 Dec 2010 16:09:09 +0000 (16:09 +0000)]
* configure: Regenerate.

From-SVN: r168208

13 years agore PR fortran/46978 (TRANSPOSE with RESHAPE and ALLOCATE: Segfault)
Mikael Morin [Thu, 23 Dec 2010 13:39:06 +0000 (13:39 +0000)]
re PR fortran/46978 (TRANSPOSE with RESHAPE and ALLOCATE: Segfault)

2010-12-23  Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/46978
* gfortran.dg/transpose_intrinsic_func_call_1.f90: New test.

From-SVN: r168207

13 years agore PR fortran/46978 (TRANSPOSE with RESHAPE and ALLOCATE: Segfault)
Mikael Morin [Thu, 23 Dec 2010 13:35:53 +0000 (13:35 +0000)]
re PR fortran/46978 (TRANSPOSE with RESHAPE and ALLOCATE: Segfault)

2010-12-23  Mikael Morin  <mikael.morin@gcc.gnu.org>

PR fortran/46978
Revert part of revision 164112
* trans-array.c (gfc_trans_create_temp_array):
Set loop n'th upper bound from (possibly transposed) array's dim bounds.

From-SVN: r168206

13 years agoconfigure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for --eh-frame-hdr.
Rainer Orth [Thu, 23 Dec 2010 12:08:21 +0000 (12:08 +0000)]
configure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for --eh-frame-hdr.

* configure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for
--eh-frame-hdr.
Check for working Sun ld version.
(HAVE_LD_EH_FRAME_HDR): Adapt comment.
(glibc_header_dir): Set only once.
Rename to ...
(target_header_dir): ... this.
Adapt users.
(gcc_cv_target_dl_iterate_frame_hdr): Check on *-*-solaris2*.
(TARGET_DL_ITERATE_PHDR): Define if present.
* configure: Regenerate.
* config.in: Likewise.
* config/t-sol2 (LIB2ADDEH, LIB2ADDEHDEP): Define.
* crtstuff.c (USE_PT_GNU_EH_FRAME): Define for recent Solaris 11
with linker support and dl_iterate_phdr.
* unwind-dw2-fde-glibc.c (USE_PT_GNU_EH_FRAME): Likewise.
(_Unwind_IteratePhdrCallback) [PT_SUNW_UNWIND]: Also accept
PT_SUNW_UNWIND .eh_frame_hdr sections.
[CRT_GET_RFIB_DATA && __i386__ && __sun__ && __svr4__]: Add
load_base to data->dbase.
[CRT_GET_RFIB_DATA && __x86_64__ && __sun__ && __svr4__]: Handle
64-bit Solaris 10+/x86.
* config/sol2-gld.h [TARGET_DL_ITERATE_PHDR && HAVE_LD_EH_FRAME_HDR]
(LINK_EH_SPEC): Define.

From-SVN: r168204

13 years agoMakefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
Rainer Orth [Thu, 23 Dec 2010 11:26:14 +0000 (11:26 +0000)]
Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.

* Makefile.in (libobjc$(libsuffix).la): Link with -Wc,-shared-libgcc.
(libobjc_gc$(libsuffix).la): Likewise.

From-SVN: r168203

13 years agoFix typos in the manual.
Ralf Wildenhues [Thu, 23 Dec 2010 10:38:55 +0000 (10:38 +0000)]
Fix typos in the manual.

gcc/:
* doc/extend.texi (Function Attributes, Volatiles): Fix typos.
* doc/install.texi (Prerequisites, Specific): Likewise.
* doc/invoke.texi (C Dialect Options, Debugging Options)
(Optimize Options, MicroBlaze Options)
(RS/6000 and PowerPC Options, RX Options, Code Gen Options):
Likewise.
* doc/objc.texi (Method signatures)
(Fast enumeration protocol): Likewise.
* doc/tm.texi.in (Run-time Target, Register Arguments)
(Scheduling, Macros for Initialization, Misc): Likewise.
* doc/tm.texi: Renerate.

From-SVN: r168202

13 years agoIn gcc/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Thu, 23 Dec 2010 06:01:43 +0000 (06:01 +0000)]
In gcc/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/:
2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>

* doc/objc.texi (Modern GNU Objective-C runtime API): Mention that
reference documentation for functions in the API is in the header
files.
(Messaging with the GNU Objective-C runtime, Dynamically
registering methods, Forwarding hook): New sections.

From-SVN: r168200

13 years agoIn gcc/testsuite/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Thu, 23 Dec 2010 05:30:12 +0000 (05:30 +0000)]
In gcc/testsuite/: 2010-12-23 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/testsuite/:
2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>

* obj-c.dg/gnu-api-2-class.m: Test that class_addMethod() returns
NO if the method is already implemented in the class.
* obj-c++.dg/gnu-api-2-class.mm: Same change.

In libobjc/:
2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>

* sendmsg.c (class_addMethod): Return NO if the method already
exists in the class.

From-SVN: r168199

13 years agoA variable with a preinit block requires an intialization function.
Ian Lance Taylor [Thu, 23 Dec 2010 01:35:27 +0000 (01:35 +0000)]
A variable with a preinit block requires an intialization function.

From-SVN: r168198

13 years agoDon't crash building map descriptor for erroneous map.
Ian Lance Taylor [Thu, 23 Dec 2010 01:22:32 +0000 (01:22 +0000)]
Don't crash building map descriptor for erroneous map.

From-SVN: r168197

13 years agoInitialize Lex::lineoff_ field.
Ian Lance Taylor [Thu, 23 Dec 2010 01:01:38 +0000 (01:01 +0000)]
Initialize Lex::lineoff_ field.

From-SVN: r168196

13 years agoFix append with no extra arguments.
Ian Lance Taylor [Thu, 23 Dec 2010 00:55:31 +0000 (00:55 +0000)]
Fix append with no extra arguments.

From-SVN: r168195

13 years agoDon't crash asking for type of invalid const.
Ian Lance Taylor [Thu, 23 Dec 2010 00:40:29 +0000 (00:40 +0000)]
Don't crash asking for type of invalid const.

From-SVN: r168194

13 years agoDaily bump.
GCC Administrator [Thu, 23 Dec 2010 00:19:57 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r168193

13 years agoAvoid infinite recursion checking whether field is exported.
Ian Lance Taylor [Thu, 23 Dec 2010 00:18:50 +0000 (00:18 +0000)]
Avoid infinite recursion checking whether field is exported.

From-SVN: r168191

13 years agoAvoid crash when an unknown object is declared as a type.
Ian Lance Taylor [Thu, 23 Dec 2010 00:07:42 +0000 (00:07 +0000)]
Avoid crash when an unknown object is declared as a type.

From-SVN: r168188

13 years agoDon't crash on invalid call to append.
Ian Lance Taylor [Wed, 22 Dec 2010 23:57:28 +0000 (23:57 +0000)]
Don't crash on invalid call to append.

From-SVN: r168187

13 years agoAvoid infinite recursion looking up method in invalid recursive type.
Ian Lance Taylor [Wed, 22 Dec 2010 23:48:08 +0000 (23:48 +0000)]
Avoid infinite recursion looking up method in invalid recursive type.

From-SVN: r168186

13 years agoDon't crash on index into erroneous map.
Ian Lance Taylor [Wed, 22 Dec 2010 23:24:33 +0000 (23:24 +0000)]
Don't crash on index into erroneous map.

From-SVN: r168185

13 years agoCorrectly handle tuple assignment to _ at global scope.
Ian Lance Taylor [Wed, 22 Dec 2010 23:09:40 +0000 (23:09 +0000)]
Correctly handle tuple assignment to _ at global scope.

From-SVN: r168184

13 years agoIn libobjc/: 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>
Nicola Pero [Wed, 22 Dec 2010 23:05:13 +0000 (23:05 +0000)]
In libobjc/: 2010-12-22 Nicola Pero <nicola.pero@meta-innovation.com>

In libobjc/:
2010-12-22  Nicola Pero  <nicola.pero@meta-innovation.com>

* init.c (duplicate_classes): New.
(__objc_exec_class): Initialize duplicate_classes.
(__objc_create_classes_tree): Ignore classes in the
duplicate_classes table.
(__objc_call_load_callback): Same.
(__objc_init_class): If a duplicate class is found, add it to
duplicate_classes instead of aborting.  Return YES if the class is
not a duplicate, and NO if it is.
* objc-private/runtime.h (__objc_init_class): Updated prototype.

From-SVN: r168183

13 years agoFix PR47019: parameters of a SCoP are SCEV analyzable.
Sebastian Pop [Wed, 22 Dec 2010 21:19:34 +0000 (21:19 +0000)]
Fix PR47019: parameters of a SCoP are SCEV analyzable.

2010-12-22  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/47019
* sese.h (scev_analyzable_p): Parameters of a SCoP are SCEV analyzable.

* gfortran.dg/graphite/pr47019.f: New.

From-SVN: r168182

13 years agoc-aux-info.c (gen_formal_list_for_type): Use prototype_p.
Nathan Froyd [Wed, 22 Dec 2010 19:45:58 +0000 (19:45 +0000)]
c-aux-info.c (gen_formal_list_for_type): Use prototype_p.

gcc/
* c-aux-info.c (gen_formal_list_for_type): Use prototype_p.
* c-decl.c (diagnose_arglist_conflict): Likewise.
(diagnose_mismatched_decls, merge_decls): Likewise.
(c_builtin_function, c_builtin_function_ext_scope): Likewise.
(start_decl, start_function): Likewise.
* c-tree.h (C_DECL_ISNT_PROTOTYPED): Likewise.
* config/ia64/ia64.h (INIT_CUMULATIVE_ARGS): Likewise.
* config/mep/mep.c (mep_validate_interrupt): Likewise.
* config/pa/pa.h (INIT_CUMULATIVE_ARGS): Likewise.
* config/rs6000/rs6000.c (init_cumulative_args): Likewise.
* config/sh/sh.c (sh_init_cumulative_args): Likewise.
* config/sparc/sparc.c (init_cumulative_args): Likewise.
* dwarf2out.c (add_prototyped_attribute): Likewise.
(gen_subprogram_die): Likewise.
* ipa-type-escape.c (check_function_parameter_and_return_types):
Likewise.
(check_call): Likewise.
* tree-ssa.c (useless_type_conversion_p): Likewise.

gcc/ada/
* gcc-interface/utils.c (handle_nonnull_attribute): Use prototype_p.
(handle_sentinel_attribute): Likewise.

gcc/c-family/
* c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
Use prototype_p.

gcc/cp/
* decl.c (decls_match, duplicate_decls): Use prototype_p.
* pt.c (push_template_decl_real): Likewise.

gcc/lto/
* lto-lang.c (handle_nonnull_attribute, handle_sentinel_attribute):
Use prototype_p.

gcc/objc/
* objc-act.c (next_sjlj_build_enter_and_setjmp): Use prototype_p.

From-SVN: r168181

13 years agore PR c++/47003 (ice in stabilize_expr)
Jason Merrill [Wed, 22 Dec 2010 19:23:15 +0000 (14:23 -0500)]
re PR c++/47003 (ice in stabilize_expr)

PR c++/47003
* tree.c (stabilize_expr): Really stabilize scalar glvalues.

From-SVN: r168180

13 years agoparser.c (cp_parser_unary_expression): Call pedwarn for alignof with expression.
Rodrigo Rivas Costa [Wed, 22 Dec 2010 19:23:00 +0000 (19:23 +0000)]
parser.c (cp_parser_unary_expression): Call pedwarn for alignof with expression.

* parser.c (cp_parser_unary_expression): Call pedwarn for alignof
with expression.

From-SVN: r168179

13 years agoDon't crash on array type with erroneous length expression.
Ian Lance Taylor [Wed, 22 Dec 2010 16:47:53 +0000 (16:47 +0000)]
Don't crash on array type with erroneous length expression.

From-SVN: r168176

13 years agoDon't crash on variable initialization from erroneous receive.
Ian Lance Taylor [Wed, 22 Dec 2010 16:37:58 +0000 (16:37 +0000)]
Don't crash on variable initialization from erroneous receive.

From-SVN: r168175

13 years agoDon't crash on erroneous channel send or receive.
Ian Lance Taylor [Wed, 22 Dec 2010 16:27:51 +0000 (16:27 +0000)]
Don't crash on erroneous channel send or receive.

From-SVN: r168174

13 years agoDon't crash if a temporary is not defined due to errors.
Ian Lance Taylor [Wed, 22 Dec 2010 16:21:06 +0000 (16:21 +0000)]
Don't crash if a temporary is not defined due to errors.

From-SVN: r168173

13 years agoMore tweaking of recursive name types when converting to GENERIC.
Ian Lance Taylor [Wed, 22 Dec 2010 16:05:23 +0000 (16:05 +0000)]
More tweaking of recursive name types when converting to GENERIC.

From-SVN: r168172

13 years agoDon't crash if array length is invalid const.
Ian Lance Taylor [Wed, 22 Dec 2010 15:25:23 +0000 (15:25 +0000)]
Don't crash if array length is invalid const.

From-SVN: r168171

13 years agoFix handling of named results for functions which call recover.
Ian Lance Taylor [Wed, 22 Dec 2010 15:10:58 +0000 (15:10 +0000)]
Fix handling of named results for functions which call recover.

From-SVN: r168170

13 years agospu.md ("mov<mode>"): Use nonimmediate_operand predicate for destination operand.
Ulrich Weigand [Wed, 22 Dec 2010 15:09:17 +0000 (15:09 +0000)]
spu.md ("mov<mode>"): Use nonimmediate_operand predicate for destination operand.

* config/spu/spu.md ("mov<mode>"): Use nonimmediate_operand
predicate for destination operand.
* config/spu/spu.c (spu_expand_mov): If move destination is an
invalid subreg, perform move in the subreg's inner mode instead.

From-SVN: r168169

13 years agore PR tree-optimization/45934 (g++.old-deja/g++.other/dtor5.C FAILs with -finline...
Martin Jambor [Wed, 22 Dec 2010 12:56:54 +0000 (13:56 +0100)]
re PR tree-optimization/45934 (g++.old-deja/g++.other/dtor5.C FAILs with -finline-small-functions)

2010-12-22  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/45934
PR tree-optimization/46302
PR tree-optimization/46987
* gimple-fold.c (get_base_binfo_for_type): Removed.
(gimple_get_relevant_ref_binfo): Likewise.
(gimple_fold_obj_type_ref_call): Dumb down to 4.5 functionality,
removed parameter inplace, updated the caller.
* gimple.h (gimple_get_relevant_ref_binfo): Remove declaration.
* ipa-cp.c (ipcp_propagate_types): Do not derive types from constants.
(ipcp_discover_new_direct_edges): Do not do devirtualization based on
constants.
* ipa-prop.c (compute_known_type_jump_func): Use
get_ref_base_and_extent and get_binfo_at_offset instead of
gimple_get_relevant_ref_binfo.
(compute_known_type_jump_func): Likewise.
(update_jump_functions_after_inlining): Do not derive types from
constants.
(try_make_edge_direct_virtual_call): Likewise.
* tree.c (get_binfo_at_offset): Get type from non-artificial fields.

* testsuite/g++.dg/ipa/ipcp-ivi-1.C: Removed.
* testsuite/g++.dg/ipa/ivinline-6.C: Likewise.
* testsuite/g++.dg/otr-fold-1.C: Likewise.
* testsuite/g++.dg/otr-fold-2.C: Likewise.
* testsuite/g++.dg/tree-ssa/pr43411.C: Xfail dump scan.
* testsuite/g++.dg/tree-ssa/pr45605.C: Likewise.
* testsuite/g++.dg/tree-ssa/pr46987.C: New test.

From-SVN: r168168