gcc.git
13 years agore PR fortran/47174 (libquadmath: Build now depends on makeinfo)
Ralf Wildenhues [Thu, 6 Jan 2011 22:09:41 +0000 (22:09 +0000)]
re PR fortran/47174 (libquadmath: Build now depends on makeinfo)

Fix PR fortran/47174

libquadmath/:
PR fortran/47174
* Makefile.am (libquadmath.info): Unconditionally override
target, not only if BUILD_LIBQUADMATH.
* Makefile.in: Regenerate.
* configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override option to
avoid warning from automake.

From-SVN: r168555

13 years agore PR fortran/47195 (New Fortran test failures)
Daniel Franke [Thu, 6 Jan 2011 21:42:53 +0000 (16:42 -0500)]
re PR fortran/47195 (New Fortran test failures)

2011-01-06  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/47195
* gfortran.dg/interface_33.f90: Fixed dg-error declarations.
* gfortran.dg/defined_operators_1.f90: Split the subroutine
from the interface of functions to not hide the errors that
shall be tested.

From-SVN: r168554

13 years agore PR target/43309 (amd64 TLS IE code sequence on Solaris 2/x86 violates spec)
Rainer Orth [Thu, 6 Jan 2011 19:44:32 +0000 (19:44 +0000)]
re PR target/43309 (amd64 TLS IE code sequence on Solaris 2/x86 violates spec)

PR target/43309
* config/i386/i386.c (legitimize_tls_address)
<TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
* config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
(tls_initial_exec_64_sun): New pattern.

From-SVN: r168553

13 years agoinvoke.texi (Overall Options): Improve wording and markup of the description of ...
Gerald Pfeifer [Thu, 6 Jan 2011 19:37:01 +0000 (19:37 +0000)]
invoke.texi (Overall Options): Improve wording and markup of the description of -wrapper.

* doc/invoke.texi (Overall Options): Improve wording and markup
of the description of -wrapper.

From-SVN: r168552

13 years agosol2.opt (G, [...]): New Driver options.
Joseph Myers [Thu, 6 Jan 2011 19:01:28 +0000 (19:01 +0000)]
sol2.opt (G, [...]): New Driver options.

* config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
rdynamic, threads): New Driver options.

From-SVN: r168551

13 years agore PR target/38118 (gcc emits non-TLS data as TLS on Solaris 11/SPARC)
Rainer Orth [Thu, 6 Jan 2011 19:00:10 +0000 (19:00 +0000)]
re PR target/38118 (gcc emits non-TLS data as TLS on Solaris 11/SPARC)

PR target/38118
* config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
if coming from .tdata.
* config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.

From-SVN: r168550

13 years agojni.exp (gcj_jni_get_cxxflags_invocation): Add -shared-libgcc to cxxflags for *-...
Rainer Orth [Thu, 6 Jan 2011 18:56:58 +0000 (18:56 +0000)]
jni.exp (gcj_jni_get_cxxflags_invocation): Add -shared-libgcc to cxxflags for *-*-solaris*.

* testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation):
Add -shared-libgcc to cxxflags for *-*-solaris*.
Remove -lsocket.

From-SVN: r168549

13 years agore PR lto/47188 (Undefined reference errors when combining IR and non-IR object files)
Jan Hubicka [Thu, 6 Jan 2011 18:50:20 +0000 (19:50 +0100)]
re PR lto/47188 (Undefined reference errors when combining IR and non-IR object files)

PR lto/47188
* collect2.c (main): Do not enable LTOmode when plugin is active.
* testsuite/gcc.dg/lto/pr47188_0.c: New testcase.
* testsuite/gcc.dg/lto/pr47188_1.c: New testcase.

From-SVN: r168548

13 years agore PR other/45915 (Check for gnu_unique_object in ld.so in gcc/configure.ac is broken...
Rainer Orth [Thu, 6 Jan 2011 18:29:39 +0000 (18:29 +0000)]
re PR other/45915 (Check for gnu_unique_object in ld.so in gcc/configure.ac is broken for non-glibc ldd)

PR other/45915
* configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
--version output if supported.
* configure: Regenerate.

From-SVN: r168546

13 years agore PR fortran/33117 (Improve error message for generic interface with subroutines...
Daniel Franke [Thu, 6 Jan 2011 16:08:24 +0000 (11:08 -0500)]
re PR fortran/33117 (Improve error message for generic interface with subroutines & functions)

gcc/fortran/:
2011-01-06  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/33117
PR fortran/46478
* parse.c (parse_interface): Remove check for procedure types.
* interface.c (check_interface0): Verify that procedures are
either all SUBROUTINEs or all FUNCTIONs.

gcc/testsuite/:
2011-01-06  Daniel Franke  <franke.daniel@gmail.com>

PR fortran/33117
PR fortran/46478
* gfortran.dg/interface_33.f90: New test.

From-SVN: r168542

13 years agolinux-android.opt (tno-android-cc, [...]): New Driver options.
Joseph Myers [Thu, 6 Jan 2011 13:04:59 +0000 (13:04 +0000)]
linux-android.opt (tno-android-cc, [...]): New Driver options.

* config/linux-android.opt (tno-android-cc, tno-android-ld): New
Driver options.

From-SVN: r168538

13 years agore PR c/47150 (ICE in gimplify_expr at gimplify.c)
Jakub Jelinek [Thu, 6 Jan 2011 10:37:02 +0000 (11:37 +0100)]
re PR c/47150 (ICE in gimplify_expr at gimplify.c)

PR c/47150
* c-convert.c (convert): When converting a complex expression
other than COMPLEX_EXPR to a different complex type, ensure
c_save_expr is called instead of save_expr, unless in_late_binary_op.
* c-typeck.c (convert_for_assignment): Set in_late_binary_op also
when converting COMPLEX_TYPE.

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

From-SVN: r168537

13 years agore PR libstdc++/47185 (UB in TR1 and C++0x placeholders and non conforming implementa...
Paolo Carlini [Thu, 6 Jan 2011 10:14:37 +0000 (10:14 +0000)]
re PR libstdc++/47185 (UB in TR1 and C++0x placeholders and non conforming implementation)

2011-01-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/47185
* src/placeholders.cc: New.
* src/Makefile.am: Adjust.
* src/Makefile.in: Regenerate.
* include/std/functional (placeholders::_1, _2, ..., _29): Declare
extern.
* config/abi/pre/gnu.ver: Export.

From-SVN: r168536

13 years agore PR tree-optimization/47139 (ice in process_use, at tree-vect-stmts.c:290)
Ira Rosen [Thu, 6 Jan 2011 07:34:24 +0000 (07:34 +0000)]
re PR tree-optimization/47139 (ice in process_use, at tree-vect-stmts.c:290)

        PR tree-optimization/47139
        * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
        only the last reduction value is used outside the loop. Update
        documentation.

From-SVN: r168535

13 years agoFix order in which recursive structs are converted to GENERIC.
Ian Lance Taylor [Thu, 6 Jan 2011 01:35:19 +0000 (01:35 +0000)]
Fix order in which recursive structs are converted to GENERIC.

From-SVN: r168534

13 years agoDaily bump.
GCC Administrator [Thu, 6 Jan 2011 00:19:36 +0000 (00:19 +0000)]
Daily bump.

From-SVN: r168533

13 years agortems.opt: New.
Joseph Myers [Thu, 6 Jan 2011 00:07:32 +0000 (00:07 +0000)]
rtems.opt: New.

* config/rtems.opt: New.
* config.gcc (*-*-rtems*): Use rtems.opt.

From-SVN: r168529

13 years agosafe_base.h (_Safe_iterator_base::_M_unlink): New.
François Dumont [Wed, 5 Jan 2011 20:52:36 +0000 (21:52 +0100)]
safe_base.h (_Safe_iterator_base::_M_unlink): New.

2011-01-05  François Dumont  <francois.cppdevs@free.fr>

        * include/debug/safe_base.h (_Safe_iterator_base::_M_unlink): New.
        * include/src/debug.cc: Use latter
        * include/debug/forward_list (forward_list<>::_M_swap):  Fix to
        correctly handle before_begin iterators.
        * testsuite/23_containers/forward_list/debug/swap.cc: Remove now
        useless _GLIBCXX_DEBUG checks.

From-SVN: r168528

13 years agoRemove 3DNow instructions from the bdver1-supported instruction sets
Changpeng Fang [Wed, 5 Jan 2011 19:55:13 +0000 (19:55 +0000)]
Remove 3DNow instructions from the bdver1-supported instruction sets

* config/i386/i386.c (ix86_option_override_internal): Bulldozer
processors do not support 3DNow instructions.

From-SVN: r168527

13 years agore PR fortran/47180 ([OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated...
Janus Weil [Wed, 5 Jan 2011 19:14:56 +0000 (20:14 +0100)]
re PR fortran/47180 ([OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated polymorphic pointers)

2011-01-05  Janus Weil  <janus@gcc.gnu.org>

PR fortran/47180
* trans-expr.c (gfc_trans_class_assign): Bugfix for r168524 (make sure
'vtab' is initialized).

From-SVN: r168526

13 years agospu.c (spu_option_override): Set parameter PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 inste...
Ulrich Weigand [Wed, 5 Jan 2011 18:44:54 +0000 (18:44 +0000)]
spu.c (spu_option_override): Set parameter PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.

* config/spu/spu.c (spu_option_override): Set parameter
PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.

From-SVN: r168525

13 years agore PR fortran/47180 ([OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated...
Janus Weil [Wed, 5 Jan 2011 18:06:21 +0000 (19:06 +0100)]
re PR fortran/47180 ([OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated polymorphic pointers)

2011-01-05  Janus Weil  <janus@gcc.gnu.org>

PR fortran/47180
* trans-expr.c (gfc_trans_class_assign): For a polymorphic NULL pointer
assignment, set the _vptr component to the declared type.

2011-01-05  Janus Weil  <janus@gcc.gnu.org>

PR fortran/47180
* gfortran.dg/extends_type_of_2.f03: New.

From-SVN: r168524

13 years agolto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified at the command...
Jan Hubicka [Wed, 5 Jan 2011 16:07:09 +0000 (17:07 +0100)]
lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified at the command line.

* lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
at the command line.

From-SVN: r168520

13 years agore PR lto/47162 (LTO is broken)
Martin Jambor [Wed, 5 Jan 2011 14:55:27 +0000 (15:55 +0100)]
re PR lto/47162 (LTO is broken)

Fix PR lto/47162.

2011-01-05  Martin Jambor  <mjambor@suse.cz>

PR lto/47162
* lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
deltas on streamed outgoing edges.
(output_node_opt_summary): Output info for outgoing edges only when
the node is in new parameter set.
(output_cgraph_opt_summary): New parameter set, passed to the two
aforementioned functions.  Update its forward declaration and its
callee too.

From-SVN: r168515

13 years agoc-parser.c (c_parser_omp_atomic): Pass location of assignment operator to c_finish_om...
Tom Tromey [Wed, 5 Jan 2011 14:51:20 +0000 (14:51 +0000)]
c-parser.c (c_parser_omp_atomic): Pass location of assignment operator to c_finish_omp_atomic.

gcc
* c-parser.c (c_parser_omp_atomic): Pass location of assignment
operator to c_finish_omp_atomic.
* c-typeck.c (lvalue_or_else): Add 'loc' argument.
(build_unary_op): Update.
(build_modify_expr): Update.
(build_asm_expr): Update.
gcc/cp
* typeck.c (cp_build_addr_expr_1): Update call to lvalue_error.
(lvalue_or_else): Likewise.
gcc/c-family
* c-common.h (lvalue_error): Update.
* c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
not error.

From-SVN: r168514

13 years agore PR go/47176 (libgo doesn't compile if libunicode is installed)
Ian Lance Taylor [Wed, 5 Jan 2011 14:12:37 +0000 (14:12 +0000)]
re PR go/47176 (libgo doesn't compile if libunicode is installed)

PR go/47176
byte/libbytes.a depends on unicode.gox.

From-SVN: r168512

13 years agospu.c (emit_nop_for_insn): Set INSN_LOCATOR for newly inserted insns.
Ulrich Weigand [Wed, 5 Jan 2011 13:28:20 +0000 (13:28 +0000)]
spu.c (emit_nop_for_insn): Set INSN_LOCATOR for newly inserted insns.

* config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
newly inserted insns.
(pad_bb): Likewise.
(spu_emit_branch_hint): Likewise.
(insert_hbrp_for_ilb_runout): Likewise.
(spu_machine_dependent_reorg): Call df_finish_pass after
schedule_insns returns.

From-SVN: r168510

13 years agospu.c (spu_expand_prologue): Support -fstack-usage.
Ulrich Weigand [Wed, 5 Jan 2011 13:25:36 +0000 (13:25 +0000)]
spu.c (spu_expand_prologue): Support -fstack-usage.

ChangeLog:

* config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.

testsuite/ChangeLog:

* gcc.dg/stack-usage-1.c (SIZE): Provide proper value for __SPU__.

From-SVN: r168509

13 years agore PR tree-optimization/47005 (ACATS c62002a is miscompiled at -O2)
Eric Botcazou [Wed, 5 Jan 2011 11:23:40 +0000 (11:23 +0000)]
re PR tree-optimization/47005 (ACATS c62002a is miscompiled at -O2)

PR tree-optimization/47005
* tree-sra.c (struct access): Add 'non_addressable' bit.
(create_access): Set it for a DECL_NONADDRESSABLE_P field.
(decide_one_param_reduction): Return 0 if the parameter is passed by
reference and one of the accesses in the group is non_addressable.

From-SVN: r168508

13 years agore PR fortran/46017 (Reject ALLOCATE(a, a%b) as "a%b" depends on the allocation...
Thomas Koenig [Wed, 5 Jan 2011 10:03:15 +0000 (10:03 +0000)]
re PR fortran/46017 (Reject  ALLOCATE(a, a%b) as  "a%b" depends on the allocation status of "a")

2011-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/46017
* resolve.c (resolve_allocate_deallocate): Follow references to
check for duplicate occurence of allocation/deallocation objects.

2011-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/46017
* gfortran.dg/allocate_error_2.f90:  New test.

From-SVN: r168506

13 years agore PR fortran/47024 ([OOP] STORAGE_SIZE (for polymorphic types): Segfault at run...
Janus Weil [Wed, 5 Jan 2011 09:05:44 +0000 (10:05 +0100)]
re PR fortran/47024 ([OOP] STORAGE_SIZE (for polymorphic types): Segfault at run time)

2011-01-05  Janus Weil  <janus@gcc.gnu.org>

PR fortran/47024
* trans-decl.c (gfc_trans_deferred_vars): Initialize the _vpr component
of polymorphic allocatables according to their declared type.

2011-01-05  Janus Weil  <janus@gcc.gnu.org>

PR fortran/47024
* gfortran.dg/storage_size_3.f08: New.

From-SVN: r168505

13 years agore PR go/47158 ([cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo...
Ian Lance Taylor [Wed, 5 Jan 2011 05:33:32 +0000 (05:33 +0000)]
re PR go/47158 ([cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc)

PR go/47158
PR go/47159
PR go/47160
PR go/47161
Fix space leaks.
Patch from Ettl Martin.

From-SVN: r168504

13 years agore PR libfortran/47154 (END= does not work in namelist read)
Jerry DeLisle [Wed, 5 Jan 2011 04:18:39 +0000 (04:18 +0000)]
re PR libfortran/47154 (END= does not work in namelist read)

2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/47154
* gfortran.dg/namelist_68.f90: New test.

From-SVN: r168503

13 years agore PR libfortran/47154 (END= does not work in namelist read)
Jerry DeLisle [Wed, 5 Jan 2011 03:53:15 +0000 (03:53 +0000)]
re PR libfortran/47154 (END= does not work in namelist read)

2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/47154
* io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
duplicate calls via next_record.

From-SVN: r168502

13 years ago* de.po: Update.
Joseph Myers [Wed, 5 Jan 2011 01:24:51 +0000 (01:24 +0000)]
* de.po: Update.

From-SVN: r168501

13 years agore PR go/46959 (M68K Not Supported by Go)
Ian Lance Taylor [Wed, 5 Jan 2011 00:24:15 +0000 (00:24 +0000)]
re PR go/46959 (M68K Not Supported by Go)

PR go/46959
PR go/46960
PR go/46961
PR go/46962
PR go/46963
PR go/46964
Use __builtin_unwind_init rather than the SAVE_REGS hack.

From-SVN: r168500

13 years agoDaily bump.
GCC Administrator [Wed, 5 Jan 2011 00:18:25 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r168499

13 years agore PR go/46958 (ARM Go Does Not Compile (__builtin_return_address))
Ian Lance Taylor [Wed, 5 Jan 2011 00:07:59 +0000 (00:07 +0000)]
re PR go/46958 (ARM Go Does Not Compile (__builtin_return_address))

PR go/46958
PR go/46965
Call __builtin_return_address with 0 rather than 1.

From-SVN: r168495

13 years agoCheck for identical package name and prefix in imported package.
Ian Lance Taylor [Tue, 4 Jan 2011 23:29:49 +0000 (23:29 +0000)]
Check for identical package name and prefix in imported package.

From-SVN: r168494

13 years agore PR tree-optimization/47056 (10 Ada ACATS tests fail to link with undefined referen...
Eric Botcazou [Tue, 4 Jan 2011 23:22:31 +0000 (23:22 +0000)]
re PR tree-optimization/47056 (10 Ada ACATS tests fail to link with undefined reference on ia64-linux)

PR tree-optimization/47056
* cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
(mark_load): Likewise.  Handle FUNCTION_DECL specially.
(mark_store): Likewise.  Pass STMT to ipa_record_reference.

From-SVN: r168493

13 years agore PR preprocessor/39213 (Preprocessor ICE with -m64 and --traditional-cpp)
Eric Botcazou [Tue, 4 Jan 2011 23:18:12 +0000 (23:18 +0000)]
re PR preprocessor/39213 (Preprocessor ICE with -m64 and --traditional-cpp)

PR preprocessor/39213
* directives.c (end_directive): Call _cpp_remove_overlay for deferred
pragmas as well in traditional mode.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r168490

13 years agoDon't crash if append arguments are erroneous.
Ian Lance Taylor [Tue, 4 Jan 2011 22:54:05 +0000 (22:54 +0000)]
Don't crash if append arguments are erroneous.

From-SVN: r168489

13 years agodwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the initializer.
Eric Botcazou [Tue, 4 Jan 2011 22:44:04 +0000 (22:44 +0000)]
dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the initializer.

* dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
initializer.  Skip view conversions from aggregate types.

From-SVN: r168488

13 years agoDon't crash when adding function calls that return multiple results.
Ian Lance Taylor [Tue, 4 Jan 2011 22:37:26 +0000 (22:37 +0000)]
Don't crash when adding function calls that return multiple results.

From-SVN: r168487

13 years agoDon't look outside of function literal for break or continue label.
Ian Lance Taylor [Tue, 4 Jan 2011 22:18:20 +0000 (22:18 +0000)]
Don't look outside of function literal for break or continue label.

From-SVN: r168486

13 years agoDon't create erroneous COND_EXPR.
Ian Lance Taylor [Tue, 4 Jan 2011 22:15:46 +0000 (22:15 +0000)]
Don't create erroneous COND_EXPR.

From-SVN: r168485

13 years agoDon't crash if tuple init redefines non-variable.
Ian Lance Taylor [Tue, 4 Jan 2011 21:15:26 +0000 (21:15 +0000)]
Don't crash if tuple init redefines non-variable.

From-SVN: r168484

13 years agoDon't crash if named constant has no type when converting to GENERIC.
Ian Lance Taylor [Tue, 4 Jan 2011 20:18:31 +0000 (20:18 +0000)]
Don't crash if named constant has no type when converting to GENERIC.

From-SVN: r168483

13 years agoDon't crash initializing multiple vars from a single result function.
Ian Lance Taylor [Tue, 4 Jan 2011 19:46:23 +0000 (19:46 +0000)]
Don't crash initializing multiple vars from a single result function.

From-SVN: r168482

13 years agoCheck for multiple default cases in switch or select.
Ian Lance Taylor [Tue, 4 Jan 2011 19:34:32 +0000 (19:34 +0000)]
Check for multiple default cases in switch or select.

From-SVN: r168481

13 years agoFix handling of abstract types in temporary statements.
Ian Lance Taylor [Tue, 4 Jan 2011 19:02:47 +0000 (19:02 +0000)]
Fix handling of abstract types in temporary statements.

From-SVN: r168480

13 years agoUps missed ...
Kai Tietz [Tue, 4 Jan 2011 18:53:32 +0000 (19:53 +0100)]
Ups missed ...

From-SVN: r168479

13 years agoTraverse expressions when looking for types.
Ian Lance Taylor [Tue, 4 Jan 2011 18:52:50 +0000 (18:52 +0000)]
Traverse expressions when looking for types.

From-SVN: r168478

13 years agoDon't crash if package import fails.
Ian Lance Taylor [Tue, 4 Jan 2011 18:24:05 +0000 (18:24 +0000)]
Don't crash if package import fails.

From-SVN: r168477

13 years agoFix building recover thunks which return multiple values.
Ian Lance Taylor [Tue, 4 Jan 2011 18:16:17 +0000 (18:16 +0000)]
Fix building recover thunks which return multiple values.

From-SVN: r168476

13 years agore PR bootstrap/47055 ("make profiledbootstrap" fails on MSYS/mingw-w64)
Kai Tietz [Tue, 4 Jan 2011 18:05:06 +0000 (18:05 +0000)]
re PR bootstrap/47055 ("make profiledbootstrap" fails on MSYS/mingw-w64)

2011-01-04  Kai Tietz  <kai.tietz@onevision.com>

        PR bootstrap/47055
        * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.

From-SVN: r168475

13 years agore PR libstdc++/47145 (configure test for docbook-xsl-ns stylesheets uses hardcoded...
Kai Tietz [Tue, 4 Jan 2011 17:59:39 +0000 (18:59 +0100)]
re PR libstdc++/47145 (configure test for docbook-xsl-ns stylesheets uses hardcoded path)

2011-01-04  Kai Tietz  <kai.tietz@onevision.com>

        PR libstdc++/47145
        * configure.ac (AC_CHECK_FILE): Replaced by test -f.
        * configure: Regenerated.

Unbreaking cross-compiling ...

From-SVN: r168474

13 years agoAvoid crash when selecting on non-channel.
Ian Lance Taylor [Tue, 4 Jan 2011 17:42:21 +0000 (17:42 +0000)]
Avoid crash when selecting on non-channel.

From-SVN: r168473

13 years agoFix obvious typo.
Philipp Thomas [Tue, 4 Jan 2011 16:59:42 +0000 (16:59 +0000)]
Fix obvious typo.

From-SVN: r168471

13 years agore PR fortran/46448 ([OOP] symbol `__copy_...' is already defined)
Janus Weil [Tue, 4 Jan 2011 12:59:23 +0000 (13:59 +0100)]
re PR fortran/46448 ([OOP] symbol `__copy_...' is already defined)

2011-01-04  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46448
* class.c (gfc_find_derived_vtab): Set the module field for the copying
routine to make sure it receives module name mangling.

2011-01-04  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46448
* gfortran.dg/class_34.f90: New.

From-SVN: r168464

13 years agofunction.c (thread_prologue_and_epilogue_insns): Do not crash on empty epilogue seque...
Ulrich Weigand [Tue, 4 Jan 2011 12:20:45 +0000 (12:20 +0000)]
function.c (thread_prologue_and_epilogue_insns): Do not crash on empty epilogue sequences.

* function.c (thread_prologue_and_epilogue_insns): Do not crash
on empty epilogue sequences.

From-SVN: r168463

13 years agobuiltin-cproj-1.c: On the __SPU__ target, do not use __builtin_inff.
Ulrich Weigand [Tue, 4 Jan 2011 12:19:31 +0000 (12:19 +0000)]
builtin-cproj-1.c: On the __SPU__ target, do not use __builtin_inff.

* gcc.dg/torture/builtin-cproj-1.c: On the __SPU__ target, do not
use __builtin_inff.  Skip all single-precision tests that require
Infinity.

From-SVN: r168462

13 years agovxworks.opt (Bdynamic, [...]): New Driver options.
Joseph Myers [Tue, 4 Jan 2011 11:48:04 +0000 (11:48 +0000)]
vxworks.opt (Bdynamic, [...]): New Driver options.

* config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
non-static): New Driver options.

From-SVN: r168461

13 years agodecl.c: Disable Stdcall convention handling for 64-bit.
Pascal Obry [Tue, 4 Jan 2011 11:33:39 +0000 (11:33 +0000)]
decl.c: Disable Stdcall convention handling for 64-bit.

* gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
From-SVN: r168460

13 years agore PR driver/47137 (gcc incorrectly combines assembly inputs)
Jie Zhang [Tue, 4 Jan 2011 10:21:27 +0000 (10:21 +0000)]
re PR driver/47137 (gcc incorrectly combines assembly inputs)

PR driver/47137
* gcc.c (default_compilers[]): Set combinable field to 0
for all assembly languages.

From-SVN: r168459

13 years agotrans.c (Case_Statement_to_gnu): Put the SLOC of the end-of-case on the end label...
Eric Botcazou [Tue, 4 Jan 2011 09:50:33 +0000 (09:50 +0000)]
trans.c (Case_Statement_to_gnu): Put the SLOC of the end-of-case on the end label and its associated gotos, if any.

* gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
end-of-case on the end label and its associated gotos, if any.

From-SVN: r168458

13 years agotrans.c (Subprogram_Body_to_gnu): Evaluate the expressions of the parameter cache...
Eric Botcazou [Tue, 4 Jan 2011 09:43:56 +0000 (09:43 +0000)]
trans.c (Subprogram_Body_to_gnu): Evaluate the expressions of the parameter cache within the statement group of...

* gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
expressions of the parameter cache within the statement group of
the CICO mechanism.

From-SVN: r168456

13 years agotrans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
Olivier Hainque [Tue, 4 Jan 2011 09:30:06 +0000 (09:30 +0000)]
trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.

* gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
(set_end_locus_from_node): New function.
(Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
make and the function end_locus.
(Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
for the elaboration subprogram.
(set_gnu_expr_location_from_node) <default case>: Use it to attempt to
set the end_locus of the expression as well.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
From-SVN: r168455

13 years agore PR ada/47131 (internal error for ACATS C34011B on SJLJ targets)
Eric Botcazou [Tue, 4 Jan 2011 08:58:02 +0000 (08:58 +0000)]
re PR ada/47131 (internal error for ACATS C34011B on SJLJ targets)

PR ada/47131
* gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
variables that are referenced in exception handlers volatile.

From-SVN: r168454

13 years agoAdd the pipeline description for Loongson3A.
Mingjie Xing [Tue, 4 Jan 2011 02:53:50 +0000 (02:53 +0000)]
Add the pipeline description for Loongson3A.

From-SVN: r168452

13 years agoDaily bump.
GCC Administrator [Tue, 4 Jan 2011 00:18:03 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r168451

13 years agore PR middle-end/47017 (gnatlib ICE on sparc64-linux)
Eric Botcazou [Mon, 3 Jan 2011 23:59:55 +0000 (23:59 +0000)]
re PR middle-end/47017 (gnatlib ICE on sparc64-linux)

PR middle-end/47017
* expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
instead of convert_memory_address_addr_space on the base expression.

From-SVN: r168447

13 years ago* g++.dg/torture/pr46111.C: Add dg-require-effective-target pthread.
Ulrich Weigand [Mon, 3 Jan 2011 23:16:17 +0000 (23:16 +0000)]
* g++.dg/torture/pr46111.C: Add dg-require-effective-target pthread.

From-SVN: r168446

13 years agospu.c (spu_option_override): Update error text for bad -march= / -mtune= values.
Ulrich Weigand [Mon, 3 Jan 2011 23:15:03 +0000 (23:15 +0000)]
spu.c (spu_option_override): Update error text for bad -march= / -mtune= values.

* config/spu/spu.c (spu_option_override): Update error text
for bad -march= / -mtune= values.

From-SVN: r168445

13 years agospu.c (asm_file_start): Only reset flag_var_tracking if branch-hint optimization...
Ulrich Weigand [Mon, 3 Jan 2011 23:14:18 +0000 (23:14 +0000)]
spu.c (asm_file_start): Only reset flag_var_tracking if branch-hint optimization will be performed.

* config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
if branch-hint optimization will be performed.

From-SVN: r168444

13 years agoFix incorrect date.
Ulrich Weigand [Mon, 3 Jan 2011 23:13:48 +0000 (23:13 +0000)]
Fix incorrect date.

From-SVN: r168443

13 years agore PR target/47148 (likely wrong code bug)
Jakub Jelinek [Mon, 3 Jan 2011 21:10:31 +0000 (22:10 +0100)]
re PR target/47148 (likely wrong code bug)

PR tree-optimization/47148
* ipa-split.c (split_function): Convert arguments to
DECL_ARG_TYPE if possible.

* gcc.c-torture/execute/pr47148.c: New test.

From-SVN: r168441

13 years agore PR tree-optimization/47155 (ccp caused miscompilation)
Jakub Jelinek [Mon, 3 Jan 2011 21:01:14 +0000 (22:01 +0100)]
re PR tree-optimization/47155 (ccp caused miscompilation)

PR tree-optimization/47155
* tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
when computing uns.

* gcc.c-torture/execute/pr47155.c: New test.

From-SVN: r168440

13 years agore PR rtl-optimization/47157 (ICE: in calc_dfs_tree, at dominance.c:395 with -O)
Jakub Jelinek [Mon, 3 Jan 2011 20:59:20 +0000 (21:59 +0100)]
re PR rtl-optimization/47157 (ICE: in calc_dfs_tree, at dominance.c:395 with -O)

PR rtl-optimization/47157
* combine.c (try_combine): If undobuf.other_insn becomes
(set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
and set *new_direct_jump_p too.

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

From-SVN: r168439

13 years agoUpdate Copyright years for files modified in 2010.
Jakub Jelinek [Mon, 3 Jan 2011 20:52:22 +0000 (21:52 +0100)]
Update Copyright years for files modified in 2010.

From-SVN: r168438

13 years agovector-shift2.c (schar): Define.
Ulrich Weigand [Mon, 3 Jan 2011 18:02:35 +0000 (18:02 +0000)]
vector-shift2.c (schar): Define.

* gcc.dg/torture/vector-shift2.c (schar): Define.
(main): Always use schar or uchar instead of plain "char" to avoid
dependencies on implementation-defined char signedness.

From-SVN: r168437

13 years agore PR libstdc++/46922 (Missing exported symbols from libstdc++)
Paolo Carlini [Mon, 3 Jan 2011 17:09:12 +0000 (17:09 +0000)]
re PR libstdc++/46922 (Missing exported symbols from libstdc++)

2011-01-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/46922
* config/abi/pre/gnu.ver: Export std::bad_function_call symbols.

From-SVN: r168435

13 years agoFix PR47021: ADDR_EXPRs don't contain SCoP parameters.
Sebastian Pop [Mon, 3 Jan 2011 17:01:36 +0000 (17:01 +0000)]
Fix PR47021: ADDR_EXPRs don't contain SCoP parameters.

2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/47021
* graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.

From-SVN: r168433

13 years agogcc.c (process_command): Update copyright notice dates.
Jakub Jelinek [Mon, 3 Jan 2011 16:14:57 +0000 (17:14 +0100)]
gcc.c (process_command): Update copyright notice dates.

gcc/
* gcc.c (process_command): Update copyright notice dates.
* gcov.c (print_version): Likewise.
* gcov-dump.c (print_version): Likewise.
* mips-tfile.c (main): Likewise.
* mips-tdump.c (main): Likewise.
gcc/fortran/
* gfortranspec.c (lang_specific_driver): Update copyright notice
dates.
gcc/java/
* jcf-dump.c (version): Update copyright notice dates.
libmudflap/
* mf-runtime.c (__mf_usage): Update copyright notice dates.
libjava/
* gnu/gcj/convert/Convert.java (version): Update copyright notice
dates.
* gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise.
libjava/classpath/
* gnu/java/rmi/registry/RegistryImpl.java (version): Update
copyright notice dates.
* tools/gnu/classpath/tools/orbd/Main.java (run): Likewise.

From-SVN: r168432

13 years agore PR tree-optimization/46801 (FAIL: gnat.dg/pack9.adb scan-tree-dump-not optimized...
Martin Jambor [Mon, 3 Jan 2011 15:43:23 +0000 (16:43 +0100)]
re PR tree-optimization/46801 (FAIL: gnat.dg/pack9.adb scan-tree-dump-not optimized "gnat_rcheck")

2011-01-03  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/46801
* tree-sra.c (type_internals_preclude_sra_p): Check whether
aggregate fields start at byte boundary instead of the bit-field flag.

* testsuite/gnat.dg/pack9.adb: Remove xfail.

From-SVN: r168431

13 years agoRevert revision 168407.
H.J. Lu [Mon, 3 Jan 2011 15:03:05 +0000 (15:03 +0000)]
Revert revision 168407.

2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>

PR driver/47137
* gcc.c (main): Revert revision 168407.

From-SVN: r168429

13 years agolto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
Martin Jambor [Mon, 3 Jan 2011 13:32:44 +0000 (14:32 +0100)]
lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.

2011-01-03  Martin Jambor  <mjambor@suse.cz>

* lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.

From-SVN: r168424

13 years agotree-vect-generic.c (expand_vector_operations_1): When using vector/ vector optab...
Ulrich Weigand [Mon, 3 Jan 2011 13:25:25 +0000 (13:25 +0000)]
tree-vect-generic.c (expand_vector_operations_1): When using vector/ vector optab to expand vector/scalar shift...

* tree-vect-generic.c (expand_vector_operations_1): When using vector/
vector optab to expand vector/scalar shift, update gimple to vector.

From-SVN: r168423

13 years agocgraphunit.c (verify_cgraph_node): Verify there is no direct call to a thunk.
Martin Jambor [Mon, 3 Jan 2011 13:15:35 +0000 (14:15 +0100)]
cgraphunit.c (verify_cgraph_node): Verify there is no direct call to a thunk.

2011-01-03  Martin Jambor  <mjambor@suse.cz>

* cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
a thunk.

From-SVN: r168422

13 years agore PR tree-optimization/46984 (g++.dg/torture/pr45699.C FAILs with -fno-early-inlinin...
Martin Jambor [Mon, 3 Jan 2011 13:06:54 +0000 (14:06 +0100)]
re PR tree-optimization/46984 (g++.dg/torture/pr45699.C FAILs with -fno-early-inlining -flto)

2011-01-03  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/46984
* cgraph.h (cgraph_indirect_call_info): make field thunk_delta
HOST_WIDE_INT.
(cgraph_create_indirect_edge): Fixed line length.
(cgraph_indirect_call_info): Declare.
(cgraph_make_edge_direct) Update declaration.
* cgraph.c (cgraph_allocate_init_indirect_info): New function.
(cgraph_create_indirect_edge): Use it.
(cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
callees.
* cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
the new thunk_delta representation.
* ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
HOST_WIDE_INT.
(ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
(ipa_read_indirect_edge_info): Likewise.
* lto-cgraph.c (output_edge_opt_summary): New function.
(output_node_opt_summary): Call it on all outgoing edges.
(input_edge_opt_summary): New function.
(input_node_opt_summary): Call it on all outgoing edges.

* testsuite/g++.dg/ipa/pr46984.C: New test.

From-SVN: r168420

13 years agoFix wrong date
Eric Botcazou [Mon, 3 Jan 2011 11:52:37 +0000 (11:52 +0000)]
Fix wrong date

From-SVN: r168417

13 years agointrinsic.texi (LEADZ): Fix example.
Janus Weil [Mon, 3 Jan 2011 10:26:05 +0000 (11:26 +0100)]
intrinsic.texi (LEADZ): Fix example.

2011-01-03  Janus Weil  <janus@gcc.gnu.org>

* intrinsic.texi (LEADZ): Fix example.

From-SVN: r168415

13 years agoDaily bump.
GCC Administrator [Mon, 3 Jan 2011 00:17:57 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r168414

13 years agore PR fortran/46408 ([OOP] Segfault when running gfortran.dg/class_allocate_6.f03)
Janus Weil [Sun, 2 Jan 2011 21:01:50 +0000 (22:01 +0100)]
re PR fortran/46408 ([OOP] Segfault when running gfortran.dg/class_allocate_6.f03)

2011-01-02  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46408
* class.c (gfc_find_derived_vtab): Use EXEC_INIT_ASSIGN for __copy_
routine.

2011-01-02  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46408
* gfortran.dg/class_19.f03: Adjust counting of __builtin_free.

From-SVN: r168409

13 years ago* de.po: Update.
Joseph Myers [Sun, 2 Jan 2011 20:36:01 +0000 (20:36 +0000)]
* de.po: Update.

From-SVN: r168408

13 years agoDon't check have_o when settting combine_inputs.
H.J. Lu [Sun, 2 Jan 2011 17:54:22 +0000 (17:54 +0000)]
Don't check have_o when settting combine_inputs.

2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>

PR driver/47137
* gcc.c (main): Don't check have_o when settting combine_inputs.

From-SVN: r168407

13 years ago* sv.po: Update.
Joseph Myers [Sun, 2 Jan 2011 17:41:32 +0000 (17:41 +0000)]
* sv.po: Update.

From-SVN: r168406

13 years ago* ja.po: Update.
Joseph Myers [Sun, 2 Jan 2011 17:40:15 +0000 (17:40 +0000)]
* ja.po: Update.

From-SVN: r168405

13 years agoregrename.c: Add general comment describing the pass.
Eric Botcazou [Sun, 2 Jan 2011 17:28:24 +0000 (17:28 +0000)]
regrename.c: Add general comment describing the pass.

* regrename.c: Add general comment describing the pass.
(struct du_head): Remove 'length' field.
(get_element, merge_sort_comparison, merge, sort_du_head): Remove.
(regrename_optimize): Do not sort chains.  Rework comments, add others.
Force renaming to the preferred class (if any) in the first pass and do
not consider registers that belong to it in the second pass.
(create_new_chain): Do not set 'length' field.
(scan_rtx_reg): Likewise.

From-SVN: r168404

13 years agoBump Copyright years.
Jakub Jelinek [Sun, 2 Jan 2011 17:23:22 +0000 (18:23 +0100)]
Bump Copyright years.

From-SVN: r168403