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
Janis Johnson
c39d1b46ff
* g++.old-deja/g++.eh/badalloc1.C: Reinstate XFAIL for Darwin 3-7.
...
From-SVN: r142417
2008-12-03 23:41:46 +00:00
Jack Howarth
ed34ac87e5
badalloc1.C: Omit XFAIL on obsolete Darwin.
...
2008-12-03 Jack Howarth <howarth@bromo.med.uc.edu>
* g++.old-deja/g++.eh/badalloc1.C: Omit XFAIL on obsolete Darwin.
From-SVN: r142415
2008-12-03 23:28:00 +00:00
Jason Merrill
64e12c68ef
re PR c++/38256 (ICE with "operator auto")
...
PR c++/38256
* parser.c (cp_parser_conversion_type_id): Diagnose
'operator auto' here.
* decl.c (grokdeclarator): Not here.
From-SVN: r142410
2008-12-03 16:42:22 -05:00
Daniel Kraft
0e318fccb8
MAINTAINERS: Moved myself and Mikael Morin from Write After Approval to Reviewer section...
...
2008-12-03 Daniel Kraft <d@domob.eu>
* MAINTAINERS: Moved myself and Mikael Morin from Write After
Approval to Reviewer section (for Fortran front-end).
From-SVN: r142408
2008-12-03 22:37:43 +01:00
Jason Merrill
27fb09b78e
re PR c++/38380 (explicitly defaulted constructors vs. empty direct initialization)
...
PR c++/38380
* decl.c (grokdeclarator): Only set DECL_NONCONVERTING_P
on explicit constructors.
* pt.c (tsubst_copy_and_build) [CONSTRUCTOR]: Propagate
CONSTRUCTOR_IS_DIRECT_INIT.
From-SVN: r142404
2008-12-03 14:22:08 -05:00
Jason Merrill
6efe1abf4c
fix markup
...
From-SVN: r142401
2008-12-03 12:49:15 -05:00
Jakub Jelinek
f6ab27bb6d
re PR middle-end/38360 (ICE in gimple_op, at gimple.h:1636)
...
PR middle-end/38360
* tree-ssa-ccp.c (ccp_fold_builtin): Bail out if the builtin doesn't
have the right number of arguments.
* gcc.c-torture/compile/pr38360.c: New test.
From-SVN: r142399
2008-12-03 17:57:44 +01:00
Richard Guenther
050bbfebe2
re PR middle-end/36326 (gimplification of aggregate copies introduces extra aggregate copy)
...
2008-12-03 Richard Guenther <rguenther@suse.de>
PR middle-end/36326
* gimplify.c (is_gimple_mem_or_call_rhs): Remove work-around for
non-BLKmode types.
* gcc.dg/tree-ssa/pr36326.c: New testcase.
From-SVN: r142396
2008-12-03 15:10:03 +00:00
Tomas Bily
cea1b9ebee
pr38250.c: New file.
...
* testsuite/gcc.dg/tree-ssa/pr38250.c: New file.
--This list and those below, will be ignored--
A gcc/testsuite/gcc.dg/tree-ssa/pr38250.c
From-SVN: r142395
2008-12-03 14:43:12 +01:00
Tomas Bily
3661e89978
re PR middle-end/38250 (ICE with -O2 -ftree-loop-distribution)
...
PR middle-end/38250
* tree-loop-distribution.c (build_size_arg): New function.
(generate_memset_zero): Checks if DR_STEP(de) is NULL.
Reorganized generating of stmts.
* testsuite/gcc.dg/tree-ssa/pr38250.c: New file.
* tree-data-ref.c (dr_analyze_innermost): Returns bool.
Indicate if analysis succeed.
* tree-data-ref.h (dr_analyze_innermost): Returns bool.
* tree-predcom.c (valid_initializer_p, find_looparound_phi):
Uses new definition of dr_analyze_innermost.
From-SVN: r142394
2008-12-03 14:35:13 +01:00
Ben Elliston
f11d2f1e7e
* tree-ssa-pre.c (do_regular_insertion): Initialise edoubleprime.
...
From-SVN: r142393
2008-12-03 23:29:23 +11:00
Jakub Jelinek
ff1fe45737
re PR tree-optimization/37716 (ice for legal C++ code with -O2 on 20080926)
...
PR tree-optimization/37716
* tree-sra.c (sra_build_assignment): For scalar bitfield SRC construct
all the needed operations as trees and gimplify_assign it to dst.
* g++.dg/torture/pr37716.C: New test.
From-SVN: r142392
2008-12-03 13:27:48 +01:00
Eric Botcazou
d5fdc62c3f
* gcc.dg/torture/pr37868.c: Skip on the SPARC.
...
From-SVN: r142390
2008-12-03 11:18:32 +00:00
Jakub Jelinek
6e97481b15
re PR target/37610 (FAIL: g++.dg/eh/pr29166.C execution test)
...
PR target/37610
* configure.ac (gcc_cv_readelf): Look for readelf.
(gcc_cv_as_cfi_advance_working): Check for working
cfi advances with code alignment factor > 1.
(HAVE_GAS_CFI_DIRECTIVE): Don't define if cfi advances
don't work properly.
* configure: Regenerated.
From-SVN: r142389
2008-12-03 10:09:43 +01:00
Eric Botcazou
0ce2b2991c
re PR rtl-optimization/38281 (segmentation fault with optimization enabled)
...
PR rtl-optimization/38281
* combine.c (distribute_notes): When invoking SET_INSN_DELETED on i2,
set it to NULL_RTX afterwards.
* emit-rtl.c (set_insn_deleted): Fix formatting.
Co-Authored-By: Andrew Pinski <andrew_pinski@playstation.sony.com>
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r142388
2008-12-03 08:40:50 +00:00
Janus Weil
396315d951
MAINTAINERS (Reviewers): Add myself as Fortran reviewer.
...
2008-12-03 Janus Weil <janus@gcc.gnu.org>
* MAINTAINERS (Reviewers): Add myself as Fortran reviewer.
(Write After Approval): Remove myself.
From-SVN: r142387
2008-12-03 09:16:24 +01:00