Commit Graph

91076 Commits

Author SHA1 Message Date
Kai Tietz
4576913435 function.c (aggregate_value_p): Get fntype from CALL_EXPR in any case.
2008-12-09  Kai Tietz  <kai.tietz@onevision.com>

	PR/38366
	* function.c (aggregate_value_p): Get fntype from CALL_EXPR in any
	case.
	* calls.c (nitialize_argument_information): Add fntype argument 
	and use it for calls.promote_function_args.
        (expand_call): Pass fntype to aggregate_value_p if no fndecl
	available and pass additional fntype to
	initialize_argument_information.
	* config/i386/i386.c (ix86_reg_parm_stack_space): Remove cfun part
	to get function abi type.
	(init_cumulative_args): Use for abi kind detection fntype, when no
	fndecl is available.

From-SVN: r142584
2008-12-09 10:14:28 +01:00
Andreas Krebbel
f2dc2f86ae 2008-12-09 Andreas Krebbel <krebbel1@de.ibm.com>
* config/s390/s390.md (movti, movdi_64, movdi_31,
	  *movsi_zarch, *movhi, *movqi, *mov<mode>_64, *mov<mode>_31,
	  *mov<mode>_64dfp, *mov<mode>_64, *mov<mode>_31, mov<mode>): Remove
	  Q->Q alternative.
	  (Integer->BLKmode splitter): Removed.

From-SVN: r142583
2008-12-09 09:05:06 +00:00
Uros Bizjak
13a4e57765 alpha.c (alpha_set_memflags): Process memory references in full insn sequence.
* config/alpha/alpha.c (alpha_set_memflags): Process memory
	references in full insn sequence.

From-SVN: r142581
2008-12-09 08:16:57 +01:00
Jason Merrill
c69c7be10b re PR c++/38410 (g++.dg/eh/crossjump1.C (internal compiler error))
PR c++/38410
        * gimplify.c (gimplify_init_constructor): Don't write out a static
        copy of the CONSTRUCTOR for TREE_ADDRESSABLE types or small sparse
        initializers.

From-SVN: r142580
2008-12-09 01:04:50 -05:00
Ben Elliston
c6c2b18db9 emutls.c (__emutls_get_address): Prototype.
* emutls.c (__emutls_get_address): Prototype.
	(__emutls_register_common): Likewise.

From-SVN: r142579
2008-12-09 15:57:32 +11:00
Tobias Grosser
e45ade7e2e re PR middle-end/38084 ([graphite] ICE : in build_graphite_scops, at graphite.c:1829)
2008-12-09 Tobias Grosser  <grosser@fim.uni-passau.de>

	PR middle-end/38084
	Fix testsuite/gfortran.dg/graphite/id-3.f90.
	* graphite.c (scopdet_basic_block_info): Fix bug that found some
	regions more than once.
	* testsuite/gfortran.dg/graphite/id-3.f90: New.
	* gcc/testsuite/gcc.dg/graphite/pr38084.c: New.

From-SVN: r142578
2008-12-09 04:43:24 +00:00
Ben Elliston
b16ef77983 * config/dfp-bit.c (DFP_TO_INT): Remove unnecessary cast.
From-SVN: r142577
2008-12-09 15:20:19 +11:00
Ben Elliston
b4679197db * config/rs6000/darwin-ldouble.c (fmsub): Remove unused variable, v.
From-SVN: r142576
2008-12-09 14:36:47 +11:00
Jerry DeLisle
9f309df283 re PR fortran/38430 (gfortran.dg/streamio_1.f90, 10, 14, 2, 6 now fails)
2008-12-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/38430
	* io/transfer.c (data_transfer_init): Move constraint check for REC=
	and STREAM access into condition for other REC= constraints to simplify.
	Comment out this constraint to avoid breaking compatibility with 4.3
	until later.  Added a TODO for above comment and this one.
	Fix test for max pos.

From-SVN: r142575
2008-12-09 03:19:09 +00:00
GCC Administrator
3033db1a6d Daily bump.
From-SVN: r142572
2008-12-09 00:17:18 +00:00
Steve Ellcey
39a5cfa492 ia64.md (UNSPECV_GOTO_RECEIVER): New constant.
* config/ia64/ia64.md (UNSPECV_GOTO_RECEIVER): New constant.
	(nonlocal_goto_receiver): New instruction.

From-SVN: r142568
2008-12-08 23:25:51 +00:00
Uros Bizjak
3e33a6b21c ChangeLog: Fix small typo.
* ChangeLog: Fix small typo.
	* testsuite/ChangeLog: Ditto.

From-SVN: r142565
2008-12-08 22:43:40 +01:00
Uros Bizjak
1f63d0598e fix-r10000-6.c: Add dg-message to look for the note about changed semantics of NAND builtin.
* gcc.target/mips/fix-r10000-6.c: Add dg-message to look for
	the note about changed semantics of NAND builtin.
	* gcc.target/mips/fix-r10000-6.c: Ditto.
	* gcc.target/mips/atomic-memory-1.c: Ditto.
	(main): Correct __sync_nand_and_fetch results.

From-SVN: r142564
2008-12-08 22:42:15 +01:00
Steve Ellcey
9bebdb76f2 * decl2.c (mark_used): Remove assemble_external call.
From-SVN: r142563
2008-12-08 19:27:26 +00:00
Dodji Seketeli
2ac1e975bc re PR debug/38390 (Missing DW_TAG_imported_module)
gcc/cp/ChangeLog:
2008-12-07  Dodji Seketeli  <dodji@redhat.com>

        PR debug/38390
        * name-lookup.c (kept_level_p): Don't forget the case of levels
          having using directives.

gcc/testsuite/ChangeLog:
2008-12-07  Dodji Seketeli  <dodji@redhat.com>

        PR debug/38390
        * g++.dg/debug/dwarf2/imported-module-2.C: New test.

From-SVN: r142562
2008-12-08 20:00:46 +01:00
Steve Ellcey
1869b827ec * g++.dg/other/packed1.C: Remove ia64-hp-hpux* XFAIL.
From-SVN: r142561
2008-12-08 18:34:59 +00:00
Steve Ellcey
f9b527fa9d versionid-1.c (dg-final): Fix syntax.
* gcc.target/ia64/versionid-1.c (dg-final): Fix syntax.
	* gcc.target/ia64/versionid-2.c (dg-final): Ditto.

From-SVN: r142560
2008-12-08 18:23:14 +00:00
Jakub Jelinek
fb38d8d2e3 re PR c/35443 (Completely broken diagnostic with bind_expr)
PR c/35443
	* c-pretty-print.c (pp_c_expression): Handle BIND_EXPR.

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

From-SVN: r142559
2008-12-08 19:04:58 +01:00
Jakub Jelinek
4e37eb44ce re PR c/35442 (Completely broken diagnostic with view_convert_expr)
PR c/35442
	* c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
	VIEW_CONVERT_EXPR the same as CASE_CONVERT.

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

From-SVN: r142558
2008-12-08 19:03:40 +01:00
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