Commit Graph

91477 Commits

Author SHA1 Message Date
Benjamin Kosnik
954a782e53 re PR libstdc++/38834 (FAIL: abi_check on alpha)
2009-01-20  Benjamin Kosnik  <bkoz@redhat.com>
	    Uros Bizjak  <ubizjak@gmail.com>

	PR libstdc++/38834
	* config/abi/pre/gnu.ver: Correct char16_t and char32_t exports.
	* config/os/gnu-linux/ldbl-extra.ver: Tweak.


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

From-SVN: r143538
2009-01-21 04:04:24 +00:00
GCC Administrator
4770322a2e Daily bump.
From-SVN: r143536
2009-01-21 00:16:51 +00:00
Joseph Myers
5a24827481 re PR other/38758 (gcc ships with GPL-only library parts (longlong.h))
PR other/38758
	* longlong.h: Update copyright years.  Use soft-fp license
	notice.  Sync __clz_tab declaration with glibc.

From-SVN: r143531
2009-01-20 21:58:30 +00:00
Paul Thomas
5b3b1d0977 re PR fortran/38907 (ICE when contained function has same name as module function and used in expression)
2009-01-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38907
	* resolve.c (check_host_association): Remove the matching to
	correct an incorrect host association and use manipulation of
	the expression instead.

2009-01-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38907
	* gfortran.dg/host_assoc_function_7.f90: New test.

From-SVN: r143530
2009-01-20 21:56:49 +00:00
Benjamin Kosnik
53f506ed16 re PR libstdc++/38919 (math_stubs_long_double.cc: error: redefinition of 'long double ...' vs. /usr/x86_64-mingw32/include/math.h)
2009-01-20  Benjamin Kosnik  <bkoz@redhat.com>
            Rainer Emrich  <r.emrich@de.tecosim.com>

	PR libstdc++/38919
	* crossconfig.m4: Use GLIBCXX_CHECK_MATH_SUPPORT and
	GLIBCXX_CHECK_STDLIB_SUPPORT for mingw crosses.
	* configure: Regenerate.


Co-Authored-By: Rainer Emrich <r.emrich@de.tecosim.com>

From-SVN: r143526
2009-01-20 19:30:51 +00:00
Steve Ellcey
4b84f3de02 re PR target/30687 (undocumented attributes on ia64)
PR target/30687
	* doc/extend.texi (syscall_linkage): New.
	(version_id): Modify.

From-SVN: r143525
2009-01-20 19:14:06 +00:00
Tobias Burnus
872fbc1ac7 invoke.texi (RANGE): RANGE also takes INTEGER arguments.
2009-01-20  Tobias Burnus  <burnus@net-b.de>

        * invoke.texi (RANGE): RANGE also takes INTEGER arguments.

From-SVN: r143524
2009-01-20 19:46:30 +01:00
Andrew Pinski
37348bf105 re PR tree-optimization/38747 (Wrong code due to VIEW_CONVERT_EXPR)
2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
	Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38747
	PR tree-optimization/38748
	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
	conversion if the base address is an indirect reference and the
	aliasing sets could cause issues.

	* gcc.dg/tree-ssa/struct-aliasing-1.c: New test.
	* gcc.dg/tree-ssa/struct-aliasing-2.c: Likewise.
	* gcc.c-torture/execute/struct-aliasing-1.c: Likewise.

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

From-SVN: r143523
2009-01-20 17:10:40 +00:00
Sebastian Pop
d0a589040b common.opt (fgraphite, [...]): Add comment for explaining why these options are not documented.
2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>

	* common.opt (fgraphite, fgraphite-identity): Add comment for 
	explaining why these options are not documented.

From-SVN: r143518
2009-01-20 15:01:14 +00:00
Sebastian Pop
71e7afb285 graphite.c (stmt_simple_for_scop_p): Also handle cases when gimple_call_lhs is NULL.
2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite.c (stmt_simple_for_scop_p): Also handle cases when
	gimple_call_lhs is NULL.

From-SVN: r143517
2009-01-20 14:58:53 +00:00
Kees Cook
da609a9b71 re PR target/38902 (__builtin_strcpy doesn't work with -fstack-protector)
2009-01-20  Kees Cook  <kees@ubuntu.com>
	    H.J. Lu  <hongjiu.lu@intel.com>

	PR target/38902
	* gcc.dg/pr38902.c: New.

From-SVN: r143516
2009-01-20 06:40:30 -08:00
Paolo Bonzini
09efeca1a4 re PR target/38868 (r143152 breaks output routines in xplor-nih)
gcc:
2008-01-20  Paolo Bonzini  <bonzini@gnu.org>

	PR target/38868
	* emit-rtl.c (adjust_address_1): Make sure memref is never
	overwritten.

gcc/testsuite:
2008-01-20  Paolo Bonzini  <bonzini@gnu.org>

	PR target/38868
	* gfortran.dg/pr38868.f: New testcase.

From-SVN: r143513
2009-01-20 13:24:25 +00:00
Ben Elliston
cbb8dee326 libgcov.c (__gcov_execl, [...]): Remove const qualifier from arg parameter.
* libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
	const qualifier from arg parameter. Remove unnecessary cast to
	char *.
	* gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
	const qualifier from arg 2.

From-SVN: r143511
2009-01-20 20:49:58 +11:00
Richard Guenther
3e98d281f6 pr36227.c: Move ...
2009-01-20  Richard Guenther  <rguenther@suse.de>

	* gcc.c-torture/execute/pr36227.c: Move ...
	* gcc.dg/torture/pr36227.c: ... here.  Require stdint_types.

From-SVN: r143509
2009-01-20 09:21:41 +00:00
Iain Sandoe
72c6659693 darwin.h: Add static-libgfortran to LINK_SPEC.
2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>

gcc/
        * config/darwin.h: Add static-libgfortran to LINK_SPEC.
gcc/testsuite/
        * lib/gfortran.exp: Add -B options for targets that use
	libgfortran.a%s in their specs.
libgomp/
        * testsuite/lib/libgomp.exp: Add -B option for targets that
	use libgfortran.a%s in their specs.

From-SVN: r143507
2009-01-20 00:59:24 +00:00
GCC Administrator
6600206c4e Daily bump.
From-SVN: r143505
2009-01-20 00:17:11 +00:00
Jason Merrill
0513421163 re PR c++/23287 (Explicitly invoking destructor of template class in a template and is dependent)
PR c++/23287
        * parser.c (cp_parser_unqualified_id): In a template,
        accept ~identifier.
        * typeck.c (lookup_destructor): Handle IDENTIFIER_NODE.

From-SVN: r143502
2009-01-19 17:50:43 -05:00
Mikael Morin
9295d9eda3 re PR fortran/38859 (ubound and lbound treat structure component references as whole arrays)
2009-01-19  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/38859
	* simplify.c (simplify_bound): Don't use array specification
	if variable or component has subsequent references.

2009-01-19  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/38859
	* gfortran.dg/bound_5.f90: New test.

From-SVN: r143501
2009-01-19 22:19:34 +00:00
Vladimir Makarov
f68211cd04 re PR c/38869 (valgrind find problem with -O -mtune=generic)
2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>

	PR c/38869
	* rtl.h (reinit_regs): New prototype.
	* regclass.c: Include ira.h.
	(reinit_regs): New.
	* Makefile.in (regclass.o): Add ira.h.
	* config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.

From-SVN: r143498
2009-01-19 17:17:14 +00:00
GCC Administrator
be12c33aa4 Daily bump.
From-SVN: r143491
2009-01-19 00:17:01 +00:00
Ben Elliston
bc127c6310 Correct my most recent entry.
From-SVN: r143488
2009-01-19 08:41:52 +11:00
Dave Korn
04f9f7b532 configure.ac (funcs, [...]): Don't munge on Cygwin, as it no longer shares libiberty object files.
* configure.ac (funcs, vars, checkfuncs):  Don't munge on Cygwin,
	as it no longer shares libiberty object files.
	* configure:  Regenerated.

From-SVN: r143487
2009-01-18 21:36:20 +00:00
H.J. Lu
6e4f11689b re PR target/38736 (-mavx can change the ABI via BIGGEST_ALIGNMENT)
gcc/

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

	PR target/38736
	* c-common.c (handle_aligned_attribute): Use
	ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
	default alignment value.

	* c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.

	* defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
	* config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.

	* doc/extend.texi: Update __attribute__ ((aligned)).  Document
	__BIGGEST_ALIGNMENT__.

	* doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.

gcc/testsuite/

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

	PR target/38736
	* g++.dg/compat/abi/pr38736_main.C: New.
	* g++.dg/compat/abi/pr38736_x.C: Likewise.
	* g++.dg/compat/abi/pr38736_y.C: Likewise.
	* g++.dg/other/macro-1.C: Likewise.
	* gcc.dg/macro-1.c: Likewise.
	* gcc.dg/compat/pr38736_main.c: Likewise.
	* gcc.dg/compat/pr38736_x.c: Likewise.
	* gcc.dg/compat/pr38736_y.c: Likewise.

From-SVN: r143486
2009-01-18 08:26:26 -08:00
Richard Guenther
890065bfe4 re PR tree-optimization/38819 (trapping expression wrongly hoisted out of loop)
2009-01-18  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38819
	* tree-flow.h (operation_could_trap_helper_p): Declare.
	* tree-eh.c (operation_could_trap_helper_p): Export.
	* tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
	* tree-ssa-sccvn.c (vn_nary_may_trap): New function.
	* tree-ssa-pre.c (insert_into_preds_of_block): Check if we
	are about to insert a possibly trapping instruction and fail
	in this case.

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

From-SVN: r143485
2009-01-18 15:51:12 +00:00
Andreas Schwab
a729d731c8 doc/install.texi (Configuration): Remove obsolete paragraph
about use of --with-gnu-ld with --with-gnu-as.

From-SVN: r143484
2009-01-18 15:47:15 +00:00
Jonathan Wakely
8b6ded8d4f thread (__thread_data_base::__run): Make non-const.
* include/std/thread (__thread_data_base::__run): Make non-const.
	* testsuite/30_threads/thread/cons/5.cc: New.

From-SVN: r143483
2009-01-18 12:38:10 +00:00
Ben Elliston
9d2cc6f081 * Makefile.in (bitmap.o-warn): Remove goal.
From-SVN: r143482
2009-01-18 22:30:29 +11:00
Kazu Hirata
a640c13b6b extend.texi, [...]: Fix typos.
* doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
	doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
	Follow spelling conventions.

From-SVN: r143481
2009-01-18 09:11:10 +00:00
Ben Elliston
dba2cc0ce9 bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate C++ warning about implicit conversion from void * to...
* bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
	C++ warning about implicit conversion from void * to struct
	bitmap_head_def *.
	(bitmap_obstack_free): Likewise for bitmap_element *.

From-SVN: r143480
2009-01-18 19:51:56 +11:00
GCC Administrator
3ab4dfd406 Daily bump.
From-SVN: r143478
2009-01-18 00:16:46 +00:00
Ben Elliston
c60535f966 * config/i386/32/tf-signs.c (__copysigntf3, __fabstf2): Prototype.
From-SVN: r143475
2009-01-18 10:41:31 +11:00
Gerald Pfeifer
19196f4457 * MAINTAINERS: Remove Robert Millan from Write After Approval.
From-SVN: r143474
2009-01-17 22:36:37 +00:00
Gerald Pfeifer
ee5decb37d * MAINTAINERS: Make whitespace consistent.
From-SVN: r143473
2009-01-17 22:13:55 +00:00
Dave Korn
2207a4980f re PR bootstrap/38862 (Bootstrap failure on HEAD with static linking vs. graphite)
PR bootstrap/38862
	* Makefile.in (BACKENDLIBS):  Reorder to match dependencies.

From-SVN: r143472
2009-01-17 21:06:17 +00:00
Sebastian Pop
8137e465bf graphite.c (graphite_trans_scop_block): Do not block single nested loops.
2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
	    Tobias Grosser  <tobi.grosser@amd.com>

	* graphite.c (graphite_trans_scop_block): Do not block single
	nested loops.


Co-Authored-By: Tobias Grosser <tobi.grosser@amd.com>

From-SVN: r143468
2009-01-17 15:13:12 +00:00
Richard Guenther
f791417262 gcc_release (JAVA_DIRS): Remove fastjar.
2009-01-17  Richard Guenther  <rguenther@suse.de>

	* gcc_release (JAVA_DIRS): Remove fastjar.

From-SVN: r143465
2009-01-17 14:53:57 +00:00
Paul Thomas
e775e6b697 re PR fortran/38657 (PUBLIC/PRIVATE Common blocks)
2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38657
	* module.c (write_common_0): Add argument 'this_module' and
	check that non-use associated common blocks are written first.
	(write_common): Call write_common_0 twice, once with true and
	then with false.

2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38657
	* gfortran.dg/module_commons_3.f90: Reapply.

From-SVN: r143463
2009-01-17 11:58:48 +00:00
Paul Thomas
c41fea4af4 re PR fortran/34955 (transfer_assumed_size_1.f90: Valgrind error: invalid read of size 3)
2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34955
	* trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Has
	been absorbed into gfc_conv_intrinsic_transfer. All
	references to it in trans-intrinsic.c have been changed
	accordingly.  PR fixed by using a temporary for scalar
	character transfer, when the source is shorter than the
	destination.

2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34955
	* gfortran.dg/transfer_intrinsic_1.f90: New test.
	* gfortran.dg/transfer_intrinsic_2.f90: New test.

From-SVN: r143462
2009-01-17 11:32:02 +00:00
Paul Thomas
6e7ff326cf re PR fortran/38657 (PUBLIC/PRIVATE Common blocks)
2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38657
	* module.c (write_common_0): Revert patch of 2009-01-10.

2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38657
	* gfortran.dg/module_commons_3.f90: Remove

From-SVN: r143459
2009-01-17 09:43:57 +00:00
Benjamin Kosnik
7d4260a382 Makefile.am (sources): Add math_stubs_float.cc.
2009-01-16  Benjamin Kosnik  <bkoz@redhat.com>

	* src/Makefile.am (sources): Add math_stubs_float.cc.
	* src/Makefile.in: Regenerate.
	* src/math_stubs_float.cc: New, from libmath/stubs.c.

From-SVN: r143457
2009-01-17 02:03:25 +00:00
H.J. Lu
1cc914fc95 foldaddr-1.c: Add the missing '}'.
2009-01-16  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.dg/tree-ssa/foldaddr-1.c: Add the missing '}'.

From-SVN: r143455
2009-01-16 17:31:44 -08:00
GCC Administrator
53847ea218 Daily bump.
From-SVN: r143453
2009-01-17 00:17:01 +00:00
Jason Merrill
fd80343111 re PR c++/38877 (Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006)
PR c++/38877
        * tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
        * init.c (build_new): Don't call describable_type unless we
        have an auto.

From-SVN: r143448
2009-01-16 17:40:25 -05:00
Jakub Jelinek
4dcb8fd1b1 Makefile.in: Fix multilib handling for powerpc64-linux.
* gcc-interface/Makefile.in: Fix multilib handling for
	powerpc64-linux.

From-SVN: r143447
2009-01-16 23:38:12 +01:00
Jason Merrill
b7da27c2e2 re PR c++/38877 (Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006)
PR c++/38877
        * tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
        * init.c (build_new): Don't call describable_type unless we
        have an auto.

From-SVN: r143446
2009-01-16 17:36:32 -05:00
Jason Merrill
db8470f688 re PR c++/29470 (Using declaration access semantics change with templates)
PR c++/29470
        * pt.c (tsubst_decl) [USING_DECL]: Propagate access flags.

From-SVN: r143445
2009-01-16 17:36:11 -05:00
Alexandre Oliva
5be1c58c4d ebitmap.h (ebitmap_iter_init): Initialize all fields.
* ebitmap.h (ebitmap_iter_init): Initialize all fields.
* ipa-struct-reorg.c (gen_struct_type): Replace known-true
test with assertion.

From-SVN: r143443
2009-01-16 20:44:25 +00:00
Richard Guenther
786ce82d44 re PR tree-optimization/38835 (field-insensitive PTA causes libstdc++ miscompiles)
2009-01-16  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38835
	PR middle-end/36227
	* fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
	and INT + PTR -> (INT)(PTR p+ INT) folding.
	* tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.

	java/
	* builtins.c (build_addr_sum): Use POINTER_PLUS_EXPR.

	* gcc.c-torture/execute/pr36227.c: New testcase.
	* gcc.dg/tree-ssa/foldaddr-1.c: XFAIL.
	* g++.dg/init/const7.C: Likewise.

From-SVN: r143442
2009-01-16 19:18:18 +00:00
Adam Nemet
c1cb09ada0 re PR target/38554 (ICE when compiling pamfunc.c in netpbm with -O1 enabled)
PR target/38554
	* expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
	the subreg from a lowpart subreg if it is also casting the value.

testsuite/
	PR target/38554
	* gcc.c-torture/compile/pr38554.c: New test.

From-SVN: r143440
2009-01-16 18:56:47 +00:00
Jason Merrill
1ceb2263cf re PR c++/38579 (Template: Wrong inherited copy-ctor visibility)
PR c++/38579
        * search.c (protected_accessible_p): N doesn't vary.

From-SVN: r143439
2009-01-16 13:35:28 -05:00