Commit Graph

98879 Commits

Author SHA1 Message Date
Bruce Korb
d76f631a86 Add comment about changing directory references.
From-SVN: r157401
2010-03-12 05:21:19 +00:00
Bruce Korb
b2071557ce Restore the "#undef" in the test text, too.
From-SVN: r157400
2010-03-12 04:09:29 +00:00
Bruce Korb
41279bc8c5 undo some of the damage
From-SVN: r157399
2010-03-12 04:00:32 +00:00
Bruce Korb
bbf92edb2c the fixinc directory is now "fixincludes"
From-SVN: r157398
2010-03-12 03:49:08 +00:00
David S. Miller
7ac22e176e configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple of four.
* configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple of four.
	* configure: Rebuild.

From-SVN: r157397
2010-03-11 18:54:17 -08:00
GCC Administrator
d9f84cba64 Daily bump.
From-SVN: r157396
2010-03-12 00:17:11 +00:00
Martin Jambor
0e0a135920 re PR tree-optimization/43257 (IPA-SRA changes DECL_ASSEMBLER_NAME)
2010-03-11  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/43257
	* tree.c (assign_assembler_name_if_neeeded): New function.
	(free_lang_data_in_cgraph): Assembler name assignment moved to the
	above new function.
	* tree.h (assign_assembler_name_if_neeeded): Declare.
	* cgraphunit.c (cgraph_analyze_function): Create an assembler name for
	the function if needed.

	* testsuite/g++.dg/torture/pr43257.C: New test.

From-SVN: r157393
2010-03-11 23:27:26 +01:00
Chris Demetriou
1d9edd01f5 Makefile.in (stmp-int-hdrs): Make include/unwind.h, include/stdint-gcc.h, and include/stdint.h world-readable.
2010-03-11  Chris Demetriou  <cgd@google.com>

        * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
        include/stdint-gcc.h, and include/stdint.h world-readable.

From-SVN: r157392
2010-03-11 12:31:01 -08:00
Tobias Burnus
2f4d643dab re PR fortran/43228 (NAMELIST I/O: Reading at 2 dimensions (rank) array values.)
2010-03-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43228
        * io/list_read.c (nml_parse_qualifier): Disable expanded_read
        for array sections.

2010-03-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43228
        * gfortran.dg/namelist_61.f90: New test.

From-SVN: r157389
2010-03-11 17:06:37 +01:00
Richard Guenther
ff0a0c1d88 re PR middle-end/43255 (ICE in extract_range_from_assert, at tree-vrp.c:1423)
2010-03-11  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43255
	* tree-vrp.c (process_assert_insertions_for): Do not insert
	asserts for trivial conditions.

	* gcc.c-torture/compile/pr43255.c: New testcase.

From-SVN: r157388
2010-03-11 15:08:24 +00:00
Andreas Krebbel
b509e1fcea re PR tree-optimization/43280 (gcc4.5 -m32 -O2: misoptimizes sha256!)
2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	PR tree-optimization/43280
	* tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number generation.
	Move calculation of size out of the if branch.
	(find_bswap): Modify compare number generation.

2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gcc.dg/optimize-bswapdi-1.c: Add OpenSSL bswap variant.
	* gcc.dg/pr43280.c: New testcase.

From-SVN: r157386
2010-03-11 13:51:00 +00:00
Richard Guenther
108ba00bcf re PR lto/43200 ([LTO] tree check: expected array_type, have pointer_type in array_ref_low_bound)
2010-03-11  Richard Guenther  <rguenther@suse.de>

	PR lto/43200
	* lto-streamer-in.c (maybe_fixup_decls): Simplify.
	(input_gimple_stmt): Fixup handled component types during
	operand read.  Also fix up decls in ADDR_EXPRs.

	* gcc.dg/lto/20100227-1_0.c: New testcase.
	* gcc.dg/lto/20100227-1_1.c: Likewise.

From-SVN: r157385
2010-03-11 13:13:53 +00:00
Jerry DeLisle
1aeffaf598 Fix entry note.
From-SVN: r157379
2010-03-11 02:28:33 +00:00
Jerry DeLisle
e1061681b9 re PR libfortran/43320 (200.sixtrack fails setup)
2010-03-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/43320
	PR libfortran/43265
	* gfortran.dg/read_eof_6.f: New test
	* gfortran.dg/read_x_eof.f90: Update test.
	* gfortran.dg/read_x_past.f: Update test.

From-SVN: r157378
2010-03-11 02:26:36 +00:00
Jerry DeLisle
b7137299f1 re PR libfortran/43320 (200.sixtrack fails setup)
2010-03-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/43320
	* io/transfer.c (next_record_r): Add hit_eof based on item_count
	condition.

From-SVN: r157377
2010-03-11 02:15:33 +00:00
GCC Administrator
78a50f698f Daily bump.
From-SVN: r157376
2010-03-11 00:17:00 +00:00
Paolo Carlini
9155c0e3df hashtable_policy.h (_Rehash_base<_Prime_rehash_policy, [...]): Add, per DR 1189.
2010-03-10  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/hashtable_policy.h (_Rehash_base<_Prime_rehash_policy,
	_Hashtable>::reserve): Add, per DR 1189.
	* include/bits/hashtable.h (_Hashtable<>::size_type,
	_Hashtable<>::difference_type): Do not typedef from _Allocator.
	* testsuite/23_containers/unordered_map/dr1189.cc: New.
	* testsuite/23_containers/unordered_set/dr1189.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/dr1189.cc: Likewise.
	* testsuite/23_containers/unordered_multiset/dr1189.cc: Likewise.

From-SVN: r157373
2010-03-10 23:49:28 +00:00
Eric Botcazou
f37f5bb93a sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
* config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
	* config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
ada/
	* gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.

From-SVN: r157372
2010-03-10 23:25:37 +00:00
Jan Hubicka
e9fecf0ecc re PR c/43288 (ICE in function_and_variable_visibility, at ipa.c:415)
PR c/43288
	* ipa.c (function_and_variable_visibility) Normalize COMMON bits.
	* varasm.c (get_variable_section): Don't do that here...
	(make_decl_rtl): ... and here.
	(do_assemble_alias): Produce decl RTL.
	(assemble_alias): Likewise.

	* gcc.dg/compile/pr43288.c: New test.

From-SVN: r157366
2010-03-10 19:33:37 +00:00
Kaveh R. Ghazi
7d8c152886 asm1.C: Don't detect pic via looking for the -fpic/-fPIC flags.
* g++.old-deja/g++.pt/asm1.C: Don't detect pic via looking for the
	-fpic/-fPIC flags.
	* g++.old-deja/g++.pt/asm2.C: Likewise.
	* gcc.c-torture/compile/20000804-1.c: Likewise.
	* gcc.target/i386/clobbers.c: Likewise.

From-SVN: r157365
2010-03-10 19:29:50 +00:00
Tobias Burnus
abf4d60b54 2010-03-10 Tobias Burnus <burnus@net-b.de
PR fortran/43303
        * symbol.c (get_iso_c_sym): Set sym->result.

2010-03-10  Tobias Burnus  <burnus@net-b.de

        PR fortran/43303
        * gfortran.dg/c_assoc_3.f90: New test.

From-SVN: r157364
2010-03-10 19:56:46 +01:00
Jakub Jelinek
23f39b3788 re PR debug/43290 (ICE in dwarf2out_frame_debug_expr)
PR debug/43290
	* reg-notes.def (REG_CFA_SET_VDRAP): New note.
	* dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
	of fde->vdrap_reg.
	(dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
	(based_loc_descr): Only express drap or vdrap regno based expressions
	using DW_OP_fbreg when not optimizing.
	* config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
	make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
	REG_CFA_SET_VDRAP note.

	PR debug/36728
	* gcc.dg/guality/pr36728-1.c: New test.
	* gcc.dg/guality/pr36728-2.c: New test.

From-SVN: r157363
2010-03-10 19:17:10 +01:00
Kaushik Phatak
8bb025f55a h8300-div-delay-slot.c: New test.
* gcc.dg/h8300-div-delay-slot.c: New test.

From-SVN: r157340
2010-03-10 08:48:52 -07:00
Alexander Monakov
6edd81980f re PR tree-optimization/43236 (-ftree-loop-distribution produces wrong code in reload1.c:delete_output_reload(), bootstrap fails)
PR tree-optimization/43236
        * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
        error in calculation of base address in reverse iteration case.
        (generate_builtin): Take number of latch executions if the statement
        is in the latch.
    
        * gcc.c-torture/execute/pr43236.c: New.

From-SVN: r157339
2010-03-10 15:53:51 +03:00
Andrey Belevantsev
9f698956d9 re PR middle-end/42859 (ICE in verify_flow_info)
PR middle-end/42859

    * tree-eh.c: Include pointer-set.h.
    (lower_eh_dispatch): Filter out duplicate case labels and
    remove the unneeded edge when the label is unused.  Return
    true when some edges are removed.
    (execute_lower_eh_dispatch): When any lowering resulted in
    removing an edge, also delete unreachable blocks.

    * g++.dg/eh/pr42859.C: New test.

From-SVN: r157337
2010-03-10 14:08:48 +03:00
Jakub Jelinek
ff4f03c3b2 re PR bootstrap/43287 (Bootstrap fails at stage 1 on powerpc-apple-darwin9)
PR bootstrap/43287
	* config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
	UNSPEC_MACHOPIC_OFFSET.

From-SVN: r157334
2010-03-10 08:51:17 +01:00
GCC Administrator
9473ebb111 Daily bump.
From-SVN: r157331
2010-03-10 00:16:42 +00:00
Andreas Schwab
7b0f476db7 re PR target/43294 (Error: junk at end of line, first unrecognized character is `@')
PR target/43294
* config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
(m68k_delegitimize_address): New function.

From-SVN: r157328
2010-03-09 21:57:36 +00:00
Jakub Jelinek
8325c9b804 re PR debug/43293 (Invalid unwind info for i?86 -fpic)
PR debug/43293
	* config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
	* config/i386/i386.c: Include debug.h and dwarf2out.h.
	(ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
	and .cfi_endproc around the pic thunks.
	(output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
	all queued unwind info register saves are saved before the call.
	For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
	considered as sp-=4 for unwind info and the pop as sp+=4 which
	also clobbers dest, but doesn't actually restore it.

From-SVN: r157325
2010-03-09 21:11:53 +01:00
Jakub Jelinek
eb1fcdaa11 re PR bootstrap/43299 (Subversion id 157264 breaks powerpc 64-bit bootstraps)
PR debug/43299
	* dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.

From-SVN: r157317
2010-03-09 19:54:25 +01:00
Jakub Jelinek
69b89883e8 re PR bootstrap/43299 (Subversion id 157264 breaks powerpc 64-bit bootstraps)
PR debug/43299
	* var-tracking.c (adjust_sets): New function.
	(count_with_sets, add_with_sets): Use it.
	(get_adjusted_src): New inline function.
	(add_stores): Use it.

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

From-SVN: r157316
2010-03-09 19:53:38 +01:00
Jakub Jelinek
3b7998ea24 re PR debug/43304 (ICE on vmx/fft.c and vmx/7-01{,a}.c)
PR debug/43304
	* var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
	call cselib_dummy_expand_value_rtx_cb instead of
	cselib_expand_value_rtx_cb.

From-SVN: r157315
2010-03-09 19:51:44 +01:00
Jakub Jelinek
bded9b7087 re PR debug/43293 (Invalid unwind info for i?86 -fpic)
PR debug/43293
	* config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
	* config/i386/i386.c: Include debug.h and dwarf2out.h.
	(ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
	and .cfi_endproc around the pic thunks.
	(output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
	all queued unwind info register saves are saved before the call.
	For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
	considered as sp-=4 for unwind info and the pop as sp+=4 which
	also clobbers dest, but doesn't actually restore it.

From-SVN: r157314
2010-03-09 19:50:40 +01:00
Jakub Jelinek
4398467a10 re PR debug/43290 (ICE in dwarf2out_frame_debug_expr)
PR debug/43290
	* config/i386/i386.c (ix86_get_drap_rtx): Don't set
	RTX_FRAME_RELATED_P.

	* g++.dg/eh/unwind2.C: New test.

From-SVN: r157313
2010-03-09 19:48:43 +01:00
Joseph Myers
8302950ddc * zh_CN.po: Update.
From-SVN: r157311
2010-03-09 15:18:43 +00:00
Jerry DeLisle
04b98fd2ed re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)
2010-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/43265
	* io/read.c: Include fbuf.h and unix.h to enable lower level I/O for
	read_x. (read_x): Replace the use of read_sf with equivalent lower level
	I/O, eliminating unneeded code and handling EOF and EOR conditions.
	* io/io.h: Revise prototype for read_sf.
	* io/transfer.c (read_sf): Delete no_error parameter and all uses of it.
	(read_block_form): Likewise.
	(next_record_r): Delete wrong code call to hit_eof.

From-SVN: r157310
2010-03-09 14:41:17 +00:00
Eric Botcazou
2f9b99e6c6 re PR bootstrap/43276 (lto-elf.c:388:10: error: 'EM_SPARC')
PR bootstrap/43276
	* lto-elf.c: Define EM_* constants if not already defined.

From-SVN: r157305
2010-03-09 09:01:56 +00:00
Jie Zhang
81ad4ac06e arm.md (thumb_mulsi3_v6): Remove trailing whitespaces in output template.
* config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
	whitespaces in output template.

From-SVN: r157303
2010-03-09 03:59:21 +00:00
Paolo Carlini
d723ced225 revert: PR libstdc++/41975, DR 579
2010-03-08  Paolo Carlini  <paolo.carlini@oracle.com>

	Revert:
	2010-02-11  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/41975, DR 579
	* include/bits/hashtable.h (_Hashtable<>::_M_erase_node): Remove.
	(erase(const_iterator), erase(const_iterator, const_iterator)):
	Change return type to void.
	* include/debug/unordered_map: Adjust.
	* include/debug/unordered_set: Likewise.
	* testsuite/util/exception/safety.h: Likewise.
	* testsuite/23_containers/unordered_map/erase/1.cc: Likewise.
	* testsuite/23_containers/unordered_map/erase/24061-map.cc: Likewise.
	* testsuite/23_containers/unordered_set/erase/1.cc:  Likewise.
	* testsuite/23_containers/unordered_set/erase/24061-map.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/erase/1.cc:  Likewise.
	* testsuite/23_containers/unordered_multimap/erase/24061-map.cc:
	Likewise.
	* testsuite/23_containers/unordered_multiset/erase/1.cc:  Likewise.
	* testsuite/23_containers/unordered_multiset/erase/24061-map.cc:
	Likewise.

From-SVN: r157300
2010-03-09 01:56:42 +00:00
Jie Zhang
dc344e877a ira-lives.c (check_and_make_def_use_conflict): Don't fall out array boundary.
* ira-lives.c (check_and_make_def_use_conflict): Don't fall
	out array boundary.

From-SVN: r157299
2010-03-09 01:30:00 +00:00
Jie Zhang
49d78e291b * MAINTAINERS: Update my email address.
From-SVN: r157298
2010-03-09 01:27:29 +00:00
GCC Administrator
6133fa28c9 Daily bump.
From-SVN: r157297
2010-03-09 00:16:40 +00:00
Jakub Jelinek
ff12d3a612 Makefile.in (check_gcc_parallelize): Run dg-torture.exp and builtins.exp in a separate job.
* Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
	builtins.exp in a separate job.

From-SVN: r157294
2010-03-08 22:14:06 +01:00
Sebastian Pop
b58543c3e5 Add ChangeLog entries.
From-SVN: r157292
2010-03-08 17:50:17 +00:00
Sebastian Pop
697f511dd4 Use {lower,upper}_bound_in_type.
2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-sese-to-poly.c (add_param_constraints): Use
	lower_bound_in_type and upper_bound_in_type.

From-SVN: r157291
2010-03-08 17:50:09 +00:00
Sebastian Pop
456cc718b4 Use sizetype instead of unsigned_type_node.
2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-sese-to-poly.c (add_param_constraints): Use sizetype
	instead of unsigned_type_node.

From-SVN: r157290
2010-03-08 17:50:03 +00:00
Sebastian Pop
3640d64c0f Fix PR43065: Insert bounds on pointer type parameters.
2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
	    Reza Yazdani  <reza.yazdani@amd.com>

	PR middle-end/43065
	* graphite-sese-to-poly.c (add_param_constraints): Insert bounds
	on pointer type parameters.

	* gcc.dg/graphite/run-id-4.c: New.

Co-Authored-By: Reza Yazdani <reza.yazdani@amd.com>

From-SVN: r157289
2010-03-08 17:49:57 +00:00
Sebastian Pop
b75d95c95c Add testcase from PR43065.
2010-03-04  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/43065
	* gcc.dg/graphite/run-id-3.c: New.

From-SVN: r157288
2010-03-08 17:49:48 +00:00
Tobias Grosser
73102986df Add forgotten ChangeLog entries.
Eric pointed out that my ChangeLog was incorrect. As I forgot to
commit it at all, here the corrected ChangeLogs for the last commit.

gcc/
2010-03-05  Tobias Grosser  <grosser@fim.uni-passau.de>
	    Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>

	* graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
	handle conversions from pointer to integers.
	(gcc_type_for_cloog_iv): Choose the smalles signed integer as an
	induction variable, to be able to work with code generated by
	CLooG.
	* graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
	(build_poly_scop): Bail out if we cannot codegen a loop.

gcc/testsuite/
2010-03-05  Tobias Grosser  <grosser@fim.uni-passau.de>

	* gcc.dg/graphite/id-18.c: New.
	* gcc.dg/graphite/run-id-pr42644.c: New.

libgomp/
2010-03-05  Tobias Grosser  <grosser@fim.uni-passau.de>

	* testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
	* testsuite/libgomp.graphite/force-parallel-2.c: Adjust.

From-SVN: r157287
2010-03-08 17:49:42 +00:00
Tobias Grosser
68d3ff9044 Fix type problems in loop ivs.
Fix pr42644.
Fix pr42130 (dealII).

2010-03-03  Tobias Grosser  <grosser@fim.uni-passau.de>

	* gcc/graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
	handle conversions from pointer to integers.
	(gcc_type_for_cloog_iv): Choose the smalles signed integer as an
	induction variable, to be able to work with code generated by
	CLooG.
	* gcc/graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
	(build_poly_scop): Bail out if we cannot codegen a loop.
	* gcc/testsuite/gcc.dg/graphite/id-18.c: New.
	* gcc/testsuite/gcc.dg/graphite/run-id-pr42644.c: New.
	* libgomp/testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
	* libgomp/testsuite/libgomp.graphite/force-parallel-2.c: Adjust.

From-SVN: r157286
2010-03-08 17:49:36 +00:00