2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-25 04:30:28 +08:00

85772 Commits

Author SHA1 Message Date
Diego Novillo
c1e7d24012 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
PR 33738
	* tree-vrp.c (vrp_evaluate_conditional): Revert fix for
	PR 33738.

testsuite/ChangeLog

	PR 33738
	* g++.dg/warn/pr33738.C: Remove.

From-SVN: r132124
2008-02-05 11:31:20 -05:00
Kaveh R. Ghazi
3a2041755b re PR other/35070 (-fverbose-asm has bogus asm output (mpfr library warning))
PR other/35070
	* toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.

From-SVN: r132123
2008-02-05 16:23:10 +00:00
H.J. Lu
7074bc2ebf re PR target/35084 (Strang error messages)
2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/35084
	* config/i386/i386.c (ix86_function_sseregparm): Add an arg
	to indicate if a message should be generated.
	(init_cumulative_args): Updated.
	(function_value_32): Likewise.

From-SVN: r132122
2008-02-05 06:51:06 -08:00
Paul Thomas
52f5643130 re PR fortran/34945 (LBOUND fails for array with KIND(complex) used in zero-sized dimension)
2008-02-05  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34945
	* array.c (match_array_element_spec): Remove check for negative
	array size.
	(gfc_resolve_array_spec): Add check for negative size.

2008-02-05  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34945
	* gfortran.dg/bounds_check_13.f: New test.

From-SVN: r132121
2008-02-05 13:33:35 +00:00
Douglas Gregor
1db54f4e49 re PR c++/35074 (ICE with attribute "aligned" for template classes)
2008-02-05  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/35074
	* decl2.c (save_template_attributes): When we're modifying the
	TYPE_MAIN_VARIANT to add new attributes, be sure to also modify
	all of the other variants to add those same attributes. Otherwise,
	the main variant will be inconsistent with those other variants.
	
2008-02-05  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/35074
	* g++.dg/ext/attrib30.C: New.

From-SVN: r132120
2008-02-05 13:29:43 +00:00
Joseph Myers
0f5098aef3 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
From-SVN: r132116
2008-02-05 12:24:10 +00:00
Francois-Xavier Coudert
59d1426d60 re PR testsuite/33946 (Testcase multi-ix.c generates call to (poisoned) bzero)
PR testsuite/33946
	* gcc.c-torture/execute/multi-ix.c: Call memset instead of bzero.

From-SVN: r132115
2008-02-05 12:03:21 +00:00
Uros Bizjak
4a53415244 re PR target/35083 (ICE: in extract_insn, at recog.c:1990)
PR target/35083
	* config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
	Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.

testsuite/ChangeLog:

	PR target/35083
	* gcc.target/i386/pr35083.c: New test.

From-SVN: r132114
2008-02-05 12:27:41 +01:00
Paul Thomas
3969f765e3 re PR fortran/32315 (DATA with implied-do: Bounds checks missing [regression vs. g77])
2008-02-05  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/32315
	* data.c (gfc_assign_data_value): Add bounds check for array
	references.

2008-02-05  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/32315
	* gfortran.dg/data_bounds_1.f90: New test.

From-SVN: r132113
2008-02-05 11:16:33 +00:00
Diego Novillo
3467b230ff http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
PR 33738
	* tree-vrp.c (vrp_evaluate_conditional): With
	-Wtype-limits, emit a warning when comparing against a
	constant outside the natural range of OP0's type.

testsuite/ChangeLog

	PR 33738
	* testsuite/g++.dg/warn/pr33738.C: New.

From-SVN: r132111
2008-02-04 23:17:58 -05:00
Ismail Dönmez
b452c14185 inclhack.def: (bsd_stdio_attrs_conflict...
2008-02-04  Ismail Dnmez  <ismail@pardus.org.tr>

	* inclhack.def: (bsd_stdio_attrs_conflict, freebsd_gcc3_breakage,
	freebsd_gcc4_breakage, hppa_hpux_fp_macros, hpux11_abs,
	netbsd_c99_inline_1, netbsd_c99_inline_2, netbsd_extra_semicolon):  Add
	quotes around mach entries.
	* fixincl.x: Regenerate with latest autogen (5.9.4), updating license
	to GPLv3.

From-SVN: r132110
2008-02-05 02:36:32 +00:00
GCC Administrator
bd54bcc24b Daily bump.
From-SVN: r132108
2008-02-05 00:17:28 +00:00
Hans-Peter Nilsson
eb9a4b0489 Correct my last entry, matching the posted patch
From-SVN: r132105
2008-02-04 22:46:35 +00:00
Daniel Franke
e5327844be where_operator_assign_4.f90: Fix typo in error message to match.
2008-02-04  Daniel Franke  <franke.daniel@gmail.com>

        * gfortran.dg/where_operator_assign_4.f90: Fix typo in error message
        to match.

From-SVN: r132104
2008-02-04 17:40:46 -05:00
Hans-Peter Nilsson
ca8b555b1d target-supports.exp (check_effective_target_hard_float): Only use the preprocessor tests for mips*-*-* and xtensa-*-*.
* lib/target-supports.exp (check_effective_target_hard_float): Only
	use the preprocessor tests for mips*-*-* and xtensa-*-*.  For all
	other targets, grep for a call insn in the rtl expand dump for an
	add of two doubles.
	(target_compile): Support generating rtl dumps as output.

From-SVN: r132102
2008-02-04 22:36:26 +00:00
Daniel Franke
ba6e57ba62 resolve.c (resolve_where): Fix typo.
2008-02-04  Daniel Franke  <franke.daniel@gmail.com>

	* resolve.c (resolve_where): Fix typo.
	(gfc_resolve_where_code_in_forall): Likewise.

From-SVN: r132098
2008-02-04 17:29:35 -05:00
Richard Guenther
22199fd25d re PR middle-end/33631 (auto structure not initialized correctly)
2008-02-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/33631
	* expr.c (count_type_elements): Give for unions instead of
	guessing.

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

From-SVN: r132096
2008-02-04 21:18:32 +00:00
Richard Guenther
70c7fe74f4 re PR java/35035 (Has any one managed to run the libjava test suite on powerpc-apple-darwin9?)
2008-02-04  Richard Guenther  <rguenther@suse.de>

	PR java/35035
	* decl.c (record_builtin_java_type): Make jboolean a
	integer type again where its mode doesn't match that of bool.

From-SVN: r132095
2008-02-04 21:12:49 +00:00
Hans-Peter Nilsson
8181078a70 re PR other/31405 (fixincludes needed for wchar from glibc 2.3.6)
PR other/31405
	* inclhack.def: (glibc_c99_inline_1a): Re-add last change.
	(glibc_c99_inline_3) <bypass>: Change from __STDC_VERSION__ to
	__extern_inline|__GNU_STDC_INLINE__.
	(glibc_c99_inline_4) <files>: Add wchar.h and */wchar.h.
	<bypass>: Change from __STDC_VERSION__ to
	__extern_inline|__GNU_STDC_INLINE__.
	<first c_fix_arg>: Change from #ifdef-wrapping the extern part to
	appending attribute-gnu_inline.
	<second c_fix_arg>: Remove.
	<test_text>: Remove __extern_inline line.
	* tests/base/features.h: Re-add.
	* tests/base/sys/sysmacros.h: Adjust.
	* fixincl.x: Regenerate.

(Oops: forgot PR-annotation.)

From-SVN: r132093
2008-02-04 15:33:54 +00:00
Hans-Peter Nilsson
c91e2eaedd inclhack.def: (glibc_c99_inline_1a): Re-add last change.
* inclhack.def: (glibc_c99_inline_1a): Re-add last change.
	(glibc_c99_inline_3) <bypass>: Change from __STDC_VERSION__ to
	__extern_inline|__GNU_STDC_INLINE__.
	(glibc_c99_inline_4) <files>: Add wchar.h and */wchar.h.
	<bypass>: Change from __STDC_VERSION__ to
	__extern_inline|__GNU_STDC_INLINE__.
	<first c_fix_arg>: Change from #ifdef-wrapping the extern part to
	appending attribute-gnu_inline.
	<second c_fix_arg>: Remove.
	<test_text>: Remove __extern_inline line.
	* tests/base/features.h: Re-add.
	* tests/base/sys/sysmacros.h: Adjust.
	* fixincl.x: Regenerate.

From-SVN: r132092
2008-02-04 15:31:25 +00:00
Richard Guenther
1a1640dbb3 re PR middle-end/35043 (ICE in tree-data-ref because signed_type_for_types returns NULL)
2008-02-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/35043
	* gimplify.c (gimplify_init_ctor_eval): Convert array indices
	to TYPE_DOMAINs base type instead of using bitsizetype here.

	* gcc.c-torture/compile/pr35043.c: New testcase.

From-SVN: r132091
2008-02-04 13:30:00 +00:00
Jason Merrill
0fcedd9c98 re PR c++/33916 (Default constructor fails to initialize array members)
PR c++/33916
        * cp/init.c (build_value_init_1): New function.
        (build_value_init): New function.
        * cp/typeck2.c (build_functional_cast): Call it.
        * cp/cp-gimplify.c (cp_gimplify_init_expr): Handle its output.

        * cp/cp-tree.h (TYPE_HAS_USER_CONSTRUCTOR): Rename from
        TYPE_HAS_CONSTRUCTOR.
        * cp/class.c (finish_struct_bits, maybe_warn_about_overly_private_class,
        add_implicitly_declared_members): Adjust.
        (check_field_decls): Adjust. Remove warnings about reference/const
        in class without constructor.
        (check_bases_and_members): Adjust.  Give those warnings here instead.
        * cp/decl.c (fixup_anonymous_aggr): Adjust.
        (check_initializer): Adjust, clarify logic slightly.
        (grok_special_member_properties): Adjust, only set if user-provided.
        * cp/rtti.c (create_tinfo_types): Don't set.
        * cp/cvt.c (ocp_convert): Remove exception for vtable_entry_type et al.
        Use same_type_ignoring_top_level_qualifiers_p.
        * cp/pt.c (check_explicit_specialization): Adjust.
        (instantiate_class_template): Adjust.

        * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.

Co-Authored-By: Mark Mitchell <mark@codesourcery.com>

From-SVN: r132088
2008-02-03 22:28:53 -05:00
Ralf Wildenhues
a31cfd58cf re PR other/29972 (typos in the manual)
PR other/29972
	* doc/invoke.texi (C++ Dialect Options, Optimize Options)
	(HPPA Options, i386 and x86-64 Options, IA-64 Options)
	(RS/6000 and PowerPC Options): Fix typos and markup.
	* doc/passes.texi (Tree-SSA passes): Likewise.

From-SVN: r132087
2008-02-04 01:26:14 +00:00
GCC Administrator
91f385f8cd Daily bump.
From-SVN: r132085
2008-02-04 00:17:31 +00:00
John David Anglin
0d1a14d251 ivopts-1.C: Remove xfail for hppa*-*-*.
* g++.dg/tree-ssa/ivopts-1.C: Remove xfail for hppa*-*-*.

From-SVN: r132082
2008-02-03 20:08:43 +00:00
Uros Bizjak
80cf9ff476 pr31628.c: Require effective target fpic.
* gcc.target/i386/pr31628.c: Require effective target fpic.
        * gcc.target/i386/strinline.c: Ditto.
        * gcc.dg/sibcall-6.c: Skip if !nonpic for 32bit x86 targets.
        * gcc.dg/pr35045.c: Ditto.
        * gcc.dg/20050503-1.c: Ditto.

From-SVN: r132080
2008-02-03 20:46:50 +01:00
Paul Thomas
b9332b094d re PR fortran/32760 (Error defining subroutine named PRINT)
2008-02-03  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/32760
	* resolve.c (resolve_allocate_deallocate): New function.
	(resolve_code): Call it for allocate and deallocate.
	* match.c (gfc_match_allocate, gfc_match_deallocate) : Remove
	the checking of the STAT tag and put in above new function.
	* primary,c (match_variable): Do not fix flavor of host
	associated symbols yet if the type is not known.

2008-02-03  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/32760
	* gfortran.dg/host_assoc_variable_1.f90: New test.
	* gfortran.dg/allocate_stat.f90: Change last three error messages.

From-SVN: r132078
2008-02-03 11:29:27 +00:00
GCC Administrator
ce3605e2bb Daily bump.
From-SVN: r132076
2008-02-03 00:17:33 +00:00
Michael Matz
6994f254d5 re PR target/35045 (gcc-4.3 generates wrong code on i386 with -O3)
PR target/35045
        * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
        from record_last_reg_set_info.
        (record_last_reg_set_info): Take an RTX argument, iterate over all
        constituent hardregs.
        (record_last_set_info, record_opr_changes): Change calls to
        new signature or to record_last_reg_set_info_regno.

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

From-SVN: r132071
2008-02-02 15:00:57 +00:00
Thomas Koenig
ee440dd05d re PR libfortran/35001 (shape for negative sizes)
2008-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/35001
	* m4/shape.m4:  Return 0 for extents <= 0.
	* generated/shape_i4.c:  Regenerated.
	* generated/shape_i8.c:  Regenerated.
	* generated/shape_i16.c:  Regenerated.

2008-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/35001
	* gfortran.dg/shape_4.f90:  New test.

Fixed in regression-only mode by special dispense (see the PR).

From-SVN: r132070
2008-02-02 13:50:55 +00:00
Gerald Pfeifer
27f56cb1f2 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
From-SVN: r132069
2008-02-02 13:48:16 +00:00
Hans-Peter Nilsson
1c93d55727 * gcc.target/cris/torture/pr34773.c: Use __asm__, not asm.
From-SVN: r132064
2008-02-02 03:38:51 +00:00
Hans-Peter Nilsson
9a212bb7ac configure.ac: Enable fortran for cris-*-elf and crisv32-*-elf.
* configure.ac: Enable fortran for cris-*-elf and crisv32-*-elf.
	* configure: Regenerate.

From-SVN: r132063
2008-02-02 03:29:30 +00:00
GCC Administrator
b9600399eb Daily bump.
From-SVN: r132057
2008-02-02 00:17:02 +00:00
Hans-Peter Nilsson
3e836a310d re PR rtl-optimization/34773 (miscompilation of vfprintf_r)
PR rtl-optimization/34773
	* reg-notes.def (EQUAL): Mention significance of combination of
	REG_EQUAL and REG_RETVAL.
	* fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
	insn that has a REG_RETVAL.

From-SVN: r132053
2008-02-01 21:28:46 +00:00
Hans-Peter Nilsson
2449e8e5cd re PR rtl-optimization/34773 (miscompilation of vfprintf_r)
PR rtl-optimization/34773
	* gcc.target/cris/torture/pr34773.c: New test.

From-SVN: r132052
2008-02-01 21:28:06 +00:00
Marc Gauthier
aa12a57303 configure.ac (xtensa*-*-*): Recognize processor variants.
2008-01-31  Marc Gauthier  <marc@tensilica.com>
	* configure.ac (xtensa*-*-*): Recognize processor variants.
	* configure: Regenerate.

From-SVN: r132048
2008-02-01 18:31:59 +00:00
Roger Sayle
d5be1dd4e6 re PR bootstrap/33781 ("Arg list too long" building libgcc.a)
PR bootstrap/33781
	* configure.ac (--enable-fixed-point): Disable unless explicitly
	requested on IRIX.
	* configure: Regenerate.

From-SVN: r132047
2008-02-01 17:41:48 +00:00
Nick Clifton
400d7a822c * lib/target-supports.exp (check_profiling_available): Do not expect profiling to work on the xstormy16 target.
From-SVN: r132002
2008-02-01 16:39:11 +00:00
Joseph Myers
0d7bcd0f35 * cpplib.pot: Regenerate.
From-SVN: r132001
2008-02-01 16:26:03 +00:00
Joseph Myers
f91bb3ab72 * gcc.pot: Regenerate.
From-SVN: r132000
2008-02-01 16:25:00 +00:00
Richard Guenther
7c9c2f2a5b re PR other/35042 (Documentation for -finline-limit is incorrect)
2008-02-01  Richard Guenther  <rguenther@suse.de>

	PR other/35042
	* invoke.texi (-finline-limit): Remove no longer true parts
	of the documentation.  Note that there is no default value.

From-SVN: r131998
2008-02-01 10:14:08 +00:00
Uros Bizjak
efa3212285 re PR testsuite/35047 (some vectorisation tests fail with --with-arch=core2 or on i386-apple-darwin8.11.1)
PR testsuite/35047
	* gcc.c-torture/execute/20050316-2.x: New file.
	* gcc.target/i386/pr17390.c: Update scan pattern.
	* gcc.dg/builtin-apply4.c: Add -mno-mmx for 32bit x86 targets.
	* g++.dg/tree-ssa/ivopts-1.C: Remove XPASS for x86 targets.

From-SVN: r131997
2008-02-01 09:57:11 +01:00
Andrew Pinski
a18c20ec9a re PR c/29326 (__builtin_trap is not documented)
PR c/29326
	* doc/extend.texi (Other Builtins): Document.

Co-Authored-By: Ben Elliston <bje@au.ibm.com>
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>

From-SVN: r131996
2008-02-01 12:41:27 +11:00
GCC Administrator
e529992b9c Daily bump.
From-SVN: r131993
2008-02-01 00:17:23 +00:00
John David Anglin
3b1016ba65 compile: Make executable.
* compile: Make executable.

From-SVN: r131988
2008-02-01 00:06:00 +00:00
Tom Browder
dc9a511d8e c-tree.texi (Types): Fix grammar.
* doc/c-tree.texi (Types): Fix grammar.
	(Expression trees): Ditto.
	* doc/passes.texi (Tree-SSA passes): Ditto.

	* doc/configterms.texi (Configure Terms): Fix typo.
	* doc/cpp.texi (Common Predefined Macros): Ditto.
	* doc/md.texi (Machine Constraints): Ditto.

	* doc/makefile.texi (Makefile): Add comma.

From-SVN: r131987
2008-01-31 23:59:46 +00:00
Tom Browder
5dc81ee998 sourcebuild.texi (Front End): Remove references to CVS and CVSROOT/modules.
* doc/sourcebuild.texi (Front End): Remove references to CVS
	and CVSROOT/modules.
	(Texinfo Manuals): Replace reference to CVS by one to SVN.
	(Back End): Remove reference to CVS.

Co-Authored-By: Gerald Pfeifer <gerald@pfeifer.com>

From-SVN: r131986
2008-01-31 23:58:50 +00:00
Paul Thomas
db39d0c23d re PR fortran/34910 (ICE on invalid assignments in doubly-contained functions)
2008-01-31  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34910
	* expr.c (gfc_check_assign): It is an error to assign
	to a sibling procedure.

2008-01-31  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34910
	* gfortran.dg/proc_assign_2.f90: New test.

From-SVN: r131985
2008-01-31 22:20:47 +00:00
Douglas Gregor
0451301c59 re PR c++/34935 (ICE with attribute may_alias)
2008-01-31  Douglas Gregor  <doug.gregor@gmail.com>
           Jakub Jelinek  <jakub@redhat.com>

       PR c++/34935
       PR c++/34936
       * typeck.c (structural_comptypes): Handle comparisons of
       VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, FIXED_POINT_TYPE, and
       REAL_TYPE nodes.
       * mangle.c (write_builtin_type): Map down to the canonical type,
       which will be one of the predefined type nodes.

2008-01-31  Douglas Gregor  <doug.gregor@gmail.com>
           Jakub Jelinek  <jakub@redhat.com>

       PR c++/34935
       PR c++/34936
       * g++.dg/ext/alias-canon.C: New.
       * g++.dg/ext/alias-mangle.C: New.
	

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

From-SVN: r131984
2008-01-31 20:06:33 +00:00