Commit Graph

91084 Commits

Author SHA1 Message Date
Mikael Morin
fe7a047c75 re PR fortran/35983 (C_LOC in derived type constructor gives weird result)
2008-12-09  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/35983
	* trans-expr.c (gfc_trans_subcomponent_assign):
	Add se's pre and post blocks to current block.
	(gfc_trans_structure_assign): Remove specific handling
	of C_NULL_PTR and C_NULL_FUNPTR.

2008-12-09  Mikael Morin  <mikael.morin@tele2.fr>

	PR fortran/35983
	* gfortran.dg/pr35983.f90: New test.

From-SVN: r142605
2008-12-09 19:12:27 +00:00
H.J. Lu
b922b5ae32 re PR testsuite/38420 (gcc.target/i386/pr37248-2.c doesn't work on ia32)
2008-12-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/38420
	* gcc.target/i386/pr37248-2.c: Support hex dump on 32bit host.
	* gcc.target/i386/pr37248-3.c: Likewise.

From-SVN: r142601
2008-12-09 09:38:09 -08:00
Jan Hubicka
0e7f7d876b * predict.c (estimate_bb_frequencies): Fix test if profile is present.
From-SVN: r142600
2008-12-09 17:04:26 +00:00
Steve Ellcey
53873346f1 re PR testsuite/37326 (gcc.dg/tree-ssa/ssa-store-ccp-3.c scan-tree-dump-times optimized "conststaticvariable" 1)
PR testsuite/37326
	* gcc.dg/tree-ssa/ssa-store-ccp-3.c: Skip on hppa*64-*-*.

From-SVN: r142599
2008-12-09 16:57:49 +00:00
Jakub Jelinek
bab4e8fbed re PR tree-optimization/35468 (LHS of assignment can be folded to a constant causing ICE)
PR tree-optimization/35468
	* tree-ssa-ccp.c (fold_stmt_r): Don't fold reads from constant
	string on LHS.

	* gcc.dg/pr35468.c: New test.
	* gcc.c-torture/compile/pr35468.c: New test.

From-SVN: r142598
2008-12-09 17:55:35 +01:00
Richard Guenther
b3b30b2401 re PR tree-optimization/38445 (ICE in tree-ssa-struct-alias when compiling grub-0.97)
2008-12-09  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38445
	* tree-ssa-structalias.c (emit_pointer_definition): Only visit
	names once.
	(emit_alias_warning): Adjust.

From-SVN: r142590
2008-12-09 11:06:34 +00:00
Andrew Haley
30da611174 fixed-value.c (do_fixed_add): Add comment.
2008-12-09  Andrew Haley  <aph@redhat.com>

	* fixed-value.c (do_fixed_add): Add comment.
	* tree-ssa-loop-ivopts.c (iv_ca_cost): Likewise.
	* builtins.c (fold_builtin_sqrt): Likewise.

From-SVN: r142589
2008-12-09 10:42:41 +00:00
Jakub Jelinek
6f9f0ce349 re PR ada/38450 (ada bootstrap is broken)
PR ada/38450
	* gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
	* gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
	Likewise.

From-SVN: r142588
2008-12-09 11:35:15 +01:00
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