Commit Graph

99328 Commits

Author SHA1 Message Date
Seongbae Park 40ae679932 tree-profile.c (tree_init_ic_make_global_vars): Make static variables TLS.
2010-03-30  Seongbae Park <seongbae.park@gmail.com>
	    Jack Howarth <howarth@bromo.med.uc.edu>

	* tree-profile.c (tree_init_ic_make_global_vars): Make static
        variables TLS.

Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>

From-SVN: r157822
2010-03-30 13:10:16 +00:00
Jack Howarth 368fabd5a3 re PR c/43553 (libgcc built with -DHAVE_CC_TLS against xgcc when emutls in use)
2010-03-30  Jack Howarth <howarth@bromo.med.uc.edu>

	PR c/43553
	* Makefile.in (INTERNAL_CFLAGS): Add @set_use_emutls@.
	* configure.ac: Use GCC_CHECK_EMUTLS to see if emulated TLS
	is used and substitute set_use_emutls.
	* configure: Regenerated.

From-SVN: r157821
2010-03-30 13:08:52 +00:00
Joseph Myers 2bcba94ba4 re PR other/25232 (libgcc-std.ver should include __unordxf2 and __unordtf2)
PR other/25232
	* libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
	and __unordtf2.
	* config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
	Include ___unordxf2 and ___unordtf2.
	* config/i386/libgcc-glibc.ver: Do not define inheritance from
	GCC_4.4.0 here.

From-SVN: r157819
2010-03-30 13:35:08 +01:00
Paolo Carlini c878d6baf6 unordered_map: Clean-up includes and guards.
2010-03-30  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/debug/unordered_map: Clean-up includes and guards.
	* include/debug/unordered_set: Likewise.
	* include/debug/list: Likewise.
	* include/profile/unordered_map: Likewise.
	* include/profile/unordered_set: Likewise.

From-SVN: r157818
2010-03-30 10:59:17 +00:00
Tarik Graba 15baf7f802 t-lm32: New file.
2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>

    gcc/
	* config/lm32/t-lm32: New file.
	* config.gcc: Use the above file when targetting lm32.

    libgcc/
	* config/lm32/t-lm32: Remove misplaced MULTILIB_OPTIONS.

From-SVN: r157817
2010-03-30 10:26:24 +00:00
Duncan Sands fba4883601 The dragonegg plugin needs except.h, so add it to the list of
plugin headers.

From-SVN: r157816
2010-03-30 10:03:25 +00:00
Jerry DeLisle 63fd825549 re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)
2010-03-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/43265
	* gfortran.dg/read_eof_8.f90: New test.

From-SVN: r157811
2010-03-30 03:25:04 +00:00
Jerry DeLisle 6c1400dd58 re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)
2010-03-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/43265
	* io/transfer.c (next_record_r): Only call hit_eof for specific
	conditions when an EOF is encountered.

From-SVN: r157810
2010-03-30 03:22:28 +00:00
GCC Administrator fff4363b3e Daily bump.
From-SVN: r157809
2010-03-30 00:17:33 +00:00
John David Anglin 6d7f49cd78 re PR target/43458 (c99_classification_macros_c.cc fails on hppa*-*-hpux*)
PR target/43458
	* testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
	Xfail hppa*-*-hpux*.

From-SVN: r157806
2010-03-29 23:51:05 +00:00
Jason Merrill 43d0678ae3 * gcc.dg/cpp/include6.c: Change [] to ().
From-SVN: r157805
2010-03-29 16:57:00 -04:00
Jason Merrill 00a81b8b9d More N3077 raw string changes
More N3077 raw string changes
	* charset.c (cpp_interpret_string): Don't transform UCNs in raw
	strings.
	* lex.c (bufring_append): Split out from...
	(lex_raw_string): ...here.  Undo trigraph and line splicing
	transformations.  Do process line notes in multi-line literals.
	(_cpp_process_line_notes): Ignore notes that were already handled.

From-SVN: r157804
2010-03-29 16:07:29 -04:00
Jason Merrill 0591d33ecc raw-string-1.c: Combine C and C++ raw string tests.
* c-c++-common/raw-string-1.c: Combine C and C++ raw string tests.
	* c-c++-common/raw-string-2.c: Combine C and C++ raw string tests.
	* c-c++-common/raw-string-3.c: Combine C and C++ raw string tests.
	* c-c++-common/raw-string-4.c: Combine C and C++ raw string tests.
	* c-c++-common/raw-string-5.c: Combine C and C++ raw string tests.
	* c-c++-common/raw-string-6.c: Combine C and C++ raw string tests.
	* c-c++-common/raw-string-7.c: Combine C and C++ raw string tests.

From-SVN: r157803
2010-03-29 15:40:36 -04:00
Sebastian Pop 49a71bc8d6 Improve vectorization cost model diagnostic.
2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/43431
	* tree-vect-loop.c (vect_estimate_min_profitable_iters):
	Improve vectorization cost model diagnostic.

From-SVN: r157801
2010-03-29 16:38:40 +00:00
Sebastian Pop 22a8be9eee Improve vectorization diagnostic: loop contains function calls.
2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/43436
	* tree-vect-data-refs.c (vect_analyze_data_refs): When
	compute_data_dependences_for_loop returns false, early exit
	and output an extra diagnostic for the failed data reference
	analysis.

From-SVN: r157800
2010-03-29 16:38:34 +00:00
Richard Guenther 58adb739ef re PR tree-optimization/43560 (possible wrong code bug)
2010-03-29  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43560
	* tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p
	parameter.
	(can_sm_ref_p): Treat stores to readonly locations as
	trapping.

	* gcc.dg/torture/pr43560.c: New testcase.

From-SVN: r157799
2010-03-29 15:20:07 +00:00
Jason Merrill 521506258f Some raw string changes from N3077
Some raw string changes from N3077
	* charset.c (cpp_interpret_string): Change inner delimiters to ().
	* lex.c (lex_raw_string): Likewise.  Also disallow '\' in delimiter.

From-SVN: r157797
2010-03-29 11:00:43 -04:00
Jie Zhang 3b34d92c9c re PR other/43564 (ICE on code with optimize attribute and inlining)
PR 43564
	* toplev.c (process_options): Set optimization_default_node
	and optimization_current_node.
	* opts.c (decode_options): Don't set optimization_default_node
	and optimization_current_node.

	testsuite/
	PR 43564
	* gcc.dg/pr43564.c: New test.

From-SVN: r157795
2010-03-29 13:06:50 +00:00
Tobias Burnus 10fa280a98 re PR libfortran/43551 (Buffered direct I/O reads wrong record)
2010-03-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43551
        * io/unix.c (buf_write): Set physical_offset after lseek.

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

        PR fortran/43551
        * gfortran.dg/direct_io_12.f90: New test.

From-SVN: r157792
2010-03-29 08:17:19 +02:00
Ralf Corsepius 090f6087fe rtems.h: Abandon -qrtems_debug.
2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>

	* config/rtems.h: Abandon -qrtems_debug.

From-SVN: r157791
2010-03-29 07:06:42 +02:00
Andrew Pinski acf6bf363d MAINTAINERS (spu port): Remove me.
2010-03-28  Andrew Pinski  <pinskia@gmail.com>

        * MAINTAINERS (spu port): Remove me.

From-SVN: r157790
2010-03-28 22:00:30 -07:00
GCC Administrator 5611eb5c82 Daily bump.
From-SVN: r157789
2010-03-29 00:16:36 +00:00
Jan Hubicka 88cc1e04bd re PR tree-optimization/43505 (type mismatch between an SSA_NAME and its symbol with -O3)
PR tree-optimization/43505
	* cgraph.c (cgraph_clone_node): When clonning a clone, replacement
	map should not be copied.
	* gfortran.dg/pr43505.f90: New testcase.

From-SVN: r157786
2010-03-28 21:46:50 +00:00
H.J. Lu f48aa01a62 re PR target/40722 (ia32intrin.h defines of _rotl, _rotr conflict with target stdlib.h decls)
2010-03-28  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/40722
	* mkfixinc.sh: Revert the last change for mingw.

From-SVN: r157784
2010-03-28 09:40:50 -07:00
GCC Administrator 7a1e445fd2 Daily bump.
From-SVN: r157783
2010-03-28 00:16:45 +00:00
John David Anglin b932b8b1bb re PR middle-end/41674 (/usr/ccs/bin/ld: Unsatisfied symbols: _GLOBAL__I_65535_0_main)
PR middle-end/41674
	* cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
	cdtors, set DECL_PRESERVE_P.
	* ipa.c (cgraph_externally_visible_p): Return true if declaration
	should be preseved.

From-SVN: r157779
2010-03-27 15:43:19 +00:00
Uros Bizjak fb6807b860 re PR tree-optimization/43528 (ICE: in tree_low_cst, at tree.c:6198 with -mms-bitfields at x86_64-linux)
PR tree-optimization/43528
	* stor-layout.c (place_field): Check that constant fits into
	unsigned HWI when skipping calculation of MS bitfield layout.

testsuite/ChangeLog:

	PR tree-optimization/43528
	* gcc.target/i386/pr43528.c: New test.

From-SVN: r157776
2010-03-27 14:40:08 +01:00
Jan Hubicka a9deb2560c re PR middle-end/43391 (make_decl_rtl failure for C++ on AIX and HPUX)
PR middle-end/43391
	* varasm.c (make_decl_rtl): Deal with COMMON flag to make
	notice_global_symbol work.

From-SVN: r157773
2010-03-27 11:56:30 +00:00
Jakub Jelinek 5a9c8a1bb7 dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl instead of dwarf2out_decl.
* dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
	instead of dwarf2out_decl.
	(struct var_loc_node): Remove section_label field.
	(dwarf2out_function_decl): New function.
	(dwarf2out_var_location): Don't set section_label field.
	(dwarf2out_begin_function): Don't empty decl_loc_table here.

From-SVN: r157771
2010-03-27 11:52:27 +01:00
Michael Meissner 62f7fd2195 PR 43544, change TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION to take a tree argument
From-SVN: r157770
2010-03-27 10:27:39 +00:00
GCC Administrator 527a6a9c35 Daily bump.
From-SVN: r157769
2010-03-27 00:16:41 +00:00
Joseph Myers 10e76c1a45 re PR c/43381 (infinite loop in gcc.dg/parm-impl-decl-1.c with -g)
PR c/43381
	* c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
	nested binding iff it is a FUNCTION_DECL.
	(store_parm_decls_newstyle): Pass nested=true to bind for
	FUNCTION_DECLs amongst parameters.

testsuite:
	* gcc.dg/parm-impl-decl-3.c: New test.

From-SVN: r157766
2010-03-26 23:52:09 +00:00
Jason Merrill c6cc83d0c9 re PR c++/43509 ([C++0x] ICE in constructor_name_p, at cp/name-lookup.c:1809)
PR c++/43509
	* parser.c (cp_parser_qualifying_entity): Do accept enum names in
	c++0x mode, but not other type-names.

From-SVN: r157765
2010-03-26 17:39:48 -04:00
Jakub Jelinek 2155f963b3 var-tracking.c (vt_expand_loc_callback): Don't run cselib_expand_value_rtx_cb in dummy mode if...
* var-tracking.c (vt_expand_loc_callback): Don't run
	cselib_expand_value_rtx_cb in dummy mode if
	cselib_dummy_expand_value_rtx_cb returned false.

From-SVN: r157764
2010-03-26 21:55:34 +01:00
Jakub Jelinek e80691a0d7 var-tracking.c (emit_note_insn_var_location): For one part notes with offset 0, don't add EXPR_LIST around the location.
* var-tracking.c (emit_note_insn_var_location): For one part
	notes with offset 0, don't add EXPR_LIST around the location.
	* dwarf2out.c (loc_descriptor, dw_loc_list_1,
	add_location_or_const_value_attribute): Adjust for that change.

From-SVN: r157763
2010-03-26 21:54:43 +01:00
Jakub Jelinek 89245ef27b re PR debug/43540 (ICE: vector VEC(dw_cfi_ref,heap) grow domain error, in output_cfis at dwarf2out.c:3346 or OOM-killed)
PR debug/43540
	* dwarf2out.c (reg_save): For DW_CFA_expression put regnum
	into first operand and location into second.
	(dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
	dw_cfi_oprnd_loc for DW_CFA_expression.
	(dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
	(output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
	assume first argument is regnum and second argument is location.

From-SVN: r157762
2010-03-26 21:53:58 +01:00
Uros Bizjak c5e43cc45b re PR target/42113 (Internal Compiler error with -O3, breaking commit known)
PR target/42113
	* config/alpha/alpha.md (*cmp_sadd_si): Change mode
	of scratch register to DImode.  Split to DImode comparison operator.
	Use SImode subreg of scratch register in the multiplication.
	(*cmp_sadd_sidi): Ditto.
	(*cmp_ssub_si): Ditto.
	(*cmp_ssub_sidi): Ditto.

From-SVN: r157759
2010-03-26 19:45:56 +01:00
Uros Bizjak fb04bb842f re PR target/43524 (ICE: in ix86_expand_prologue, at config/i386/i386.c:8636 with -mstack-arg-probe on x86_64-linux)
PR target/43524
	* config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
	Remove invalid assert and wrong comment.

testsuite/ChangeLog:

	PR target/43524
	* gcc.target/i386/pr43524.c: New test.

From-SVN: r157757
2010-03-26 19:22:37 +01:00
Joseph Myers 7cbd785e80 * gcc.pot: Regenerate.
From-SVN: r157756
2010-03-26 17:53:13 +00:00
Rainer Orth 3211205756 profile_mode.xml (Profile Diagnostics): Correct cols.
* doc/xml/manual/profile_mode.xml (Profile Diagnostics): Correct
	cols.
	* doc/xml/manual/using.xml (C++ 1998 Library Headers): Add missing
	c5 colspec.
	(C++ 1998 Library Headers for C Library Facilities): Likewise.
	(C++ 200x Library Headers): Likewise.

From-SVN: r157754
2010-03-26 16:33:41 +00:00
Jakub Jelinek 6ca5d1f6d0 re PR debug/43516 ("-fcompare-debug failure" at -O2)
PR debug/43516
	* flags.h (final_insns_dump_p): New extern.
	* final.c (final_insns_dump_p): New variable.
	(rest_of_clean_state): Set it before -fdump-final-insns=
	dumping, clear afterwards.
	* print-rtl.c (print_rtx): If final_insns_dump_p don't dump
	MEM_ALIAS_SET on MEMs.

From-SVN: r157753
2010-03-26 17:18:51 +01:00
Martin Jambor 1360467133 loadpre1.c: Deleted trailing whitespace, renamed main to foo.
2010-03-26  Martin Jambor  <mjambor@suse.cz>

	* gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c: Deleted trailing
	whitespace, renamed main to foo.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre14.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre15.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre16.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre17.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre19.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre20.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre3.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c: Likewise.

From-SVN: r157748
2010-03-26 14:21:34 +01:00
H.J. Lu 7502f4273c Remove svn:executable.
From-SVN: r157747
2010-03-26 06:07:14 -07:00
Eric Botcazou 14f16522ed Fix nit
From-SVN: r157746
2010-03-26 09:51:32 +00:00
Dodji Seketeli 5f431950fa re PR c++/43327 (ICE in unifiy.c)
Fix for PR c++/43327

gcc/cp/ChangeLog:
	PR c++/43327
	* pt.c (add_to_template_args): Support NULL ARGS;
	(most_specialized_class): call coerce_template_parms on
	template arguments passed to get_class_bindings. Use
	add_to_template_args.
	(unify): Handle VAR_DECLs.

gcc/testsuite/ChangeLog:
	PR c++/43327
	* g++.dg/other/crash-10.C: New test.
	* g++.dg/other/crash-11.C: New test.

From-SVN: r157745
2010-03-26 10:20:58 +01:00
Dodji Seketeli 3910807d39 Fix compilation.
* cp-tree.h (get_template_parms_at_level): Change unsigned parm
	into int.
	* pt.c (get_template_parms_at_level): Adjust.

From-SVN: r157743
2010-03-26 09:26:04 +01:00
David S. Miller 46bc665fe4 configure.ac: Fix sparc GOTDATA_OP bug check.
* configure.ac: Fix sparc GOTDATA_OP bug check.
	* configure: Rebuild.

From-SVN: r157741
2010-03-25 22:40:32 -07:00
Jerry DeLisle 259d831f7e re PR fortran/43517 (spurious end-of-file condition when namelist read follows formatted read)
2010-03-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/43517
	* gfortran.dg/read_eof_7.f90: New test.

From-SVN: r157738
2010-03-26 03:26:26 +00:00
Jerry DeLisle 6a10835a6b re PR fortran/43517 (spurious end-of-file condition when namelist read follows formatted read)
2010-03-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/43517
	* io/read.c (read_x): Return if seen EOR condition.

From-SVN: r157737
2010-03-26 03:23:34 +00:00
Paolo Carlini 5dc2271456 [multiple changes]
2010-03-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/unordered_map.h (operator==, operator!=): Add per N3068.
	* include/bits/unordered_set.h (operator==, operator!=): Likewise.
	* include/debug/unordered_map (operator==, operator!=): Likewise.
	* include/debug/unordered_set: Likewise.
	* include/profile/unordered_map: Likewise.
	* include/profile/unordered_set: Likewise.
	* testsuite/23_containers/unordered_map/operators/1.cc: New.
	* testsuite/23_containers/unordered_multimap/operators/1.cc: Likewise.
	* testsuite/23_containers/unordered_multimap/operators/2.cc: Likewise.
	* testsuite/23_containers/unordered_set/operators/1.cc: Likewise.
	* testsuite/23_containers/unordered_multiset/operators/1.cc: Likewise.

2010-03-25  John Lakos  <jlakos@bloomberg.net>
	    Pablo Halpern  <phalpern@halpernwightsoftware.com>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/hashtable_policy.h (struct _Equality_base): Add.
	* include/bits/hashtable.h (_Hashtable<>): Derive from the latter.

From-SVN: r157736
2010-03-26 02:19:10 +00:00