Commit Graph

91138 Commits

Author SHA1 Message Date
Joseph Myers
60dc4d2c24 * id.po: Update.
From-SVN: r142524
2008-12-06 18:02:38 +00:00
Ben Elliston
dc830217e8 gthr-single.h (__gthread_once): Adjust prototype to match all other gthreads models.
* gthr-single.h (__gthread_once): Adjust prototype to match all
	other gthreads models.

From-SVN: r142523
2008-12-07 00:32:29 +11:00
Jakub Jelinek
6612aaaeee i386.c (override_options): Use CPU_AMDFAM10 instead of PROCESSOR_AMDFAM10 for barcelona's schedule.
* config/i386/i386.c (override_options): Use CPU_AMDFAM10
	instead of PROCESSOR_AMDFAM10 for barcelona's schedule.

From-SVN: r142522
2008-12-06 13:47:51 +01:00
Jakub Jelinek
b77856544b re PR middle-end/38422 (union/bitfield causes cc1/cc1plus to run out of memory.)
PR middle-end/38422
	* fold-const.c (fold_unary) <CASE_CONVERT>: Don't convert MULT_EXPR
	operands to mult_type if it isn't narrower than op0's type.

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

From-SVN: r142521
2008-12-06 13:47:15 +01:00
Janus Weil
fb7ca5a762 re PR fortran/38415 (procedure pointer assignment to abstract interface)
2008-12-06  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/38415
	* expr.c (gfc_check_pointer_assign): Added a check for abstract
	interfaces in procedure pointer assignments, removed check involving
	gfc_compare_interfaces until PR38290 is fixed completely.


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

	PR fortran/38415
	* gfortran.dg/proc_ptr_2.f90: Extended.
	* gfortran.dg/proc_ptr_11.f90: Modified.

From-SVN: r142520
2008-12-06 13:15:49 +01:00
Paolo Carlini
22493a73d5 re PR libstdc++/38421 (libstdc++-v3/include/tr1/ell_integral.tcc contains __ea identifier)
2008-12-06  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/38421
	* include/tr1/ell_integral.tcc: Avoid __ea, future SPU badname.
	* doc/xml/manual/appendix_contributing.xml: Add __ea to the list
	of badnames.

From-SVN: r142519
2008-12-06 10:25:24 +00:00
Jan Hubicka
c0ee00211f re PR middle-end/38074 (missed inlining on Core2 Duo due to apparent wrong branch prediction/profile)
PR tree-optimization/38074
	* cgraphbuild.c (compute_call_stmt_bb_frequency): Fix handling of 0
	entry frequency.
	* predict.c (combine_predictions_for_bb): Ignore predictor predicting
	in both dirrection for first match heuristics.
	(tree_bb_level_predictions): Disable noreturn heuristic when there
	is no returning path.

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

From-SVN: r142517
2008-12-06 08:34:20 +00:00
Jerry DeLisle
abc79c3a6d re PR fortran/38291 (Rejects I/O with POS= if FMT=*)
2008-12-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/38291
	* gfortran.dg/streamio_16.f90: New test.

From-SVN: r142516
2008-12-06 04:17:31 +00:00
Jerry DeLisle
4c934d41d2 re PR fortran/38291 (Rejects I/O with POS= if FMT=*)
2008-12-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/38291
	* io.c (match_dt_element): Use dt->pos in matcher.
	(gfc_free_dt): Free dt->pos after use.
	(gfc_resolve_dt): Use dt->pos in resolution of stream position tag.

2008-12-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/38291
	* io/transfer.c (data_transfer_init): Add checks for POS= valid range.
	Add check for unit opened with ACCESS="stream". Flush and seek if
	current stream position does not match. Check ENDFILE on read.

From-SVN: r142515
2008-12-06 04:13:34 +00:00
Bernd Schmidt
a2a6f3cf6b re PR rtl-optimization/38272 (Revision 142207 caused libgomp.fortran/threadprivate2.f90)
2008-12-05  Bernd Schmidt  <bernd.schmidt@analog.com>

	PR rtl-optimization/38272
	* reload1.c (choose_reload_regs): Keep reload_spill_index correct
	in all cases.

From-SVN: r142514
2008-12-05 19:18:15 -08:00
GCC Administrator
d786db7d30 Daily bump.
From-SVN: r142511
2008-12-06 00:16:50 +00:00
Tom Tromey
b72b814f80 * include/tr1_impl/functional (_Mu): Fix typo.
From-SVN: r142507
2008-12-05 23:42:11 +00:00
Jakub Jelinek
5eddced53a re PR c++/35336 (Broken diagnostic: 'bit_field_ref' not supported by dump_expr)
PR c++/35336
	* c-pretty-print.c (pp_c_postfix_expression): Handle BIT_FIELD_REF.
	(pp_c_expression): Likewise.

	* error.c (dump_expr): Handle BIT_FIELD_REF.

	* g++.dg/other/error30.C: New test.

From-SVN: r142497
2008-12-05 22:10:16 +01:00
Janis Johnson
4f809983df target-supports.exp (check_effective_target_hard_dfp): New.
* lib/target-supports.exp (check_effective_target_hard_dfp): New.
	* gcc.dg/dfp/convert-dfp-round.c: Skip for hard_dfp.
	* gcc.dg/dfp/fe-binop.c: Ditto.
	* gcc.dg/dfp/fe-convert-1.c: Ditto.

From-SVN: r142494
2008-12-05 21:05:53 +00:00
Michael Meissner
13fa117156 PR c/38416, make pragma_kind 8 bits
From-SVN: r142493
2008-12-05 21:05:14 +00:00
Catherine Moore
00ad9a06d6 mips-nonpic: New testsuite.
2008-12-05  Catherine Moore  <clm@codesourcery.com>

        * gcc-target/mips/mips-nonpic: New testsuite.

From-SVN: r142492
2008-12-05 15:53:26 -05:00
Paolo Carlini
015daa3a7b re PR libstdc++/38399 (money_get<> read decimal point when frac_digits() <= 0)
2008-12-05  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/38399
	* include/bits/locale_facets_nonio.tcc (money_get<>::
	_M_extract(iter_type, iter_type, ios_base&, ios_base::iostate&,
	string&)): Fix, reject decimal point when frac_digits <= 0.
	* testsuite/22_locale/money_get/get/char/38399.cc: New.
	* testsuite/22_locale/money_get/get/wchar_t/38399.cc: Likewise.
	* testsuite/22_locale/money_get/get/char/5.cc: Adjust.
	* testsuite/22_locale/money_get/get/wchar_t/5.cc: Likewise.

From-SVN: r142487
2008-12-05 18:23:39 +00:00
Steve Ellcey
2503f730c9 re PR middle-end/28614 (gcc.c-torture/compile/20001226-1.c times out)
PR other/28614
	* gcc.c-torture/compile/20001226-1.c: Add dg-timeout-factor.
	* g++.dg/torture/pr31863.C: Ditto.

From-SVN: r142485
2008-12-05 17:04:27 +00:00
Jakub Jelinek
45dc13b919 re PR middle-end/37248 (regression transformation bitfield to individual bytes)
PR middle-end/37248
	* fold-const.c (make_bit_field_ref): Change bitpos and bitsize
	arguments to HOST_WIDE_INT.  If type has different signedness
	than unsignedp or different precision from bitsize, create
	the right type for BIT_FIELD_REF and cast to type.
	(fold_truthop): Change first_bit and end_bit to HOST_WIDE_INT.

	Revert:
	2008-03-05  Richard Guenther  <rguenther@suse.de>
	PR c++/35336
	* fold-const.c (fold_truthop): Remove code generating
	BIT_FIELD_REFs of structure bases.
	(fold_binary): Likewise.
	(make_bit_field_ref): Remove.
	(optimize_bit_field_compare): Remove.
	(all_ones_mask_p): Remove.

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

From-SVN: r142484
2008-12-05 17:59:34 +01:00
Jakub Jelinek
2d95ef974e tree-sra.c (sra_explode_bitfield_assignment): Always call unsigned_type_for...
* tree-sra.c (sra_explode_bitfield_assignment): Always
	call unsigned_type_for, if the precision is higher than
	needed, call build_nonstandard_integer_type.

From-SVN: r142483
2008-12-05 17:57:08 +01:00
Jakub Jelinek
997f78fb1d re PR debug/38367 (Wrong debug information for big endian function parameters)
PR debug/38367
	* function.c (assign_parm_find_stack_rtl): If promoted_mode
	is wider than DECL_MODE, adjust MEM_OFFSET (stack_parm) for
	big endian.

From-SVN: r142481
2008-12-05 17:53:39 +01:00
Jakub Jelinek
1f21b6f4ad re PR middle-end/38338 (__builtin_apply causes an ICE on x86)
PR middle-end/38338
	* builtins.c (expand_builtin_apply_args): Put before parm_birth_insn
	only if internal_arg_pointer is a non-virtual pseudo.

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

From-SVN: r142480
2008-12-05 17:52:16 +01:00
Joseph Myers
c187a21f76 rs6000.md (move_from_CR_gt_bit): Enable for TARGET_HARD_FLOAT && !TARGET_FPRS, not TARGET_E500.
* config/rs6000/rs6000.md (move_from_CR_gt_bit): Enable for
	TARGET_HARD_FLOAT && !TARGET_FPRS, not TARGET_E500.
	* config/rs6000/spe.md (e500_cr_ior_compare): Likewise.

testsuite:
	* gcc.target/powerpc/20081204-1.c: New test.

From-SVN: r142477
2008-12-05 16:09:12 +00:00
Jakub Jelinek
6fc4fb069d re PR tree-optimization/37716 (ice for legal C++ code with -O2 on 20080926)
PR tree-optimization/37716
	* gimplify.c (gimplify_expr): Allow COND_EXPR if
	gimplify_ctxp->allow_rhs_cond_expr.

From-SVN: r142476
2008-12-05 15:33:14 +01:00
Uros Bizjak
37fe763dee * Remove unintended commits.
From-SVN: r142475
2008-12-05 15:29:49 +01:00
Uros Bizjak
ec46190f11 alpha.c (alpha_fold_vector_minmax): Create VIEW_CONVERT_EXPR to convert output to long_integer_type_node.
* config/alpha/alpha.c (alpha_fold_vector_minmax): Create
	VIEW_CONVERT_EXPR to convert output to long_integer_type_node.

	(alpha_emit_conditional_branch): Do not generate direct branch
	for UNORDERED comparisons.

From-SVN: r142474
2008-12-05 15:22:48 +01:00
Andreas Schwab
a4ab962917 linux-unwind.h (frob_update_context): Check for NULL lr.
* config/rs6000/linux-unwind.h (frob_update_context): Check for
NULL lr.

From-SVN: r142473
2008-12-05 13:57:45 +00:00
Paolo Carlini
118f7432df re PR libstdc++/38411 (Revision 142439 caused 22_locale/locale/cons/7.cc execution test)
2008-12-05  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/38411
	* testsuite/22_locale/numpunct/members/char/2.cc: Use is_IS instead
	of fr_FR.
	* testsuite/22_locale/numpunct/members/wchar_t/2.cc: Likewise.
	* testsuite/22_locale/locale/cons/7.cc: Likewise.

From-SVN: r142472
2008-12-05 13:07:53 +00:00
Richard Guenther
6c6b3b2b70 re PR testsuite/38406 (Revision 142437 caused gcc.dg/Wstrict-aliasing-converted-assigned.c)
2008-12-05  Richard Guenther  <rguenther@suse.de>

	PR testsuite/38406
	* gcc.dg/Wstrict-aliasing-converted-assigned.c: Restrict PTA
	alias warning to lp64 targets.

From-SVN: r142471
2008-12-05 11:59:21 +00:00
Eric Botcazou
9ff4a9dade Fix dates.
From-SVN: r142470
2008-12-05 11:46:36 +00:00
Jakub Jelinek
ea6dafb028 re PR c/38408 (compilation error during bootstrap in fold-const.c using TOT!)
PR c/38408
	* fold-const.c (fold_checksum_tree): Change buf type to union
	tree_node.

From-SVN: r142468
2008-12-05 09:51:36 +01:00
Jakub Jelinek
250d2fb5b2 re PR bootstrap/38262 (GCC components unnecessarily link with shared gmp/mpfr)
PR bootstrap/38262
	Fixup ChangeLog entries.

From-SVN: r142466
2008-12-05 09:50:47 +01:00
Eric Botcazou
3108c7b6f0 * gcc.dg/union-5.c: Run only on x86 and x86-64.
From-SVN: r142465
2008-12-05 08:50:36 +00:00
Sebastian Pop
f773bb8482 re PR bootstrap/38262 (GCC components unnecessarily link with shared gmp/mpfr)
2008-11-07  Sebastian Pop  <sebastian.pop@amd.com>

	PR bootstrap/38262
	* java/Make-lang.in (jc1): Add BACKENDLIBS, remove GMPLIBS.
	* objc/Make-lang.in (cc1obj-dummy, cc1obj): Same.
	* objcp/Make-lang.in (cc1objplus-dummy, cc1objplus): Same.
	* cp/Make-lang.in (cc1plus-dummy, cc1plus): Same.
	* ada/gcc-interface/Make-lang.in (gnat1): Same.
	* fortran/Make-lang.in (f951): Same.
	* Makefile.in (LIBS): Remove GMPLIBS, CLOOGLIBS and PPLLIBS.
	(BACKENDLIBS): New.
	(cc1-dummy, cc1): Add BACKENDLIBS, remove GMPLIBS.

From-SVN: r142464
2008-12-05 08:01:58 +00:00
Jerry DeLisle
1388cd925a re PR fortran/38285 (Wrong I/O output: Interaction between F and P for output)
2008-12-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/38285
	gfortran.dg/fmt_f_an_p.f: New test.

From-SVN: r142456
2008-12-05 04:11:28 +00:00
Jerry DeLisle
e318b7602b re PR fortran/38285 (Wrong I/O output: Interaction between F and P for output)
2008-12-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/38285
	* write_float.def (WRITE_FLOAT): Zero the float value for special case
	only if	scale_factor = 0.

From-SVN: r142455
2008-12-05 04:07:45 +00:00
GCC Administrator
cd8235c00e Daily bump.
From-SVN: r142453
2008-12-05 00:16:52 +00:00
Ben Elliston
922f290804 c-parser.c (c_parser_enum_specifier): Initialise ident_loc and comma_loc.
* c-parser.c (c_parser_enum_specifier): Initialise ident_loc and
	comma_loc.
	(c_parser_initelt): Initialise des_loc and ellipsis_loc.

From-SVN: r142448
2008-12-05 09:44:02 +11:00
Eric Botcazou
f5f8d79dec cse.c (lookup_as_function): Delete mode frobbing code.
* cse.c (lookup_as_function): Delete mode frobbing code.
	(equiv_constant): Re-implement it there for SUBREGs.

Co-Authored-By: Gary Funck <gary@intrepid.com>

From-SVN: r142443
2008-12-04 21:47:13 +00:00
Jason Merrill
f782c65c3d re PR c++/37906 (has_trivial_default_constructor vs. deleted copy ctor)
PR c++/37906
        * decl.c (grok_special_member_properties): Set TYPE_HAS_COMPLEX_DFLT
        here.
        * class.c (check_bases_and_members): Rather than assuming any
        user-declared default constructor is complex here.

From-SVN: r142442
2008-12-04 14:00:03 -05:00
Paolo Carlini
1d9aba8105 re PR libstdc++/38368 (locale(const char* std_name) may create locale with broken facets)
2008-12-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/38368
	* config/locale/gnu/numeric_members.cc (numpunct<char>::
	_M_initialize_numpunct, numpunct<wchar_t>::_M_initialize_numpunct):
	Fix for THOUSANDS_SEP == '\0' consistently with "C" locale.
	* config/locale/gnu/monetary_members.cc (moneypunct<char, true>::
	_M_initialize_moneypunct, moneypunct<char, false>::
	_M_initialize_moneypunct, moneypunct<wchar_t, true>::
	_M_initialize_moneypunct, moneypunct<wchar_t, false>::
	_M_initialize_moneypunct): Fix for __MON_DECIMAL_POINT == '\0' or
	__MON_THOUSANDS_SEP == '\0' consistently with "C" locale.
	* testsuite/22_locale/locale/cons/38368.cc: New.

From-SVN: r142439
2008-12-04 17:16:27 +00:00
Richard Guenther
ce1b649802 re PR middle-end/36509 (gcc.dg/Wstrict-aliasing-float-ptr-int-obj.c)
2008-12-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/36509
	PR c++/38334
	* Makefile.in (tree-ssa-alias-warnings.o): Remove.
	(tree-ssa-structalias.o): Remove errors.h dependency.
	(tree-ssa-reassoc.o): Likewise.
	* tree-ssa-reassoc.c: Do not include errors.h.
	* tree-ssa-alias-warnings.c: Remove.
	* tree-ssa-alias.c (compute_may_aliases): Remove call to
	strict_aliasing_warning_backend.
	* tree-ssa-structalias.c (emit_pointer_definition): New function.
	(emit_alias_warning): Likewise.
	(set_uids_in_ptset): Warn for clear cases of type-punning.
	* tree-inline.c (remap_gimple_op_r): Preserve TREE_NO_WARNING
	on INDIRECT_REFs.

	cp/
	* typeck.c (get_member_function_from_ptrfunc): Mark the vtbl
	pointer access with TREE_NO_WARNING.

	* gcc.dg/Wstrict-aliasing-float-ptr-int-obj.c: Adjust, remove XFAIL.
	* gcc.dg/Wstrict-aliasing-converted-assigned.c: Adjust.
	* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Likewise.

From-SVN: r142437
2008-12-04 15:55:25 +00:00
Eric Botcazou
a4781348e2 * cse.c (equiv_constant): Fix pasto.
From-SVN: r142432
2008-12-04 11:44:41 +00:00
Nick Clifton
5ab9749e29 stormy16.md: Remove extraneous spaces and quotes.
* config/stormy16/stormy16.md: Remove extraneous spaces and
        quotes.
        * config/stormy16/stormy16.c: Remove extraneous spaces and fix up
        formatting of quotes.

From-SVN: r142431
2008-12-04 10:11:50 +00:00
Jakub Jelinek
5cf9684138 re PR middle-end/38371 (Fold check error during bootstrap)
PR middle-end/38371
	* fold-const.c (fold_checksum_tree): Allow modification of
	TYPE_NEXT_VARIANT.

From-SVN: r142430
2008-12-04 10:33:27 +01:00
H.J. Lu
dc540ffd68 badalloc1.C: Add the missing "}".
2008-12-03  H.J. Lu  <hongjiu.lu@intel.com>

	* g++.old-deja/g++.eh/badalloc1.C: Add the missing "}".

From-SVN: r142428
2008-12-03 22:25:04 -08:00
Jack Howarth
c9874cc013 configure.ac: Add double brackets on darwin[912].
2008-12-04  Jack Howarth  <howarth@bromo.med.uc.edu>

        * configure.ac: Add double brackets on darwin[912].
        * configure: Regenerate.

From-SVN: r142427
2008-12-04 07:17:50 +01:00
Jack Howarth
25783c3001 configure.ac: Add double brackets on darwin[912].
2008-12-04  Jack Howarth  <howarth@bromo.med.uc.edu>

        * configure.ac: Add double brackets on darwin[912].
        * configure: Regenerate.

From-SVN: r142426
2008-12-04 07:17:13 +01:00
GCC Administrator
eefaa99a00 Daily bump.
From-SVN: r142421
2008-12-04 00:17:00 +00:00
Jason Merrill
8f540f0695 re PR c++/38232 ("value-initialization of reference" warning too strict)
PR c++/38232
        * init.c (build_value_init): Do initial zero-initialization
        of a class with an implicitly-defined constructor using
        build_zero_init rather than in build_value_init.
        (build_value_init_1): Fold into build_value_init.

From-SVN: r142418
2008-12-03 18:57:19 -05:00