Richard Henderson
179d2f74d4
re PR middle-end/38240 (Vector type definitions not compatible with attribute target)
...
PR 38240
* tree.h (TYPE_MODE): Invoke vector_type_mode when needed.
(SET_TYPE_MODE): New.
* c-decl.c (parser_xref_tag): Use it.
(finish_enum): Likewise.
* tree.c (build_pointer_type_for_mode): Likewise.
(build_reference_type_for_mode, build_index_type): Likewise.
(build_range_type, make_vector_type): Likewise.
(build_common_tree_nodes_2): Likewise.
* stor-layout.c (compute_record_mode): Likewise.
(finalize_type_size, layout_type, make_fract_type): Likewise.
(make_accum_type, initialize_sizetypes): Likewise.
(vector_type_mode): New.
* function.c (allocate_struct_function): Call
invoke_set_current_function_hook before querying anything else.
* config/i386/i386.c (ix86_valid_target_attribute_inner_p): Add avx.
cp/
* class.c (finish_struct_bits): Use SET_TYPE_MODE.
* decl.c (record_unknown_type): Likewise.
(start_enum, finish_enum): Likewise.
From-SVN: r142556
2008-12-08 09:12:55 -08:00
Luis Machado
be6568d8c6
alias.c (find_base_term): Synch LO_SUM handling with what find_base_value does.
...
2008-12-08 Luis Machado <luisgpm@br.ibm.com>
* alias.c (find_base_term): Synch LO_SUM handling with what
find_base_value does.
From-SVN: r142553
2008-12-08 09:05:08 -06:00
Luis Machado
41e9641b89
* MAINTAINERS: Add myself to the write after approval list.
...
From-SVN: r142552
2008-12-08 15:03:38 +00:00
Andrew Haley
cb4ad1803b
gimple.h (gimple_build_try): Fix declaration.
...
2008-12-08 Andrew Haley <aph@redhat.com>
Kamaraju Kusumanchi <raju.mailinglists@gmail.com>
* gimple.h (gimple_build_try): Fix declaration.
* builtins.c (fold_builtin_sqrt): Don't use a conditional
operator.
* fixed-value.c (do_fixed_add): Likewise.
* tree-ssa-loop-ivopts.c (iv_ca_cost): Likewise.
Co-Authored-By: Kamaraju Kusumanchi <raju.mailinglists@gmail.com>
From-SVN: r142549
2008-12-08 12:30:24 +00:00
Paolo Carlini
a5d137be06
[multiple changes]
...
2008-12-08 Paolo Carlini <paolo.carlini@oracle.com>
* include/tr1_impl/cmath: Undef requof / remquol too; add using
declarations.
* acinclude.m4 [GLIBCXX_CHECK_C99_TR1]: Check remquof / remquol too.
* testsuite/tr1/8_c_compatibility/cmath/functions.cc: Adjust.
* configure: Regenerate.
2008-12-08 Edward Smith-Rowland <3dw4rd@verizon.net>
* include/bits/forward_list.h: Fixed spurious "forward_swap" in doxy.
From-SVN: r142548
2008-12-08 11:51:32 +00:00
Jakub Jelinek
d9c194cb9e
re PR middle-end/36802 (pop_gimplify_context ICE using openmp task construct)
...
PR middle-end/36802
* omp-low.c (use_pointer_for_field): Only call maybe_lookup_decl
on parallel and task contexts.
* testsuite/libgomp.c/pr36802-1.c: New test.
* testsuite/libgomp.c/pr36802-2.c: New test.
* testsuite/libgomp.c/pr36802-3.c: New test.
From-SVN: r142546
2008-12-08 11:36:01 +01:00
GCC Administrator
4e1e3eda6b
Daily bump.
...
From-SVN: r142544
2008-12-08 00:16:59 +00:00
Eric Botcazou
13f95bdb92
* gimple.c (recalculate_side_effects) <tcc_constant>: New case.
...
From-SVN: r142541
2008-12-07 23:27:14 +00:00
Richard Guenther
e61451e843
re PR tree-optimization/38405 ((silent failure) handling bitfield in ternary)
...
2008-12-07 Richard Guenther <rguenther@suse.de>
PR tree-optimization/38405
* tree-vrp.c (simplify_truth_ops_using_ranges): Make sure to
not sign-extend truth values.
From-SVN: r142539
2008-12-07 20:33:07 +00:00
H.J. Lu
2abffaa239
re PR tree-optimization/38405 ((silent failure) handling bitfield in ternary)
...
2008-12-07 H.J. Lu <hongjiu.lu@intel.com>
PR tree-optimization/38405
* gcc.dg/torture/pr38405.c: New.
From-SVN: r142538
2008-12-07 08:43:15 -08:00
Eric Botcazou
a6b15ad077
tree-sra.c (scalarize_use): Create another temporary with the proper type for signed types in the use_all...
...
* tree-sra.c (scalarize_use): Create another temporary with the proper
type for signed types in the use_all && !is_output bitfield case.
From-SVN: r142537
2008-12-07 13:04:57 +00:00
Jerry DeLisle
0717bfbd17
re PR fortran/38425 (I/O: POS= compile-time diagnostics)
...
2008-12-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/38425
* gfortran.dg/io_constraints_5.f90: New test.
From-SVN: r142535
2008-12-07 01:15:46 +00:00
Jerry DeLisle
f5c64803b9
re PR fortran/38425 (I/O: POS= compile-time diagnostics)
...
2008-12-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/38425
* io.c (check_io_constraints): Check constraints on REC=, POS=, and
internal unit with POS=. Fix punctuation on a few error messages.
From-SVN: r142534
2008-12-07 01:10:42 +00:00
GCC Administrator
1dff2af7df
Daily bump.
...
From-SVN: r142532
2008-12-07 00:16:48 +00:00
Steven Bosscher
240b5ceab9
re PR rtl-optimization/36365 (Hang in df_analyze)
...
PR rtl-optimization/36365
* df-core.c (df_worklist_dataflow_overeager): Remove.
(df_worklist_dataflow): Don't call it, use double-queue only.
* params.def (PARAM_DF_DOUBLE_QUQUQ_THRESHOLD_FACTOR): Remove.
From-SVN: r142529
2008-12-06 22:52:43 +00:00
Jerry DeLisle
97b14ba880
re PR fortran/38291 (Rejects I/O with POS= if FMT=*)
...
2008-12-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/38291
* io/transfer.c (data_transfer_init): Add fbuf_flush inadvertently
ommitted. Add check for invalid use of REC= with ACCESS="stream". Fix
comment.
From-SVN: r142528
2008-12-06 21:53:11 +00:00
Jakub Jelinek
f11bea25dd
re PR middle-end/38428 (ice for Linux kernel code with -O2)
...
PR middle-end/38428
* tree-ssa-operands.c (get_expr_operands) <case BIT_FIELD_REF>: Set
gimple_set_has_volatile_ops if the BIT_FIELD_REF is volatile.
* gcc.c-torture/compile/pr38428.c: New test.
From-SVN: r142527
2008-12-06 22:06:43 +01:00
Adam Nemet
8b86bdbc02
* runtime/main.c (store_exe_path): Don't crash if argv0 is NULL.
...
From-SVN: r142526
2008-12-06 18:07:43 +00:00
Joseph Myers
230f375563
* nl.po, sv.po: Update.
...
From-SVN: r142525
2008-12-06 18:03:27 +00:00
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