gcc.git
15 years agoconfigure.ac: Treat gdb as supported on x86_64-darwin.
Tristan Gingold [Mon, 16 Mar 2009 17:02:02 +0000 (17:02 +0000)]
configure.ac: Treat gdb as supported on x86_64-darwin.

        * configure.ac: Treat gdb as supported on x86_64-darwin.
        * configure: Regenerate.

From-SVN: r144887

15 years agore PR tree-optimization/39455 (ICE : in compare_values_warnv, at tree-vrp.c:1073)
Jakub Jelinek [Mon, 16 Mar 2009 16:07:07 +0000 (17:07 +0100)]
re PR tree-optimization/39455 (ICE : in compare_values_warnv, at tree-vrp.c:1073)

PR tree-optimization/39455
* tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
mismatches for POINTER_TYPE_P (type).
(number_of_iterations_le): Likewise.

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

From-SVN: r144885

15 years agopicochip.c: Removed profiling support.
Hariharan Sandanagobalane [Mon, 16 Mar 2009 14:59:45 +0000 (14:59 +0000)]
picochip.c: Removed profiling support.

        * config/picochip/picochip.c: Removed profiling support.
        * config/picochip/picochip.md: Removed profiling instruction.
        * config/picochip/picochip.h: Removed profiling builtin.

From-SVN: r144884

15 years agoconfigure.ac (--with-host-libstdcxx): New option.
Joseph Myers [Mon, 16 Mar 2009 13:23:13 +0000 (13:23 +0000)]
configure.ac (--with-host-libstdcxx): New option.

* configure.ac (--with-host-libstdcxx): New option.
* configure: Regenerate.

gcc/doc:
* doc/install.texi (--with-host-libstdcxx): Document.

From-SVN: r144881

15 years agoconfigure.ac: Detect xulrunner-1.9.
Matthias Klose [Mon, 16 Mar 2009 12:08:23 +0000 (12:08 +0000)]
configure.ac: Detect xulrunner-1.9.

2009-03-16  Matthias Klose  <doko@ubuntu.com>

        * configure.ac: Detect xulrunner-1.9.
        * configure: Regenerate.

From-SVN: r144879

15 years agoDaily bump.
GCC Administrator [Mon, 16 Mar 2009 00:16:42 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r144878

15 years agofaq.xml: Fix link to setup documentation.
Paolo Carlini [Mon, 16 Mar 2009 00:09:04 +0000 (00:09 +0000)]
faq.xml: Fix link to setup documentation.

2009-03-15  Paolo Carlini  <paolo.carlini@oracle.com>

* doc/xml/faq.xml: Fix link to setup documentation.

From-SVN: r144875

15 years agore PR target/34299 ([avr] ICE on function attribute syntax for main())
Anatoly Sokolov [Sun, 15 Mar 2009 13:09:44 +0000 (16:09 +0300)]
re PR target/34299 ([avr] ICE on function attribute syntax for main())

PR target/34299
* config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
generate a warning if the function name does not begin with
"__vector" and the function has either the 'signal' or 'interrupt'
attribute, from here to ...
(avr_declare_function_name): ...here. New function.
* config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
* config/avr/avr-protos.h (avr_declare_function_name): Declare.

From-SVN: r144870

15 years agotype_traits (__add_lvalue_reference_helper, [...]): As an optimization, rewrite condi...
Paolo Carlini [Sun, 15 Mar 2009 00:56:31 +0000 (00:56 +0000)]
type_traits (__add_lvalue_reference_helper, [...]): As an optimization, rewrite condition (avoid is_function).

2009-03-14  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/type_traits (__add_lvalue_reference_helper,
__add_rvalue_reference_helper): As an optimization, rewrite
condition (avoid is_function).

From-SVN: r144868

15 years agoDaily bump.
GCC Administrator [Sun, 15 Mar 2009 00:16:54 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r144866

15 years ago2009-03-13 David Ayers <ayers@fsfe.org>
David Ayers [Sat, 14 Mar 2009 14:41:45 +0000 (14:41 +0000)]
2009-03-13  David Ayers  <ayers@fsfe.org>

* objc/execute/trivial.m. New test.

From-SVN: r144858

15 years agore PR bootstrap/39454 (Bootstrap failure on sparcv9-linux with profiledbootstrap)
Jakub Jelinek [Sat, 14 Mar 2009 08:10:55 +0000 (09:10 +0100)]
re PR bootstrap/39454 (Bootstrap failure on sparcv9-linux with profiledbootstrap)

PR bootstrap/39454
* cse.c (fold_rtx): Don't modify original const_arg1 when
canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
separate variable instead.
* rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
from out of range shift counts.
(num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.

From-SVN: r144857

15 years agoDaily bump.
GCC Administrator [Sat, 14 Mar 2009 00:17:08 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r144855

15 years agox-mingw32 (host-mingw32.o): Replace diagnostic.h with $(DIAGNOSTIC_H).
Catherine Moore [Fri, 13 Mar 2009 17:06:10 +0000 (13:06 -0400)]
x-mingw32 (host-mingw32.o): Replace diagnostic.h with $(DIAGNOSTIC_H).

       gcc/
       *  gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
       diagnostic.h with $(DIAGNOSTIC_H).

From-SVN: r144842

15 years agore PR target/39137 (-mpreferred-stack-boundary=2 causes lots of dynamic realign)
Jack Howarth [Fri, 13 Mar 2009 17:05:08 +0000 (17:05 +0000)]
re PR target/39137 (-mpreferred-stack-boundary=2 causes lots of dynamic realign)

2009-03-13  Jack Howarth  <howarth@bromo.med.uc.edu>

PR target/39137
* testsuite/gcc.target/i386/stackalign/longlong-2.c: Skip on darwin.

From-SVN: r144841

15 years agore PR libstdc++/39405 (std::shared_ptr barfs on incomplete template class that boost...
Paolo Carlini [Fri, 13 Mar 2009 15:01:50 +0000 (15:01 +0000)]
re PR libstdc++/39405 (std::shared_ptr barfs on incomplete template class that boost::shared_ptr accepts)

2009-03-13  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/39405
* testsuite/20_util/shared_ptr/cons/39405.cc: New.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/39405.cc: Likewise.

From-SVN: r144839

15 years agore PR testsuite/39451 (Invalid x86 constraint in gcc.dg/asm-b.c)
H.J. Lu [Fri, 13 Mar 2009 13:24:14 +0000 (13:24 +0000)]
re PR testsuite/39451 (Invalid x86 constraint in gcc.dg/asm-b.c)

2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>

PR testsuite/39451
* gcc.dg/asm-b.c: Use "Q" constraint on %b1/%h1 and "R"
constraint on (%2).

From-SVN: r144834

15 years agotypesizes.cc: Include tweaks.
Benjamin Kosnik [Fri, 13 Mar 2009 05:38:16 +0000 (05:38 +0000)]
typesizes.cc: Include tweaks.

2009-03-12  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/30_threads/condition_variable_any/native_handle/
typesizes.cc: Include tweaks.
* testsuite/30_threads/mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/thread/native_handle/typesizes.cc: Same.
* testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: Same.
* testsuite/30_threads/condition_variable/native_handle/
typesizes.cc: Same.

From-SVN: r144830

15 years agoDaily bump.
GCC Administrator [Fri, 13 Mar 2009 00:16:38 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r144829

15 years agore PR libobjc/27466 (RFE: Support for libobjc equivalent of std::set_unexpected)
David Ayers [Thu, 12 Mar 2009 22:28:15 +0000 (22:28 +0000)]
re PR libobjc/27466 (RFE: Support for libobjc equivalent of std::set_unexpected)

libobjc/

2009-03-12  Richard Frith-Macdonald  <rfm@gnu.org>
    David Ayers  <ayers@fsfe.org>

PR libobjc/27466
* objc/objc-api.h (_objc_unexpected_exception): Declare
new hook.  Update copyright dates.
* exception.c (objc_exception_throw): Use hook.  Update
copyright dates.
* libobjc.def (_objc_unexpected_exception): Export hook.
Update copyright dates.

gcc/testsuite/

2009-03-12  David Ayers  <ayers@fsfe.org>

PR libobjc/27466
* objc/execute/exceptions/handler-1.m. New test.

From-SVN: r144826

15 years agore PR target/39431 (ICE in spill_failure, at reload1.c:2093)
Jakub Jelinek [Thu, 12 Mar 2009 20:45:39 +0000 (21:45 +0100)]
re PR target/39431 (ICE in spill_failure, at reload1.c:2093)

PR target/39431
* config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
predicate.
* config/i386/sync.md (sync_compare_and_swap<mode>,
sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
into a register.
(sync_double_compare_and_swapdi_pic,
sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
cmpxchg8b_pic_memory_operand instead of just memory_operand.

* gcc.target/i386/pr39431.c: New test.

From-SVN: r144825

15 years agore PR target/39445 (failure of SSE2 tests)
H.J. Lu [Thu, 12 Mar 2009 19:56:34 +0000 (19:56 +0000)]
re PR target/39445 (failure of SSE2 tests)

gcc/

2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>

PR target/39445
* config/i386/i386.c (ix86_expand_push): Don't set memory
alignment.

gcc/testsuite/

2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>

PR target/39445
* gcc.target/i386/pr39445.c: New.

* gcc.target/i386/push-1.c: XFAIL.

From-SVN: r144823

15 years agore PR target/39327 (Incorrect addsub/unpck patterns in sse.md)
H.J. Lu [Thu, 12 Mar 2009 17:43:14 +0000 (17:43 +0000)]
re PR target/39327 (Incorrect addsub/unpck patterns in sse.md)

2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>

PR target/39327
* config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
(avx_addsubv4df3): Likewise.
(*avx_addsubv4sf3): Likewise.
(sse3_addsubv4sf3): Likewise.

From-SVN: r144819

15 years ago[multiple changes]
Andrew Haley [Thu, 12 Mar 2009 16:13:19 +0000 (16:13 +0000)]
[multiple changes]

2009-03-11  Andrew Haley  <aph@redhat.com>

* java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Clear
INTERPRETED access modifier.

2009-03-11  Tom Tromey  <tromey@redhat.com>

* link.cc (_Jv_Linker::find_field): Pass the field_type to
_Jv_CheckOrCreateLoadingConstraint, not the class that is
requesting the field.

From-SVN: r144818

15 years agore PR target/38824 (performance regression of sse code from 4.2/4.3)
H.J. Lu [Thu, 12 Mar 2009 16:08:02 +0000 (16:08 +0000)]
re PR target/38824 (performance regression of sse code from 4.2/4.3)

2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>

PR target/38824
* config/i386/i386.md: Compare REGNO on the new peephole2
patterns.

From-SVN: r144817

15 years agore PR debug/39432 (gdb.base/store.exp failures)
Vladimir Makarov [Thu, 12 Mar 2009 14:39:55 +0000 (14:39 +0000)]
re PR debug/39432 (gdb.base/store.exp failures)

2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>

PR debug/39432
* ira-int.h (struct allocno): Fix comment for calls_crossed_num.
* ira-conflicts.c (ira_build_conflicts): Prohibit call used
registers for allocnos created from user-defined variables.

From-SVN: r144812

15 years agore PR target/39181 (complex int arguments cause ICE)
Ulrich Weigand [Thu, 12 Mar 2009 14:00:21 +0000 (14:00 +0000)]
re PR target/39181 (complex int arguments cause ICE)

PR target/39181
* config/spu/spu.c (spu_expand_mov): Handle invalid subregs
of non-integer mode as well.

From-SVN: r144811

15 years ago* MAINTAINERS: Move myself into the write after approval list.
Joern Rennecke [Thu, 12 Mar 2009 12:57:32 +0000 (12:57 +0000)]
* MAINTAINERS:  Move myself into the write after approval list.

From-SVN: r144810

15 years agogimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P for functions for...
Adam Nemet [Thu, 12 Mar 2009 01:02:16 +0000 (01:02 +0000)]
gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P for functions for which the parameter types are...

* gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
for functions for which the parameter types are unknown.

testsuite/
* gcc.dg/inline-33.c: New test.

From-SVN: r144801

15 years agovect-82.c: Combine dg-do and dg-require-effective-target into dg-skip-if.
Nathan Froyd [Thu, 12 Mar 2009 00:54:48 +0000 (00:54 +0000)]
vect-82.c: Combine dg-do and dg-require-effective-target into dg-skip-if.

* gcc.dg/vect/vect-82.c: Combine dg-do and
dg-require-effective-target into dg-skip-if.
* gcc.dg/vect/vect-83.c: Likewise.

From-SVN: r144800

15 years agoDaily bump.
GCC Administrator [Thu, 12 Mar 2009 00:16:57 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r144799

15 years agore PR target/39137 (-mpreferred-stack-boundary=2 causes lots of dynamic realign)
Jakub Jelinek [Wed, 11 Mar 2009 21:12:33 +0000 (22:12 +0100)]
re PR target/39137 (-mpreferred-stack-boundary=2 causes lots of dynamic realign)

PR target/39137
* cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT
macro.
* defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
* config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
* config/i386/i386.c (ix86_local_alignment): For
-m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
long long variables on the stack to avoid dynamic realignment.
Allow the first argument to be a decl rather than type.
* doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.

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

From-SVN: r144792

15 years ago* g++.old-deja/g++.jason/thunk2.C: Skip on SPU.
Ulrich Weigand [Wed, 11 Mar 2009 17:52:06 +0000 (17:52 +0000)]
* g++.old-deja/g++.jason/thunk2.C: Skip on SPU.

From-SVN: r144785

15 years agore PR target/5362 (Undocumented target options)
Nick Clifton [Wed, 11 Mar 2009 16:57:01 +0000 (16:57 +0000)]
re PR target/5362 (Undocumented target options)

        PR target/5362
        * config/mcore/mcore.opt: Remove deprecated m4align and m8align
        options.
        Add description to mno-lsim option.
        * config/mcore/mcore.h: Remove comment about deprecated m4align
        option.
        (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
        * doc/invoke.texi: Add description of mno-lsim and
        mstack-increment options.

From-SVN: r144783

15 years agore PR target/5362 (Undocumented target options)
Nick Clifton [Wed, 11 Mar 2009 16:08:41 +0000 (16:08 +0000)]
re PR target/5362 (Undocumented target options)

        PR target/5362
        * config/fr30/fr30.opt: Document the -mno-lsim option.
        * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
        and -mno-lsim options.

From-SVN: r144780

15 years agofold-const.c (fold_comparison): Only call fold_inf_compare if the mode supports infin...
Ulrich Weigand [Wed, 11 Mar 2009 15:24:00 +0000 (15:24 +0000)]
fold-const.c (fold_comparison): Only call fold_inf_compare if the mode supports infinities.

ChangeLog:

* fold-const.c (fold_comparison): Only call fold_inf_compare
if the mode supports infinities.

testsuite/ChangeLog:

* gcc.c-torture/execute/ieee/inf-3.c: New test.
* gcc.c-torture/execute/ieee/inf-2.c: Fix typo.

From-SVN: r144779

15 years agoshared_ptr.h: Add include guards.
Jonathan Wakely [Wed, 11 Mar 2009 15:18:12 +0000 (15:18 +0000)]
shared_ptr.h: Add include guards.

2009-03-11  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/bits/shared_ptr.h: Add include guards.
* include/tr1/shared_ptr.h: Likewise.

From-SVN: r144778

15 years agoiostream: Fix doxygen link.
Jonathan Wakely [Wed, 11 Mar 2009 15:16:21 +0000 (15:16 +0000)]
iostream: Fix doxygen link.

2009-03-11  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/std/iostream: Fix doxygen link.
* include/bits/forward_list.h: Fix doxygen markup.
* include/ext/vstring.h: Escape backslash in doxygen comment.
* include/bits/basic_string.h: Likewise.

From-SVN: r144777

15 years agoUpdated my email address
Nicola Pero [Wed, 11 Mar 2009 14:40:29 +0000 (14:40 +0000)]
Updated my email address

From-SVN: r144776

15 years agoMove Ada ChangeLog entry to proper place.
Olivier Hainque [Wed, 11 Mar 2009 14:22:30 +0000 (14:22 +0000)]
Move Ada ChangeLog entry to proper place.

From-SVN: r144775

15 years agotrans.c (gnat_to_gnu): In range check processing...
Olivier Hainque [Wed, 11 Mar 2009 14:20:07 +0000 (14:20 +0000)]
trans.c (gnat_to_gnu): In range check processing...

ada/
* gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
check processing, remove unintended TREE_TYPE walk on index type
to get to base type.

testsuite/
* gnat.dg/slice_enum.adb: New test.

From-SVN: r144774

15 years agoMAINTAINERS: Remove myself as auto-vectorizer maintainer.
Dorit Nuzman [Wed, 11 Mar 2009 07:09:15 +0000 (07:09 +0000)]
MAINTAINERS: Remove myself as auto-vectorizer maintainer.

2009-03-11  Dorit Nuzman  <dorit@il.ibm.com>

        * MAINTAINERS: Remove myself as auto-vectorizer maintainer.

From-SVN: r144773

15 years agore PR debug/39086 (ICE in decl_ultimate_origin, at dwarf2out.c:5770 when compiling...
Jason Merrill [Wed, 11 Mar 2009 05:01:30 +0000 (01:01 -0400)]
re PR debug/39086 (ICE in decl_ultimate_origin, at dwarf2out.c:5770 when compiling with -fno-tree-sra)

        PR debug/39086
        * tree-nrv.c (tree_nrv): Don't do this optimization if the front
        end already did.  Notice GIMPLE_CALL modifications of the result.
        Don't copy debug information from an ignored decl or a decl from
        another function.

From-SVN: r144772

15 years agofaq.xml: Fix links to implementation status pages.
Paolo Carlini [Wed, 11 Mar 2009 02:11:08 +0000 (02:11 +0000)]
faq.xml: Fix links to implementation status pages.

2009-03-10  Paolo Carlini  <paolo.carlini@oracle.com>

* doc/xml/faq.xml: Fix links to implementation status pages.

From-SVN: r144771

15 years agocomplex (operator+(const complex<>&, const _Tp&), [...]): Do not assume real() return...
Paolo Carlini [Wed, 11 Mar 2009 01:51:59 +0000 (01:51 +0000)]
complex (operator+(const complex<>&, const _Tp&), [...]): Do not assume real() returns a reference (against DR 387).

2009-03-10  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/complex (operator+(const complex<>&, const _Tp&),
operator+(const _Tp&, const complex<>&),
operator-(const complex<>&, const _Tp&),
operator-(const _Tp&, const complex<>&)): Do not assume real()
returns a reference (against DR 387).
* testsuite/26_numerics/complex/dr387_2.cc: New.

From-SVN: r144770

15 years agoDaily bump.
GCC Administrator [Wed, 11 Mar 2009 00:16:57 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r144768

15 years agoRemove myself as vectorizer maintainer
Dorit Nuzman [Tue, 10 Mar 2009 20:55:06 +0000 (20:55 +0000)]
Remove myself as vectorizer maintainer

From-SVN: r144760

15 years agore PR testsuite/39422 (Failing SPU vectorizer testcases)
Ira Rosen [Tue, 10 Mar 2009 17:29:21 +0000 (17:29 +0000)]
re PR testsuite/39422 (Failing SPU vectorizer testcases)

PR tree-optimization/39422
* gcc.dg/vect/costmodel/spu/costmodel-vect-76b.c: Move
constant array with static initialization to global memory.
* gcc.dg/vect/costmodel/spu/costmodel-vect-76c.c: Likewise.

From-SVN: r144754

15 years agopr39339.c: Bitfield sizes changed to avoid padding.
Hariharan Sandanagobalane [Tue, 10 Mar 2009 16:25:28 +0000 (16:25 +0000)]
pr39339.c: Bitfield sizes changed to avoid padding.

  * gcc.c-torture/execute/pr39339.c: Bitfield sizes changed to avoid padding.

From-SVN: r144752

15 years agore PR middle-end/37850 (infinite recursive call to __mulsc3 when multiplying not...
Richard Guenther [Tue, 10 Mar 2009 15:42:51 +0000 (15:42 +0000)]
re PR middle-end/37850 (infinite recursive call to __mulsc3 when multiplying not-constant complexs)

PR middle-end/37850
* libgcc2.c (__mulMODE3): Use explicit assignments to form the
result.
(__divMODE3): Likewise.

Co-Authored-By: Nathan Froyd <froydnj@codesourcery.com>
From-SVN: r144751

15 years agoMAINTAINERS: Add myself as auto-vectorizer maintainer.
Ira Rosen [Tue, 10 Mar 2009 14:37:15 +0000 (14:37 +0000)]
MAINTAINERS: Add myself as auto-vectorizer maintainer.

2009-03-10  Ira Rosen <irar@il.ibm.com>

* MAINTAINERS: Add myself as auto-vectorizer maintainer.

From-SVN: r144747

15 years ago* libgcc/config/i386/t-cygming: Remove executable property.
Uros Bizjak [Tue, 10 Mar 2009 10:37:33 +0000 (11:37 +0100)]
* libgcc/config/i386/t-cygming: Remove executable property.

From-SVN: r144742

15 years agoDaily bump.
GCC Administrator [Tue, 10 Mar 2009 00:16:38 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r144738

15 years agore PR c++/39371 (Incorrectly rejects switch((unsigned int)boolvar))
Jakub Jelinek [Mon, 9 Mar 2009 19:34:10 +0000 (20:34 +0100)]
re PR c++/39371 (Incorrectly rejects switch((unsigned int)boolvar))

PR c++/39371
* semantics.c (finish_switch_cond): Don't call get_unwidened.
* decl.c (finish_case_label): Pass SWITCH_STMT_TYPE as 3rd argument
instead of TREE_TYPE (cond).

* g++.dg/opt/switch2.C: Add -w to dg-options.
* g++.dg/warn/Wswitch-1.C: Adjust expected warnings.
* g++.dg/warn/switch1.C: New test.
* g++.dg/other/switch3.C: New test.

From-SVN: r144732

15 years agore PR tree-optimization/39394 (ICE in copy_tree_body_r)
Jakub Jelinek [Mon, 9 Mar 2009 14:01:29 +0000 (15:01 +0100)]
re PR tree-optimization/39394 (ICE in copy_tree_body_r)

PR tree-optimization/39394
* gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
DECL_SIZE_UNIT of variable length FIELD_DECLs.

* gcc.c-torture/compile/pr39394.c: New test.

From-SVN: r144727

15 years agorecog.c (verfiy_changes): Disallow renaming of hard regs in inline asms for register...
Andreas Krebbel [Mon, 9 Mar 2009 13:30:19 +0000 (13:30 +0000)]
recog.c (verfiy_changes): Disallow renaming of hard regs in inline asms for register asm ("") declarations.

2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* recog.c (verfiy_changes): Disallow renaming of hard regs in
inline asms for register asm ("") declarations.

2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.target/s390/20090223-1.c: New testcase.

From-SVN: r144726

15 years ago* fold-const.c (fold_unary): Fix comment.
Eric Botcazou [Mon, 9 Mar 2009 12:06:23 +0000 (12:06 +0000)]
* fold-const.c (fold_unary): Fix comment.

From-SVN: r144723

15 years agoFix PR number reference in ChangeLog from 39409 to 39402.
Jerry DeLisle [Mon, 9 Mar 2009 04:57:34 +0000 (04:57 +0000)]
Fix PR number reference in ChangeLog from 39409 to 39402.

From-SVN: r144720

15 years agore PR libfortran/39402 (gfortran 20090306: internal write of 0.0 with F0.3 gives...
Jerry DeLisle [Mon, 9 Mar 2009 04:54:50 +0000 (04:54 +0000)]
re PR libfortran/39402 (gfortran 20090306: internal write of  0.0 with F0.3 gives  **)

2009-03-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/39402
* gfortran.dg/fmt_f0_1.f90: New test.

From-SVN: r144719

15 years agore PR libfortran/39402 (gfortran 20090306: internal write of 0.0 with F0.3 gives...
Jerry DeLisle [Mon, 9 Mar 2009 04:47:51 +0000 (04:47 +0000)]
re PR libfortran/39402 (gfortran 20090306: internal write of  0.0 with F0.3 gives  **)

2009-03-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/39409
* io/write_float.def (output_float): Handle F0.d formatting correctly
for any d when value is 0.0.

From-SVN: r144718

15 years agoDaily bump.
GCC Administrator [Mon, 9 Mar 2009 00:16:46 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r144716

15 years agore PR target/39361 (Many new neon test failures)
Jan Hubicka [Sun, 8 Mar 2009 22:37:26 +0000 (23:37 +0100)]
re PR target/39361 (Many new neon test failures)

PR target/39361
* tree-inline.c (setup_one_parameter): Do replacement of const argument
by constant in SSA form.

From-SVN: r144713

15 years agore PR c++/39060 (ICE with lots of invalid member functions)
H.J. Lu [Sun, 8 Mar 2009 17:29:12 +0000 (17:29 +0000)]
re PR c++/39060 (ICE with lots of invalid member functions)

gcc/cp/

2009-03-08  H.J. Lu  <hongjiu.lu@intel.com>

PR c++/39060
* parser.c (cp_parser_late_parsing_default_args): Continue
the loop when cp_parser_assignment_expression returns
error_mark_node.

gcc/testsuite/

2009-03-08  H.J. Lu  <hongjiu.lu@intel.com>

PR c++/39060
* g++.dg/other/new1.C: Adjusted.
* g++.dg/parse/crash40.C: Likewise.
* g++.dg/parse/defarg12.C: Likewise.
* g++.dg/template/error15.C: Likewise.

* g++.dg/other/pr39060.C: New.

From-SVN: r144710

15 years ago(Add missing PR reference)
Laurent Guerby [Sun, 8 Mar 2009 09:41:17 +0000 (09:41 +0000)]
(Add missing PR reference)

2009-02-25  Laurent GUERBY  <laurent@guerby.net>

PR ada/39221
* a-teioed.adb (Expand): Fix Result overflow.

From-SVN: r144708

15 years agoi386.c (ix86_maybe_switch_abi): Use named constants instead of magic numbers.
Uros Bizjak [Sun, 8 Mar 2009 07:24:32 +0000 (08:24 +0100)]
i386.c (ix86_maybe_switch_abi): Use named constants instead of magic numbers.

* config/i386/i386.c (ix86_maybe_switch_abi): Use named
constants instead of magic numbers.

From-SVN: r144706

15 years agoDaily bump.
GCC Administrator [Sun, 8 Mar 2009 00:16:42 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r144705

15 years agoCorrect filename.
H.J. Lu [Sat, 7 Mar 2009 19:08:02 +0000 (11:08 -0800)]
Correct filename.

From-SVN: r144702

15 years agore PR c++/39367 (ICE at tree-inline.c:1042 with -O)
Jason Merrill [Sat, 7 Mar 2009 16:21:05 +0000 (11:21 -0500)]
re PR c++/39367 (ICE at tree-inline.c:1042 with -O)

        PR c++/39367
        * init.c (build_new_1): Don't use a VLA type.
        (build_vec_init): Handle getting a pointer for BASE.

From-SVN: r144697

15 years agore PR middle-end/38028 (eh failures on spu-elf)
Ulrich Weigand [Sat, 7 Mar 2009 16:02:30 +0000 (16:02 +0000)]
re PR middle-end/38028 (eh failures on spu-elf)

PR middle-end/38028
* function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
determine alignment passed to assign_stack_local.
(assign_parms_unsplit_complex): Likewise.
* except.c (sjlj_build_landing_pads): Likewise.

From-SVN: r144696

15 years agore PR target/37520 (NO_DOLLAR_IN_LABEL should be defined on x86 targets)
H.J. Lu [Sat, 7 Mar 2009 01:47:25 +0000 (01:47 +0000)]
re PR target/37520 (NO_DOLLAR_IN_LABEL should be defined on x86 targets)

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

PR c++/37520
* cp-tree.h: Check NO_DOT_IN_LABEL before NO_DOLLAR_IN_LABEL
when mangling symbols.

From-SVN: r144692

15 years agoDaily bump.
GCC Administrator [Sat, 7 Mar 2009 00:16:35 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r144690

15 years agore PR c++/33492 (Broken diagnostic: 'must_not_throw_expr' not supported by dump_expr)
Paolo Carlini [Fri, 6 Mar 2009 23:52:02 +0000 (23:52 +0000)]
re PR c++/33492 (Broken diagnostic: 'must_not_throw_expr' not supported by dump_expr)

/cp
2009-03-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/33492
* error.c (dump_expr): Don't try to print THROW_EXPRs in full.

/testsuite
2009-03-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/33492
* g++.dg/other/error32.C: New.

From-SVN: r144686

15 years agore PR middle-end/39360 (ICE in referenced_var_lookup, at tree-dfa.c:563)
Jakub Jelinek [Fri, 6 Mar 2009 22:51:28 +0000 (23:51 +0100)]
re PR middle-end/39360 (ICE in referenced_var_lookup, at tree-dfa.c:563)

PR middle-end/39360
* tree-flow.h (add_referenced_var): Return bool instead of void.
* tree-dfa.c (add_referenced_var): Return result of
referenced_var_check_and_insert call.
* tree-inline.c (expand_call_inline): Call add_referenced_var instead
of referenced_var_check_and_insert.

* gcc.c-torture/compile/pr39360.c: New test.

From-SVN: r144683

15 years agore PR debug/39372 (Missing DW_AT_location for constructor static variable)
Jakub Jelinek [Fri, 6 Mar 2009 22:49:39 +0000 (23:49 +0100)]
re PR debug/39372 (Missing DW_AT_location for constructor static variable)

PR debug/39372
* dwarf2out.c (add_abstract_origin_attribute): Return
origin_die.
(gen_variable_die): Emit DW_AT_location on abstract static variable's
DIE, don't emit it if abstract origin already has it.
* tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.

* g++.dg/debug/dwarf2/static-local-var-in-ctor.C: New test.

From-SVN: r144682

15 years agogenpreds.c: (needs_variable): Fix parentheses at variable name detection.
Jan-Benedict Glaw [Fri, 6 Mar 2009 19:13:04 +0000 (19:13 +0000)]
genpreds.c: (needs_variable): Fix parentheses at variable name detection.

* genpreds.c: (needs_variable): Fix parentheses at variable name
detection.
(write_tm_constrs_h): Indent generated code.

From-SVN: r144679

15 years agoFix isr documentation for ARM
Ramana Radhakrishnan [Fri, 6 Mar 2009 11:40:21 +0000 (11:40 +0000)]
Fix isr documentation for ARM

From-SVN: r144668

15 years agore PR debug/39387 (Wrong DW_AT_decl_line on DW_TAG_imported* for using directives...
Jakub Jelinek [Fri, 6 Mar 2009 09:48:25 +0000 (10:48 +0100)]
re PR debug/39387 (Wrong DW_AT_decl_line on DW_TAG_imported* for using directives in C+ functions)

PR debug/39387
* dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
take locus from its DECL_SOURCE_LOCATION instead of input_location.

From-SVN: r144666

15 years agodecl.c (record_builtin_java_type): Use canonicalized integer types.
Alexandre Oliva [Fri, 6 Mar 2009 09:10:46 +0000 (09:10 +0000)]
decl.c (record_builtin_java_type): Use canonicalized integer types.

* decl.c (record_builtin_java_type): Use canonicalized integer
types.

From-SVN: r144664

15 years agosimplify.c (gfc_simplify_transfer): Zero-initialize the buffer.
Alexandre Oliva [Fri, 6 Mar 2009 09:06:51 +0000 (09:06 +0000)]
simplify.c (gfc_simplify_transfer): Zero-initialize the buffer.

* simplify.c (gfc_simplify_transfer): Zero-initialize the
buffer.

From-SVN: r144663

15 years agoDaily bump.
GCC Administrator [Fri, 6 Mar 2009 00:16:51 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r144656

15 years agobfin.c (bfin_discover_loop): When retrying fails, mark the loop as bad.
Bernd Schmidt [Thu, 5 Mar 2009 15:09:22 +0000 (15:09 +0000)]
bfin.c (bfin_discover_loop): When retrying fails, mark the loop as bad.

* config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
the loop as bad.

From-SVN: r144645

15 years agore PR c++/38908 (Unexplained "'<anonymous>' is used uninitialized in this function...
Jason Merrill [Thu, 5 Mar 2009 14:10:07 +0000 (09:10 -0500)]
re PR c++/38908 (Unexplained "'<anonymous>' is used uninitialized in this function" warning in cc1plus -m64)

        PR c++/38908
        * class.c (is_really_empty_class): New fn.
        * cp-tree.h: Declare it.
        * cp-objcp-common.c (cp_expr_size): Use it.

From-SVN: r144643

15 years agore PR debug/39379 (DW_TAG_imported* no longer emitted)
Jakub Jelinek [Thu, 5 Mar 2009 12:50:36 +0000 (13:50 +0100)]
re PR debug/39379 (DW_TAG_imported* no longer emitted)

PR debug/39379
* tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
with blocks containing IMPORTED_DECLs in BLOCK_VARS.

* g++.dg/debug/dwarf2/imported-module-3.C: New test.
* g++.dg/debug/dwarf2/imported-module-4.C: New test.

From-SVN: r144640

15 years agoi386.md (R8_REG, R9_REG): New constants.
Uros Bizjak [Thu, 5 Mar 2009 07:34:16 +0000 (08:34 +0100)]
i386.md (R8_REG, R9_REG): New constants.

* config/i386/i386.md (R8_REG, R9_REG): New constants.
* config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
constants instead of magic numbers.
(HARD_REGNO_CALLER_SAVE_MODE): Ditto.
(QI_REG_P): Ditto.
* config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
(x86_64_ms_abi_int_parameter_registers): Ditto.
(x86_64_int_return_registers): Ditto.
(ix86_expand_call): Ditto for clobbered_registers array.
(ix86_hard_regno_mode_ok): Ditto.
(x86_extended_QIreg_mentioned_p): Ditto.

From-SVN: r144638

15 years agore PR c++/13549 (Problem compiling Boost.Python test)
Jason Merrill [Thu, 5 Mar 2009 02:49:13 +0000 (21:49 -0500)]
re PR c++/13549 (Problem compiling Boost.Python test)

        PR c++/13549
        * semantics.c (perform_koenig_lookup): Handle TEMPLATE_ID_EXPR.
        * parser.c (cp_parser_postfix_expression): Call it for
        TEMPLATE_ID_EXPR.
        * tree.c (is_overloaded_fn): Look through TEMPLATE_ID_EXPR.
        (get_first_fn): Likewise.

From-SVN: r144636

15 years agoFix bugzilla references in ChangeLog for last recent checkins.
Joern Rennecke [Thu, 5 Mar 2009 02:07:26 +0000 (02:07 +0000)]
Fix bugzilla references in ChangeLog for last recent checkins.

From-SVN: r144635

15 years ago* cse.c (cse_insn): Fix loop to stop at VOIDmode.
J"orn Rennecke [Thu, 5 Mar 2009 01:21:13 +0000 (01:21 +0000)]
* cse.c (cse_insn): Fix loop to stop at VOIDmode.

From-SVN: r144634

15 years agoDaily bump.
GCC Administrator [Thu, 5 Mar 2009 00:16:48 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r144633

15 years agocombine.c (gen_lowpart_for_combine): Use omode when generating clobber.
J"orn Rennecke [Thu, 5 Mar 2009 00:16:04 +0000 (00:16 +0000)]
combine.c (gen_lowpart_for_combine): Use omode when generating clobber.

* combine.c (gen_lowpart_for_combine): Use omode when generating
clobber.

From-SVN: r144630

15 years agopredcom-1.C: New test.
Nathan Sidwell [Wed, 4 Mar 2009 23:26:51 +0000 (23:26 +0000)]
predcom-1.C: New test.

2009-03-04  Nathan Sidwell  <nathan@codesourcery.com>

* g++.dg/torture/predcom-1.C: New test.

From-SVN: r144629

15 years agore PR rtl-optimization/39235 (get_simple_loop_desc returns uninitialized memory)
J"orn Rennecke [Wed, 4 Mar 2009 23:22:22 +0000 (23:22 +0000)]
re PR rtl-optimization/39235 (get_simple_loop_desc returns uninitialized memory)

PR39235:
* loop-iv.c (get_simple_loop_desc): Use XCNEW.

From-SVN: r144628

15 years agographite.c (nb_reductions_in_loop): Update simple_iv arguments.
Zdenek Dvorak [Wed, 4 Mar 2009 23:04:03 +0000 (00:04 +0100)]
graphite.c (nb_reductions_in_loop): Update simple_iv arguments.

* graphite.c (nb_reductions_in_loop): Update simple_iv arguments.

From-SVN: r144627

15 years agore PR tree-optimization/39362 (ICE failing to coalesce ab SSA names)
Richard Guenther [Wed, 4 Mar 2009 23:00:25 +0000 (23:00 +0000)]
re PR tree-optimization/39362 (ICE failing to coalesce ab SSA names)

2009-03-04  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/39362
* tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
that occur in abnormal PHIs should be varying.

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

From-SVN: r144626

15 years agoadd DR note
Jason Merrill [Wed, 4 Mar 2009 18:44:24 +0000 (13:44 -0500)]
add DR note

From-SVN: r144619

15 years agore PR c++/9634 ([DR224] Injected class name as qualifier should not make the name...
Jason Merrill [Wed, 4 Mar 2009 18:42:17 +0000 (13:42 -0500)]
re PR c++/9634 ([DR224] Injected class name as qualifier should not make the name dependent)

        PR c++/9634
        PR c++/29469
        PR c++/29607
        * decl.c (make_typename_type): Do look inside currently open classes.
        * parser.c (cp_parser_lookup_name): Likewise.
        (cp_parser_template_name): Likewise.
        * pt.c (dependent_scope_p): New function.
        * cp-tree.h: Declare it.
        * class.c (currently_open_class): Return fast if T isn't a class.

Co-Authored-By: Giovanni Bajo <giovannibajo@gcc.gnu.org>
From-SVN: r144618

15 years agotree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Extend comments.
Zdenek Dvorak [Wed, 4 Mar 2009 17:50:20 +0000 (18:50 +0100)]
tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Extend comments.

* tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
Extend comments.
(simple_iv):  Take loop as an argument instead of statement.
* tree-scalar-evolution.h (simple_iv): Declaration changed.
* tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
to simple_iv.
* tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
Ditto.
* tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
* matrix-reorg.c (analyze_transpose): Ditto.
* tree-data-ref.c (dr_analyze_innermost): Ditto.
* tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
* tree-predcom.c (ref_at_iteration): Ditto.
* tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.

From-SVN: r144615

15 years agore PR testsuite/39357 (gcc.dg/vect/vect-iv-6.c)
Steve Ellcey [Wed, 4 Mar 2009 17:25:16 +0000 (17:25 +0000)]
re PR testsuite/39357 (gcc.dg/vect/vect-iv-6.c)

PR testsuite/39357
* gcc.dg/vect-iv-6.c (dg-require-effective-target): Change from
vect_int to vect_int_mult.

From-SVN: r144614

15 years agore PR tree-optimization/39358 (Wrong aliasing warning with lists)
Richard Guenther [Wed, 4 Mar 2009 12:36:56 +0000 (12:36 +0000)]
re PR tree-optimization/39358 (Wrong aliasing warning with lists)

2009-03-04  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/39358
* tree-ssa-structalias.c (do_sd_constraint): Fix check for
escaped_id and callused_id.
(solve_graph): Likewise.

* g++.dg/warn/Wstrict-aliasing-bogus-escape-2.C: New testcase.
* g++.dg/warn/Wstrict-aliasing-bogus-escape-3.C: Likewise.

From-SVN: r144602

15 years ago* es.po: Update.
Joseph Myers [Wed, 4 Mar 2009 10:48:40 +0000 (10:48 +0000)]
* es.po: Update.

From-SVN: r144600

15 years agore PR tree-optimization/39339 (SRA miscompilation of vte)
Richard Guenther [Wed, 4 Mar 2009 09:02:59 +0000 (09:02 +0000)]
re PR tree-optimization/39339 (SRA miscompilation of vte)

2009-03-04  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/39339
* tree-sra.c (try_instantiate_multiple_fields): Make it
no longer ICE on the above.

* gcc.c-torture/execute/pr39339.c: New testcase.

From-SVN: r144598