OSDN Git Service

pf3gnuchains/gcc-fork.git
13 years agogcc/cp/
froydnj [Tue, 14 Dec 2010 20:31:22 +0000 (20:31 +0000)]
gcc/cp/
PR c++/45330
* cp-tree.h (suggest_alternatives_for): Add location_t parameter.
* name-lookup.c (suggest_alternatives_for): Likewise.  Adjust.
* lex.c (unqualified_name_lookup_error): Adjust call to it.
* semantics.c (qualified_name_lookup_error): Move to...
* error.c (qualified_name_lookup_error): ...here.  Call.
suggest_alternatives_for.

gcc/testsuite/
PR c++/45330
* g++.dg/lookup/suggestions1.C: New test.

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

13 years ago * config.gcc (sparc-*-elf*, sparc-*-rtems*, sparc-*-linux*,
jsm28 [Tue, 14 Dec 2010 20:09:01 +0000 (20:09 +0000)]
* config.gcc (sparc-*-elf*, sparc-*-rtems*, sparc-*-linux*,
sparc-*-netbsdelf*, sparc*-*-solaris2*, sparc-wrs-vxworks,
sparc64-*-elf*, sparc64-*-rtems*, sparc64-*-linux*,
sparc64-*-netbsd*, sparc64-*-openbsd*): Don't use svr4.h.

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

13 years agoDon't crash on erroneous receiver or parameters.
ian [Tue, 14 Dec 2010 19:35:58 +0000 (19:35 +0000)]
Don't crash on erroneous receiver or parameters.

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

13 years agoCorrect handling of undefined name as key in map composite literal.
ian [Tue, 14 Dec 2010 19:27:07 +0000 (19:27 +0000)]
Correct handling of undefined name as key in map composite literal.

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

13 years agoInsert semicolon at EOF if necessary.
ian [Tue, 14 Dec 2010 18:52:09 +0000 (18:52 +0000)]
Insert semicolon at EOF if necessary.

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

13 years agoCorrect protection against recursive types.
ian [Tue, 14 Dec 2010 17:57:20 +0000 (17:57 +0000)]
Correct protection against recursive types.

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

13 years ago2010-12-14 Tobias Burnus <burnus@net-b.de>
burnus [Tue, 14 Dec 2010 17:09:33 +0000 (17:09 +0000)]
2010-12-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46937
        * trans-types.c (create_fn_spec): "."-annotate derived types
        with (proc-)pointer components.

2010-12-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46937
        * gfortran.dg/pointer_intent_4.f90: New.

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

13 years ago * config/arm/arm.c (arm_expand_prologue): Report the static stack
ian [Tue, 14 Dec 2010 16:00:33 +0000 (16:00 +0000)]
* config/arm/arm.c (arm_expand_prologue): Report the static stack
size if -fstack-usage is used.
(thumb1_expand_prologue): Likewise.

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

13 years ago PR debug/46885
jakub [Tue, 14 Dec 2010 14:11:16 +0000 (14:11 +0000)]
PR debug/46885
* tree-ssa-loop-manip.c (canonicalize_loop_ivs): Use gsi_last_bb
instead of gsi_last_nondebug_bb if bump_in_latch.

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

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

13 years ago PR tree-optimization/46909
jakub [Tue, 14 Dec 2010 14:09:59 +0000 (14:09 +0000)]
PR tree-optimization/46909
* gimple-fold.c (and_var_with_comparison_1): Save partial
result even in the is_and case, if both partial results
are the same, return it.
(or_var_with_comparison_1): Use is_or predicate instead of
innercode == TRUTH_OR_EXPR test.  Save partial result
even in the is_or case, if both partial results are the
same, return it.  In the !is_or case when both partial
results are the same, return the partial result instead
of boolean_true_node.

* gcc.c-torture/execute/pr46909-1.c: New test.
* gcc.c-torture/execute/pr46909-2.c: New test.
* gcc.dg/pr46909.c: New test.

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

13 years ago PR fortran/46874
jakub [Tue, 14 Dec 2010 13:59:20 +0000 (13:59 +0000)]
PR fortran/46874
* trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable
dummy variables.

* libgomp.fortran/allocatable6.f90: New test.

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

13 years ago PR fortran/46874
jakub [Tue, 14 Dec 2010 13:56:25 +0000 (13:56 +0000)]
PR fortran/46874
* trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable
dummy variables.

* libgomp.fortran/allocatable6.f90: New test.

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

13 years ago PR middle-end/46667
hubicka [Tue, 14 Dec 2010 13:07:05 +0000 (13:07 +0000)]
PR middle-end/46667
* varasm.c (assemble_start_function): Do not call resolve_unique_section.
* cfgexpand.c (gimple_expand_cfg): Resolve it here.

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

13 years ago PR rtl-optimization/46875
amonakov [Tue, 14 Dec 2010 12:43:47 +0000 (12:43 +0000)]
PR rtl-optimization/46875
* sched-vis.c (print_pattern): Dump "sequence" for ADDR_VECs.
* sel-sched-ir.c (bb_has_removable_jump_to_p): Forbid table jumps.

testsuite:
* gcc.dg/pr46875.c: New.

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

13 years ago * g++.dg/other/first-global.C: Update regexp to match new
hubicka [Tue, 14 Dec 2010 10:57:11 +0000 (10:57 +0000)]
* g++.dg/other/first-global.C: Update regexp to match new
names of ctors.

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

13 years ago * config/h8300/h8300.md (define_split) : Add condition for
kaushikp [Tue, 14 Dec 2010 07:03:36 +0000 (07:03 +0000)]
* config/h8300/h8300.md (define_split) : Add condition for
"and with single_zero" splitter to handle 16-bit const operands.
* config/h8300/h8300.md (define_split) : Add condition for
"ior with single_one" splitter to handle 16-bit const operands.
* config/h8300/h8300.md (define_split) : Add condition for
"xor with single_one" splitter to handle 16-bit const operands.

* testsuite/gcc.dg/h8300-bit-insn-ice.c: New.

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

13 years agoDon't incorrectly parse expression as type switch.
ian [Tue, 14 Dec 2010 05:54:33 +0000 (05:54 +0000)]
Don't incorrectly parse expression as type switch.
Improve error reporting of invalid type assertions.

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

13 years ago * MAINTAINERS: Added myself to MAINTAINERS (write after approval)
kaushikp [Tue, 14 Dec 2010 05:28:02 +0000 (05:28 +0000)]
* MAINTAINERS: Added myself to MAINTAINERS (write after approval)

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

13 years agoBetter error message if malloc gets a SIGSEGV.
ian [Tue, 14 Dec 2010 05:19:51 +0000 (05:19 +0000)]
Better error message if malloc gets a SIGSEGV.

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

13 years agoRelease cache while holding thread lock.
ian [Tue, 14 Dec 2010 05:16:18 +0000 (05:16 +0000)]
Release cache while holding thread lock.

Don't bother to hold thread lock while allocating cache.

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

13 years agoThis time really commit
hubicka [Tue, 14 Dec 2010 01:26:47 +0000 (01:26 +0000)]
This time really commit
PR middle-end/45388
* decl2.c (start_objects): Do not generate collect2 recognicable name
for static ctor.
* ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
(cgraph_build_static_cdtor): ... here.
(build_cdtor): Use cgraph_build_static_cdtor_1.

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

13 years ago * config/m32c/m32c.h (ENDFILE_SPEC, LINK_SPEC, SIZE_TYPE,
jsm28 [Tue, 14 Dec 2010 00:26:29 +0000 (00:26 +0000)]
* config/m32c/m32c.h (ENDFILE_SPEC, LINK_SPEC, SIZE_TYPE,
PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
* config.gcc (m32c-*-rtems*, m32c-*-elf*): Don't use svr4.h.

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

13 years agogcc/
bernds [Tue, 14 Dec 2010 00:23:40 +0000 (00:23 +0000)]
gcc/
PR rtl-optimization/44374
Reapply patch with fixes.
* basic-block.h (enum bb_flags): Add BB_MODIFIED.
* df-core.c (df_set_bb_dirty): Set it.
* ifcvt.c (find_memory): Remove function.
(dead_or_predicable): Use can_move_insns_across.
* df.h (can_move_insns_across): Declare function.
* cfgcleanup.c (block_was_dirty): New static variable.
(flow_find_head_matching_sequence): Test for epilogue notes.
(try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
than df_get_bb_dirty.
(try_head_merge_bb): New static function.
(try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
is set.
* df-problems.c: Include "target.h"
(df_simulate_find_uses): New static function.
(MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
(find_memory, find_memory_store): New static functions.
(can_move_insns_across): New function.
* Makefile.in (df-problems.o): Update dependencies.

gcc/testsuite/
PR rtl-optimization/44374
Reapply patch with fixes.
* gcc.target/arm/headmerge-1.c: New test.
* gcc.target/arm/headmerge-2.c: New test.
* gcc.target/i386/headmerge-1.c: New test.
* gcc.target/i386/headmerge-2.c: New test.

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

13 years agoDaily bump.
gccadmin [Tue, 14 Dec 2010 00:17:44 +0000 (00:17 +0000)]
Daily bump.

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

13 years ago * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
jsm28 [Mon, 13 Dec 2010 23:59:50 +0000 (23:59 +0000)]
* config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
(DBX_REGISTER_NUMBER): Undefine.
* config/xtensa/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
(DBX_REGISTER_NUMBER): Undefine.
* config.gcc (xtensa*-*-elf*, xtensa*-*-linux*): Don't use svr4.h.

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

13 years ago * gospec.c (lang_specific_driver): Add a -o option if not linking
ian [Mon, 13 Dec 2010 23:11:53 +0000 (23:11 +0000)]
* gospec.c (lang_specific_driver): Add a -o option if not linking
and there is no -o option already.

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

13 years ago * de.po: Update.
jsm28 [Mon, 13 Dec 2010 21:49:00 +0000 (21:49 +0000)]
* de.po: Update.

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

13 years ago * de.po, sv.po: Update.
jsm28 [Mon, 13 Dec 2010 21:47:47 +0000 (21:47 +0000)]
* de.po, sv.po: Update.

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

13 years ago PR c++/46873
jason [Mon, 13 Dec 2010 20:46:58 +0000 (20:46 +0000)]
PR c++/46873
PR c++/46877
* semantics.c (build_data_member_initialization): Handle
cv-qualified data member.

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

13 years agofoo
jason [Mon, 13 Dec 2010 20:46:34 +0000 (20:46 +0000)]
foo

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

13 years ago2010-12-13 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 13 Dec 2010 19:44:38 +0000 (19:44 +0000)]
2010-12-13  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46625
        * gdtoa/gdtoaimp.h: Mangle internal functions by
        prefixing them with __quadmath. Don't use gdtoa's strcp(y).
        * gdtoa/g_Qfmt.c (g_Qfmt): Use strcpy instead of strcp.
        * gdtoa/misc.c (strcpy): Renamed from strcp and only use
        if NO_STRING_H is set.
        * quadmath-imp.h (__quadmath_rem_pio2q,
        * __quadmath_kernel_sincosq
        __quadmath_kernel_sinq, __quadmath_kernel_cosq): Added
        __quadmath prefix to internal functions.
        * math/cosq.c (cosq): Ditto.
        * math/sinq.c (cosq): Ditto.
        * math/tanq.c (tanq,__quadmath_kernel_tanq): Ditto.
        * math/rem_pio2q.c (rem_pio2, __quadmath_kernel_rem_pio2):
        * Ditto.
        * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
        * math/cosq_kernel.c (__quadmath_kernel_cosq): Ditto.

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

13 years ago2010-12-13 Janus Weil <janus@gcc.gnu.org>
janus [Mon, 13 Dec 2010 19:17:46 +0000 (19:17 +0000)]
2010-12-13  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46201
* trans-expr.c (gfc_conv_procedure_call): Handle procedure pointer
components called on a dimensionful base object.

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

PR fortran/46201
* gfortran.dg/proc_ptr_comp_27.f90: New.

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

13 years ago PR bootstrap/46650
ian [Mon, 13 Dec 2010 18:34:45 +0000 (18:34 +0000)]
PR bootstrap/46650
* system.h: Include cstring for cxx bootstrap.

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

13 years ago * gcc-interface/decl.c (gnat_to_gnu_entity) <E_General_Access_Type>:
ebotcazou [Mon, 13 Dec 2010 18:10:49 +0000 (18:10 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_General_Access_Type>:
Build a stub DECL for the dummy fat pointer type in the unconstrained
array case.
* gcc-interface/utils.c (update_pointer_to): Set the DECL_ORIGINAL_TYPE
for all the variants in the fat pointer case.

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

13 years ago * gcc-interface/trans.c (can_be_lower_p): New predicate.
ebotcazou [Mon, 13 Dec 2010 17:51:47 +0000 (17:51 +0000)]
* gcc-interface/trans.c (can_be_lower_p): New predicate.
(Loop_Statement_to_gnu): Do not generate the entry condition if we know
that it will be true.

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

13 years agoRemoved testcase that was failing on i386.
asharif [Mon, 13 Dec 2010 17:43:07 +0000 (17:43 +0000)]
Removed testcase that was failing on i386.
* testsuite/gcc.target/i386/max-stack-align.c. Removed testcase.

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

13 years ago PR lto/46879
jakub [Mon, 13 Dec 2010 17:37:20 +0000 (17:37 +0000)]
PR lto/46879
* lto-streamer-out.c (output_gimple_stmt): Never replace first
GIMPLE_DEBUG argument with MEM_REF.

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

13 years ago PR debug/46867
jakub [Mon, 13 Dec 2010 17:36:26 +0000 (17:36 +0000)]
PR debug/46867
* var-tracking.c (emitted_notes, string_pointer_flags): Removed.
(emit_note_insn_var_location): Remove ENABLE_RTL_CHECKING verification.
(vt_emit_notes): Don't initialize and destroy emitted_notes.

* gcc.dg/pr46867.c: New test.

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

13 years ago PR middle-end/45388
hubicka [Mon, 13 Dec 2010 17:29:14 +0000 (17:29 +0000)]
PR middle-end/45388
* decl2.c (start_objects): Do not generate collect2 recognicable name
for static ctor.
* ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
(cgraph_build_static_cdtor): ... here.
(build_cdtor): Use cgraph_build_static_cdtor_1.

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

13 years agogcc/
froydnj [Mon, 13 Dec 2010 16:23:50 +0000 (16:23 +0000)]
gcc/
PR target/46040
* config.gcc (arm*-*-linux-*eabi): Use bpabi-lib.h.
(arm*-*-uclinux*eabi, arm*-*-eabi*): Likewise.

libgcc/
PR target/46040
* config/arm/bpabi.h: Rename to...
* config/arm/bpabi-lib.h: ...this.

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

13 years ago2010-12-13 Janus Weil <janus@gcc.gnu.org>
janus [Mon, 13 Dec 2010 16:16:06 +0000 (16:16 +0000)]
2010-12-13  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46841
* trans-expr.c (gfc_trans_subcomponent_assign): Handle array-valued
procedure pointer components.

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

PR fortran/46841
* gfortran.dg/proc_ptr_comp_26.f90: New.

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

13 years ago * config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate.
ro [Mon, 13 Dec 2010 11:59:22 +0000 (11:59 +0000)]
* config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate.
* config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.

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

13 years ago * gnat.dg/pack9.adb: XFAIL everywhere.
ebotcazou [Mon, 13 Dec 2010 11:35:10 +0000 (11:35 +0000)]
* gnat.dg/pack9.adb: XFAIL everywhere.

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

13 years ago * config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
jsm28 [Mon, 13 Dec 2010 11:28:19 +0000 (11:28 +0000)]
* config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Define.
* config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.

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

13 years ago * config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
jsm28 [Mon, 13 Dec 2010 11:27:28 +0000 (11:27 +0000)]
* config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
Don't use svr4.h.

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

13 years ago * config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
jsm28 [Mon, 13 Dec 2010 11:26:42 +0000 (11:26 +0000)]
* config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Undefine.
* config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Define.
* config.gcc (mn10300-*-*): Don't use svr4.h.

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

13 years ago * config/m68k/linux.h (DBX_REGISTER_NUMBER): Undefine and
jsm28 [Mon, 13 Dec 2010 11:24:59 +0000 (11:24 +0000)]
* config/m68k/linux.h (DBX_REGISTER_NUMBER): Undefine and
redefine.
(SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
* config.gcc (m68k-*-uclinux*, m68k-*-linux*): Don't use svr4.h.

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

13 years ago PR fortran/46884
jakub [Mon, 13 Dec 2010 11:11:22 +0000 (11:11 +0000)]
PR fortran/46884
* symbol.c (gfc_new_charlen): If old_cl is non-NULL, put it
at the ns->old_cl_list spot in the chain rather than at
ns->cl_list.

* gfortran.dg/pr46884.f: New test.

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

13 years agolibobjc:
iains [Mon, 13 Dec 2010 08:36:06 +0000 (08:36 +0000)]
libobjc:

* encoding.c (_darwin_rs6000_special_round_type_align): New.
(darwin_rs6000_special_round_type_align): Adjust to use new routine.

testsuite:

* objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c: Adjust XFAILs.

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

13 years agogcc/ChangeLog:
aoliva [Mon, 13 Dec 2010 03:08:24 +0000 (03:08 +0000)]
gcc/ChangeLog:
PR debug/46576
* jump.c (mark_all_labels): Skip debug insns.
gcc/testsuite/ChangeLog:
PR debug/46576
* gfortran.dg/debug/pr46576.f: New.

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

13 years agogcc/ChangeLog:
aoliva [Mon, 13 Dec 2010 03:08:06 +0000 (03:08 +0000)]
gcc/ChangeLog:
PR debug/46782
* cfgcleanup.c (try_forward_edges): Skip debug insns.
gcc/testsuite/ChangeLog:
PR debug/46782
* gcc.dg/debug/pr46782.c: New.

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

13 years agoDaily bump.
gccadmin [Mon, 13 Dec 2010 00:18:16 +0000 (00:18 +0000)]
Daily bump.

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

13 years ago2010-12-12 Thomas Koenig <tkoenig@gcc.gnu.org>
tkoenig [Sun, 12 Dec 2010 22:03:08 +0000 (22:03 +0000)]
2010-12-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

* dump-parse-tree.c (show_expr):  Add space for parens.

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

13 years ago2010-12-12 Janus Weil <janus@gcc.gnu.org>
janus [Sun, 12 Dec 2010 21:14:13 +0000 (21:14 +0000)]
2010-12-12  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46809
* resolve.c (resolve_select_type): Set the location of the first
argument when generating the EXTENDS_TYPE_OF call.

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

PR fortran/46809
* gfortran.dg/pointer_check_8.f90: New.

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

13 years ago * varasm.c (default_function_section): Check flag_reorder_functions
hubicka [Sun, 12 Dec 2010 19:12:08 +0000 (19:12 +0000)]
* varasm.c (default_function_section): Check flag_reorder_functions
and targetm.have_named_sections.
* config/darwin.c (darwin_function_section): Check
flag_reorder_functions.

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

13 years agoAuthor: Finn Thain <fthain@telegraphics.com.au>
schwab [Sun, 12 Dec 2010 14:03:55 +0000 (14:03 +0000)]
Author: Finn Thain <fthain@telegraphics.com.au>

PR target/46179
* gcc/config/m68k/m68k.c (handle_move_double): Insert calls to
m68k_final_prescan_insn to clean up @TLS operand syntax.

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

13 years ago2010-12-12 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Sun, 12 Dec 2010 11:21:19 +0000 (11:21 +0000)]
2010-12-12  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/46901
* typeck.c (convert_for_assignment): Fix typo in warning message.

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

13 years ago2010-12-12 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Sun, 12 Dec 2010 10:58:08 +0000 (10:58 +0000)]
2010-12-12  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/util/testsuite_abi.cc (check_version): Don't push back
GLIBCXX_3.4.16, unused.

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

13 years agoDaily bump.
gccadmin [Sun, 12 Dec 2010 00:19:02 +0000 (00:19 +0000)]
Daily bump.

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

13 years ago2010-12-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sat, 11 Dec 2010 23:26:07 +0000 (23:26 +0000)]
2010-12-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/46705
* gfortran.dg/continuation_12.f90: New test.

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

13 years ago2010-12-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sat, 11 Dec 2010 23:14:45 +0000 (23:14 +0000)]
2010-12-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/46705
* gfortran.h: New enum gfc_instring.
(gfc_next_char_literal): Update prototype.
* scanner.c (gfc_next_char_literal): Use new enum. Only give missing
'&' warning for INSTRING_WARN. (gfc_next_char): Use new enum.
(gfc_gobble_whitespace): Likewise.
* io.c (next_char): Use new enum. (next_char_not_space): Likewise.
(format_lex): Likewise.
* match.c (gfc_match_parens): Likewise.
(gfc_match_special_char): Likewise. (gfc_match_name_C): Likewise.
* parse.c (next_fixed): Likewise.
* primary.c (match_hollerith_constant): Likewise.
(next_string_char): Likewise.

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

13 years ago2010-12-11 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 11 Dec 2010 22:04:06 +0000 (22:04 +0000)]
2010-12-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46370
        * primary.c (gfc_match_varspec): Pass information about
        * codimension
        to gfc_match_array_ref also for BT_CLASS.
        * resolve.c (resolve_procedure): Correct check for C612.

2010-12-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46370
        * gfortran.dg/coarray_14.f90: New.

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

13 years ago2010-12-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sat, 11 Dec 2010 20:09:59 +0000 (20:09 +0000)]
2010-12-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/46842
* gfortran.dg/array_function_6.f90: New test.

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

13 years ago2010-12-11 Mikael Morin <mikael@gcc.gnu.org>
jvdelisle [Sat, 11 Dec 2010 20:05:20 +0000 (20:05 +0000)]
2010-12-11  Mikael Morin   <mikael@gcc.gnu.org>
    Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/46842
* trans-array.c (dim_ok): New helper function.
(gfc_conv_expr_descriptor): Use new helper function to check
function array is full.

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

13 years agoIn libobjc/:
nicola [Sat, 11 Dec 2010 19:43:21 +0000 (19:43 +0000)]
In libobjc/:
2010-12-11  Nicola Pero  <nicola.pero@meta-innovation.com>

        * sendmsg.c (selector_resolveClassMethod): New.
        (selector_resolveInstanceMethod): New.
        (__objc_resolve_class_method): New.
        (__objc_resolve_instance_method): New.
        (get_imp): Call __objc_resolve_class_method or
        __objc_resolve_instance_method at the appropriate time.
        (objc_msg_lookup): Same.
        (class_getClassMethod): Same.
        (class_getInstanceMethod): Same.
        (__objc_init_dispatch_tables): Initialize
        selector_resolveClassMethod and selector_resolveInstanceMethod.
        * objc/runtime.h: Updated documentation of class_getClassMethod,
        class_getInstanceMethod and class_getMethodImplementation.

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

        * objc.dg/gnu-api-2-resolve-method.m: New.
        * obj-c++.dg/gnu-api-2-resolve-method.mm: New.

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

13 years ago2010-12-11 Nicola Pero <nicola.pero@meta-innovation.com>
nicola [Sat, 11 Dec 2010 14:03:38 +0000 (14:03 +0000)]
2010-12-11  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc-private/module-abi-8.h (struct objc_symtab): Updated
description of sel_ref_cnt and refs.
* objc/deprecated/struct_objc_symtab.h (objc_symtab): Same change.

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

13 years agoAdded testcase that fails when stack alignment is incorrectly capped.
asharif [Sat, 11 Dec 2010 01:45:10 +0000 (01:45 +0000)]
Added testcase that fails when stack alignment is incorrectly capped.

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

13 years ago * gcc.dg/funcorder.c: Remove XFAIL for hppa*64*-*-*.
danglin [Sat, 11 Dec 2010 01:23:43 +0000 (01:23 +0000)]
* gcc.dg/funcorder.c: Remove XFAIL for hppa*64*-*-*.

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

13 years agoDaily bump.
gccadmin [Sat, 11 Dec 2010 00:18:48 +0000 (00:18 +0000)]
Daily bump.

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

13 years ago2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com>
nicola [Fri, 10 Dec 2010 20:22:37 +0000 (20:22 +0000)]
2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/fobjc-std-1.m: Updated to test that class extensions
produce an error with -fobjc-std=objc1.
* obj-c++.dg/fobjc-std-1.mm: Same change.

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

13 years ago PR c++/46001
jakub [Fri, 10 Dec 2010 19:41:48 +0000 (19:41 +0000)]
PR c++/46001
* decl.c (record_builtin_java_type): Call build_distinct_type_copy
on build_nonstandard_integer_type result for __java_* types.

* g++.dg/diagnostic/bitfld1.C: New test.

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

13 years agoFix PR43023: fuse_partitions_with_similar_memory_accesses.
spop [Fri, 10 Dec 2010 19:16:48 +0000 (19:16 +0000)]
Fix PR43023: fuse_partitions_with_similar_memory_accesses.

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

PR tree-optimization/43023
* tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p):
Removed.
(stores_zero_from_loop): Call stmt_stores_zero.
* tree-data-ref.h (stmt_stores_zero): New.
* tree-loop-distribution.c (generate_memset_zero): Do not return a
boolean.  Call gcc_assert on stride_of_unit_type_p.
(generate_builtin): Call stmt_stores_zero.
(rdg_flag_all_uses): Removed.
(rdg_flag_similar_memory_accesses): Removed.
(build_rdg_partition_for_component): Removed parameter
other_stores.  Removed call to rdg_flag_similar_memory_accesses.
(can_generate_builtin): New.
(similar_memory_accesses): New.
(fuse_partitions_with_similar_memory_accesses): New.
(rdg_build_partitions): Call
fuse_partitions_with_similar_memory_accesses.

* gfortran.dg/ldist-1.f90: Adjust pattern.
* gfortran.dg/ldist-pr43023.f90: New.

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

13 years ago * configure.ac: Use i386/t-crtstuff on i?86-*-solaris2* if
ro [Fri, 10 Dec 2010 17:03:53 +0000 (17:03 +0000)]
* configure.ac: Use i386/t-crtstuff on i?86-*-solaris2* if
appropriate.
* configure: Regenerate.

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

13 years ago PR rtl-optimization/46804
jakub [Fri, 10 Dec 2010 16:40:51 +0000 (16:40 +0000)]
PR rtl-optimization/46804
* regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
on the setter of src_reg rather than on insn.  If it is
equal to the setter's original SET_SRC, replace it with its
zero or sign extension instead of dropping it.

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

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

13 years ago * testsuite/lib/libstdc++.exp (v3-build_support): Delete
ro [Fri, 10 Dec 2010 16:24:48 +0000 (16:24 +0000)]
* testsuite/lib/libstdc++.exp (v3-build_support): Delete
libtestc++.a before creation.

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

13 years ago * decl.c (grokmethod): Test DECL_CLASS_SCOPE_P.
froydnj [Fri, 10 Dec 2010 16:06:30 +0000 (16:06 +0000)]
* decl.c (grokmethod): Test DECL_CLASS_SCOPE_P.
* error.c (dump_decl): Test DECL_FILE_SCOPE_P.

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

13 years ago2010-12-10 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 10 Dec 2010 15:53:58 +0000 (15:53 +0000)]
2010-12-10  Richard Guenther  <rguenther@suse.de>

PR lto/46808
* lto-symtab.c (lto_symtab_merge_decls_2): Avoid type warnings
after errors.
(lto_symtab_merge_decls_1): Adjust.

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

13 years ago PR bootstrap/46819
ian [Fri, 10 Dec 2010 14:47:12 +0000 (14:47 +0000)]
PR bootstrap/46819
* configure.ac: For --disable-libgcj clear libgcj_saved.
* configure: Rebuild.

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

13 years agogcc/ChangeLog:
davek [Fri, 10 Dec 2010 14:28:58 +0000 (14:28 +0000)]
gcc/ChangeLog:

PR middle-end/46674
PR lto/43157
* target.def (mangle_assembler_name): New target asm_out hook.
* targhooks.c (default_mangle_assembler_name): Add default hook
implementation.
* targhooks.h (default_mangle_assembler_name): Add prototype.
* lto-symtab.c (lto_symtab_register_decl): Use new hook when
processing DECL_ASSEMBLER_NAMEs for lto symtabs.
(lto_symtab_get_resolution): Likewise.
(lto_cgraph_replace_node): Likewise.
(lto_symtab_prevailing_decl): Likewise.
* lto-streamer-out.c (write_symbol): Likewise.
* doc/tm.texi.in (TARGET_MANGLE_ASSEMBLER_NAME): Add @hook directive.
* doc/tm.texi: Regenerate.
* config/i386/cygming.h (TARGET_MANGLE_ASSEMBLER_NAME): Define to
point at i386_pe_mangle_assembler_name.
* config/i386/winnt.c (i386_pe_mangle_assembler_name): New function.
* config/i386/i386-protos.h (i386_pe_mangle_assembler_name): Add
prototype.

lto-plugin/ChangeLog:

PR middle-end/46674
PR lto/43157
* configure.ac (SYM_STYLE): Don't AC_DEFINE.
* lto-plugin.c (sym_style): Don't use it; default to ss_none.
* configure: Regenerate.
* config.h.in: Likewise.

gcc/testsuite/ChangeLog:

PR middle-end/46674
PR lto/43157
* gcc.dg/pr43157.c: New file.

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

13 years agogcc/
froydnj [Fri, 10 Dec 2010 14:20:26 +0000 (14:20 +0000)]
gcc/
* c-typeck.c (readonly_error): Delete.

gcc/c-family/
* c-common.h (readonly_error): Declare.
* c-common.c (readonly_error): Define.

gcc/cp/
* cp-tree.h (readonly_error_kind): Delete.
(readonly_error): Rename to...
(cxx_readonly_error): ...this.  Change second argument to be an
enum lvalue_use.
* semantics.c (finish_asm_stmt): Call cxx_readonly_error.
* typeck.c (cp_build_unary_op): Likewise.
(cp_build_modify_expr): Likewise.
* typeck2.c (readonly_error): Rename to...
(cxx_readonly_error): ...this.  Delegate to readonly_error for
most cases.

gcc/testsuite/
* gcc.dg/dfp/struct-union.c: Adjust.
* gcc.dg/lvalue-2.c: Adjust.
* gcc.dg/pr21419.c: Adjust.
* gcc.dg/qual-component-1.c: Adjust.
* g++.dg/other/const1.C: Adjust.

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

13 years ago PR rtl-optimization/46865
jakub [Fri, 10 Dec 2010 12:43:45 +0000 (12:43 +0000)]
PR rtl-optimization/46865
* rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
ASM_OPERANDS and ASM_INPUT if integers are different,
call locator_eq.
* jump.c (rtx_renumbered_equal_p): Likewise.

* gcc.target/i386/pr46865-1.c: New test.
* gcc.target/i386/pr46865-2.c: New test.

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

13 years ago PR tree-optimization/46864
jakub [Fri, 10 Dec 2010 12:42:12 +0000 (12:42 +0000)]
PR tree-optimization/46864
* tree-ssa-loop-im.c (loop_suitable_for_sm): Return false even
when there are EDGE_EH exit edges.

* g++.dg/opt/pr46864.C: New test.

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

13 years ago/
burnus [Fri, 10 Dec 2010 10:55:56 +0000 (10:55 +0000)]
/
2010-12-10  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46540
        * configure.ac: Add --disable-libquadmath and
        --disable-libquadmath-support.
        * configure: Regenerate.
gcc/
2010-12-10  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46540
        * configure.ac: Handle --disable-libquadmath-support.
        * doc/install.texi: Document --disable-libquadmath and
        --disable-libquadmath-support
        * configure: Regenerate.
        * config.in: Regenerate.

gcc/fortran/
2010-12-10  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46540
        * trans-types.c (gfc_init_kinds): Handle
        --disable-libquadmath-support.

libgfortran/
2010-12-10  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46540
        * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Honour
        --disable-libquadmath-support.
        * configure.ac: Handle --disable-libquadmath-support.
        * configure: Regenerate.

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

13 years agodsymutil enabled for Fortran.
iains [Fri, 10 Dec 2010 10:40:43 +0000 (10:40 +0000)]
dsymutil enabled for Fortran.

2010-12-10  Jack Howarth  <howarth@bromo.med.uc.edu>
    Iain Sandoe  <iains@gcc.gnu.org>

PR 43751/target

gcc:
* config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types.

testsuite:

* lib/prune.exp: Prune dsymutil warnings.

libstadc++-v3:

* testsuite/lib/prune.exp: Prune dsymutil warnings.

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

13 years agogcc:
iains [Fri, 10 Dec 2010 10:13:36 +0000 (10:13 +0000)]
gcc:

* config/rs6000/rs6000.c
(rs6000_darwin64_record_arg_advance_recurse): Name register increment
explicitly.  (rs6000_darwin64_record_arg_recurse): Make sure we split
long doubles when we run out of regs.   Also flag that this requires
stack and therefore cannot be returned by value.
(rs6000_darwin64_record_arg): Update comment.
(rs6000_function_value): Likewise.

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

13 years agoupdate boehm-gc for powerpc m64 darwin.
iains [Fri, 10 Dec 2010 10:09:10 +0000 (10:09 +0000)]
update boehm-gc for powerpc m64 darwin.

boehm-gc:

* powerpc_darwin_mach_dep.s:  Update for m64.  Add eh frames.
Do not build or use the picsymbol stub for Darwin >= 9.
* tests/test.c (reverse_test):  Modify count for ppc64-darwin.
* pthread_support.c (GC_get_thread_stack_base): Correct a debug
statement.

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

13 years agoIn gcc/:
nicola [Fri, 10 Dec 2010 09:38:52 +0000 (09:38 +0000)]
In gcc/:
2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>

* c-parser.c (c_parser_objc_class_definition): Recognize
Objective-C 2.0 class extensions.

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

* parser.c (cp_parser_objc_superclass_or_category): Recognize
Objective-C 2.0 class extensions.  Added iface_p and
is_class_extension arguments.
(cp_parser_objc_class_interface): Updated call to
cp_parser_objc_superclass_or_category.
(cp_parser_objc_class_implementation): Same change.

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

* objc-act.c (objc_in_class_extension): New.
(objc_start_category_interface): If -fobjc-std=objc1
was specified, produce an error if a class extension is used.
(objc_finish_interface): Reset objc_in_class_extension to false.
(objc_add_property_declaration): Allow a class extension to extend
readonly properties in the main @interface to be readwrite.
(start_class): Added code to deal with class extensions.  In that
case, return the existing interface after adding any additional
protocols to it and setting objc_in_class_extension to true.
(continue_class): If in a class extension, do not generate the
instance variable template.

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

* objc.dg/class-extension-1.m: New.
* objc.dg/class-extension-2.m: New.
* objc.dg/class-extension-3.m: New.
* objc.dg/property/at-property-26.m: New.
* objc.dg/property/at-property-27.m: New.
* objc.dg/property/at-property-28.m: New.
* obj-c++.dg/class-extension-1.mm: New.
* obj-c++.dg/class-extension-2.mm: New.
* obj-c++.dg/class-extension-3.mm: New.
* obj-c++.dg/property/at-property-26.mm: New.
* obj-c++.dg/property/at-property-27.mm: New.
* obj-c++.dg/property/at-property-28.mm: New.

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

13 years agogcc:
iains [Fri, 10 Dec 2010 09:14:55 +0000 (09:14 +0000)]
gcc:

* config/darwin.c: Remove c-tree.h and c-lang.h
* config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.

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

13 years ago PR target/46881
amylaar [Fri, 10 Dec 2010 03:58:30 +0000 (03:58 +0000)]
PR target/46881
* doc/tm.texi: Regenerate.
* target.def: Fix "preferred" spelling.  Refer to rclass by its
exact name.
* config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
to rclass.

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

13 years ago * call.c (print_conversion_rejection): Indent messages two spaces.
froydnj [Fri, 10 Dec 2010 01:32:32 +0000 (01:32 +0000)]
* call.c (print_conversion_rejection): Indent messages two spaces.

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

13 years ago* config/pdp11/pdp11-protos.h (output_move_double,
pkoning [Fri, 10 Dec 2010 01:31:08 +0000 (01:31 +0000)]
* config/pdp11/pdp11-protos.h (output_move_double,
output_move_quad): Delete.
(output_move_multiple, pdp11_expand_operands): New functions.
(pdp11_action, pdp11_partorder): New enums.
* config/pdp11/pdp11.md (movdi, movsi, movdf, movsf): Use
output_move_multiple.
(adddi3, subdi3, negdi2): New patterns.
(addsi3, subsi3, negsi2): Use pdp11_expand_operands.
(abshi2): Delete.
(neghi2, negqi2): Use PDPint iterator.
* config/pdp11/pdp11.c (find_addr_reg, output_move_double,
output_move_quad): Delete.
(pdp11_expand_operands, output_move_multiple): New functions.

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

13 years ago * config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
jsm28 [Fri, 10 Dec 2010 01:03:33 +0000 (01:03 +0000)]
* config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
* config.gcc (vax-*-linux*): Don't use svr4.h.

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

13 years agoDaily bump.
gccadmin [Fri, 10 Dec 2010 00:18:34 +0000 (00:18 +0000)]
Daily bump.

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

13 years agoAvoid some crashes on erroneous programs.
ian [Thu, 9 Dec 2010 23:56:47 +0000 (23:56 +0000)]
Avoid some crashes on erroneous programs.

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

13 years ago PR bootstrap/46812
ian [Thu, 9 Dec 2010 22:17:25 +0000 (22:17 +0000)]
PR bootstrap/46812
Add explicit -I . when building libgo.

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

13 years ago PR target/46057
danglin [Thu, 9 Dec 2010 22:15:32 +0000 (22:15 +0000)]
PR target/46057
* gcc.dg/torture/stackalign/nested-1.c: Skip on hppa*-*-hpux*.
* gcc.dg/torture/stackalign/vararg-1.c: Likewise.
* gcc.dg/torture/stackalign/nested-2.c: Likewise.
* gcc.dg/torture/stackalign/vararg-2.c: Likewise.
* gcc.dg/torture/stackalign/nested-3.c: Likewise.
* gcc.dg/torture/stackalign/nested-4.c: Likewise.
* gcc.dg/torture/stackalign/global-1.c: Likewise.
* gcc.dg/torture/stackalign/ret-struct-1.c: Likewise.
* gcc.dg/torture/stackalign/inline-1.c: Likewise.
* gcc.dg/torture/stackalign/inline-2.c: Likewise.
* gcc.dg/torture/stackalign/struct-1.c: Likewise.
* gcc.dg/torture/stackalign/pr16660-1.c: Likewise.
* gcc.dg/torture/stackalign/alloca-1.c: Likewise.
* g++.dg/torture/stackalign/throw-1.C: Likewise.
* g++.dg/torture/stackalign/throw-2.C: Likewise.
* g++.dg/torture/stackalign/throw-4.C: Likewise.
* g++.dg/torture/stackalign/eh-inline-1.C: Likewise.
* g++.dg/torture/stackalign/eh-inline-2.C: Likewise.
* g++.dg/torture/stackalign/eh-vararg-1.C: Likewise.
* g++.dg/torture/stackalign/eh-vararg-2.C: Likewise.
* g++.dg/torture/stackalign/eh-alloca-1.C: Likewise.
* g++.dg/torture/stackalign/eh-global-1.C: Likewise.

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

13 years agogcc/
froydnj [Thu, 9 Dec 2010 21:50:23 +0000 (21:50 +0000)]
gcc/
* c-typeck.c (build_indirect_ref): Call invalid_indirection_error.

gcc/c-family/
* c-common.h (invalid_indirection_error): Declare.
* c-common.c (invalid_indirection_error): Define.

gcc/cp/
* typeck.c (cp_build_indirect_ref): Call invalid_indirection_error.

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

13 years ago * typeck.c (composite_pointer_error): New function.
froydnj [Thu, 9 Dec 2010 21:47:12 +0000 (21:47 +0000)]
* typeck.c (composite_pointer_error): New function.
(composite_pointer_type_r, composite_pointer_type): Call it.

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

13 years ago * doc/extend.texi (Attribute Syntax): Correct description of
jsm28 [Thu, 9 Dec 2010 21:22:09 +0000 (21:22 +0000)]
* doc/extend.texi (Attribute Syntax): Correct description of
attributes in pointer declarators.

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

13 years agoFix typo.
mrs [Thu, 9 Dec 2010 19:03:30 +0000 (19:03 +0000)]
Fix typo.

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