Commit Graph

89950 Commits

Author SHA1 Message Date
Janis Johnson
d0488d176b re PR testsuite/25241 ([C++] DejaGNU does not distinguish between errors and warnings)
PR testsuite/25241
	* testsuite/g++.dg/charset/attribute2.c: Replace dg-error with
	dg-warning or vice versa.
	* testsuite/g++.dg/conversion/dr195.C: Ditto.
	* testsuite/g++.dg/cpp0x/variadic60.C: Ditto.
	* testsuite/g++.dg/expr/cast2.C: Ditto.
	* testsuite/g++.dg/ext/anon-struct4.C: Ditto.
	* testsuite/g++.dg/ext/member-attr.C: Ditto.
	* testsuite/g++.dg/ext/utf-array.C: Ditto.
	* testsuite/g++.dg/ext/utf-array-short-wchar.C: Ditto.
	* testsuite/g++.dg/ext/utf-typedef-cxx0x.C: Ditto.
	* testsuite/g++.dg/ext/visibility/redecl1.C: Ditto.
	* testsuite/g++.dg/ext/visibility/warn4.C: Ditto.
	* testsuite/g++.dg/parse/defarg11.C: Ditto.
	* testsuite/g++.dg/template/error17.C: Ditto.
	* testsuite/g++.dg/warn/pedantic2.C: Ditto.
	* testsuite/g++.dg/warn/pr21983.C: Ditto.
	* testsuite/g++.dg/warn/return-reference2.C: Ditto.
	* testsuite/g++.old-deja/g++.bob/inherit1.C: Ditto.
	* testsuite/g++.old-deja/g++.brendan/crash13.C: Ditto.
	* testsuite/g++.old-deja/g++.brendan/crash17.C: Ditto.
	* testsuite/g++.old-deja/g++.brendan/crash52.C: Ditto.
	* testsuite/g++.old-deja/g++.brendan/crash55.C: Ditto.
	* testsuite/g++.old-deja/g++.brendan/enum7.C: Ditto.
	* testsuite/g++.old-deja/g++.brendan/operators4.C: Ditto.
	* testsuite/g++.old-deja/g++.brendan/template17.C: Ditto.
	* testsuite/g++.old-deja/g++.brendan/warnings1.C: Ditto.
	* testsuite/g++.old-deja/g++.bugs/900205_03.C: Ditto.
	* testsuite/g++.old-deja/g++.bugs/900227_01.C: Ditto.
	* testsuite/g++.old-deja/g++.ext/arrnew.C: Ditto.
	* testsuite/g++.old-deja/g++.ext/attrib4.C: Ditto.
	* testsuite/g++.old-deja/g++.jason/cond.C: Ditto.
	* testsuite/g++.old-deja/g++.jason/operator.C: Ditto.
	* testsuite/g++.old-deja/g++.jason/report.C: Ditto.
	* testsuite/g++.old-deja/g++.law/friend5.C: Ditto.
	* testsuite/g++.old-deja/g++.law/temps1.C: Ditto.
	* testsuite/g++.old-deja/g++.law/union4.C: Ditto.
	* testsuite/g++.old-deja/g++.martin/pure1.C: Ditto.
	* testsuite/g++.old-deja/g++.mike/empty.C: Ditto.
	* testsuite/g++.old-deja/g++.mike/for2.C: Ditto.
	* testsuite/g++.old-deja/g++.mike/misc9.C: Ditto.
	* testsuite/g++.old-deja/g++.mike/p10769b.C: Ditto.
	* testsuite/g++.old-deja/g++.mike/p2855.C: Ditto.
	* testsuite/g++.old-deja/g++.mike/p3060c.C: Ditto.
	* testsuite/g++.old-deja/g++.mike/p700.C: Ditto.
	* testsuite/g++.old-deja/g++.mike/p9732c.C: Ditto.
	* testsuite/g++.old-deja/g++.mike/pmf6.C: Ditto.
	* testsuite/g++.old-deja/g++.mike/warn1.C: Ditto.
	* testsuite/g++.old-deja/g++.mike/warn5.C: Ditto.
	* testsuite/g++.old-deja/g++.niklas/t141.C: Ditto.
	* testsuite/g++.old-deja/g++.other/cast6.C: Ditto.
	* testsuite/g++.old-deja/g++.other/cond5.C: Ditto.
	* testsuite/g++.old-deja/g++.other/conv8.C: Ditto.
	* testsuite/g++.old-deja/g++.other/decl5.C: Ditto.
	* testsuite/g++.old-deja/g++.other/delete2.C: Ditto.
	* testsuite/g++.old-deja/g++.other/delete4.C: Ditto.
	* testsuite/g++.old-deja/g++.other/linkage1.C: Ditto.
	* testsuite/g++.old-deja/g++.other/ptrmem8.C: Ditto.
	* testsuite/g++.old-deja/g++.other/typename1.C: Ditto.
	* testsuite/g++.old-deja/g++.pt/typename14.C: Ditto.
	* testsuite/g++.old-deja/g++.pt/typename4.C: Ditto.
	* testsuite/g++.old-deja/g++.pt/typename5.C: Ditto.
	* testsuite/g++.old-deja/g++.pt/typename7.C: Ditto.

From-SVN: r140405
2008-09-17 00:06:57 +00:00
Paolo Carlini
1edd1a8317 [multiple changes]
2008-09-16  Chris Fairles  <chris.fairles@gmail.com>

        * testsuite/25_algorithms/min/requirements/explicit_instantiation/3.cc:
        New.
        * testsuite/25_algorithms/min/requirements/explicit_instantiation/
        pod2.cc: Likewise.
        * testsuite/25_algorithms/min/3.cc: Likewise.
        * testsuite/25_algorithms/min/4.cc: Likewise.
        * testsuite/25_algorithms/max/requirements/explicit_instantiation/3.cc:
        Likewise.
        * testsuite/25_algorithms/max/requirements/explicit_instantiation/
        pod2.cc: Likewise.
        * testsuite/25_algorithms/max/3.cc: Likewise.
        * testsuite/25_algorithms/max/4.cc: Likewise.
        * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
        3.cc: Likewise.
        * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
        pod2.cc: Likewise.
        * testsuite/25_algorithms/minmax/2.cc: Likewise.
        * testsuite/25_algorithms/minmax/3.cc: Likewise.

2008-09-16  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_algo.h (min(initializer_list<>),
	min(initializer_list<>, Compare), max(initializer_list<>),
	max(initializer_list<>, Compare), minmax(initializer_list<>),
	minmax(initializer_list<>, Compare)): Add in C++0x mode.
	* include/bits/algorithmfwd.h: Add.
	* testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.

From-SVN: r140404
2008-09-16 23:17:09 +00:00
Jakub Jelinek
b5fb36eecd re PR rtl-optimization/37483 (Segfault in noce_try_sign_mask (ifcvt.c): b_unconditional)
PR rtl-optimization/37483
	* ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
	if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
	Rearrange code to better match the original comment.  Check
	t_unconditional first.  Improve comment.

testsuite/
	* gcc.c-torture/compile/pr37483.c: New test.
	* gcc.c-torture/compile/pr37395.c: New test.

Co-Authored-By: Adam Nemet <anemet@caviumnetworks.com>

From-SVN: r140403
2008-09-16 22:15:49 +00:00
Jakub Jelinek
8c50b49502 re PR c/37529 (ICE with invalid goto)
PR c/37529
	* gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
	GOTO_DESTINATION failed, don't create GIMPLE_GOTO.

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

From-SVN: r140402
2008-09-17 00:08:01 +02:00
Jakub Jelinek
cc8b343d26 re PR c++/37530 (ICE with invalid catch)
PR c++/37530
	* gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
	GIMPLE_TRY if cleanup sequence is empty.

	* g++.dg/parse/crash48.C: New test.

From-SVN: r140401
2008-09-17 00:06:28 +02:00
Jakub Jelinek
326a4d4ef1 re PR c++/37531 (ICE with invalid array initialization)
PR c++/37531
	* semantics.c (finish_compound_literal): Return error_mark_node if
	type is errorneous.

	* g++.dg/parse/crash47.C: New test.

From-SVN: r140400
2008-09-17 00:05:15 +02:00
Jakub Jelinek
08222495cc re PR c++/37532 (ICE with decimal floating point data types)
PR c++/37532
	* lex.c (init_reswords): Don't populate ridpointers for D_CONLY
	reserved words.

	* g++.dg/parse/crash46.C: New test.

From-SVN: r140399
2008-09-17 00:03:57 +02:00
Jakub Jelinek
a8d0ab1d24 re PR testsuite/36889 (gfortran.fortran-torture/execute/execute.exp tries to run sse2 execute tests without checking for host support)
PR testsuite/36889
	* lib/fortran-torture.exp (get-fortran-torture-options): Only
	set test_tree_vectorize on i?86/x86_64 resp. sparc* if sse2 resp.
	ultrasparc hw is available.

From-SVN: r140398
2008-09-17 00:02:37 +02:00
Andrew Pinski
b9ff60795b re PR rtl-optimization/37263 (extra code for doloop with unsigned 32bit types on LP64)
2008-09-16  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/37263
        * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
        eliminate IV if the cost are the same.

From-SVN: r140395
2008-09-16 09:21:35 -07:00
Richard Guenther
d573123d17 re PR middle-end/37380 (../../gcc/libcpp/charset.c:1103: error: 'cvt.77.width' is used uninitialized in this function)
2008-09-16  Richard Guenther  <rguenther@suse.de>

	PR middle-end/37380
	* tree-sra.c (sra_build_assignment): Do not call the gimplifier
	if not necessary.

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

From-SVN: r140388
2008-09-16 12:34:01 +00:00
Richard Guenther
9cb57027a3 re PR tree-optimization/37508 (ICE in in simplify_truth_ops_using_ranges, at tree-vrp.c:6334)
2008-09-16  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/37508
	* tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.

	* gcc.dg/tree-ssa/pr37508.c: New testcase.

From-SVN: r140387
2008-09-16 12:31:51 +00:00
GCC Administrator
3a5c03fba0 Daily bump.
From-SVN: r140385
2008-09-16 00:17:08 +00:00
Kaz Kojima
9705d817a0 sh.md (movsf_ie): Fix length for TARGET_SH2A.
* config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.

From-SVN: r140382
2008-09-15 23:07:28 +00:00
Andrew Pinski
f369bbb185 rs6000.md (floatsidf2): Rewrite PowerPC64 case to use gen_floatdidf2 directly.
2008-09-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to 
        use gen_floatdidf2 directly.
        (floatunssidf2): Likewise.
        (floatsidf_ppc64_mfpgpr): Remove.
        (floatsidf_ppc64): Remove.
        (floatunssidf_ppc64): Remove.

From-SVN: r140381
2008-09-15 15:59:55 -07:00
Aldy Hernandez
402b8cf659 crash16.C: Function name is the correct location for an error regarding a function.
testsuite/
        * g++.old-deja/g++.brendan/crash16.C: Function name is the correct 
        location for an error regarding a function.
        * g++.old-deja/g++.other/pmf3.C: Same.
        * g++.old-deja/g++.law/ctors5.C: Same.
        * g++.old-deja/g++.pt/explicit34.C: Same.
        * g++.dg/parse/error28.C: Same.
        * g++.dg/parse/error17.C: Same.
        * g++.dg/template/friend44.C: Same.
cp/
        * decl.c (duplicate_decls): Call error_at.
        (grokfndecl): New location argument.  Use location if available.
        (grokdeclarator): Pass declarator location to grokfndecl.
        * cp-tree.h (struct cp_declarator): Update comment for id_loc.
        * decl2.c (check_classfn): Use error_at.
        * parser.c (cp_parser_init_declarator): Set function_start_locus
        to brace location.
        (cp_parser_member_declaration): Set id_loc for function declarators.

From-SVN: r140379
2008-09-15 22:24:18 +00:00
Jakub Jelinek
0eeb22402c ira-color.c (finish_cost_update): Free update_cost_queue_elems rather than update_cost_queue.
* ira-color.c (finish_cost_update): Free update_cost_queue_elems
	rather than update_cost_queue.

From-SVN: r140378
2008-09-15 23:57:17 +02:00
Jakub Jelinek
1fdeb82f8d tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release in every call starting with the second one...
* tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
	in every call starting with the second one, instead of only when
	alias_bitmap_obstack.elements != NULL.

From-SVN: r140377
2008-09-15 23:56:35 +02:00
Jakub Jelinek
a0044be570 tree-predcom.c (filter_suitable_components): Free all refs in act->refs vector before calling release_component.
* tree-predcom.c (filter_suitable_components): Free all refs in
	act->refs vector before calling release_component.
	(add_ref_to_chain): Free ref if not adding it to chain->refs.

	* tree-data-ref.c (free_subscripts): Free all subscript objects.

	* tree-loop-linear.c (linear_transform_loops): Initialize
	lambda_obstack only after calling perfect_loop_nest_depth.
	Goto free_and_continue instead of just continue for later failures.

From-SVN: r140376
2008-09-15 23:55:05 +02:00
Jakub Jelinek
8f57ac5a83 re PR middle-end/37479 (-fdwarf2-cfi-asm is undocumented)
PR middle-end/37479
	* doc/invoke.texi: Document -fno-dwarf2-cfi-asm.

From-SVN: r140375
2008-09-15 23:54:04 +02:00
Jakub Jelinek
8586aeeb9c re PR libmudflap/36397 (ICE with pointer cast and -fmudflap)
PR libmudflap/36397
	* tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.

	* testsuite/libmudflap.c/pass64-frag.c: New test.

From-SVN: r140374
2008-09-15 23:52:53 +02:00
Eric Botcazou
6a7a3f311b trans.c (gigi): Declare the name of the compilation unit as the first global name.
* gcc-interface/trans.c (gigi): Declare the name of the compilation
	unit as the first global name.

From-SVN: r140373
2008-09-15 20:26:02 +00:00
GCC Administrator
084b6c9955 Daily bump.
From-SVN: r140370
2008-09-15 00:16:32 +00:00
Jerry DeLisle
3446fc502a re PR fortran/35840 (ICE for character expression in I/O specifier)
2008-09-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
	    Tobias Burnus  <burnus@net.b.de>

	PR fortran/35840
	* io.c (match_vtag): Add tag name to error message.
	(match_out_tag): Cleanup whitespace.
	(gfc_resolve_dt): Resolve id and async tags. 

Co-Authored-By: Tobias Burnus <burnus@net-b.de>

From-SVN: r140366
2008-09-14 19:00:26 +00:00
Gerald Pfeifer
c5cc92f5c1 MAINTAINERS: Remove John Carr...
* MAINTAINERS: Remove John Carr, Steve Chamberlain, Michael Chastain,
	Klaus Kaempf, Mumit Khan, Alan Lehotsky, Warren Levy, Don Lindsay,
	Dave Love, Alexandre Petit-Bianco, Clinton Popetz, Gavin Romig-Koch,
	and Michael Tiemann from Write After Approval since they do not
	actually have access.

From-SVN: r140364
2008-09-14 18:14:41 +00:00
Andreas Schwab
ea8bce02c6 * tree-call-cdce.c (check_target_format): Accept Motorola formats.
From-SVN: r140363
2008-09-14 17:58:14 +00:00
Jan Hubicka
6a78eaa3e6 invoke.texi (-fconserve-stack): Document.
* invoke.texi (-fconserve-stack): Document.
	* opts.c (decode_options): Handle conserve_stack.
	* common.opt (fconvserve_stack): New.

From-SVN: r140362
2008-09-14 17:05:39 +00:00
David Edelsohn
138b9ed9aa config.host: Add x-aix to host_xmake_file.
* config.host: Add x-aix to host_xmake_file.
        * config/rs6000/t-aix52: Do not override LDFLAGS.
        * config/rs6000/x-aix: New file.

From-SVN: r140361
2008-09-14 09:55:29 -04:00
Andy Hutchinson
9215065fd6 re PR target/19636 (Can't compile large switch statement)
PR target/19636
	PR target/24894
	PR target/31644
	PR target/31786
	* config/avr/avr.c (legitimate_address_p): Fix problem where subreg
	is not recognized as a valid register usage. Allow REG_X to be used
	as a base pointer.
	* config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
	forces a reload when using a base register.

From-SVN: r140360
2008-09-14 16:50:10 +04:00
Jan Hubicka
f67894ed5f * gcc-interface/Make-lang.in (gnac1): Add CFLAGS.
From-SVN: r140357
2008-09-14 09:14:51 +00:00
Ralf Wildenhues
16b0521384 a-crbtgk.adb, [...]: Fix typos in comments.
gcc/ada/
	* a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
	bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
	exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
	exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
	exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
	g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
	gcc-interface/gigi.h, gcc-interface/trans.c,
	lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
	opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
	s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
	s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
	sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
	sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
	sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
	sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
	comments.
	* gnathtml.pl: Fix typos.

From-SVN: r140356
2008-09-14 06:21:12 +00:00
GCC Administrator
4549c47ceb Daily bump.
From-SVN: r140354
2008-09-14 00:16:35 +00:00
Danny Smith
78a1f20179 cygming-crtend.c (register_frame_ctor): If DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame directly with atexit.
* config/i386/cygming-crtend.c (register_frame_ctor): If
	DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
	directly with atexit.
	(deregister_frame_ctor): Rename to ...
	(deregister_frame_dtor): Use to call __gcc_deregister_frame
	if !DEFAULT_USE_CXA_ATEXIT.

From-SVN: r140351
2008-09-13 22:58:55 +00:00
Jan Hubicka
a63f29427b cgraph.c: Include value-prof.h
* cgraph.c: Include value-prof.h
	* Makefile.in (cgraph.o): Add value-prof.h dependency.

From-SVN: r140350
2008-09-13 22:32:57 +00:00
Jan Hubicka
71ba42faeb re PR middle-end/32581 (make profiledbootstrap - stageprofile - gcc/ada/a-except.adb:1301: error: control flow in the middle of basic block 20)
PR middle-end/32581
	* tree-profile.c (add_abnormal_goto_call_edges): New function.
	(tree_gen_interval_profiler, tree_gen_pow2_profiler,
	tree_gen_one_value_profiler, tree_gen_average_profiler,
	tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.

From-SVN: r140349
2008-09-13 21:39:44 +00:00
Jan Hubicka
80cab2f00f i386.c (ix86_expand_movmem, [...]): Avoid processing too many bytes on misalligned blocks.
* i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing too
	many bytes on misalligned blocks.

From-SVN: r140348
2008-09-13 19:19:57 +00:00
Ralf Wildenhues
d1facce0e3 cfg.texi: Fix some typos.
gcc/
	* doc/cfg.texi: Fix some typos.
	* doc/extend.texi: Likewise.
	* doc/install.texi: Likewise.
	* doc/invoke.texi: Likewise.
	* doc/rtl.texi: Likewise.
	* doc/tree-ssa.texi: Likewise.

From-SVN: r140347
2008-09-13 18:54:58 +00:00
Richard Guenther
42ea03fb16 re PR middle-end/30141 (nested function can produce invalid gimple)
2008-09-13  Richard Guenther  <rguenther@suse.de>

	PR middle-end/30141
	* tree-nested.c (finalize_nesting_tree_1): Generate valid
	gimple stores for memory rhs.

From-SVN: r140346
2008-09-13 16:29:22 +00:00
H.J. Lu
9e6a14a4ee re PR rtl-optimization/37489 (const_true_rtx returned for float compare)
gcc/

2008-09-13  H.J. Lu  <hongjiu.lu@intel.com>

	PR rtl-optimization/37489
	* cse.c (fold_rtx): Don't return const_true_rtx for float
	compare if FLOAT_STORE_FLAG_VALUE is undefined.

gcc/testsuite/

2008-09-13  Raksit Ashok <raksit@google.com>

	PR rtl-optimization/37489
	* g++.dg/opt/cse3.C: New.

From-SVN: r140344
2008-09-13 08:47:41 -07:00
H.J. Lu
2deacb5e8a re PR testsuite/37495 (FAIL: gcc.c-torture/compile/vector-4.c)
2008-09-13  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/37495
	* gcc.c-torture/compile/vector-4.c: Add "dg-do compile".

From-SVN: r140343
2008-09-13 08:44:07 -07:00
Jan Hubicka
5a6e26b73f re PR tree-optimization/37392 (Segfault in verify_ssa: !gimple_nop_p (stmt))
PR tree-optimization/37392
	* tree-inline.c (remap_gimple_stmt): Do not remap return value.

From-SVN: r140342
2008-09-13 14:38:10 +00:00
Martin Jambor
934cb78a58 cgraph.c (free_edges): New variable.
* cgraph.c (free_edges): New variable.
	(NEXT_FREE_EDGE): New macro.
	(cgraph_free_edge): New function.
	(cgraph_remove_edge): Call cgraph_remove_edge_1.
	(cgraph_node_remove_callees): Likewise.
	(cgraph_node_remove_callers): Likewise.
	(cgraph_create_edge): Reuse edges from the free list.  Do not
	update uid if doing so.
	(cgraph_remove_*_hook): Add free call.

Co-Authored-By: Jan Hubicka <jh@suse.cz>

From-SVN: r140341
2008-09-13 14:35:10 +00:00
Uros Bizjak
025fa62ffc pr36141.c: Move to ...
* gcc.c-torture/pr36141.c: Move to ...
	* gcc.c-torture/compile/pr36141.c: ... here.
	* gcc.dg/arm-g2.c: Move to ...
	* gcc.target/arm/g2.c: ... here.
	* gcc.dg/arm-vfp1.c: Move to ...
	* gcc.target/arm/vfp1.c: ... here.
	* gcc.dg/20031108-1: Move to ...
	* gcc.target/arm/20031108-1.c: ... here.
	* gcc.dg/20030909-1: Move to ...
	* gcc.target/arm/20030909-1.c: ... here.
	* gcc.dg/arm-mmx-1.c: Move to ...
	* gcc.target/arm/mmx-1.c: ... here.
	* gcc.dg/arm-scd[123].c: Move to ...
	* gcc.target/arm/scd[123].c: ... here.
	* gcc.dg/arm-asm.c: Move to ...
	* gcc.target/arm/asm.c: ... here.
	* gcc.dg/20080410-1: Move to ...
	* gcc.target/sh/20080410-1.c: ... here.
	* gcc.dg/globalreg-1.c: Move to ...
	* gcc.target/sparc/globalreg-1.c: ... here.

From-SVN: r140340
2008-09-13 15:26:46 +02:00
Chris Fairles
38b5077013 1.cc: Join thread before program exits.
2008-09-13  Chris Fairles  <chris.fairles@gmail.com>

        * testsuite/30_threads/thread/algorithm/1.cc: Join thread before
        program exits.
        * testsuite/30_threads/thread/algorithm/2.cc: Likewise.
        * testsuite/30_threads/thread/this_thread/3.cc: Define test variable.
        * testsuite/30_threads/thread/this_thread/4.cc: Likewise.
        

Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>

From-SVN: r140338
2008-09-13 09:38:05 +00:00
Richard Sandiford
f35bf7a925 Apply correct version of previous patch (tweaked formatting).
From-SVN: r140337
2008-09-13 08:15:59 +00:00
Daniel Kraft
858f1fa2a3 re PR fortran/35770 (implicit character(s) hides type of internal function)
2008-09-13  Daniel Kraft  <d@domob.eu>

	PR fortran/35770
	* primary.c (gfc_match_varspec): Added missing type-spec clearing
	after wrong implicit character typing.

2008-09-13  Daniel Kraft  <d@domob.eu>

	PR fortran/35770
	* gfortran.dg/implicit_13.f90: New test.

From-SVN: r140336
2008-09-13 09:44:36 +02:00
Richard Sandiford
f754734f68 ira-color.c (conflict_allocno_vec): Delete.
gcc/
	* ira-color.c (conflict_allocno_vec): Delete.
	(update_cost_queue_elem): New structure.
	(update_cost_queue): New variable.
	(update_cost_queue_tail): Likewise.
	(update_cost_queue_elems): Likewise.
	(allocno_update_cost_check): Delete.
	(initiate_cost_update): Allocate update_cost_queue_elems
	instead of allocno_update_cost_check.
	(finish_cost_update): Update the free()s accordingly.
	(start_update_cost): New function.
	(queue_update_cost): Likewise.
	(get_next_update_cost): Likewise.
	(update_copy_costs_1): Inline into...
	(update_copy_costs): ...here.  Use a queue instead of recursive calls.
	Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
	once we've established they are equal.  Don't allocate update
	costs if there is nothing to add to them.
	(update_conflict_hard_regno_costs): Remove ALLOCNO and
	DIVISOR arguments.  Use a queue instead of recursive calls;
	process all the allocnos in the initial queue, rather than
	a single allocno.
	(assign_hard_reg): Use queue_update_cost instead of
	conflict_allocno_vec.  Queue coalesced allocnos instead
	of calling update_conflict_hard_regno_costs for each one.
	Just call update_conflict_hard_regno_costs once for the
	entire queue.
	(ira_color): Remove conflict_allocno_vec handling.

From-SVN: r140335
2008-09-13 07:31:42 +00:00
Jan Hubicka
29d7f40905 re PR middle-end/37500 (libstdc++ failed to compile at -O0)
PR middle-end/37500
	* pt.c (tsubst_decl): Do not copy DECL_STRUCT_FUNCTION pointer.

From-SVN: r140334
2008-09-13 07:30:15 +00:00
Chris Fairles
e99a2dce27 thread: New.
2008-09-12  Chris Fairles <chris.fairles@gmail.com>
	    Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/thread: New.
	* include/Makefile.am: Update.
	* include/Makefile.in: Regenerate.
	* src/thread.cc: New.
	* src/Makefile.am: Update.
	* src/Makefile.in: Regenerate.
	* acinclude.m4: Add check for nanosleep.
	* configure.ac: Call it.
	* configure: Regenerate.
	* config.h.in: Likewise.
	* config/abi/pre/gnu.ver: Add exports.
	* doc/doxygen/user.cfg.in: Add thread header.
	* testsuite/lib/libstdc++.exp (check_v3_target_nanosleep): Add.
	* testsuite/lib/dg-options.exp (dg-require-nanosleep): Add.
	* testsuite/30_threads/thread/cons/1.cc: New.
	* testsuite/30_threads/thread/cons/2.cc: Likewise.
	* testsuite/30_threads/thread/cons/3.cc: Likewise.
	* testsuite/30_threads/thread/cons/4.cc: Likewise.
	* testsuite/30_threads/thread/algorithm/1.cc: Likewise.
	* testsuite/30_threads/thread/algorithm/2.cc: Likewise.
	* testsuite/30_threads/thread/member/1.cc: Likewise.
	* testsuite/30_threads/thread/member/2.cc: Likewise.
	* testsuite/30_threads/thread/member/3.cc: Likewise.
	* testsuite/30_threads/thread/this_thread/1.cc: Likewise.
	* testsuite/30_threads/thread/this_thread/2.cc: Likewise.
	* testsuite/30_threads/thread/this_thread/3.cc: Likewise.
	* testsuite/30_threads/thread/this_thread/4.cc: Likewise.
	* testsuite/30_threads/headers/thread/types_std_c++0x.cc: Likewise.
	* testsuite/30_threads/headers/thread/std_c++0x_neg.cc: Likewise.
	* testsuite/17_intro/headers/c++200x/all.cc: Add thread.
	* testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: 
	Add thread, condition_variable and mutex.

From-SVN: r140333
2008-09-13 00:44:21 +00:00
Chris Fairles
46e113bf2b thread: New.
2008-09-12  Chris Fairles <chris.fairles@gmail.com>
	    Benjamin Kosnik  <bkoz@redhat.com>

	* include/std/thread: New.
	* include/Makefile.am: Update.
	* include/Makefile.in: Regenerate.
	* src/thread.cc: New.
	* src/Makefile.am: Update.
	* src/Makefile.in: Regenerate.
	* acinclude.m4: Add check for nanosleep.
	* configure.ac: Call it.
	* configure: Regenerate.
	* config.h.in: Likewise.
	* config/abi/pre/gnu.ver: Add exports.
	* doc/doxygen/user.cfg.in: Add thread header.
	* testsuite/lib/libstdc++.exp (check_v3_target_nanosleep): Add.
	* testsuite/lib/dg-options.exp (dg-require-nanosleep): Add.
	* testsuite/30_threads/thread/cons/1.cc: New.
	* testsuite/30_threads/thread/cons/2.cc: Likewise.
	* testsuite/30_threads/thread/cons/3.cc: Likewise.
	* testsuite/30_threads/thread/cons/4.cc: Likewise.
	* testsuite/30_threads/thread/algorithm/1.cc: Likewise.
	* testsuite/30_threads/thread/algorithm/2.cc: Likewise.
	* testsuite/30_threads/thread/member/1.cc: Likewise.
	* testsuite/30_threads/thread/member/2.cc: Likewise.
	* testsuite/30_threads/thread/member/3.cc: Likewise.
	* testsuite/30_threads/thread/this_thread/1.cc: Likewise.
	* testsuite/30_threads/thread/this_thread/2.cc: Likewise.
	* testsuite/30_threads/thread/this_thread/3.cc: Likewise.
	* testsuite/30_threads/thread/this_thread/4.cc: Likewise.
	* testsuite/30_threads/headers/thread/types_std_c++0x.cc: Likewise.
	* testsuite/30_threads/headers/thread/std_c++0x_neg.cc: Likewise.
	* testsuite/17_intro/headers/c++200x/all.cc: Add thread.
	* testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: 
	Add thread, condition_variable and mutex.

Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>

From-SVN: r140332
2008-09-13 00:32:37 +00:00
GCC Administrator
8270e80020 Daily bump.
From-SVN: r140330
2008-09-13 00:16:50 +00:00