Compare commits

...

2356 Commits

Author SHA1 Message Date
Richard Biener 4d1f511d7f Mark as release
From-SVN: r211571
2014-06-12 12:08:36 +00:00
Richard Biener f9c1baa928 Mark ChangeLog
From-SVN: r211570
2014-06-12 12:08:31 +00:00
Richard Biener fb0140a51b Mark ChangeLog
From-SVN: r211569
2014-06-12 12:08:26 +00:00
Richard Biener 18073165e9 Mark ChangeLog
From-SVN: r211568
2014-06-12 12:08:21 +00:00
Richard Biener 08e86d8703 Mark ChangeLog
From-SVN: r211567
2014-06-12 12:08:16 +00:00
Richard Biener 283b3a13fb Mark ChangeLog
From-SVN: r211566
2014-06-12 12:08:12 +00:00
Richard Biener 30e9058bb3 Mark ChangeLog
From-SVN: r211565
2014-06-12 12:08:06 +00:00
Richard Biener 481e2384d6 Mark ChangeLog
From-SVN: r211564
2014-06-12 12:08:01 +00:00
Richard Biener d298c64ed3 Mark ChangeLog
From-SVN: r211563
2014-06-12 12:07:55 +00:00
Richard Biener 6e8fc40d0a Mark ChangeLog
From-SVN: r211562
2014-06-12 12:07:50 +00:00
Richard Biener 5f549b1a13 Mark ChangeLog
From-SVN: r211561
2014-06-12 12:07:45 +00:00
Richard Biener 088a5dc3f9 Mark ChangeLog
From-SVN: r211559
2014-06-12 12:07:40 +00:00
Richard Biener 5ea335f23d Mark ChangeLog
From-SVN: r211558
2014-06-12 12:07:34 +00:00
Richard Biener 3f59cb2170 Mark ChangeLog
From-SVN: r211557
2014-06-12 12:07:29 +00:00
Richard Biener b607299443 Mark ChangeLog
From-SVN: r211556
2014-06-12 12:07:23 +00:00
Richard Biener 9cdf77e50e Mark ChangeLog
From-SVN: r211555
2014-06-12 12:07:18 +00:00
Richard Biener 458f077bda Mark ChangeLog
From-SVN: r211554
2014-06-12 12:07:13 +00:00
Richard Biener 2c14e4a5bd Mark ChangeLog
From-SVN: r211553
2014-06-12 12:07:09 +00:00
Richard Biener 19dced6c53 Mark ChangeLog
From-SVN: r211552
2014-06-12 12:07:02 +00:00
Richard Biener b991bee1b1 Mark ChangeLog
From-SVN: r211551
2014-06-12 12:06:57 +00:00
Richard Biener b2305e1b13 Mark ChangeLog
From-SVN: r211550
2014-06-12 12:06:52 +00:00
Richard Biener acc0409c9f Mark ChangeLog
From-SVN: r211549
2014-06-12 12:06:47 +00:00
Richard Biener b376da5df6 Mark ChangeLog
From-SVN: r211548
2014-06-12 12:06:42 +00:00
Richard Biener 9a4d2a35fe Mark ChangeLog
From-SVN: r211547
2014-06-12 12:06:35 +00:00
Richard Biener 19d934a9fa Mark ChangeLog
From-SVN: r211546
2014-06-12 12:06:30 +00:00
Richard Biener 6a949dd225 Mark ChangeLog
From-SVN: r211545
2014-06-12 12:06:25 +00:00
Richard Biener 2c317535cc Mark ChangeLog
From-SVN: r211544
2014-06-12 12:06:19 +00:00
Richard Biener 66a39e95ae Mark ChangeLog
From-SVN: r211543
2014-06-12 12:06:13 +00:00
Richard Biener 5db1a08a43 Mark ChangeLog
From-SVN: r211542
2014-06-12 12:06:08 +00:00
Richard Biener 532224b09e Mark ChangeLog
From-SVN: r211541
2014-06-12 12:06:02 +00:00
Richard Biener 0f88b94708 Mark ChangeLog
From-SVN: r211540
2014-06-12 12:05:57 +00:00
Richard Biener 8607bf696e Mark ChangeLog
From-SVN: r211539
2014-06-12 12:05:53 +00:00
Richard Biener 12f2521703 Mark ChangeLog
From-SVN: r211538
2014-06-12 12:05:48 +00:00
Richard Biener f87f39e029 Mark ChangeLog
From-SVN: r211537
2014-06-12 12:05:42 +00:00
Richard Biener f6f8fcea33 Mark ChangeLog
From-SVN: r211536
2014-06-12 12:05:37 +00:00
Richard Biener be2db0478e Mark ChangeLog
From-SVN: r211535
2014-06-12 12:05:33 +00:00
Richard Biener cbba6da1bf Mark ChangeLog
From-SVN: r211534
2014-06-12 12:05:27 +00:00
Richard Biener 3ffc2d77fb Mark ChangeLog
From-SVN: r211533
2014-06-12 12:05:23 +00:00
Richard Biener fe89f36ec3 Mark ChangeLog
From-SVN: r211532
2014-06-12 12:05:18 +00:00
Richard Biener e65d950b05 Mark ChangeLog
From-SVN: r211531
2014-06-12 12:05:13 +00:00
Richard Biener 366fee2d64 Mark ChangeLog
From-SVN: r211529
2014-06-12 12:05:07 +00:00
Richard Biener fcccf3acba Mark ChangeLog
From-SVN: r211528
2014-06-12 12:05:02 +00:00
Richard Biener 36d1062b4e Mark ChangeLog
From-SVN: r211527
2014-06-12 12:04:57 +00:00
Richard Biener def978ac38 Mark ChangeLog
From-SVN: r211526
2014-06-12 12:04:52 +00:00
Richard Biener 8bce903b05 Mark ChangeLog
From-SVN: r211525
2014-06-12 12:04:46 +00:00
GCC Administrator 486694251b Daily bump.
From-SVN: r211484
2014-06-12 00:16:37 +00:00
GCC Administrator 094079fe53 Daily bump.
From-SVN: r211429
2014-06-11 00:16:30 +00:00
GCC Administrator cc2ed93698 Daily bump.
From-SVN: r211390
2014-06-10 00:16:41 +00:00
GCC Administrator a8736b1c5c Daily bump.
From-SVN: r211359
2014-06-09 00:16:58 +00:00
GCC Administrator 084e73219a Daily bump.
From-SVN: r211348
2014-06-08 00:16:20 +00:00
GCC Administrator 7e5eff2c33 Daily bump.
From-SVN: r211336
2014-06-07 00:16:26 +00:00
GCC Administrator 86bf1cee1d Daily bump.
From-SVN: r211291
2014-06-06 00:16:28 +00:00
GCC Administrator b00bd3c011 Daily bump.
From-SVN: r211250
2014-06-05 00:16:35 +00:00
Richard Biener 2900601426 backport: re PR tree-optimization/57230 (tree-ssa-strlen incorrectly optimizes a strlen to 0)
2014-06-04  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2013-05-13  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/57230
	* tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
	check.

	* gcc.dg/strlenopt-23.c: New test.

From-SVN: r211225
2014-06-04 11:59:45 +00:00
GCC Administrator c403aa6dce Daily bump.
From-SVN: r211207
2014-06-04 00:16:30 +00:00
GCC Administrator 4b453a9ec5 Daily bump.
From-SVN: r211154
2014-06-03 00:16:31 +00:00
GCC Administrator f206ffc6dd Daily bump.
From-SVN: r211122
2014-06-02 00:16:40 +00:00
GCC Administrator 7ae42cd0f6 Daily bump.
From-SVN: r211107
2014-06-01 00:16:42 +00:00
GCC Administrator e88ebf0980 Daily bump.
From-SVN: r211098
2014-05-31 00:16:35 +00:00
Jason Merrill 8f71696861 re PR c++/56947 (Bogus 'XX' was not declared in this scope)
PR c++/56947
	* pt.c (instantiate_decl): Don't defer instantiation of a nested
	function.

From-SVN: r211083
2014-05-30 11:09:29 -04:00
GCC Administrator fa4ae80ed6 Daily bump.
From-SVN: r211068
2014-05-30 00:16:33 +00:00
Jonathan Wakely 5db03786b1 bool_set: Use UTF-8 for accented characters.
* include/tr2/bool_set: Use UTF-8 for accented characters.
	* scripts/run_doxygen: Handle Doxygen 1.8.x change.

From-SVN: r211056
2014-05-29 15:54:42 +01:00
GCC Administrator 0b06f4bc50 Daily bump.
From-SVN: r211038
2014-05-29 00:16:29 +00:00
Georg-Johann Lay 59add9e9a9 re PR target/61044 (Computed goto on AVR fails to use word-addressing)
PR target/61044
	* doc/extend.texi (Local Labels): Note that label differences are
	not supported for AVR.

From-SVN: r211002
2014-05-28 08:50:18 +00:00
GCC Administrator 687eed0efa Daily bump.
From-SVN: r210991
2014-05-28 00:16:37 +00:00
Eric Botcazou 33a889d50d * gnat.dg/aliasing1.adb (dg-final): Robustify pattern matching.
From-SVN: r210985
2014-05-27 20:39:22 +00:00
GCC Administrator 58aba0dd96 Daily bump.
From-SVN: r210952
2014-05-27 00:16:37 +00:00
Janne Blomqvist 8485aed47a PR 61310 Rewrite implementation of CTIME and FDATE intrinsics.
2014-05-26  Janne Blomqvist  <jb@gcc.gnu.org>

	Backport from mainline
	PR libfortran/61310
	* intrinsics.texi (CTIME): Remove mention of locale-dependent
	behavior.

2014-05-26  Janne Blomqvist  <jb@gcc.gnu.org>

	Backport from mainline
	PR libfortran/61310
	* intrinsics/ctime.c (strctime): Rename to gf_ctime, use snprintf
	instead of strftime.
	(fdate): Use gf_ctime.
	(fdate_sub): Likewise.
	(ctime): Likewise.
	(ctime_sub): Likewise.

From-SVN: r210947
2014-05-26 22:44:24 +03:00
GCC Administrator 9eedc5180e Daily bump.
From-SVN: r210915
2014-05-26 00:16:39 +00:00
GCC Administrator ff18e38766 Daily bump.
From-SVN: r210903
2014-05-25 00:16:06 +00:00
Dominique d'Humieres 6f338344c6 backport: [multiple changes]
2014-05-24  Dominique d'Humieres <dominiq@lps.ens.fr>

	Backport r195492 and r195815
	2013-01-27  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/55789
	* gfortran.dg/associate_14.f90: New test.

	PR fortran/56047
	* gfortran.dg/associate_13.f90: New test.

	2013-02-06  Paul Thomas <pault@gcc.gnu.org>

	PR fortran/55789          
	* gfortran.dg/array_constructor_41.f90: New test.

From-SVN: r210894
2014-05-24 17:45:02 +02:00
Dominique d'Humieres 45bb155d8c backport: [multiple changes]
2014-05-24  Dominique d'Humieres <dominiq@lps.ens.fr>

	Backport r195492 and r195815
	2013-01-27  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/55789
	PR fortran/56047
	* gfortran.h : Add associate_var to symbol_attr.
	* resolve.c (resolve_assoc_var): Set associate_var attribute.
	If the target class_ok is set, set it for the associate
	variable.
	* check.c (allocatable_check): Associate variables should not
	have the allocatable attribute even if their symbols do.
	* class.c (gfc_build_class_symbol): Symbols with associate_var
	set will always have a good class container.

	2013-02-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/55789
	* trans-array.c (trans_array_constructor): Remove condition
	'dynamic' = true if the loop ubound is a VAR_DECL.

From-SVN: r210893
2014-05-24 17:36:14 +02:00
GCC Administrator a01bf26c96 Daily bump.
From-SVN: r210882
2014-05-24 00:16:29 +00:00
Richard Biener 5146bacf9e backport: [multiple changes]
2014-05-23  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2013-08-30  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/58228
	* tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
	allow invariant loads in nested loop vectorization.

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

	2013-09-26  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/58539
	* tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
	the fact that debug statements are not taking part in loop-closed
	SSA construction.

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

From-SVN: r210847
2014-05-23 09:46:18 +00:00
GCC Administrator b62044bce9 Daily bump.
From-SVN: r210831
2014-05-23 00:16:32 +00:00
Richard Earnshaw c46e356961 re PR target/61208 (armhf: generated asm code produces "branch out of range" error in gas with -Os)
PR target/61208
	* arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.

From-SVN: r210816
2014-05-22 15:56:34 +00:00
GCC Administrator ba2266acbf Daily bump.
From-SVN: r210730
2014-05-22 00:16:24 +00:00
GCC Administrator c83bbb28db Daily bump.
From-SVN: r210662
2014-05-21 00:16:34 +00:00
Senthil Kumar Selvaraj fd941454c7 backport: re PR target/60991 ([avr] Stack corruption when using 24-bit integers __int24 or __memx pointers in large stack frame)
gcc/
2014-05-20  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	Backport from mainline r210325
	2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	PR target/60991
	* config/avr/avr.c (avr_out_store_psi): Use correct constant
	to restore Y.

gcc/testsuite/
2014-05-20  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	Backport from mainline r210325
	2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	PR target/60991
	* gcc.target/avr/pr60991.c: New testcase.

From-SVN: r210635
2014-05-20 08:37:50 +00:00
GCC Administrator 48d4e34ad2 Daily bump.
From-SVN: r210626
2014-05-20 00:16:21 +00:00
GCC Administrator 34f309c1af Daily bump.
From-SVN: r210593
2014-05-19 00:17:06 +00:00
GCC Administrator 91719c45b3 Daily bump.
From-SVN: r210570
2014-05-18 00:16:34 +00:00
GCC Administrator c07ddbbcda Daily bump.
From-SVN: r210539
2014-05-17 00:16:35 +00:00
Janne Blomqvist 756c9a1056 PR 61187 Fix use of uninitialized data.
2014-05-16  Janne Blomqvist  <jb@gcc.gnu.org>

	Backport from trunk:
	PR libfortran/61187
	* io/unix.c (raw_close): Check if s->fd is -1.
	(fd_to_stream): Check return value of fstat(), handle error.

From-SVN: r210529
2014-05-16 23:42:56 +03:00
GCC Administrator f807ac4569 Daily bump.
From-SVN: r210481
2014-05-16 00:16:31 +00:00
GCC Administrator 64caee6dac Daily bump.
From-SVN: r210452
2014-05-15 00:16:30 +00:00
GCC Administrator 44aa11c49c Daily bump.
From-SVN: r210407
2014-05-14 00:16:35 +00:00
Richard Biener ec6b957f5d backport: re PR tree-optimization/60382 (ICE on valid code at -O3 on x86_64-linux-gnu (in vect_create_epilog_for_reduction, at tree-vect-loop.c:4352))
2014-05-13  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2014-03-04  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/60382
	* tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
	dead PHIs a reduction.

	* gcc.dg/vect/pr60382.c: New testcase.

From-SVN: r210371
2014-05-13 13:21:47 +00:00
GCC Administrator 3ce085a300 Daily bump.
From-SVN: r210346
2014-05-13 00:16:32 +00:00
GCC Administrator f610ec2e52 Daily bump.
From-SVN: r210316
2014-05-12 00:16:38 +00:00
GCC Administrator 7cb2762284 Daily bump.
From-SVN: r210302
2014-05-11 00:16:18 +00:00
GCC Administrator 70edda5f06 Daily bump.
From-SVN: r210295
2014-05-10 00:16:25 +00:00
Georg-Johann Lay 1eaf9276cb backport: re PR target/61055 ([avr] wrong test instruction after increment with -O1)
gcc/
	Backport from 2014-05-09 trunk r210267
	PR target/61055
	* config/avr/avr.md (cc): Add new attribute set_vzn.
	(addqi3, negqi2) [cc]:
	Set cc insn attribute to set_vzn instead of set_zn for alternatives
	with INC, DEC or NEG.
	* config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
	(avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
	INC, DEC set cc0 to CC_CLOBBER.

gcc/testsuite/
	Backport from 2014-05-09 trunk r210267
	PR target/61055
	* gcc.target/avr/torture/pr61055.c: New test.

From-SVN: r210270
2014-05-09 11:34:46 +00:00
GCC Administrator 856853f1f3 Daily bump.
From-SVN: r210250
2014-05-09 00:16:29 +00:00
Joshua Gay 9f5f962c07 re PR libstdc++/61117 (Manual uses term open source but should say free software)
2014-05-08  Joshua Gay  <jgay@gnu.org>

	PR libstdc++/61117
	* doc/xml/faq.xml (faq.license.what_restrictions): Replace "open
	source" with "free software".
	* doc/html/faq.html: Likewise.

From-SVN: r210242
2014-05-08 20:57:06 +01:00
Charles Baylis 5008fb6b08 backport: re PR target/60609 (Error: value of 256 too large for field of 1 bytes at 68242)
2014-05-08  Charles Baylis  <charles.baylis@linaro.org>

        Backport from mainline
        2014-04-07  Charles Baylis  <charles.baylis@linaro.org>

        PR target/60609
        * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
        (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
        ADDR_DIFF_VEC.

From-SVN: r210227
2014-05-08 17:06:04 +00:00
GCC Administrator b646e3579d Daily bump.
From-SVN: r210194
2014-05-08 00:16:25 +00:00
Jakub Jelinek d66365c1fa backport: re PR middle-end/58809 (ICE with complex variable in OpenMP reduction clause)
Backported from mainline
	2013-10-21  Marek Polacek  <polacek@redhat.com>

	PR middle-end/58809
	* fold-const.c (fold_range_test): Return 0 if the type is not
	an integral type.

	* gcc.dg/gomp/pr58809.c: New test.

From-SVN: r210180
2014-05-07 18:11:42 +02:00
Jakub Jelinek 3d114c8f87 backport: re PR middle-end/59011 (ICE in make_decl_rtl, at varasm.c:1147)
Backported from mainline
	2013-12-03  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/59011
	* gimplify.c (nonlocal_vla_vars): New variable.
	(gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
	nonlocal_vla_vars chain.
	(gimplify_body): Call declare_vars on nonlocal_vla_vars chain
	if outer_bind has DECL_INITIAL (current_function_decl) block.

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

From-SVN: r210179
2014-05-07 18:10:35 +02:00
Jakub Jelinek 89fc3a0ffe backport: re PR c++/59297 (ICE: openmp atomic with indirect LHS)
Backported from mainline
	2013-11-28  Jakub Jelinek  <jakub@redhat.com>

	PR c++/59297
	* semantics.c (finish_omp_atomic): Call finish_expr_stmt
	rather than add_stmt.

	* g++.dg/gomp/pr59297.C: New test.

	2013-05-31  Jason Merrill  <jason@redhat.com>

	PR c++/56930
	* semantics.c (potential_constant_expression_1): Handle OMP_ATOMIC*.

From-SVN: r210178
2014-05-07 18:09:41 +02:00
Jakub Jelinek a4639ccb03 backport: re PR tree-optimization/59014 (wrong code at -Os and above on x86_64-linux-gnu)
Backported from mainline
	2013-11-27  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/59014
	* gcc.c-torture/execute/pr59014-2.c: New test.

	2013-11-26  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/59014
	* tree-vrp.c (register_edge_assert_for_1): Don't look
	through conversions from non-integral types or through
	narrowing conversions.

	* gcc.c-torture/execute/pr59014.c: New test.

From-SVN: r210177
2014-05-07 18:08:28 +02:00
Jakub Jelinek 6f3ab47985 backport: re PR target/59101 (integer wrong code bug)
Backported from mainline
	2013-11-14  Jakub Jelinek  <jakub@redhat.com>
		    Uros Bizjak  <ubizjak@gmail.com>

	PR target/59101
	* config/i386/i386.md (*anddi_2): Only allow CCZmode if
	operands[2] satisfies_constraint_Z that might have bit 31 set.

	* gcc.c-torture/execute/pr59101.c: New test.

From-SVN: r210176
2014-05-07 18:07:21 +02:00
Jakub Jelinek 11d82e3374 backport: re PR middle-end/58564 (possible wrong code bug at -O0)
Backported from mainline
	2013-09-30  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/58564
	* fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
	optimization, punt if sign_bit_p looked through any zero extension.

	* gcc.c-torture/execute/pr58564.c: New test.

From-SVN: r210174
2014-05-07 18:05:38 +02:00
Jakub Jelinek dd5422383c backport: re PR rtl-optimization/58365 (likely wrong code bug)
Backported from mainline
	2013-09-10  Jakub Jelinek  <jakub@redhat.com>

	PR rtl-optimization/58365
	* cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
	resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
	it differs.

	* gcc.c-torture/execute/pr58365.c: New test.

From-SVN: r210173
2014-05-07 18:04:44 +02:00
Jakub Jelinek 837b330651 backport: re PR c++/58325 (Spurious unused-but-set-variable warning on delete[] of volatile pointer)
Backported from mainline
	2013-09-09  Jakub Jelinek  <jakub@redhat.com>

	PR c++/58325
	* init.c (build_vec_delete): Call mark_rvalue_use on base.

	* g++.dg/warn/Wunused-var-21.C: New test.

From-SVN: r210172
2014-05-07 18:03:49 +02:00
Jakub Jelinek 64371e954c backport: re PR tree-optimization/58277 (wrong code at -O3)
Backported from mainline
	2013-08-30  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/58277
	* tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
	after seeing too many stmts with vdef in between dombb and current
	bb, invalidate everything.

	* gcc.c-torture/execute/pr58277-1.c: New test.
	* gcc.c-torture/execute/pr58277-2.c: New test.

From-SVN: r210171
2014-05-07 18:01:24 +02:00
Jakub Jelinek 258332f68c backport: re PR tree-optimization/58209 (ICE in extract_range_from_binary_expr, at tree-vrp.c:2294)
Backported from mainline
	2013-08-23  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/58209
	* tree-tailcall.c (find_tail_calls): Give up for pointer result types
	if m or a is non-NULL.

	* gcc.c-torture/execute/pr58209.c: New test.

From-SVN: r210170
2014-05-07 18:00:33 +02:00
Jakub Jelinek 0bdc2ca60c backport: re PR target/57777 (Python module fails compilation with "-march=core-avx2 -O3")
Backported from mainline
	2013-07-03  Jakub Jelinek  <jakub@redhat.com>

	PR target/57777
	* config/i386/predicates.md (vsib_address_operand): Disallow
	SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.

	* gcc.target/i386/pr57777.c: New test.

From-SVN: r210169
2014-05-07 17:59:37 +02:00
Jakub Jelinek 1b0399e74f backport: re PR target/57623 (BEXTR intrinsic has memory operands switched around (fails to compile code))
Backported from mainline
	2013-06-27  Jakub Jelinek  <jakub@redhat.com>

	PR target/57623
	* config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
	constraints of operand 1 and 2.

	* gcc.target/i386/bmi-bextr-3.c: New test.

From-SVN: r210168
2014-05-07 17:57:48 +02:00
Jakub Jelinek bc5874827e backport: re PR target/57623 (BEXTR intrinsic has memory operands switched around (fails to compile code))
Backported from mainline
	2013-06-27  Jakub Jelinek  <jakub@redhat.com>

	PR target/57623
	* config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
	to match RTL canonicalization.  Swap predicates and
	constraints of operand 1 and 2.

	* gcc.target/i386/bmi2-bzhi-1.c: New test.

From-SVN: r210166
2014-05-07 17:54:34 +02:00
Richard Biener 338b4a6f09 backport: re PR tree-optimization/59164 (ice: tree check: expected tree that contains ‘decl minimal’ structure, have ‘integer_cst’ in get_var_info, at tree-into-ssa.c:380)
2014-05-07  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2013-11-19  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/59164
	* tree-vect-loop.c (vect_analyze_loop_operations): Adjust
	check whether we can create an epilogue loop to reflect the
	cases where we create one.

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

From-SVN: r210154
2014-05-07 11:51:36 +00:00
Richard Biener a0c51dc96b backport: [multiple changes]
2014-05-07  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2013-11-29  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/59334
	* tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
	in previous commit.

	2013-11-28  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/59330
	* tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
	and fix delayed marking of free calls not necessary.

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

	2014-01-09  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/59715
	* tree-cfg.h (split_critical_edges): Declare.
	* tree-cfg.c (split_critical_edges): Export.
	* tree-ssa-sink.c (execute_sink_code): Split critical edges.

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

From-SVN: r210147
2014-05-07 10:07:09 +00:00
Richard Biener 74923c5ccf backport: [multiple changes]
2014-05-07  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2013-11-29  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/59334
	* tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
	in previous commit.

	2013-11-28  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/59330
	* tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
	and fix delayed marking of free calls not necessary.

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

	2014-01-09  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/59715
	* tree-cfg.h (split_critical_edges): Declare.
	* tree-cfg.c (split_critical_edges): Export.
	* tree-ssa-sink.c (execute_sink_code): Split critical edges.

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

From-SVN: r210146
2014-05-07 10:01:36 +00:00
Richard Biener b81aaebd22 re PR tree-optimization/57864 (ICE in bitmap_set_replace_value, at tree-ssa-pre.c:862)
2014-05-07  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/57864
	* tree-ssa-pre.c (phi_translate_1): Backport NAME case
	simplification from mainline.  Do not lookup the VN
	value-number here.

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

From-SVN: r210144
2014-05-07 08:05:57 +00:00
Richard Biener 7a6547fc50 backport: re PR tree-optimization/58246 (wrong code at -O1 and above)
2014-05-07  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2013-08-29  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/58246
	* tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
	handle the dominance check inside a basic-block.

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

From-SVN: r210141
2014-05-07 07:59:26 +00:00
GCC Administrator b4cd4627a0 Daily bump.
From-SVN: r210129
2014-05-07 00:16:43 +00:00
Richard Biener cb8d7dad64 backport: re PR tree-optimization/57417 (hang on volatile int array)
2014-05-06  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2013-05-27  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/57417
	* tree-ssa-sccvn.c (set_ssa_val_to): Compare addresses using
	get_addr_base_and_unit_offset.

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

From-SVN: r210110
2014-05-06 14:22:41 +00:00
GCC Administrator acbc405629 Daily bump.
From-SVN: r210089
2014-05-06 00:16:37 +00:00
GCC Administrator e2425af3f2 Daily bump.
From-SVN: r210050
2014-05-05 00:16:04 +00:00
GCC Administrator c36a26e956 Daily bump.
From-SVN: r210044
2014-05-04 00:16:21 +00:00
Janne Blomqvist 1666ebd49b PR 56919 Check _POSIX_MONOTONIC_CLOCK.
2014-05-04  Janne Blomqvist  <jb@gcc.gnu.org>

	Backport from 4.9
	PR libfortran/56919
	* intrinsics/system_clock.c (GF_CLOCK_MONOTONIC): Check
	_POSIX_MONOTONIC_CLOCK as well.

From-SVN: r210042
2014-05-04 00:03:10 +03:00
GCC Administrator 11847e811b Daily bump.
From-SVN: r210023
2014-05-03 00:16:22 +00:00
GCC Administrator e0e25330a6 Daily bump.
From-SVN: r209993
2014-05-02 00:16:40 +00:00
GCC Administrator aed80cb08c Daily bump.
From-SVN: r209963
2014-05-01 00:16:31 +00:00
GCC Administrator da7b221eb1 Daily bump.
From-SVN: r209919
2014-04-30 00:16:51 +00:00
GCC Administrator 4df11734df Daily bump.
From-SVN: r209884
2014-04-29 00:16:20 +00:00
GCC Administrator 176069bc40 Daily bump.
From-SVN: r209845
2014-04-28 00:17:00 +00:00
GCC Administrator 970e7deee5 Daily bump.
From-SVN: r209831
2014-04-27 00:16:33 +00:00
GCC Administrator 3f6acc7d52 Daily bump.
From-SVN: r209815
2014-04-26 00:16:26 +00:00
Eric Botcazou 7ecf72e57b re PR target/60941 (miscompilation of firefox javascript interpreter)
PR target/60941
	* config/sparc/sparc.md (ashlsi3_extend): Delete.

From-SVN: r209793
2014-04-25 10:47:44 +00:00
GCC Administrator 19870e7094 Daily bump.
From-SVN: r209769
2014-04-25 00:16:18 +00:00
GCC Administrator 0375bbbaee Daily bump.
From-SVN: r209728
2014-04-24 00:16:32 +00:00
Uros Bizjak 2811dd475f backport: re PR target/60909 (ICE: in extract_insn, at recog.c:2202 (unrecognizable insn) with -mrdrnd and __builtin_ia32_rdrand32_step())
Backport from mainline
        2014-04-21  Uros Bizjak  <ubizjak@gmail.com>

        PR target/60909
        * config/i386/i386.c (ix86_expand_builtin)
        <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
        register for target RTX.

testsuite/ChangeLog:

        Backport from mainline
        2014-04-21  Uros Bizjak  <ubizjak@gmail.com>

        PR target/60909
        * gcc.target/i386/pr60909.c: New test.

From-SVN: r209718
2014-04-23 21:05:33 +02:00
GCC Administrator 8d99a11f6f Daily bump.
From-SVN: r209666
2014-04-23 00:16:37 +00:00
GCC Administrator 889383647a Daily bump.
From-SVN: r209550
2014-04-22 00:16:04 +00:00
GCC Administrator 86470aeddb Daily bump.
From-SVN: r209539
2014-04-21 00:16:25 +00:00
GCC Administrator c79ce6f2d0 Daily bump.
From-SVN: r209531
2014-04-20 00:16:25 +00:00
GCC Administrator 50b54e9f39 Daily bump.
From-SVN: r209527
2014-04-19 00:16:22 +00:00
GCC Administrator 98b3b0520c Daily bump.
From-SVN: r209510
2014-04-18 00:16:14 +00:00
GCC Administrator 7fcc0d4711 Daily bump.
From-SVN: r209453
2014-04-17 00:16:15 +00:00
GCC Administrator d5af81cec7 Daily bump.
From-SVN: r209436
2014-04-16 00:16:31 +00:00
GCC Administrator 8c8c7d7d7f Daily bump.
From-SVN: r209396
2014-04-15 00:16:18 +00:00
GCC Administrator 48224e7729 Daily bump.
From-SVN: r209349
2014-04-14 00:16:39 +00:00
Jerry DeLisle a8b399bac9 backport: re PR fortran/60810 (list directed io from array results in end of file)
2014-04-12  Jerry DeLisle  <jvdelisle@gcc.gnu>

	Backport from mainline
	PR libfortran/60810
	gfortran.dg/arrayio_13.f90: New test.

	PR libfortran/60810
	io/unit.c (is_trim_ok): If internal unit is array, do not trim.

From-SVN: r209345
2014-04-13 02:05:02 +00:00
GCC Administrator 8037523d68 Daily bump.
From-SVN: r209341
2014-04-13 00:16:27 +00:00
GCC Administrator bc53b5a1f9 Daily bump.
From-SVN: r209330
2014-04-12 00:16:28 +00:00
GCC Administrator eb81efd299 Daily bump.
From-SVN: r209287
2014-04-11 00:16:34 +00:00
GCC Administrator 6ae99fce34 Daily bump.
From-SVN: r209258
2014-04-10 00:16:37 +00:00
Rainer Orth d1afd6a8c1 Check if GCC uses assembler cfi support
* config/generic/asmcfi.h: Also check for
	__GCC_HAVE_DWARF2_CFI_ASM.

From-SVN: r209245
2014-04-09 14:57:48 +00:00
GCC Administrator 9c0239662d Daily bump.
From-SVN: r209231
2014-04-09 00:16:33 +00:00
GCC Administrator d3460f64f7 Daily bump.
From-SVN: r209206
2014-04-08 00:16:37 +00:00
Martin Jambor 69fa443bad re PR ipa/60640 (ICE edge points to wrong declaration / verify_cgraph_node failed)
2014-04-07  Martin Jambor  <mjambor@suse.cz>

	PR ipa/60640
	* ipa-cp.c (propagate_constants_accross_call): Do not propagate
	accross thunks.

testsuite/
        * g++.dg/ipa/pr60640-1.C: New test.
        * g++.dg/ipa/pr60640-2.C: Likewise.
        * g++.dg/ipa/pr60640-3.C: Likewise.

From-SVN: r209181
2014-04-07 11:54:55 +02:00
Dominique d'Humieres 234c6b88d3 backport: re PR target/48094 (ld: warning: section has unexpectedly large size errors in objc/obj-c++ lto)
2014-04-07  Dominique d'Humieres <dominiq@lps.ens.fr>    

        Backport from mainline
        2013-09-14  Iain Sandoe <iains@gcc.gnu.org>

gcc:

	PR target/48094
	* config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is seen.
	(darwin_objc1_section): Likewise.
	(darwin_file_end): Emit Image Info section when required.

gcc/c-family:

	PR target/48094
	* c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
	fobjc-gc, freplace-objc-classes): Accept for LTO.

gcc/objc:

	PR target/48094
	* objc-next-runtime-abi-01.c (generate_objc_image_info): Remove.
	(objc_generate_v1_next_metadata): Remove generation of ImageInfo.
	* objc-next-runtime-abi-02.c (generate_v2_objc_image_info): Remove.
	(objc_generate_v2_next_metadata): Remove generation of ImageInfo.

From-SVN: r209176
2014-04-07 10:00:55 +02:00
GCC Administrator 6129af9923 Daily bump.
From-SVN: r209171
2014-04-07 00:16:15 +00:00
Dominique d'Humieres 973f0cbc2b re PR target/54083 (FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*)
2014-04-06  Dominique d'Humieres  <dominiq@lps.ens.fr>
	    Iain Sandoe <iain@codesourcery.com>

	PR target/54083
	* gcc.dg/attr-weakref-1.c: Allow the test on darwin with
	the additional options -Wl,-undefined,dynamic_lookup and
	-Wl,-flat_namespace
	* gcc.dg/torture/pr53922.c: Additional option
	-Wl,-flat_namespace for darwin[89].


Co-Authored-By: Iain Sandoe <iain@codesourcery.com>

From-SVN: r209162
2014-04-06 13:43:38 +02:00
GCC Administrator 18051c360d Daily bump.
From-SVN: r209158
2014-04-06 00:16:18 +00:00
Dominique d'Humieres 79b86e4f62 re PR target/54407 (FAIL: 30_threads/condition_variable/54185.cc execution test program timed out on powerpc-apple-darwin9 and x86_64-apple-darwin10)
2012-04-05  Dominique d'Humieres  <dominiq@lps.ens.fr>
	    Jack Howarth <howarth@bromo.med.uc.edu>

	PR target/54407
	* 30_threads/condition_variable/54185.cc: Skip for darwin < 11.


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

From-SVN: r209153
2014-04-05 14:29:27 +02:00
GCC Administrator 8587da6f2e Daily bump.
From-SVN: r209135
2014-04-05 00:16:35 +00:00
Richard Biener 60ac89fb03 tree-ssanames.c (make_ssa_name_fn): Fix assert.
2014-04-04  Richard Biener  <rguenther@suse.de>

	* tree-ssanames.c (make_ssa_name_fn): Fix assert.

From-SVN: r209082
2014-04-04 12:04:03 +00:00
GCC Administrator 7f2ff5ecdb Daily bump.
From-SVN: r209066
2014-04-04 00:16:20 +00:00
GCC Administrator cfc2609094 Daily bump.
From-SVN: r209043
2014-04-03 00:16:15 +00:00
Richard Henderson ca1f6c0463 libgomp: Fix default futex vs errno
* config/linux/futex.h (futex_wait): Get error value from errno.
	(futex_wake): Likewise.

From-SVN: r209037
2014-04-02 13:30:55 -07:00
GCC Administrator 205f92a005 Daily bump.
From-SVN: r209005
2014-04-02 00:16:33 +00:00
Jason Merrill 54648cb7d8 Core DR 475 PR c++/41174 PR c++/59224
Core DR 475
	PR c++/41174
	PR c++/59224
	* libsupc++/eh_throw.cc (__cxa_throw): Set uncaughtExceptions.
	* libsupc++/eh_alloc.cc (__cxa_allocate_dependent_exception)
	(__cxa_allocate_exception): Don't set it here.

From-SVN: r208991
2014-04-01 13:28:29 -04:00
Richard Biener 85cdf3fd40 gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
2014-04-01  Richard Biener  <rguenther@suse.de>

	* gimple.h (struct gimple_statement_base): Align subcode to
	16 bits.

From-SVN: r208976
2014-04-01 08:52:32 +00:00
Sebastian Huber 86882c95f4 * doc/invoke.texi (mapp-regs): Clarify.
From-SVN: r208975
2014-04-01 08:26:10 +00:00
GCC Administrator ca3a873066 Daily bump.
From-SVN: r208967
2014-04-01 00:16:15 +00:00
GCC Administrator 6f99f8476a Daily bump.
From-SVN: r208951
2014-03-31 00:16:30 +00:00
Eric Botcazou 0f4161d547 re PR ada/60703 (System.Address not preelaborable on MIPS)
PR ada/60703
	* system-linux-alpha.ads: Adjust for Ada 2005.
	* system-linux-mips.ads: Likewise.
	* system-linux-mips64el.ads: Likewise.
	* system-linux-mipsel.ads: Likewise.
	* system-linux-s390.ads: Likewise.
	* system-linux-s390x.ads: Likewise.
	* system-linux-sparc.ads: Likewise.
	* system-linux-sparcv9.ads: Likewise.
	* system-rtems.ads: Likewise.
	* system-vxworks-arm.ads: Likewise.

From-SVN: r208947
2014-03-30 15:48:48 +00:00
GCC Administrator 11e646d2e3 Daily bump.
From-SVN: r208942
2014-03-30 00:16:33 +00:00
Mikael Morin d1527043f4 re PR fortran/60677 (FAIL: gfortran.dg/ichar_3.f90 -O (test for excess errors))
fortran/
	PR fortran/60677
	* trans-intrinsic.c (gfc_conv_intrinsic_ichar): Enlarge argument
	list buffer.

From-SVN: r208935
2014-03-29 12:14:41 +00:00
Thomas Koenig 67a4e630bd re PR fortran/60522 (WHERE construct causes an ICE in gfc_trans_where_2)
2014-04-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/60522
	* frontend-passes.c (cfe_code):  Do not walk subtrees
	for WHERE.

2014-04-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/60522
	* gfortran.dg/where_4.f90:  New test case.

From-SVN: r208934
2014-03-29 11:51:17 +00:00
GCC Administrator e08381cb92 Daily bump.
From-SVN: r208928
2014-03-29 00:16:37 +00:00
GCC Administrator 1c77deeb37 Daily bump.
From-SVN: r208884
2014-03-28 00:16:40 +00:00
GCC Administrator e6d7b21852 Daily bump.
From-SVN: r208857
2014-03-27 00:16:30 +00:00
GCC Administrator 1805021efe Daily bump.
From-SVN: r208827
2014-03-26 00:16:42 +00:00
Jonathan Wakely 7c073614de re PR libstdc++/60658 (std::atomic<T*> is unexpectedly not lock-free)
PR libstdc++/60658
	* include/bits/atomic_base.h (__atomic_base<_PTp*>::is_lock_free()):
	Use sizeof pointer type not the element type.
	* testsuite/29_atomics/atomic/60658.cc: New.

From-SVN: r208821
2014-03-25 20:40:17 +00:00
GCC Administrator 56fd17350b Daily bump.
From-SVN: r208800
2014-03-25 00:16:20 +00:00
GCC Administrator f0ef3f3ad5 Daily bump.
From-SVN: r208777
2014-03-24 00:16:35 +00:00
Eric Botcazou 0aedbdc4b5 re PR rtl-optimization/60601 (profiledbootstrap fails with Ada)
PR rtl-optimization/60601
	* bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.

From-SVN: r208772
2014-03-23 11:31:36 +00:00
GCC Administrator 3870dbeb04 Daily bump.
From-SVN: r208767
2014-03-23 00:16:20 +00:00
GCC Administrator 5274e88d05 Daily bump.
From-SVN: r208760
2014-03-22 00:16:15 +00:00
Joey Ye 8adb2c22be Fix typo in ChangeLog
From-SVN: r208744
2014-03-21 02:38:22 +00:00
GCC Administrator 8e1304c908 Daily bump.
From-SVN: r208741
2014-03-21 00:16:20 +00:00
Tobias Burnus 6d84652499 re PR fortran/60543 (Function with side effect removed by the optimizer.)
2014-03-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/60543
        PR fortran/60283
        * gfortran.h (gfc_unset_implicit_pure): New prototype.
        * resolve.c (gfc_unset_implicit_pure): New.
        (resolve_structure_cons, resolve_function,
        pure_subroutine, resolve_ordinary_assign): Use it.
        * decl.c (match_old_style_init, gfc_match_data,
        match_pointer_init, variable_decl): Ditto.
        * expr.c (gfc_check_pointer_assign): Ditto.
        * intrinsic.c (gfc_intrinsic_sub_interface): Ditto.
        * io.c (match_vtag, gfc_match_open, gfc_match_close,
        match_filepos, gfc_match_inquire, gfc_match_print,
        gfc_match_wait, check_io_constraints): Ditto.
        * match.c (gfc_match_critical, gfc_match_stopcode,
        lock_unlock_statement, sync_statement, gfc_match_allocate,
        gfc_match_deallocate): Ditto.
        * parse.c (decode_omp_directive): Ditto.
        * symbol.c (gfc_add_save): Ditto.

2014-03-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/60543
        PR fortran/60283
        * gfortran.dg/implicit_pure_4.f90: New.

From-SVN: r208733
2014-03-20 20:42:15 +01:00
Jakub Jelinek 0aae659fe2 re PR target/60568 (lto1: internal compiler error: in insn_min_length, at config/i386/i386.md:1599)
PR target/60568
	* config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
	into CONST, put pic register as first operand of PLUS.  Use
	gen_const_mem for both 32-bit and 64-bit PIC got loads.

From-SVN: r208717
2014-03-20 17:34:32 +01:00
Joel Sherrill 428666e861 ChangeLog: Fix typo
From-SVN: r208712
2014-03-20 16:14:37 +00:00
Joel Sherrill e86ba77be7 config.host (v850*-*-*): Add to tmake_file instead of resetting it.
2014-03-20  Joel Sherrill  <joel.sherrill@oarcorp.com>

	* config.host (v850*-*-*): Add to tmake_file instead of resetting
	it. This was removing the v850*-*-rtems* settings.

From-SVN: r208711
2014-03-20 16:13:10 +00:00
GCC Administrator ce8770199e Daily bump.
From-SVN: r208689
2014-03-20 00:16:40 +00:00
Eric Botcazou d6bfe20ada * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Remove space.
From-SVN: r208678
2014-03-19 09:40:03 +00:00
GCC Administrator 25e70ad27b Daily bump.
From-SVN: r208670
2014-03-19 00:16:25 +00:00
Kai Tietz 540ebd9bac re PR rtl-optimization/56356 (DJGPP compiler crashing)
PR rtl-optimization/56356
	* sdbout.c (sdbout_parms): Verify that parms'
	incoming argument is valid.
	(sdbout_reg_parms): Likewise.

From-SVN: r208665
2014-03-18 21:08:03 +01:00
Richard Biener 29a127fc2e backport: [multiple changes]
2014-03-18  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2013-11-05  Richard Biener  <rguenther@suse.de>

	PR middle-end/58941
	* tree-dfa.c (get_ref_base_and_extent): Merge common code
	in MEM_REF and TARGET_MEM_REF handling.  Make sure to
	process trailing array detection before diving into the
	view-converted object (and possibly apply some extra offset).

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

	2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>

	* tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
	computation using the precision of the index type.

	2012-05-31  Eric Botcazou  <ebotcazou@adacore.com>

	* tree-dfa.c (get_ref_base_and_extent): Compute the offset using
	double ints throughout.

From-SVN: r208640
2014-03-18 10:58:22 +00:00
Richard Biener 83ee03a0e3 backport: [multiple changes]
2014-03-18  Richard Biener  <rguenther@suse.de>
 
	Backport from mainline
	2013-08-27  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/57521
	* tree-if-conv.c (if_convertible_bb_p): Verify that at least
	one edge is non-critical.
	(find_phi_replacement_condition): Make sure to use a non-critical
	edge.  Cleanup and remove old bug workarounds.
	(bb_postdominates_preds): Remove.
	(if_convertible_loop_p_1): Do not compute post-dominators.
	(combine_blocks): Do not free post-dominators.
	(main_tree_if_conversion): Likewise.

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

	2013-09-03  Richard Biener  <rguenther@suse.de>

	PR middle-end/57656
	* fold-const.c (negate_expr_p): Fix division case.
	(negate_expr): Likewise.

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

	2013-11-19  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/57517
	* tree-predcom.c (combinable_refs_p): Verify the combination
	is always executed when the refs are.

	* gfortran.fortran-torture/compile/pr57517.f90: New testcase.
	* gcc.dg/torture/pr57517.c: Likewise.

From-SVN: r208632
2014-03-18 08:46:21 +00:00
GCC Administrator ac5c8a8d2a Daily bump.
From-SVN: r208626
2014-03-18 00:16:21 +00:00
Richard Biener 01bc5f275b backport: [multiple changes]
2014-03-17  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2013-05-21  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/57303
	* tree-ssa-sink.c (statement_sink_location): Properly handle
	self-assignments.

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

	2013-12-02  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/59139
	* tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
	code in get_val_for.
	(get_val_for): Use gcc_checking_asserts.

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

	2014-02-14  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/60183
	* tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating
	loads.
	(tree_ssa_phiprop): Calculate and free post-dominators.

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

From-SVN: r208618
2014-03-17 14:38:55 +00:00
GCC Administrator 885bbd0bd7 Daily bump.
From-SVN: r208607
2014-03-17 00:16:19 +00:00
GCC Administrator f9139bd437 Daily bump.
From-SVN: r208600
2014-03-16 00:16:28 +00:00
Jerry DeLisle 962952b96f backport: re PR fortran/58324 (Bogus END-of-line error with list-directed I/O of file without trailing sequential record marker)
2014-03-15  Jerry DeLisle  <jvdelisle@gcc.gnu>

	Backport from mainline
	PR libfortran/58324
	PR libfortran/38199
	* intrinsics/string_intriniscs_inc.c (string_len_trim):
	Remove prototypes for string_len_trim and move to...
	* libgfortran.h (string_len_trim): ... here and
	(string_len_trim_char4): ...here.
	* io/list_read.c (finish_list_read): Read one character to check
	for the end of the file.  If it is the end, then issue the file
	end error message.  If not, use eat_line to reach the end
	without giving error.  The next attempt to read will then
	issue the error as described above.
	* io/read.c (read_decimal): Quickly skip spaces to avoid calls
	to next_char.
	* io/unit.c (is_trim_ok): New helper function to check various
	conditions to see if its OK to trim the internal unit string.
	(get_internal_unit): Use LEN_TRIM to shorten selected internal
	unit strings for optimizing READ. Enable this optimization for
	formatted READ.

	Backport from mainline
	PR libfortran/58324
	* gfortran.dg/list_read_12.f90: New test.

From-SVN: r208599
2014-03-15 23:06:44 +00:00
GCC Administrator fe6e62137f Daily bump.
From-SVN: r208583
2014-03-15 00:16:25 +00:00
Georg-Johann Lay bf00ff9b1f backport: re PR target/59396 ([avr] Wrong warning with ISR() and -flto)
Backport from 2014-03-14 trunk r208562.
	PR target/59396
	* config/avr/avr.c (avr_set_current_function): Pass function name
	through default_strip_name_encoding before sanity checking instead
	of skipping the first char of the assembler name.

From-SVN: r208565
2014-03-14 09:52:07 +00:00
GCC Administrator ae17bf99f5 Daily bump.
From-SVN: r208559
2014-03-14 00:16:33 +00:00
Eric Botcazou 1c4173cf3b re PR ada/51483 (cstand.adb:Register_Float_Type makes invalid assumption about FP modes)
PR ada/51483
	* back_end.ads (Register_Type_Proc): Add 'precision' parameter.
	* cstand.adb (Register_Float_Type): Add 'precision' parameter and use
	it to set the RM size.  Use directly 'size' for the Esize.
	* gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
	* gcc-interface/misc.c (enumerate_modes): Likewise.  Do not register
	types for vector modes, pass the size in addition to the precision.

From-SVN: r208548
2014-03-13 15:43:01 +00:00
GCC Administrator c22a5f5765 Daily bump.
From-SVN: r208523
2014-03-13 00:16:30 +00:00
GCC Administrator 0a26d1e893 Daily bump.
From-SVN: r208502
2014-03-12 00:16:47 +00:00
Uros Bizjak 3e0d3dc28d natObject.cc (_Jv_MonitorEnter): Add missing parenthesis around comparison with (address | LOCKED) in JvAssert.
* java/lang/natObject.cc (_Jv_MonitorEnter): Add missing parenthesis
	around comparison with (address | LOCKED) in JvAssert.

From-SVN: r208493
2014-03-11 19:58:16 +01:00
GCC Administrator b55ab6bf15 Daily bump.
From-SVN: r208467
2014-03-11 00:16:50 +00:00
GCC Administrator 07ae5439aa Daily bump.
From-SVN: r208445
2014-03-10 00:16:04 +00:00
Janus Weil 390af7c6d7 backport: re PR fortran/60450 (ICE with SHAPE intrinsic)
2014-03-09  Janus Weil  <janus@gcc.gnu.org>

	Backport from 4.8
	2014-03-08  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/60450
	* simplify.c (gfc_simplify_shape): Only clear shape if it was really
	created successfully.


2014-03-09  Janus Weil  <janus@gcc.gnu.org>

	Backport from 4.8
	2014-03-08  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/60450
	* gfortran.dg/shape_8.f90: New.

From-SVN: r208443
2014-03-09 19:44:42 +01:00
GCC Administrator c146e89f82 Daily bump.
From-SVN: r208435
2014-03-09 00:16:36 +00:00
GCC Administrator 244b5f3d51 Daily bump.
From-SVN: r208420
2014-03-08 00:16:16 +00:00
GCC Administrator b4692a89dd Daily bump.
From-SVN: r208387
2014-03-07 00:16:28 +00:00
GCC Administrator ecad880d5b Daily bump.
From-SVN: r208355
2014-03-06 00:16:20 +00:00
GCC Administrator 85ca91d9ea Daily bump.
From-SVN: r208336
2014-03-05 00:16:38 +00:00
GCC Administrator 72459a77fa Daily bump.
From-SVN: r208297
2014-03-04 00:16:20 +00:00
GCC Administrator ef30eeb81f Daily bump.
From-SVN: r208263
2014-03-03 00:16:19 +00:00
Mikael Morin 0cb04abc40 re PR fortran/60341 (ICE compiling Nonmem 6.2.0)
fortran/
        PR fortran/60341
        * frontend-passes.c (optimize_comparison): Guard two union
        accesses with the corresponding tag checks.

testsuite/
        PR fortran/60341
        * gfortran.dg/str_comp_optimize_1.f90: New test.

From-SVN: r208259
2014-03-02 18:49:18 +00:00
GCC Administrator ae4a62bb2e Daily bump.
From-SVN: r208252
2014-03-02 00:16:24 +00:00
GCC Administrator 69a40c5552 Daily bump.
From-SVN: r208238
2014-03-01 00:16:36 +00:00
Joey Ye 70952949a1 backport: re PR libgcc/60166 (ARM default NAN encoding violates EABI)
2014-02-28  Joey Ye  <joey.ye@arm.com>

	Backport from mainline r208229
	2014-02-28  Joey Ye  <joey.ye@arm.com>

        PR libgcc/60166
        * config/arm/sfp-machine.h (_FP_NANFRAC_H,
        _FP_NANFRAC_S, _FP_NANFRAC_D, _FP_NANFRAC_Q):
        Set to zero.

From-SVN: r208233
2014-02-28 22:05:13 +00:00
GCC Administrator a8301b4d50 Daily bump.
From-SVN: r208210
2014-02-28 00:16:18 +00:00
GCC Administrator 8a7cefb076 Daily bump.
From-SVN: r208189
2014-02-27 00:16:32 +00:00
Fabien Chêne a5953299b4 re PR c++/37140 (type inherited from base class not recognized)
2014-02-26  Fabien Chene  <fabien@gcc.gnu.org>
        PR c++/37140
        * parser.c (cp_parser_nonclass_name): Call strip_using_decl and
    move the code handling dependent USING_DECLs...
        * name-lookup.c (strip_using_decl): ...Here.

2014-02-26  Fabien Chene  <fabien@gcc.gnu.org>

        PR c++/37140
        * g++.dg/template/using27.C: New.
        * g++.dg/template/using28.C: New.
        * g++.dg/template/using29.C: New.

From-SVN: r208182
2014-02-26 22:16:15 +01:00
GCC Administrator 1c00964371 Daily bump.
From-SVN: r208160
2014-02-26 00:16:18 +00:00
John David Anglin b29bf35ad1 pa.c (pa_output_move_double): Don't valididate when adjusting offsetable addresses.
* config/pa/pa.c (pa_output_move_double): Don't valididate when
	adjusting offsetable addresses.

From-SVN: r208103
2014-02-25 00:54:41 +00:00
GCC Administrator 804bee2ada Daily bump.
From-SVN: r208098
2014-02-25 00:16:24 +00:00
GCC Administrator 2e0ca92cff Daily bump.
From-SVN: r208063
2014-02-24 00:16:22 +00:00
GCC Administrator 61caed3cfc Daily bump.
From-SVN: r208046
2014-02-23 00:16:15 +00:00
Mikael Morin 5e84639927 re PR fortran/59599 (Compiler internal error on intrinsic ichar)
fortran/
        PR fortran/59599
        * trans-intrinsic.c (gfc_conv_intrinsic_ichar): Calculate the
        number of arguments.

testsuite/
        PR fortran/59599
        * gfortran.dg/ichar_3.f90: New test.

From-SVN: r208043
2014-02-22 12:41:53 +00:00
GCC Administrator 034ca17ec0 Daily bump.
From-SVN: r208035
2014-02-22 00:16:31 +00:00
Jason Merrill 0b2c8f7f67 re PR c++/60248 ([C++11] ICE specializing variadic template)
PR c++/60248
	* mangle.c (mangle_decl): Don't make an alias for a TYPE_DECL.

From-SVN: r208005
2014-02-21 10:01:54 -05:00
Uros Bizjak b25b5f8756 i386.c (expand_vec_perm_pshufb2): Commit missing part from my previous patch.
* config/i386/i386.c (expand_vec_perm_pshufb2): Commit
	missing part from my previous patch.

From-SVN: r207985
2014-02-21 09:42:22 +01:00
Uros Bizjak 4a70f4d7e2 backport: re PR target/57896 (ICE in expand_expr_real_2)
Backport from mainline
	2014-02-21  Jakub Jelinek  <jakub@redhat.com>

	* config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
	mode for mask of V8SFmode permutation.

	Backport from 4.8 branch
	2014-02-20  Jakub Jelinek  <jakub@redhat.com>

	PR target/57896
	* config/i386/i386.c (expand_vec_perm_interleave2): Don't call
	gen_reg_rtx if d->testing_p.
	(expand_vec_perm_pshufb2, expand_vec_perm_even_odd_1,
	expand_vec_perm_broadcast_1): Return early if d->testing_p and
	we will certainly return true.

From-SVN: r207983
2014-02-21 08:55:35 +01:00
GCC Administrator 9408044418 Daily bump.
From-SVN: r207974
2014-02-21 00:16:21 +00:00
Kai Tietz 340f0354ef re PR c++/58873 ([c++11] ICE with __underlying_type for broken enum)
PR c++/58873
	* parser.c (cp_parser_functional_cast): Treat NULL_TREE
	valued type argument as error_mark_node.

From-SVN: r207963
2014-02-20 17:04:37 +01:00
Kai Tietz ea57539c67 re PR c++/58835 (ICE with __PRETTY_FUNCTION__ in broken function)
PR c++/58835
	* semantics.c (finish_fname): Handle error_mark_node.

From-SVN: r207957
2014-02-20 15:31:01 +01:00
Janus Weil ae8b9713a5 backport: re PR fortran/55907 (ICE with -fno-automatic -finit-local-zero)
2014-02-20  Janus Weil  <janus@gcc.gnu.org>

	Backport from mainline
	2014-02-17  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55907
	* resolve.c (build_default_init_expr): Don't initialize character
	variable if -fno-automatic is given.


2014-02-20  Janus Weil  <janus@gcc.gnu.org>

	Backport from mainline
	2014-02-17  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55907
	* gfortran.dg/init_flag_12.f90: New.

From-SVN: r207935
2014-02-20 09:00:48 +01:00
Terry Guo c6e1999f61 backport: invoke.texi: Document ARM -march=armv7e-m.
2014-02-20  Terry Guo  <terry.guo@arm.com>

	Backport from mainline
	2014-02-08  Terry Guo  <terry.guo@arm.com>

	* doc/invoke.texi: Document ARM -march=armv7e-m.

From-SVN: r207931
2014-02-20 02:32:49 +00:00
GCC Administrator 95ecdc094c Daily bump.
From-SVN: r207928
2014-02-20 00:16:36 +00:00
H.J. Lu 5406a4b260 Remove TFmode check for X86_64_INTEGER_CLASS
Backport from mainline
	PR target/60207
	* config/i386/i386.c (construct_container): Remove TFmode check
	for X86_64_INTEGER_CLASS.

From-SVN: r207926
2014-02-19 14:45:34 -08:00
Jason Merrill 2cd91876ef re PR c++/60046 (internal compiler error: in nothrow_spec_p, at cp/except.c:1280)
PR c++/60046
	* pt.c (maybe_instantiate_noexcept): Don't instantiate exception
	spec from template context.

From-SVN: r207922
2014-02-19 14:59:09 -05:00
GCC Administrator 47fb65e918 Daily bump.
From-SVN: r207861
2014-02-19 00:16:24 +00:00
Kai Tietz 45cac726fa backport: re PR target/60193 (ICE on big nested frame)
2014-02-18  Kai Tietz  <ktietz@redhat.com>

	Backport from mainline
	PR target/60193
	* config/i386/i386.c (ix86_expand_prologue): Use
	rax register as displacement for restoring %r10, %rax.
	Additional fix wrong offset for restoring both-registers.

2014-02-18  Kai Tietz  <ktietz@redhat.com>

	PR target/60193
	* gcc.target/i386/nest-1.c: New testcase.

From-SVN: r207846
2014-02-18 14:46:38 +01:00
Eric Botcazou 707ca89a14 ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous assertion with conditional return.
* ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
	assertion with conditional return.

From-SVN: r207840
2014-02-18 11:15:04 +00:00
Jakub Jelinek 873652368e re PR driver/60233 (AVX instructions emitted with -march=native on host without AVX support)
PR driver/60233
	* config/i386/driver-i386.c (host_detect_local_cpu): If
	YMM state is not saved by the OS, also clear has_f16c.  Move
	CPUID 0x80000001 handling before YMM state saving checking.

Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>

From-SVN: r207835
2014-02-18 08:32:17 +01:00
GCC Administrator 06ad943efa Daily bump.
From-SVN: r207829
2014-02-18 00:16:26 +00:00
GCC Administrator e0dce273a1 Daily bump.
From-SVN: r207811
2014-02-17 00:16:30 +00:00
GCC Administrator 5f75f3d498 Daily bump.
From-SVN: r207805
2014-02-16 00:16:34 +00:00
Jerry DeLisle 587d988ba6 backport: re PR libfortran/59771 (Cleanup handling of Gw.0 and Gw.0Ee format)
2014-02-15  Jerry DeLisle  <jvdelisle@gcc.gnu>
	    Dominique d'Humieres  <dominiq@lps.ens.fr>

	Backport from mainline
	PR libfortran/59771
	PR libfortran/59774
	PR libfortran/59836
	* gfortran.dg/fmt_g_1.f90: New test.
	* gfortran.dg/round_3.f08: New cases added.

Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr>

From-SVN: r207804
2014-02-15 16:55:19 +00:00
Jerry DeLisle 50a0547289 backport: re PR libfortran/59771 (Cleanup handling of Gw.0 and Gw.0Ee format)
2014-02-15  Jerry DeLisle  <jvdelisle@gcc.gnu>
	    Dominique d'Humieres  <dominiq@lps.ens.fr>

	Backport from mainline
	PR libfortran/59771
	PR libfortran/59774
	PR libfortran/59836
	* io/write_float.def (output_float): Fix wrong handling of the
	Fw.0 format.
	(output_float_FMT_G_): Fixes rounding issues with -m32.

Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr>

From-SVN: r207803
2014-02-15 16:53:07 +00:00
GCC Administrator e5078fd986 Daily bump.
From-SVN: r207794
2014-02-15 00:16:35 +00:00
GCC Administrator 0e89fed5d3 Daily bump.
From-SVN: r207771
2014-02-14 00:16:25 +00:00
Uros Bizjak 7e8986962a backport: sse.md (xop_vmfrcz<mode>2): Generate const0 in operands[2], not operands[3].
Backport from mainline
	2014-02-13  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
	operands[2], not operands[3].

From-SVN: r207769
2014-02-13 23:34:26 +01:00
GCC Administrator 4d41a3c3e6 Daily bump.
From-SVN: r207744
2014-02-13 00:16:21 +00:00
H.J. Lu 9f661aa437 Pass --32 to GNU assembler for .long foo@GOTOFF check
Backport from mainline
	PR target/60151
	* configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU
	assembler.

From-SVN: r207734
2014-02-12 08:43:47 -08:00
GCC Administrator c14ed12c9d Daily bump.
From-SVN: r207704
2014-02-12 00:16:29 +00:00
GCC Administrator 705975888d Daily bump.
From-SVN: r207674
2014-02-11 00:16:29 +00:00
GCC Administrator 019a5b8ba3 Daily bump.
From-SVN: r207647
2014-02-10 00:16:21 +00:00
GCC Administrator 965782850a Daily bump.
From-SVN: r207639
2014-02-09 00:16:22 +00:00
Mikael Morin e578362334 re PR fortran/57033 (ICE on extended derived type and default initialization)
fortran/
       PR fortran/57033
       * primary.c (gfc_convert_to_structure_constructor): Avoid null pointer
       dereference.

testsuite/
        PR fortran/57033
        * gfortran.dg/default_initialization_7.f90: New test.

From-SVN: r207635
2014-02-08 20:51:01 +00:00
GCC Administrator e152a9c8f1 Daily bump.
From-SVN: r207624
2014-02-08 00:16:18 +00:00
Paul Thomas f8df0e6ee5 re PR fortran/59906 (error: size of variable '<anonymous>' is too large)
2014-02-08  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/59906
	* trans-array.c (gfc_add_loop_ss_code): In the case of character
	SS_REFERENCE, use gfc_conv_string_parameter to ensure that a
	pointer to the string is stored.
	* trans-expr.c (gfc_conv_expr_reference): Likewise, use
	gfc_conv_string_parameter to ensure that a pointer to is passed
	to the elemental function.

2014-02-08  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/59906
	* gfortran.dg/elemental_subroutine_9.f90 : New test

From-SVN: r207617
2014-02-07 23:29:44 +00:00
GCC Administrator 14c1b1bc1f Daily bump.
From-SVN: r207584
2014-02-07 00:16:33 +00:00
GCC Administrator 792a0a90bf Daily bump.
From-SVN: r207526
2014-02-06 00:16:19 +00:00
James Greenhalgh e034a8b387 Fix issue with previous revision
Remove accidental "ssembly code." in the middle of a paragraph of text.

From-SVN: r207508
2014-02-05 15:06:28 +00:00
James Greenhalgh 5e12387459 [Backport: ARM Documentation] Clarify -mcpu, -mtune, -march
gcc/

	Backport from mainline.
	2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>

	PR target/59718
	* doc/invoke.texi (-march): Clarify documentation for ARM.
	(-mtune): Likewise.
	(-mcpu): Likewise.

From-SVN: r207506
2014-02-05 14:55:18 +00:00
GCC Administrator 35c726d2a6 Daily bump.
From-SVN: r207490
2014-02-05 00:16:34 +00:00
Uros Bizjak b92e63ee1d backport: re PR target/60017 (Struct not returned correctly)
Backport from mainline
	2014-02-02  Uros Bizjak  <ubizjak@gmail.com>

	PR target/60017
	* config/i386/i386.c (classify_argument): Fix handling of bit_offset
	when calculating size of integer atomic types.

testsuite/ChangeLog

	Backport from mainline
	2014-02-02  Uros Bizjak  <ubizjak@gmail.com>

	PR target/60017
	* gcc.c-torture/execute/pr60017.c: New test.

From-SVN: r207476
2014-02-04 17:46:06 +01:00
GCC Administrator c06c794854 Daily bump.
From-SVN: r207443
2014-02-04 00:16:41 +00:00
Janus Weil 05ea6f3ec0 re PR fortran/59941 ([OOP] ICE with polymorphic types)
2014-02-03  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/59941
	* expr.c (replace_comp): Check for isym to avoid ICE.

2014-02-03  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/59941
	* gfortran.dg/typebound_proc_26.f90: New.

From-SVN: r207417
2014-02-03 09:16:06 +01:00
GCC Administrator 3e2d816f67 Daily bump.
From-SVN: r207410
2014-02-03 00:16:38 +00:00
Uros Bizjak 87a06e2ea4 backport: gcc_update: Use $GCC_SVN to retrieve branch and revision.
Backport from mainline
        2012-05-09  David Edelsohn  <dje.gcc@gmail.com>

        * gcc_update: Use $GCC_SVN to retrieve branch and revision.

From-SVN: r207406
2014-02-02 20:18:29 +01:00
Uros Bizjak 90e4fe7ff1 backport: f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
Backport from mainline
	2014-01-30  Jakub Jelinek  <jakub@redhat.com>

	* config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.

From-SVN: r207395
2014-02-02 11:59:09 +01:00
GCC Administrator c85dc3c833 Daily bump.
From-SVN: r207391
2014-02-02 00:16:26 +00:00
Richard Henderson f1d6692f86 re PR middle-end/60004 (Conditional return within transaction causes ICE)
PR middle-end/60004

  * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
  until after else_eh is processed.

From-SVN: r207380
2014-01-31 21:20:13 -08:00
GCC Administrator f3e078da21 Daily bump.
From-SVN: r207376
2014-02-01 00:16:38 +00:00
Jason Merrill c6f5b65c3b re PR c++/57043 (converting overloaded complex function pow in C++11 is ambiguous)
PR c++/57043
	* pt.c (fn_type_unification): Don't do DEDUCE_EXACT check
	during partial ordering.

From-SVN: r207355
2014-01-31 10:55:46 -05:00
GCC Administrator 5d98ea3c0a Daily bump.
From-SVN: r207327
2014-01-31 00:16:17 +00:00
GCC Administrator 0d9928b98c Daily bump.
From-SVN: r207290
2014-01-30 00:16:19 +00:00
Markus Trippelsdorf 64a7e4703b backport: re PR gcov-profile/55650 (Firefox profiledbuild: libxul.so: cannot map zero-fill pages: Cannot allocate memory)
2014-01-29  Markus Trippelsdorf  <markus@trippelsdorf.de>

        Backport from mainline
        2012-12-13  Jakub Jelinek  <jakub@redhat.com>

        PR gcov-profile/55650
        * coverage.c (coverage_obj_init): Return false if no functions
        are being emitted.

        * g++.dg/other/pr55650.C: New test.
        * g++.dg/other/pr55650.cc: New file

From-SVN: r207277
2014-01-29 18:36:42 +00:00
GCC Administrator a2b564475b Daily bump.
From-SVN: r207221
2014-01-29 00:16:28 +00:00
Jason Merrill ca3d44f55a re PR c++/54652 (ICE with -g)
PR c++/54652
	* decl.c (duplicate_decls): Always use oldtype for TYPE_DECL.

From-SVN: r207192
2014-01-28 08:51:15 -05:00
Jason Merrill 8e45c9da33 re PR c++/58639 (ICE on self-referential struct member)
PR c++/58639
	* call.c (build_aggr_conv): Reject value-initialization of reference.

From-SVN: r207183
2014-01-28 08:40:06 -05:00
GCC Administrator e913fde7c5 Daily bump.
From-SVN: r207157
2014-01-28 00:16:15 +00:00
Mikael Morin d90eeb4e1c re PR fortran/58007 ([OOP] ICE in free_pi_tree(): Unresolved fixup - resolve_fixups does not fixup component of __class_bsr_Bsr_matrix)
fortran/
        PR fortran/58007
        * module.c (skip_list): Don't use default argument value.
        (load_derived_extensions, read_module): Update callers.

From-SVN: r207152
2014-01-27 21:23:16 +00:00
GCC Administrator b58d5150dc Daily bump.
From-SVN: r207122
2014-01-27 00:16:28 +00:00
Mikael Morin ec5a3959f3 re PR fortran/58007 ([OOP] ICE in free_pi_tree(): Unresolved fixup - resolve_fixups does not fixup component of __class_bsr_Bsr_matrix)
fortran/
        PR fortran/58007
        * module.c (fp2, find_pointer2): Remove.
        (mio_component_ref): Don't forcedfully set the containing derived type
        symbol for loading.  Remove unused argument.
        (mio_ref): Update caller
        (skip_list): New argument nest_level.  Initialize level with the new
        argument.
        (read_module): Add forced pointer components association for derived
        type symbols.

testsuite/
        PR fortran/58007
        * gfortran.dg/unresolved_fixup_1.f90: New test.
        * gfortran.dg/unresolved_fixup_2.f90: New test.

From-SVN: r207119
2014-01-26 14:49:47 +00:00
GCC Administrator d4fc9f05a3 Daily bump.
From-SVN: r207108
2014-01-26 00:16:21 +00:00
Walter Lee 2ee3ade281 backport: atomic.c (pre_atomic_barrier): Mark inline.
2014-01-25  Walter Lee  <walt@tilera.com>

            Backport from mainline
            2014-01-25  Walter Lee  <walt@tilera.com>

            * config/tilepro/atomic.c (pre_atomic_barrier): Mark inline.
            (post_atomic_barrier): Ditto.
            (__fetch_and_do): New macro.
            (__atomic_fetch_and_do): Use __fetch_and_do.
            (__sync_fetch_and_do): New macro.
            (__sync_fetch_and_add_4): New function.
            (__sync_fetch_and_sub_4): New function.
            (__sync_fetch_and_or_4): New function.
            (__sync_fetch_and_and_4): New function.
            (__sync_fetch_and_xor_4): New function.
            (__sync_fetch_and_nand_4): New function.
            (__sync_fetch_and_add_8): New function.
            (__sync_fetch_and_sub_8): New function.
            (__sync_fetch_and_or_8): New function.
            (__sync_fetch_and_and_8): New function.
            (__sync_fetch_and_xor_8): New function.
            (__sync_fetch_and_nand_8): New function.
            (__do_and_fetch): New macro.
            (__atomic_do_and_fetch): Use __do_and_fetch.
            (__sync_do_and_fetch): New macro.
            (__sync_add_and_fetch_4): New function.
            (__sync_sub_and_fetch_4): New function.
            (__sync_or_and_fetch_4): New function.
            (__sync_and_and_fetch_4): New function.
            (__sync_xor_and_fetch_4): New function.
            (__sync_nand_and_fetch_4): New function.
            (__sync_add_and_fetch_8): New function.
            (__sync_sub_and_fetch_8): New function.
            (__sync_or_and_fetch_8): New function.
            (__sync_and_and_fetch_8): New function.
            (__sync_xor_and_fetch_8): New function.
            (__sync_nand_and_fetch_8): New function.
            (__sync_exchange_methods): New macro.
            (__sync_val_compare_and_swap_4): New function.
            (__sync_bool_compare_and_swap_4): New function.
            (__sync_lock_test_and_test_4): New function.
            (__sync_val_compare_and_swap_8): New function.
            (__sync_bool_compare_and_swap_8): New function.
            (__sync_lock_test_and_test_8): New function.
            (__subword_cmpxchg_body): New macro.
            (__atomic_compare_exchange_1): Use __subword_cmpxchg_body.
            (__atomic_compare_exchange_2): Ditto.
            (__sync_subword_cmpxchg): New macro.
            (__sync_val_compare_and_swap_1): New function.
            (__sync_bool_compare_and_swap_1): New function.
            (__sync_val_compare_and_swap_2): New function.
            (__sync_bool_compare_and_swap_2): New function.
            (__atomic_subword): Rename to ...
            (__subword): ... New name.
            (__atomic_subword_fetch): Use __subword.
            (__sync_subword_fetch): New macro.
            (__sync_fetch_and_add_1): New function.
            (__sync_fetch_and_sub_1): New function.
            (__sync_fetch_and_or_1): New function.
            (__sync_fetch_and_and_1): New function.
            (__sync_fetch_and_xor_1): New function.
            (__sync_fetch_and_nand_1): New function.
            (__sync_fetch_and_add_2): New function.
            (__sync_fetch_and_sub_2): New function.
            (__sync_fetch_and_or_2): New function.
            (__sync_fetch_and_and_2): New function.
            (__sync_fetch_and_xor_2): New function.
            (__sync_fetch_and_nand_2): New function.
            (__sync_add_and_fetch_1): New function.
            (__sync_sub_and_fetch_1): New function.
            (__sync_or_and_fetch_1): New function.
            (__sync_and_and_fetch_1): New function.
            (__sync_xor_and_fetch_1): New function.
            (__sync_nand_and_fetch_1): New function.
            (__sync_add_and_fetch_2): New function.
            (__sync_sub_and_fetch_2): New function.
            (__sync_or_and_fetch_2): New function.
            (__sync_and_and_fetch_2): New function.
            (__sync_xor_and_fetch_2): New function.
            (__sync_nand_and_fetch_2): New function.
            (__atomic_subword_lock): Use __subword.
            (__sync_subword_lock): New macro.
            (__sync_lock_test_and_set_1): New function.
            (__sync_lock_test_and_set_2): New function.

From-SVN: r207107
2014-01-25 22:49:41 +00:00
Walter Lee 9221c11fb2 backport: atomic.c (BIT_OFFSET): Define.
2014-01-25  Walter Lee  <walt@tilera.com>

            Backport from mainline
            2014-01-25  Walter Lee  <walt@tilera.com>

            * config/tilepro/atomic.c (BIT_OFFSET): Define.
            (__atomic_subword_cmpxchg): Use BIT_OFFSET.
            (__atomic_subword): Ditto.

From-SVN: r207106
2014-01-25 22:48:44 +00:00
Walter Lee e8fd34d41a backport: atomic.c (__atomic_do_and_fetch): Add a prefix op argument.
2014-01-25  Walter Lee  <walt@tilera.com>

            Backport from mainline
            2014-01-25  Walter Lee  <walt@tilera.com>

            * config/tilepro/atomic.c (__atomic_do_and_fetch): Add
            a prefix op argument.
            (__atomic_nand_fetch_4): Add prefix op.
            (__atomic_nand_fetch_8): Ditto.

From-SVN: r207105
2014-01-25 22:47:52 +00:00
Walter Lee 50b8450bc2 backport: sync.md (atomic_fetch_sub): Fix negation and avoid clobbering a live register.
2014-01-25  Walter Lee  <walt@tilera.com>

            Backport from mainline
            2014-01-25  Walter Lee  <walt@tilera.com>

            * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
            avoid clobbering a live register.

From-SVN: r207104
2014-01-25 22:46:37 +00:00
Walter Lee 414f472c46 backport: tilegx-c.c (tilegx_cpu_cpp_builtins): Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
2014-01-25  Walter Lee  <walt@tilera.com>

            Backport from mainline
            2014-01-25  Walter Lee  <walt@tilera.com>

            * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins): 
            Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
            * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins): 
            Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.

From-SVN: r207103
2014-01-25 22:45:40 +00:00
Walter Lee ac21380511 backport: tilegx.c (tilegx_gen_bundles): Delete barrier insns before bundling.
2014-01-25  Walter Lee  <walt@tilera.com>

            Backport from mainline
            2014-01-25  Walter Lee  <walt@tilera.com>

            * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
            insns before bundling.
            * config/tilegx/tilegx.md (tile_network_barrier): Update
            comment.

From-SVN: r207102
2014-01-25 22:44:41 +00:00
Walter Lee f9116ed526 backport: tilegx.c (tilegx_expand_builtin): Set PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
2014-01-25  Walter Lee  <walt@tilera.com>

            Backport from mainline
            2014-01-25  Walter Lee  <walt@tilera.com>

            * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
            PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
            * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.

From-SVN: r207101
2014-01-25 22:43:56 +00:00
Walter Lee 13d0888f30 backport: tilepro.md (ctzdi2): Use register_operand predicate.
2014-01-25  Walter Lee  <walt@tilera.com>

            Backport from mainline
            2014-01-25  Walter Lee  <walt@tilera.com>

            * config/tilepro/tilepro.md (ctzdi2): Use register_operand
            predicate.
            (clzdi2): Ditto.
            (ffsdi2): Ditto.

From-SVN: r207100
2014-01-25 22:43:15 +00:00
Walter Lee 4d4e3675cc backport: tilegx.c (tilegx_expand_to_rtl_hook): New.
2014-01-25  Walter Lee  <walt@tilera.com>

            Backport from mainline
            2014-01-25  Walter Lee  <walt@tilera.com>

            * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
            (TARGET_EXPAND_TO_RTL_HOOK): Define.

From-SVN: r207099
2014-01-25 22:42:28 +00:00
GCC Administrator c4f9bbe374 Daily bump.
From-SVN: r207067
2014-01-25 00:16:37 +00:00
GCC Administrator 941b9a26b2 Daily bump.
From-SVN: r207013
2014-01-24 00:16:15 +00:00
GCC Administrator 25f5b3be39 Daily bump.
From-SVN: r206948
2014-01-23 00:16:16 +00:00
Uros Bizjak 0670466dc6 re PR target/59880 (ix86_avoid_lea_for_addr is buggy)
PR target/59880
	* config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
	for SImode_address_operand operands.  Return false
	if operands[1] is a REG.


Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r206940
2014-01-22 20:57:30 +01:00
GCC Administrator b05a9b75ec Daily bump.
From-SVN: r206912
2014-01-22 00:16:39 +00:00
Sterling Augustine 48ae52f0d0 Fix typo in ChangeLog.
From-SVN: r206902
2014-01-21 19:30:59 +00:00
Baruch Siach 5fa2d97c63 config.host (tmake_file): add t-slibgcc-libgcc for xtensa*-*-linux*.
2014-01-21  Baruch Siach <barch@tkos.co.il>

	* config.host (tmake_file): add t-slibgcc-libgcc for xtensa*-*-linux*.

From-SVN: r206898
2014-01-21 19:29:23 +00:00
Andrey Belevantsev 1e58a6c5aa backport: re PR rtl-optimization/57422 (ICE: SIGSEGV in dominated_by_p with custom flags)
Backport from mainline

        2013-12-23  Andrey Belevantsev  <abel@ispras.ru>

        PR rtl-optimization/57422
        * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
        add_to_hard_reg_set.

From-SVN: r206880
2014-01-21 16:31:35 +04:00
GCC Administrator 911a795251 Daily bump.
From-SVN: r206862
2014-01-21 00:16:26 +00:00
GCC Administrator e79f249edb Daily bump.
From-SVN: r206787
2014-01-20 00:16:26 +00:00
John David Anglin 3e5485c481 pa.c (pa_attr_length_millicode_call): Correct length of long non-pic millicode calls.
* config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
	long non-pic millicode calls.

From-SVN: r206781
2014-01-19 18:17:38 +00:00
GCC Administrator 5d8e1616a8 Daily bump.
From-SVN: r206768
2014-01-19 00:16:16 +00:00
John David Anglin 647f7878da pa.c (pa_attr_length_indirect_call): Don't output a short call to $$dyncall when TARGET_LONG_CALLS is true.
* config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
	call to $$dyncall when TARGET_LONG_CALLS is true.

From-SVN: r206744
2014-01-18 00:42:36 +00:00
GCC Administrator b61d8af7eb Daily bump.
From-SVN: r206739
2014-01-18 00:16:41 +00:00
Charles Baylis a4e6860aca backport: re PR target/59142 (internal compiler error while compiling OpenCV 2.4.7)
2014-01-17  Charles Baylis  <charles.baylis@linaro.org>

	Backport from mainline
	2013-12-19  Charles Baylis  <charles.baylis@linaro.org>

	PR target/59142
	* config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
	patterns.
	* config/arm/ldmstm.md: Regenerate.

	2013-12-19  Charles Baylis  <charles.baylis@linaro.org>

	PR target/59142
	* config/arm/predicates.md (arm_hard_general_register_operand):
	New predicate.
	(arm_hard_register_operand): Remove.
	* config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
	for all patterns.
	* config/arm/ldmstm.md: Regenerate.

From-SVN: r206707
2014-01-17 12:57:02 +01:00
GCC Administrator f030bb1784 Daily bump.
From-SVN: r206691
2014-01-17 00:16:19 +00:00
Jakub Jelinek 491d1c63f1 re PR target/59839 (i686 AVX2 gather intrinsic not compiling with -O0 on mingw w64)
PR target/59839
	* config/i386/i386.c (ix86_expand_builtin): If target doesn't
	satisfy operand 0 predicate for gathers, use a new pseudo as
	subtarget.

	* gcc.target/i386/pr59839.c: New test.

From-SVN: r206684
2014-01-16 20:27:28 +01:00
Jakub Jelinek 355e605979 re PR debug/54694 (internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2out.c:2387)
PR debug/54694
	* gcc.target/i386/pr9771-1.c (main): Rename to...
	(real_main): ... this.  Add __asm name "main".
	(ASMNAME, ASMNAME2, STRING): Define.

From-SVN: r206681
2014-01-16 20:22:08 +01:00
Richard Henderson d248893664 re PR debug/54694 (internal compiler error: in dwarf2out_frame_debug_expr, at dwarf2out.c:2387)
PR debug/54694

Diagnose frame_pointer_required vs fixed hfp

From-SVN: r206667
2014-01-16 08:33:30 -08:00
Marek Polacek 0ef2774749 re PR middle-end/59827 (ICE on array with incomplete element type)
PR middle-end/59827
	* gimple-low.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
	it is error_mark_node.
testsuite/
	* gcc.dg/pr59827.c: New test.

From-SVN: r206665
2014-01-16 14:59:46 +00:00
GCC Administrator 769a99095f Daily bump.
From-SVN: r206653
2014-01-16 00:16:32 +00:00
GCC Administrator bdd5d02b75 Daily bump.
From-SVN: r206612
2014-01-15 00:16:16 +00:00
Uros Bizjak 3ba4ee8278 Revert:
2014-01-08  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_data_alignment): Calculate max_align
	from prefetch_block tune setting.

From-SVN: r206607
2014-01-14 20:28:36 +01:00
GCC Administrator 8b503a0fbc Daily bump.
From-SVN: r206591
2014-01-14 00:16:21 +00:00
GCC Administrator abda4e9dfc Daily bump.
From-SVN: r206569
2014-01-13 00:16:31 +00:00
Eric Botcazou 09a2a57e46 re PR ada/59772 (floating-point constants are not correctly encoded)
PR ada/59772
	* gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
	as intermediate type.
	(UI_To_gnu): Likewise.

From-SVN: r206567
2014-01-12 14:30:19 +00:00
GCC Administrator bbda955334 Daily bump.
From-SVN: r206561
2014-01-12 00:16:39 +00:00
Janus Weil 1e5b6fbb5a backport: re PR fortran/59612 ([F03] iso_fortran_env segfaults with -fdump-fortran-original)
2014-01-11  Janus Weil  <janus@gcc.gnu.org>

	Backport from mainline
	2013-12-29  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/59612
	PR fortran/57042
	* dump-parse-tree.c (show_typespec): Check for charlen.
	* invoke.texi: Fix documentation of -fdump-fortran-optimized and
	-fdump-parse-tree.

From-SVN: r206560
2014-01-11 23:47:25 +01:00
GCC Administrator 45aab70e97 Daily bump.
From-SVN: r206546
2014-01-11 00:16:32 +00:00
Richard Earnshaw 112c0c6117 re PR rtl-optimization/54300 (regcprop incorrectly looks through parallel register swap operation)
PR rtl-optimization/54300

gcc:
	* regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
	outputs in a single-set are killed from the value chains.
gcc/testsuite:
	* gcc.target/arm/pr54300.C: New test.

From-SVN: r206533
2014-01-10 16:54:43 +00:00
Huacai Chen 450c586db7 driver-native.c (host_detect_local_cpu): Handle new kernel strings for Loongson-2E/2F/3A.
gcc/
2014-01-10  Huacai Chen  <chenhc@lemote.com>

	* config/mips/driver-native.c (host_detect_local_cpu): Handle new
	kernel strings for Loongson-2E/2F/3A.

From-SVN: r206514
2014-01-10 08:54:42 +00:00
GCC Administrator a2aac0c954 Daily bump.
From-SVN: r206505
2014-01-10 00:16:33 +00:00
GCC Administrator ca5e8c09f4 Daily bump.
From-SVN: r206450
2014-01-09 00:16:30 +00:00
Uros Bizjak e000ff4e52 backport: i386.c (ix86_data_alignment): Calculate max_align from prefetch_block tune setting.
Backport from mainline
	2014-01-05  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_data_alignment): Calculate max_align
	from prefetch_block tune setting.
	(nocona_cost): Correct size of prefetch block to 64.

From-SVN: r206436
2014-01-08 18:01:39 +01:00
GCC Administrator 75758f3b6d Daily bump.
From-SVN: r206408
2014-01-08 00:16:47 +00:00
GCC Administrator dfea43d32d Daily bump.
From-SVN: r206380
2014-01-07 00:16:30 +00:00
GCC Administrator a56e86eadb Daily bump.
From-SVN: r206349
2014-01-06 00:16:14 +00:00
GCC Administrator 11225b3e0e Daily bump.
From-SVN: r206338
2014-01-05 00:16:24 +00:00
GCC Administrator 40faae8815 Daily bump.
From-SVN: r206328
2014-01-04 00:16:27 +00:00
Joseph Myers 6c4de23c63 ibm-ldouble.c (__gcc_qdiv): Scale up arguments in case of small numerator and finite nonzero result.
libgcc:
	* config/rs6000/ibm-ldouble.c (__gcc_qdiv): Scale up arguments in
	case of small numerator and finite nonzero result.

gcc/testsuite:
	* gcc.target/powerpc/rs6000-ldouble-3.c: New test.

From-SVN: r206321
2014-01-03 15:54:24 +00:00
GCC Administrator 0bdc467cc8 Daily bump.
From-SVN: r206306
2014-01-03 00:16:27 +00:00
GCC Administrator 65daa3779b Daily bump.
From-SVN: r206275
2014-01-02 00:16:31 +00:00
GCC Administrator af8055a218 Daily bump.
From-SVN: r206271
2014-01-01 00:16:16 +00:00
GCC Administrator ff4a3addb1 Daily bump.
From-SVN: r206253
2013-12-31 00:16:29 +00:00
GCC Administrator 12b368fb44 Daily bump.
From-SVN: r206239
2013-12-30 00:16:22 +00:00
GCC Administrator 180d42ca66 Daily bump.
From-SVN: r206234
2013-12-29 00:16:04 +00:00
Eric Botcazou 6327085a41 * doc/invoke.texi (output file options): Add missing markers.
From-SVN: r206231
2013-12-28 10:45:30 +00:00
GCC Administrator 61bae6def9 Daily bump.
From-SVN: r206225
2013-12-28 00:16:43 +00:00
GCC Administrator bb1b298578 Daily bump.
From-SVN: r206216
2013-12-27 00:16:34 +00:00
GCC Administrator 9236ab767c Daily bump.
From-SVN: r206205
2013-12-26 00:16:26 +00:00
GCC Administrator 75862f3576 Daily bump.
From-SVN: r206197
2013-12-25 00:16:23 +00:00
GCC Administrator 4a3c984894 Daily bump.
From-SVN: r206189
2013-12-24 00:16:32 +00:00
GCC Administrator f22bbea022 Daily bump.
From-SVN: r206169
2013-12-23 00:16:21 +00:00
GCC Administrator 8ac2c6bc92 Daily bump.
From-SVN: r206163
2013-12-22 00:16:25 +00:00
GCC Administrator ba375cf282 Daily bump.
From-SVN: r206158
2013-12-21 00:16:15 +00:00
GCC Administrator 91aaf918c4 Daily bump.
From-SVN: r206136
2013-12-20 00:16:21 +00:00
GCC Administrator 17f78a5d73 Daily bump.
From-SVN: r206103
2013-12-19 00:16:16 +00:00
GCC Administrator e3f3013344 Daily bump.
From-SVN: r206075
2013-12-18 00:16:27 +00:00
GCC Administrator 42393aa79b Daily bump.
From-SVN: r206036
2013-12-17 00:16:29 +00:00
GCC Administrator 863eb6a5ca Daily bump.
From-SVN: r206005
2013-12-16 00:16:21 +00:00
GCC Administrator 0f3289795c Daily bump.
From-SVN: r205994
2013-12-15 00:16:13 +00:00
GCC Administrator 1e3087f5fa Daily bump.
From-SVN: r205978
2013-12-14 00:16:13 +00:00
Eric Botcazou 6cda24c97b * gcc-interface/Make-lang.in (ada/doctools/xgnatugn): Use gnatmake.
From-SVN: r205956
2013-12-13 09:20:09 +00:00
GCC Administrator fb5505d2d3 Daily bump.
From-SVN: r205949
2013-12-13 00:16:28 +00:00
Uros Bizjak 10d9ab137b backport: re PR testsuite/59442 (movapd tests fail if built with -fstack-protector-strong/all)
Backport from mainline
	2013-12-12  Ryan Mansfield  <rmansfield@qnx.com>

	PR testsuite/59442
	* gcc.target/i386/sse2-movapd-1.c: Fix alignment attributes.
	* gcc.target/i386/sse2-movapd-2.c: Likewise.
	* gcc.target/i386/avx-vmovapd-256-1.c: Likewise.
	* gcc.target/i386/avx-vmovapd-256-2.c: Likewise.

From-SVN: r205921
2013-12-12 09:00:22 +01:00
GCC Administrator f1c55a6d0c Daily bump.
From-SVN: r205910
2013-12-12 00:16:13 +00:00
Kai Tietz ca8b2988b4 Committed as obvious fix.
PR target/56807
        * config/i386/i386.c (ix86_expand_prologue): plus_constant
        takes no mode-argument.

From-SVN: r205895
2013-12-11 15:05:56 +01:00
GCC Administrator 177a79c7e1 Daily bump.
From-SVN: r205877
2013-12-11 00:16:25 +00:00
Kai Tietz 6ce027dc6d re PR target/56807 (mingw32: Conflict between stack realignment and stack probe destroys function argument in EAX)
PR target/56807
        * config/i386/i386.c (ix86_expand_prologue): Address saved
        registers stack-relative, not via frame-pointer.

From-SVN: r205864
2013-12-10 17:52:23 +01:00
GCC Administrator 342b1f78b0 Daily bump.
From-SVN: r205840
2013-12-10 00:16:25 +00:00
GCC Administrator 7cc97214ec Daily bump.
From-SVN: r205796
2013-12-09 00:16:30 +00:00
GCC Administrator 74a570c3f2 Daily bump.
From-SVN: r205786
2013-12-08 00:16:19 +00:00
GCC Administrator 98dd0d389a Daily bump.
From-SVN: r205768
2013-12-07 00:16:22 +00:00
GCC Administrator ee9cd7c966 Daily bump.
From-SVN: r205724
2013-12-06 00:16:31 +00:00
GCC Administrator 7eba7c22d9 Daily bump.
From-SVN: r205686
2013-12-05 00:16:36 +00:00
Marek Polacek 7fb4b8b80b re PR c/59351 (ICE on empty compound literal with -pedantic)
PR c/59351
testsuite/
	* gcc.dg/pr59351.c: Use -pedantic instead of -Wpedantic.

From-SVN: r205673
2013-12-04 15:54:48 +00:00
GCC Administrator c3446f53fb Daily bump.
From-SVN: r205649
2013-12-04 00:16:41 +00:00
Marek Polacek 0ada7fd51c backport: re PR c/59351 (ICE on empty compound literal with -pedantic)
Backport from mainline
	2013-12-03  Marek Polacek  <polacek@redhat.com>

	PR c/59351
	* c-decl.c (build_compound_literal): Allow compound literals with
	empty initial value.

From-SVN: r205632
2013-12-03 13:52:12 +00:00
GCC Administrator d4ce14f16b Daily bump.
From-SVN: r205610
2013-12-03 00:16:30 +00:00
GCC Administrator f3d9e9390e Daily bump.
From-SVN: r205576
2013-12-02 00:16:33 +00:00
Eric Botcazou 26c11d53d8 winnt.c (i386_pe_asm_named_section): Be prepared for an identifier node.
* config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
	identifier node.

From-SVN: r205570
2013-12-01 12:22:38 +00:00
GCC Administrator 2275699d79 Daily bump.
From-SVN: r205558
2013-12-01 00:16:31 +00:00
GCC Administrator 886b350915 Daily bump.
From-SVN: r205545
2013-11-30 00:16:32 +00:00
Matthias Klose ea638b0482 gnu_java_awt_peer_gtk_FreetypeGlyphVector.c, [...]: Fix freetype includes.
2013-11-29  Matthias Klose  <doko@ubuntu.com>

        * native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c,
        native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c:
        Fix freetype includes.

From-SVN: r205535
2013-11-29 16:57:12 +00:00
GCC Administrator 993e074ca7 Daily bump.
From-SVN: r205502
2013-11-29 00:16:50 +00:00
Uros Bizjak 6b1ca0e230 backport: re PR target/56788 (_mm_frcz_sd and _mm_frcz_ss ignore their second argument)
Backport from mainline
	2013-11-23  Uros Bizjak  <ubizjak@gmail.com>

	PR target/56788
	* config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
	Declare as MULTI_ARG_1_SF instruction.
	<IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
	* config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
	from *xop_vmfrcz_<mode>.
	* config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
	to merge scalar result with __A.
	(_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
	result with __A.

testsuite/ChangeLog:

	Backport from mainline
	2013-11-27  Uros Bizjak  <ubizjak@gmail.com>
		    Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>

	PR target/56788
	* gcc.target/i386/xop-frczX.c: New test.

From-SVN: r205497
2013-11-28 19:14:23 +01:00
GCC Administrator 9989e40545 Daily bump.
From-SVN: r205469
2013-11-28 00:16:17 +00:00
GCC Administrator 00c91732fb Daily bump.
From-SVN: r205423
2013-11-27 00:16:38 +00:00
GCC Administrator e7666060b5 Daily bump.
From-SVN: r205370
2013-11-26 00:16:42 +00:00
Vidya Praveen cd81d3ba54 backport: 20050922-1.c: Remove stdlib.h and declare abort().
2013-11-25  Vidya Praveen  <vidyapraveen@arm.com>

	Backport from mainline
	2013-10-21  Vidya Praveen  <vidyapraveen@arm.com>

	* gcc.dg/20050922-1.c: Remove stdlib.h and declare abort().
	* gcc.dg/20050922-1.c: Remove stdlib.h and declare abort() and exit().

From-SVN: r205350
2013-11-25 11:57:01 +00:00
GCC Administrator c58fb6b6b1 Daily bump.
From-SVN: r205339
2013-11-25 00:16:26 +00:00
GCC Administrator 637d3b11f2 Daily bump.
From-SVN: r205318
2013-11-24 00:16:28 +00:00
GCC Administrator 84b4803ed6 Daily bump.
From-SVN: r205295
2013-11-23 00:16:38 +00:00
GCC Administrator dac9ed15f8 Daily bump.
From-SVN: r205237
2013-11-22 00:16:40 +00:00
GCC Administrator 91badee26e Daily bump.
From-SVN: r205170
2013-11-21 00:16:28 +00:00
Uros Bizjak 9e05e128b3 backport: re PR target/59153 (ICE: in memory_address_length, at config/i386/i386.c:24617 with -O -flive-range-shrinkage -mdispatch-scheduler -march=bdver1)
Backport from mainline
	2013-11-18  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
	ix86_address_subreg_operand.  Move subreg checks to
	ix86_validate_address_register.  Move address override check to
	ix86_legitimate_address_p.
	(ix86_validate_address_register): New function.
	(ix86_legitimate_address_p): Call ix86_validate_address_register
	to validate base and index registers.  Add address override check
	from ix86_decompose_address.
	(ix86_decompose_address): Remove.

	Backport from mainline
	2013-11-17  Uros Bizjak  <ubizjak@gmail.com>

	PR target/59153
	* config/i386/i386.c (ix86_address_subreg_operand): Do not
	reject non-integer subregs.
	(ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
	Move check for invalid x32 constant addresses ...
	(ix86_legitimate_address_p): ... here.

	Bacport from mainline
	2012-03-13  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
	addresses only when %reg is not in word mode.

From-SVN: r205122
2013-11-20 17:01:46 +01:00
GCC Administrator 9d3ff23d02 Daily bump.
From-SVN: r205066
2013-11-20 00:16:30 +00:00
GCC Administrator c448855183 Daily bump.
From-SVN: r204988
2013-11-19 00:16:25 +00:00
GCC Administrator bc0a7f6562 Daily bump.
From-SVN: r204930
2013-11-18 00:16:25 +00:00
Paul Thomas d96c3d282c re PR fortran/58771 (ICE in transfer_expr, at fortran/trans-io.c:2164)
2013-11-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/58771
	* trans-io.c (transfer_expr): If the backend_decl for a derived
	type is missing, build it with gfc_typenode_for_spec.

2013-11-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/58771
	* gfortran.dg/derived_external_function_1.f90 : New test

From-SVN: r204913
2013-11-17 08:11:33 +00:00
GCC Administrator 7abc8dd03b Daily bump.
From-SVN: r204909
2013-11-17 00:16:23 +00:00
GCC Administrator 7623dbb10e Daily bump.
From-SVN: r204889
2013-11-16 00:16:24 +00:00
Joseph Myers fe7a91b209 backport: copying-lib.texi (Library Copying): Don't use @heading inside @enumerate.
Backport from mainline:
	2012-06-29  Andreas Schwab  <schwab@linux-m68k.org>

	* copying-lib.texi (Library Copying): Don't use @heading inside
	@enumerate.

From-SVN: r204834
2013-11-15 01:11:00 +00:00
GCC Administrator 13e65ed29c Daily bump.
From-SVN: r204831
2013-11-15 00:16:25 +00:00
GCC Administrator 4426149b21 Daily bump.
From-SVN: r204768
2013-11-14 00:16:14 +00:00
GCC Administrator 47c85fdde4 Daily bump.
From-SVN: r204727
2013-11-13 00:16:42 +00:00
GCC Administrator a33ab6dd88 Daily bump.
From-SVN: r204691
2013-11-12 00:16:38 +00:00
GCC Administrator e6fa87842d Daily bump.
From-SVN: r204656
2013-11-11 00:16:29 +00:00
Karlson2k 99e2491a08 backport: re PR plugins/52872 (--enable-plugin; incorrect test for "exported symbols" and "-rdynamic" in gcc/configure.ac)
Merged from trunk
	PR plugins/52872
	* configure.ac: Adding for exported symbols check
	and for rdynamic-check executable-extension.
	* configure: Regenerated.


Co-Authored-By: Kai Tietz <ktietz@redhat.com>

From-SVN: r204653
2013-11-10 20:32:42 +01:00
Kai Tietz f063c8cc2c Back-merged from trunk
Back-merged from trunk
	* config/i386/cygming-crtbegin.c (__gcc_register_frame):
	Increment load-count on use of LIBGCC_SONAME DLL.
	(hmod_libgcc): New static variable to hold handle of
	LIBGCC_SONAME DLL.
	(__gcc_deregister_frame): Decrement load-count of
	LIBGCC_SONAME DLL.

From-SVN: r204637
2013-11-10 12:52:54 +01:00
GCC Administrator 202eba5c96 Daily bump.
From-SVN: r204621
2013-11-10 00:16:31 +00:00
GCC Administrator fa9dfeb1ec Daily bump.
From-SVN: r204609
2013-11-09 00:16:29 +00:00
GCC Administrator ae1aa11cbb Daily bump.
From-SVN: r204552
2013-11-08 00:16:07 +00:00
Uros Bizjak 758eb57e17 sfp-machine.c (FP_HANDLE_EXCEPTIONS): Handle FP_EX_DENORM.
* config/i386/32/sfp-machine.c (FP_HANDLE_EXCEPTIONS): Handle
	FP_EX_DENORM.
	* config/i386/64/sfp-machine.c (FP_HANDLE_EXCEPTIONS): Ditto.

From-SVN: r204549
2013-11-08 00:01:41 +01:00
H.J. Lu f021b8631c Use Pmode with stack_pointer_rtx
Backport from mainline
	PR target/59034
	* config/i386/i386.md (push peepholer/splitter): Use Pmode
	with stack_pointer_rtx.

From-SVN: r204503
2013-11-07 02:09:49 -08:00
GCC Administrator c901123d03 Daily bump.
From-SVN: r204494
2013-11-07 00:16:31 +00:00
GCC Administrator 7ef03bdc71 Daily bump.
From-SVN: r204428
2013-11-06 00:16:36 +00:00
Jonathan Wakely f74ec832ee status_cxx2011.xml: Document aligned_union as missing.
* doc/xml/manual/status_cxx2011.xml: Document aligned_union as
	missing.
	* doc/xml/manual/spine.xml: Update copyright years.
	* doc/html/*: Regenerate.

From-SVN: r204423
2013-11-05 21:26:53 +00:00
Uros Bizjak af4f78a50f t-rtems (MULTILIB_MATCHES): Fix option typos.
* config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.

From-SVN: r204410
2013-11-05 19:53:42 +01:00
GCC Administrator 74f28bd220 Daily bump.
From-SVN: r204373
2013-11-05 00:16:14 +00:00
GCC Administrator f6c12a5321 Daily bump.
From-SVN: r204340
2013-11-04 00:16:39 +00:00
Eric Botcazou 82cfe480ef Fix pasto
From-SVN: r204337
2013-11-03 22:03:55 +00:00
GCC Administrator 285110cde9 Daily bump.
From-SVN: r204322
2013-11-03 00:16:47 +00:00
Janus Weil cb1491c553 backport: re PR fortran/58355 ([F03] ICE with TYPE, EXTENDS before parent TYPE defined)
2013-11-02  Janus Weil  <janus@gcc.gnu.org>

	Backport from mainline
	2013-09-23  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/58355
	* decl.c (check_extended_derived_type): Prevent segfault, modify error
	message.

2013-11-02  Janus Weil  <janus@gcc.gnu.org>

	Backport from mainline
	2013-09-23  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/58355
	* gfortran.dg/extends_15.f90: New.

From-SVN: r204320
2013-11-02 16:56:35 +01:00
GCC Administrator 16572a4eb3 Daily bump.
From-SVN: r204306
2013-11-02 00:16:35 +00:00
GCC Administrator 8c2d15cf1b Daily bump.
From-SVN: r204281
2013-11-01 00:16:35 +00:00
GCC Administrator 9eb10891e3 Daily bump.
From-SVN: r204236
2013-10-31 00:16:35 +00:00
Chris Studholme 737be65b1b re PR libstdc++/58912 (make_shared value initializes storage space even when not desired)
2013-10-30  Chris Studholme  <cvs@cs.utoronto.ca>

	PR libstdc++/58912
	* include/bits/shared_ptr_base.h (_Sp_counted_ptr_inplace): Remove
	unnecessary initialization of storage buffer.

From-SVN: r204222
2013-10-30 18:26:53 +00:00
GCC Administrator 39f7d79bec Daily bump.
From-SVN: r204190
2013-10-30 00:16:51 +00:00
Tom de Vries 6c2ccb40b8 Revert r204121 (Fix line number data for PIC register setup code)
From-SVN: r204151
2013-10-29 09:13:12 +00:00
GCC Administrator 8ae75d8953 Daily bump.
From-SVN: r204143
2013-10-29 00:16:36 +00:00
Tom de Vries dbfd982509 Fix line number data for PIC register setup code.
2013-10-28  Tom de Vries  <tom@codesourcery.com>
    
	* cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
	Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
    
	* gcc.target/arm/require-pic-register-loc.c: New test.

From-SVN: r204121
2013-10-28 09:13:12 +00:00
GCC Administrator 3a4906da25 Daily bump.
From-SVN: r204113
2013-10-28 00:16:32 +00:00
GCC Administrator ea7234ec71 Daily bump.
From-SVN: r204099
2013-10-27 00:16:41 +00:00
Eric Botcazou c02b495e79 Fix typo.
From-SVN: r204089
2013-10-26 08:14:10 +00:00
Uros Bizjak 30b818b6cf backport: re PR target/58779 (wrong code at -O1 on x86_64-linux-gnu)
Backport from mainline
	2013-10-22  Uros Bizjak  <ubizjak@gmail.com>

	PR target/58779
	* config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
	Remove CCCmode handling.
	<case LTU>: Return 'c' suffix for CCCmode.
	<case GEU>: Return 'nc' suffix for CCCmode.
	(ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
	* config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
	(*sub<mode>3_cc_overflow): Ditto.
	(*subsi3_zext_cc_overflow): Ditto.

	Backport from mainline
	2013-10-19  Uros Bizjak  <ubizjak@gmail.com>

	PR target/58792
	* config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
	ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
	and SI_REG for 64bit SYSV ABI targets.

testsuite/ChangeLog:

	Backport from mainline
	2013-10-22  Uros Bizjak  <ubizjak@gmail.com>

	PR target/58779
	* gcc.target/i386/pr30315.c: Remove MINUSCC, DECCC, MINUSCCONLY
	and MINUSCCZEXT defines. Update scan-assembler dg directive.
	* gcc.dg/torture/pr58779.c: New test.

From-SVN: r204088
2013-10-26 08:09:02 +02:00
GCC Administrator 6daebba53f Daily bump.
From-SVN: r204081
2013-10-26 00:16:38 +00:00
Richard Henderson eefd5e66f4 re PR rtl-optimization/58542 (Arguments of __atomic_* functions are converted in unsigned mode)
PR rtl/58542

  * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
  instead of create_convert_operand_to.
  (maybe_emit_sync_lock_test_and_set): Likewise.
  (expand_atomic_compare_and_swap): Likewise.
  (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.

From-SVN: r204077
2013-10-25 13:09:13 -07:00
Tom de Vries 7bf6dc8c9c re PR c++/58282 (g++.dg/tm/noexcept-1.C -fno-exceptions SIGSEGV in gimple_build_eh_must_not_throw)
2013-10-25  Tom de Vries  <tom@codesourcery.com>

	PR c++/58282
	* except.c (build_must_not_throw_expr): Handle
	flag_exceptions.

	* g++.dg/tm/noexcept-6.C: New test.

From-SVN: r204069
2013-10-25 14:20:06 +00:00
Eric Botcazou d44365e583 re PR rtl-optimization/58831 (wrong code at -O2 and -O3 on x86_64-linux-gnu in 64-bit mode)
PR rtl-optimization/58831
	* alias.c (init_alias_analysis): At the beginning of each iteration, set
	the reg_seen[N] flag if static_reg_base_value[N] is non-null.

From-SVN: r204058
2013-10-25 11:16:59 +00:00
Eric Botcazou 0b15107f3a recog.c (search_ofs): New static variable moved from...
* recog.c (search_ofs): New static variable moved from...
	(peep2_find_free_register): ...here.
	(peephole2_optimize): Initialize it.

From-SVN: r204052
2013-10-25 08:57:06 +00:00
GCC Administrator b4e90d3d60 Daily bump.
From-SVN: r204041
2013-10-25 00:16:36 +00:00
GCC Administrator 054929265d Daily bump.
From-SVN: r203998
2013-10-24 00:16:31 +00:00
GCC Administrator 4ec74c3602 Daily bump.
From-SVN: r203942
2013-10-23 00:16:48 +00:00
GCC Administrator 810404be92 Daily bump.
From-SVN: r203911
2013-10-22 00:16:27 +00:00
GCC Administrator e5f1f35f23 Daily bump.
From-SVN: r203882
2013-10-21 00:16:36 +00:00
Chris Jefferson 4f2634a399 re PR libstdc++/58800 (std::nth_element segfaults on valid input)
2013-10-20  Chris Jefferson  <chris@bubblescope.net>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/58800
	* include/bits/stl_algo.h (__unguarded_partition_pivot): Change
	__last - 2 to __last - 1.
	* testsuite/25_algorithms/nth_element/58800.cc: New

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r203874
2013-10-20 09:08:26 +00:00
GCC Administrator 6d249bde50 Daily bump.
From-SVN: r203867
2013-10-20 00:16:23 +00:00
Eric Botcazou 46506c99ef utils.c (gnat_set_type_context): New function.
* gcc-interface/utils.c (gnat_set_type_context): New function.
	(gnat_pushdecl): Use it to set the context of the type.

From-SVN: r203850
2013-10-19 10:57:08 +00:00
GCC Administrator 7c380ea72d Daily bump.
From-SVN: r203837
2013-10-19 00:16:23 +00:00
GCC Administrator bab7869eb0 Daily bump.
From-SVN: r203805
2013-10-18 00:16:17 +00:00
GCC Administrator e76208d657 Daily bump.
From-SVN: r203736
2013-10-17 00:16:26 +00:00
Paolo Carlini e87d5702bc re PR c++/58633 (ICE with decltype of destructor call)
/cp
2013-10-16  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58633
	* parser.c (cp_parser_pseudo_destructor_name): Revert r174385 changes.

/testsuite
2013-10-16  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58633
	* g++.dg/cpp0x/decltype57.C: New.
	* g++.dg/cpp0x/enum18.C: Revert r174385 changes.

From-SVN: r203731
2013-10-16 22:20:35 +00:00
GCC Administrator 40cc8f9171 Daily bump.
From-SVN: r203636
2013-10-16 00:16:24 +00:00
GCC Administrator d33c979e93 Daily bump.
From-SVN: r203580
2013-10-15 00:16:29 +00:00
GCC Administrator 17de27dfdc Daily bump.
From-SVN: r203509
2013-10-14 00:16:10 +00:00
GCC Administrator 4814ab6b72 Daily bump.
From-SVN: r203493
2013-10-13 00:16:26 +00:00
GCC Administrator c47e925e85 Daily bump.
From-SVN: r203473
2013-10-12 00:16:20 +00:00
GCC Administrator 7a58e07588 Daily bump.
From-SVN: r203398
2013-10-11 00:16:12 +00:00
GCC Administrator 8699c74e04 Daily bump.
From-SVN: r203333
2013-10-10 00:16:29 +00:00
GCC Administrator 129d4d525c Daily bump.
From-SVN: r203296
2013-10-09 00:16:31 +00:00
GCC Administrator cc65c0c88e Daily bump.
From-SVN: r203257
2013-10-08 00:16:31 +00:00
GCC Administrator 3bb8aba631 Daily bump.
From-SVN: r203233
2013-10-07 00:16:29 +00:00
GCC Administrator 03340dd8b4 Daily bump.
From-SVN: r203225
2013-10-06 00:16:23 +00:00
GCC Administrator 8e45790af2 Daily bump.
From-SVN: r203221
2013-10-05 00:16:38 +00:00
GCC Administrator 65799b7bc0 Daily bump.
From-SVN: r203195
2013-10-04 00:16:34 +00:00
John David Anglin 56a95e7e16 config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
* config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.

From-SVN: r203150
2013-10-03 00:52:23 +00:00
GCC Administrator 2b097ac449 Daily bump.
From-SVN: r203144
2013-10-03 00:16:42 +00:00
GCC Administrator eb85c14289 Daily bump.
From-SVN: r203099
2013-10-02 00:16:33 +00:00
GCC Administrator 329beb9851 Daily bump.
From-SVN: r203049
2013-10-01 00:16:29 +00:00
Chris Jefferson 7d43611b80 re PR libstdc++/58437 (Sorting value in reverse order is much slower compare to gcc44)
2013-09-30  Chris Jefferson  <chris@bubblescope.net>

	PR libstdc++/58437
	* include/bits/stl_algo.h (__move_median_first): Rename to
	__move_median_to_first, change to take an addition argument.
	(__unguarded_partition_pivot): Adjust.
	* testsuite/performance/25_algorithms/sort.cc: New.
	* testsuite/performance/25_algorithms/sort_heap.cc: Likewise.
	* testsuite/performance/25_algorithms/stable_sort.cc: Likewise.

From-SVN: r203037
2013-09-30 17:43:05 +00:00
GCC Administrator 00f0d69357 Daily bump.
From-SVN: r203021
2013-09-30 00:16:33 +00:00
GCC Administrator 1e9e01b44c Daily bump.
From-SVN: r203009
2013-09-29 00:16:32 +00:00
GCC Administrator 12f62fe443 Daily bump.
From-SVN: r203000
2013-09-28 00:16:38 +00:00
GCC Administrator 85ebe9ff8c Daily bump.
From-SVN: r202962
2013-09-27 00:16:36 +00:00
Jonathan Wakely 09dbc20b42 backport: re PR libstdc++/55861 ([C++11] `std::shared_future::get' is not const-qualified)
Backport from mainline

	2013-01-19  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/55861
	* include/std/future (_State_base::_S_check(const shared_ptr<T>&)):
	Fix return type.

From-SVN: r202956
2013-09-26 20:04:04 +01:00
GCC Administrator d24abc153f Daily bump.
From-SVN: r202929
2013-09-26 00:16:35 +00:00
GCC Administrator eee6624c5b Daily bump.
From-SVN: r202877
2013-09-25 00:16:35 +00:00
GCC Administrator 8503bc9d17 Daily bump.
From-SVN: r202852
2013-09-24 00:16:26 +00:00
Eric Botcazou 9e1a7bf1fa tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy assignment statements.
* tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
	assignment statements.

From-SVN: r202835
2013-09-23 16:16:41 +00:00
GCC Administrator 85a7674341 Daily bump.
From-SVN: r202820
2013-09-23 00:16:33 +00:00
GCC Administrator 859872e1ef Daily bump.
From-SVN: r202815
2013-09-22 00:16:29 +00:00
GCC Administrator b9b8ccb000 Daily bump.
From-SVN: r202809
2013-09-21 00:16:24 +00:00
John David Anglin 5f34dbc303 pa.md: In "scc" insn patterns...
* config/pa/pa.md: In "scc" insn patterns, change output template to
	handle const0_rtx in reg_or_0_operand operands.

From-SVN: r202800
2013-09-20 22:32:47 +00:00
GCC Administrator 76ba8cd728 Daily bump.
From-SVN: r202761
2013-09-20 00:16:31 +00:00
GCC Administrator 598c60cc93 Daily bump.
From-SVN: r202729
2013-09-19 00:16:32 +00:00
Daniel Morris d78f22a8d1 re PR c++/58458 (ISO 14882 typo in docs)
2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58458
	* doc/implement-cxx.texi: Fix references to the C++ standards.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r202698
2013-09-18 11:08:02 +00:00
Eric Botcazou 01e552339c trans.c (Subprogram_Body_to_gnu): Pop the stack of return variables for subprograms using the CICO mechanism.
* gcc-interface/trans.c (Subprogram_Body_to_gnu): Pop the stack of
	return variables for subprograms using the CICO mechanism.

From-SVN: r202686
2013-09-18 10:25:44 +00:00
GCC Administrator dae47c5069 Daily bump.
From-SVN: r202673
2013-09-18 00:16:31 +00:00
GCC Administrator 6349e05f99 Daily bump.
From-SVN: r202639
2013-09-17 00:16:27 +00:00
GCC Administrator 53c6598d98 Daily bump.
From-SVN: r202606
2013-09-16 00:16:33 +00:00
GCC Administrator 4b8b580adf Daily bump.
From-SVN: r202597
2013-09-15 00:16:20 +00:00
John David Anglin 573afae25d re PR target/58382 (unwind.inc:136:1: ICE: in trunc_int_for_mode, at explow.c:55)
PR target/58382
	* config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
	calls to word_mode.

From-SVN: r202596
2013-09-14 17:03:32 +00:00
GCC Administrator 044a0e52d7 Daily bump.
From-SVN: r202584
2013-09-14 00:16:36 +00:00
Jason Merrill 258941a4ef re PR c++/58273 (Segmentation fault with C++11)
PR c++/58273
	* pt.c (any_type_dependent_elements_p): Actually check for
	type-dependence, not value-dependence.

From-SVN: r202583
2013-09-13 18:38:42 -04:00
Terry Guo fc5796ee0c backport: re PR lto/54598 (ICE: Segmentation fault in lto1 at tree-streamer-in.c:unpack_ts_fixed_cst_value_fields())
2013-09-12  Terry Guo  <terry.guo@arm.com>

	Backport from mainline
	2012-09-17  Richard Guenther  <rguenther@suse.de>

	PR lto/54598
	* tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed
	FIXED_VALUE_TYPE instead of struct fixed_value.

From-SVN: r202551
2013-09-13 05:26:32 +00:00
GCC Administrator ba1100a803 Daily bump.
From-SVN: r202547
2013-09-13 00:16:30 +00:00
GCC Administrator 2e2fa0d76a Daily bump.
From-SVN: r202512
2013-09-12 00:16:41 +00:00
GCC Administrator f1e4fd06fc Daily bump.
From-SVN: r202484
2013-09-11 00:16:27 +00:00
Richard Earnshaw ad8e89974b re PR target/58361 (Wrong floating point code generated for ARM target)
PR target/58361
	* arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
	support conditional execution.
	(combine_vcvt_f64_<FCVTI32typename>): Likewise.

From-SVN: r202477
2013-09-10 16:55:44 +00:00
GCC Administrator 825c3c9c5e Daily bump.
From-SVN: r202419
2013-09-10 00:16:19 +00:00
GCC Administrator 8942aa75a5 Daily bump.
From-SVN: r202375
2013-09-09 00:16:29 +00:00
GCC Administrator a5f50f9c77 Daily bump.
From-SVN: r202361
2013-09-08 00:16:19 +00:00
GCC Administrator cf51513625 Daily bump.
From-SVN: r202348
2013-09-07 00:16:16 +00:00
GCC Administrator b15b27ccae Daily bump.
From-SVN: r202303
2013-09-06 00:16:29 +00:00
GCC Administrator 8d9601c017 Daily bump.
From-SVN: r202267
2013-09-05 00:16:39 +00:00
GCC Administrator 52787538b4 Daily bump.
From-SVN: r202235
2013-09-04 00:16:16 +00:00
Paolo Carlini 25fceb5972 re PR libstdc++/58302 (compilation error : std::negative_binomial_distribution::operator(e, p))
2013-09-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/58302
	* include/bits/random.tcc (negative_binomial_distribution<>::
	operator()(_UniformRandomNumberGenerator&, const param_type&):
	Fix typo in template argument.
	* testsuite/26_numerics/random/negative_binomial_distribution/
	operators/58302.cc: New.

From-SVN: r202210
2013-09-03 10:19:16 +00:00
GCC Administrator f6ffdd1760 Daily bump.
From-SVN: r202193
2013-09-03 00:16:21 +00:00
Uros Bizjak ff000de082 backport: alpha.c (alpha_emit_conditional_move): Update "cmp" RTX before signed_comparison_operator check to account for "code"...
Backport from mainline
	2013-08-31  Uros Bizjak  <ubizjak@gmail.com>

	* config/alpha/alpha.c (alpha_emit_conditional_move): Update
	"cmp" RTX before signed_comparison_operator check to account
	for "code" changes.

From-SVN: r202183
2013-09-02 19:00:25 +02:00
GCC Administrator 4e92e02145 Daily bump.
From-SVN: r202156
2013-09-02 00:16:27 +00:00
Iain Sandoe dbbb836c6f backport: tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE, [...]): Add @hooks.
backport from 4.8
gcc/
	* doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
	TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
	(ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
	Remove.
	* doc/tm.texi: Regenerate.
	* config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
	.objc_class_name_*.
	* config/darwin-c.c: Include target.h.
	(darwin_objc_declare_unresolved_class_reference): New function.
	(darwin_objc_declare_class_definition): New function.
	(TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
	(TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.

c-family/
	* c-target.def (objc_declare_unresolved_class_reference,
	objc_declare_class_definition): Add new hooks.

objc/
	* objc-next-runtime-abi-01.c: Do not include tm.h and output.h.
	Include c-family/c-target.h.
	(handle_next_class_ref): Rewrite to emit top-level asm statements.
	(handle_next_impent): Likewise.
	* objc/Make-lang.in: Fix dependencies for objc-next-runtime-abi-01.o.

From-SVN: r202155
2013-09-01 19:21:33 +00:00
John David Anglin 88c71eaa36 pa.md: Allow "const 0" operand 1 in "scc" insns.
* config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.

From-SVN: r202152
2013-09-01 16:56:11 +00:00
Iain Sandoe 73168547c7 backport: re PR target/51784 (PIC register not correctly preserved in nested funcs / with non-local goto)
gcc:
	Backport from mainline:
	2013-07-22  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
	it is not needed after split.

	2013-07-20  Iain Sandoe  <iain@codesourcery.com>

	PR target/51784
	* config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
	second label for nonlocal goto receivers. Don't output pic base labels
	unless we're producing PIC; mark that action unreachable().
	(ix86_save_reg): If the function contains a nonlocal label, save the
	PIC base reg.
	* config/darwin-protos.h (machopic_should_output_picbase_label): New.
	* gcc/config/darwin.c (emitted_pic_label_num): New GTY.
	(update_pic_label_number_if_needed): New.
	(machopic_output_function_base_name): Adjust for nonlocal receiver
	case.
	(machopic_should_output_picbase_label): New.
	* config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
	(nonlocal_goto_receiver): New insn and split.

From-SVN: r202147
2013-09-01 15:39:28 +00:00
GCC Administrator 4709b71fdb Daily bump.
From-SVN: r202137
2013-09-01 00:16:15 +00:00
GCC Administrator fc76c85af5 Daily bump.
From-SVN: r202122
2013-08-31 00:16:17 +00:00
GCC Administrator 69c9bac2bd Daily bump.
From-SVN: r202090
2013-08-30 00:16:23 +00:00
GCC Administrator dd5bdbe46f Daily bump.
From-SVN: r202062
2013-08-29 00:16:21 +00:00
Uros Bizjak b619daba61 backport: re PR target/57927 (-march=core-avx2 different than -march=native on INTEL Haswell (i7-4700K))
Backport from mainline
	2013-08-27  Christian Widmer  <shadow@umbrox.de>

	PR target/57927
	* config/i386/driver-i386.c (host_detect_local_cpu): Add detection
	of Ivy Bridge processors.

From-SVN: r202047
2013-08-28 10:36:37 +02:00
GCC Administrator 0d0a9ee8db Daily bump.
From-SVN: r202037
2013-08-28 00:16:25 +00:00
GCC Administrator e63b910cfa Daily bump.
From-SVN: r202011
2013-08-27 00:16:37 +00:00
GCC Administrator 0113b4b9d7 Daily bump.
From-SVN: r201982
2013-08-26 00:16:31 +00:00
GCC Administrator ffe836f7ec Daily bump.
From-SVN: r201970
2013-08-25 00:16:25 +00:00
GCC Administrator 946b10ac99 Daily bump.
From-SVN: r201957
2013-08-24 00:16:24 +00:00
GCC Administrator 5a9deb1a68 Daily bump.
From-SVN: r201930
2013-08-23 00:16:33 +00:00
GCC Administrator b433dda971 Daily bump.
From-SVN: r201911
2013-08-22 00:16:08 +00:00
Richard Earnshaw 60d01a11ea re PR target/56979 (ICE in output_operand: invalid operand for code 'P')
PR target/56979
	* arm.c (aapcs_vfp_allocate): Decompose the argument if the
	suggested mode for the assignment isn't compatible with the
	registers required.

From-SVN: r201904
2013-08-21 16:21:04 +00:00
GCC Administrator f677fdc211 Daily bump.
From-SVN: r201892
2013-08-21 00:16:34 +00:00
Jason Merrill 5e7d7fee28 re PR c++/58119 (Invalid ambiguous default type conversion with only a single invalid conversion listed.)
PR c++/58119
	* cp-tree.h (WILDCARD_TYPE_P): Split out from...
	(MAYBE_CLASS_TYPE_P): ...here.
	* cvt.c (build_expr_type_conversion): Don't complain about a
	template that can't match the desired type category.

From-SVN: r201881
2013-08-20 08:59:24 -04:00
GCC Administrator da1fdfa8f9 Daily bump.
From-SVN: r201861
2013-08-20 00:16:32 +00:00
GCC Administrator df7960ce1b Daily bump.
From-SVN: r201830
2013-08-19 00:16:27 +00:00
GCC Administrator 5c143f3b3d Daily bump.
From-SVN: r201819
2013-08-18 00:16:14 +00:00
Uros Bizjak 0db952717e backport: re PR target/58132 (x86-64 gcc generate wrong movabs code for intel syntax)
Backport from mainline
	2013-08-12  Perez Read  <netfirewall@gmail.com>

	PR target/58132
	* config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
	operand 0 for intel asm alternative.
	(*movabs<mode>_2): Ditto for operand 1.

From-SVN: r201814
2013-08-17 13:42:17 +02:00
Uros Bizjak ad3f54c8b2 compatibility.cc (_ZTIe): Use reinterpret_cast<const cast *> to avoid -Wcast-qual warnings.
* src/c++98/compatibility.cc (_ZTIe): Use
	reinterpret_cast<const cast *> to avoid -Wcast-qual warnings.
	(_ZTIPe): Ditto.
	(ZTIPKe): Ditto.

From-SVN: r201813
2013-08-17 12:23:41 +02:00
GCC Administrator 28599683d4 Daily bump.
From-SVN: r201809
2013-08-17 00:16:17 +00:00
GCC Administrator 644e4edab9 Daily bump.
From-SVN: r201777
2013-08-16 00:16:22 +00:00
GCC Administrator 73775eb974 Daily bump.
From-SVN: r201756
2013-08-15 00:16:20 +00:00
GCC Administrator e113095df2 Daily bump.
From-SVN: r201715
2013-08-14 00:16:29 +00:00
Eric Botcazou a8a2d8ad60 trans.c (can_equal_min_or_max_val_p): Be prepared for values outside of the range of the type.
* gcc-interface/trans.c (can_equal_min_or_max_val_p): Be prepared for
	values outside of the range of the type.

From-SVN: r201694
2013-08-13 16:02:49 +00:00
Marek Polacek 03c2ff37a5 re PR tree-optimization/57980 (gcc 4.8.1 -foptimize-sibling-calls -O1 ICE in build_int_cst_wide, at tree.c:1210)
2013-08-13  Marek Polacek  <polacek@redhat.com>
	    Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/57980
	* tree-tailcall.c (process_assignment): Return false
	when not dealing with integers or floats.

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

From-SVN: r201688
2013-08-13 13:42:28 +00:00
GCC Administrator f9003a6855 Daily bump.
From-SVN: r201676
2013-08-13 00:16:16 +00:00
David Edelsohn 7f223b7e97 backport: collect2-aix.h: Define F_LOADONLY.
Backport from mainline
        2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
        * collect2-aix.h: Define F_LOADONLY.

From-SVN: r201665
2013-08-12 11:41:34 -04:00
GCC Administrator a4cdc55cdb Daily bump.
From-SVN: r201655
2013-08-12 00:16:34 +00:00
Janus Weil fb5803b8e3 backport: re PR fortran/58058 (Memory leak with transfer function)
2013-08-11  Janus Weil  <janus@gcc.gnu.org>

	Backport from trunk:
	2013-08-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/58058
	* trans-intrinsic.c (gfc_conv_intrinsic_transfer): Free the temporary
	string, if necessary.

2013-08-11  Janus Weil  <janus@gcc.gnu.org>

	Backport from trunk:
	2013-08-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/58058
	* gfortran.dg/transfer_intrinsic_6.f90: New.

From-SVN: r201653
2013-08-11 16:08:12 +02:00
GCC Administrator 73970e0116 Daily bump.
From-SVN: r201649
2013-08-11 00:16:15 +00:00
GCC Administrator 2466c1ed08 Daily bump.
From-SVN: r201641
2013-08-10 00:16:32 +00:00
GCC Administrator bcf98836ab Daily bump.
From-SVN: r201612
2013-08-09 00:16:31 +00:00
GCC Administrator 2422224b1f Daily bump.
From-SVN: r201586
2013-08-08 00:16:40 +00:00
GCC Administrator 614b8177c8 Daily bump.
From-SVN: r201546
2013-08-07 00:16:21 +00:00
GCC Administrator 2fbfa47ae1 Daily bump.
From-SVN: r201514
2013-08-06 00:16:13 +00:00
GCC Administrator 88853a1e0c Daily bump.
From-SVN: r201476
2013-08-05 00:16:30 +00:00
GCC Administrator df182d788d Daily bump.
From-SVN: r201471
2013-08-04 00:16:26 +00:00
GCC Administrator f72bba0700 Daily bump.
From-SVN: r201459
2013-08-03 00:16:23 +00:00
Eric Botcazou a4add37fab sparc.c (sparc_emit_membar_for_model): Add the implied StoreLoad barrier for atomic operations if before.
* config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
	the implied StoreLoad barrier for atomic operations if before.

From-SVN: r201452
2013-08-02 21:43:51 +00:00
GCC Administrator 93ff575cc8 Daily bump.
From-SVN: r201421
2013-08-02 00:16:22 +00:00
Maxim Kuvyrkov 728812bf83 Backport from trunk: Fix licenses on several libgcc files.
* config/ia64/unwind-ia64.h,
	* config/mips/vr4120-div.S: Fix license from GPL-3.0+ to
	GPL-3.0-with-GCC-exception.

From-SVN: r201419
2013-08-01 21:28:16 +00:00
GCC Administrator eb112025ac Daily bump.
From-SVN: r201395
2013-08-01 00:16:20 +00:00
GCC Administrator 8e2ea15c39 Daily bump.
From-SVN: r201355
2013-07-31 00:16:24 +00:00
GCC Administrator 023e900e3d Daily bump.
From-SVN: r201322
2013-07-30 00:16:14 +00:00
GCC Administrator cde6100981 Daily bump.
From-SVN: r201295
2013-07-29 00:16:21 +00:00
GCC Administrator a14ea77473 Daily bump.
From-SVN: r201288
2013-07-28 00:16:26 +00:00
GCC Administrator 2749ef1e19 Daily bump.
From-SVN: r201277
2013-07-27 00:16:24 +00:00
GCC Administrator feab40f369 Daily bump.
From-SVN: r201257
2013-07-26 00:16:16 +00:00
GCC Administrator 07dfdae40f Daily bump.
From-SVN: r201231
2013-07-25 00:16:31 +00:00
GCC Administrator c49bd5d847 Daily bump.
From-SVN: r201197
2013-07-24 00:16:27 +00:00
GCC Administrator 050b52c0ff Daily bump.
From-SVN: r201150
2013-07-23 00:16:23 +00:00
GCC Administrator 189001f3e7 Daily bump.
From-SVN: r201114
2013-07-22 00:16:26 +00:00
GCC Administrator 63e60d805d Daily bump.
From-SVN: r201088
2013-07-21 00:16:08 +00:00
GCC Administrator b28abe630a Daily bump.
From-SVN: r201076
2013-07-20 00:16:07 +00:00
GCC Administrator 1e48e6f096 Daily bump.
From-SVN: r201043
2013-07-19 00:16:08 +00:00
GCC Administrator 2a895b5f2c Daily bump.
From-SVN: r201017
2013-07-18 00:16:27 +00:00
GCC Administrator 7c76874600 Daily bump.
From-SVN: r200994
2013-07-17 00:16:24 +00:00
Iain Sandoe f0d7ed9886 re PR target/55656 (objc/obj-c++ failures present under darwin11)
gcc/testsuite/

	PR target/55656
	PR target/55657
	* obj-c++.dg/cxx-ivars-3.mm: Use NSObject instead of Object.
	* obj-c++.dg/strings/const-cfstring-5.mm: Likewise.
	* obj-c++.dg/torture/strings/const-str-10.mm: Likewise.
	* obj-c++.dg/torture/strings/const-str-9.mm: Likewise.
	* objc.dg/image-info.m: Likewise.
	* objc.dg/symtab-1.m: Likewise.
	* objc.dg/torture/strings/const-str-10.m: Likewise.
	* objc.dg/torture/strings/const-str-11.m: Likewise.
	* objc.dg/torture/strings/const-str-9.m: Likewise.
	* objc.dg/zero-link-1.m: Likewise.
	* objc.dg/zero-link-2.m: Likewise.
	* objc.dg/no-extra-load.m: Avoid Foundation.h.
	* objc.dg/objc-foreach-4.m: Likewise.
	* objc.dg/objc-foreach-5.m: Likewise.
	* obj-c++.dg/proto-lossage-7.mm: Use NSObject instead of Object
	(for Darwin).
	* obj-c++.dg/strings/const-str-12.mm: Likewise.
	* obj-c++.dg/syntax-error-1.mm: Likewise.
	* objc.dg/method-6.m: Likewise.
	* objc.dg/pr23214.m: Likewise.
	* objc.dg/proto-lossage-7.m: Likewise.
	* objc.dg/strings/const-str-12b.m: Likewise.
	* objc.dg/zero-link-3.m: Likewise.
	* obj-c++.dg/method-12.mm: Skip on Darwin versions without 'Object'.
	* objc.dg/encode-7-next-64bit.m: Use NSObject instead of Object,
	adjust headers, interfaces and encoded types to reflect current system
	versions.  Add FIXME and outputs from current system compiler for
	reference.

From-SVN: r200982
2013-07-16 14:44:29 +00:00
GCC Administrator 1962866cba Daily bump.
From-SVN: r200970
2013-07-16 00:16:30 +00:00
GCC Administrator f4e5de1950 Daily bump.
From-SVN: r200951
2013-07-15 00:16:28 +00:00
GCC Administrator 6600dc7093 Daily bump.
From-SVN: r200942
2013-07-14 00:16:12 +00:00
GCC Administrator b50765e8f2 Daily bump.
From-SVN: r200933
2013-07-13 00:16:28 +00:00
GCC Administrator 762303b65b Daily bump.
From-SVN: r200916
2013-07-12 00:16:09 +00:00
Georg-Johann Lay 41b9ae2942 backport: re PR target/57631 (Use assembler name for sanity checking of ISR names provided it is set)
Backport from 2013-07-11 trunk r200901.
	PR target/57631
	* config/avr/avr.c (avr_set_current_function): Sanity-check signal
	name seen by assembler/linker if available.

From-SVN: r200903
2013-07-11 08:50:09 +00:00
GCC Administrator 20b35da509 Daily bump.
From-SVN: r200894
2013-07-11 00:16:06 +00:00
Georg-Johann Lay a5710c842a backport: re PR target/57844 (ICE: unrecognizable addqi3 insn with -msp8 and frame size of 128 bytes)
Backport from 2013-07-10 trunk r200872.
	PR target/57844
	* config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
	of my_fp.

From-SVN: r200874
2013-07-10 12:43:07 +00:00
Jason Merrill 32e89de24c Revert accidental checkin.
From-SVN: r200866
2013-07-10 04:53:49 -04:00
Uros Bizjak 46e566ce07 backport: sse.md (sse_movlhps): Change alternative 3 of operand 2 to "m".
Backport from mainline
	2013-07-06  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/sse.md (sse_movlhps): Change alternative 3
	of operand 2 to "m".

From-SVN: r200864
2013-07-10 08:30:30 +02:00
Paolo Carlini 97837b2fe1 re PR c++/54170 (Call to lambda elided)
/cp
2012-12-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/54170
	* cvt.c (cp_convert_to_pointer): Don't discard side-effects from
	expressions of nullptr_t.
	* typeck.c (build_ptrmemfunc): Likewise.

/testsuite
2012-12-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/54170
	* g++.dg/cpp0x/lambda/lambda-nullptr.C: New.

From-SVN: r200863
2013-07-10 01:53:45 -04:00
Jason Merrill 7e7bed5387 re PR c++/57793 (ICE with bitfields in get_bit_range)
PR c++/57793
	* expr.c (get_inner_reference): Avoid returning a negative bitpos.

From-SVN: r200862
2013-07-10 01:53:35 -04:00
GCC Administrator b43e512e9c Daily bump.
From-SVN: r200857
2013-07-10 00:16:18 +00:00
Joseph Myers de715fc04f rs6000.c (rs6000_init_hard_regno_mode_ok): Only adjust register size for TDmode and TFmode for VSX registers.
* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
	adjust register size for TDmode and TFmode for VSX registers.

From-SVN: r200855
2013-07-09 23:37:30 +01:00
Jason Merrill cbf86c8c20 re PR c++/57437 (C++11: mutable lambdas)
PR c++/57437
	* typeck.c (check_return_expr): Lambda proxies aren't eligible
	for nrv or return by move.

From-SVN: r200832
2013-07-09 13:50:57 -04:00
Jason Merrill 7d43f35781 re PR c++/57545 (Generation of debug symbols leads to internal compiler error)
PR c++/57545
	* pt.c (convert_nontype_argument) [INTEGER_CST]: Force the
	argument to have the exact type of the parameter.

From-SVN: r200831
2013-07-09 13:50:44 -04:00
Jason Merrill e7654c6325 re PR regression/57551 (g++.dg/ext/visibility/anon6.C scan-assembler 1BIiE1cE)
PR c++/57551
	* semantics.c (cxx_eval_indirect_ref): Don't try to look through
	a POINTER_PLUS_EXPR for type punning diagnostic.

From-SVN: r200830
2013-07-09 13:50:24 -04:00
Jason Merrill 2a1b2f1c26 re PR c++/57831 (pointer to member function inaccessible through using statement (or ICE))
PR c++/57831
	* pt.c (tsubst_copy): Handle USING_DECL.

From-SVN: r200829
2013-07-09 13:50:03 -04:00
GCC Administrator b94e2936c7 Daily bump.
From-SVN: r200804
2013-07-09 00:16:08 +00:00
Tobias Burnus 5fcbcb0988 re PR fortran/57785 (DOT_PRODUCT error with constant complex array)
2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57785
        * simplify.c (compute_dot_product): Complex conjugate for
        dot_product.
        (gfc_simplify_dot_product, gfc_simplify_matmul): Update call.

2013-07-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57785
        * gfortran.dg/dot_product_2.f90: New.

From-SVN: r200796
2013-07-08 21:12:08 +02:00
Eric Botcazou c041df1662 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
From-SVN: r200779
2013-07-08 09:15:35 +00:00
Jakub Jelinek 8650444c17 re PR rtl-optimization/57829 (Wrong constant folding)
PR rtl-optimization/57829
	* simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
	mask bits outside of mode are just sign-extension from mode to HWI.

	* gcc.c-torture/execute/pr57829.c: New test.

From-SVN: r200773
2013-07-08 10:17:35 +02:00
GCC Administrator 365f640054 Daily bump.
From-SVN: r200745
2013-07-08 00:16:08 +00:00
GCC Administrator e3181c2e8e Daily bump.
From-SVN: r200740
2013-07-07 00:16:19 +00:00
GCC Administrator ab04afc9e7 Daily bump.
From-SVN: r200726
2013-07-06 00:16:23 +00:00
Uros Bizjak 77c99e50b3 backport: re PR target/57655 (ICE: in create_pre_exit, at mode-switching.c:418 with -mno-fp-ret-in-387 -mvzeroupper -mxop and __builtin_ilogbl())
Backport from mainline
	2013-06-20  Uros Bizjak  <ubizjak@gmail.com>

	PR target/57655
	* config/i386/i386.c (construct_container): Report error if
	long double is used with disabled x87 float returns.

testsuite/ChangeLog:

	Backport from mainline
	2013-06-20  Uros Bizjak  <ubizjak@gmail.com>

	PR target/57655
	* gcc.target/i386/pr57655.c: New test.

From-SVN: r200716
2013-07-05 16:04:26 +02:00
GCC Administrator a509e0d8b5 Daily bump.
From-SVN: r200684
2013-07-05 00:16:26 +00:00
GCC Administrator 1969d85ce5 Daily bump.
From-SVN: r200652
2013-07-04 00:16:18 +00:00
Uros Bizjak e4befe529c backport: fpu-387.h (_FPU_MASK_ALL): New.
Backport from mainline
	2013-06-20  Uros Bizjak  <ubizjak@gmail.com>

	* config/fpu-387.h (_FPU_MASK_ALL): New.
	(_FPU_EX_ALL): Ditto.
	(set_fpu): Use fstcw to store x87 FPU control word. Use fnclex to
	clear stalled exception flags.  Correctly clear stalled SSE
	exception flags.  Simplify code.

	Backport from mainline
	2013-06-19  Uros Bizjak  <ubizjak@gmail.com>

	* config/fpu-387.h: Use __asm__ and __volatile__ consistently.

From-SVN: r200635
2013-07-03 11:59:55 +02:00
GCC Administrator 9c42cfb23b Daily bump.
From-SVN: r200628
2013-07-03 00:16:25 +00:00
GCC Administrator 318a8d342b Daily bump.
From-SVN: r200586
2013-07-02 00:16:24 +00:00
GCC Administrator 5f432aedaa Daily bump.
From-SVN: r200572
2013-07-01 00:16:27 +00:00
GCC Administrator e1e128dd61 Daily bump.
From-SVN: r200566
2013-06-30 00:16:13 +00:00
GCC Administrator 00f448c580 Daily bump.
From-SVN: r200560
2013-06-29 00:16:19 +00:00
GCC Administrator dacaafefdd Daily bump.
From-SVN: r200498
2013-06-28 00:16:14 +00:00
GCC Administrator ee1b9f86a3 Daily bump.
From-SVN: r200445
2013-06-27 00:16:20 +00:00
GCC Administrator a4832fab35 Daily bump.
From-SVN: r200408
2013-06-26 00:16:26 +00:00
GCC Administrator f3df9b923a Daily bump.
From-SVN: r200385
2013-06-25 00:16:25 +00:00
GCC Administrator 2de7fa0156 Daily bump.
From-SVN: r200354
2013-06-24 00:16:25 +00:00
GCC Administrator a254c1a920 Daily bump.
From-SVN: r200344
2013-06-23 00:16:24 +00:00
GCC Administrator 955b84c00a Daily bump.
From-SVN: r200322
2013-06-22 00:16:22 +00:00
David Edelsohn 68acc08687 backport: re PR driver/57652 (collect2 does not clean up temporary files)
Backport from mainline
        2013-06-19  David Edelsohn  <dje.gcc@gmail.com>

        PR driver/57652
        * collect2.c (collect_atexit): New.
        (collect_exit): Delete.
        (main): Register collect_atexit with atexit.
        (collect_wait): Change collect_exit to exit.
        (do_wait): Same.
        * collect2.h (collect_exit): Delete.
        * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.

From-SVN: r200307
2013-06-21 11:14:23 -04:00
GCC Administrator 8e6de76820 Daily bump.
From-SVN: r200275
2013-06-21 00:16:15 +00:00
GCC Administrator e179734469 Daily bump.
From-SVN: r200229
2013-06-20 00:16:20 +00:00
GCC Administrator 7b54dbed98 Daily bump.
From-SVN: r200183
2013-06-19 00:16:15 +00:00
GCC Administrator 21f56eb8ee Daily bump.
From-SVN: r200156
2013-06-18 00:16:26 +00:00
GCC Administrator e60cf7fe23 Daily bump.
From-SVN: r200142
2013-06-17 00:16:24 +00:00
GCC Administrator 0002d67600 Daily bump.
From-SVN: r200129
2013-06-16 00:16:29 +00:00
GCC Administrator b72f368bd5 Daily bump.
From-SVN: r200114
2013-06-15 00:16:18 +00:00
GCC Administrator 9a3fff2330 Daily bump.
From-SVN: r200081
2013-06-14 00:16:26 +00:00
GCC Administrator 2a832ab65a Daily bump.
From-SVN: r200050
2013-06-13 00:16:14 +00:00
GCC Administrator c982c7a1cf Daily bump.
From-SVN: r199973
2013-06-12 00:16:21 +00:00
GCC Administrator 415d1f4b8d Daily bump.
From-SVN: r199928
2013-06-11 00:16:25 +00:00
Uros Bizjak 83f93b6311 backport: re PR target/57379 (Segfault in invalidate_any_buried_refs (x=0x0) at ../../gcc-svn/trunk/gcc/gcse.c:3850)
Backport from mainline
	2013-06-10  Uros Bizjak  <ubizjak@gmail.com>

	* config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
	cmp_code to construct REG_EQUAL note.

	Backport from mainline
	2013-06-05  Uros Bizjak  <ubizjak@gmail.com>

	* config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
	GE, GT, GEU and GTU compares, modulo DImode compares with zero.

	Backport from mainline
	2013-05-23  Uros Bizjak  <ubizjak@gmail.com>

	PR target/57379
	* config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
	* config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
	REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.

From-SVN: r199902
2013-06-10 20:45:02 +02:00
GCC Administrator 01fb07db26 Daily bump.
From-SVN: r199876
2013-06-10 00:16:24 +00:00
Jakub Jelinek 65b30b05c1 re PR rtl-optimization/57568 (wrong code for assignment in conditional at -Os)
PR target/57568
	* config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
	that operands[2] doesn't overlap with operands[0].

	* gcc.c-torture/execute/pr57568.c: New test.

From-SVN: r199872
2013-06-09 20:37:51 +02:00
GCC Administrator 8f0aa2f85b Daily bump.
From-SVN: r199862
2013-06-09 00:16:28 +00:00
Walter Lee 8560e860ff backport: atomic.h: Don't include stdint.h or features.h.
Backport from mainline:
	2013-06-08  Walter Lee  <walt@tilera.com>
	
	* config/tilepro/atomic.h: Don't include stdint.h or features.h.
	Replace int64_t with long long.  Add __extension__ where
	appropriate.

From-SVN: r199857
2013-06-08 16:33:14 +00:00
GCC Administrator 09c195cb97 Daily bump.
From-SVN: r199839
2013-06-08 00:16:18 +00:00
GCC Administrator 4917220c5e Daily bump.
From-SVN: r199774
2013-06-07 00:16:25 +00:00
Doug Rupp 73ff167bee * config.host (arm-wrs-vxworks): Configure with other soft float.
From-SVN: r199749
2013-06-06 17:45:05 +00:00
Tobias Burnus 60ef402495 backport: re PR fortran/54370 (error: non-trivial conversion in unary operation)
2013-06-06  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2012-08-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54370
        * trans-stmt.c (gfc_trans_do_while): Don't change the logical
        kind for negation of the condition.

2013-06-06  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2012-08-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54370
        * gfortran.dg/do_5.f90: New.

From-SVN: r199746
2013-06-06 18:45:04 +02:00
GCC Administrator 8519a634a7 Daily bump.
From-SVN: r199712
2013-06-06 00:16:21 +00:00
GCC Administrator d0685093fe Daily bump.
From-SVN: r199676
2013-06-05 00:16:27 +00:00
GCC Administrator 4b9cc757b8 Daily bump.
From-SVN: r199631
2013-06-04 00:16:17 +00:00
GCC Administrator 6ed2b0dd10 Daily bump.
From-SVN: r199594
2013-06-03 00:16:19 +00:00
GCC Administrator fa72d87b3e Daily bump.
From-SVN: r199588
2013-06-02 00:16:19 +00:00
Janus Weil 9a1935f63e re PR fortran/57217 ([OOP] Accepts invalid TBP overriding - lacking arguments check)
2013-06-01  Janus Weil  <janus@gcc.gnu.org>
	    Tobias Burnus  <burnus@net-b.de>

	PR fortran/57217
	* interface.c (check_dummy_characteristics): Symmetrize type check.


2013-06-01  Janus Weil  <janus@gcc.gnu.org>
	    Tobias Burnus  <burnus@net-b.de>

	PR fortran/57217
	* gfortran.dg/typebound_override_4.f90: New.

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

From-SVN: r199586
2013-06-01 23:36:33 +02:00
GCC Administrator 0f2b5b922a Daily bump.
From-SVN: r199567
2013-06-01 00:16:16 +00:00
GCC Administrator 0da9ce447d Daily bump.
From-SVN: r199462
2013-05-31 00:16:25 +00:00
GCC Administrator 1966f85a54 Daily bump.
From-SVN: r199431
2013-05-30 00:16:20 +00:00
GCC Administrator c957645d8a Daily bump.
From-SVN: r199395
2013-05-29 00:16:17 +00:00
GCC Administrator 9f0914e6f5 Daily bump.
From-SVN: r199363
2013-05-28 00:16:29 +00:00
GCC Administrator efa659db09 Daily bump.
From-SVN: r199346
2013-05-27 00:16:26 +00:00
Eric Botcazou 50bf9f145c trans.c (Attribute_to_gnu): Add kludge to avoid generating an overflow for -1.
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Last_Bit>: Add kludge
	to avoid generating an overflow for -1.

From-SVN: r199341
2013-05-26 10:06:18 +00:00
GCC Administrator e057968785 Daily bump.
From-SVN: r199332
2013-05-26 00:16:27 +00:00
GCC Administrator 4b9684a889 Daily bump.
From-SVN: r199321
2013-05-25 00:16:22 +00:00
GCC Administrator 08d1ebf52f Daily bump.
From-SVN: r199271
2013-05-24 00:16:24 +00:00
GCC Administrator 552c092c07 Daily bump.
From-SVN: r199226
2013-05-23 00:16:21 +00:00
Uros Bizjak b7eade352f re PR target/57356 (gcc-4.8: SSE2 instructions generated with '-mno-sse2')
PR target/57356
	* config/i386/i386.md (*movti_internal_rex64): Emit movaps/movups
	for non-sse2 targets.  Simplify mode attribute calculation.

From-SVN: r199205
2013-05-22 18:07:08 +02:00
Janne Blomqvist 73d5befa78 Improve RANDOM_SEED example.
2013-05-22  Janne Blomqvist  <jb@gcc.gnu.org>

	* intrinsic.texi (RANDOM_SEED): Improve example.

From-SVN: r199184
2013-05-22 11:36:12 +03:00
GCC Administrator 67272cca63 Daily bump.
From-SVN: r199171
2013-05-22 00:16:27 +00:00
GCC Administrator a0ea865756 Daily bump.
From-SVN: r199129
2013-05-21 00:16:14 +00:00
Jason Merrill c6dc04853f re PR c++/57325 (ICE in strip_typedefs, at cp/tree.c:1306)
PR c++/57325
	* tree.c (build_cplus_array_type): Copy layout info if element
	type is complete.

From-SVN: r199112
2013-05-20 13:01:01 -04:00
Chung-Ju Wu 83c56d3ef8 backport: Makefile.in (clean): Remove libgcc_tm.stamp as well.
2013-05-20  Chung-Ju Wu  <jasonwucj@gmail.com>

        Backport from mainline:
        2012-05-24  Olivier Hainque  <hainque@adacore.com>

        * Makefile.in (clean): Remove libgcc_tm.stamp as well.
        Use a separate command for stamp removals.

From-SVN: r199091
2013-05-20 03:52:11 +00:00
GCC Administrator 4a9d6bfce3 Daily bump.
From-SVN: r199088
2013-05-20 00:16:24 +00:00
GCC Administrator 804e143727 Daily bump.
From-SVN: r199073
2013-05-19 00:16:21 +00:00
GCC Administrator 124d2d3c29 Daily bump.
From-SVN: r199045
2013-05-18 00:16:24 +00:00
Uros Bizjak 01bf4de9e4 backport: re PR target/45359 (poor -march=native choices for VIA C7 Esther processors)
Backport from mainline
	2013-05-16  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/driver-i386.c (host_detect_local_cpu): Determine
	cache parameters using detect_caches_amd also for CYRIX,
	NSC and TM2 signatures.

	2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
		    Dzianis Kahanovich  <mahatma@eu.by>

	PR target/45359
	PR target/46396
	* config/i386/driver-i386.c (host_detect_local_cpu): Detect
	VIA/Centaur processors and determine their cache parameters
	using detect_caches_amd.

	2013-05-15  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_option_override_internal): Add
	PTA_POPCNT to corei7 entry.

From-SVN: r199026
2013-05-17 19:50:11 +02:00
GCC Administrator 680fcd86bb Daily bump.
From-SVN: r198995
2013-05-17 00:16:15 +00:00
GCC Administrator 7b5a7c7c52 Daily bump.
From-SVN: r198953
2013-05-16 00:16:16 +00:00
Jonathan Wakely 53a399e36a * include/bits/basic_string.h (getline): Fix doxygen comments.
From-SVN: r198952
2013-05-15 23:34:22 +01:00
GCC Administrator 42bc819b1b Daily bump.
From-SVN: r198910
2013-05-15 00:16:17 +00:00
Evgeniy Stepanov 3b35470956 system_error.cc (generic_category_instance): Add initializer.
2013-05-14  Evgeniy Stepanov  <eugenis@google.com>

	* src/c++11/system_error.cc (generic_category_instance): Add
	initializer.
	(system_category_instance): Likewise.
	* src/c++11/future.cc (__fec): Likewise.

From-SVN: r198908
2013-05-15 00:05:40 +01:00
Richard Biener c7bedab877 re PR gcov-profile/57269 (ICE in gcov_open, at gcov-io.c:82)
2013-05-14  Richard Biener  <rguenther@suse.de>

	PR gcov-profile/57269
	Backport from mainline
	2012-06-30  Nathan Sidwell  <nathan@acm.org>

	* coverage.c (coverage_init): Read counts file before writing
	graph header.

From-SVN: r198875
2013-05-14 10:49:28 +00:00
GCC Administrator 465c9c586b Daily bump.
From-SVN: r198856
2013-05-14 00:16:10 +00:00
Uros Bizjak ad02b21dea re PR target/57264 (cld not emitted when string instructions used, and '-mcld' on command line)
PR target/57264
	Backport from mainline
	2013-01-22  Jakub Jelinek  <jakub@redhat.com>

	PR target/55686
	* config/i386/i386.md (UNSPEC_STOS): New.
	(strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
	*strsetqi_1): Add UNSPEC_STOS.

testsuite/ChangeLog:

	PR target/57264
	* gcc.target/i386/pr57264.c: New test.

From-SVN: r198837
2013-05-13 19:14:26 +02:00
GCC Administrator d7f48e4d08 Daily bump.
From-SVN: r198808
2013-05-13 00:16:20 +00:00
GCC Administrator e766c0c8b2 Daily bump.
From-SVN: r198800
2013-05-12 00:16:25 +00:00
GCC Administrator 56983581c4 Daily bump.
From-SVN: r198797
2013-05-11 00:16:18 +00:00
Joey Ye 3194034cb0 backport: re PR target/54974 ([ARM] [thumb] Incorrect placement of constant pools)
2013-05-10  Joey Ye  <joey.ye@arm.com>

	Backport from mainline
	2012-11-29  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>

	PR target/54974
	* config/arm/arm.md (thumb2_pool_range, pool_range): Add comment on
	Thumb pool ranges.
	(thumb1_extendhisi2): Reduce Thumb pool range.
	(arm_movdi): Likewise.
	(thumb1_movdi_insn): Likewise.
	(thumb1_movsi_insn): Likewise.
	(pic_load_addr_unified): Likewise.
	(pic_load_addr_32bit): Likewise.
	(pic_load_addr_thumb1): Likewise.
	(thumb1_movhf): Likewise.
	(arm_movsf_soft_insn): Likewise.
	(thumb1_movsf_soft_insn): Likewise.
	(movdf_soft_insn): Likewise.
	(thumb1_movdf_soft_insn): Likewise.
	* config/arm/neon.md (*neon_mov<mode>): Likewise.
	(*neon_mov<mode>): Likwise.
	* config/arm/thumb2.md: (*thumb2_movsi_insn): Likewise.
	(*thumb2_movhi_insn): Likewise.
	(*thumb2_extendqisi_v6): Likewise.
	(*thumb2_zero_extendqisi_v6): Likewise.
	(*thumb2_zero_extendqisi2_v6): Likewise.
	* config/arm/vfp.md: (*thumb2_movsi_vfp): Likewise.
	(*movdi_vfp): Likewise.
	(*movdi_vfp_cortexa8): Likewise.
	(*thumb2_movsf_vfp): Likewise.
	(*thumb2_movdf_vfp): Likewise.

From-SVN: r198793
2013-05-10 15:27:15 +00:00
Joel Sherrill 48c266c9a9 Fix spacing
From-SVN: r198788
2013-05-10 15:12:40 +00:00
Sebastian Huber 462274d97f t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2013-05-10  Sebastian Huber <sebastian.huber@embedded-brains.de>

	* config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
	Add mthumb/march=armv7-a multilib.
	Add mthumb/march=armv7-r multilib.
	Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.

From-SVN: r198785
2013-05-10 15:08:42 +00:00
Ralf Corsepius 19741a246f re PR target/57237 (Upstreaming the rtems v850 multilib gcc patch)
2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>

	PR target/57237
	* config/v850/t-rtems: Add more multilibs.

From-SVN: r198782
2013-05-10 15:03:40 +00:00
Jason Merrill a502c82791 re PR c++/57047 ([C++11] stl_pair.h:137:64: internal compiler error: Segmentation fault in constexpr constructor)
PR c++/57047
	* semantics.c (cxx_fold_indirect_ref): Fix thinko.

From-SVN: r198779
2013-05-10 10:34:24 -04:00
GCC Administrator 029d01033f Daily bump.
From-SVN: r198758
2013-05-10 00:16:07 +00:00
GCC Administrator c2ea656bed Daily bump.
From-SVN: r198727
2013-05-09 00:16:25 +00:00
GCC Administrator 495e602caa Daily bump.
From-SVN: r198701
2013-05-08 00:16:25 +00:00
Michael Meissner 10dac7ca9c backport: re PR target/57150 (GCC when targeting power7 spills long double using VSX instructions.)
[gcc]
2013-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>

	Backport from trunk
	2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/57150
	* config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
	to save TFmode registers and DImode to save TImode registers for
	caller save operations.
	(HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
	mark being partially clobbered since they only use the first
	double word.

	* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
	and TDmode only use the upper 64-bits of each VSX register.

[gcc/testsuite]
2013-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>

	Backport from trunk
	2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/57150
	* gcc.target/powerpc/pr57150.c: New file.

From-SVN: r198692
2013-05-07 17:58:02 +00:00
Tobias Burnus f91de6b522 backport: re PR fortran/57142 (SIZE/SHAPE overflow despite kind=8)
2013-05-07  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2013-05-02  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57142
        * simplify.c (gfc_simplify_size): Renamed from
        simplify_size; fix kind=8 handling.
        (gfc_simplify_size): New function.
        (gfc_simplify_shape): Add range check.

2013-05-07  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2013-05-02  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57142
        * gfortran.dg/size_kind_2.f90: New.
        * gfortran.dg/size_kind_3.f90: New.

From-SVN: r198690
2013-05-07 19:28:12 +02:00
GCC Administrator d32bb8fc13 Daily bump.
From-SVN: r198659
2013-05-07 00:16:09 +00:00
GCC Administrator 0b306b7b62 Daily bump.
From-SVN: r198614
2013-05-06 00:16:10 +00:00
GCC Administrator 04a7829812 Daily bump.
From-SVN: r198604
2013-05-05 00:16:07 +00:00
GCC Administrator 54d50a8e37 Daily bump.
From-SVN: r198588
2013-05-04 00:16:07 +00:00
Marek Polacek 7a02c5b296 re PR tree-optimization/57066 (std::logb(-inf) returns wrong value)
PR tree-optimization/57066
        * builtins.c (fold_builtin_logb): Return +Inf for -Inf.

        * gcc.dg/torture/builtin-logb-1.c: Adjust testcase.

From-SVN: r198571
2013-05-03 08:59:14 +00:00
GCC Administrator 3e9bc33518 Daily bump.
From-SVN: r198566
2013-05-03 00:16:08 +00:00
GCC Administrator 1d47392d9c Daily bump.
From-SVN: r198508
2013-05-02 00:16:09 +00:00
GCC Administrator 1e1f3911c8 Daily bump.
From-SVN: r198482
2013-05-01 00:16:12 +00:00
Uros Bizjak b9d6a4f9f2 backport: re PR target/44578 (GCC generates MMX instructions but fails to generate "emms")
Backport from mainline
	2013-04-29  Uros Bizjak  <ubizjak@gmail.com>

	PR target/44578
	* config/i386/i386.md (*zero_extendsidi2_rex64): Add "!" to m->?*y
	alternative.
	(*zero_extendsidi2): Ditto.

	Backport from mainline
	2013-04-29  Uros Bizjak  <ubizjak@gmail.com>

	PR target/57098
	* config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.

testsuite/ChangeLog:

	Backport from mainline
	2013-04-29  Uros Bizjak  <ubizjak@gmail.com>

	PR target/44578
	* gcc.target/i386/pr44578.c: New test.

	Backport from mainline
	2013-04-29  Uros Bizjak  <ubizjak@gmail.com>

	PR target/57098
	* gcc.target/i386/pr57098.c: New test.

From-SVN: r198439
2013-04-30 07:30:20 +02:00
GCC Administrator 809150761c Daily bump.
From-SVN: r198435
2013-04-30 00:16:23 +00:00
Christian Bruel ab319545aa re PR target/57108 ([4.7/4.8/4.9] SH internal compiler error: in int_mode_for_mode, at stor-layout.c:395)
2013-04-29  Christian Bruel  <christian.bruel@st.com>

        PR target/57108
        * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.

From-SVN: r198410
2013-04-29 13:34:26 +02:00
Jerry DeLisle 4df34bf573 backport: re PR fortran/51825 (Fortran runtime error: Cannot match namelist object name)
2013-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	Backport from mainline:
	2013-03-20  Tilo Schwarz  <tilo@tilo-schwarz.de>

	PR libfortran/51825
	* io/list_read.c (nml_read_obj): Don't end the component loop on a
	nested derived type, but continue with the next loop iteration.
	(nml_get_obj_data): Don't move the first_nl pointer further in the
	list if a qualifier was found.

	PR fortran/51825
	* gfortran.dg/namelist_77.f90: New test.
	* gfortran.dg/namelist_78.f90: New test.

From-SVN: r198386
2013-04-29 01:25:43 +00:00
GCC Administrator 565cef2807 Daily bump.
From-SVN: r198382
2013-04-29 00:16:23 +00:00
Jerry DeLisle bffdaff22a backport: re PR libfortran/56786 (Namelist read fails with designators containing embedded spaces)
2013-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	Backport from mainline:

	PR libfortran/56786
	* io/list_read.c (nml_parse_qualifier): Remove spurious next_char call
	when checking for EOF. Use error return mechanism when EOF detected.
	Do not return FAILURE unless parse_err_msg and parse_err_msg_size have
	been set. Use hit_eof.
	(nml_get_obj_data): Likewise use the correct error mechanism.
	* io/transfer.c (hit_eof): Do not set AFTER_ENDFILE if in namelist
	mode.

	Backport from trunk:

	PR fortran/56786
	* gfortran.dg/namelist_81.f90:  New test.

From-SVN: r198375
2013-04-28 17:20:06 +00:00
Jerry DeLisle 64c759edc6 backport: re PR fortran/52512 (Cannot match namelist object name)
2013-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	Backport from mainline:
	2013-03-25  Tilo Schwarz  <tilo@tilo-schwarz.de>

	PR libfortran/52512
	* io/list_read.c (nml_parse_qualifier): To check for a derived type
	don't use the namelist head element type but the current element type.
	(nml_get_obj_data): Add current namelist element type to
	nml_parse_qualifier call.

2013-04-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	Backport from trunk:

	PR fortran/52512
	* gfortran.dg/namelist_79.f90: New test.

From-SVN: r198373
2013-04-28 16:50:19 +00:00
GCC Administrator 4ec4a9b309 Daily bump.
From-SVN: r198363
2013-04-28 00:16:25 +00:00
Jakub Jelinek a7cbf6789e re PR target/56866 (with '-O3 -march=bdver2' misscompiles glibc-2.17/crypt/sha512.c)
PR target/56866
	* config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
	the immediate rotate count.

	* gcc.c-torture/execute/pr56866.c: New test.
	* gcc.target/i386/pr56866.c: New test.

From-SVN: r198357
2013-04-27 14:28:45 +02:00
GCC Administrator 6fb77aae76 Daily bump.
From-SVN: r198351
2013-04-27 00:16:23 +00:00
Janus Weil ca8b59b64f Backport PRs 53685, 56968, 57022
2013-04-26  Janus Weil  <janus@gcc.gnu.org>

	Backports from trunk:

	PR fortran/56968
	* expr.c (gfc_check_pointer_assign): Handle generic functions returning
	procedure pointers.

	PR fortran/53685
	PR fortran/57022
	* check.c (gfc_calculate_transfer_sizes): Fix for array-valued SOURCE
	expressions.
	* target-memory.h (gfc_element_size): New prototype.
	* target-memory.c (size_array): Remove.
	(gfc_element_size): New function.
	(gfc_target_expr_size): Modified to always return the full size of the
	expression.


2013-04-26  Janus Weil  <janus@gcc.gnu.org>

	Backports from trunk:

	PR fortran/56968
	* gfortran.dg/proc_ptr_41.f90: New.

	PR fortran/53685
	PR fortran/57022
	* gfortran.dg/transfer_check_4.f90: New.

From-SVN: r198348
2013-04-27 00:26:02 +02:00
GCC Administrator ee803b920c Daily bump.
From-SVN: r198326
2013-04-26 00:16:24 +00:00
GCC Administrator c4c761c397 Daily bump.
From-SVN: r198268
2013-04-25 00:16:10 +00:00
GCC Administrator aedd0d1b93 Daily bump.
From-SVN: r198214
2013-04-24 00:16:24 +00:00
GCC Administrator 31c0d992da Daily bump.
From-SVN: r198166
2013-04-23 00:16:18 +00:00
GCC Administrator da14b2b981 Daily bump.
From-SVN: r198118
2013-04-22 00:16:26 +00:00
Eric Botcazou 111d7531cc cfgexpand.c (avoid_complex_debug_insns): Fix C++ism.
* cfgexpand.c (avoid_complex_debug_insns): Fix C++ism.
cp/
	* parser.c (cp_parser_late_return_type_opt): Likewise.

From-SVN: r198114
2013-04-21 08:02:06 +00:00
GCC Administrator 970e6639ea Daily bump.
From-SVN: r198111
2013-04-21 00:16:21 +00:00
GCC Administrator 047c203dc6 Daily bump.
From-SVN: r198106
2013-04-20 00:16:27 +00:00
Matthias Klose 275b8c8610 backport: [multiple changes]
2013-04-19  Matthias Klose  <doko@ubuntu.com>

        PR middle-end/56848
        Re-apply
        2013-04-01  Andrey Belevantsev  <abel@ispras.ru>

        Backport from mainline
        2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
        Alexander Monakov  <amonakov@ispras.ru>

        PR middle-end/56077
        * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
        flush pending lists also on non-jumps.  Adjust comment.

        Backport from 4.8:
        2012-08-27  Maxim Kuvyrkov  <maxim@codesourcery.com>

        * sched-deps.c (add_dependence_list_and_free): Simplify.
        (flush_pending_list_and_free): Fix a hack that was fixing a hack.  Free
        lists when add_dependence_list_and_free doesn't free them.

From-SVN: r198089
2013-04-19 12:00:36 +00:00
Marek Polacek ff166d81d9 backport: re PR tree-optimization/48189 (ICE: SIGFPE (division by zero) in in predict_loops () at predict.c:991 with --param max-predicted-iterations=0)
Backport from mainline
	2013-01-08  Steven Bosscher  <steven@gcc.gnu.org>
		    Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/48189
	* predict.c (predict_loops): If max is 0, don't call compare_tree_int.
	If nitercst is 0, don't predict the exit edge.

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

From-SVN: r198085
2013-04-19 08:18:29 +00:00
GCC Administrator 81a8c3172c Daily bump.
From-SVN: r198078
2013-04-19 00:16:20 +00:00
Tobias Burnus 2382c9e153 re PR fortran/56994 (Incorrect documentation for Fortran NEAREST intrinsic function)
2013-04-18  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56994
        * invoke.texi (NEAREST): S argument is not optional.

From-SVN: r198049
2013-04-18 09:48:05 +02:00
GCC Administrator 579b7fe12f Daily bump.
From-SVN: r198043
2013-04-18 00:16:20 +00:00
Mike Stump e348451014 Move changelog entry to right file.
2013-04-16  Jack Howarth  <howarth@bromo.med.uc.edu>

	Backport from mainline
	2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
	* config/darwin.h (STARTFILE_SPEC): Use -no_new_main with -lgcrt1.o
	on Darwin >= 12.
	(DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10 and < 12.


	2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
	PR debug/53453
	* doc/tm.texi: Update.
	* doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
	* target.def (force_at_comp_dir): New hook.
	* config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
	* dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.

From-SVN: r198031
2013-04-17 15:51:35 +00:00
GCC Administrator 1d76b96f14 Daily bump.
From-SVN: r198015
2013-04-17 00:16:20 +00:00
Mike Stump 6605ab42de Regenerate.
From-SVN: r198012
2013-04-16 21:25:20 +00:00
Jason Merrill 7c39266d69 re PR c++/56388 (catch(...) in lambda rejected)
PR c++/56388
	* semantics.c (insert_capture_proxy): Just use index 1 in the
	stmt_list_stack.

From-SVN: r198010
2013-04-16 16:29:22 -04:00
Jack Howarth 25dda4f6cc backport: re PR debug/53453 (darwin linker expects both AT_name and AT_comp_dir debug notes)
2013-04-16  Jack Howarth  <howarth@bromo.med.uc.edu>

	Backport from mainline
	2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
	* config/darwin.h (STARTFILE_SPEC): Use -no_new_main with -lgcrt1.o
	on Darwin >= 12.
	(DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10 and < 12.


	2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
	PR debug/53453
	* doc/tm.texi: Update.
	* doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
	* target.def (force_at_comp_dir): New hook.
	* config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
	* dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.

From-SVN: r198005
2013-04-16 17:09:14 +00:00
Jack Howarth a8abfe1fd6 backport: re PR libstdc++/54847 (--enable-libstdcxx-time=yes doesn't find the function nanosleep() on darwin)
2013-04-15  Jack Howarth  <howarth@bromo.med.uc.edu>

	Backport from mainline

	2012-10-10  Jack Howarth  <howarth@bromo.med.uc.edu>
		    Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/54847
	* config/os/bsd/darwin/os_defines.h: Define _GLIBCXX_USE_NANOSLEEP
	and _GLIBCXX_USE_SCHED_YIELD.
	* acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add comment.

From-SVN: r198003
2013-04-16 17:03:33 +00:00
GCC Administrator 483d103326 Daily bump.
From-SVN: r197990
2013-04-16 00:16:18 +00:00
Rainer Orth 97b3c37c5f Skip gcc.dg/torture/pr53922.c on Tru64 UNIX
* gcc.dg/torture/pr53922.c: Skip on alpha*-*-osf*.
	Remove dg-skip-if default args.

From-SVN: r197980
2013-04-15 15:17:27 +00:00
Rainer Orth d87c0b7e96 Compile 30_threads/condition_variable/members/53841.cc with -std=gnu++0x on Tru64 UNIX and IRIX
* testsuite/30_threads/condition_variable/members/53841.cc: Add
	-std=gnu++0x -pthread on alpha*-*-osf*, mips-sgi-irix6*.

From-SVN: r197977
2013-04-15 14:55:01 +00:00
Eric Botcazou 30fa7af1a5 re PR target/56890 (invalid fdtox instruction in 64-bit mode with -O2)
PR target/56890
	* config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
	(S_MODES): Set H_MODE bit.
	(SF_MODES): Set only S_MODE and SF_MODE bits.
	(DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
	(sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
	<MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
	<MODE_FLOAT>: Likewise.

From-SVN: r197960
2013-04-15 08:33:56 +00:00
John David Anglin 65e797d688 re PR target/55487 (ICE in mark_jump_label_1, at jump.c:1134 compiling gcc.c-torture/execute/pr51447.c at -O2 and above)
PR target/55487
	* config/pa/pa.c (legitimize_pic_address): Before incrementing label
	nuses, make sure we have a label.

From-SVN: r197955
2013-04-15 00:36:54 +00:00
GCC Administrator a481037231 Daily bump.
From-SVN: r197952
2013-04-15 00:16:30 +00:00
GCC Administrator e8a360e862 Daily bump.
From-SVN: r197946
2013-04-14 00:16:26 +00:00
GCC Administrator 1b44567c09 Daily bump.
From-SVN: r197938
2013-04-13 00:16:27 +00:00
GCC Administrator bf425dc68c Daily bump.
From-SVN: r197834
2013-04-12 00:16:28 +00:00
Julian Brown 09ec2f8ca1 libgcc/
* config/arm/linux-atomic.c (SUBWORD_SYNC_OP, SUBWORD_VAL_CAS)
	(SUBWORD_TEST_AND_SET): Use signed char/short types instead of
	unsigned char/unsigned short.
	(__sync_val_compare_and_swap_{1,2}): Handle signed argument.

From-SVN: r197818
2013-04-11 16:26:48 +00:00
Richard Biener 38054e191d BASE-VER: Set to 4.7.4.
2013-04-11  Richard Biener  <rguenther@suse.de>

        * BASE-VER: Set to 4.7.4.
        * DEV-PHASE: Set to prerelease.

From-SVN: r197740
2013-04-11 08:08:12 +00:00
Richard Biener 911595bf2d Mark as release
From-SVN: r197738
2013-04-11 07:57:28 +00:00
Richard Biener 71d316fe0f Mark ChangeLog
From-SVN: r197737
2013-04-11 07:57:24 +00:00
Richard Biener 188b78a9ad Mark ChangeLog
From-SVN: r197736
2013-04-11 07:57:20 +00:00
Richard Biener 00fb8f517c Mark ChangeLog
From-SVN: r197735
2013-04-11 07:57:16 +00:00
Richard Biener 6c986d1980 Mark ChangeLog
From-SVN: r197734
2013-04-11 07:57:11 +00:00
Richard Biener 145982becc Mark ChangeLog
From-SVN: r197733
2013-04-11 07:57:07 +00:00
Richard Biener ab89f8bc25 Mark ChangeLog
From-SVN: r197732
2013-04-11 07:57:02 +00:00
Richard Biener b5bb37b1ec Mark ChangeLog
From-SVN: r197731
2013-04-11 07:56:58 +00:00
Richard Biener c848d6d5e1 Mark ChangeLog
From-SVN: r197730
2013-04-11 07:56:54 +00:00
Richard Biener 0bc714f287 Mark ChangeLog
From-SVN: r197729
2013-04-11 07:56:49 +00:00
Richard Biener 5ee3391070 Mark ChangeLog
From-SVN: r197728
2013-04-11 07:56:45 +00:00
Richard Biener 414097decb Mark ChangeLog
From-SVN: r197727
2013-04-11 07:56:40 +00:00
Richard Biener f9382ce5ee Mark ChangeLog
From-SVN: r197726
2013-04-11 07:56:35 +00:00
Richard Biener ad960d24b2 Mark ChangeLog
From-SVN: r197725
2013-04-11 07:56:31 +00:00
Richard Biener 7be0b97964 Mark ChangeLog
From-SVN: r197724
2013-04-11 07:56:27 +00:00
Richard Biener b2ece171cb Mark ChangeLog
From-SVN: r197723
2013-04-11 07:56:23 +00:00
Richard Biener 98f33b54db Mark ChangeLog
From-SVN: r197722
2013-04-11 07:56:19 +00:00
Richard Biener b6f302dce2 Mark ChangeLog
From-SVN: r197721
2013-04-11 07:56:15 +00:00
Richard Biener 1465dc2602 Mark ChangeLog
From-SVN: r197720
2013-04-11 07:56:11 +00:00
Richard Biener 3e378b7a20 Mark ChangeLog
From-SVN: r197719
2013-04-11 07:56:07 +00:00
Richard Biener a06491d5a2 Mark ChangeLog
From-SVN: r197718
2013-04-11 07:56:03 +00:00
Richard Biener b0cfd91d79 Mark ChangeLog
From-SVN: r197717
2013-04-11 07:55:59 +00:00
Richard Biener d3db0518e8 Mark ChangeLog
From-SVN: r197716
2013-04-11 07:55:55 +00:00
Richard Biener 7d172a338a Mark ChangeLog
From-SVN: r197715
2013-04-11 07:55:51 +00:00
Richard Biener f604f8023d Mark ChangeLog
From-SVN: r197714
2013-04-11 07:55:47 +00:00
Richard Biener 106e5a1580 Mark ChangeLog
From-SVN: r197713
2013-04-11 07:55:42 +00:00
Richard Biener a75fc5f290 Mark ChangeLog
From-SVN: r197712
2013-04-11 07:55:38 +00:00
Richard Biener 45a5d21ee2 Mark ChangeLog
From-SVN: r197711
2013-04-11 07:55:34 +00:00
Richard Biener cf09cc1b57 Mark ChangeLog
From-SVN: r197710
2013-04-11 07:55:30 +00:00
Richard Biener 4464a8ab38 Mark ChangeLog
From-SVN: r197709
2013-04-11 07:55:26 +00:00
Richard Biener c85724b4f0 Mark ChangeLog
From-SVN: r197708
2013-04-11 07:55:21 +00:00
Richard Biener 228b420ff5 Mark ChangeLog
From-SVN: r197707
2013-04-11 07:55:17 +00:00
Richard Biener 16437f81a1 Mark ChangeLog
From-SVN: r197706
2013-04-11 07:55:13 +00:00
Richard Biener 46f2d7f8d2 Mark ChangeLog
From-SVN: r197705
2013-04-11 07:55:09 +00:00
Richard Biener ddf2fb15d4 Mark ChangeLog
From-SVN: r197704
2013-04-11 07:55:05 +00:00
Richard Biener 0ba9f29e87 Mark ChangeLog
From-SVN: r197703
2013-04-11 07:55:01 +00:00
Richard Biener 81e0880068 Mark ChangeLog
From-SVN: r197702
2013-04-11 07:54:56 +00:00
Richard Biener 3387f0effc Mark ChangeLog
From-SVN: r197701
2013-04-11 07:54:52 +00:00
Richard Biener 4ec8427bbc Mark ChangeLog
From-SVN: r197700
2013-04-11 07:54:46 +00:00
Richard Biener 05b5f19352 Mark ChangeLog
From-SVN: r197699
2013-04-11 07:54:40 +00:00
Richard Biener 0672b5496f Mark ChangeLog
From-SVN: r197698
2013-04-11 07:54:35 +00:00
Richard Biener e1a86ce11b Mark ChangeLog
From-SVN: r197697
2013-04-11 07:54:30 +00:00
Richard Biener e790e48b8a Mark ChangeLog
From-SVN: r197696
2013-04-11 07:54:25 +00:00
Richard Biener 760c7c8eaf Mark ChangeLog
From-SVN: r197695
2013-04-11 07:54:20 +00:00
Richard Biener 3b3ef7e386 Mark ChangeLog
From-SVN: r197694
2013-04-11 07:54:16 +00:00
David S. Miller 437ac3d4c8 Fix sparc assembler specs for supersparc and hypersparc.
gcc/

	* config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
	or -mcpu=hypersparc.

From-SVN: r197689
2013-04-10 17:59:29 -07:00
GCC Administrator 4f3ba7b4ee Daily bump.
From-SVN: r197685
2013-04-11 00:16:51 +00:00
GCC Administrator 1a0acf6a7c Daily bump.
From-SVN: r197656
2013-04-10 00:16:37 +00:00
GCC Administrator 5765c5984a Daily bump.
From-SVN: r197615
2013-04-09 00:16:39 +00:00
John David Anglin 03af41d25f re PR other/55274 (gcc build hangs on HP-UX 11.11)
PR other/55274
	* config/t-slibgcc-hpux (SHLIB_MAPFILES): Define.

From-SVN: r197575
2013-04-08 11:32:58 +00:00
GCC Administrator 15ec8ca215 Daily bump.
From-SVN: r197560
2013-04-08 00:16:35 +00:00
GCC Administrator de5c438b99 Daily bump.
From-SVN: r197547
2013-04-07 00:16:17 +00:00
Gerald Pfeifer 35cd7b73c4 allocator.xml: Adjust link to Dr.Dobb's article.q
* doc/xml/manual/allocator.xml: Adjust link to Dr.Dobb's article.q

	* doc/xml/manual/appendix_contributing.xml: Adjust link to GNU
	Coding Standards.

	* doc/xml/manual/debug.xml: Adjust link for ThreadSanitizer.

	* doc/xml/manual/debug_mode.xml: Adjust link for SafeSTL.

	* doc/xml/manual/documentation_hacking.xml: Adjust Doxygen link.

	* doc/xml/manual/messages.xml: Adjust link to Java API specs.

	* doc/xml/manual/policy_data_structures: Remove direct link to
	IBM Haifa Research Labs.

	* doc/xml/manual/policy_data_structures_biblio.xml: Adjust links
	for biblio.maverik_lowerbounds and biblio.nelson96stlpq.

	* doc/xml/manual/profile_mode.xml: Adjust two links to acm.org
	papers.

	* doc/xml/manual/shared_ptr.xml: Use canonical address for
	www.boost.org.

From-SVN: r197543
2013-04-06 17:55:01 +00:00
GCC Administrator 2e79709084 Daily bump.
From-SVN: r197538
2013-04-06 00:16:35 +00:00
Eric Botcazou 9800ca258f re PR middle-end/56848 (ICE (segfault) with the 4.7.3 release candidate)
PR middle-end/56848
	Revert
	2013-04-01  Andrey Belevantsev  <abel@ispras.ru>

	Backport from mainline
	2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
	Alexander Monakov  <amonakov@ispras.ru>

	PR middle-end/56077
	* sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
	flush pending lists also on non-jumps.  Adjust comment.

From-SVN: r197536
2013-04-05 21:17:40 +00:00
GCC Administrator f43e451693 Daily bump.
From-SVN: r197499
2013-04-05 00:16:26 +00:00
GCC Administrator c60d284251 Daily bump.
From-SVN: r197462
2013-04-04 00:16:29 +00:00
Jakub Jelinek c7225acb28 re PR c++/56819 (ICE: SIGSEGV in int_cst_value (tree.h:4013) with -fcompare-debug)
PR debug/56819
	* tree.c (strip_typedefs): Copy NON_DEFAULT_TEMPLATE_ARGS_COUNT
	from args to new_args.
	(strip_typedefs_expr): Copy NON_DEFAULT_TEMPLATE_ARGS_COUNT from t to
	r instead of doing {S,G}ET_NON_DEFAULT_TEMPLATE_ARGS_COUNT.

	* g++.dg/debug/pr56819.C: New test.

From-SVN: r197454
2013-04-03 21:44:02 +02:00
Sebastian Huber 4eb9d15207 re PR target/56771 (Integer Overflow? Building arm-rtems libgcc2)
2013-04-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	PR target/56771
	* configure.ac: Require 64-bit int for arm*-*-rtems[.0-9]*.
	* configure: Regenerate.

From-SVN: r197428
2013-04-03 15:43:55 +00:00
Joel Sherrill 305c9ff189 Revert
From-SVN: r197427
2013-04-03 15:43:10 +00:00
Joel Sherrill b8e0cd21d2 re PR target/56771 (Integer Overflow? Building arm-rtems libgcc2)
2013-04-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	PR target/56771
	* configure.ac: Require 64-bit int for arm*-*-rtems[.0-9]*.
	* configure: Regenerate.

From-SVN: r197426
2013-04-03 15:42:46 +00:00
Sebastian Huber 30a7601f23 re PR target/56771 (Integer Overflow? Building arm-rtems libgcc2)
2013-04-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	PR target/56771
	* configure.ac: Require 64-bit int for arm*-*-rtems*.
	* configure: Regenerate.

From-SVN: r197419
2013-04-03 15:14:42 +00:00
Tobias Burnus 76b3663751 backport: re PR libfortran/56737 (Wrong I/O result with format cache for Hollerith strings)
2013-04-03  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline:
        2013-03-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56737
        * io/format.c (parse_format): With caching, copy
        dtp->format string.
        (save_parsed_format): Use dtp->format directly without
        copying.

2013-04-03  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline:
        2013-03-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56737
        * testsuite/gfortran.dg/fmt_cache_3.f90: New.

From-SVN: r197412
2013-04-03 16:00:20 +02:00
Richard Biener 1661e2108b re PR tree-optimization/56501 (gcc 4.6 ICE on noreturn function at -Os and above)
2013-04-03  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/56501
	* tree-switch-conversion.c (check_process_case): Properly
	handle !single_succ_p case.

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

From-SVN: r197405
2013-04-03 12:02:56 +00:00
Tobias Burnus 71855a6aea backport: re PR fortran/56735 (Namelist Read Error with question marks)
2013-04-03  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline:
        2013-03-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56735
        * io/list_read.c (nml_query): Only abort when
        an error occured.
        (namelist_read): Add goto instead of falling through.

2013-04-03  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline:
        2013-03-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56735
        * gfortran.dg/namelist_80.f90: New.

From-SVN: r197396
2013-04-03 11:52:06 +02:00
Jakub Jelinek ddddd96fb4 backport: re PR tree-optimization/56539 (ICE: verify_ssa failed: caused by -foptimize-sibling-calls)
Backported from mainline
	2013-03-06  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/56539
	* tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
	instead of GSI_CONTINUE_LINKING as last argument to
	force_gimple_operand_gsi.  Adjust function comment.

	* gcc.c-torture/compile/pr56539.c: New test.

From-SVN: r197392
2013-04-03 10:22:12 +02:00
Jakub Jelinek 85e7769dc2 backport: re PR debug/56510 (More var-tracking scalability problems)
Backported from mainline
	2013-03-05  Jakub Jelinek  <jakub@redhat.com>

	PR debug/56510
	* cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
	(avoid_complex_debug_insns): New function.
	(expand_debug_locations): Call it.

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

From-SVN: r197391
2013-04-03 10:19:56 +02:00
GCC Administrator 8e21c6cff2 Daily bump.
From-SVN: r197382
2013-04-03 00:16:13 +00:00
Wei Mi b0896c3319 i386.c (ix86_rtx_costs): Set proper rtx cost for ashl<mode>3_mask...
2013-04-02  Wei Mi  <wmi@google.com>

	* config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
	ashl<mode>3_mask, *<shift_insn><mode>3_mask and
	*<rotate_insn><mode>3_mask in i386.md.

From-SVN: r197364
2013-04-02 16:54:39 +00:00
Richard Biener 26f114eda9 pr45472.c: Remove copies.
2013-04-02  Richard Biener  <rguenther@suse.de>

        * gcc.dg/pr45472.c: Remove copies.

From-SVN: r197352
2013-04-02 12:27:37 +00:00
Richard Biener c57863be4f re PR c++/56768 ([4.7] ICE in make_decl_rtl, at varasm.c:1147)
2013-04-02  Richard Biener  <rguenther@suse.de>

	PR middle-end/56768
	Backport from mainline
	2012-05-16  Richard Guenther  <rguenther@suse.de>

	* tree-inline.c (declare_return_variable): Properly handle
	DECL_BY_REFERENCE return vars in SSA form.

	* g++.dg/torture/pr56768.C: New testcase.

From-SVN: r197351
2013-04-02 12:25:00 +00:00
GCC Administrator abe03770e9 Daily bump.
From-SVN: r197336
2013-04-02 00:16:21 +00:00
Jason Merrill 343b4fc0f8 re PR c++/56794 (C++11 Error in range-based for with parameter pack array)
PR c++/56794
	* parser.c (cp_parser_range_for): Don't try to do auto deduction
	in a template if the type of the range is incomplete.

From-SVN: r197328
2013-04-01 17:19:03 -04:00
Wei Mi 9ae29ce8d0 i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
2013-04-01  Wei Mi  <wmi@google.com>

	* config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
	Truncate operand 2 using %b asm operand modifier.
	(*<shift_insn><mode>3_mask): Ditto.
	(*<rotate_insn><mode>3_mask): Ditto.

From-SVN: r197312
2013-04-01 17:50:38 +00:00
Uros Bizjak dfeee3fd1f i386.md (*movsf_internal): Change type of alternatives 3,4 to imov.
* config/i386/i386.md (*movsf_internal): Change type of
	alternatives 3,4 to imov.

From-SVN: r197304
2013-04-01 15:42:52 +02:00
Andrey Belevantsev d4e37aea87 backport: re PR middle-end/45472 ([Middle-end volatile semantics] ICE: in move_op_ascend, at sel-sched.c:6124 with -fselective-scheduling2)
Backport from mainline
        2013-02-27  Andrey Belevantsev  <abel@ispras.ru>

        PR middle-end/45472

        * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
        when the may_trap_p bit of the exprs being merged differs.
        Reorder tests for speculativeness in the logical and operator.

        Backport from mainline
         2013-03-05  Jakub Jelinek  <jakub@redhat.com>

        PR middle-end/56461
        * sel-sched-ir.c (free_sched_pools): Release
        succs_info_pool.stack[succs_info_pool.max_top] vectors too
        if succs_info_pool.max_top isn't -1.

        Backport from mainline
        2013-02-27  Andrey Belevantsev  <abel@ispras.ru>

        PR middle-end/45472
        * gcc.dg/pr45472.c: New test.

From-SVN: r197299
2013-04-01 12:17:06 +04:00
Andrey Belevantsev a171f1c16c backport: re PR middle-end/55889 (ICE: in move_op_ascend, at sel-sched.c:6153 with -fschedule-insns -fselective-scheduling)
Backport from mainline
        2012-02-19  Andrey Belevantsev  <abel@ispras.ru>

        PR middle-end/55889

        * sel-sched.c: Include ira.h.
        (implicit_clobber_conflict_p): New function.
        (moveup_expr): Use it.
        * Makefile.in (sel-sched.o): Depend on ira.h.

From-SVN: r197298
2013-04-01 12:11:11 +04:00
Andrey Belevantsev df19a4cddb backport: re PR middle-end/56077 (volatile ignored when function inlined)
Backport from mainline
        2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
        Alexander Monakov  <amonakov@ispras.ru>

        PR middle-end/56077
        * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
        flush pending lists also on non-jumps.  Adjust comment.

From-SVN: r197297
2013-04-01 12:06:18 +04:00
GCC Administrator 4d3be9710f Daily bump.
From-SVN: r197293
2013-04-01 00:16:34 +00:00
GCC Administrator 0366db81f6 Daily bump.
From-SVN: r197274
2013-03-31 00:16:34 +00:00
Gerald Pfeifer bd0b6a7271 invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
* doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
	* doc/extend.texi (Named Address Spaces): Ditto.
	(Variable Attributes): Ditto.

From-SVN: r197263
2013-03-30 11:10:22 +00:00
GCC Administrator 2966df5ae2 Daily bump.
From-SVN: r197255
2013-03-30 00:16:19 +00:00
Jason Merrill 6e46441224 re PR c++/56774 (G++ 4.8 reverses variadic template types during unpacking)
PR c++/56774
	PR c++/35722
	* pt.c (unify_pack_expansion): Fix indexing.

From-SVN: r197246
2013-03-29 14:59:35 -04:00
GCC Administrator 8864ab3534 Daily bump.
From-SVN: r197221
2013-03-29 00:16:33 +00:00
Eric Botcazou de8f8aa64c toplev.c (process_options): Do not disable -fomit-frame-pointer on a general basis if...
* toplev.c (process_options): Do not disable -fomit-frame-pointer on a
	general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
	is not enabled.

From-SVN: r197188
2013-03-28 08:30:32 +00:00
GCC Administrator d19bc608f8 Daily bump.
From-SVN: r197182
2013-03-28 00:16:30 +00:00
Walter Lee 40a27e5f93 Fix typo in ChangeLog.
From-SVN: r197151
2013-03-27 06:52:13 +00:00
Walter Lee db09787722 backport: tilegx.c (tilegx_expand_prologue): Avoid double-decrement of next_scratch_regno.
Backport from mainline:
	2013-03-27  Walter Lee  <walt@tilera.com>

	* config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
	double-decrement of next_scratch_regno.

From-SVN: r197149
2013-03-27 06:39:01 +00:00
Walter Lee 9dc3f9d2ea backport: tilegx.md (insn_v1mulu): Fix constraints on input operands.
Backport from mainline:
	2013-03-27  Walter Lee  <walt@tilera.com>

	* config/tilegx/tilegx.md (insn_v1mulu): Fix constraints on
	input operands.
	(insn_v1mulus): Ditto.
	(insn_v2muls): Ditto.

From-SVN: r197148
2013-03-27 06:37:39 +00:00
Walter Lee a72f3ab148 backport: tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
Backport from mainline:
	2013-03-27  Walter Lee  <walt@tilera.com>

	* config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
	extra tab.
	(ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.

From-SVN: r197147
2013-03-27 06:36:17 +00:00
Walter Lee 62aa267515 backport: tilegx.md (*sibcall_insn): Fix type atribute for jr.
Backport from mainline:
	2013-03-27  Walter Lee  <walt@tilera.com>

	* config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute
	for jr.
	(*sibcall_value): Ditto.

From-SVN: r197146
2013-03-27 06:35:05 +00:00
Walter Lee 16bdd750d1 backport: tilegx.md (insn_mnz_<mode>): Replaced by ...
Backport from mainline:
	2013-03-27  Walter Lee  <walt@tilera.com>

	* config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
	(insn_mnz_v8qi): ... this ...
	(insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
	vector equivalent.
	(insn_v<n>mnz): Replaced by ...
	(insn_v1mnz): ... this ...
	(insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
	equivalent.
	(insn_mz_<mode>): Replaced by ...
	(insn_mz_v8qi): ... this ...
	(insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
	vector equivalent.
	(insn_v<n>mz): Replaced by ...
	(insn_v1mz): ... this ...
	(insn_v2mz): ... and this.  Replace (const_int 0) with the vector
	equivalent.

From-SVN: r197145
2013-03-27 06:33:37 +00:00
GCC Administrator 3c22b04548 Daily bump.
From-SVN: r197127
2013-03-27 00:16:35 +00:00
Eric Botcazou 5ba846a105 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
From-SVN: r197122
2013-03-26 22:06:01 +00:00
Richard Biener 5ab9bc86b1 backport: [multiple changes]
2013-03-26  Richard Biener  <rguenther@suse.de>

        Backport from mainline
        2013-03-13  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/56608
	* tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
	calls when vectorizing basic-blocks.

	* gcc.dg/vect/fast-math-bb-slp-call-3.c: New testcase.

        2013-03-05  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/56270
	* tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
	of loads after scheduling an SLP instance.

	* gcc.dg/vect/slp-38.c: New testcase.

From-SVN: r197096
2013-03-26 10:12:52 +00:00
Walter Lee dd5e38f6ee backport: tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
Backport from mainline:
	2013-03-26  Walter Lee  <walt@tilera.com>

	* config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
	* config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.

From-SVN: r197093
2013-03-26 06:36:20 +00:00
Walter Lee b4082d2ef4 backport: tilegx-builtins.h (enum tilegx_builtin): Add TILEGX_INSN_SHUFFLEBYTES1.
Backport from mainline:
	2013-03-25  Walter Lee  <walt@tilera.com>

	* config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
	TILEGX_INSN_SHUFFLEBYTES1.
	* config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
	shufflebytes1.
	(tilegx_builtins): Ditto.
	* config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.

From-SVN: r197092
2013-03-26 06:34:27 +00:00
Walter Lee 1fce2f18ba backport: tilegx.c (expand_set_cint64_one_inst): Inline tests for constraint J, K, N, P.
Backport from mainline:
	2013-03-25  Walter Lee  <walt@tilera.com>

	* config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
	tests for constraint J, K, N, P.

From-SVN: r197091
2013-03-26 06:30:55 +00:00
Walter Lee 27220b9241 backport: tilegx.c (tilegx_asm_preferred_eh_data_format): Use indirect/pcrel encoding.
Backport from mainline:
	2013-03-25  Walter Lee  <walt@tilera.com>

	* config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
	Use indirect/pcrel encoding.
	* config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
	Ditto.

From-SVN: r197090
2013-03-26 06:27:55 +00:00
GCC Administrator e32b67f280 Daily bump.
From-SVN: r197076
2013-03-26 00:16:10 +00:00
Oleg Endo 7f897ab5b7 backport: re PR target/49880 (SuperH: ICE when -m4 is used with -mdiv=call-div1)
Backport from mainline:
	2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
	2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>

	PR target/49880
	* config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
	(musermode): Convert to Var(TARGET_USERMODE).
	* config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
	MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
	* config/sh/sh.c (sh_option_override): Use
	TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
	* config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
	condition.
	(udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
	TARGET_SH4.
	(udivsi3_i4_single, divsi3_i4_single): Use
	TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
	* config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
	(SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
	* config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
	(SUBTARGET_OVERRIDE_OPTIONS): New.

	Backport from mainline:
	2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>

	PR target/49880
	* config/sh/lib1funcs.S (sdivsi3_i4, udivsi3_i4): Enable for SH2A.
	(sdivsi3, udivsi3): Remove SH4 check and always compile these functions.

	Backport from mainline:
	2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>

	PR target/49880
	* gcc.target/sh/pr49880-1.c: New.
	* gcc.target/sh/pr49880-2.c: New.
	* gcc.target/sh/pr49880-3.c: New.
	* gcc.target/sh/pr49880-4.c: New.
	* gcc.target/sh/pr49880-5.c: New.

From-SVN: r197071
2013-03-25 22:55:56 +00:00
Oleg Endo 25701b138c backport: t-sh (MULTILIB_MATCHES): Match m2a-single-only to m2a-single instead of m2e.
Backport from mainline:
	2012-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
	to m2a-single instead of m2e.

From-SVN: r197070
2013-03-25 22:13:49 +00:00
GCC Administrator 696dcb3e01 Daily bump.
From-SVN: r197027
2013-03-25 00:16:25 +00:00
GCC Administrator 4b513c6483 Daily bump.
From-SVN: r197014
2013-03-24 00:16:35 +00:00
Jason Merrill 1989df72f2 re PR c++/54277 (Template class member referred to with implicit this inside lambda is incorrectly const-qualified)
PR c++/54277
	* semantics.c (lambda_capture_field_type): Don't build a
	magic decltype for pointer types.
	(lambda_proxy_type): Likewise.
	(finish_non_static_data_member): Get the quals from
	the object.

From-SVN: r197009
2013-03-23 12:55:50 -04:00
Eric Botcazou 150085e5ca Add missing PR number
From-SVN: r197001
2013-03-23 08:38:50 +00:00
Jason Merrill 0600d3dd70 re PR c++/56646 (ICE: in cp_parser_late_return_type_opt, at cp/parser.c:16970)
PR c++/56646
	* parser.c (cp_parser_late_return_type_opt): Save and restore
	current_class_ptr/ref.

From-SVN: r197000
2013-03-23 01:01:12 -04:00
H.J. Lu f91f7e7ff9 Define ix86_args only if USED_FOR_TARGET isn't defined
* config/i386/i386.h (ix86_args): Define only if USED_FOR_TARGET
	isn't defined.

From-SVN: r196999
2013-03-22 19:23:44 -07:00
GCC Administrator 1d96e67ed7 Daily bump.
From-SVN: r196987
2013-03-23 00:16:17 +00:00
H.J. Lu 29c2674945 Set callee_pass_avx256_p before emitting call instruction
gcc/

	PR target/56560
	* config/i386/i386.c (init_cumulative_args): Also set
	cum->callee_return_avx256_p.
	(ix86_function_arg): Set cum->callee_pass_avx256_p.  Set
	cfun->machine->callee_pass_avx256_p only when MODE == VOIDmode.

	* config/i386/i386.h (ix86_args): Add callee_pass_avx256_p and
	callee_return_avx256_p.

gcc/

	PR target/56560
	* gcc.target/i386/pr56560.c: New file.

From-SVN: r196976
2013-03-22 09:36:22 -07:00
GCC Administrator fa4f26d34c Daily bump.
From-SVN: r196894
2013-03-22 00:16:35 +00:00
GCC Administrator 5937505c0d Daily bump.
From-SVN: r196845
2013-03-21 00:16:35 +00:00
Rainer Orth 85beaba674 Fix handling of dummy types for -fdump-go-spec
Backport from mainline:
	2012-12-04  Ian Lance Taylor  <iant@google.com>

	* godump.c (find_dummy_types): Output a dummy type if we couldn't
	output the real type.

From-SVN: r196822
2013-03-20 11:53:40 +00:00
Jack Howarth 71fe92500e re PR bootstrap/56258 (Please upgrade doc/*.texi to the latest texinfo package(s))
2013-03-20  Jack Howarth  <howarth@bromo.med.uc.edu>

	PR bootstrap/56258
	* doc/generic.texi (POINTER_PLUS_EXPR): Use @item instead of @itemx.
	(PLUS_EXPR): Likewise.
	* doc/cppopts.texi (--help): Likewise.
	* doc/invoke.texi (-fenable-@var{kind}-@var{pass}): Likewise.
	(-fdump-rtl-cprop_hardreg): Likewise.
	(-fdump-rtl-csa): Likewise.
	(-fdump-rtl-dce): Likewise.
	(-fdump-rtl-dbr): Likewise.
	(-fdump-rtl-into_cfglayout): Likewise.
	(-fdump-rtl-outof_cfglayout): Likewise.

From-SVN: r196819
2013-03-20 11:06:35 +00:00
GCC Administrator 3bd9650230 Daily bump.
From-SVN: r196802
2013-03-20 00:16:34 +00:00
GCC Administrator f347b01f1f Daily bump.
From-SVN: r196786
2013-03-19 09:20:26 +00:00
Richard Earnshaw 6ae9a80aa6 re PR target/56470 (ICE output_operand: invalid shift operand)
PR target/56470
	* arm.c (shift_op): Validate RTL pattern on the fly.
	(arm_print_operand, case 'S'): Don't use shift_operator to validate
	the RTL.

From-SVN: r196780
2013-03-18 11:52:08 +00:00
GCC Administrator 9251ee6337 Daily bump.
From-SVN: r196760
2013-03-18 00:20:52 +00:00
GCC Administrator c3346ce5aa Daily bump.
From-SVN: r196719
2013-03-17 00:19:41 +00:00
Jonathan Wakely ccfde0e23f re PR libstdc++/56468 (Clang exposes bug with unexpected forward-declaration of type_info)
PR libstdc++/56468
	* libsupc++/exception_ptr.h (type_info): Declare.

From-SVN: r196711
2013-03-16 20:22:40 +00:00
Jonathan Wakely 1b1013f3f8 re PR libstdc++/56002 ([C++11] allow generic locks to be used without requiring plattform support for threads)
PR libstdc++/56002
	* include/std/mutex (lock_guard, unique_lock, lock): Define without
	depending on _GLIBCXX_HAS_GTHREADS.
	* testsuite/30_threads/lock_guard/cons/1.cc: Run on all targets.

From-SVN: r196710
2013-03-16 20:22:30 +00:00
GCC Administrator a76dc25151 Daily bump.
From-SVN: r196693
2013-03-16 00:17:29 +00:00
Tobias Burnus 548ea77d24 re PR fortran/56615 (Wrong code with TRANSFER of arrays of character with stride -1)
2013-03-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56615
        * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Pack arrays
        if they are not simply contiguous.

2013-03-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56615
        * gfortran.dg/transfer_intrinsic_5.f90: New.

From-SVN: r196676
2013-03-15 13:05:45 +01:00
GCC Administrator d682fb25e2 Daily bump.
From-SVN: r196668
2013-03-15 00:18:35 +00:00
Seth LaForge 10f38bada9 re PR target/56351 (ARM Big-Endian: storing local double to packed variable causes corruption)
PR target/56351
	Backport from mainline
	2012-10-22  Julian Brown  <julian@codesourcery.com>

	* config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing
	VFP D registers in big-endian mode.

From-SVN: r196664
2013-03-14 18:52:18 +00:00
Jason Merrill a4c0821aa4 re PR c++/56614 (error: default argument 'std::vector<E>(std::initializer_list<E>{((const E*)(& ._0)), 1u}, (*(const std::allocator<E>*)(& std::allocator<E>())))' uses local variable '._0')
PR c++/56614
	* decl.c (local_variable_p_walkfn): Check DECL_ARTIFICIAL again.

From-SVN: r196662
2013-03-14 13:34:55 -04:00
Jakub Jelinek c2bb4db4af re PR c++/56403 (internal compiler error: in build_zero_init_1, at cp/init.c:279)
PR c++/56403
	* init.c (build_zero_init_1): Use RECORD_OR_UNION_CODE_P instead
	of CLASS_TYPE_P.

	* g++.dg/torture/pr56403.C: New test.

From-SVN: r196661
2013-03-14 12:12:37 -04:00
GCC Administrator 3af4abc37d Daily bump.
From-SVN: r196644
2013-03-14 00:17:26 +00:00
Paul Thomas 4c597d6afc re PR fortran/56575 (An invalid OO code causes ICE)
2013-03-13  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/56575
	* expr.c (gfc_default_initializer): Check that a class declared
	type has any components.
	* resolve.c (resolve_fl_derived0): On failing the test for C437
	set the type to BT_UNKNOWN to prevent repeat error messages.

2013-03-13  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/56575
	* gfortran.dg/class_56.f90: New test.

From-SVN: r196627
2013-03-13 05:32:07 +00:00
GCC Administrator 0716306310 Daily bump.
From-SVN: r196624
2013-03-13 00:19:05 +00:00
GCC Administrator dec694c036 Daily bump.
From-SVN: r196606
2013-03-12 00:18:29 +00:00
GCC Administrator 3402f93d86 Daily bump.
From-SVN: r196586
2013-03-11 00:18:04 +00:00
Paul Thomas ceca62b8bf re PR fortran/55362 (ICE with size() on character pointer)
2013-03-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/55362
	* check.c (array_check): It is an error if a procedure is
	passed.

2013-03-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/55362
	* gfortran.dg/intrinsic_size_4.f90 : New test.

From-SVN: r196582
2013-03-10 18:34:24 +00:00
GCC Administrator 66ee448c46 Daily bump.
From-SVN: r196578
2013-03-10 00:18:31 +00:00
Paolo Carlini 74fe618fd6 re PR c++/56534 (ICE Segfault on invalid code in check_elaborated_type_specifier)
/cp
2013-03-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/56534
	* parser.c (cp_parser_elaborated_type_specifier): Don't call
	check_elaborated_type_specifier when TREE_CODE (decl) != TYPE_DECL.
	* decl.c (check_elaborated_type_specifier): Tidy.

/testsuite
2013-03-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/56534
	* g++.dg/template/crash115.C: New.

From-SVN: r196573
2013-03-09 11:48:53 +00:00
François Dumont 7347faee39 vector.tcc (vector<>operator=(const vector<>&): Reset pointers after deallocation when memory can be reused.
2013-03-09  François Dumont  <fdumont@gcc.gnu.org>

	* include/bits/vector.tcc (vector<>operator=(const vector<>&):
	Reset pointers after deallocation when memory can be reused.
	* testsuite/23_containers/vector/allocator/minimal.cc: Insert
	elements to really challenge C++11 allocator integration.
	* testsuite/23_containers/vector/allocator/copy.cc: Likewise.
	* testsuite/23_containers/vector/allocator/copy_assign.cc:
	Likewise.
	* testsuite/23_containers/vector/allocator/move_assign.cc:
	Likewise.
	* testsuite/23_containers/vector/allocator/swap.cc: Likewise and
	swap vector back before checks on memory/personality mapping are
	performed.

From-SVN: r196571
2013-03-09 10:09:51 +00:00
GCC Administrator c1b4ddab94 Daily bump.
From-SVN: r196566
2013-03-09 00:18:38 +00:00
Cesar Strauss 877b3ee76c re PR ada/52123 (gcc bootstrap with ada fails on mingw target)
PR ada/52123
	* seh_init.c (Raise_From_Signal_Handler): Declare as no-return.
	(__gnat_SEH_error_handler): Likewise.  Remove final return.

From-SVN: r196537
2013-03-08 08:04:22 +00:00
Joey Ye 6f2d39a4d6 013-03-08 Joey Ye <joey.ye@arm.com>
Backport from mainline
    2013-03-06  Joey Ye  <joey.ye@arm.com>

    PR lto/50293
    * gcc.c (convert_white_space): New function.
    (main): Handles white space in function name.

From-SVN: r196534
2013-03-08 07:25:09 +00:00
GCC Administrator e77234111f Daily bump.
From-SVN: r196530
2013-03-08 00:18:43 +00:00
Joel Sherrill 4400610ca3 ChangeLog: Correct date to when committed not when submitted.
2013-03-06  Joel Sherrill <joel.sherrill@oarcorp.com>

	* ChangeLog: Correct date to when committed not when submitted.

From-SVN: r196521
2013-03-07 15:15:33 +00:00
GCC Administrator 5dc2d54186 Daily bump.
From-SVN: r196515
2013-03-07 00:18:32 +00:00
Oleg Endo 3a1548e889 backport: re PR target/56529 ([SH] Calls to __sdivsi3_i4i and __udivsi3_i4i are generated on SH2)
Backport from mainline
	2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>

	PR target/56529
	* config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
	instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
	to SH_DIV_CALL_TABLE for TARGET_SH2.
	* config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
	list.
	* doc/invoke.texi (SH options): Use table for mdiv= option.  Document
	mdiv= call-div1, call-fp, call-table options.


	Backport from mainline.
	2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>

	PR target/56529
	* config/sh/lib1funcs.S (udivsi3_i4i, sdivsi3_i4i): Add __SH2A__ to
	inclusion list.

From-SVN: r196510
2013-03-06 22:54:11 +00:00
Sebastian Huber 12910fd629 config.host (arm*-*-rtemself*): New.
2013-02-22  Sebastian Huber <sebastian.huber@embedded-brains.de>

	* config.host (arm*-*-rtemself*): New.
	(arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
	"arm*-*-rtemseabi*" to "arm*-*-rtems*".

From-SVN: r196503
2013-03-06 17:42:45 +00:00
Sebastian Huber 5463f07018 config.gcc (arm*-*-rtemself*): New.
2013-02-22  Sebastian Huber <sebastian.huber@embedded-brains.de>

	* config.gcc (arm*-*-rtemself*): New.
	(arm*-*-rtems*): Removed.
	(arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
	"arm*-*-rtemseabi*" to "arm*-*-rtems*".

From-SVN: r196502
2013-03-06 17:41:52 +00:00
Jakub Jelinek 6457288eb6 re PR c++/56543 (ICE on valid code in copy_node_stat)
PR c++/56543
	* tree.c (strip_typedefs): Don't copy args if they are NULL.

	* g++.dg/template/typename20.C: New test.

From-SVN: r196492
2013-03-06 16:27:13 +01:00
GCC Administrator 31c825fe96 Daily bump.
From-SVN: r196482
2013-03-06 00:18:57 +00:00
GCC Administrator d79c1c6ae4 Daily bump.
From-SVN: r196447
2013-03-05 00:17:49 +00:00
GCC Administrator f6eb8e2400 Daily bump.
From-SVN: r196421
2013-03-04 00:18:11 +00:00
GCC Administrator 91da45c04c Daily bump.
From-SVN: r196409
2013-03-03 00:18:28 +00:00
GCC Administrator c5a80672b6 Daily bump.
From-SVN: r196402
2013-03-02 00:18:28 +00:00
Richard Biener 69c6025925 backport: re PR middle-end/55481 (-O2 generates a wrong-code infinite loop in C++Benchmark's simple_types_constant_folding int8 xor test)
2013-03-01  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2012-12-12  Zdenek Dvorak  <ook@ucw.cz>

	PR tree-optimization/55481
	* tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fall
	back to general rewriting if we cannot leave an original biv
	definition alone.

	* gcc.dg/torture/pr55481.c: New testcase.
	* gcc.dg/torture/pr56488.c: Likewise.

From-SVN: r196379
2013-03-01 13:55:11 +00:00
Richard Biener a6a1912e80 backport: re PR middle-end/52888 (Unable to inline function pointer call with inexact signature match)
2013-03-01  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2012-04-10  Richard Guenther  <rguenther@suse.de>
 
	PR middle-end/52888
	* gimple-low.c (gimple_check_call_args): Properly account for
	compatible aggregate types.

From-SVN: r196378
2013-03-01 12:46:12 +00:00
GCC Administrator b6b9ce4128 Daily bump.
From-SVN: r196364
2013-03-01 00:19:13 +00:00
GCC Administrator 2e9a62e7fe Daily bump.
From-SVN: r196327
2013-02-28 00:17:22 +00:00
Jonathan Wakely 0809a47c8e re PR libstdc++/56012 ([C++11] Narrowing conversion in atomic_flag)
PR libstdc++/56012
	* include/bits/atomic_base.h (atomic_flag): Fix narrowing conversion.
	* testsuite/29_atomics/atomic/operators/56012.cc: New.

	PR libstdc++/56011
	* include/std/atomic (atomic<bool>::operator=(bool) volatile): Add
	missing overload.
	* testsuite/29_atomics/atomic/operators/56011.cc: New.

From-SVN: r196301
2013-02-27 00:57:36 +00:00
GCC Administrator db816ac323 Daily bump.
From-SVN: r196299
2013-02-27 00:18:03 +00:00
Nick Clifton 2e6067a8f7 re PR target/56453 (Gcc segmentation fault building argz_add.c for xcompiler newlib for fr30-elf)
PR target/56453
	Import this patch from the mainline:

	2012-08-17  Nick Clifton  <nickc@redhat.com>

	* config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
	(branch_true): Likewise.
	(branch_false): Likewise.

From-SVN: r196292
2013-02-26 14:58:17 +00:00
Jakub Jelinek 19b2ec2951 re PR middle-end/56443 (internal compiler error: verify_gimple failed at -O[1-2] -ftree-vectorize)
PR tree-optimization/56443
	* tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
	overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
	to type_for_mode langhook.

	* gcc.dg/torture/pr56443.c: New test.

From-SVN: r196279
2013-02-26 11:29:47 +01:00
GCC Administrator af3e89f8a8 Daily bump.
From-SVN: r196272
2013-02-26 00:18:09 +00:00
GCC Administrator 2e95d6c663 Daily bump.
From-SVN: r196248
2013-02-25 00:18:18 +00:00
GCC Administrator c079292808 Daily bump.
From-SVN: r196240
2013-02-24 00:18:47 +00:00
GCC Administrator 47cef640b7 Daily bump.
From-SVN: r196235
2013-02-23 00:18:22 +00:00
Jason Merrill f4cbffbc79 re PR c++/40405 (ICE with invalid initialization of template member)
PR c++/40405
	* pt.c (push_template_decl_real): Set DECL_INTERFACE_KNOWN
	if we got the wrong number of template parms.

From-SVN: r196233
2013-02-22 17:26:20 -05:00
Jason Merrill 5637104c56 re PR c++/56395 (ICE, Segmentation fault in tsubst)
PR c++/56395
	* tree.c (strip_typedefs): Strip typedefs from TYPENAME_TYPE template
	args.

From-SVN: r196232
2013-02-22 17:26:08 -05:00
Janus Weil 4d9ea42dda re PR fortran/56385 ([OOP] ICE with allocatable function result in a procedure-pointer component)
2013-02-22  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/56385
	* trans-array.c (structure_alloc_comps): Handle procedure-pointer
	components with allocatable result.

2013-02-22  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/56385
	* gfortran.dg/proc_ptr_comp_37.f90: New.

From-SVN: r196227
2013-02-22 20:48:11 +01:00
GCC Administrator 86aa22c4d0 Daily bump.
From-SVN: r196217
2013-02-22 00:18:20 +00:00
Janne Blomqvist 1bdd16b65a Fix regression when writing formatted sequential to a pipe.
2013-02-21  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/30162
	* io/open.c (test_endfile): Call stell only if size != 0.
	* io/unix.c (raw_tell): Revert r194694.
	(raw_size): Return size field only for regular files, otherwise 0.

From-SVN: r196212
2013-02-21 22:13:04 +02:00
Jakub Jelinek 5ed118309d re PR bootstrap/56258 (Please upgrade doc/*.texi to the latest texinfo package(s))
PR bootstrap/56258
	* doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
	instead of @itemx.

	* gnat-style.texi (@title): Remove @hfill.
	* projects.texi: Avoid line wrapping inside of @pxref or
	@xref.

	* doc/cp-tools.texinfo (Virtual Machine Options): Use just
	one @gccoptlist instead of 3 separate ones.

From-SVN: r196197
2013-02-21 10:42:39 +01:00
GCC Administrator 09ac411d0c Daily bump.
From-SVN: r196190
2013-02-21 00:18:36 +00:00
Jonathan Wakely 761c9d29cc * include/std/streambuf (basic_streambuf): Fix unclosed Doxygen group.
From-SVN: r196188
2013-02-20 23:55:57 +00:00
Jonathan Wakely 23ea5360cf re PR libstdc++/55043 (issue with nesting unordered_map containing unique_ptr into vector)
PR libstdc++/55043
	* include/bits/alloc_traits.h (allocator_traits::construct): Disable
	unless construction would be well-formed.
	(__allow_copy_cons, __check_copy_constructible): Define.
	* include/bits/unordered_map.h (__check_copy_constructible): Use as
	base class so copy constructor will be deleted if appropriate.
	* include/bits/unordered_set.h: Likewise.
	* include/std/unordered_set: Include alloc_traits.h.
	* include/std/unordered_set: Likewise.
	* include/debug/unordered_map.h: Default copy and move constructors.
	* include/debug/unordered_set.h: Likewise.
	* testsuite/23_containers/unordered_map/55043.cc: Fix test.
	* testsuite/23_containers/unordered_multimap/55043.cc: Likewise.
	* testsuite/23_containers/unordered_multiset/55043.cc: Likewise.
	* testsuite/23_containers/unordered_set/55043.cc: Likewise.
	* testsuite/23_containers/unordered_map/requirements/53339.cc: XFAIL,
	cannot support incomplete types.
	* testsuite/23_containers/unordered_multimap/requirements/53339.cc:
	Likewise.
	* testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
	dg-error line number.

From-SVN: r196187
2013-02-20 23:55:48 +00:00
Eric Botcazou f9dea37f97 re PR ada/56271 (GCC build errors when building ada and using LDFLAGS)
PR ada/56271
	Backport from mainline
	2012-05-15  Olivier Hainque  <hainque@adacore.com>

	* gcc-interface/Make-lang.in (COMMON_FLAGS_TO_PASS): Use WARN_CFLAGS
	instead of trying to mimic it.

From-SVN: r196178
2013-02-20 18:24:15 +00:00
Rainer Orth ab6f72476c Clear hwcap_2 with Sun ld
Backport from mainline:
	2012-06-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.target/i386/clearcapv2.map: New file.
	* gcc.target/i386/i386.exp: Try it first before clearcap.map.

From-SVN: r196168
2013-02-20 10:02:48 +00:00
GCC Administrator b59573712e Daily bump.
From-SVN: r196160
2013-02-20 00:18:42 +00:00
Jakub Jelinek 3bd9de5476 backport: re PR tree-optimization/56350 (ICE in vectorizable_reduction, at tree-vect-loop.c:4731)
Backported from mainline
	2013-02-19  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/56350
	* tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
	if haven't found reduction or nested cycle operand, rather than
	asserting we must find it.

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

From-SVN: r196150
2013-02-19 18:30:27 +01:00
Jakub Jelinek 3aef24e456 backport: re PR c++/56381 (ICE: cc1plus: internal compiler error: in gimplify_expr, at gimplify.c:7842)
Backported from mainline
	2013-02-19  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/56381
	* tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
	to fold_build3.

From-SVN: r196149
2013-02-19 18:28:11 +01:00
Jakub Jelinek 3b1dcb5baf backport: re PR other/56245 (-fsanitize=address miscompiles GCC)
Backported from mainline
	2013-02-09  Jakub Jelinek  <jakub@redhat.com>

	PR other/56245
	* regex.c (PTR_INT_TYPE): Define.
	(EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE.

From-SVN: r196148
2013-02-19 18:26:56 +01:00
Jakub Jelinek 11ba2b86b5 backport: re PR tree-optimization/56250 (Wrong constant folding on unsigned int)
Backported from mainline
	2013-02-08  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/56250
	* fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
	if type is unsigned and code isn't MULT_EXPR.

	* gcc.c-torture/execute/pr56250.c: New test.

From-SVN: r196147
2013-02-19 18:26:04 +01:00
Jakub Jelinek 953142867a backport: re PR c++/56241 (ICE in toplev.c:332 on invalid)
Backported from mainline
	2013-02-07  Jakub Jelinek  <jakub@redhat.com>

	PR c++/56241
	* init.c (build_vec_init): Don't append NULL values into new_vec.
	(build_zero_init_1): Don't push anything into v if recursive call
	returned NULL_TREE.
	(build_value_init_noctor): Don't push anything into v if
	build_value_init call returned NULL_TREE.

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

From-SVN: r196146
2013-02-19 18:24:37 +01:00
Jakub Jelinek b09bd09166 backport: re PR c++/56239 (parse error calling operator() on parenthesized value-initialized temporary)
Backported from mainline
	2013-02-07  Jakub Jelinek  <jakub@redhat.com>
 
	PR c++/56239
	* parser.c (cp_parser_token_starts_cast_expression): Renamed to...
	(cp_parser_tokens_start_cast_expression): ... this.  Change parameter
	to cp_parser *, call cp_lexer_peek_token first.  For CPP_OPEN_PAREN,
	return true only if 2nd token isn't CPP_CLOSE_PAREN.
	(cp_parser_cast_expression): Adjust caller.

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

From-SVN: r196145
2013-02-19 18:22:43 +01:00
Jakub Jelinek 8dfc298e5f backport: re PR c++/56237 (ICE in lang_* check: failed in push_local_name, at cp/decl.c:924)
Backported from mainline
	2013-02-07  Jakub Jelinek  <jakub@redhat.com>

	PR c++/56237
	* decl.c (push_local_name): Look at DECL_DISCRIMINATOR (t)
	only if DECL_DISCRIMINATOR_SET_P (t) rather than just
	DECL_LANG_SPECIFIC (t).

	* g++.dg/abi/mangle61.C: New test.

From-SVN: r196142
2013-02-19 18:21:08 +01:00
Jakub Jelinek 348cd80daf backport: re PR c++/56217 (ICE: OpenMP: when combining shared() and a move constructor)
Backported from mainline
	2013-02-06  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/56217
	* omp-low.c (use_pointer_for_field): Return false if
	lower_send_shared_vars doesn't generate any copy-out code.

	* g++.dg/gomp/pr56217.C: New test.

	* testsuite/libgomp.c++/pr56217.C: New test.

From-SVN: r196141
2013-02-19 18:19:36 +01:00
Jakub Jelinek fdd493a46c backport: re PR tree-optimization/55110 (Internal compiler error in vectorizable_reduction, at tree-vect-loop.c:4633)
Backported from mainline
	2012-11-27  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/55110
	* tree-vect-loop.c (vectorizable_reduction): Don't assert
	that STMT_VINFO_RELATED_STMT of orig_stmt is stmt.

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

From-SVN: r196140
2013-02-19 18:15:53 +01:00
GCC Administrator 72709b5e53 Daily bump.
From-SVN: r196131
2013-02-19 00:18:40 +00:00
Jonathan Wakely 4b662153f4 functional (mem_fn): Qualify to prevent ADL.
* include/std/functional (mem_fn): Qualify to prevent ADL.
	* testsuite/20_util/function_objects/mem_fn/adl.cc: New.

From-SVN: r196128
2013-02-18 22:51:23 +00:00
Jonathan Wakely a4e7f7b002 hashtable.h: Improve comments.
* include/bits/hashtable.h: Improve comments.
	* include/bits/hashtable_policy.h: Likewise.

From-SVN: r196127
2013-02-18 22:51:15 +00:00
Richard Biener 3702deb0cf revert: [multiple changes]
2013-02-18  Richard Biener  <rguenther@suse.de>

	Revert
	2013-02-04  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2012-07-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53844
	* tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
	the loop virtual PHI.

	* g++.dg/tree-ssa/pr53844.C: New testcase.

From-SVN: r196120
2013-02-18 13:46:37 +00:00
GCC Administrator d2d6105578 Daily bump.
From-SVN: r196114
2013-02-18 00:18:03 +00:00
Tobias Burnus 8547ec47a3 backport: re PR fortran/53537 (Explicit IMPORT of renamed USE-associated symbol fails)
2013-02-17  Tobias Burnus  <burnus@net-b.de>
	    Mikael Morin  <mikael@gcc.gnu.org>

	Backport from trunk
	2013-01-28  Tobias Burnus  <burnus@net-b.de>
		    Mikael Morin  <mikael@gcc.gnu.org>

	PR fortran/53537
	* symbol.c (gfc_find_sym_tree): Don't look for the symbol outside an
	interface block.
	(gfc_get_ha_symtree): Let gfc_find_sym_tree lookup the parent namespace.
	* decl.c (gfc_match_data_decl): Ditto.
	(variable_decl): Remove undeclared type error.
	(gfc_match_import): Use renamed instead of original name.

2013-02-17  Tobias Burnus  <burnus@net-b.de>
	    Mikael Morin  <mikael@gcc.gnu.org>

	Backport from trunk
	2013-01-28  Tobias Burnus  <burnus@net-b.de>
		    Mikael Morin  <mikael@gcc.gnu.org>

	PR fortran/53537
	* gfortran.dg/import2.f90: Adjust undeclared type error messages.
	* gfortran.dg/import8.f90: Likewise.
	* gfortran.dg/interface_derived_type_1.f90: Likewise.
	* gfortran.dg/import10.f90: New test.
	* gfortran.dg/import11.f90: Likewise


Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>

From-SVN: r196112
2013-02-17 22:59:52 +00:00
GCC Administrator 7b1a118b6e Daily bump.
From-SVN: r196106
2013-02-17 00:21:55 +00:00
Jason Merrill ed28187bd3 re PR c++/54276 (Lambda in a Template Function Undefined Reference to local static)
PR c++/54276
	* semantics.c (finish_id_expression): Also return the identifier
	for an outer local static.

From-SVN: r196101
2013-02-15 21:07:55 -05:00
GCC Administrator 6931995e09 Daily bump.
From-SVN: r196097
2013-02-16 00:18:15 +00:00
Jason Merrill 0cc6dbf95a re PR c++/52026 (Constexpr Variable Appears Uninitialized in Lambda)
PR c++/52026
	* semantics.c (finish_id_expression): In a template, return
	the identifier for a constant variable.

From-SVN: r196087
2013-02-15 13:32:12 -05:00
Jason Merrill 3d6122bb77 re PR c++/55710 ([C++11] Linkage errors with lambdas)
PR c++/55710
	* semantics.c (maybe_add_lambda_conv_op): Mark static thunk
	TREE_USED.

From-SVN: r196086
2013-02-15 13:31:52 -05:00
Jason Merrill b29bf57c7f re PR c++/56135 ([c++11] this incorrectly captured as null in template member function)
PR c++/56135
	* pt.c (tsubst_copy_and_build): Don't forget any new
	captures that arose from use of dependent names.

From-SVN: r196085
2013-02-15 13:31:28 -05:00
Tobias Burnus 018c338aa1 re PR fortran/56318 (Wrong result with MATMUL of PARAMETER)
2013-02-15  Tobias Burnus  <burnus@net-b.de>
            Mikael Morin  <mikael@gcc.gnu.org>

        PR fortran/56318
        * simplify.c (gfc_simplify_matmul): Fix result shape
        and matmul result.

2013-02-15  Tobias Burnus  <burnus@net-b.de>

        PR fortran/56318
        * gcc/testsuite/gfortran.dg/matmul_9.f90: New.


Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>

From-SVN: r196078
2013-02-15 15:20:22 +01:00
GCC Administrator da61d122c5 Daily bump.
From-SVN: r196062
2013-02-15 00:18:32 +00:00
Rainer Emrich be409c7c06 re PR ada/52123 (gcc bootstrap with ada fails on mingw target)
2013-02-14  Rainer Emrich  <rainer@emrich-ebersheim.de>

        PR target/52123
        * adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via
        SECURITY_DESCRIPTOR *.
        (__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE.
        (__gnat_portable_spawn): Fix cast to char* const*.
        (add_handle): Cast from pointer via void **.
        (add_handle): Cast from pointer via int *.
        (__gnat_locate_exec_on_path): Cast from pointer via TCHAR *.
        (__gnat_locate_exec_on_path): Cast from pointer via char *.
        * initialize.c (append_arg): Cast from pointer via LPWSTR.
        (__gnat_initialize): Cast from pointer via LPWSTR.
        * seh_init.c (__gnat_SEH_error_handler): Cast from pointer via FARPROC.
        * tracebak.c: Cast from pointer via FARPROC.

From-SVN: r196046
2013-02-14 09:45:09 +01:00
GCC Administrator 99dd6ee0bc Daily bump.
From-SVN: r196038
2013-02-14 00:18:43 +00:00
David S. Miller 4041e96e6f We should not strip subregs of non-scalars during shift expansion.
* expmed.c (expand_shift_1): Only strip scalar integer subregs.

From-SVN: r196028
2013-02-13 12:26:51 -08:00
Tobias Burnus 933ff1d763 backport: re PR fortran/55852 (internal compiler error: in gfc_build_intrinsic_call, at fortran/expr.c:4647)
2012-02-13   Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2012-01-09  Uros Bizjak  <ubizjak@gmail.com>

        PR fortran/55852
        * gfortran.dg/intrinsic_size_3.f90: Make scan-tree-dump-times
        number matching more robust.

From-SVN: r196016
2013-02-13 16:08:59 +01:00
Kai Tietz 252cfd09b9 Fix typo in ChangeLog
From-SVN: r196006
2013-02-13 11:31:10 +01:00
Kai Tietz 6e25f8b210 re PR target/52122 (incorrect ln -s replacement for mingw like targets in configure files)
PR target/52122
* Makefile.in (LN_S_RECUSIVE): New.
(adainclude, adalib): Use LN_S_RECURSIVE for copy.

From-SVN: r196003
2013-02-13 11:20:30 +01:00
Kai Tietz 0eda4821b1 Revert rev. 195981
From-SVN: r196000
2013-02-13 10:59:43 +01:00
GCC Administrator d7ea6052fe Daily bump.
From-SVN: r195994
2013-02-13 00:18:16 +00:00
Jason Merrill 8f4d6ccba3 re PR c++/56291 (ICE for C++11 in output_constructor_regular_field, at varasm.c:4821)
PR c++/56291
	* semantics.c (sort_constexpr_mem_initializers): Handle
	vptr out of order.

From-SVN: r195987
2013-02-12 12:40:32 -05:00
Kai Tietz 24d1acdadd re PR target/52122 (incorrect ln -s replacement for mingw like targets in configure files)
PR target/52122
        * Makefile.in (LN_S_RECUSIVE): New.
        (adainclude, adalib): Use LN_S_RECURSIVE for copy.

From-SVN: r195981
2013-02-12 16:36:56 +01:00
GCC Administrator ded6154614 Daily bump.
From-SVN: r195964
2013-02-12 00:18:25 +00:00
Uros Bizjak 620844fc5c backport: re PR rtl-optimization/56275 (ICE in simplify_subreg, at simplify-rtx.c:5261 with vector code.)
Backport from mainline
	2013-02-11  Uros Bizjak  <ubizjak@gmail.com>

	PR rtl-optimization/56275
	* simplify-rtx.c (avoid_constant_pool_reference): Check that
	offset is non-negative and less than cmode size before
	calling simplify_subreg.

testsuite/ChangeLog:

	Backport from mainline
	2013-02-11  Uros Bizjak  <ubizjak@gmail.com>

	PR rtl-optimization/56275
	* gcc.dg/pr56275.c: New test.

From-SVN: r195946
2013-02-11 18:27:30 +01:00
Jason Merrill 47fc639ae2 re PR c++/56268 (C++11 ICE with boost multi-precision and boost variant during assignment)
PR c++/56268
	* semantics.c (classtype_has_nothrow_assign_or_copy_p): Call
	maybe_instantiate_noexcept.

From-SVN: r195945
2013-02-11 11:21:10 -05:00
GCC Administrator 6de2a9bf36 Daily bump.
From-SVN: r195933
2013-02-11 00:18:36 +00:00
GCC Administrator 7e54a2f3b1 Daily bump.
From-SVN: r195929
2013-02-10 00:18:05 +00:00
Jason Merrill 510f7c527c re PR c++/56247 (internal compiler error: in tsubst_copy, at cp/pt.c:12131)
PR c++/56247
	* pt.c (eq_specializations): Set comparing_specializations.
	* tree.c (cp_tree_equal): Check it.
	* cp-tree.h: Declare it.

From-SVN: r195923
2013-02-09 15:47:24 -05:00
Uros Bizjak 48b5d6630b lto.c: Include output.h.
* lto.c: Include output.h.

From-SVN: r195914
2013-02-09 10:40:08 +01:00
Uros Bizjak 5424afe160 backport: sse.md (FMAMODEM): New mode iterator.
Backport from mainline
	2013-02-08  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/sse.md (FMAMODEM): New mode iterator.
	(fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
	mode iterator. Do not use TARGET_SSE_MATH in insn constraint.

	2013-02-08  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
	when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
	* config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.

From-SVN: r195912
2013-02-09 07:58:54 +01:00
GCC Administrator 870c10f2dc Daily bump.
From-SVN: r195908
2013-02-09 00:18:26 +00:00
Michael Meissner 51a3348a21 re PR target/56043 (ICE in rs6000_builtin_vectorized_libmass for vsx-mass-1.c)
[gcc]
2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/56043
	* config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
	If there is no implicit builtin declaration, just return NULL.

[gcc/testsuite]
2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/56043
	* gcc.target/powerpc/vsx-mass-1.c: Only run this test on
	powerpc*-*-linux*.

From-SVN: r195899
2013-02-08 19:46:52 +00:00
David Edelsohn 9d9555437c backport: rs6000.c (rs6000_option_override_internal): Clear MASK_VSX from set_masks if OS_MISSING_ALTIVEC.
2013-02-08  David Edelsohn  <dje.gcc@gmail.com>
            Michael Meissner  <meissner@linux.vnet.ibm.com>

        Backport from mainline
        * config/rs6000/rs6000.c (rs6000_option_override_internal): Clear
        MASK_VSX from set_masks if OS_MISSING_ALTIVEC.

Co-Authored-By: Michael Meissner <meissner@linux.vnet.ibm.com>

From-SVN: r195887
2013-02-08 09:41:43 -05:00
GCC Administrator efc3f56d0d Daily bump.
From-SVN: r195873
2013-02-08 00:17:44 +00:00
David S. Miller e437384000 Fix variable tracking for leaf functions on sparc.
* dwarf2out.c (based_loc_descr): Perform leaf register remapping
	on 'reg'.
	* var-tracking.c (vt_add_function_parameter): Test the presence of
	HAVE_window_save properly and do not remap argument registers when
	we have a leaf function.

From-SVN: r195870
2013-02-07 15:42:03 -08:00
Uros Bizjak 1fe0b701ff backport: re PR bootstrap/56227 (Bootstrap failure on MinGW building ggc-page.c)
Backport from mainline
	2013-02-07  Uros Bizjak  <ubizjak@gmail.com>

	PR bootstrap/56227
	* ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
	instead of "ll".
	* config/i386/i386.c (ix86_print_operand): Ditto.

lto/ChangeLog:

	Backport from mainline
	2013-02-07  Uros Bizjak  <ubizjak@gmail.com>

	PR bootstrap/56227
	* lto.c (lto_resolution_ready): Use %wx instead of
	HOST_WIDE_INT_PRINT_HEX_PURE in the argument to internal_error.

From-SVN: r195865
2013-02-07 20:18:27 +01:00
Simon Wright c6176f2c3a re PR target/50678 (FAIL: c52104y on x86_64-apple-darwin10)
PR target/50678
	* init.c (__darwin_major_version): New function for x86-64/Darwin.
	(__gnat_adjust_context_for_raise) [Darwin]: Disable the workaround
	on Darwin 12 and above.

From-SVN: r195863
2013-02-07 18:07:58 +00:00
Alan Modra 32ebab59f4 re PR target/53040 (nested functions may trash floating point registers)
PR target/53040
	* config/rs6000/rs6000.c (rs6000_savres_strategy): When using
	static chain, set REST_INLINE_FPRS too.

From-SVN: r195834
2013-02-07 12:09:21 +10:30
GCC Administrator f6eade0fd2 Daily bump.
From-SVN: r195831
2013-02-07 00:18:01 +00:00
David Edelsohn e25178dd99 backport: configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
Backport from mainline
        2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>

        * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
        * configure: Regenerate.

From-SVN: r195807
2013-02-06 10:23:55 -05:00
Jason Merrill 5099f36b1a re PR c++/54122 (segfault comparing enum class in lambda inside constructor of a templated class)
PR c++/54122
	* tree.c (lvalue_kind) [INDIRECT_REF]: Don't check for
	METHOD_TYPE.

From-SVN: r195806
2013-02-06 08:42:06 -05:00
GCC Administrator 155664b33d Daily bump.
From-SVN: r195776
2013-02-06 00:18:27 +00:00
Joseph Myers c62afd1d83 * eo.po: New.
From-SVN: r195773
2013-02-05 23:48:17 +00:00
David Edelsohn 9150bcec20 backport: collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY flag set.
Backport from mainline
        2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
                    Andrew Dixie  <andrewd@gentrack.com>

        * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
        flag set.

From-SVN: r195763
2013-02-05 11:41:08 -05:00
Alan Modra 2d7fcd4823 re PR libgomp/51376 (libgomp taskwait failure)
PR libgomp/51376
	PR libgomp/56073
	* task.c (GOMP_task): Revert 2011-12-09 change.
	(GOMP_taskwait): Likewise.  Instead use atomic load with acquire
	barrier to read task->children..
	(gomp_barrier_handle_tasks): ..and matching atomic store with
	release barrier here when setting parent->children to NULL.

From-SVN: r195756
2013-02-06 00:10:25 +10:30
Richard Biener be1fc7ce63 backport: re PR tree-optimization/55107 (GCC in an infinite loop in PRE)
2013-02-05  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2012-12-10  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/55107
	* tree-ssa-pre.c (struct pre_stats): Remove constified field.
	(bitmap_set_replace_value): Add gcc_unreachable.
	(do_regular_insertion): Re-write all_same handling.  Insert
	an assignment instead of a PHI in this case.
	(execute_pre): Do not record constified events.

	* gcc.dg/torture/pr55107.c: New testcase.
	* gcc.dg/tree-ssa/ssa-pre-5.c: Adjust.

From-SVN: r195755
2013-02-05 12:56:51 +00:00
Richard Biener f8d7d4b7ff re PR tree-optimization/54767 (Incorrect code generated with "-O2 -fcheck=bounds")
2013-02-05  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/54767
	* tree-vrp.c (vrp_visit_phi_node): For PHI arguments coming via
	backedges drop all symbolical range information.
	(execute_vrp): Compute backedges.

	* gfortran.fortran-torture/execute/pr54767.f90: New testcase.

From-SVN: r195754
2013-02-05 12:54:12 +00:00
GCC Administrator aad8e2e600 Daily bump.
From-SVN: r195745
2013-02-05 00:18:25 +00:00
Janis Johnson a9b565dcb6 re PR testsuite/56206 ("dg-require-effective-target arm_hard_vfp_ok" triggers many test suite errors)
PR testsuite/56206
	* lib/target-supports.exp (check_effective_target_arm_hard_vfp_ok):
	Fix typo.

From-SVN: r195725
2013-02-04 18:07:06 +00:00
Richard Biener 9a42563597 backport: [multiple changes]
2013-02-04  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2012-01-11  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/44061
	* tree-vrp.c (extract_range_basic): Compute zero as
	value-range for __builtin_constant_p of function parameters.

	* gcc.dg/pr44061.c: New testcase.

	2013-01-08  Jakub Jelinek  <jakub@redhat.com>
 
	PR middle-end/55890
	* tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_class_p.

	* gcc.dg/torture/pr55890-3.c: New test.

From-SVN: r195718
2013-02-04 15:49:18 +00:00
Richard Biener 093e572b55 backport: [multiple changes]
2013-02-04  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2012-07-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53844
	* tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
	the loop virtual PHI.

	* g++.dg/tree-ssa/pr53844.C: New testcase.

	2012-12-13  Richard Biener  <rguenther@suse.de>

	PR lto/55660
	* tree-streamer.c (record_common_node): Check that we are not
	recursively pre-loading nodes we want to skip.  Handle
	char_type_node appearing as part of va_list_type_node.

	* gcc.dg/lto/pr55660_0.c: New testcase.
	* gcc.dg/lto/pr55660_1.c: Likewise.

2013-02-04  Richard Biener  <rguenther@suse.de>

	PR middle-end/55890
	* gimple.h (gimple_call_builtin_class_p): New function.
	* gimple.c (validate_call): New function.
	(gimple_call_builtin_class_p): Likewise.
	* tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
	Use gimple_call_builtin_class_p.
	(find_func_clobbers): Likewise.
	* tree-ssa-strlen.c (adjust_last_stmt): Likewise.
	(strlen_optimize_stmt): Likewise.

	* gcc.dg/torture/pr55890-1.c: New testcase.
	* gcc.dg/torture/pr55890-2.c: Likewise.

From-SVN: r195708
2013-02-04 12:04:35 +00:00
GCC Administrator 2a2f32d780 Daily bump.
From-SVN: r195705
2013-02-04 00:19:00 +00:00
GCC Administrator d7bf4e2d9c Daily bump.
From-SVN: r195689
2013-02-03 00:19:24 +00:00
Thomas Koenig 3e946527c4 backport: re PR fortran/50627 (Error recovery: ICE in gfc_free_namespace after diagnosing missing end of construct)
2013-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

	Backport from trunk
	PR fortran/50627
	PR fortran/56054
	* decl.c (gfc_match_end):  Remove half-ready namespace
	from parent if the end of a block is missing.
	* parse.c (parse_module):  Do not put namespace into
	gsymbol on error.

2013-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

	Backport from trunk
	PR fortran/50627
	PR fortran/56054
	* gfortran.dg/block_12.f90:  New test.
	* gfortran.dg/module_error_1.f90:  New test.

From-SVN: r195687
2013-02-02 22:38:14 +00:00
GCC Administrator 40c41aee50 Daily bump.
From-SVN: r195681
2013-02-02 00:18:24 +00:00
Jakub Jelinek cba7a6d7ca backport: re PR tree-optimization/56125 (-O2 -ffast-math generates bad code when dividing a double by the square of another double.)
Backported from mainline
	2013-01-28  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/56125
	* tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
	pow(x,c) into sqrt(x) * powi(x, n/2) or
	1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
	optimizing for size.
	Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
	1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
	integer.

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

From-SVN: r195664
2013-02-01 15:17:50 +01:00
Jakub Jelinek 2a1268b573 backport: re PR middle-end/56098 (conditional write through volatile pointer produces unintended read)
Backported from mainline
	2013-01-25  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/56098
	* tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
	for stmts with volatile ops.
	(cond_store_replacement): Don't optimize if assign has volatile ops.
	(cond_if_else_store_replacement_1): Don't optimize if either
	then_assign or else_assign have volatile ops.

	* gcc.dg/pr56098-1.c: New test.

From-SVN: r195663
2013-02-01 15:16:20 +01:00
Jakub Jelinek 773e19b47b backport: re PR fortran/56052 ([OOP] ICE in omp_add_variable, at gimplify.c:5606)
Backported from mainline
	2013-01-23  Jakub Jelinek  <jakub@redhat.com>

	PR fortran/56052
	* trans-decl.c (gfc_get_symbol_decl): Set DECL_ARTIFICIAL
	and DECL_IGNORED_P on select_type_temporary and don't set
	DECL_BY_REFERENCE.

	* gfortran.dg/gomp/pr56052.f90: New test.

From-SVN: r195662
2013-02-01 15:15:21 +01:00
Jakub Jelinek a678dc1db1 backport: re PR target/49069 (ICE in gen_cstoredi4, at config/arm/arm.md:7554)
Backported from mainline
	2013-01-23  Jakub Jelinek  <jakub@redhat.com>

	PR target/49069
	* config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
	instead of cmpdi_operand for first comparison operand.
	Don't assert that comparison operands aren't both constants.

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

From-SVN: r195661
2013-02-01 15:14:11 +01:00
Jakub Jelinek ac879b8331 backport: re PR libquadmath/56072 (info page wrongly defines M_PI_2 and M_PI_4)
Backported from mainline
	2013-01-22  Jakub Jelinek  <jakub@redhat.com>

	PR libquadmath/56072
	* libquadmath.texi (M_PI_2q, M_PI_4q): Fix up description.

From-SVN: r195659
2013-02-01 15:12:29 +01:00
Jakub Jelinek daded9451f backport: re PR tree-optimization/56051 (Wrong expression evaluation)
Backported from mainline
	2013-01-21  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/56051
	* fold-const.c (fold_binary_loc): Don't fold
	X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
	a narrowing conversion, or widening conversion from signed
	to unsigned.

	* gcc.c-torture/execute/pr56051.c: New test.

From-SVN: r195658
2013-02-01 15:11:46 +01:00
Jakub Jelinek 920debdb12 backport: re PR middle-end/56015 (expand expands p[9] = COMPLEX_EXPR <-IMAGPART_EXPR <p[9]>, REALPART_EXPR <p[9]>>; incorrectly.)
Backported from mainline
	2013-01-18  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/56015
	* expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
	the case where writing real complex part of target modifies
	op1.

	* gfortran.dg/pr56015.f90: New test.

From-SVN: r195657
2013-02-01 15:10:48 +01:00
Jakub Jelinek cbe887dbb7 backport: re PR target/55940 (Incorrect code for accessing parameters with 32-bit Intel hosts)
Backported from mainline
	2013-01-15  Jakub Jelinek  <jakub@redhat.com>

	PR target/55940
	* function.c (thread_prologue_and_epilogue_insns): Always
	add crtl->drap_reg to set_up_by_prologue.set, even if
	stack_realign_drap is false.

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

From-SVN: r195656
2013-02-01 15:09:38 +01:00
Jakub Jelinek aa5c918af5 backport: re PR middle-end/55921 (Crash in verify_ssa for asm to side-steps complex pessimization)
Backported from mainline
	2013-01-10  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/55921
	* tree-complex.c (expand_complex_asm): New function.
	(expand_complex_operations_1): Call it for GIMPLE_ASM.

	* gcc.c-torture/compile/pr55921.c: New test.

From-SVN: r195655
2013-02-01 15:08:32 +01:00
Jakub Jelinek 441b3f028c backport: re PR rtl-optimization/55838 (ICE in extract_insn (unrecognizable insn) with -O -funroll-loops)
Backported from mainline
	2013-01-03  Jakub Jelinek  <jakub@redhat.com>

	PR rtl-optimization/55838
	* loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
	iv0.step, iv1.step and step.

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

From-SVN: r195654
2013-02-01 15:07:35 +01:00
Jakub Jelinek fe7309785e backport: re PR c++/55652 (ICE (segfault) with templates and structs)
Backported from mainline
	2012-12-13  Jakub Jelinek  <jakub@redhat.com>

	PR c++/55652
	* typeck2.c (merge_exception_specifiers): Don't call operand_equal_p
	if noex is NULL.

	* g++.dg/cpp0x/noexcept19.C: New test.

	2012-12-06  Jakub Jelinek  <jakub@redhat.com>

	PR c++/54207
	* except.c (build_noexcept_spec): Avoid direct comparison
	with boolean_true_node or boolean_false_node, instead use
	operand_equal_p and/or INTEGER_CST check.
	* pt.c (tsubst_exception_specification): Likewise.
	* typeck2.c (merge_exception_specifiers): Likewise.

	* g++.dg/cpp0x/noexcept18.C: New test.

From-SVN: r195653
2013-02-01 15:05:42 +01:00
Jakub Jelinek 51c5e92a52 backport: re PR c++/55542 (g++ segmentation fault)
Backported from mainline
	2012-12-01  Jakub Jelinek  <jakub@redhat.com>

	PR c++/55542
	* pt.c (make_ith_pack_parameter_name): Return NULL if
	name is NULL.
	(tsubst_decl): Call make_ith_pack_parameter_name even if
	DECL_NAME is NULL.

	* g++.dg/cpp0x/vt-55542.C: New test.

From-SVN: r195652
2013-02-01 15:03:44 +01:00
Jakub Jelinek 5712a08697 backport: re PR c++/54046 (wrong control reaches end of non-void function for switch case with throw and default)
Backported from mainline
	2012-11-23  Jakub Jelinek  <jakub@redhat.com>

	PR c++/54046
	* Makefile.in (gimple-low.o): Depend on langhooks.h.
	* gimple-low.c: Include langhooks.c.
	(block_may_fallthru): Handle TARGET_EXPR and ERROR_MARK,
	by default call lang_hooks.block_may_fallthru.
	* langhooks.h (struct lang_hooks): Add block_may_fallthru
	langhook.
	* langhooks-def.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define.
	(LANG_HOOKS_INITIALIZER): Use it.

	* cp-objcp-common.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Redefine.
	* cp-objcp-common.c (cxx_block_may_fallthru): New function.
	* cp-tree.h (cxx_block_may_fallthru): New prototype.

	* g++.dg/warn/Wreturn-type-8.C: New test.

From-SVN: r195651
2013-02-01 15:02:33 +01:00
Jakub Jelinek 76013d35b8 backport: re PR debug/55094 (ICE in maybe_record_trace_start, at dwarf2cfi.c:2224)
Backported from mainline
	2012-11-20  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/55094
	* builtins.c (expand_builtin_trap): Add REG_ARGS_SIZE note
	on the trap insn for !ACCUMULATE_OUTGOING_ARGS.
	* cfgcleanup.c (outgoing_edges_match): Don't look at debug insns
	on the first old_insns_match_p call.  For !ACCUMULATE_OUTGOING_ARGS
	fail if the last real insn doesn't have REG_ARGS_SIZE note.

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

From-SVN: r195650
2013-02-01 15:00:12 +01:00
Jakub Jelinek 369a5a74b7 backport: re PR tree-optimization/55236 (gcc.c-torture/execute/pr22493-1.c FAILs with -fPIC)
Backported from mainline
	2012-11-17  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/55236
	* fold-const.c (make_range_step) <case NEGATE_EXPR>: For -fwrapv
	and signed ARG0_TYPE, force low and high to be non-NULL.

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

From-SVN: r195649
2013-02-01 14:58:55 +01:00
Jakub Jelinek b07db5d451 backport: re PR rtl-optimization/54127 (ICE in maybe_record_trace_start with asm goto, --target=powerpc-unknown-linux-gnu)
Backported from mainline
	2012-11-13  Jakub Jelinek  <jakub@redhat.com>

	PR rtl-optimization/54127
	* cfgrtl.c (force_nonfallthru_and_redirect): When redirecting
	asm goto labels from BB_HEAD (e->dest) to target bb, decrement
	LABEL_NUSES of BB_HEAD (e->dest) and increment LABEL_NUSES of
	BB_HEAD (target) appropriately and adjust JUMP_LABEL and/or
	REG_LABEL_TARGET and REG_LABEL_OPERAND.

	* gcc.dg/torture/pr54127.c: New test.

From-SVN: r195648
2013-02-01 14:57:46 +01:00
Eric Botcazou 3a9242516d fold-const.c (make_range_step): Bail out if the range isn't testing for zero.
* fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
	range isn't testing for zero.

From-SVN: r195643
2013-02-01 10:23:36 +00:00
GCC Administrator a9d3a705dd Daily bump.
From-SVN: r195636
2013-02-01 00:18:47 +00:00
Kai Tietz 2a0415260c Correct ChangeLog's mentioned PR-number.
From-SVN: r195606
2013-01-31 09:30:35 +01:00
Kai Tietz 3fbaeb155d backport: re PR other/54620 (sha1.c has incorrect math if sizeof(size_t) is 8)
Merged from trunk
	PR other/54620
	* sha1.c (sha1_process_block):  Handle case that size_t is
	a wider-integer-scalar as a 32-bit unsigned integer.

From-SVN: r195605
2013-01-31 09:19:03 +01:00
Kai Tietz 27071671e0 Merged from trunk.
PR other/543413
	* md5.c (md5_process_block):  Handle case that size_t is
	a wider-integer-scalar a 32-bit unsigned integer.

From-SVN: r195602
2013-01-31 09:15:57 +01:00
Kai Tietz 1640f704a1 backport: re PR other/53285 (libibiberty's md5.c builds with warnings with 4.7 and trunk)
Merged from trunk.
	PR other/53285
	* md5.c (md5_finish_ctx): Declare swap_bytes.  Assign SWAP() output
	to swap_bytes, and then call memcpy to move it to ctx->buffer.

From-SVN: r195601
2013-01-31 09:14:27 +01:00
GCC Administrator 0d2e1003c4 Daily bump.
From-SVN: r195597
2013-01-31 00:18:43 +00:00
Kai Tietz 9a7dffad1f re PR other/54620 (sha1.c has incorrect math if sizeof(size_t) is 8)
2013-01-30  Kai Tietz  <ktietz@redhat.com>

	PR other/54620
	PR target/39064
	* md5.h (md5_uintptr, md5_uint32): Define as uintptr_t/uint32_t if
	stdint.h and sys/types.h headers are present.
	* sha1.h (sha1_uintptr, sha1_uint32): Likewise.

From-SVN: r195580
2013-01-30 17:56:36 +01:00
GCC Administrator 7b93f4b3fa Daily bump.
From-SVN: r195567
2013-01-30 00:18:33 +00:00
Richard Biener 7aa14fd57e re PR c/56113 (out of memory when compiling a function with many goto labels (50k > ))
2013-01-29  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/56113
	* tree-ssa-structalias.c (equiv_class_lookup): Also return
	the bitmap leader.
	(label_visit): Free duplicate bitmaps and record the leader instead.
	(perform_var_substitution): Adjust.

From-SVN: r195542
2013-01-29 14:23:48 +00:00
GCC Administrator f4adde4f61 Daily bump.
From-SVN: r195524
2013-01-29 00:18:20 +00:00
Serowk 2f450c1472 re PR target/35294 (iwmmxt intrinsics, internal compiler error)
PR target/35294
	* config/arm/arm.c (arm_expand_binop_builtin): Add new parameter.
	Fix mode checks to allow for the passing of constants in the
	second parameter.
	(arm_expand_builtin): Adjust calls to arm_expand_binop_builtin.
	Add entries in the switch statement for builtin iwmmxt vector
	shift and rotate builtins.

From-SVN: r195510
2013-01-28 15:07:41 +00:00
GCC Administrator 9846a9b978 Daily bump.
From-SVN: r195499
2013-01-28 00:18:21 +00:00
Uros Bizjak a67b7c7b12 backport: re PR target/56114 (x86_64-linux-gnu-gcc generate wrong asm instruction MOVABS for intel syntax)
Backport from mainline
	2013-01-27  Uros Bizjak  <ubizjak@gmail.com>

	PR target/56114
	* config/i386/i386.md (*movabs<mode>_1): Add square brackets around
	operand 0 in movabs insn template for -masm=intel asm alternative.
	(*movabs<mode>_2): Ditto for operand 1.

From-SVN: r195496
2013-01-27 17:03:40 +01:00
Uros Bizjak a47587a7c9 backport: re PR target/56028 (Splitting a 64-bit volatile store)
Backport from mainline
	2013-01-22  Uros Bizjak  <ubizjak@gmail.com>

	PR target/56028
	* config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
	alternative to (o,r).
	(*movdi_internal_rex64): Remove (!o,n) alternative.
	(DImode immediate->memory splitter): Remove.
	(DImode immediate->memory peephole2): Remove.
	(movtf): Enable for TARGET_64BIT || TARGET_SSE.
	(*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
	alternative to (!o,*r).
	(*movtf_internal_sse): New pattern.
	(*movxf_internal_rex64): New pattern.
	(*movxf_internal): Disable for TARGET_64BIT.
	(*movdf_internal_rex64): Remove (!o,F) alternative.

	2013-01-23  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.md (*movdf_internal_rex64): Disparage alternatives
	involving stack registers slightly.

	2013-01-24  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/constraints.md (Yf): New constraint.
	* config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
	of f constraint to conditionaly disable x87 register preferences.
	(*movdf_internal): Ditto.
	(*movsf_internal): Ditto.

	2012-01-24  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
	(*movtf_internal_rex64): Add (!o,C) alternative
	(*movxf_internal_rex64): Ditto.
	(*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.

testsuite/ChangeLog:

	Backport from mainline
	2013-01-22  Uros Bizjak  <ubizjak@gmail.com>

	PR target/56028
	* gcc.target/i386/pr56028.c: New test.

	2013-01-24  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.target/i386/movsd.c: New test.

From-SVN: r195495
2013-01-27 15:28:19 +01:00
GCC Administrator ac1ab294af Daily bump.
From-SVN: r195490
2013-01-27 00:17:57 +00:00
GCC Administrator 6a4e1b6c49 Daily bump.
From-SVN: r195484
2013-01-26 00:18:18 +00:00
Jason Merrill 3eb2a99690 re PR c++/56104 (Wrong "dereferencing type-punned pointer" warning)
PR c++/56104
	* typeck.c (get_member_function_from_ptrfunc): Don't fold
	POINTER_PLUS_EXPR.

From-SVN: r195476
2013-01-25 15:26:46 -05:00
Georg-Johann Lay 5902f057a1 invoke.texi (AVR Built-in Macros): Document __XMEGA__.
* doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.

From-SVN: r195472
2013-01-25 18:55:45 +00:00
Janis Johnson af09dd72bb backport: re PR testsuite/55994 (multiple definition or memset or strlen for builtins tests with LTO options)
Backport from mainline
	2013-01-16  Janis Johnson  <janisjo@codesourcery.com>

	PR testsuite/55994
	* gcc.c-torture/execute/builtins/builtins.exp: Add
	-Wl,--allow-multiple-definition for eabi and elf targets.

From-SVN: r195458
2013-01-25 00:26:34 +00:00
Janis Johnson 6926c990ae backport: pr51835.c: Avoid conflicts with multilib flags.
Backport from mainline
	2013-01-17  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/arm/pr51835.c: Avoid conflicts with multilib flags.
	* gcc.target/arm/pr51915.c: Likewise.
	* gcc.target/arm/pr52006.c: Likewise.
	* gcc.target/arm/pr53187.c: Likewise.

From-SVN: r195457
2013-01-25 00:25:54 +00:00
Janis Johnson aa04fc1043 backport: target-supports.exp (check_effective_target_arm_hard_vfp_ok): Return 0 if already specifying -mfloat-abi other than hard.
Backport from mainline
	2012-10-12  Janis Johnson  <janisjo@codesourcery.com>

	* lib/target-supports.exp (check_effective_target_arm_hard_vfp_ok):
	Return 0 if already specifying -mfloat-abi other than hard.

From-SVN: r195456
2013-01-25 00:25:14 +00:00
Janis Johnson fc45b0e4df backport: unsigned-extend-1.c: Omit -march option.
Backport from mainline
	2012-09-27  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/arm/unsigned-extend-1.c: Omit -march option.

From-SVN: r195455
2013-01-25 00:24:22 +00:00
Janis Johnson 59a0814d5f backport: pr42879.c: Handle big-endian.
Backport from mainline
	2012-09-26  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/arm/pr42879.c: Handle big-endian.

From-SVN: r195454
2013-01-25 00:23:49 +00:00
Janis Johnson 2027f85fdf Backport from mainline
2012-09-26  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/arm/combine-movs.c

From-SVN: r195453
2013-01-25 00:23:05 +00:00
Janis Johnson 92777c626a backport: neon-vset_lanes8.c: Fix for big-endian support.
Backport from mainline
	2012-09-11  Christophe Lyon  <christophe.lyon@linaro.org>

        * gcc.target/arm/neon-vset_lanes8.c: Fix for big-endian support.

From-SVN: r195452
2013-01-25 00:22:02 +00:00
GCC Administrator c9a2d3ac45 Daily bump.
From-SVN: r195450
2013-01-25 00:17:46 +00:00
Janus Weil 5ee5878e5d re PR fortran/56081 (Seg fault ICE on select with bad case)
2013-01-24  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/56081
	* resolve.c (resolve_select): Add argument 'select_type', reject
	non-scalar expressions.
	(resolve_select_type,resolve_code): Pass new argument to
	'resolve_select'.


2013-01-24  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/56081
	* gfortran.dg/select_8.f90: New.

From-SVN: r195447
2013-01-25 00:58:12 +01:00
Martin Jambor bbad72ed7d backport: re PR tree-optimization/55755 (Invalid VIEW_CONVERT_EXPR produced by SRA)
2013-01-24  Martin Jambor  <mjambor@suse.cz>

	Backport from mainline
	2013-01-04  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/55755
	* tree-sra.c (sra_modify_assign): Do not check that an access has no
	children when trying to avoid producing a VIEW_CONVERT_EXPR.

testsuite/
	* gcc.dg/torture/pr55755.c: New test.
	* gcc.dg/tree-ssa/sra-13.c: Likewise.
	* gcc.dg/tree-ssa/pr45144.c: Update.

From-SVN: r195425
2013-01-24 15:53:56 +01:00
Paolo Carlini 2b446b3994 re PR libstdc++/56085 (Unsafe negation in C++03 pow(complex,int))
2013-01-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/56085
	* include/std/complex (pow(const complex<>&, int)): Avoid __n
	signed overflow.

From-SVN: r195422
2013-01-24 12:21:24 +00:00
GCC Administrator 6ef3af5225 Daily bump.
From-SVN: r195416
2013-01-24 00:18:59 +00:00
Jason Merrill 9582dc4200 re PR c++/53650 (large array causes huge memory use)
PR c++/53650
	* call.c (type_has_extended_temps): Fix C++ism.

From-SVN: r195397
2013-01-22 21:48:00 -05:00
GCC Administrator 42445a3405 Daily bump.
From-SVN: r195395
2013-01-23 00:18:12 +00:00
Jason Merrill e5ec225183 re PR c++/53650 (large array causes huge memory use)
PR c++/53650
	* call.c (type_has_extended_temps): New.
	* cp-tree.h: Declare it.
	* decl.c (check_initializer): Use build_aggr_init for arrays
	if it is false.
	* init.c (build_vec_init): Avoid mixed signed/unsigned arithmetic.

From-SVN: r195380
2013-01-22 11:28:58 -05:00
Jason Merrill c2a701ec31 re PR c++/56071 (friend class template cannot access private constructor in exception-specification)
PR c++/56071
	* pt.c (maybe_instantiate_noexcept): Don't defer access checks.

From-SVN: r195379
2013-01-22 11:25:10 -05:00
Jason Merrill 4d8e986c1b re PR c++/56059 (SIGSEGV on invalid C++11 code)
PR c++/56059
	* tree.c (strip_typedefs_expr) [TREE_VEC]: Preserve non-default
	template args count.

From-SVN: r195377
2013-01-22 10:22:16 -05:00
GCC Administrator 0e89cbb2ba Daily bump.
From-SVN: r195353
2013-01-22 00:17:50 +00:00
Uros Bizjak 2104723569 backport: i386.md (enabled): Do not disable fma4 for TARGET_FMA.
Backport from mainline
	2012-01-21  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.

From-SVN: r195349
2013-01-21 20:43:33 +01:00
Uros Bizjak 1267253062 re PR rtl-optimization/56023 ([alpha] -fcompare-debug failure due to sched1 pass)
PR rtl-optimization/56023
	* haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
	dependent on debug instruction.

testsuite/ChangeLog:

	PR rtl-optimization/56023
	* gcc.dg/pr56023.c: New test.

From-SVN: r195344
2013-01-21 18:59:28 +01:00
Martin Jambor 944cb208c3 re PR tree-optimization/55264 (ICE: in ipa_make_edge_direct_to_target, at ipa-prop.c:2141 with -O2 -fno-early-inlining -fno-weak)
2013-01-21  Martin Jambor  <mjambor@suse.cz>

        PR tree-optimizations/55264
	* cgraph.c (cgraph_create_virtual_clone): Mark clones as non-virtual.
	* cgraph.h (cgraph_only_called_directly_p_or_aliased_p): Return false
	for virtual functions.
	* ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
	for virtual methods.
	* ipa.c (cgraph_remove_unreachable_nodes): Never return true for
	virtual methods before inlining is over.

testsuite/
	* g++.dg/ipa/pr55264.C: New test.

From-SVN: r195339
2013-01-21 18:02:08 +01:00
GCC Administrator cb3a18b7c7 Daily bump.
From-SVN: r195328
2013-01-21 00:18:47 +00:00
GCC Administrator 1b0325d9bd Daily bump.
From-SVN: r195316
2013-01-20 00:18:10 +00:00
GCC Administrator 43a68b5dd4 Daily bump.
From-SVN: r195308
2013-01-19 00:18:13 +00:00
GCC Administrator 6ea0e8fb72 Daily bump.
From-SVN: r195285
2013-01-18 00:18:31 +00:00
Uros Bizjak 851233aa68 backport: re PR target/55981 (std::atomic store is split in two smaller stores)
Backport from mainline
	2012-01-17  Uros Bizjak  <ubizjak@gmail.com>

	PR target/55981
	* config/i386/sync.md (atomic_store<mode>): Generate SWImode
	store through atomic_store<mode>_1.
	(atomic_store<mode>_1): Macroize insn using SWI mode iterator.

testsuite/ChangeLog:

	Backport from mainline
	2012-01-17  Uros Bizjak  <ubizjak@gmail.com>

	PR target/55981
	* gcc.target/pr55981.c: New test.

From-SVN: r195283
2013-01-17 23:51:00 +01:00
Janus Weil 238ee0875e re PR fortran/55983 (ICE in find_typebound_proc_uop, at fortran/class.c:2711)
2013-01-17  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55983
	* class.c (find_typebound_proc_uop): Check for f2k_derived instead of
	asserting it.


2013-01-17  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55983
	* gfortran.dg/class_55.f90: New.

From-SVN: r195261
2013-01-17 11:55:50 +01:00
Jonathan Wakely 15ae979c43 re PR bootstrap/52887 (Bootstrap on AIX failure: Undefined symbol: .std::function<void (std::__regex::_PatternCursor const&, std::__regex::_Results&)>::function(std::function<void (std::__regex::_PatternCursor const&, std::__regex::_Results&)> const&))
PR libstdc++/52887
	* src/c++11/regex.cc: Add instantiations for AIX.

From-SVN: r195258
2013-01-17 01:39:46 +00:00
GCC Administrator e2650546aa Daily bump.
From-SVN: r195255
2013-01-17 00:18:31 +00:00
Richard Biener 4658eb0d6f re PR middle-end/55882 (unaligned load/store : incorrect struct offset)
2013-01-16  Richard Biener  <rguenther@suse.de>

	PR middle-end/55882
	* emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
	account for bitpos when computing alignment.

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

From-SVN: r195232
2013-01-16 09:26:05 +00:00
GCC Administrator 9c67626a2b Daily bump.
From-SVN: r195222
2013-01-16 00:17:54 +00:00
Matthias Klose 16c09044ea - regenerate class files for updated copyright years
From-SVN: r195200
2013-01-15 14:08:11 +00:00
Matthias Klose ff9d82afcb Main.java: Accept -source 1.5, 1.6, 1.7.
2013-01-10  Matthias Klose <doko@ubuntu.com>

        * tools/gnu/classpath/tools/gjdoc/Main.java: Accept -source 1.5,
        1.6, 1.7.

From-SVN: r195199
2013-01-15 14:06:19 +00:00
GCC Administrator ce02e92b82 Daily bump.
From-SVN: r195183
2013-01-15 00:17:53 +00:00
Matthias Klose 3807c9930a - fix whitespace in gcc/ChangeLog entry for the multiarch backport
From-SVN: r195171
2013-01-14 18:44:26 +00:00
Georg-Johann Lay ffc6f5188a backport: re PR target/55974 ([avr] Wrong suffix for built-in defines __INT24_MAX__ and __UINT24_MAX__ with -mint8)
Backport from 2013-01-14 trunk r195169.
	PR target/55974
	* config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
	etc. to 1 and not to __flash.
	Use LL suffix for __INT24_MAX__ with -mint8.
	Use ULL suffix for __UINT24_MAX__ with -mint8.

From-SVN: r195170
2013-01-14 18:32:05 +00:00
Matthias Klose 363bc42cf0 invoke.texi: Document -print-multiarch.
2013-01-14  Matthias Klose  <doko@ubuntu.com>

	* doc/invoke.texi: Document -print-multiarch.
	* doc/install.texi: Document --enable-multiarch.
	* doc/fragments.texi: Document MULTILIB_OSDIRNAMES, MULTIARCH_DIRNAME.
	* configure.ac: Add --enable-multiarch option.
	Substitute with_cpu, with_float.
	* configure: Regenerate.
	* Makefile.in (s-mlib): Pass MULTIARCH_DIRNAME to genmultilib.
	enable_multiarch, with_cpu, with_float: New macros.
	if_multiarch: New macro, define in terms of enable_multiarch.
	* genmultilib: Add new argument for the multiarch name.
	* gcc.c (multiarch_dir): Define.
	(for_each_path): Search for multiarch suffixes.
	(driver_handle_option): Handle multiarch option.
	(do_spec_1): Pass -imultiarch if defined.
	(main): Print multiarch.
	(set_multilib_dir): Separate multilib and multiarch names
	from multilib_select.
	(print_multilib_info): Ignore multiarch names in multilib_select.
	* incpath.c (add_standard_paths): Search the multiarch include dirs.
	* cppdefault.h (default_include): Document multiarch in multilib
	member.
	* cppdefault.c: [LOCAL_INCLUDE_DIR, STANDARD_INCLUDE_DIR] Add an
        include directory for multiarch directories.
	* common.opt: New options --print-multiarch and -imultilib.

	* config.gcc <i[34567]86-*-linux* | x86_64-*-linux*> (tmake_file):
	Include i386/t-linux.
	<i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu> (tmake_file):
	Include i386/t-kfreebsd.
	<i[34567]86-*-gnu*> (tmake_file): Include i386/t-gnu.
	* config/i386/t-linux64: Add multiarch names in
	MULTILIB_OSDIRNAMES, define MULTIARCH_DIRNAME.
	* config/i386/t-gnu: New file.
	* config/i386/t-kfreebsd: Likewise.
	* config/i386/t-linux: Likewise.

	* config/sparc/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
	* config/sparc/t-linux: New file; define MULTIARCH_DIRNAME.
	* config.gcc <sparc-*-linux*> (tmake_file): Include sparc/t-linux
	for 32bit non-biarch configurations.

	* config/pa/t-linux: New file; define MULTIARCH_DIRNAME.
	* config.gcc <hppa*64*-*-linux*, hppa*-*-linux*> (tmake_file):
	Include pa/t-linux.

	* config/mips/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.

	* config/arm/t-linux-eabi: Define MULTIARCH_DIRNAME for linux target.

	* config/rs6000/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
	* config/rs6000/t-linux: New file; define MULTIARCH_DIRNAME.
	* config/rs6000/t-fprules (SOFT_FLOAT_CPUS): New macro. Add e300c2
	to the list.
	(MULTILIB_MATCHES_FLOAT): Define in terms of SOFT_FLOAT_CPUS.
	* config.gcc <powerpc-*-linux* | powerpc64-*-linux*> (tmake_file):
	Include rs6000/t-linux for 32bit non-biarch configurations.

	* config/s390/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.

	* config/m68k/t-linux: Define MULTIARCH_DIRNAME.

	* config/ia64/t-linux: New file; define MULTIARCH_DIRNAME.
	* config.gcc <ia64*-*-linux*> (tmake_file): Include ia64/t-linux.

	* config/alpha/t-linux: New file; define MULTIARCH_DIRNAME.
	* config.gcc <alpha*-*-linux*> (tmake_file): Include alpha/t-linux.

From-SVN: r195153
2013-01-14 16:32:37 +00:00
Eric Botcazou 77fd7d7410 tree-vectorizer.h (vect_get_single_scalar_iteraion_cost): Fix typo.
* tree-vectorizer.h (vect_get_single_scalar_iteraion_cost): Fix typo.
	* tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Likewise.
	(vect_estimate_min_profitable_iter): Adjust to above fix.
	* tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.

From-SVN: r195148
2013-01-14 14:59:51 +00:00
GCC Administrator 53662a44d5 Daily bump.
From-SVN: r195139
2013-01-14 00:17:35 +00:00
Janus Weil 83d323a31d re PR fortran/55072 (Missing internal_pack leads to wrong code with derived type)
2013-01-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55072
	* trans-array.c (gfc_conv_array_parameter): No packing was done for
	full arrays of derived type.


2013-01-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55072
	* gfortran.dg/internal_pack_13.f90: New test.
	* gfortran.dg/internal_pack_14.f90: New test.

From-SVN: r195135
2013-01-13 13:06:04 +01:00
Paul Thomas 97935f9854 re PR fortran/55618 (Failures with ISO_Varying_String test suite)
2013-01-13  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/55618
	* trans-expr.c (gfc_conv_procedure_call): Dereference scalar
	character function arguments to elemental procedures in
	scalarization loops.

2013-01-13  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/55618
	* gfortran.dg/elemental_scalar_args_2.f90: New test.

From-SVN: r195129
2013-01-13 07:51:26 +00:00
GCC Administrator 7737f4725a Daily bump.
From-SVN: r195127
2013-01-13 00:17:52 +00:00
GCC Administrator f22202b027 Daily bump.
From-SVN: r195122
2013-01-12 00:19:48 +00:00
Michael Meissner 9b3f13ca3b Fix typo in __builtin_ia32_packssdw256
From-SVN: r195114
2013-01-11 17:09:52 +00:00
Michael Meissner 623ff3c5c1 Fix typo in __builtin_ia32_paddb256, __builtin_ia32_pavgb256
From-SVN: r195111
2013-01-11 17:02:16 +00:00
GCC Administrator 666c84bfbb Daily bump.
From-SVN: r195101
2013-01-11 00:18:19 +00:00
GCC Administrator dfb373b5b8 Daily bump.
From-SVN: r195071
2013-01-10 00:18:23 +00:00
Jason Merrill 168a6b6688 re PR c++/55893 ([C++11] runtime segfault with static const object with virtual destructor)
PR c++/55893
	* decl.c (cp_finish_decl): Clear TREE_READONLY if the variable
	needs destruction.

From-SVN: r195063
2013-01-09 13:55:34 -05:00
Uros Bizjak a81c7e2024 backport: sse.md (*vec_interleave_highv2df): Change mode attribute of movddup insn to DF.
Backport from mainline
	2013-01-09  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/sse.md (*vec_interleave_highv2df): Change mode
	attribute of movddup insn to DF.
	(*vec_interleave_lowv2df): Ditto.
	(vec_dupv2df): Ditto.

From-SVN: r195061
2013-01-09 19:37:43 +01:00
GCC Administrator 426faab3b3 Daily bump.
From-SVN: r195042
2013-01-09 00:18:18 +00:00
Jonathan Wakely 2fd87c89d9 * doc/xml/manual/status_cxx2011.xml: Document that N3189 is missing.
From-SVN: r195037
2013-01-08 21:32:57 +00:00
Mikael Morin b836ce06ef re PR fortran/42769 ([OOP] ICE in resolve_typebound_procedure)
PR fortran/42769
	PR fortran/45836
	PR fortran/45900
	* module.c (read_module): Don't reuse local symtree if the associated
	symbol isn't exactly the one wanted.  Don't reuse local symtree if it is
	ambiguous.
	* resolve.c (resolve_call): Use symtree's name instead of symbol's to
	lookup the symtree.

	PR fortran/42769
	PR fortran/45836
	PR fortran/45900
	* gfortran.dg/use_23.f90: New test.
	* gfortran.dg/use_24.f90: New test.
	* gfortran.dg/use_25.f90: New test.
	* gfortran.dg/use_26.f90: New test.
	* gfortran.dg/use_27.f90: New test.

From-SVN: r195031
2013-01-08 19:42:38 +00:00
Joel Brobecker 5bc8309d72 statement before variable declaration in cp_parser_initializer_list.
gcc/cp/ChangeLog:

        * parser.c (cp_parser_initializer_list): Move declaration
        of variable non_const to start of lexical block.

From-SVN: r195014
2013-01-08 12:35:38 +00:00
GCC Administrator 42404d4b47 Daily bump.
From-SVN: r195001
2013-01-08 00:18:49 +00:00
Tobias Burnus 9c23c27234 re PR fortran/55852 (internal compiler error: in gfc_build_intrinsic_call, at fortran/expr.c:4647)
2013-01-07  Tobias Burnus  <burnus@net-b.de>
            Thomas Koenig  <tkoenig@gcc.gnu.org>
            Jakub Jelinek  <jakub@redhat.com>

        PR fortran/55852
        * expr.c (gfc_build_intrinsic_call): Avoid clashes
        with user's procedures.
        * gfortran.h (gfc_build_intrinsic_call): Update prototype.
        (GFC_PREFIX): Define.
        * simplify.c (gfc_simplify_size): Update call.

2013-01-07  Tobias Burnus  <burnus@net-b.de>

        PR fortran/55852
        * gfortran.dg/intrinsic_size_3.f90: New.


Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
Co-Authored-By: Thomas Koenig <tkoenig@gcc.gnu.org>

From-SVN: r194995
2013-01-07 20:11:04 +01:00
Georg-Johann Lay ed8a63c1c8 backport: re PR target/55897 ([avr] Allocate __memx data to .progmemx.data)
Backport from 2013-01-07 trunk r194991, r194992.
	PR target/55897
	* doc/extend.texi (AVR Named Address Spaces): __memx goes into
	.progmemx.data now.
	* config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
	(avr_addrspace_t): Add .section_name field.
	* config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
	array size.
	(avr_addrspace): Same.  Initialize .section_name.  Remove last
	NULL entry.  Put __memx into .progmemx.data.
	(progmem_section_prefix): Remove.
	(avr_asm_init_sections): No need to initialize progmem_section.
	(avr_asm_named_section): Use avr_addrspace[].section_name to get
	section name prefix.
	(avr_asm_select_section): Ditto.  And use get_unnamed_section to
	retrieve the progmem section.
	* avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
	boundary to run over avr_addrspace[].
	(avr_register_target_pragmas): Ditto.

From-SVN: r194993
2013-01-07 18:51:33 +00:00
Steven G. Kargl 1e7aecb585 re PR fortran/55827 (ICE with multiple fortran modules and character lenght determined by an interfaced pure function)
2013-01-07  Steven G. Kargl  <kargl@gcc.gnu.org>
	    Mikael Morin  <mikael@gcc.gnu.org>

	PR fortran/55827
	* class.c (gfc_fix_class_refs): Adapt ts initialization for the case
	e->symtree == NULL.
	* trans-expr.c (gfc_conv_function_expr): Init sym earlier. Use it.

2013-01-07  Steven G. Kargl  <kargl@gcc.gnu.org>
	    Mikael Morin  <mikael@gcc.gnu.org>

	PR fortran/55827
	* gfortran.dg/use_22.f90: New test.


Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>

From-SVN: r194985
2013-01-07 17:56:53 +00:00
Georg-Johann Lay 1e0ae1eaf5 backport: re PR target/54461 ([avr] add configure option for better AVR-Libc integration)
Backport from 2013-01-07 trunk r194978.
	PR target/54461
	* doc/install.texi (Cross-Compiler-Specific Options): Document
	--with-avrlibc.

From-SVN: r194981
2013-01-07 16:22:59 +00:00
Georg-Johann Lay 19d79718ea backport: re PR target/55243 (STAMP variable is not defined in t-avr)
Backport from 2013-01-07 trunk r194968.
	
	PR other/55243
	* config/avr/t-avr: Don't automatically rebuild
	$(srcdir)/config/avr/t-multilib
	$(srcdir)/config/avr/avr-tables.opt
	(avr-mcus): New phony target to build them on request.
	(s-avr-mlib): Remove.
	* avr/avr-mcus.def: Adjust comments.

From-SVN: r194970
2013-01-07 13:12:10 +00:00
Terry Guo 7ad0233ccc backport: arm.c (thumb_find_work_register): Check argument register number based on current PCS.
gcc/ChangeLog
2013-01-07  Terry Guo  <terry.guo@arm.com>

       Backport from mainline
       2012-12-19  Terry Guo  <terry.guo@arm.com>

       * config/arm/arm.c (thumb_find_work_register): Check argument
       register number based on current PCS.

gcc/testsuite/ChangeLog
2013-01-07  Terry Guo  <terry.guo@arm.com>

       Backport from mainline
       2012-12-19  Terry Guo  <terry.guo@arm.com>

       * gcc.target/arm/thumb-find-work-register.c: New.

From-SVN: r194959
2013-01-07 03:12:29 +00:00
GCC Administrator c0108d6eba Daily bump.
From-SVN: r194956
2013-01-07 00:17:54 +00:00
Jonathan Wakely 5c47f02537 * doc/xml/manual/abi.xml: Update library and symbol versions.
From-SVN: r194951
2013-01-06 21:26:15 +00:00
Eric Botcazou fb93a58ca8 decl.c (gnat_to_gnu_entity): Do not pack the field of the record type made for a misaligned type.
* gcc-interface/decl.c (gnat_to_gnu_entity) <discrete_type>: Do not
	pack the field of the record type made for a misaligned type.

From-SVN: r194944
2013-01-06 12:04:25 +00:00
Eric Botcazou f868f4ac63 backport: gnat_rm.texi: Document alignment choice for subtypes.
Backport from mainline
	2013-01-04  Robert Dewar  <dewar@adacore.com>

	* gnat_rm.texi: Document alignment choice for subtypes.

From-SVN: r194943
2013-01-06 12:03:03 +00:00
Uros Bizjak 0e570ef5e0 backport: re PR target/55712 (cpuinfo.c doesn't compile for x86-64 with medium memory model)
Backport from mainline
	2013-01-03  Uros Bizjak  <ubizjak@gmail.com>

	PR target/55712
	* config/i386/i386-c.c (ix86_target_macros_internal): Depending on
	selected code model, define __code_mode_small__, __code_model_medium__,
	__code_model_large__, __code_model_32__ or __code_model_kernel__.
	* config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
	xchg temporary register with %k.  Declare temporary register as
	early clobbered.
	[__x86_64__]: For medium and large code models, preserve %rbx register.

From-SVN: r194937
2013-01-06 09:45:43 +01:00
GCC Administrator 527d615017 Daily bump.
From-SVN: r194935
2013-01-06 00:18:08 +00:00
GCC Administrator 703e3b4602 Daily bump.
From-SVN: r194923
2013-01-05 00:17:20 +00:00
Jason Merrill 1348eabc9d re PR c++/55877 (Anon visibility issues)
PR c++/55877
	* decl.c (reset_type_linkage, bt_reset_linkage): New.
	(grokdeclarator): Use reset_type_linkage.
	* name-lookup.c (binding_table_foreach): Handle null table.
	* tree.c (decl_anon_ns_mem_p): Check TYPE_MAIN_DECL, not TYPE_NAME.

From-SVN: r194911
2013-01-04 11:51:02 -05:00
Richard Henderson 5ea2583e4b i386: Backport gcc.dg/torture/tls/tls-reload-1.c fix from master
* config/i386/i386.c (ix86_expand_move): Always assign to op1
	after eliminating TLS symbols.

From-SVN: r194882
2013-01-03 20:17:07 -08:00
John David Anglin 3b99a733ac re PR target/53789 (ICE in gen_reg_rtx, at emit-rtl.c:864/865 when compiling GNU MPFR on parisc)
PR target/53789
	* config/pa/pa.md (movsi): Revert previous change.
	* config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
	references.

From-SVN: r194880
2013-01-04 04:03:18 +00:00
GCC Administrator 3a4451c2a7 Daily bump.
From-SVN: r194877
2013-01-04 00:18:19 +00:00
Jason Merrill 1f1c2f93f6 re PR c++/55419 (ICE in gimplify_init_ctor_preeval, at gimplify.c:3587)
PR c++/55419
	PR c++/55753
	* pt.c (tsubst_copy_and_build) [TARGET_EXPR]: Don't touch
	TREE_CONSTANT.

From-SVN: r194872
2013-01-03 15:37:28 -05:00
Jason Merrill 7b9ee230c9 re PR c++/55842 (C++11 ICE with boost multi-precision and boost variant)
PR c++/55842
	* semantics.c (trait_expr_value): Call maybe_instantiate_noexcept.

From-SVN: r194871
2013-01-03 15:37:10 -05:00
Jason Merrill 806e40346d re PR c++/55856 (ICE on tuple with rvalue ref member)
PR c++/55856
	* semantics.c (build_data_member_initialization): Handle DECL_EXPR.

From-SVN: r194864
2013-01-03 13:30:58 -05:00
Rainer Emrich 90ffb459a5 re PR bootstrap/55707 (bootstrap fails in gcc/graphite-dependences.c error cast loses precision)
2013-01-02  Rainer Emrich  <rainer@emrich-ebersheim.de>

        PR bootstrap/55707
        * graphite-dependences.c (hash_poly_ddr_p): Cast from pointer via
        intptr_t.

From-SVN: r194859
2013-01-03 17:47:37 +01:00
GCC Administrator 22d36d473b Daily bump.
From-SVN: r194826
2013-01-03 00:17:59 +00:00
Jason Merrill 9ee03ab69b re PR c++/54325 (C++11 uniform initialization syntax for argument-less abstract base class constructor fails)
PR c++/54325
	* call.c (build_new_method_call_1): Don't use build_value_init for
	user-provided default constructors.

From-SVN: r194821
2013-01-02 15:56:29 -05:00
Jason Merrill 77ef47f52c re PR c++/55804 (GCC omits required call to constructor)
PR c++/55804
	PR c++/55032
	PR c++/55245
	* tree.c (build_array_type_1): Revert earlier change.
	* cp/tree.c (build_cplus_array_type): Copy layout information
	to main variant if necessary.

From-SVN: r194812
2013-01-02 14:03:37 -05:00
GCC Administrator 961546f6be Daily bump.
From-SVN: r194772
2013-01-02 00:17:53 +00:00
GCC Administrator 6e56dbea82 Daily bump.
From-SVN: r194766
2013-01-01 00:17:49 +00:00
GCC Administrator ad0c71e745 Daily bump.
From-SVN: r194759
2012-12-31 00:17:51 +00:00
GCC Administrator 215f8cf121 Daily bump.
From-SVN: r194755
2012-12-30 00:17:57 +00:00
GCC Administrator c63269d060 Daily bump.
From-SVN: r194748
2012-12-29 00:17:50 +00:00
GCC Administrator fc82c67364 Daily bump.
From-SVN: r194741
2012-12-28 00:17:33 +00:00
GCC Administrator 42cba9e488 Daily bump.
From-SVN: r194728
2012-12-27 00:17:53 +00:00
GCC Administrator 2cda44c1bb Daily bump.
From-SVN: r194720
2012-12-26 00:18:04 +00:00
John David Anglin e3d8afe24c re PR target/53789 (ICE in gen_reg_rtx, at emit-rtl.c:864/865 when compiling GNU MPFR on parisc)
PR target/53789
	* config/pa/pa.md (movsi): Reject expansion of TLS symbol references
	after reload starts.

From-SVN: r194716
2012-12-25 21:05:21 +00:00
GCC Administrator 7938287252 Daily bump.
From-SVN: r194711
2012-12-25 00:18:14 +00:00
GCC Administrator d2d16fdf95 Daily bump.
From-SVN: r194708
2012-12-24 00:17:52 +00:00
GCC Administrator 8678fd8936 Daily bump.
From-SVN: r194702
2012-12-23 00:17:56 +00:00
John David Anglin 88007b40e2 backport: gcov-12.c: Fix dg order.
Backport from mainline:
	2012-12-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* gcc.misc-tests/gcov-12.c: Fix dg order.

From-SVN: r194698
2012-12-22 17:31:54 +00:00
John David Anglin ce1fb429fd backport: pr47917.c: Change "dg-xfail-if" to "dg-xfail-run-if" for *-*-hpux10*.
Backport from mainline:
	2012-12-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* gcc.dg/torture/pr47917.c: Change "dg-xfail-if" to "dg-xfail-run-if"
	for *-*-hpux10*.

From-SVN: r194697
2012-12-22 17:27:23 +00:00
John David Anglin 908cbc316f backport: 20030711-1.c: Define MAP_FAILED if not defined.
Backport from mainline:
	2012-12-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* gcc.dg/20030711-1.c: Define MAP_FAILED if not defined.
	* gcc.dg/20050826-1.c: Likewise.

From-SVN: r194695
2012-12-22 17:23:52 +00:00
Thomas Koenig 338988881a re PR libfortran/30162 (Document when sequential I/O with named pipes works)
2012-12-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/30162
	Backport from trunk
	* io/unix.c (raw_tell):  If the lseek is done on a
	non-seekable file, return 0.

From-SVN: r194694
2012-12-22 10:46:37 +00:00
GCC Administrator 32e1cd769c Daily bump.
From-SVN: r194690
2012-12-22 00:18:19 +00:00
Ed Schonberg 83979f8760 re PR ada/53737 (Assert_Failure on a generic package with a package as parameter)
PR ada/53737
	* sem_ch12.adb (Analyze_Associations): Do not check the legality of
	actuals for RACW types if this is an internal instantiation for a formal
	package with defaulted parameters.

From-SVN: r194688
2012-12-21 22:33:36 +00:00
Martin Jambor ef75fbb833 re PR tree-optimization/55355 (internal compiler error: in tree_low_cst, at tree.c:6415)
2012-12-21  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/55355
	* tree-sra.c (type_internals_preclude_sra_p): Also check that
	bit_position is small enough to fit a single HOST_WIDE_INT.

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

From-SVN: r194684
2012-12-21 23:21:14 +01:00
Matthew Gretton-Dann 26602411e3 config.gcc: Match arm*-*-uclinux*eabi* for EABI uCLinux.
2012-12-21  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>

	* config.gcc: Match arm*-*-uclinux*eabi* for EABI uCLinux.

From-SVN: r194657
2012-12-21 09:56:19 +00:00
GCC Administrator 3b390c8eda Daily bump.
From-SVN: r194654
2012-12-21 00:18:02 +00:00
Tobias Burnus bc2e423b2d re PR fortran/54818 (error: type mismatch in binary expression)
2012-12-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54818
        * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Ensure that
        the string length is of type gfc_charlen_type_node.

2012-12-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54818
        * gfortran.dg/transfer_intrinsic_4.f: New.

From-SVN: r194632
2012-12-20 11:48:11 +01:00
Jason Merrill 04fead5504 re PR c++/55724 ([C++11] Default type of a template value is not working)
PR c++/55724
	* pt.c (type_unification_real): Re-combine post-deduction loops.

From-SVN: r194627
2012-12-19 21:58:16 -05:00
GCC Administrator 23e81d7e92 Daily bump.
From-SVN: r194624
2012-12-20 00:18:22 +00:00
GCC Administrator 32deb93da3 Daily bump.
From-SVN: r194596
2012-12-19 00:17:59 +00:00
Matthew Gretton-Dann 1930288505 backport: config.gcc: Match arm*-*-linux-* for ARM Linux/GNU.
Backport r192475 from mainline.
	gcc/
	2012-10-15  Matthias Klose  <doko@ubuntu.com>

        * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU.
        * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi.

	gcc/testsuite/
	2012-10-15  Matthias Klose  <doko@ubuntu.com>

        * lib/target-supports.exp (check_profiling_available): Match
        arm*-*-linux-* for ARM Linux/GNU.
        * g++.dg/torture/predcom-1.C: Match arm*-*-linux-* for ARM Linux/GNU.
        * gfortran.dg/enum_10.f90: Likewise.
        * gfortran.dg/enum_9.f90: Likewise.
        * gcc.target/arm/synchronize.c: Likewise.
        * g++.old-deja/g++.jason/enum6.C: Likewise.
        * g++.old-deja/g++.other/enum4.C: Likewise.
        * g++.old-deja/g++.law/enum9.C: Likewise.

	gcc/ada/
	2012-10-15  Matthias Klose  <doko@ubuntu.com>

        * gcc-interface/Makefile.in: Match arm*-*-linux-*eabi* for
        ARM Linux/GNU.

	libgcc/
	2012-10-15  Matthias Klose  <doko@ubuntu.com>

        * config.host: Match arm*-*-linux-* for ARM Linux/GNU.

	libstdc++-v3/
	2012-10-15  Matthias Klose  <doko@ubuntu.com>

        * configure.host: Match arm*-*-linux-* for ARM Linux/GNU.
        * testsuite/20_util/make_signed/requirements/typedefs-2.cc: Likewise.
        * testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Likewise.

	libjava/
	2012-10-15  Matthias Klose  <doko@ubuntu.com>

        * configure.ac: Match arm*-*-linux-* for ARM Linux/GNU.
        * configure: Regenerate.

From-SVN: r194580
2012-12-18 14:27:14 +00:00
Jonathan Wakely 48693af021 abi.xml: Update URLs for C++ ABI.
* doc/xml/manual/abi.xml: Update URLs for C++ ABI.
	* doc/xml/manual/policy_data_structures_biblio.xml: Add xmlns
	* doc/xml/manual/policy_data_structures.xml: Set filename for chunk.
	* doc/xml/manual/spine.xml: Update copyright years.
	* doc/html/*: Regenerate.

From-SVN: r194577
2012-12-18 12:15:43 +00:00
GCC Administrator 40320ae9ba Daily bump.
From-SVN: r194570
2012-12-18 00:17:47 +00:00
Matthias Klose 4a33071a3f unwind-arm.h (__gnu_unwind_24bit): Mark parameters as unused.
2012-12-17  Matthias Klose  <doko@ubuntu.com>

        * config/arm/unwind-arm.h (__gnu_unwind_24bit): Mark parameters
        as unused.
        (_Unwind_decode_typeinfo_ptr): Mark base as unused.

From-SVN: r194555
2012-12-17 14:56:45 +00:00
Jonathan Wakely 8b40dbbcb7 * src/c++11/thread.cc: Update copyright years.
From-SVN: r194548
2012-12-17 02:14:30 +00:00
GCC Administrator 10db5e8c09 Daily bump.
From-SVN: r194545
2012-12-17 00:18:19 +00:00
Jonathan Wakely ada8c33539 thread.cc (execute_native_thread_routine): Do not swallow __forced_unwind exceptions.
* src/c++11/thread.cc (execute_native_thread_routine): Do not swallow
	__forced_unwind exceptions.
	* testsuite/30_threads/thread/native_handle/cancel.cc: New.

From-SVN: r194540
2012-12-16 21:21:14 +00:00
Eric Botcazou 1114e627ae re PR ada/54614 (Vector * Matrix -> Vector gives wrong result)
PR ada/54614
	Backport from mainline

	2012-10-01  Vincent Pucci  <pucci@adacore.com>

	* s-gearop.adb (Vector_Matrix_Product): Fix dimension check and index
	of Left in S evaluation.

From-SVN: r194534
2012-12-16 10:40:32 +00:00
Eric Botcazou 84ec8cbc99 re PR target/55673 (Reversed before/after handling in sparc_emit_membar_for_model)
PR target/55673
	* config/sparc/sparc.c (sparc_emit_membar_for_model): Fix reversed
	handling of before and after cases.
	* config/sparc/sync.md (atomic_store): Fix pasto.

Co-Authored-By: Tomash Brechko <tomash.brechko@gmail.com>

From-SVN: r194532
2012-12-16 10:26:08 +00:00
GCC Administrator 5543ab362e Daily bump.
From-SVN: r194527
2012-12-16 00:17:51 +00:00
Eric Botcazou 48595ac78a re PR ada/53766 (ICE in build_binary_op on Max_Size_In_Storage_Elements with -gnatp)
PR ada/53766
	Backport from mainline

	2012-07-17  Hristian Kirtchev  <kirtchev@adacore.com>

	* exp_attr.adb (Expand_N_Attribute_Reference): Add local variables Attr
	and Conversion_Added.  Add local constant Typ.
	Retrieve the original attribute after the arithmetic check
	machinery has modified the node. Add a conversion to the target
	type when the prefix of attribute Max_Size_In_Storage_Elements
	is a controlled type.

From-SVN: r194522
2012-12-15 18:16:28 +00:00
GCC Administrator bacc69db58 Daily bump.
From-SVN: r194514
2012-12-15 00:17:42 +00:00
Yvan Roux 6dd4cb5cb2 * optabs.c (expand_atomic_store): Elide redundant model test.
From-SVN: r194505
2012-12-14 08:26:17 -08:00
GCC Administrator b4bca43d27 Daily bump.
From-SVN: r194494
2012-12-14 00:18:40 +00:00
Richard Henderson 18bf2596a8 re PR middle-end/55492 (__atomic_load doesn't match ACQUIRE memory model)
PR middle-end/55492

        * optabs.c (expand_atomic_load): Emit acquire barrier after the load.

From-SVN: r194491
2012-12-13 13:17:52 -08:00
GCC Administrator ab99b7ef77 Daily bump.
From-SVN: r194465
2012-12-13 00:18:36 +00:00
Jonathan Wakely f8a287c9bd re PR libstdc++/55631 (Several ext/ headers can not be #included on their own)
PR libstdc++/55631
	* include/ext/alloc_traits.h: Include missing header.
	* include/ext/pointer.h: Likewise.
	* include/ext/string_conversions.h: Require C++11.
	* libsupc++/initializer_list: Reindent.

From-SVN: r194457
2012-12-12 23:01:40 +00:00
Benjamin Kosnik 1910224ffb documentation_hacking.xml: Fix validation issue.
2012-12-12  Benjamin Kosnik  <bkoz@redhat.com>

        * doc/xml/manual/documentation_hacking.xml: Fix validation issue.

From-SVN: r194456
2012-12-12 22:17:29 +00:00
GCC Administrator 5c21de3e60 Daily bump.
From-SVN: r194434
2012-12-12 00:18:30 +00:00
Jason Merrill 3e98a627cc re PR c++/54883 (Name mangling of types in an unnamed namespace)
PR c++/54883
	* decl2.c (min_vis_r): Handle anon visibility for enums.

From-SVN: r194431
2012-12-11 17:46:22 -05:00
Jakub Jelinek d20129ac68 re PR c++/55643 ([C++11] incorrect "warning: variable ‘myVar’ set but not used" with an "enum class"-typed variable is casted to double for the use)
PR c++/55643
	* expr.c (mark_exp_read): Handle FLOAT_EXPR similarly to NOP_EXPR.

	* g++.dg/warn/Wunused-var-19.C: New test.

From-SVN: r194416
2012-12-11 20:06:19 +01:00
Eric Botcazou 0867160b85 re PR target/54121 (ICE at extract_insn, at recog.c:2123 with -fprofile-generate)
PR target/54121
	* config/sparc/sparc.md (tldo_stb_sp32): Fix pasto.
	(tldo_stb_sp64): Likewise.
	(tldo_sth_sp32): Likewise.
	(tldo_sth_sp64): Likewise.
	(tldo_stw_sp32): Likewise.
	(tldo_stw_sp64): Likewise.
	(tldo_stx_sp64): Likewise.

From-SVN: r194411
2012-12-11 18:44:48 +00:00
Benjamin Kosnik b26ebfbf35 Makefile.am (xml_sources_manual): Add policy_data_structures_biblio.xml.
2012-12-10  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/Makefile.am (xml_sources_manual): Add
	policy_data_structures_biblio.xml.
	(${docbook_outdir}/latex): Add.
	(doc-xml-validate-docbook): Split into..
	(doc-xml-validate-dtd-db):... this for DTD.
	(doc-xml-validate-rng-db):... this for Relax NG.
	(doc-pdf-docbook-dirs): Add.
	(doc-pdf-docbook-pre): Add.
	* doc/xml/manual/build_hacking.xml: Add literal markup.
	* doc/xml/manual/documentation_hacking.xml: Clean whitespace in
	<filename> markup. Add notes about debugging the generation process.
	* doc/xml/manual/policy_data_structures.xml: Split biblio into...
	* doc/xml/manual/policy_data_structures_biblio.xml: ... this. New.
	* doc/xml/manual/test_policy_data_structures.xml: Fixup <filename>
	markup.

From-SVN: r194403
2012-12-11 16:29:39 +00:00
GCC Administrator affeee7889 Daily bump.
From-SVN: r194377
2012-12-11 00:18:09 +00:00
Kai Tietz 384192c3fc re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
	* print-tree.c (print_node): Cast from pointer via uintptr_t.

From-SVN: r194349
2012-12-10 10:54:16 +01:00
Matthias Klose 004d5c3863 Makefile.am (libstdc++-symbols.ver): Use CONFIG_HEADER.
2012-12-10  Matthias Klose  <doko@ubuntu.com>

        * src/Makefile.am (libstdc++-symbols.ver): Use CONFIG_HEADER.
        * src/Makefile.in: Regenerate.

From-SVN: r194347
2012-12-10 09:09:44 +00:00
GCC Administrator c46b2b7e54 Daily bump.
From-SVN: r194341
2012-12-10 00:18:59 +00:00
Uros Bizjak 0e3f07aa1c re PR target/55344 (Cross compiling for alpha-linux fails because <signal.h> doesn't exist)
PR target/55344
	* config/alpha/linux-unwind.h: Disable when inhibit_libc is defined.

From-SVN: r194336
2012-12-09 19:21:41 +01:00
GCC Administrator ccb018c338 Daily bump.
From-SVN: r194327
2012-12-09 00:18:02 +00:00
Jason Merrill 2cf0f2caff re PR c++/55419 (ICE in gimplify_init_ctor_preeval, at gimplify.c:3587)
PR c++/55419
	* tree.c (build_target_expr): Don't set TREE_CONSTANT.

From-SVN: r194319
2012-12-07 22:31:56 -05:00
GCC Administrator 92639b9e07 Daily bump.
From-SVN: r194314
2012-12-08 00:20:09 +00:00
Matthias Klose 59c5661f7f tree.c (build_aggr_init_expr): Add parameter name, mark as unused.
2012-12-07  Matthias Klose  <doko@ubuntu.com>

        * tree.c (build_aggr_init_expr): Add parameter name, mark as unused.

From-SVN: r194296
2012-12-07 09:23:36 +00:00
Uros Bizjak 1c7e37a439 * gnat.dg/stack_check3.ad[sb]: Delete in the root directory.
From-SVN: r194294
2012-12-07 09:14:50 +01:00
Uros Bizjak 01faaf1d9d * gnat.dg/stack_check3.ad[sb]: Move to gnat.dg directory.
From-SVN: r194293
2012-12-07 09:13:33 +01:00
Uros Bizjak db1500ff98 backport: re PR middle-end/55597 (internal compiler error: in plus_constant, at explow.c:88)
Backport from mainline
	2012-12-06  Uros Bizjak  <ubizjak@gmail.com>
		    H.J. Lu  <hongjiu.lu@intel.com>

	PR target/55597
	* config/i386/i386.c (legitimize_tls_address): Zero-extend x to Pmode,
	before using it as insn or call equivalent.

testsuite/ChangeLog:

	Backport from mainline
	2012-12-06  Uros Bizjak  <ubizjak@gmail.com>

	PR target/55597
	* gcc.target/i386/pr55597.c: New test.

From-SVN: r194292
2012-12-07 09:10:37 +01:00
Jason Merrill 6ad351516e re PR c++/54325 (C++11 uniform initialization syntax for argument-less abstract base class constructor fails)
PR c++/54325
	* tree.c (build_aggr_init_expr): Don't check for abstract class.

From-SVN: r194290
2012-12-07 00:13:33 -05:00
Jason Merrill 54ca6baf7a re PR c++/55058 (Unexpected invalid type conversion error)
PR c++/55058
	* pt.c (tsubst): Keep the quals when looking through a typedef.

From-SVN: r194289
2012-12-07 00:13:22 -05:00
Jason Merrill eb5c336b57 re PR c++/55249 (Multiple copy constructors for template class lead to link errors)
PR c++/55249
	* tree.c (build_vec_init_elt): Use the type of the initializer.

From-SVN: r194288
2012-12-07 00:13:11 -05:00
Jason Merrill 85855e7fcc move declaration to top of block
From-SVN: r194287
2012-12-07 00:13:01 -05:00
GCC Administrator 8a0a7d0136 Daily bump.
From-SVN: r194277
2012-12-07 00:18:18 +00:00
Jason Merrill 877d3792bf re PR c++/54744 (internal compiler error: Segmentation fault, by dependent base, member typedef and ctor-initializer)
PR c++/54744
	* pt.c (resolve_typename_type): Check TYPENAME_IS_RESOLVING_P on scope.

From-SVN: r194269
2012-12-06 15:21:44 -05:00
Jason Merrill 4c4b757fcc re PR c++/55032 (Internal compiler error: in strip_typedefs, at cp/tree.c:1199)
PR c++/55032
	* tree.c (build_array_type_1): Re-layout if we found it in the
	hash table.

From-SVN: r194268
2012-12-06 15:21:29 -05:00
Jason Merrill 231e16c64d re PR c++/54947 ([C++11] lambda cannot capture-by-copy inside braced-init-list)
PR c++/54947
	* parser.c (cp_parser_initializer_list): Don't require an
	expression in [] to be constant until we know it's a C99
	designator.

From-SVN: r194254
2012-12-06 09:40:04 -05:00
Jason Merrill cc52ca8920 re PR c++/55015 (Lambda functions not found at link time when declared in an inline function)
PR c++/55015
	PR c++/53821
	* semantics.c (maybe_add_lambda_conv_op): Revert earlier change.
	* decl.c (start_preparsed_function): Make local class methods comdat
	in templates, too.

From-SVN: r194253
2012-12-06 09:39:52 -05:00
John David Anglin f626338437 pa.md: Use "const_int 0" instead of match_test to simplify opaque cond in all call insns.
* config/pa/pa.md: Use "const_int 0" instead of match_test to simplify
	opaque cond in all call insns.

From-SVN: r194236
2012-12-06 01:41:36 +00:00
GCC Administrator 81757be705 Daily bump.
From-SVN: r194233
2012-12-06 00:18:09 +00:00
Ian Lance Taylor 0073ec0fa5 syscall: Fix splice syscall.
From-SVN: r194184
2012-12-05 08:48:44 +00:00
Ian Lance Taylor c4b2de60a1 compiler: Accept trailing comma after expression in type conversion.
From-SVN: r194177
2012-12-05 01:09:54 +00:00
Ian Lance Taylor 032146f9a3 compiler: Make sure we produce an error for a call to a non-function.
Fixes issue 19.

From-SVN: r194175
2012-12-05 00:53:59 +00:00
GCC Administrator 6654b20487 Daily bump.
From-SVN: r194171
2012-12-05 00:18:07 +00:00
Richard Henderson f9b051a3df re PR bootstrap/55571 (PR48076 fix broke bootstrap on armv5tel-linux-gnueabi)
PR bootstrap/55571

        * Makefile.in (libgcc_s.so): Depend on and link with libgcc.a.

From-SVN: r194160
2012-12-04 11:09:59 -08:00
Eric Botcazou b38fd39644 ia64.c (ia64_compute_frame_size): Allocate the scratch area if the function allocates dynamic stack space.
* config/ia64/ia64.c (ia64_compute_frame_size): Allocate the scratch
	area if the function allocates dynamic stack space.
	(ia64_initial_elimination_offset): Adjust offsets to above change.

From-SVN: r194122
2012-12-04 09:07:45 +00:00
Ian Lance Taylor ee88f662f7 mksysinfo: Fix TIOCNOTTY and TIOCSCTTY for ARM.
From Matthias Klose.

From-SVN: r194117
2012-12-04 06:23:14 +00:00
Ian Lance Taylor 5963e5d9f0 runtime: Fix build failures with -D_FORTIFY_SOURCE=2.
From-SVN: r194115
2012-12-04 06:15:14 +00:00
Ian Lance Taylor 27307783d8 compiler: Fix crash in go/defer of some builtin functions.
From-SVN: r194113
2012-12-04 05:17:43 +00:00
GCC Administrator 1698b1e37b Daily bump.
From-SVN: r194110
2012-12-04 00:18:25 +00:00
Richard Biener 1d7f704615 backport: re PR tree-optimization/53663 (inconsistent inline handling of bool within union)
2012-12-03  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2012-09-24  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53663
	* tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional
	native encode/interpret translation on VN_WALKREWRITE.

	* gcc.dg/torture/pr53663-1.c: New testcase.
	* gcc.dg/torture/pr53663-2.c: Likewise.
	* gcc.dg/torture/pr53663-3.c: Likewise.

From-SVN: r194101
2012-12-03 16:53:25 +00:00
Marek Polacek 9c84866a16 Fix PR c/55570.
From-SVN: r194084
2012-12-03 13:10:18 +00:00
Kai Tietz 01f849caa1 re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
	* ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t.

From-SVN: r194071
2012-12-03 08:04:50 +01:00
Kai Tietz 0bd71a3965 re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
	* tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.

From-SVN: r194069
2012-12-03 08:01:43 +01:00
Kai Tietz b85a6ce8c6 re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
	* pointer-set.c (hash1): Cast from pointer via uintptr_t.

From-SVN: r194066
2012-12-03 07:55:55 +01:00
Ian Lance Taylor 6cf4a49e3b compiler: Fix nil func panics, constant type conversions.
From-SVN: r194065
2012-12-03 03:26:07 +00:00
GCC Administrator f13062e8c9 Daily bump.
From-SVN: r194062
2012-12-03 00:17:41 +00:00
GCC Administrator b344a33e55 Daily bump.
From-SVN: r194041
2012-12-02 00:18:12 +00:00
John David Anglin e77cfdc2ce pr54920.c: Add "-fno-common" option on hppa*-*-hpux*.
* gcc.dg/torture/pr54920.c: Add "-fno-common" option on hppa*-*-hpux*.

From-SVN: r194029
2012-12-01 21:12:08 +00:00
John David Anglin 6f7a6b458f backport: re PR target/55195 (shorten_branches generates incorrect forward branch distances)
Backport from mainline:
	2012-11-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR target/55195
	* config/pa/pa.md (type): Add sibcall and sh_func_adrs insn types.
	(in_branch_delay): Don't allow sibcall or sh_func_adrs insns.
	(in_nullified_branch_delay): Likewise.
	(in_call_delay): Likewise.
	Define delay for sibcall insns.  Adjust Z3 and Z4 insn reservations for
	new types.  Add opaque cond to mark all calls, sibcalls, dyncalls and
	the $$sh_func_adrs call as variable.  Update type of sibcalls and
	$$sh_func_adrs call.
	* config/pa/pa.c (pa_adjust_insn_length): Revise to return updated
	length instead of adjustment.  Handle negative and undefined call
	adjustments for insn_default_length.  Remove adjustment for millicode
	insn with unfilled delay slot.
	(pa_output_millicode_call): Update for revised millicode length.
	* config/pa/pa.h (ADJUST_INSN_LENGTH): Revise to set LENGTH.

From-SVN: r194027
2012-12-01 20:36:04 +00:00
John David Anglin 21d35db347 re PR ada/52110 (s-osinte.ads:447:09: "clockid_t" conflicts with declaration at line 194)
PR ada/52110
	* s-osinte-hpux-dce.ads: Declare pthread_rwlockattr_t and
	pthread_rwlock_t subtypes.  Delete duplicate declaration of clockid_t.
	* s-taspri-hpux-dce.ads: Change "pragma Atomic (Thread)" to comment.

From-SVN: r194025
2012-12-01 19:45:24 +00:00
John David Anglin c1e6d95342 re PR libstdc++/55503 (FAIL: 30_threads/condition_variable/members/53841.cc (test for excess errors))
PR libstdc++/55503
	* testsuite/30_threads/condition_variable/members/53841.cc: Add
	hppa*-hp-hpux11* to -pthread dg-options.

From-SVN: r194023
2012-12-01 19:20:39 +00:00
GCC Administrator 7afa36449f Daily bump.
From-SVN: r194014
2012-12-01 00:17:59 +00:00
Ian Lance Taylor 10e4145147 compiler: Fix bug converting unnamed types with placeholders.
From-SVN: r194012
2012-12-01 00:15:36 +00:00
GCC Administrator 2c55e1f176 Daily bump.
From-SVN: r193975
2012-11-30 00:18:18 +00:00
Richard Henderson 3b9fd6c5fa re PR libgcc/48076 (Unsafe double checked locking in __emutls_get_address)
PR libgcc/48076
        * emutls.c (__emutls_get_address): Avoid race condition between
        obj->loc.offset read and emutls_key initialization.

From-SVN: r193958
2012-11-29 13:06:02 -08:00
Jason Merrill 8818300ee2 re PR c++/53137 (g++ segfault)
PR c++/53137
	* pt.c (tsubst_expr) [DECL_EXPR]: Set LAMBDA_EXPR_THIS_CAPTURE here.
	(tsubst_copy_and_build) [LAMBDA_EXPR]: And clear it here.
	(instantiate_class_template_1): Not here.

From-SVN: r193957
2012-11-29 15:17:20 -05:00
Jason Merrill 66a30dc9c9 re PR c++/53862 ([C++11] sorry, unimplemented: use of 'type_pack_expansion' in template)
PR c++/53862
	* pt.c (tsubst_arg_types): Add "end" parameter.
	(check_undeduced_parms): Use it.

From-SVN: r193956
2012-11-29 15:17:02 -05:00
Jason Merrill 1c44f40a48 re PR c++/50852 (ICE: internal compiler error: in tsubst, at cp/pt.c:11030)
PR c++/50852
	PR c++/53039
	* tree.c (strip_typedefs_expr): New.
	* cp-tree.h: Declare it.
	* pt.c (convert_template_argument, unify): Use it.
	* parser.c (cp_parser_template_declaration_after_export): Don't call
	fixup_template_parms.

	* cp-tree.h (TEMPLATE_PARM_NUM_SIBLINGS): Remove.
	(struct template_parm_index_s): Remove num_siblings.
	* pt.c (fixup_template_parms, fixup_template_parm_index): Remove.
	(fixup_template_type_parm_type): Remove.
	(build_template_parm_index): Remove num_siblings parm.
	(process_template_parm): Likewise.
	* parser.c (cp_parser_template_parameter_list): Adjust.
	* tree.c (cp_tree_equal): Don't compare num_siblings.
	* typeck.c (comp_template_parms_position): Likewise.

	* pt.c (arg_from_parm_pack_p): Go back to using same_type_p or
	cp_tree_equal.

From-SVN: r193955
2012-11-29 15:16:46 -05:00
Kai Tietz 0c0d9de605 re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
	* prefix.c (lookup_key): Replace xmalloc/xrealloc
	use by XNEWVEC/XRESIZEVEC.

From-SVN: r193947
2012-11-29 19:43:29 +01:00
Kai Tietz 1742a3c595 re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
	* class.c (dump_class_hierarchy_r): Cast from pointer via uintptr_t.
	(dump_vtable): Likewise.

From-SVN: r193935
2012-11-29 16:27:36 +01:00
Kai Tietz f27121bdd2 re PR target/55171 (incorrect virtual thunk on mingw)
PR target/55171
        * i386.c (get_scratch_register_on_entry): Handle
        thiscall-convention.
        (split_stack_prologue_scratch_regno): Likewise.
        (ix86_static_chain): Likewise.
        (x86_output_mi_thunk): Likewise.

From-SVN: r193925
2012-11-29 10:18:54 +01:00
GCC Administrator a0584412a1 Daily bump.
From-SVN: r193913
2012-11-29 00:17:41 +00:00
H.J. Lu 1a8d20ce62 Handle OPT_SPECIAL_XXX in LTO
Backported from mainline
	PR lto/54795
	* lto-opts.c (lto_write_options): Also handle
	OPT_SPECIAL_unknown, OPT_SPECIAL_ignore and
	OPT_SPECIAL_program_name.

	PR lto/55474
	* lto-wrapper.c (merge_and_complain): Handle
	OPT_SPECIAL_unknown, OPT_SPECIAL_ignore,
	OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.

From-SVN: r193893
2012-11-28 06:38:40 -08:00
GCC Administrator d051babe8e Daily bump.
From-SVN: r193877
2012-11-28 00:17:42 +00:00
Paolo Bonzini ec2115167f re PR rtl-optimization/55489 (insane PRE memory usage with PIE (translate.i))
2012-11-27  Paolo Bonzini  <pbonzini@redhat.com>

	PR rtl-optimization/55489
	* gcse.c (compute_transp): Precompute a canonical version
	of XEXP (x, 0), and pass it to canon_true_dependence.

From-SVN: r193867
2012-11-27 20:26:57 +00:00
Richard Biener 822cb0901e re PR middle-end/55331 (ICE: SIGSEGV in substitute_and_fold with -O2 -fno-tree-fre)
2012-11-27  Richard Biener  <rguenther@suse.de>

	PR middle-end/55331
	* gimple-fold.c (gimplify_and_update_call_from_tree): Replace
	stmt with a NOP instead of removing it.

	* g++.dg/opt/pr55331.C: New testcase.

From-SVN: r193840
2012-11-27 09:23:15 +00:00
GCC Administrator 518f7f0847 Daily bump.
From-SVN: r193835
2012-11-27 00:18:04 +00:00
Richard Biener fc2c3c704f backport: [multiple changes]
2012-11-26  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2012-10-19  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/54976
	* tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
	Robustify against odd inner_mode inputs.

	2012-10-12  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/54894
	* tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
	Handle over-aligned scalar types properly.

	2012-10-02  Richard Guenther  <rguenther@suse.de>

	PR middle-end/54735
	* tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before
	cleaning up the CFG.


	2012-10-12  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/54894
	* gcc.dg/torture/pr54894.c: New testcase.

	2012-10-02  Richard Guenther  <rguenther@suse.de>

	PR middle-end/54735
	* g++.dg/torture/pr54735.C: New testcase.

From-SVN: r193816
2012-11-26 14:26:07 +00:00
GCC Administrator 0fe2e14925 Daily bump.
From-SVN: r193800
2012-11-26 00:17:54 +00:00
Ian Lance Taylor 5d9303857b compiler: Don't use memcmp for equality if struct has trailing padding.
From-SVN: r193792
2012-11-25 00:55:57 +00:00
GCC Administrator 9441ae11ac Daily bump.
From-SVN: r193789
2012-11-25 00:17:44 +00:00
Paolo Carlini 686c35243b re PR c++/55446 (array new with size zero vanishes from object code)
/cp
2012-11-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/55446
	* init.c (build_vec_init): Do not early return error_mark_mode
	when integer_all_onesp (maxindex).

/testsuite
2012-11-24  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/55446
	* g++.dg/init/new41.C: New.

From-SVN: r193786
2012-11-24 23:55:22 +00:00
Ian Lance Taylor b058098bac syscall: Fix handling of Unix domain @ addresses.
From-SVN: r193782
2012-11-24 20:46:46 +00:00
Thomas Koenig ef34c97502 re PR fortran/55314 (Rejects some valid ALLOCATE statements)
2012-11-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/55314
	Backport from trunk
	* resolve.c (resolve_allocate_deallocate):  Compare all
	subscripts when deciding if to reject a (de)allocate
	statement.

2012-11-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/55314
	Backport from trunk
	* gfortran.dg/allocate_error_4.f90:  New test.

From-SVN: r193780
2012-11-24 17:13:25 +00:00
GCC Administrator d10e74e36e Daily bump.
From-SVN: r193773
2012-11-24 00:17:44 +00:00
Janus Weil 16c37e8dd5 re PR fortran/55352 (Erroneous gfortran warning of unused module variable when variable is only used in namelist)
2012-11-23  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55352
	* trans-decl.c (generate_local_decl): Don't warn for explicitly imported
	but unused module variables which are in a namelist or common block.

2012-11-23  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55352
	* gfortran.dg/namelist_76.f90: New.

From-SVN: r193766
2012-11-23 20:05:14 +01:00
GCC Administrator db4e7e1d16 Daily bump.
From-SVN: r193739
2012-11-23 00:17:24 +00:00
GCC Administrator 8ae7ff0a5b Daily bump.
From-SVN: r193718
2012-11-22 00:17:52 +00:00
Michael Meissner 66e93ab2f4 backport: [multiple changes]
2012-11-21  Michael Meissner  <meissner@linux.vnet.ibm.com>

	Backport from mainline
	2012-11-20  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* config/rs6000/rs6000.md (movdf_hardfloat32): Add a comment
	explaining the register ordering preferences.

	2012-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
	* config/rs6000/rs6000.md (movdf_hardfloat32): Reorder move
	constraints so that the traditional floating point loads, stores,
	and moves are done first, then the VSX loads, stores, and moves,
	and finally the GPR loads, stores, and moves so that reload
	chooses FPRs over GPRs, and uses the traditional load/store
	instructions which provide an offset.
	(movdf_hardfloat64): Likewise.

From-SVN: r193708
2012-11-21 21:01:15 +00:00
Jakub Jelinek fdb06792a1 re PR libgomp/55411 (OMP threads lose their OMP_WAIT_POLICY when another OMP thread gets destructed)
PR libgomp/55411
	* team.c (gomp_free_thread): Decrease gomp_managed_threads
	if pool had any threads_used.

From-SVN: r193707
2012-11-21 21:31:31 +01:00
GCC Administrator 924d4b8e27 Daily bump.
From-SVN: r193683
2012-11-21 00:18:18 +00:00
Paolo Carlini c6cd85dd7a re PR libstdc++/55413 ([LTO] hashtable.h:1648 '__bbegin_bkt' may be used uninitialized in this function [-Werror=maybe-uninitialized])
2012-11-20  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/55413
	* include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Initialize
	__bbegin_bkt and __prev_bkt to avoid uninitialized warnings.
	* testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
	dg-error line number.

From-SVN: r193664
2012-11-20 14:54:36 +00:00
GCC Administrator 15451fa5c7 Daily bump.
From-SVN: r193642
2012-11-20 00:18:00 +00:00
H.J. Lu 7b7d1fb9b2 Workaround PR middle-end/55142
gcc/

2012-11-19  H.J. Lu  <hongjiu.lu@intel.com>

	Backported from mainline
	2012-11-13  Eric Botcazou  <ebotcazou@adacore.com>
		    H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/55142
	* config/i386/i386.c (legitimize_pic_address): Properly handle
	REG + CONST.
	(ix86_print_operand_address): Set code to 'k' when forcing
	addr32 prefix.  For x32, zero-extend negative displacement if
	it < -16*1024*1024.

gcc/testsuite/

2012-11-19  H.J. Lu  <hongjiu.lu@intel.com>

	Backported from mainline
	2012-11-13  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/55142
	* gcc.target/i386/pr55142-1.c: New file.
	* gcc.target/i386/pr55142-2.c: Likewise.

From-SVN: r193635
2012-11-19 11:17:05 -08:00
Ian Lance Taylor ffafac224c reflect: Fix invalid sharing in valueInterface.
From-SVN: r193613
2012-11-19 05:33:54 +00:00
GCC Administrator abafcfe5c4 Daily bump.
From-SVN: r193609
2012-11-19 00:18:50 +00:00
GCC Administrator 12b4674ac9 Daily bump.
From-SVN: r193593
2012-11-18 00:18:13 +00:00
GCC Administrator 5f0772e67a Daily bump.
From-SVN: r193579
2012-11-17 00:17:57 +00:00
Ian Lance Taylor dd4be52d2f compiler: don't remove floating point conversion of typed constant
From-SVN: r193566
2012-11-16 16:30:56 +00:00
GCC Administrator b346b9f105 Daily bump.
From-SVN: r193545
2012-11-16 00:17:48 +00:00
Jonathan Wakely dd93b041b9 re PR libstdc++/53841 ([C++11] condition_variable::wait_until() fails with high resolution clocks)
PR libstdc++/53841
	* include/std/condition_variable (condition_variable::wait_until):
	Handle clocks with higher resolution than __clock_t.
	* testsuite/30_threads/condition_variable/members/53841.cc: New.

From-SVN: r193528
2012-11-15 01:56:05 +00:00
Jonathan Wakely df81ff8600 re PR libstdc++/55320 (Invalid delete with throwing copy-c'tor passed to std::function)
PR libstdc++/55320
	* include/std/functional (function::function(F)): Set _M_manager after
	operations that could throw.
	(_Function_base::_Ref_manager::_M_init_functor): Use addressof.
	* include/tr1/functional
	(_Function_base::_Ref_manager::_M_init_functor): Use addressof.
	(_Function_base::_Base_manager::_M_get_pointer): Likewise.
	* testsuite/20_util/function/cons/55320.cc: New.
	* testsuite/20_util/function/cons/addressof.cc: New.
	* testsuite/20_util/bind/ref_neg.cc: Adjust dg-error line numbers.
	* testsuite/tr1/3_function_objects/function/10.cc: New.

From-SVN: r193520
2012-11-15 00:21:09 +00:00
GCC Administrator d08c2ffe91 Daily bump.
From-SVN: r193518
2012-11-15 00:18:13 +00:00
GCC Administrator 4b2b87c310 Daily bump.
From-SVN: r193493
2012-11-14 00:17:49 +00:00
GCC Administrator b1df5a4e94 Daily bump.
From-SVN: r193462
2012-11-13 00:18:08 +00:00
Jonathan Wakely de6bccb659 future (atomic_future): Remove declaration of non-standard name.
* include/std/future (atomic_future): Remove declaration of
	non-standard name.

From-SVN: r193460
2012-11-12 23:56:22 +00:00
Eric Botcazou 84bbaa7f05 common.opt (fvar-tracking-uninit): Document.
* common.opt (fvar-tracking-uninit): Document.
	* toplev.c (process_options): Fix handling of flag_var_tracking_uninit.
	* config/darwin.c (darwin_override_options): Likewise.

From-SVN: r193458
2012-11-12 23:00:53 +00:00
GCC Administrator c3042ac6ae Daily bump.
From-SVN: r193421
2012-11-12 00:17:02 +00:00
Eric Botcazou e1cb562b67 sparc.h (AS_NIAGARA3_FLAG): Tweak.
* config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak.
	* config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto.

From-SVN: r193417
2012-11-11 21:56:39 +00:00
GCC Administrator 501581604f Daily bump.
From-SVN: r193398
2012-11-11 00:17:26 +00:00
Ian Lance Taylor 0394975521 reflect: Fix bug comparing struct field types.
From-SVN: r193396
2012-11-10 20:27:41 +00:00
GCC Administrator 49a8acf81e Daily bump.
From-SVN: r193384
2012-11-10 00:17:30 +00:00
Eric Botcazou 8106bd84f0 * doc/install.texi (sparc64-x-solaris2): Mention MPC as well.
From-SVN: r193378
2012-11-09 21:53:01 +00:00
Eric Botcazou 81a3eeb035 re PR other/52438 (Some files still GPLv2)
PR other/52438
	* s-taspri-lynxos.ads: Delete.
	* s-osinte-kfreebsd-gnu.ads: Change license to GPL V3+.
	* s-tpopsp-rtems.adb: Likewise.
	* s-osinte-rtems.adb: Likewise.

From-SVN: r193376
2012-11-09 21:42:21 +00:00
Eric Botcazou 6bbb3874a0 i386.c (release_scratch_register_on_entry): Also adjust sp_offset manually.
* config/i386/i386.c (release_scratch_register_on_entry): Also adjust
	sp_offset manually.

From-SVN: r193353
2012-11-09 09:13:25 +00:00
GCC Administrator dc9040d883 Daily bump.
From-SVN: r193346
2012-11-09 00:17:35 +00:00
François Dumont 52d25137ac re PR libstdc++/54075 ([4.7.1] unordered_map insert still slower than 4.6.2)
2012-11-08  François Dumont  <fdumont@gcc.gnu.org>

	PR libstdc++/54075
	* include/bits/hashtable.h (_Hashtable<>::rehash): Reset hash
	policy state if no rehash.
	* testsuite/23_containers/unordered_set/modifiers/reserve.cc
	(test02): New.

From-SVN: r193335
2012-11-08 20:06:00 +00:00
Uros Bizjak d553cd79e4 backport: i386.c (ix86_init_machine_status): Do not explicitly clear tls_descriptor_call_expanded_p again.
Backport from mainline
	2012-11-06  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_init_machine_status): Do not
	explicitly clear tls_descriptor_call_expanded_p again.

	2012-11-06  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/sse.md
	(<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Mark operand 0
	as read and written by the instruction.

	2012-11-06  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define.
	(ix86_instantiate_decls): New function.
	(ix86_expand_builtin) <case IX86_BUILTIN_LDMXCSR>: Use SLOT_TEMP
	stack slot instead of SLOT_VIRTUAL.
	<case IX86_BUILTIN_STMXCSR>: Ditto.
	(assign_386_stack_local): Do not assert when virtual slot is valid.
	* config/i386/i386.h (enum ix86_stack_slot): Remove SLOT_VIRTUAL.
	* config/i386/i386.md (truncdfsf2): Do not use SLOT_VIRTUAL stack slot.
	(truncxf<mode>2): Ditto.
	(floatunssi<mode>2): Ditto.
	(isinf<mode>2): Ditto.
	* config/i386/sync.md (atomic_load<mode>): Ditto.
	(atomic_store<mode>): Ditto.

From-SVN: r193333
2012-11-08 18:38:25 +01:00
Jonathan Wakely f9f07ad526 iterator_tracker.h (operator++): Fix returning dangling reference.
* include/profile/iterator_tracker.h (operator++): Fix returning
	dangling reference.
	(operator--): Likewise.

From-SVN: r193324
2012-11-08 09:24:59 +00:00
GCC Administrator ab821b6556 Daily bump.
From-SVN: r193320
2012-11-08 00:17:31 +00:00
Eric Botcazou afcf008998 re PR middle-end/55219 (memory explosion on nested conditional expressions)
PR middle-end/55219
	* fold-const.c (fold_binary_op_with_conditional_arg): Do not fold if
	the argument is itself a conditional expression.

From-SVN: r193313
2012-11-07 22:28:32 +00:00
GCC Administrator 709eb75ede Daily bump.
From-SVN: r193274
2012-11-07 00:18:07 +00:00
Jonathan Wakely 27de666430 55123.cc: Remove duplicate include.
* testsuite/20_util/shared_ptr/cons/55123.cc: Remove duplicate
	include.

From-SVN: r193266
2012-11-06 23:07:12 +00:00
Jonathan Wakely 7f2deeca1d * testsuite/*: Fix copying permission statements.
From-SVN: r193265
2012-11-06 23:07:01 +00:00
Janus Weil a2cbcef902 re PR fortran/54917 ([OOP] TRANSFER on polymorphic variable causes ICE)
2012-11-06  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/54917
	* target-memory.c (gfc_target_expr_size,gfc_target_interpret_expr):
	Handle BT_CLASS.

2012-11-06  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/54917
	* gfortran.dg/transfer_class_1.f90: New.

From-SVN: r193262
2012-11-06 23:44:47 +01:00
GCC Administrator c38fb4c122 Daily bump.
From-SVN: r193200
2012-11-06 00:17:41 +00:00
H.J. Lu fba487debb Replace REX_INT_REG_P with REX_INT_REGNO_P
* config/i386/i386.c (print_reg): Replace REX_INT_REG_P with
	REX_INT_REGNO_P.

From-SVN: r193198
2012-11-05 16:08:36 -08:00
Benjamin Kosnik 2664caca92 re PR libstdc++/28811 (--with-pic vs static libraries and libstdc++)
2012-11-05  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/28811
        PR libstdc++/54482
        * configure.ac (glibcxx_lt_pic_flag,
          glibcxx_compiler_pic_flag,
          glibcxx_compiler_shared_flag): New. Use them.
        (lt_prog_compiler_pic_CXX): Set via glibcxx_*_flag(s) above.
        (pic_mode): Set to default.
        (PIC_CXXFLAGS): Remove.
        * Makefile.am (PICFLAG, PICFLAG_FOR_TARGET): Remove. Comment.
        * libsupc++/Makefile.am: Use glibcxx_ld_pic_flag and
          glibcxx_compiler_shared_flag. Comment.
        * src/c++11/Makefile.am: Same.
        * src/c++98/Makefile.am: Same.
        * src/Makefile.am: Use glibcxx_compiler_pic_flag.

        * Makefile.in: Regenerated.
        * aclocal.m4: Same.
        * configure: Same.
        * doc/Makefile.in: Same.
        * include/Makefile.in: Same.
        * libsupc++/Makefile.in: Same.
        * po/Makefile.in: Same.
        * python/Makefile.in: Same.
        * src/Makefile.in: Same.
        * src/c++11/Makefile.in: Same.
        * src/c++98/Makefile.in: Same.
        * testsuite/Makefile.in: Same.

        * src/c++11/compatibility-atomic-c++0x.cc: Use
          _GLIBCXX_SHARED instead of PIC to designate shared-only
          code blocks.
        * src/c++11/compatibility-c++0x.cc: Same.
        * src/c++11/compatibility-thread-c++0x.cc: Same.
        * src/c++98/compatibility-list-2.cc: Same.
        * src/c++98/compatibility.cc: : Same.

        * testsuite/17_intro/shared_with_static_deps.cc: New.

        * doc/xml/manual/build_hacking.xml: Separate configure from
        make/build issues, add build details.

From-SVN: r193195
2012-11-05 23:42:32 +00:00
Benjamin Kosnik e787567a1e re PR libstdc++/55028 (_GLIBCXX_DEBUG is broken when using v7 namespace)
2012-11-05  Benjamin Kosnik  <bkoz@redhat.com>
            Oleg Smolsky  <oleg@smolsky.net>

	PR libstdc++/55028
	*  config/abi/pre/gnu-versioned-namespace.ver: Add symbols.
	* testsuite/23_containers/unordered_multimap/insert/55028-debug.cc: New.

From-SVN: r193191
2012-11-05 21:53:31 +00:00
Benjamin Kosnik fa0dd50999 re PR libstdc++/55028 (_GLIBCXX_DEBUG is broken when using v7 namespace)
2012-11-05  Benjamin Kosnik  <bkoz@redhat.com>
            Oleg Smolsky  <oleg@smolsky.net>

	PR libstdc++/55028
	*  config/abi/pre/gnu-versioned-namespace.ver: Add symbols.
	* testsuite/23_containers/unordered_multimap/insert/55028-debug.cc: New.


Co-Authored-By: Oleg Smolsky <oleg@smolsky.net>

From-SVN: r193190
2012-11-05 21:52:28 +00:00
Eric Botcazou e2b588eb80 re PR tree-optimization/54986 (segfault on constant initialized to object address at -O)
PR tree-optimization/54986
	* gimple-fold.c (canonicalize_constructor_val): Strip again all no-op
	conversions on entry but add them back on exit if needed.

From-SVN: r193189
2012-11-05 21:41:32 +00:00
Paolo Carlini f0c435c3c4 re PR libstdc++/55215 (Constructor seeding is broken for Mersenne twister)
2012-11-05  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/55215
	* include/bits/random.tcc (mersenne_twister_engine<>::seed(_Sseq&)):
	Assign state_size to _M_p.
	* testsuite/26_numerics/random/mersenne_twister_engine/cons/55215.cc:
	New.
	* testsuite/26_numerics/random/independent_bits_engine/cons/55215.cc:
	Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/55215.cc:
	Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
	55215.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/55215.cc:
	Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/cons/
	55215.cc: Likewise.

From-SVN: r193183
2012-11-05 20:11:32 +00:00
Richard Sandiford c6c394a6db re PR target/55204 (ICE: in extract_insn, at recog.c:2140 (unrecognizable insn) with -O --param loop-invariant-max-bbs-in-loop=0)
gcc/
	PR target/55204
	* config/i386/i386.c (ix86_address_subreg_operand): Remove stack
	pointer check.
	(print_reg): Use true_regnum rather than REGNO.
	(ix86_print_operand_address): Remove SUBREG handling.

From-SVN: r193179
2012-11-05 18:55:35 +00:00
Jakub Jelinek 5c61050792 backport: re PR debug/54828 (ICE in based_loc_descr at dwarf2out.c:10560 with -g -O0)
Backported from mainline
	2012-10-24  Jakub Jelinek  <jakub@redhat.com>

	PR debug/54828
	* gimple.h (is_gimple_sizepos): New inline function.
	* gimplify.c (gimplify_one_sizepos): Use it.  Remove useless
	final assignment to expr variable.
	* tree.c (RETURN_TRUE_IF_VAR): Return true also if
	!TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
	into a local temporary.

	* g++.dg/debug/pr54828.C: New test.

From-SVN: r193166
2012-11-05 16:09:28 +01:00
Jakub Jelinek 740ee7c578 backport: re PR c++/54988 (fpmath=sse target pragma causes inlining failure because of target specific option mismatch)
Backported from mainline
	2012-10-23  Jakub Jelinek  <jakub@redhat.com>

	PR c++/54988
	* decl2.c (cplus_decl_attributes): Don't return early
	if attributes is NULL.

	* c-c++-common/pr54988.c: New test.

From-SVN: r193165
2012-11-05 16:07:14 +01:00
Jakub Jelinek 8f47a0b0bb backport: re PR tree-optimization/54877 (ICE: tree check: expected ssa_name, have real_cst in copy_ssa_name_fn, at tree-ssanames.c:335)
Backported from mainline
	2012-10-10  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/54877
	* tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
	use make_ssa_name instead of copy_ssa_name.

	* gcc.dg/torture/pr54877.c: New test.

From-SVN: r193164
2012-11-05 16:05:42 +01:00
GCC Administrator 7f59119bf4 Daily bump.
From-SVN: r193148
2012-11-05 00:17:58 +00:00
Uros Bizjak 78a9945ce8 re PR target/55175 (i386/sfp-exceptions.c:52:7: error: impossible constraint in 'asm')
PR target/55175
	* config/i386/32/sfp-machine.h: Guard exception handling and
	rounding handling code with _SOFT_FLOAT.
	* config/i386/64/sfp-machine.h: Ditto.

From-SVN: r193140
2012-11-04 19:58:29 +01:00
GCC Administrator daf2e7a6bd Daily bump.
From-SVN: r193131
2012-11-04 00:17:45 +00:00
Peter Bergner 6aaedacf29 backport: re PR middle-end/53708 (Many failures of the objc tests with -O3 -fnext-runtime and -m32)
Backport from mainline
	2012-10-31  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/53708
	* tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
	user-supplied alignment when used with an explicit section name.

From-SVN: r193121
2012-11-03 09:02:13 -05:00
GCC Administrator 7bec361c90 Daily bump.
From-SVN: r193114
2012-11-03 00:17:33 +00:00
Jeff Law e8b6f29ec1 re PR tree-optimization/54985 (dom optimization erroneous remove conditional goto.)
PR tree-optimization/54985
        * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted
        from thread_across_edge.
        (thread_across_edge): Use it in all cases where we might thread
        across a back edge.

        * gcc.c-torture/execute/pr54985.c: New test.

From-SVN: r193108
2012-11-02 14:19:16 -06:00
Paolo Carlini e54acbedb8 re PR libstdc++/55169 (std::discrete_distribution::operator(generator&) makes unnecessary copy of parameter vector)
2012-11-02  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/55169
	* include/bits/random.h: Remove all uses of param().

From-SVN: r193093
2012-11-02 11:18:13 +00:00
GCC Administrator 07d3e2d95f Daily bump.
From-SVN: r193081
2012-11-02 00:17:53 +00:00
Haakan Younes 7174ef9327 re PR libstdc++/55047 (operator() in std::exponential_distribution may call log(0))
2012-11-01   Haakan Younes  <hyounes@google.com>
	     Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/55047
	* include/bits/random.h (exponential_distribution<>::operator):
	Fix formula to std::log(result_type(1) - __aurng()).
	* include/bits/random.tcc: Likewise, everywhere.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r193070
2012-11-01 21:09:51 +00:00
GCC Administrator 8a3094f6fd Daily bump.
From-SVN: r193055
2012-11-01 00:18:17 +00:00
Eric Botcazou 93631c2a75 i386.c (ix86_expand_prologue): Emit frame info for the special register pushes before frame probing and allocation.
* config/i386/i386.c (ix86_expand_prologue): Emit frame info for the
	special register pushes before frame probing and allocation.

From-SVN: r193045
2012-10-31 20:12:40 +00:00
Ralf Corsepius 71773a8a55 t-rtems: New (Custom multilibs).
2012-10-31  Ralf Corsépius  <ralf.corsepius@rtems.org>,
	    Joel Sherrill  <joel.sherrill@oarcorp.com>

	* config/sparc/t-rtems: New (Custom multilibs).
	* config/sparc/t-rtems-64: New (Custom multilibs).
	* config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64.
	(sparc-*-rtems*): Add sparc/t-rtems.

Co-Authored-By: Joel Sherrill <joel.sherrill@oarcorp.com>

From-SVN: r193019
2012-10-31 06:07:16 +01:00
Joel Sherrill 6b0f1d1cdb config.host (m32r-*-rtems*): Include crtinit.o and crtfinit.o as extra_parts.
2012-10-31  Joel Sherrill  <joel.sherrill@oarcorp.com>

	* config.host (m32r-*-rtems*): Include crtinit.o and crtfinit.o
	as extra_parts.

From-SVN: r193011
2012-10-31 03:19:36 +01:00
Ian Lance Taylor a2fbd81dee compiler: Add -fgo-relative-import-path.
* lang.opt (-fgo-relative-import-path): New option.
	* go-lang.c (go_relative_import_path): New static variable.
	(go_langhook_init): Pass go_relative_import_path to
	go_create_gogo.
	(go_langhook_handle_option): Handle -fgo-relative-import-path.
	* go-c.h (go_create_gogo): Update declaration.
	* gccgo.texi (Invoking gccgo): Document
	-fgo-relative-import-path.

From-SVN: r193007
2012-10-31 00:38:29 +00:00
GCC Administrator 285d59687b Daily bump.
From-SVN: r193005
2012-10-31 00:18:34 +00:00
Eric Botcazou 6b8ea8e946 cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in head comment.
* cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in
	head comment.
	(hash_rtx): Likewise.

From-SVN: r193002
2012-10-30 23:08:26 +00:00
Eric Botcazou 6eb2f5a434 * gcc-interface/Make-lang.in: Fix and clean up rules for C files.
From-SVN: r192999
2012-10-30 22:54:22 +00:00
GCC Administrator 1d4968c8d5 Daily bump.
From-SVN: r192974
2012-10-30 00:17:33 +00:00
Jonathan Wakely 3eca34de2f re PR libstdc++/55123 ([C++11] Construction of shared_ptr<const T> from unique_ptr<const T> fails)
PR libstdc++/55123
        * include/bits/shared_ptr_base.h (__shared_count::_S_create_from_up):
        Do not instantiate allocator with element_type.
        * testsuite/20_util/shared_ptr/cons/55123.cc: New.

From-SVN: r192965
2012-10-29 21:56:12 +00:00
Eric Botcazou 981623f1c9 re PR ada/53517 (gnat.dg/lto14.adb FAILs)
PR ada/53517
	* gnat.dg/lto14.adb: Skip on Solaris.

From-SVN: r192911
2012-10-29 09:37:30 +00:00
Terry Guo a42223d11d backport: arm.c (arm_arch6m): New variable to denote armv6-m architecture.
Backport from mainline
	2012-10-11  Terry Guo  <terry.guo@arm.com>

	* config/arm/arm.c (arm_arch6m): New variable to denote armv6-m
	architecture.
	* config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB
	instruction.

From-SVN: r192907
2012-10-29 06:44:23 +00:00
GCC Administrator f349417c4c Daily bump.
From-SVN: r192902
2012-10-29 00:17:58 +00:00
GCC Administrator 1c1f8a8573 Daily bump.
From-SVN: r192883
2012-10-28 00:17:58 +00:00
GCC Administrator e6ccd8bbc2 Daily bump.
From-SVN: r192869
2012-10-27 00:17:48 +00:00
Gunther Nikl d65c1e520d Author: Gunther Nikl <gnikl@users.sourceforge.net>
* common/config/m68k/m68k-common.c (m68k_handle_option): Set
gcc_options fields of opts_set for -m68020-40 and -m68020-60.

From-SVN: r192858
2012-10-26 19:08:22 +00:00
Paolo Carlini 712984a86d re PR c++/54984 (Array allocated with new in a template class is default initialised)
/cp
2012-10-26  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/54984
	* init.c (build_new): Don't turn a null *init into a pointer to
	empty vector orig_init.

/testsuite
2012-10-26  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/54984
	* g++.dg/template/new11.C: New.

From-SVN: r192847
2012-10-26 14:19:44 +00:00
Ralf Corsepius af58de334c t-rtems: Revert previous commit.
2012-10-26  Ralf Corsépius  <ralf.corsepius@rtems.org>

	* config/avr/t-rtems: Revert previous commit.

From-SVN: r192839
2012-10-26 10:08:35 +02:00
Terry Guo 03e4d0ebe3 gcc/ChangeLog
Backport from mainline
	2012-10-23  Terry Guo  <terry.guo@arm.com>

	PR target/55019
	* config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with
	live argument regs.

	gcc/testsuite/ChangeLog
	Backport from mainline
	2012-10-23  Terry Guo  <terry.guo@arm.com>

	PR target/55019
	* gcc.dg/pr55019.c: New.

From-SVN: r192831
2012-10-26 02:12:06 +00:00
Ralf Corsepius 00b763f2e5 rtems.h (TARGET_OS_CPP_BUILTINS): Remove __USE_INIT_FINI__.
2012-10-26  Ralf Corsépius  <ralf.corsepius@rtems.org>

	* config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
	__USE_INIT_FINI__.
	* config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.

From-SVN: r192829
2012-10-26 03:01:12 +02:00
GCC Administrator 5821673b3a Daily bump.
From-SVN: r192826
2012-10-26 00:18:19 +00:00
Ralf Corsepius 094c692cf3 config.gcc (microblaze*-*-rtems*): New target.
2012-10-25  Ralf Corsépius  <ralf.corsepius@rtems.org>

	* config.gcc (microblaze*-*-rtems*): New target.
	* config/microblaze/rtems.h: New.
	* config/microblaze/t-rtems: New.

From-SVN: r192816
2012-10-25 18:47:51 +02:00
Ralf Corsepius ea16ee6261 config.host (sparc64-*-rtems*): Remove sparc/t-elf.
2012-10-25  Ralf Corsépius <ralf.corsepius@rtems.org>

	* config.host (sparc64-*-rtems*): Remove sparc/t-elf.

From-SVN: r192806
2012-10-25 14:08:12 +02:00
Richard Biener 29a845dc15 re PR target/54902 (, ICE (segfault) building on arm-linux-gnueabi)
2012-10-25  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/54902
	* tree-ssa-pre.c (fini_pre): Return TODO.
	(execute_pre): Adjust.
	* tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable
	blocks before computing dominators.

	* g++.dg/torture/pr54902.C: New testcase.

From-SVN: r192803
2012-10-25 11:05:43 +00:00
Ralf Corsepius fc99d8656b config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts.
2012-10-25  Ralf Corsépius <ralf.corsepius@rtems.org>

	* config.host (sh*-*-rtems*): Add sh*-*-elf*'s extra_parts.

From-SVN: r192800
2012-10-25 10:08:56 +02:00
Sebastian Huber 93e7991a06 config.host (powerpc-*-rtems*): Add rs6000/t-savresfgpr to tmake_file.
2012-10-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	* config.host (powerpc-*-rtems*): Add rs6000/t-savresfgpr to
	tmake_file.

From-SVN: r192796
2012-10-25 05:30:57 +02:00
GCC Administrator 779edb4e96 Daily bump.
From-SVN: r192791
2012-10-25 00:18:44 +00:00
Ian Lance Taylor 9bd99ccd67 mksysinfo: Define SIGPOLL and SIGCLD if necessary.
From-SVN: r192776
2012-10-24 19:01:27 +00:00
Uros Bizjak deffe99efe backport: i386.c (memory_address_length): Assert that non-null base or index RTXes are registers.
Backport from mainline
	2012-10-22  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (memory_address_length): Assert that non-null
	base or index RTXes are registers.  Do not check for REG RTXes.
	Determine addr32 prefix using SImode_address_operand or
	from original base and index RTXes.  Simplify code.

	2012-10-21  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386-protos.h (memory_address_length): Add new bool
	argument.  Update all uses.
	* config/i386/i386.c (memory_address_length): If not LEA insn, then
	add length of addr32 prefix based on mode of base or index register.
	(ix86_attr_length_address_default) <TYPE_LEA>: Do not handle SImode
	addresses here.  Update call to memory_address_length.
	(ix86_print_address_operand): Use SImode_address_operand predicate.
	* config/i386/predicates.md (SImode_address_operand): New.
	* config/i386/i386.md (lea<mode>): Use SImode_address_operand
	to calculate "mode" attribute.  Use SImode_address_operand predicate
	instead of open-coding accepted RTX codes.

From-SVN: r192769
2012-10-24 17:27:47 +02:00
GCC Administrator 2264a88151 Daily bump.
From-SVN: r192752
2012-10-24 00:18:02 +00:00
Ian Lance Taylor f8dcfbd5cb re PR go/54918 (libgo.so.0 is not runtime compatible between gcc-4.6.2 and gcc-4.7.x)
PR go/54918
Revert previous patch: do not change libgo SONAME on branch.

From-SVN: r192738
2012-10-23 18:12:46 +00:00
Ian Lance Taylor ab2bf6271f Set libgo.so version number for GCC 4.7 releases.
From-SVN: r192705
2012-10-23 04:54:57 +00:00
GCC Administrator 808164219d Daily bump.
From-SVN: r192699
2012-10-23 00:17:21 +00:00
Georg-Johann Lay a7680d6f99 backport: invoke.texi (AVR Options): Document __AVR_ARCH__.
Backport from 2012-10-22 trunk r192685.
	* doc/invoke.texi (AVR Options): Document __AVR_ARCH__.
	Note __AVR_<device>__ is not defined for cores.
	Don't point to --help=target.
	Order --mcu= documentation according to trunk:/gcc/doc/avr-mmcu.texi.

From-SVN: r192686
2012-10-22 11:25:37 +00:00
Eric Botcazou 6512d0a570 Makefile.in: Remove outdated comment and reference to non-existing file.
* gcc-interface/Makefile.in: Remove outdated comment and reference to
	non-existing file.

From-SVN: r192683
2012-10-22 10:07:07 +00:00
Eric Botcazou 16efbce4f8 decl.c (gnat_to_gnu_entity): Force BLKmode on the type if it is passed by reference.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Force
	BLKmode on the type if it is passed by reference.
	<E_Array_Subtype>: Likewise.
	<E_Record_Type>: Guard the call to Is_By_Reference_Type predicate.
	<E_Record_Subtype>: Likewise.

From-SVN: r192674
2012-10-22 08:59:32 +00:00
Eric Botcazou f9a6117fd7 trans.c (Loop_Statement_to_gnu): Use gnat_type_for_size directly to obtain an unsigned version of the base type.
* gcc-interface/trans.c (Loop_Statement_to_gnu): Use gnat_type_for_size
	directly to obtain an unsigned version of the base type.

From-SVN: r192670
2012-10-22 08:23:01 +00:00
Eric Botcazou 60333a61a4 decl.c (gnat_to_gnu_entity): Do not generate the special PARM_DECL for an Out parameter in LTO mode.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: Do not
	generate the special PARM_DECL for an Out parameter in LTO mode.

From-SVN: r192668
2012-10-22 08:05:12 +00:00
GCC Administrator 0197fed73a Daily bump.
From-SVN: r192663
2012-10-22 00:17:36 +00:00
Eric Botcazou e17ad136b3 atomic1.ads: XFAIL on MIPS.
* gnat.dg/specs/atomic1.ads: XFAIL on MIPS.
	* gnat.dg/specs/addr1.ads: Likewise.

From-SVN: r192659
2012-10-21 20:30:06 +00:00
GCC Administrator ebd7580ac2 Daily bump.
From-SVN: r192643
2012-10-21 00:17:30 +00:00
GCC Administrator 5fb77e7cb6 Daily bump.
From-SVN: r192627
2012-10-20 00:18:00 +00:00
Marek Polacek 2be96ad1c4 re PR middle-end/54945 (Too strong non-aliasing analysis?)
PR54945

From-SVN: r192618
2012-10-19 17:00:50 +00:00
Zhenqiang Chen b3163c0ad6 gcc/ChangeLog
Backported from mainline
	2012-10-19  Zhenqiang Chen <zhenqiang.chen@linaro.org>

	PR target/54892
	* config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make
	sure the mode is correct when falling through from above cases.

	gcc/testsuite/ChangeLog
	Backported from mainline
	2012-10-19  Zhenqiang Chen <zhenqiang.chen@linaro.org>

	PR target/54892
	* gcc.target/arm/pr54892.c: New.

From-SVN: r192610
2012-10-19 09:39:13 +00:00
GCC Administrator 003316b488 Daily bump.
From-SVN: r192597
2012-10-19 00:18:17 +00:00
Alan Modra 663e4b4952 configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
* configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
	(HAVE_LD_LARGE_TOC): Likewise.
	* configure: Regenerate.

From-SVN: r192594
2012-10-19 09:40:40 +10:30
Alan Modra f056e01be2 predicates.md (splat_input_operand): Don't call input_operand for MEMs.
* config/rs6000/predicates.md (splat_input_operand): Don't call
	input_operand for MEMs.  Instead check for volatile and call
	memory_address_addr_space_p with modified mode.

From-SVN: r192591
2012-10-19 09:10:22 +10:30
GCC Administrator 19d7dab37d Daily bump.
From-SVN: r192551
2012-10-18 00:17:59 +00:00
Matthew Gretton-Dann 79fe2389d4 backport: arm.c (arm_reorg): Ensure all insns are split.
Backported from mainline
	2012-07-23  Ulrich Weigand  <ulrich.weigand@linaro.org>

	* config/arm/arm.c (arm_reorg): Ensure all insns are split.

From-SVN: r192534
2012-10-17 13:30:12 +00:00
GCC Administrator 3e19050d9b Daily bump.
From-SVN: r192521
2012-10-17 00:17:30 +00:00
Eric Botcazou a39f96f0f3 re PR rtl-optimization/54870 (gfortran.dg/array_constructor_4.f90 FAILs)
PR rtl-optimization/54870
	* tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME.
	* cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the
	SSA_NAME pointer that points to a partition if there is at least
	one variable with it set in the partition.
	* dse.c (local_variable_can_escape): New predicate.
	(can_escape): Call it.
	* gimplify.c (mark_addressable): If this is a partitioned decl, also
	mark the SSA_NAME pointer that points to a partition.

From-SVN: r192518
2012-10-16 23:18:08 +00:00
Andrey Belevantsev 46b236b245 backport: re PR rtl-optimization/53701 (ICE on ia64 (when building Allegro 4.4) in sel-sched)
2012-10-16  Andrey Belevantsev  <abel@ispras.ru>

    Backport from mainline
    2012-08-09  Andrey Belevantsev  <abel@ispras.ru>

    PR rtl-optimization/53701
    * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
    Process not only expr's vinsns but all old vinsns from expr's
    history of changes.
    (update_and_record_unavailable_insns): Clarify comment.   

testsuite:
2012-10-16  Andrey Belevantsev  <abel@ispras.ru>

    Backport from mainline
    2012-08-09  Andrey Belevantsev  <abel@ispras.ru>

    PR rtl-optimization/53701
    * gcc.dg/pr53701.c: New test.

From-SVN: r192498
2012-10-16 17:22:22 +04:00
Andrey Belevantsev e2c34fbcce backport: re PR target/53975 ([ia64] Target register of a speculative load moved to a branch register prior to the chk.s instruction)
Backport from mainline
        2012-07-31  Andrey Belevantsev  <abel@ispras.ru>
        PR target/53975

        * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
        Revert
        2011-08-04  Sergey Grechanik  <mouseentity@ispras.ru>
        * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
        only if producer writes to the register given by regno.

From-SVN: r192497
2012-10-16 17:20:30 +04:00
GCC Administrator cdc9bcdb54 Daily bump.
From-SVN: r192485
2012-10-16 00:17:54 +00:00
Uros Bizjak bc5cc98f9b backport: sse.md (UNSPEC_MOVU): Remove.
Backport from mainline
	2012-10-15  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/sse.md (UNSPEC_MOVU): Remove.
	(UNSPEC_LOADU): New.
	(UNSPEC_STOREU): Ditto.
	(<sse>_movu<ssemodesuffix><avxsizesuffix>): Split to ...
	(<sse>_loadu<ssemodesuffix><avxsizesuffix>): ... this and ...
	(<sse>_storeu<ssemodesuffix><avxsizesuffix>) ... this.
	(<sse2>_movdqu<avxsizesuffix>): Split to ...
	(<sse2>_loaddqu<avxsizesuffix>): ... this and ...
	(<sse2>_storedqu<avxsizesuffix>): ... this.
	(*sse4_2_pcmpestr_unaligned): Update.
	(*sse4_2_pcmpistr_unaligned): Ditto.

	* config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use
	gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and
	gen_avx_store{dqu,ups,upd}256 to store to unaligned memory.
	(ix86_expand_vector_move_misalign): Use gen_sse_loadups or
	gen_sse2_load{dqu,upd} to load from unaligned memory and
	gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to
	unaligned memory.
	(struct builtin_description bdesc_spec) <IX86_BUILTIN_LOADUPS>:
	Use CODE_FOR_sse_loadups.
	<IX86_BUILTIN_LOADUPD>: Use CODE_FOR_sse2_loadupd.
	<IX86_BUILTIN_LOADDQU>: Use CODE_FOR_sse2_loaddqu.
	<IX86_BUILTIN_STOREUPS>: Use CODE_FOR_sse_storeups.
	<IX86_BUILTIN_STOREUPD>: Use CODE_FOR_sse2_storeupd.
	<IX86_BUILTIN_STOREDQU>: Use CODE_FOR_sse2_storedqu.
	<IX86_BUILTIN_LOADUPS256>: Use CODE_FOR_avx_loadups256.
	<IX86_BUILTIN_LOADUPD256>: Use CODE_FOR_avx_loadupd256.
	<IX86_BUILTIN_LOADDQU256>: Use CODE_FOR_avx_loaddqu256.
	<IX86_BUILTIN_STOREUPS256>: Use CODE_FOR_avx_storeups256.
	<IX86_BUILTIN_STOREUPD256>: Use CODE_FOR_avx_storeupd256.
	<IX86_BUILTIN_STOREDQU256>: Use CODE_FOR_avx_storedqu256.

testsuite/ChangeLog:

	Bacport from mainline
	2012-10-15  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.target/i386/avx256-unaligned-load-1.c: Update asm scan patterns.
	* gcc.target/i386/avx256-unaligned-load-2.c: Ditto.
	* gcc.target/i386/avx256-unaligned-load-3.c: Ditto.
	* gcc.target/i386/avx256-unaligned-load-4.c: Ditto.
	* gcc.target/i386/avx256-unaligned-store-1.c: Ditto.
	* gcc.target/i386/avx256-unaligned-store-2.c: Ditto.
	* gcc.target/i386/avx256-unaligned-store-3.c: Ditto.
	* gcc.target/i386/avx256-unaligned-store-4.c: Ditto.

From-SVN: r192477
2012-10-15 23:34:24 +02:00
Steven Bosscher f09b3989f4 backport: re PR middle-end/54146 (Very slow compile with attribute((flatten)))
Backport from trunk (r190222):

	PR tree-optimization/54146
	* ifcvt.c: Include pointer-set.h.
	(cond_move_process_if_block): Change type of then_regs and
	else_regs from alloca'd array to pointer_sets.
	(check_cond_move_block): Update for this change.
	(cond_move_convert_if_block): Likewise.
	* Makefile.in: Fix dependencies for ifcvt.o.

From-SVN: r192476
2012-10-15 21:31:57 +00:00
Richard Guenther eb3115f59a re PR tree-optimization/54920 (segfault in tree-ssa-pre.c during Firefox build)
2012-10-15  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/54920
	* tree-ssa-pre.c (create_expression_by_pieces): Properly
	allocate temporary storage for all NARY elements.

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

From-SVN: r192455
2012-10-15 11:28:15 +00:00
GCC Administrator 28355b99d3 Daily bump.
From-SVN: r192444
2012-10-15 00:17:48 +00:00
Janus Weil 3bc01331f4 re PR fortran/54784 ([OOP] wrong code in polymorphic allocation with SOURCE)
2012-10-14  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/54784
	* trans-stmt.c (gfc_trans_allocate): Correctly determine the reference
	to the _data component for polymorphic allocation with SOURCE.

2012-10-14  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/54784
	* gfortran.dg/class_allocate_13.f90: New.

From-SVN: r192442
2012-10-15 00:16:24 +02:00
GCC Administrator 52e5e1fed3 Daily bump.
From-SVN: r192429
2012-10-14 00:17:39 +00:00
GCC Administrator 6110ecedb8 Daily bump.
From-SVN: r192419
2012-10-13 00:18:11 +00:00
Thomas Koenig 3cf28f1e1b re PR libfortran/54736 (GFORTRAN_CONVERT_UNIT causes malloc error on several platforms)
2012-10-12  Thomas König  <tkoenig@gcc.gnu.org>

	PR libfortran/54736
	libgfortran/Changelog:  Fix date of last commit.

From-SVN: r192411
2012-10-12 19:38:04 +00:00
Thomas Koenig d4940512f6 re PR libfortran/54736 (GFORTRAN_CONVERT_UNIT causes malloc error on several platforms)
2012-10-06  Thomas König  <tkoenig@gcc.gnu.org>

	PR libfortran/54736
	Backport from trunk
	* runtime/environ.c (search_unit):  Correct logic
	for binary search.
	(mark_single):  Fix index errors.

From-SVN: r192408
2012-10-12 18:56:16 +00:00
Kirill Yukhin e316491693 Revert r192309.
From-SVN: r192395
2012-10-12 11:00:44 +00:00
GCC Administrator c2d018c34c Daily bump.
From-SVN: r192385
2012-10-12 00:18:41 +00:00
GCC Administrator afa7153465 Daily bump.
From-SVN: r192339
2012-10-11 00:17:38 +00:00
Andrew MacLeod 0c0f36af04 re PR libstdc++/54861 (std::atomic_signal_fence(std::memory_order_seq_cst) issues unnecessary mfence)
2012-10-10  Andrew MacLeod  <amacleod@redhat.com>

	PR libstdc++/54861
	* include/bits/atomic_base.h (atomic_signal_fence): Call
	__atomic_signal_fence instead of __atomic_thread_fence.

From-SVN: r192332
2012-10-10 20:47:39 +00:00
Pavel Chupin 6f8decef4e Fix missing gthr-default.h issue on separate libstdc++ configure
Fix missing gthr-default.h issue on separate libstdc++ configure
        * acinclude.m4: Define glibcxx_thread_h.
        * include/Makefile.am: Use glibcxx_thread_h.
        * Makefile.in: Regenerate.
        * configure: Regenerate.
        * doc/Makefile.in: Regenerate.
        * include/Makefile.in: Regenerate.
        * libsupc++/Makefile.in: Regenerate.
        * po/Makefile.in: Regenerate.
        * python/Makefile.in: Regenerate.
        * src/Makefile.in: Regenerate.
        * src/c++11/Makefile.in: Regenerate.
        * src/c++98/Makefile.in: Regenerate.
        * testsuite/Makefile.in: Regenerate.

From-SVN: r192309
2012-10-10 12:03:39 +00:00
Xuepeng Guo 72dc4b56eb Move my ChangeLog entry to correct place.
From-SVN: r192307
2012-10-10 11:43:07 +00:00
GCC Administrator 8d7652b276 Daily bump.
From-SVN: r192281
2012-10-10 00:18:56 +00:00
GCC Administrator 6dec3900ce Daily bump.
From-SVN: r192233
2012-10-09 00:18:02 +00:00
Joseph Myers 66f6545c41 * es.po: Update.
From-SVN: r192227
2012-10-09 00:02:55 +01:00
Jakub Jelinek 669a155ab8 re PR c++/54858 (ICE in cp_tree_equal)
PR c++/54858
	* tree.c (cp_tree_equal): Handle FIELD_DECL.

	* g++.dg/template/pr54858.C: New test.

From-SVN: r192221
2012-10-08 21:42:06 +02:00
Georg-Johann Lay e951b450f3 re PR target/54854 ([avr] Deprecate and finally remove the -mshort-calls command line option)
PR target/54854
	* doc/invoke.texi (AVR Options): Deprecate -mshort-calls.

From-SVN: r192202
2012-10-08 10:27:15 +00:00
Terry Guo 3792233966 backport: gcc-dg.exp (dg_runtest_extra_prunes): New variable to define extra prune rules that will be applied to all tests in a...
2012-10-08  Terry Guo  <terry.guo@arm.com>

        Backported from mainline
        2012-09-19  Terry Guo  <terry.guo@arm.com>

        * lib/gcc-dg.exp (dg_runtest_extra_prunes): New variable to define
        extra prune rules that will be applied to all tests in a .exp file.
        (gcc-dg-prune): Use rules defined by the above variable.
        * gcc.target/arm/arm.exp (dg_runtest_extra_prunes): Skip all the
        harmless warnings on architecture switch conflict.

From-SVN: r192196
2012-10-08 06:59:40 +00:00
GCC Administrator 9c5476c553 Daily bump.
From-SVN: r192191
2012-10-08 00:17:42 +00:00
GCC Administrator e5de185d52 Daily bump.
From-SVN: r192176
2012-10-07 00:17:26 +00:00
Mark Kettenis a5272b79a3 config.host (*-*-openbsd*): Add t-eh-dw2-dip to tmake_file.
* config.host (*-*-openbsd*): Add t-eh-dw2-dip to tmake_file.
	* unwind-dw2-fde-dip.c: Don't include <elf.h> on OpenBSD.
	(USE_PT_GNU_EH_FRAME): Define for OpenBSD.
	(ElfW): Likewise.

From-SVN: r192172
2012-10-06 21:55:06 +00:00
Gerald Pfeifer e7dc1afc80 Fix date of ChangeLog entry for
* config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set
	default_use_cxa_atexit to yes.

From-SVN: r192171
2012-10-06 21:52:35 +00:00
GCC Administrator caa7ea151e Daily bump.
From-SVN: r192150
2012-10-06 00:17:54 +00:00
Mark Kettenis 78a7058f7f config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set default_use_cxa_atexit to yes.
* config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set
	default_use_cxa_atexit to yes.

From-SVN: r192147
2012-10-05 21:38:10 +00:00
John David Anglin 2cf4e1f83a pa.md: Adjust unamed HImode add insn pattern.
* config/pa/pa.md: Adjust unamed HImode add insn pattern.

From-SVN: r192144
2012-10-05 21:06:18 +00:00
Jakub Jelinek 343fdbcd5e re PR c/33763 (Bogus inlining failed in call to `xxx': redefined extern inline functions are not considered for inlining)
PR tree-optimization/33763
	* tree-inline.c (expand_call_inline): Silently ignore always_inline
	attribute for redefined extern inline functions.

	* c-c++-common/pr33763.c: New test.

From-SVN: r192121
2012-10-05 13:58:46 +02:00
GCC Administrator 28e1fe8584 Daily bump.
From-SVN: r192111
2012-10-05 00:18:02 +00:00
GCC Administrator 431f97ed90 Daily bump.
From-SVN: r192058
2012-10-04 00:17:50 +00:00
H.J. Lu 9193567003 Fix SSE and YMM state support check logic for -march=native
Backported from mainline
	*  config/i386/driver-i386.c (host_detect_local_cpu): Fix logic
	in SSE and YMM state support check for -march=native.

From-SVN: r192045
2012-10-03 10:48:57 -07:00
Jakub Jelinek 5903784808 re PR c++/54777 ([C++11] Comma operator in constexpr environment can cause ICE)
PR c++/54777
	* semantics.c (cxx_eval_constant_expression) <case COMPOUND_EXPR>: If
	not ignoring the second operand, pass the original second operand
	and not one with stripped nops to cxx_eval_constant_expression.

	* g++.dg/cpp0x/constexpr-ref4.C: New test.

From-SVN: r192037
2012-10-03 16:27:30 +02:00
Ian Lance Taylor 4a6385468b libgo: Update to Go 1.0.3.
From-SVN: r192024
2012-10-03 05:27:22 +00:00
Ian Lance Taylor a83a7d5f76 compiler: Fix a, b, c := b, a, 1 when a and b already exist.
From-SVN: r192023
2012-10-03 05:03:33 +00:00
Alexandre Oliva 3c915dc60e re PR debug/53135 (Duplicates cause size explosion (vta/dwarf))
PR debug/53135
* dwarf2out.c (value_format): Use block4 for dw_val_class_loc
when needed.

From-SVN: r192021
2012-10-03 04:02:38 +00:00
GCC Administrator b9d2e78820 Daily bump.
From-SVN: r192017
2012-10-03 00:17:28 +00:00
Ian Lance Taylor d2773ac376 compiler: Fix a couple of type reflection strings.
From-SVN: r192015
2012-10-02 23:50:38 +00:00
Ian Lance Taylor 03e29d198e compiler: Fix parse of (<- chan <- chan <- int)(x).
From-SVN: r192012
2012-10-02 22:22:39 +00:00
H.J. Lu 6c954c6cce Add a blank line in ChangeLog
From-SVN: r192010
2012-10-02 14:25:45 -07:00
H.J. Lu 24cb1e52b7 Document -mprefer-avx128
Backported from mainline
	PR target/54785
	* doc/invoke.texi: Document -mprefer-avx128.

From-SVN: r192008
2012-10-02 14:12:50 -07:00
H.J. Lu 0d224bebca Check SSE and YMM state support for -march=native
Backported from mainline

	PR target/54741
	*  config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New.
	(XSTATE_FP): Likewise.
	(XSTATE_SSE): Likewise.
	(XSTATE_YMM): Likewise.
	(host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if
	SSE and YMM states aren't supported.

From-SVN: r192003
2012-10-02 13:25:04 -07:00
Eric Botcazou aaa8c2f777 decl.c (elaborate_expression_1): Use the variable for bounds of loop iteraration scheme only for locally defined...
* gcc-interfaces/decl.c (elaborate_expression_1): Use the variable for
	bounds of loop iteraration scheme only for locally defined subtypes.

	* gcc-interface/trans.c (build_return_expr): Apply the NRV optimization
	only for BLKmode.

From-SVN: r191972
2012-10-02 10:35:03 +00:00
GCC Administrator d880e5d4da Daily bump.
From-SVN: r191951
2012-10-02 00:17:54 +00:00
Tom de Vries 1497ff5aba var-tracking.c (set_dv_changed): Add an 'inline' function specifier to the prototype.
2012-10-01  Tom de Vries  <tom@codesourcery.com>

	* var-tracking.c (set_dv_changed): Add an 'inline' function specifier to
	the prototype.

From-SVN: r191916
2012-10-01 10:36:12 +00:00
Andreas Krebbel 5c66c9bb11 re PR target/54746 (config/s390/s390.c:1583: possible missing break in switch ?)
2012-10-01  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	PR target/54746
	* config/s390/s390.c (s390_option_override): Add missing break.

From-SVN: r191888
2012-10-01 07:51:20 +00:00
GCC Administrator 394fc1ef46 Daily bump.
From-SVN: r191881
2012-10-01 00:17:25 +00:00
John David Anglin f577bf8bb9 re PR target/54083 (FAIL: gcc.dg/torture/pr53922.c on *-apple-darwin*)
PR target/54083
	* gcc.dg/torture/pr53922.c: Skip on 32-bit hppa-*-hpux*.

From-SVN: r191874
2012-09-30 17:44:04 +00:00
GCC Administrator ae5978a6ca Daily bump.
From-SVN: r191864
2012-09-30 00:17:14 +00:00
Andreas Tobler 81c8cbed3e backport: config.gcc: Replace 'host' with 'target' when configuring for powerpc64*-*-freebsd.
2012-09-29  Andreas Tobler  <andreast@fgznet.ch>

	Backport from mainline
	2012-09-29  Andreas Tobler  <andreast@fgznet.ch>

	* config.gcc: Replace 'host' with 'target' when configuring for
	powerpc64*-*-freebsd.

From-SVN: r191850
2012-09-29 12:30:39 +02:00
GCC Administrator 99a6e25dd1 Daily bump.
From-SVN: r191845
2012-09-29 00:18:11 +00:00
Ian Lance Taylor 041d14a280 compiler: Fix handling of omitted expression in switch.
From-SVN: r191843
2012-09-28 22:20:50 +00:00
Ian Lance Taylor 5a8be4f4ca runtime: Better detection of memory allocation request overflow.
From-SVN: r191840
2012-09-28 21:25:12 +00:00
Meador Inge 76690ca027 backport: gcc-ar.c (main): Handle the returning of the sub-process error code correctly.
2012-09-28  Meador Inge  <meadori@codesourcery.com>

	Backport from mainline
	2012-09-27  Meador Inge  <meadori@codesourcery.com>

	* gcc-ar.c (main): Handle the returning of the sub-process error
	code correctly.

From-SVN: r191836
2012-09-28 18:50:55 +00:00
Georg-Johann Lay f10f176780 backport: avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.
Backport from 2012-09-28 trunk r191821.
	* config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.

From-SVN: r191822
2012-09-28 08:58:36 +00:00
GCC Administrator 0a81a126b0 Daily bump.
From-SVN: r191815
2012-09-28 00:18:04 +00:00
Jakub Jelinek 54730221d5 re PR target/54703 (_mm_sub_pd is incorrectly substituted with vandnps)
PR target/54703
	* simplify-rtx.c (simplify_binary_operation_1): Perform
	(x - (x & y)) -> (x & ~y) optimization only for integral
	modes.

	* gcc.target/i386/pr54703.c: New test.

From-SVN: r191802
2012-09-27 12:53:42 +02:00
Ian Lance Taylor 7c28a6b710 compiler: Better error for missing comma in composite literal.
From-SVN: r191796
2012-09-27 05:41:46 +00:00
GCC Administrator 9c25bd1a06 Daily bump.
From-SVN: r191790
2012-09-27 00:17:28 +00:00
Joseph Myers e33dee3616 * sv.po: Update.
From-SVN: r191778
2012-09-26 22:48:23 +01:00
Joseph Myers 665ebf09a2 * sv.po: Update.
From-SVN: r191777
2012-09-26 22:48:07 +01:00
GCC Administrator c8aacf0a91 Daily bump.
From-SVN: r191749
2012-09-26 00:17:30 +00:00
Joseph Myers 5e477d880f * vi.po: Update.
From-SVN: r191710
2012-09-25 15:01:46 +01:00
Joseph Myers 21c2782c6b be.po, [...]: Update.
* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, hr.po, id.po,
	ja.po, nl.po, ru.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po,
	zh_TW.po: Update.

From-SVN: r191708
2012-09-25 14:59:41 +01:00
GCC Administrator 37d9fcde65 Daily bump.
From-SVN: r191686
2012-09-25 00:17:19 +00:00
Ian Lance Taylor e136ce0b2b compiler: Better warning for switch on non-comparable type.
From-SVN: r191684
2012-09-24 22:21:58 +00:00
Janis Johnson 0fe5130d6b backport: gcc-dg.exp (process-message): Don't ignore errors.
Backport from mainline:

	2012-07-24  Janis Johnson  <janisjo@codesourcery.com>
	* lib/gcc-dg.exp (process-message): Don't ignore errors.

	2012-07-25  Janis Johnson  <janisjo@codesourcery.com>
	* g++.dg/cpp0x/nullptr21.c: Remove printfs, make self-checking.

	2012-07-26  Janis Johnson  <janisjo@codesourcery.com>
	* gcc.dg/pr45259.c: Only -fpic depends on fpic support.

	2012-09-18  Janis Johnson  <janisjo@codesourcery.com>
	* gcc.dg/vect/pr52298.c: Remove "dg-do run".

	2012-09-18  Janis Johnson  <janisjo@codesourcery.com>
	* lib/target-supports.exp
	(check_effective_target_vect_widen_mult_qi_to_hi,
	check_effective_target_vect_widen_mult_hi_to_si,
	check_effective_target_vect_widen_mult_qi_to_hi_pattern,
	check_effective_target_vect_widen_mult_hi_to_si_pattern,
	check_effective_target_vect_pack_trunc,
	check_effective_target_vect_unpack,
	check_effective_target_vect_multiple_sizes): Check arm_neon_ok
	instead of arm_none.

	2012-09-18  Janis Johnson  <janisjo@codesourcery.com>
	* gcc.dg/vect/no-vfa-vect-101.c: Skip a check for an irrelevant
	target instead of xfailing it.
	* gcc.dg/vect/no-vfa-vect-102.c: Likewise.
	* gcc.dg/vect/no-vfa-vect-102a.c: Likewise.
	* gcc.dg/vect/no-vfa-vect-37.c: Likewise.
	* gcc.dg/vect/no-vfa-vect-79.c: Likewise.
	* gcc.dg/vect/vect-104.c: Likewise.
	* gcc.dg/vect/vect-outer-1-big-array.c: Likewise.
	* gcc.dg/vect/vect-outer-1.c: Likewise.
	* gcc.dg/vect/vect-outer-1a-big-array.c: Likewise.
	* gcc.dg/vect/vect-outer-1a.c: Likewise.
	* gcc.dg/vect/vect-outer-1b-big-array.c: Likewise.
	* gcc.dg/vect/vect-outer-1b.c: Likewise.
	* gcc.dg/vect/vect-outer-2b.c: Likewise.
	* gcc.dg/vect/vect-outer-3a-big-array.c: Likewise.
	* gcc.dg/vect/vect-outer-3a.c: Likewise.
	* gcc.dg/vect/vect-outer-3b.c: Likewise.
	* gcc.dg/vect/vect-reduc-dot-s8b.c: Likewise.

	2012-09-18  Janis Johnson  <janisjo@codesourcery.com>
	* gcc.dg/vect/fast-math-pr35982.c: Skip check instead of xfail.

From-SVN: r191674
2012-09-24 17:25:39 +00:00
Eric Botcazou 4a8e76968b tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in TYPE_NONALIASED_COMPONENT flag.
* tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in
	TYPE_NONALIASED_COMPONENT flag.
	* tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out
	TYPE_NONALIASED_COMPONENT flag.

From-SVN: r191663
2012-09-24 10:27:45 +00:00
GCC Administrator 2670b6aaf7 Daily bump.
From-SVN: r191656
2012-09-24 00:17:25 +00:00
GCC Administrator ad32d52b97 Daily bump.
From-SVN: r191647
2012-09-23 00:17:21 +00:00
John David Anglin 0b9e7149fd backport: re PR testsuite/54007 (lto15.adb fails: gnat1: error: LTO support has not been enabled in this configuration)
Backport from mainline:
	2012-09-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR testsuite/54007
	* gnat.dg/lto15.adb: Require lto.

From-SVN: r191644
2012-09-22 16:46:29 +00:00
Ian Lance Taylor 2a12271b4e runtime: Reject surrogate pairs in range over string.
From-SVN: r191639
2012-09-22 07:19:09 +00:00
Ian Lance Taylor 3fe3530d07 compiler, runtime: Reject surrogate pair converting int to string.
From-SVN: r191637
2012-09-22 06:52:18 +00:00
Ian Lance Taylor 74e0597fba compiler: No error if shift operand inherits interface type.
From-SVN: r191635
2012-09-22 06:33:35 +00:00
Ian Lance Taylor dee1ca6060 runtime: Return random number of hash of NaN.
From-SVN: r191633
2012-09-22 06:06:53 +00:00
Ian Lance Taylor c8a36a9903 compiler: Fix determining types for builtin complex function.
From-SVN: r191631
2012-09-22 06:02:51 +00:00
Ian Lance Taylor 7fe6b90c9c compiler: Fix unnamed struct type converted to interface type.
From-SVN: r191628
2012-09-22 01:15:48 +00:00
GCC Administrator 71873eb83b Daily bump.
From-SVN: r191624
2012-09-22 00:17:03 +00:00
Ian Lance Taylor aec98d58e1 compiler: Better error messages for single- and multiple- value.
From-SVN: r191622
2012-09-21 22:11:36 +00:00
Ian Lance Taylor 6f1f316a78 compiler: Better error message if method requires pointer receiver.
From-SVN: r191620
2012-09-21 21:07:36 +00:00
Ian Lance Taylor 99070a1db6 compiler: len(<-c) is not a constant.
From-SVN: r191617
2012-09-21 17:48:42 +00:00
Richard Guenther 42001763ab re PR middle-end/54638 (bootstraping 4.7.2 with 4.8 broken: cc1: malloc(): memory corruption)
2012-09-21  Richard Guenther  <rguenther@suse.de>

	PR middle-end/54638
	Backport from mainline
	2012-04-19  Richard Guenther  <rguenther@suse.de>

	* ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
	array access.

From-SVN: r191605
2012-09-21 10:08:35 +00:00
Benjamin Kosnik 24f23714fc PR libstdc++/54102, part 2
2012-09-20  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/54102, part 2
	* doc/Makefile.am (XSL_HTML_STYLE): use xhtml, not html.
	* doc/Makefile.in: Regenerate.
	* doc/html/*: Same.

2012-09-20  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/html/*: Regenerate.

2012-09-20  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/54102
	* doc/xsl/customization.xsl.in: New.
	* configure.ac: Output local copy of customization xsl.
	* doc/Makefile.am (stamp-html-single-docbook): Use XSL_LOCAL_STYLE.
	(stamp-html-docbook): Set stringparam to UTF-8.
	* Makefile.in: Regenerated.
	* configure: Same.
	* doc/Makefile.in: Same.

From-SVN: r191603
2012-09-21 06:29:32 +00:00
GCC Administrator e76b5ac4aa Daily bump.
From-SVN: r191598
2012-09-21 00:17:59 +00:00
Eric Botcazou 988fa69a51 opt20.ads: Move dg directive to...
* gnat.dg/opt20.ads: Move dg directive to...
	* gnat.dg/opt20.adb: ...here.
	* gnat.dg/addr1.ad[sb]: Likewise.
	* gnat.dg/concat2.ad[sb]: Likewise.
	* gnat.dg/array16.ad[sb]: Likewise.
	* gnat.dg/atomic5.ad[sb]: Likewise.
	* gnat.dg/discr29.ad[sb]: Likewise.
	* gnat.dg/noreturn5.ad[sb]: Likewise.
	* gnat.dg/vect8.ad[sb]: Likewise.  Add dg-options.
	* gnat.dg/discr23.ads: Remove dg directive.
	* gnat.dg/nested_float_packed.ads: Likewise.
	* gnat.dg/oconst6.ads: Move to...
	* gnat.dg/specs/oconst6.ads: ...here.

From-SVN: r191593
2012-09-20 21:59:38 +00:00
Joseph Myers 30ad12285a re PR c/54552 (Cast to pointer to VLA crash the compiler)
PR c/54552
	* c-typeck.c (c_cast_expr): When casting to a type requiring
	C_MAYBE_CONST_EXPR to be created, pass the inner expression to
	c_fully_fold first.

testsuite:
	* gcc.c-torture/compile/pr54552-1.c: New test.

From-SVN: r191591
2012-09-20 21:50:17 +01:00
Joseph Myers 3f0c4850b5 re PR c/54103 (ICE at gimplify.c:7790 on current trunk)
PR c/54103
	* c-typeck.c (build_unary_op): Pass original argument of
	TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
	any C_MAYBE_CONST_EXPR, if it has integer operands.
	(build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
	TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
	to c_objc_common_truthvalue_conversion, then remove any
	C_MAYBE_CONST_EXPR, if they have integer operands.  Use
	c_objc_common_truthvalue_conversion not
	c_common_truthvalue_conversion.
	(c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
	call note_integer_operands for arguments with integer operands
	that are not integer constants.

testsuite:
	* gcc.c-torture/compile/pr54103-1.c,
	gcc.c-torture/compile/pr54103-2.c,
	gcc.c-torture/compile/pr54103-3.c,
	gcc.c-torture/compile/pr54103-4.c,
	gcc.c-torture/compile/pr54103-5.c,
	gcc.c-torture/compile/pr54103-6.c: New tests.
	* gcc.dg/c90-const-expr-8.c: Update expected column number.

From-SVN: r191589
2012-09-20 21:49:06 +01:00
Ian Lance Taylor 4f81737878 Bring in collected bug fixes from mainline.
* Make-lang.in (go/gogo.o): Depend on filenames.h.

From-SVN: r191579
2012-09-20 17:01:41 +00:00
Ian Lance Taylor c862bc9be6 libgo: Add no-dist and -Wno-portability to AM_INIT_AUTOMAKE.
From-SVN: r191576
2012-09-20 16:34:53 +00:00
Jakub Jelinek e499772088 re PR other/43620 ([4.3 Release Blocker] Uploading to gnu.org will fail due to automake security issue)
PR other/43620
boehm-gc/
	* Makefile.am (AUTOMAKE_OPTIONS): Add no-dist.
	* Makefile.in: Regenerated.
	* include/Makefile.in: Regenerated.
	* testsuite/Makefile.in: Regenerated.
libffi/
	* configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
	* Makefile.in: Regenerated.
	* include/Makefile.in: Regenerated.
	* man/Makefile.in: Regenerated.
	* testsuite/Makefile.in: Regenerated.
libitm/
	* configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
	* Makefile.in: Regenerated.
	* configure: Regenerated.
	* testsuite/Makefile.in: Regenerated.
libjava/classpath/
	* configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
	* Makefile.in: Regenerated.
	* doc/Makefile.in: Regenerated.
	* doc/api/Makefile.in: Regenerated.
	* examples/Makefile.in: Regenerated.
	* external/Makefile.in: Regenerated.
	* external/jsr166/Makefile.in: Regenerated.
	* external/relaxngDatatype/Makefile.in: Regenerated.
	* external/sax/Makefile.in: Regenerated.
	* external/w3c_dom/Makefile.in: Regenerated.
	* include/Makefile.in: Regenerated.
	* lib/Makefile.in: Regenerated.
	* native/Makefile.in: Regenerated.
	* native/fdlibm/Makefile.in: Regenerated.
	* native/jawt/Makefile.in: Regenerated.
	* native/jni/Makefile.in: Regenerated.
	* native/jni/classpath/Makefile.in: Regenerated.
	* native/jni/gconf-peer/Makefile.in: Regenerated.
	* native/jni/gstreamer-peer/Makefile.in: Regenerated.
	* native/jni/gtk-peer/Makefile.in: Regenerated.
	* native/jni/java-io/Makefile.in: Regenerated.
	* native/jni/java-lang/Makefile.in: Regenerated.
	* native/jni/java-math/Makefile.in: Regenerated.
	* native/jni/java-net/Makefile.in: Regenerated.
	* native/jni/java-nio/Makefile.in: Regenerated.
	* native/jni/java-util/Makefile.in: Regenerated.
	* native/jni/midi-alsa/Makefile.in: Regenerated.
	* native/jni/midi-dssi/Makefile.in: Regenerated.
	* native/jni/native-lib/Makefile.in: Regenerated.
	* native/jni/qt-peer/Makefile.in: Regenerated.
	* native/jni/xmlj/Makefile.in: Regenerated.
	* native/plugin/Makefile.in: Regenerated.
	* resource/Makefile.in: Regenerated.
	* scripts/Makefile.in: Regenerated.
	* tools/Makefile.in: Regenerated.

From-SVN: r191573
2012-09-20 18:30:06 +02:00
Jakub Jelinek 5fef966be1 backport: re PR middle-end/54563 (ICE in redirect_eh_edge_1, at tree-eh.c:2215)
Backported from mainline
	2012-09-17  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/54563
	* tree-ssa-math-opts.c (execute_cse_sincos): Call
	gimple_purge_dead_eh_edges if last call has been changed.

	* g++.dg/torture/pr54563.C: New test.

From-SVN: r191571
2012-09-20 17:58:51 +02:00
Jakub Jelinek 6849e07d79 backport: re PR target/54564 (Broken __builtin_ia32_vfmadds[sd]3)
Backported from mainline
	2012-09-14  Jakub Jelinek  <jakub@redhat.com>

	PR target/54564
	* config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
	instead of (match_dup 0) as second argument to vec_merge.
	(*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
	Remove third alternative.
	(*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise.  Negate
	operand 2 instead of operand 1, but put it as first argument
	of fma.
	* config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
	_mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
	of the first.

From-SVN: r191570
2012-09-20 17:52:41 +02:00
Richard Guenther 07df2b041e backport: re PR lto/54312 (uniquify_nodes takes 12% of Mozilla LTO build)
2012-09-20  Richard Guenther  <rguenther@suse.de>

	Backport from mainline
	2012-09-11  Jan Hubicka  <jh@suse.cz>

	PR lto/54312
	* lto.c (uniquify_nodes): Remove quadratic loop checking if the
	type is variant leader.

From-SVN: r191568
2012-09-20 14:51:59 +00:00
Jakub Jelinek f31c9edcb8 BASE-VER: Set to 4.7.3.
* BASE-VER: Set to 4.7.3.
	* DEV-PHASE: Set to prerelease.

From-SVN: r191561
2012-09-20 11:39:50 +02:00
GCC Administrator b058453f82 Mark as release
From-SVN: r191557
2012-09-20 06:54:44 +00:00
GCC Administrator 2d8aecd69a Mark ChangeLog
From-SVN: r191556
2012-09-20 06:54:39 +00:00
GCC Administrator c437fdc05c Mark ChangeLog
From-SVN: r191555
2012-09-20 06:54:32 +00:00
GCC Administrator cbcaf50bcf Mark ChangeLog
From-SVN: r191554
2012-09-20 06:54:27 +00:00
GCC Administrator ebf86df79f Mark ChangeLog
From-SVN: r191553
2012-09-20 06:54:21 +00:00
GCC Administrator 41848b851f Mark ChangeLog
From-SVN: r191552
2012-09-20 06:54:15 +00:00
GCC Administrator 58b18c327b Mark ChangeLog
From-SVN: r191551
2012-09-20 06:54:10 +00:00
GCC Administrator 55394dda49 Mark ChangeLog
From-SVN: r191550
2012-09-20 06:54:04 +00:00
GCC Administrator ae4b4c9947 Mark ChangeLog
From-SVN: r191549
2012-09-20 06:53:58 +00:00
GCC Administrator dddbc50c87 Mark ChangeLog
From-SVN: r191548
2012-09-20 06:53:53 +00:00
GCC Administrator ec982aa65c Mark ChangeLog
From-SVN: r191547
2012-09-20 06:53:47 +00:00
GCC Administrator 4e050eaa82 Mark ChangeLog
From-SVN: r191546
2012-09-20 06:53:41 +00:00
GCC Administrator 44acfdc831 Mark ChangeLog
From-SVN: r191545
2012-09-20 06:53:34 +00:00
GCC Administrator b62ff1a57c Mark ChangeLog
From-SVN: r191544
2012-09-20 06:53:28 +00:00
GCC Administrator 0a865f9d79 Mark ChangeLog
From-SVN: r191543
2012-09-20 06:53:22 +00:00
GCC Administrator 53fefa724f Mark ChangeLog
From-SVN: r191542
2012-09-20 06:53:17 +00:00
GCC Administrator 8f4f80625c Mark ChangeLog
From-SVN: r191541
2012-09-20 06:53:12 +00:00
GCC Administrator 37e5330fc9 Mark ChangeLog
From-SVN: r191540
2012-09-20 06:53:06 +00:00
GCC Administrator d7ab1ba5d7 Mark ChangeLog
From-SVN: r191539
2012-09-20 06:53:01 +00:00
GCC Administrator d232116fc9 Mark ChangeLog
From-SVN: r191538
2012-09-20 06:52:55 +00:00
GCC Administrator 6349b2ffac Mark ChangeLog
From-SVN: r191537
2012-09-20 06:52:49 +00:00
GCC Administrator a12cf9ae2d Mark ChangeLog
From-SVN: r191536
2012-09-20 06:52:43 +00:00
GCC Administrator 316adf1f5a Mark ChangeLog
From-SVN: r191535
2012-09-20 06:52:37 +00:00
GCC Administrator 37c4e26b97 Mark ChangeLog
From-SVN: r191534
2012-09-20 06:52:31 +00:00
GCC Administrator e5fac7b0a1 Mark ChangeLog
From-SVN: r191533
2012-09-20 06:52:25 +00:00
GCC Administrator b01baf0fe5 Mark ChangeLog
From-SVN: r191532
2012-09-20 06:52:19 +00:00
GCC Administrator 2016e1a953 Mark ChangeLog
From-SVN: r191531
2012-09-20 06:52:13 +00:00
GCC Administrator 13784c6b9f Mark ChangeLog
From-SVN: r191530
2012-09-20 06:52:07 +00:00
GCC Administrator 3af885eae3 Mark ChangeLog
From-SVN: r191529
2012-09-20 06:52:00 +00:00
GCC Administrator b48790c63f Mark ChangeLog
From-SVN: r191528
2012-09-20 06:51:55 +00:00
GCC Administrator 8ec215d581 Mark ChangeLog
From-SVN: r191527
2012-09-20 06:51:50 +00:00
GCC Administrator 96215e76b6 Mark ChangeLog
From-SVN: r191526
2012-09-20 06:51:44 +00:00
GCC Administrator 8cb90374c9 Mark ChangeLog
From-SVN: r191525
2012-09-20 06:51:39 +00:00
GCC Administrator 0d9feabb6f Mark ChangeLog
From-SVN: r191524
2012-09-20 06:51:34 +00:00
GCC Administrator f79026cf1d Mark ChangeLog
From-SVN: r191523
2012-09-20 06:51:27 +00:00
GCC Administrator 8baf6ce236 Mark ChangeLog
From-SVN: r191522
2012-09-20 06:51:21 +00:00
GCC Administrator a780f2194c Mark ChangeLog
From-SVN: r191521
2012-09-20 06:51:15 +00:00
GCC Administrator ed2ee84b32 Mark ChangeLog
From-SVN: r191520
2012-09-20 06:51:09 +00:00
GCC Administrator 941dece9d8 Mark ChangeLog
From-SVN: r191519
2012-09-20 06:51:04 +00:00
GCC Administrator ee7338263f Mark ChangeLog
From-SVN: r191518
2012-09-20 06:50:58 +00:00
GCC Administrator 4bf286610c Mark ChangeLog
From-SVN: r191517
2012-09-20 06:50:52 +00:00
GCC Administrator b914b0739d Mark ChangeLog
From-SVN: r191516
2012-09-20 06:50:46 +00:00
GCC Administrator be8c7a9ba3 Mark ChangeLog
From-SVN: r191515
2012-09-20 06:50:41 +00:00
GCC Administrator 4fc4831055 Mark ChangeLog
From-SVN: r191514
2012-09-20 06:50:33 +00:00
GCC Administrator baf749c5ca Mark ChangeLog
From-SVN: r191513
2012-09-20 06:50:24 +00:00
GCC Administrator 8ed8f6308b Daily bump.
From-SVN: r191505
2012-09-20 00:17:39 +00:00
Joseph Myers 5b5ea4c3a4 * gcc.pot: Regenerate.
From-SVN: r191481
2012-09-19 15:51:45 +01:00
GCC Administrator e3f45a6f26 Daily bump.
From-SVN: r191454
2012-09-19 00:17:09 +00:00
GCC Administrator b3e5912acb Daily bump.
From-SVN: r191410
2012-09-18 00:19:03 +00:00
Jason Merrill 953c3983ff re PR c++/53661 (Wrong narrowing conversion warning with -std=c++11)
PR c++/53661
	* typeck2.c (check_narrowing): Avoid false positives on conversion
	from enumeral type.

From-SVN: r191398
2012-09-17 12:41:41 -04:00
GCC Administrator 7861a8cc95 Daily bump.
From-SVN: r191369
2012-09-17 00:17:46 +00:00
GCC Administrator 184cc4cdb2 Daily bump.
From-SVN: r191355
2012-09-16 00:17:20 +00:00
Andi Kleen 3753f04315 backport: lto-streamer.h (res_pair): Add.
2012-09-15  Andi Kleen  <ak@linux.intel.com>

        Backport from mainline
        2012-09-07  Andi Kleen  <ak@linux.intel.com>

        * gcc/lto-streamer.h (res_pair): Add.
        (lto_file_decl_data): Replace resolutions with respairs.
        Add max_index.
        * gcc/lto/lto.c (lto_resolution_read): Remove max_index.  Add
        * rp.
        Initialize respairs.
        (lto_file_finalize): Set up resolutions vector lazily from respairs.

From-SVN: r191353
2012-09-15 23:03:27 +00:00
Joseph Myers 17f1d13203 * vi.po: Update.
From-SVN: r191349
2012-09-15 20:08:09 +01:00
GCC Administrator 2550154de2 Daily bump.
From-SVN: r191334
2012-09-15 00:17:04 +00:00
Walter Lee c9440e3205 Fix grammar/spelling.
Backport from mainline.
       2012-09-14  Walter Lee  <walt@tilera.com>

       * doc/invoke.texi (Option Summary): fix typesetting for -mcpu
       option for TILEPro and TILE-Gx.

From-SVN: r191310
2012-09-14 20:45:27 +00:00
GCC Administrator 02038b719e Daily bump.
From-SVN: r191287
2012-09-14 00:17:35 +00:00
Tobias Burnus 81e4800879 re PR fortran/54556 (Marking implicitly pure variables as DECL_PURE_P leads to wrong code)
2012-09-13  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54556
        * resolve.c (resolve_formal_arglist): Allow VALUE arguments
        with implicit_pure.
        (gfc_impure_variable): Don't check gfc_pure such that the
        function also works for gfc_implicit_pure procedures.

2012-09-13  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54556
        * gfortran.dg/implicit_pure_3.f90: New.

From-SVN: r191275
2012-09-13 20:10:04 +02:00
Uros Bizjak 68c09456fb i386.h (x86_prefetchw): New global variable.
* config/i386/i386.h (x86_prefetchw): New global variable.
	(TARGET_PREFETCHW): New macro.
	* config/i386/i386.c (PTA_PREFETCHW): Ditto.
	(processor_alias_table): Add PTA_PREFETCHW to
	bdver1, bdver2 and btver1.
	(ix86_option_override_internal): Set x86_prefetchw for
	PTA_PREFETCHW targets.
	* config/i386/i386.md (prefetch): Expand to prefetchw
	for TARGET_PREFETCHW.
	(*prefetch_3dnow_<mode>): Also enable for TARGET_PREFETCHW.

	Backport from mainline
	2012-08-13  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.md (prefetch): Do not assert mode of operand 0.
	(*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
	Rename to ...
	(*prefetch_sse): ... this.
	(*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
	Rename to ...
	(*prefetch_3dnow): ... this.

From-SVN: r191272
2012-09-13 19:32:23 +02:00
Jakub Jelinek 90980ad346 re PR c/54559 (, ICE in gimplify_expr, at gimplify.c:7592)
PR c/54559
	* c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
	COMPLEX_TYPE with in_late_binary_op set temporarily to true.

	* gcc.c-torture/compile/pr54559.c: New test.

From-SVN: r191271
2012-09-13 19:04:44 +02:00
Jason Merrill 7ccba73cef re PR c++/53839 ([C++11] internal compiler error: in adjust_temp_type, at cp/semantics.c:6391)
PR c++/53839
	* semantics.c (cxx_eval_indirect_ref): If we aren't looking for an
	address, make sure the value is constant.

From-SVN: r191266
2012-09-13 11:15:06 -04:00
Jason Merrill 1a4d4885c6 re PR c++/54511 (internal compiler error: in make_decl_rtl, at varasm.c:1147)
PR c++/54511
	* pt.c (tsubst_decl) [VAR_DECL]: Handle DECL_ANON_UNION_VAR_P.

From-SVN: r191265
2012-09-13 11:14:49 -04:00
Jason Merrill a3f1a5b9d3 re PR c++/53836 (ICE: unexpected expression of kind template_parm_index)
PR c++/53836
	* pt.c (value_dependent_expression_p): A TREE_LIST initializer must
	be dependent.

From-SVN: r191264
2012-09-13 11:14:27 -04:00
Teresa Johnson 01f6116e03 backport: re PR gcov-profile/54487 (profiledbootstrap broken by r190952)
2012-09-12  Teresa Johnson  <tejohnson@google.com>

	Backport from mainline.
	2012-09-12  Teresa Johnson  <tejohnson@google.com>

        PR gcov-profile/54487
        * configure.ac (HOST_HAS_F_SETLKW): Set based on compile
        test using F_SETLKW with fcntl.
        * configure, config.in: Regenerate.

From-SVN: r191254
2012-09-13 13:32:31 +00:00
GCC Administrator bc930d76fd Daily bump.
From-SVN: r191236
2012-09-13 00:17:17 +00:00
Uros Bizjak 720a6dbff7 backport: i386.md: Comments on fma4 instruction selection reflect requirement on register pressure...
Backport from mainline
	2012-09-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>

	* config/i386/i386.md : Comments on fma4 instruction selection
	reflect requirement on register pressure based cost model.

	* config/i386/driver-i386.c (host_detect_local_cpu): fma4
	flag is set-reset as informed by the cpuid flag.

	* config/i386/i386.c (processor_alias_table): fma4
	flag is enabled for bdver2.

From-SVN: r191227
2012-09-12 18:06:42 +02:00
Christian Bruel 43908ecf88 newlib.h (NO_IMPLICIT_EXTERN_C): Define.
* config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.

From-SVN: r191221
2012-09-12 15:11:20 +02:00
Tobias Burnus 5bd31c15c0 re PR fortran/54225 (fortran compiler segfault processing ' print *, A(1,*) ')
2012-09-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54225
        PR fortran/53306
        * array.c (match_subscript, gfc_match_array_ref): Fix
        diagnostic of coarray's '*'.

2012-09-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54225
        PR fortran/53306
        * gfortran.dg/coarray_10.f90: Update dg-error.
        * gfortran.dg/coarray_28.f90: New.
        * gfortran.dg/array_section_3.f90: New.

From-SVN: r191216
2012-09-12 14:15:44 +02:00
Jakub Jelinek 8d9ae78567 * config.gcc: Obsolete picochip-*.
From-SVN: r191211
2012-09-12 11:03:54 +02:00
GCC Administrator 2f776984ea Daily bump.
From-SVN: r191205
2012-09-12 00:17:50 +00:00
Jakub Jelinek c2a5008a99 re PR libstdc++/54172 (__cxa_guard_acquire thread-safety issue)
PR libstdc++/54172
	* libsupc++/guard.cc (__cxa_guard_acquire): Fix up the last
	argument of the first __atomic_compare_exchange_n.

From-SVN: r191191
2012-09-11 17:24:06 +02:00
Richard Guenther e5a1ef4bd5 re PR debug/54534 (Missing location for unused variable)
2012-09-11  Richard Guenther  <rguenther@suse.de>

	PR debug/54534
	* cgraph.h (varpool_can_remove_if_no_refs): Restore dependence
	on flag_toplevel_reorder.

From-SVN: r191176
2012-09-11 10:43:13 +00:00
GCC Administrator 5f20fc8f92 Daily bump.
From-SVN: r191168
2012-09-11 00:17:56 +00:00
Jason Merrill 5c642d1dbb re PR c++/54506 (Defaulted move constructors and move assignment operators are erroneously defined as deleted)
PR c++/54506
	* decl.c (move_signature_fn_p): Split out from move_fn_p.
	* method.c (process_subob_fn): Use it.
	* cp-tree.h: Declare it.

From-SVN: r191146
2012-09-10 10:24:19 -04:00
Jason Merrill 93a85785e0 re PR c++/54341 (ICE (segfault) in cx_check_missing_mem_inits, at cp/semantics.c:6093)
PR c++/54341
	PR c++/54253
	* semantics.c (sort_constexpr_mem_initializers): New.
	(build_constexpr_constructor_member_initializers): Use it.
	(cx_check_missing_mem_inits): Skip artificial fields.
	* init.c (expand_aggr_init_1): Don't zero out a class
	with no data.

From-SVN: r191145
2012-09-10 10:24:07 -04:00
Jason Merrill c03a696624 re PR c++/54086 (GCC should allow constexpr and const together)
PR c++/54086
	* decl.c (grokdeclarator): Allow const and constexpr together.

From-SVN: r191144
2012-09-10 10:23:54 -04:00
Richard Henderson 63db577f5d * config/alpha/predicates.md (small_symbolic_operand): Disallow large offsets.
From-SVN: r191137
2012-09-10 06:07:22 -07:00
Janus Weil bd3fe80051 re PR fortran/54435 (ICE with SELECT TYPE on a non-CLASS object)
2012-09-10  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/54435
	PR fortran/54443
	* match.c (gfc_match_select_type): Make sure to only access CLASS_DATA
	for BT_CLASS.

2012-09-10  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/54435
	PR fortran/54443
	* gfortran.dg/select_type_29.f03: New.

From-SVN: r191135
2012-09-10 14:10:12 +02:00
Georg-Johann Lay 2ebcf3ea10 backport: re PR target/54536 ([avr]: incorrect crt with -mmcu=at90usb1287)
Backport from 2012-09-10 mainline r191132.
	
	PR target/54536
	* config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".

From-SVN: r191133
2012-09-10 10:46:27 +00:00
Markus Trippelsdorf 5b5995bdec re PR middle-end/54515 (cc1plus sigsegv -O2 anonymous namespace)
2012-09-07  Markus Trippelsdorf  <markus@trippelsdorf.de>

	PR middle-end/54515
	* tree-sra.c (disqualify_base_of_expr): Check for possible
	NULL_TREE returned by get_base_address()

	* g++.dg/tree-ssa/pr54515.C: new testcase

From-SVN: r191130
2012-09-10 09:48:28 +00:00
Thiago Macieira 2fd7c76554 re PR libstdc++/54172 (__cxa_guard_acquire thread-safety issue)
2012-09-09  Thiago Macieira  <thiago.macieira@intel.com>

	PR libstdc++/54172
        * libsupc++/guard.cc (__cxa_guard_acquire): Exit the loop earlier if
        we detect that another thread has had success. Don't compare_exchange
        from a finished state back to a waiting state. Comment.

From-SVN: r191125
2012-09-10 05:08:07 +00:00
GCC Administrator 2e5edd2acc Daily bump.
From-SVN: r191123
2012-09-10 00:17:14 +00:00
Jonathan Wakely 84dbe9a415 re PR libstdc++/54388 (std::array.at() const results in undefined behaviour)
PR libstdc++/54388
	* include/std/array (array::at() const): Ensure lvalue result.
	* testsuite/23_containers/array/element_access/54388.cc: New.

From-SVN: r191117
2012-09-09 19:40:46 +01:00
GCC Administrator b0a95eccae Daily bump.
From-SVN: r191104
2012-09-09 00:18:08 +00:00
Mikael Morin ca5c44227d re PR fortran/54208 (compilation error for ubound construct in PARAMETER statements)
fortran/
	PR fortran/54208
	* simplify.c (simplify_bound_dim): Resolve array spec before
	proceeding with simplification.

testsuite/
	PR fortran/54208
	* gfortran.dg/bound_simplification_3.f90: New test.

From-SVN: r191090
2012-09-08 09:22:54 +00:00
GCC Administrator 3c78d27563 Daily bump.
From-SVN: r191086
2012-09-08 00:17:34 +00:00
Richard Guenther 9cbd4f6899 backport: re PR lto/53572 (Some public symbols don't get to serialized LTO)
2012-09-07  Richard Guenther  <rguenther@suse.de>

	Backport from mainline
	2012-06-26  Jan Hubicka  <jh@suse.cz>

	PR lto/53572
	* cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
	used symbols.

From-SVN: r191073
2012-09-07 13:05:18 +00:00
Richard Guenther 02cb06b808 backport: re PR tree-optimization/53922 (VRP: semantic conflict between range_includes_zero_p and value_inside_range)
2012-09-07  Richard Guenther  <rguenther@suse.de>

	Backport from mainline
	2012-07-13  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53922
	* tree-vrp.c (value_inside_range): Change prototype to take
	min/max instead of value-range.
	(range_includes_zero_p): Likewise.  Return the result from
	value_inside_range.
	(extract_range_from_binary_expr_1): Adjust to handle dont-know
	return value from range_includes_zero_p.
	(extract_range_from_unary_expr_1): Likewise.
	(compare_range_with_value): Likewise.
	(vrp_meet_1): Likewise.

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

From-SVN: r191072
2012-09-07 13:04:38 +00:00
Eric Botcazou 4c4c82223c trans.c (Loop_Statement_to_gnu): Revert to using size_type_node instead of sizetype.
* gcc-interface/trans.c (Loop_Statement_to_gnu): Revert to using
	size_type_node instead of sizetype.

From-SVN: r191070
2012-09-07 11:55:44 +00:00
Richard Guenther 33069fa92f re PR middle-end/53667 (Cray pointer: Wrong result with optimizations)
2012-09-07  Richard Guenther  <rguenther@suse.de>

	PR middle-end/53667
	* tree-ssa-structalias.c (handle_rhs_call): Properly clobber
	EAF_NOESCAPED arguments.  Transitively close non-EAF_DIRECT
	arguments separately.

From-SVN: r191065
2012-09-07 10:29:56 +00:00
Eric Botcazou f3a2c346ce * gcc.dg/pr44194-1.c: Skip on Alpha and adjust regexp for SPARC64.
From-SVN: r191062
2012-09-07 10:05:21 +00:00
Jakub Jelinek 13c3bd95b2 backport: re PR rtl-optimization/54455 (ICE: RTL check: expected elt 3 type 'B', have '0' (rtx barrier) in compute_bb_for_insn, at cfgrtl.c:418)
2012-09-07  Jakub Jelinek  <jakub@redhat.com>

	Backported from mainline
	2012-09-06  Jakub Jelinek  <jakub@redhat.com>

	PR rtl-optimization/54455
	* sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
	bb ends up with asm goto referencing bb's label.

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

From-SVN: r191060
2012-09-07 11:35:21 +02:00
Ramana Radhakrishnan ab1c58629a re PR target/54252 (Bad alignment code generated for Neon loads)
Fix PR target/54252

2012-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

	Backport from mainline.
	2012-08-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
                   Richard Earnshaw  <richard.earnshaw@arm.com>

	PR target/54252
	* config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
	element size. Use elem_type from the formal parameter. New parameter
	fcode.
	(neon_expand_args): Adjust call to neon_dereference_pointer.

From-SVN: r191059
2012-09-07 09:31:54 +00:00
GCC Administrator 947305cf6e Daily bump.
From-SVN: r191049
2012-09-07 00:17:54 +00:00
Uros Bizjak 0c7a296cc3 backport: [multiple changes]
2012-09-06  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/sse.md (<sse4_1_avx2>_pblendvb): Use
	reg_not_xmm0_operand_maybe_avx as operand 0 constraint.

2012-09-06  Uros Bizjak  <ubizjak@gmail.com>

	Backport from mainline
	2012-08-11  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.md (isa): Add fma and fma4.
	(enabled): Handle fma and fma4.
	* config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
	(*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
	(*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
	(*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
	(*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
	(*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.

	2012-08-10  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
	*fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
	*fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.

From-SVN: r191032
2012-09-06 17:45:11 +02:00
Richard Guenther c2173bb41b re PR tree-optimization/54498 (incorrect code generation from g++ -O)
2012-09-06  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/54498
	* tree-ssa-alias.h (get_continuation_for_phi): Add flag to
	abort when reaching an already visited region.
	* tree-ssa-alias.c (maybe_skip_until): Likewise.  And do it.
	(get_continuation_for_phi_1): Likewise.
	(walk_non_aliased_vuses): When we translated the reference,
	abort when we re-visit a region.
	* tree-ssa-pre.c (translate_vuse_through_block): Adjust.

From-SVN: r191031
2012-09-06 15:20:24 +00:00
Andrew Pinski 832314ef29 re PR tree-optimization/54494 (Missing store to volatile)
2012-09-06  Andrew Pinski  <apinski@cavium.com>

        PR tree-opt/54494
        * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
2012-09-06  Andrew Pinski  <apinski@cavium.com>

        PR tree-opt/54494
        * gcc.dg/tree-ssa/strlen-1.c: New testcase.

From-SVN: r191025
2012-09-06 06:51:37 -07:00
Marc Glisse c2dcf8a007 re PR libstdc++/54376 (incorrect complaint about redefinition)
2012-08-26  Marc Glisse  <marc.glisse@inria.fr>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/54376
	* include/bits/random.h (lognormal_distribution<>::operator==,
	gamma_distribution<>::operator==,
	chi_squared_distribution<>::operator==,
	fisher_f_distribution<>::operator==,
	student_t_distribution<>::operator==,
	binomial_distribution<>::operator==,
	negative_binomial_distribution<>::operator==,
	poisson_distribution<>::operator==): Change inline friend definition
	to non-template.
	* testsuite/26_numerics/random/binomial_distribution/requirements/
	explicit_instantiation/1.cc: New.
	* testsuite/26_numerics/random/cauchy_distribution/requirements/
	explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/chi_squared_distribution/
	requirements/explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/discrete_distribution/requirements/
	explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/exponential_distribution/
	requirements/explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/extreme_value_distribution/
	requirements/explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/fisher_f_distribution/requirements/
	explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/gamma_distribution/requirements/
	explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/geometric_distribution/requirements/
	explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/lognormal_distribution/requirements/
	explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/negative_binomial_distribution/
	requirements/explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/normal_distribution/requirements/
	explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_constant_distribution/
	requirements/explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/piecewise_linear_distribution/
	requirements/explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/poisson_distribution/requirements/
	explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/student_t_distribution/requirements/
	explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/uniform_int_distribution/
	requirements/explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/uniform_real_distribution/
	requirements/explicit_instantiation/1.cc: Likewise.
	* testsuite/26_numerics/random/weibull_distribution/requirements/
	explicit_instantiation/1.cc: Likewise.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r191016
2012-09-06 09:27:10 +00:00
Ian Lance Taylor 10e8dbc6e1 debug/elf, debug/dwarf: DWARF line number fixes.
Support DW_AT_high_pc as a constant.
Support DW_AT_ranges.

PR gcc/52583

From-SVN: r191009
2012-09-06 05:28:19 +00:00
GCC Administrator 5c4fe47a52 Daily bump.
From-SVN: r191001
2012-09-06 00:17:27 +00:00
Uros Bizjak fbeff6aa02 fpu-387.h (set_fpu): Prefix stmxcsr and ldmxcsr with %v.
* config/fpu-387.h (set_fpu): Prefix stmxcsr and ldmxcsr with %v.

From-SVN: r190998
2012-09-05 23:48:15 +02:00
Uros Bizjak c45bafce56 fpu-387.h (set_fpu): Use __builtin_ia32_stmxcsr and __builtin_ia32_ldmxcsr intrinsics.
* config/fpu-387.h (set_fpu): Use __builtin_ia32_stmxcsr and
	__builtin_ia32_ldmxcsr intrinsics.

From-SVN: r190995
2012-09-05 23:01:30 +02:00
Jakub Jelinek d22937dc5b re PR middle-end/54486 (Spurious printf format warning mentions nonexistent type 'sizetype')
PR middle-end/54486
	* builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
	build_int_cst with size_type_node instead of size_int.

	* c-c++-common/pr54486.c: New test.

From-SVN: r190987
2012-09-05 18:29:42 +02:00
Georg-Johann Lay 89a501f406 backport: re PR target/54461 ([avr] add configure option for better AVR-Libc integration)
Backport from 2012-09-05 mainline r190697.

	PR target/54461
	* configure.ac (noconfigdirs,target=avr-*-*): Add target-newlib,
	target-libgloss if configured --with-avrlibc.
	* configure: Regenerate.

libgcc/
	Backport from 2012-09-05 mainline r190697.

	PR target/54461
	* config.host (tmake_file,host=avr-*-*): Add avr/t-avrlibc if
	configured --with-avrlibc.
	* Makefile.in (FPBIT_FUNCS): filter-out LIB2FUNCS_EXCLUDE.
	(DPBIT_FUNCS): Ditto.
	(TPBIT_FUNCS): Ditto.
	* config/avr/t-avrlibc: New file.

gcc/
	Backport from 2012-09-05 mainline r190697.

	PR target/54461
	* config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
	configured --with-avrlibc.
	(tm_defines,target=avr-*-*): Add WITH_AVRLIBC if configured
	--with-avrlibc.
	* config/avr/avrlibc.h: New file.
	* config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
	configured --with-avrlibc.
	* doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__

From-SVN: r190973
2012-09-05 12:19:47 +00:00
Bin Cheng fbe8f3336b backport: re PR target/45070 (Miscompiled c++ class with packed attribute on ARM with -Os optimizations (Qt 4.6.2))
Backport from 2012-09-04 mainline r190919

	PR target/45070
	* config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value of size
	less than 4 bytes by using macro ARM_NUM_INTS.
	(thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.

From-SVN: r190970
2012-09-05 10:49:56 +00:00
Joey Ye e4fd4fd8ec backport: ssa-dom-thread-3.c: Add -fno-short-enums.
Backported from trunk
	2012-08-28  Joey Ye  <joey.ye@arm.com>

	* gcc.dg/tree-ssa/ssa-dom-thread-3.c: Add -fno-short-enums.

From-SVN: r190966
2012-09-05 08:22:55 +00:00
GCC Administrator 0ef5720aaa Daily bump.
From-SVN: r190956
2012-09-05 00:17:44 +00:00
Richard Henderson aa4afb949a * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
From-SVN: r190942
2012-09-04 11:17:54 -07:00
Georg-Johann Lay 2c8644968c backport: re PR target/54476 ([avr] __builtin_avr_delay_cycles (-1ul) causes memory usage to explode on x86_64 host)
Backport from 2012-09-04 mainline r190920
	PR target/54476
	* config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
	SImode.

From-SVN: r190921
2012-09-04 09:38:42 +00:00
Senthil Kumar Selvaraj 95d179f372 backport: re PR target/54220 ([avr] Potential stack corruption in naked functions at -O0)
Backport from 2012-09-04 mainline r190914
	PR target/54220
	* config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
	define to...
	(avr_allocate_stack_slots_for_args): ...this new static function.

From-SVN: r190916
2012-09-04 09:14:36 +00:00
GCC Administrator cd28bc3967 Daily bump.
From-SVN: r190907
2012-09-04 00:17:44 +00:00
H.J. Lu 6bd4024dee Add -da and remove -dm in GCC manual
Backported from mainline
	PR driver/54335
	* doc/invoke.texi: Add -da and remove -dm.

From-SVN: r190902
2012-09-03 12:07:34 -07:00
Jakub Jelinek aaa806324f backport: re PR target/54436 (Compiling some regular C++ code gives assembler '700415 shortened to 255' warning)
Backported from mainline
	2012-09-01  Jakub Jelinek  <jakub@redhat.com>

	PR target/54436
	* config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
	operands[1] is CONST_INT_P, convert it to QImode before printing.

	* gcc.dg/torture/pr54436.c: New test.

From-SVN: r190900
2012-09-03 18:05:44 +02:00
Jakub Jelinek d9d49771cb backport: re PR c/54428 (ICE in gimplify_expr, at gimplify.c:7591)
Backported from mainline
	2012-08-31  Jakub Jelinek  <jakub@redhat.com>

	PR c/54428
	* c-convert.c (convert): Don't call fold_convert_loc if
	TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
	is a COMPLEX_EXPR.  Remove TYPE_MAIN_VARIANT check from
	COMPLEX_TYPE -> COMPLEX_TYPE conversion.

	* gcc.c-torture/compile/pr54428.c: New test.

From-SVN: r190899
2012-09-03 18:04:19 +02:00
Jakub Jelinek 4357c46182 backport: re PR c/54363 (ICE when compiling malformed struct initializers)
Backported from mainline
	2012-08-24  Jakub Jelinek  <jakub@redhat.com>

	PR c/54363
	* gimplify.c (optimize_compound_literals_in_ctor): Only recurse
	if init is a CONSTRUCTOR.

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

From-SVN: r190898
2012-09-03 18:02:52 +02:00
GCC Administrator 71295e3529 Daily bump.
From-SVN: r190867
2012-09-03 00:17:08 +00:00
Eric Botcazou 13dfb670ae re PR rtl-optimization/54369 (delayed-branch pass removes too many instructions)
PR rtl-optimization/54369
	* config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
	calling dbr_schedule.
	* config/sparc/sparc.c (sparc_reorg): Likewise.

From-SVN: r190859
2012-09-02 10:36:54 +00:00
GCC Administrator 6cc8c806bd Daily bump.
From-SVN: r190851
2012-09-02 00:17:24 +00:00
GCC Administrator babfe196a5 Daily bump.
From-SVN: r190844
2012-09-01 00:17:28 +00:00
Ollie Wild 7a79498bfd backport: re PR c++/54197 (Lifetime of reference not properly extended)
Backport from mainline
2012-08-31  Ollie Wild  <aaw@google.com>

	PR c++/54197
	* gcc/cp/call.c (extend_ref_init_temps_1): Handle COMPOUND_EXPR trees.
	* gcc/testsuite/g++.dg/init/lifetime3.C: New test.

From-SVN: r190839
2012-08-31 17:16:39 +00:00
Kirill Yukhin f8f6fe7ddd backport: i386.c (ia32_multipass_dfa_lookahead): Add case for Atom processor.
Backport from mainline
        2012-08-23  Yuri Rumyantsev  <ysrumyan@gmail.com>

        * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
        case for Atom processor.

From-SVN: r190837
2012-08-31 16:23:33 +00:00
GCC Administrator 2def5eb4f2 Daily bump.
From-SVN: r190821
2012-08-31 00:17:37 +00:00
GCC Administrator 0ad046ba52 Daily bump.
From-SVN: r190792
2012-08-30 00:17:55 +00:00
GCC Administrator 5f6fdfe27f Daily bump.
From-SVN: r190764
2012-08-29 00:18:22 +00:00
Uros Bizjak 8c951601c0 backport: re PR target/46254 (ICE: in find_reloads, at reload.c:3806 (unable to generate reloads) with -fPIC -mcmodel={medium|large} and __sync_val_compare_and_swap)
Backport from mainline
	2012-08-27  Uros Bizjak  <ubizjak@gmail.com>

	PR target/46254
	* config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
	true for TARGET_64BIT or !flag_pic.
	* config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
	(atomic_compare_and_swap_double<mode>): Change operand 2 predicate
	to cmpxchg8b_pic_memory_operand.  Use DWIH mode iterator.
	Add insn constraint.  Conditionally emit xchg asm insns.
	(atomic_compare_and_swap<mode>): Update calls.  Check only
	cmpxchg8b_pic_memory_operand in memory address fixup.
	(DCASMODE): Remove.
	(CASHMODE): Rename from DCASHMODE.
	(doublemodesuffix): Update modes.
	(regprefix): New mode attribute.

	(unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
	<UNSPECV_CMPXCHG>: New constant.
	(atomic_compare_and_swap<mode>_1): Rename from
	atomic_compare_and_swap_single<mode>.  Update calls and
	unspec_volatile constants.
	(atomic_compare_and_swap<mode>_doubleword): Rename from
	atomic_compare_and_swap_double<mode>.  Update calls and
	unspec_volatile constants.

testsuite/ChangeLog:

	Backport from mainline
	2012-08-27  Uros Bizjak  <ubizjak@gmail.com>

	PR target/46254
	* gcc.target/i386/pr46254.c: New test.

From-SVN: r190754
2012-08-28 19:22:13 +02:00
Walter Lee 74c0bb52af Fix ChangeLog formatting.
From-SVN: r190742
2012-08-28 07:01:02 +00:00
Walter Lee 43d4e561b3 Fix some typos and coding style violations.
Backport from mainline
	2012-08-28  Walter Lee  <walt@tilera.com>
	
	* confg/tilegx/tilegx.md: Fix code style.
	(*zero_extendsidi_truncdisi): Fix typo.
	* config/tilegx/tilegx.c: Fix code style.
	(tilegx_function_profiler): Fix typo.

From-SVN: r190740
2012-08-28 06:11:09 +00:00
GCC Administrator 59798f281c Daily bump.
From-SVN: r190735
2012-08-28 00:16:55 +00:00
Walter Lee 7755f43ea7 Fix doc typo.
Backport from mainline
	2012-08-27  Walter Lee  <walt@tilera.com>
	
	* doc/md.texi (TILE-Gx): Fix typo.

From-SVN: r190730
2012-08-27 18:51:44 +00:00
Walter Lee c2ecbcc96b Fix a typo in the mcount function_profiler.
Backport from mainline
	2012-08-27  Walter Lee  <walt@tilera.com>
	
	* config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
	config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.

From-SVN: r190727
2012-08-27 18:36:39 +00:00
Walter Lee 27828bd223 Stop trying to represent the bfins instruction with the insv pattern,
because it causes an extra copy when bfins reuses one of its inputs.
	Backport from mainline
	2012-08-27  Walter Lee  <walt@tilera.com>
	
	* config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
	(insn_bfins): Delete.

From-SVN: r190725
2012-08-27 18:18:43 +00:00
Walter Lee 833569721a Properly set the latency of atomic ops to the approximate latency of a remote memory operation.
Properly set the latency of atomic ops to the approximate latency of a
remote memory operation.
	Backport from mainline
	2012-08-27  Walter Lee  <walt@tilera.com>

	* config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
	atomic_exchange_bare<mode>,
	atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
	* config/tilegx/tilegx-generic.md (X1_remote): New
	insn_reservation.
	* config/tilegx/tilegx.md (type): Add X1_remove.
	(insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
	insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
	insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
	X1_remote.

From-SVN: r190723
2012-08-27 17:39:19 +00:00
GCC Administrator a544c05de0 Daily bump.
From-SVN: r190705
2012-08-27 00:17:15 +00:00
Jonathan Wakely 2ec8c6db6e * testsuite/30_threads/async/54297.cc: Add dg-require-nanosleep.
From-SVN: r190690
2012-08-26 15:58:42 +01:00
Jonathan Wakely b1de8b9423 re PR libstdc++/54297 ([C++11] Segmentation fault with std::async and released shared state)
PR libstdc++/54297
	* src/c++11/future.cc (~_Async_state_common): Move to...
	* src/c++11/compatibility-thread-c++0x.cc (~_Async_state_common):
	Here.
	(_GLIBCXX_ABI_COMPAT_ASYNC): Rename to _GLIBCXX_ASYNC_ABI_COMPAT.
	* include/std/future (_GLIBCXX_ABI_COMPAT_ASYNC): Likewise.

From-SVN: r190687
2012-08-26 15:09:12 +01:00
Jonathan Wakely a5eac072f5 re PR libstdc++/54351 (~unique_ptr() should not set stored pointer to null)
2012-08-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
	    Geoff Romer  <gromer@google.com>

	PR libstdc++/54351
	* include/bits/unique_ptr.h (unique_ptr<T>::~unique_ptr): Do not use
	reset().
	(unique_ptr<T[]>::~unique_ptr()): Likewise.
	* testsuite/20_util/unique_ptr/54351.cc: New.
	* testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust dg-error
	line numbers.

Co-Authored-By: Geoff Romer <gromer@google.com>

From-SVN: r190681
2012-08-26 01:29:41 +01:00
GCC Administrator 8be70a8d4e Daily bump.
From-SVN: r190679
2012-08-26 00:17:26 +00:00
Eric Botcazou 5b1ab22977 re PR rtl-optimization/54088 (ICE at dwarf2out.c:20632 with -O1 -g)
PR rtl-optimization/54088
	* jump.c (delete_related_insns): Robustify latest change.

From-SVN: r190675
2012-08-25 23:22:21 +00:00
Jonathan Wakely 81c69fe1d5 re PR libstdc++/54297 ([C++11] Segmentation fault with std::async and released shared state)
PR libstdc++/54297
	* include/std/future (~_Async_state_impl): Join thread before
	derived class members are destroyed.
	(~_Async_state_common): Only define non-trivial destructor when
	included from future.cc for ABI compatibility reasons.
	* src/c++11/future.cc (_GLIBCXX_ABI_COMPAT_ASYNC): Define.
	* testsuite/30_threads/async/54297.cc: New.

From-SVN: r190673
2012-08-26 00:06:07 +01:00
GCC Administrator b4265383ce Daily bump.
From-SVN: r190660
2012-08-25 00:17:05 +00:00
GCC Administrator dd84fcd56b Daily bump.
From-SVN: r190635
2012-08-24 00:17:31 +00:00
Ian Lance Taylor c2dab5fdce compiler: Comparisons return untyped boolean value.
From-SVN: r190613
2012-08-23 04:58:50 +00:00
Ian Lance Taylor 3010ac1c99 compiler: Remove old handling of unsafe.Pointer in type assertions.
Fixes issue 17.

From-SVN: r190609
2012-08-23 00:21:50 +00:00
GCC Administrator 291f7b5bf5 Daily bump.
From-SVN: r190606
2012-08-23 00:18:16 +00:00
GCC Administrator 4a8ca73706 Daily bump.
From-SVN: r190582
2012-08-22 00:17:24 +00:00
Ian Lance Taylor e2ae08917b morestack.S (__morestack_non_split): Increase amount of space allocated for non-split code stack.
* config/i386/morestack.S (__morestack_non_split): Increase amount
	of space allocated for non-split code stack.

From-SVN: r190573
2012-08-21 20:51:32 +00:00
Richard Guenther 0b6de004ef backport: [multiple changes]
2012-08-21  Richard Guenther  <rguenther@suse.de>

	Backport from mainline
	2012-08-16  Richard Guenther  <rguenther@suse.de>

	PR middle-end/54146
	* tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
	exit vector.
	* ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
	* cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
	* tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
	* tree-ssa-loop-im.c (analyze_memory_references): Adjust.
	(tree_ssa_lim_finalize): Free all mem_refs.
	* tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
	scc when bailing out.
	* modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
	* ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
	* graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
	FOR_EACH_LOOP_BREAK.

	2012-08-17  Richard Guenther  <rguenther@suse.de>

	* tree-sra.c (modify_function): Free redirect_callers vector.
	* ipa-split.c (split_function): Free args_to_pass vector.
	* tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
	vec_oprnds.
	(new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
	* tree-vect-slp.c (vect_free_slp_instance): Free the instance.
	(vect_analyze_slp_instance): Free everything.
	(destroy_bb_vec_info): Free the SLP instances.

	2012-08-17  Richard Guenther  <rguenther@suse.de>
 
	* params.def (integer-share-limit): Decrease from 256 to 251,
	add rationale.

	2012-08-21  Richard Guenther  <rguenther@suse.de>
 
	* tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
	the affine expansion cache.

From-SVN: r190562
2012-08-21 13:34:19 +00:00
Ian Lance Taylor 296d4d4d98 mksysinfo: Fix syscall.F_GETLK and friends for 32-bit x86.
From-SVN: r190555
2012-08-21 05:29:43 +00:00
GCC Administrator 51f3b497ce Daily bump.
From-SVN: r190551
2012-08-21 00:17:44 +00:00
Patrick Marlier 39722855ab backport: re PR middle-end/53992 (Combining -fopenmp and -fgnu-tm results in segfault or misbehaving binaries)
gcc/
2012-08-20  Patrick Marlier  <patrick.marlier@gmail.com>

	Backported from trunk
	2012-08-20  Patrick Marlier  <patrick.marlier@gmail.com>

	PR middle-end/53992
	* omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.

testsuite/
2012-08-20  Patrick Marlier  <patrick.marlier@gmail.com>

	Backported from trunk
	2012-08-20  Patrick Marlier  <patrick.marlier@gmail.com>

	PR middle-end/53992
	* gcc.dg/gomp/pr53992.c: New test.

From-SVN: r190537
2012-08-20 16:25:21 +00:00
Ramana Radhakrishnan 1816c0f8ff re PR target/54212 (ARM: invalid instruction (vdupeq.32) generated)
Fix PR target/54212

2012-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

	Backport from mainline.
	2012-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

	PR target/54212
	* config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
	mark as predicable. Adjust asm template.
	(vec_setv2di_internal): Likewise.
	(vec_extract<mode> VD, VQ): Likewise.
	(vec_extractv2di): Likewise.
	(neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
	(neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
	(neon_vdup_n<mode> VX, V32): Likewise.
	(neon_vdup_nv2di): Likewise.

From-SVN: r190527
2012-08-20 10:18:36 +00:00
GCC Administrator bc640f6a70 Daily bump.
From-SVN: r190520
2012-08-20 00:17:23 +00:00
GCC Administrator 5a3ab74303 Daily bump.
From-SVN: r190507
2012-08-19 00:17:32 +00:00
Walter Lee fcb6ad2749 Define stubs for feedback instrumentation.
Backport from mainline
	2012-08-17  Walter Lee  <walt@tilera.com>

	* config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
	(FEEDBACK_ENTER): Define.
	(FEEDBACK_REENTER): Define.
	(FEEDBACK_ENTRY): Define.
	* config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
	(FEEDBACK_ENTER): Define.
	(FEEDBACK_REENTER): Define.
	(FEEDBACK_ENTRY): Define.

From-SVN: r190500
2012-08-18 03:28:23 +00:00
GCC Administrator 1c9686c06e Daily bump.
From-SVN: r190497
2012-08-18 00:17:49 +00:00
David Edelsohn 091d3741f2 config.host (*-*-aix*): Move rs6000/t-ibm-ldouble after rs6000/t-slibgcc-aix.
* config.host (*-*-aix*): Move rs6000/t-ibm-ldouble after
        rs6000/t-slibgcc-aix.

From-SVN: r190466
2012-08-16 22:33:24 -04:00
GCC Administrator 56a8ce70fd Daily bump.
From-SVN: r190461
2012-08-17 00:17:45 +00:00
Walter Lee 979f648582 Add a stub header file "feedback.h," needed to compile glibc and linux.
Add a stub header file "feedback.h," needed to compile glibc and
linux.
       Backport from mainline
       2012-08-16  Walter Lee  <walt@tilera.com>

       * config.gcc (tilegx-*-linux*): Add feedback.h.
       (tilepro-*-linux*): Likewise.
       * config/tilegx/feedback.h: New file.
       * config/tilepro/feedback.h: New file.

From-SVN: r190453
2012-08-16 20:08:44 +00:00
GCC Administrator a29254b16e Daily bump.
From-SVN: r190425
2012-08-16 00:17:56 +00:00
GCC Administrator 1fd4656de5 Daily bump.
From-SVN: r190400
2012-08-15 00:17:48 +00:00
Pavel Chupin ba57573f0b backport: i386.md (stack_protect_set): Disable the pattern for Android since Android libc (bionic) does not provide...
Backport from mainline r189840 and r187586:

        2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>

        * config/i386/i386.md (stack_protect_set): Disable the pattern
        for Android since Android libc (bionic) does not provide random
        value for stack protection guard at gs:0x14. Guard value
        will be provided from external symbol (default implementation).
        (stack_protect_set_<mode>): Likewise.
        (stack_protect_test): Likewise.
        (stack_protect_test_<mode>): Likewise.
        * gcc/defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
        not have Bionic by default
        * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
        Macro OPTION_BIONIC is defined in this file and provides Bionic
        accessibility status

        2012-05-16  Igor Zamyatin  <igor.zamyatin@intel.com>

        * configure.ac: Stack protector enabling for Android targets.
        * configure: Regenerate.

From-SVN: r190383
2012-08-14 13:59:04 +00:00
GCC Administrator 995734aed4 Daily bump.
From-SVN: r190371
2012-08-14 00:17:21 +00:00
David Adler 51ca6e8757 re PR libstdc++/54185 (condition_variable not properly destructed)
2012-08-13  David Adler  <d.adler.s@gmail.com>

	PR libstdc++/54185
	* src/c++11/condition_variable.cc (condition_variable): Always
	destroy native type in destructor.
	* testsuite/30_threads/condition_variable/54185.cc: New.

From-SVN: r190357
2012-08-13 20:57:31 +01:00
Jakub Jelinek bb3e966baa backport: re PR rtl-optimization/53942 (unable to find a register to spill in class 'CREG')
Backported from trunk
	2012-07-19  Jakub Jelinek  <jakub@redhat.com>

	PR rtl-optimization/53942
	* function.c (assign_parm_setup_reg): Avoid zero/sign extension
	directly from likely spilled non-fixed hard registers, move them
	to pseudo first.

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

From-SVN: r190338
2012-08-13 09:35:03 +02:00
GCC Administrator 095bcbcea0 Daily bump.
From-SVN: r190334
2012-08-13 00:17:09 +00:00
GCC Administrator 3887e4025d Daily bump.
From-SVN: r190323
2012-08-12 00:17:11 +00:00
Uros Bizjak 4c0ca486e0 sse.md (xop_phaddbq): Fix vec_select selectors.
* config/i386/sse.md (xop_phaddbq):  Fix vec_select selectors.
	(xop_phaddubq): Ditto.

From-SVN: r190315
2012-08-11 15:08:16 +02:00
Ian Lance Taylor cf44d5ce6f compiler: Reject type switch using non-interface type.
Fixes issue 16.

From-SVN: r190311
2012-08-11 04:09:31 +00:00
GCC Administrator fc862a36d3 Daily bump.
From-SVN: r190307
2012-08-11 00:17:43 +00:00
Ulrich Weigand 291381469a backport: target.def (vector_alignment): New target hook.
ChangeLog:

	Backport from mainline
	2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
		    Richard Earnshaw  <rearnsha@arm.com>

	* target.def (vector_alignment): New target hook.
	* doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
	* doc/tm.texi: Regenerate.
	* targhooks.c (default_vector_alignment): New function.
	* targhooks.h (default_vector_alignment): Add prototype.
	* stor-layout.c (layout_type): Use targetm.vector_alignment.
	* config/arm/arm.c (arm_vector_alignment): New function.
	(TARGET_VECTOR_ALIGNMENT): Define.

	* tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
	vector type alignment instead of size.
	* tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
	element type size directly instead of computing it from alignment.
	Fix variable naming and comment.


testsuite/ChangeLog:

	Backport from mainline
	2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>

	* lib/target-supports.exp
	(check_effective_target_vect_natural_alignment): New function.
	* gcc.dg/align-2.c: Only run on targets with natural alignment
	of vector types.
	* gcc.dg/vect/slp-25.c: Adjust tests for targets without natural
	alignment of vector types.

From-SVN: r190295
2012-08-10 13:21:31 +00:00
GCC Administrator 7bd5dcfff3 Daily bump.
From-SVN: r190276
2012-08-10 00:17:28 +00:00
Uros Bizjak 7b1b36b373 alpha.c (alpha_pad_noreturn): Rename to ...
* config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
	(alpha_pad_function_end): ... this.  Also insert NOP between
	sibling call and GP load.
	(alpha_reorg): Update call to alpha_pad_function_end.  Expand comment.

From-SVN: r190262
2012-08-09 20:44:40 +02:00
H.J. Lu 75e5f9516f Don't return identity for CONST or symbolic reference
gcc/

2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>

	Backport from mainline
	2012-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
		    H.J. Lu  <hongjiu.lu@intel.com>

	PR rtl-optimization/54157
	* combine.c (gen_lowpart_for_combine): Don't return identity
	for CONST or symbolic reference.

gcc/testsuite/

2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>

	Backport from mainline
	2012-08-08  H.J. Lu  <hongjiu.lu@intel.com>

	PR rtl-optimization/54157
	* gcc.target/i386/pr54157.c: New file.

From-SVN: r190256
2012-08-09 08:33:28 -07:00
GCC Administrator 0effd1a6a6 Daily bump.
From-SVN: r190245
2012-08-09 00:17:42 +00:00
GCC Administrator 7edf726be0 Daily bump.
From-SVN: r190218
2012-08-08 00:17:23 +00:00
GCC Administrator e71858e1d7 Daily bump.
From-SVN: r190193
2012-08-07 00:17:15 +00:00
Peter Bergner ad542734e1 re PR libstdc++/54036 (Negating a DFP NAN in C++ produces NAN not -NAN)
2012-08-06  Peter Bergner  <bergner@vnet.ibm.com>

	PR libstdc++/54036
	* include/decimal/decimal.h (_DEFINE_DECIMAL_UNARY_OP): Use _Op as
	a unary operator.
	* testsuite/decimal/pr54036-1.cc: New test.
	* testsuite/decimal/pr54036-2.cc: Likewise.
	* testsuite/decimal/pr54036-3.cc: Likewise.

From-SVN: r190185
2012-08-06 18:00:00 +00:00
Uros Bizjak 5b42371aed backport: i386-protos.h (ix86_lea_outperforms): Remove prototype.
Backport from mainline
	2012-07-23  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
	* config/i386/i386.c (ix86_lea_outperforms): Make static.  Make
	split_cost argument signed.
	(ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
	(ix86_avoid_lea_for_addr): Ditto.

	2012-07-27  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_avoid_lea_for_addr): Return false if
	the address has less than two components.

From-SVN: r190183
2012-08-06 18:28:42 +02:00
Nick Clifton 539f5de073 Revert delta 190174
From-SVN: r190178
2012-08-06 14:34:27 +00:00
Nick Clifton e3f70cbec1 Latest updates from FSF 4.7 branch
From-SVN: r190174
2012-08-06 09:24:36 +00:00
GCC Administrator 6e5fcec72b Daily bump.
From-SVN: r190153
2012-08-06 00:17:18 +00:00
GCC Administrator 571c5982d8 Daily bump.
From-SVN: r190148
2012-08-05 00:17:56 +00:00
GCC Administrator 06f72dc3f6 Daily bump.
From-SVN: r190138
2012-08-04 00:17:53 +00:00
GCC Administrator d062934fda Daily bump.
From-SVN: r190107
2012-08-03 00:17:13 +00:00
Steve Ellcey f869fb05d9 backport: mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in MIPS16 mode.
2012-08-02  Steve Ellcey  <sellcey@mips.com>

	Backport from Mainline
	2012-07-19  Steve Ellcey  <sellcey@mips.com>

	* config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
	MIPS16 mode.

From-SVN: r190091
2012-08-02 18:24:09 +00:00
Uros Bizjak bbf46384ae backport: re PR target/53961 (internal compiler error: in memory_address_length, at config/i386/i386.c:23341)
Backport from mainline
	2012-07-24  Uros Bizjak  <ubizjak@gmail.com>

	PR target/53961
	* config/i386/i386.c (ix86_legitimate_address_p): Move check for
	negative constant address for TARGET_X32 ...
	(ix86_decompose_address): ... here.  Reject constant addresses
	that don't satisfy x86_64_immediate_operand predicate.

	2012-07-23  Uros Bizjak  <ubizjak@gmail.com>

	PR target/53961
	* config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
	* config/i386/i386.c (ix86_print_operand_address): Ditto.
	(ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
	addresses.  Prevent zero extensions of CONST_INT operands.

	2012-07-22  Uros Bizjak  <ubizjak@gmail.com>

	PR target/53961
	* config/i386/i386.md (*lea): New insn pattern.
	(*lea_1): Remove.
	(*lea<mode>_2): Ditto.
	(*lea_{3,4,5,6}_zext): Ditto.
	* config/i386/predicates.md (lea_address_operand): Do not reject
	zero-extended address operands.
	* config/i386/constraints.md (j): Remove address constraint.
	* config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
	of an address.
	(ix86_print_operand_address): Handle SImode subreg of an address.
	(ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.

From-SVN: r190089
2012-08-02 18:24:25 +02:00
Michael Hope 220b59797b backport: Makefile.am (check_DEJAGNUnormal0): Run prettyprinters.exp.
2012-08-02  Michael Hope  <michael.hope@linaro.org>

	Backport from mainline r186389:
	2012-04-12  Andreas Schwab  <schwab@linux-m68k.org>

	* testsuite/Makefile.am (check_DEJAGNUnormal0): Run
	prettyprinters.exp.
	* testsuite/Makefile.in: Regenerated.

From-SVN: r190064
2012-08-02 04:14:13 +00:00
GCC Administrator 57d8873f4b Daily bump.
From-SVN: r190059
2012-08-02 00:17:03 +00:00
Uros Bizjak a7d688d8d4 backport: re PR target/52530 (Many 64-bit execution failures on Solaris 10/11 with Sun as)
Backport from mainline
	2012-03-09  Uros Bizjak  <ubizjak@gmail.com>

	PR target/52530
	* config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
	(ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
	to set code to 'q'.
	* config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
	(*movdi_internal_rex64): Use %E operand modifier for lea.
	(*movsi_internal): Ditto.
	(*lea_1): Ditto.
	(*lea<mode>_2): Ditto.
	(*lea_{3,4,5,6}_zext): Ditto.
	(*tls_global_dynamic_32_gnu): Ditto.
	(*tls_global_dynamic_64): Ditto.
	(*tls_dynamic_gnu2_lea_32): Ditto.
	(*tls_dynamic_gnu2_lea_64): Ditto.
	(pro_epilogue_adjust_stack_<mode>_add): Ditto.

testsuite/ChangeLog:

	Backport from mainline
	2012-03-11  Uros Bizjak  <ubizjak@gmail.com>

	PR target/52530
	* gcc.dg/torture/pr52530.c: New test.

From-SVN: r190048
2012-08-01 21:14:59 +02:00
Uros Bizjak 24e7d1b745 backport: i386.c (ix86_address_subreg_operand): Reject stack pointer.
Backport from mainline
	2012-08-01  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_address_subreg_operand): Reject
	stack pointer.
	(ix86_print_operand_address): Assert that parts.base and parts.index
	are non-NULL after call to simplify_subreg.

From-SVN: r190045
2012-08-01 19:03:34 +02:00
GCC Administrator 2180887424 Daily bump.
From-SVN: r190027
2012-08-01 00:17:41 +00:00
GCC Administrator c77915ba9a Daily bump.
From-SVN: r189992
2012-07-31 00:17:48 +00:00
GCC Administrator 2695ea3845 Daily bump.
From-SVN: r189949
2012-07-30 00:17:06 +00:00
François Dumont ffdcd25a3d re PR libstdc++/54075 ([4.7.1] unordered_map insert still slower than 4.6.2)
2012-07-29  François Dumont  <fdumont@gcc.gnu.org>

	PR libstdc++/54075
	* include/bits/hashtable_policy.h
	(_Prime_rehash_policy::_M_next_bkt): Add a growth factor set to 2
	to boost growth in the number of buckets.
	* testsuite/performance/23_containers/insert/unordered_set.cc: New.

From-SVN: r189941
2012-07-29 17:06:21 +00:00
GCC Administrator 9caf8fca3f Daily bump.
From-SVN: r189928
2012-07-29 00:17:43 +00:00
GCC Administrator 57a36ffef9 Daily bump.
From-SVN: r189923
2012-07-28 00:18:14 +00:00
Anna Tikhonova bc3ebca21e 20020201-1.c: Remove declarations for exit, abort, rand, srand.
* gcc.dg/20020201-1.c: Remove declarations for exit, abort,
        rand, srand. Include <stdlib.h>.

From-SVN: r189906
2012-07-27 09:56:24 +00:00
GCC Administrator a542fde423 Daily bump.
From-SVN: r189903
2012-07-27 00:18:04 +00:00
François Dumont 2b0db891d5 re PR libstdc++/54075 ([4.7.1] unordered_map insert still slower than 4.6.2)
2012-07-26  François Dumont  <fdumont@gcc.gnu.org>

	PR libstdc++/54075
	* include/bits/hashtable.h
	(_Hashtable<>::_Hashtable(_InputIterator, _InputIterator,
	size_type, ...): Remove std::max usage to guarantee that hashtable
	state is consistent with hash policy state.
	(_Hashtable<>::rehash): Likewise. Set _M_prev_resize to 0 to avoid
	the hashtable shrinking on next insertion.
	* testsuite/23_containers/unordered_set/modifiers/reserve.cc: New.
	* testsuite/23_containers/unordered_multiset/modifiers/reserve.cc: New.
	* testsuite/23_containers/unordered_map/modifiers/reserve.cc: New.
	* testsuite/23_containers/unordered_multimap/modifiers/reserve.cc: New.

From-SVN: r189889
2012-07-26 12:31:50 +00:00
Ian Lance Taylor 22d4dd9bdc runtime, runtime/pprof: Fix runtime/pprof test to pass, enable it.
From-SVN: r189879
2012-07-26 01:57:22 +00:00
GCC Administrator be36862c95 Daily bump.
From-SVN: r189875
2012-07-26 00:17:54 +00:00
GCC Administrator dd42dcf0a5 Daily bump.
From-SVN: r189831
2012-07-25 00:17:19 +00:00
GCC Administrator d5531c07ea Daily bump.
From-SVN: r189799
2012-07-24 00:17:11 +00:00
Ian Lance Taylor 392eecedb1 runtime: correct a logic error in hashmap growth.
The bug prevented maps to grow properly to sizes
larger than 1.3 million.

From Rémy Oudompheng.

From-SVN: r189767
2012-07-23 03:57:53 +00:00
GCC Administrator dcdf41c0ba Daily bump.
From-SVN: r189764
2012-07-23 00:17:12 +00:00
Oleg Endo cc6d632735 re PR target/33135 ([SH] -ffinite-math-only should not be on by default)
PR target/33135
	* config/sh/sh.opt (mieee): Use Var instead of Mask.  Correct
	description.
	* config/sh/sh.c (sh_option_override): Do not change 
	flag_finite_math_only.  Set TARGET_IEEE to complement of
	flag_finite_math_only.
	* doc/invoke.texi (SH options): Add mno-ieee.  Correct
	description of mieee and mno-ieee behavior.

From-SVN: r189761
2012-07-22 23:44:45 +00:00
GCC Administrator d376855584 Daily bump.
From-SVN: r189750
2012-07-22 00:18:12 +00:00
GCC Administrator 2cf2dda48a Daily bump.
From-SVN: r189736
2012-07-21 00:17:15 +00:00
Jason Merrill 3a9a9cf92a re PR c++/54038 (finalize_type_size enters infinite loop becasue TYPE_NEXT_VARIANT (variant) == variant)
PR c++/54038
	* tree.c (build_cplus_array_type): Use build_cplus_array_type to build
	canonical array type rather than mess with its TYPE_*_VARIANT.

From-SVN: r189720
2012-07-20 12:11:58 -04:00
Paolo Carlini acea806bc8 adl.cc: Add missing dg-requires.
2012-07-20  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/30_threads/thread/adl.cc: Add missing dg-requires.

From-SVN: r189710
2012-07-20 09:44:33 +00:00
Kirill Yukhin 6ff07822f1 re PR target/53877 (__lzcnt_u16/__lzcnt_u32/__lzcnt_u64 aren't implemented)
2012-07-20  Kirill Yukhin  <kirill.yukhin@intel.com>

        PR target/53877
        * config/i386/lzcntintrin.h (_lzcnt_u32): New.
        (_lzcnt_u64): Ditto.

From-SVN: r189706
2012-07-20 08:57:04 +00:00
Andrey Belevantsev c9a658c43d backport: re PR rtl-optimization/52250 (ICE: in sel_remove_bb, at sel-sched-ir.c:5213 with -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fselective-scheduling2 and other flags)
Backport from mainline
        2012-03-06  Andrey Belevantsev  <abel@ispras.ru>

        PR rtl-optimization/52250
        * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
        to put note list into.  Unconditionally call move_bb_info.
        (move_bb_info): Do not assert the blocks being in the same region,
        just drop the note list if they are not.

From-SVN: r189705
2012-07-20 12:49:52 +04:00
Jason Merrill b0e0072087 re PR c++/54026 (template const struct with mutable members erroneously emitted to .rodata)
PR c++/54026
	* typeck.c (cp_apply_type_quals_to_decl): Check COMPLETE_TYPE_P.

From-SVN: r189702
2012-07-20 02:29:33 -04:00
GCC Administrator 767bfa9761 Daily bump.
From-SVN: r189694
2012-07-20 00:16:39 +00:00
Eric Botcazou 020b7c3ff3 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
From-SVN: r189690
2012-07-19 21:56:33 +00:00
Eric Botcazou 225adb18c2 tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the defining statement is a SSA name that occurs in abnormal...
* tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
	defining statement is a SSA name that occurs in abnormal PHIs.

From-SVN: r189688
2012-07-19 21:40:23 +00:00
Eric Botcazou 7b677d9ded gimple-fold.c (canonicalize_constructor_val): Strip only useless type conversions.
* gimple-fold.c (canonicalize_constructor_val): Strip only useless type
	conversions.

From-SVN: r189686
2012-07-19 21:26:17 +00:00
Eric Botcazou 71776ec4d9 decl.c (gnat_to_gnu_entity): Try to ensure that an object of CW type initialized to a value is sufficiently...
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Try to ensure
	that an object of CW type initialized to a value is sufficiently
	aligned for this value.

From-SVN: r189683
2012-07-19 21:16:42 +00:00
Richard Guenther 69396ee900 tree-ssa-ccp.c (valid_lattice_transition): Clarify comment about transition from invariant to known bits.
* tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
	about transition from invariant to known bits.
	(likely_value): Addresses with UNDEFINED components are UNDEFINED.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r189679
2012-07-19 20:25:07 +00:00
Eric Botcazou 442a102d18 decl.c (gnat_to_gnu_entity): Do not look up the REP part of the base type in advance.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Do not
	look up the REP part of the base type in advance.  Deal with that of
	the variant types.
	(get_rep_part): Be prepared for record types with fields.

From-SVN: r189667
2012-07-19 15:46:06 +00:00
Jakub Jelinek 59f205ff69 re PR middle-end/54017 (Incorrect implementation of infinite loops in OpenMP sections leads to SIGILL)
PR middle-end/54017
	* tree-cfgcleanup.c (cleanup_omp_return): Remove.
	(cleanup_tree_cfg_bb): Don't call it.
	* omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
	handling.

	* c-c++-common/gomp/pr54017.c: New test.

From-SVN: r189659
2012-07-19 16:05:54 +02:00
Christian Bruel 9c775c5263 re PR target/54029 (SH: ICE in find_dead_or_set_registers)
PR target/54029
* config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.

From-SVN: r189657
2012-07-19 15:46:46 +02:00
Jason Merrill 428e8826c2 method.c (process_subob_fn): Make sure no_implicit_p is non-null before trying to store through it.
* method.c (process_subob_fn): Make sure no_implicit_p is non-null
	before trying to store through it.

From-SVN: r189641
2012-07-18 21:37:07 -04:00
GCC Administrator 8c58d3fedf Daily bump.
From-SVN: r189636
2012-07-19 00:17:09 +00:00
Ralf Corsepius 460d956a73 config.gcc (v850-*-rtems*): New target.
2012-07-18  Ralf Corsépius  <ralf.corsepius@rtems.org>

       * config.gcc (v850-*-rtems*): New target.
       * config/v850/rtems.h: New.
       * config/v850/t-rtems: New.

From-SVN: r189619
2012-07-18 17:34:46 +02:00
Nick Clifton dbbb10ea82 * doc/invoke.texi (ARM Options): Document -munaligned-access.
From-SVN: r189613
2012-07-18 12:45:39 +00:00
Richard Guenther 35bc024f38 backport: pr52621.f90: Add -w to avoid diagnostic about unsupported prefetching support.
2012-07-18  Richard Guenther  <rguenther@suse.de>

        Backport from mainline
        2012-05-03  Richard Guenther  <rguenther@suse.de>

        * gfortran.dg/pr52621.f90: Add -w to avoid diagnostic about
        unsupported prefetching support.

From-SVN: r189606
2012-07-18 08:35:41 +00:00
Jason Merrill 383e40fa3e re PR c++/53995 (Overload resolution fails with enum argument, says <anonymous enum>)
PR c++/53995
	* decl.c (finish_enum_value_list): Only call
	insert_late_enum_def_into_classtype_sorted_fields in class scope.

From-SVN: r189599
2012-07-17 22:48:17 -04:00
GCC Administrator 2947332637 Daily bump.
From-SVN: r189593
2012-07-18 00:16:55 +00:00
Jason Merrill 624685a5ba re PR c++/53989 (Internal compiler error in strip_typedefs, at cp/tree.c:1187)
PR c++/53989
	* tree.c (build_cplus_array_type): Also add TYPE_CANONICAL
	to the list of variants.

From-SVN: r189588
2012-07-17 17:34:22 -04:00
Jason Merrill ddc8f2d512 re PR c++/53549 (g++ and armadillo 3.2.0, operator() is inaccessible)
PR c++/53549
	* parser.c (cp_parser_class_head): Call xref_basetypes here.
	(cp_parser_class_specifier_1): Not here.
	* pt.c (tsubst_decl) [USING_DECL]: Check uses_template_parms
	as well as DECL_DEPENDENT_P.

From-SVN: r189585
2012-07-17 15:27:51 -04:00
GCC Administrator 470c5ad16a Daily bump.
From-SVN: r189558
2012-07-17 00:17:20 +00:00
Jonathan Wakely 7868eae9d7 re PR libstdc++/53270 (Error when bootstrapping gcc on hppa2.0-unknown-linux-gcc)
PR libstdc++/53270
	* include/ext/concurrence.h: Use NSDMI for gthreads types.
	* include/ext/rope: Likewise. Destroy mutexes in destructors. Add
	system_header pragma.

	Revert:
	2012-06-19  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/53270
	* config/os/gnu-linux/os_defines.h: Disable static initializer macros
	for gthreads types in C++11 mode.

From-SVN: r189555
2012-07-16 23:34:13 +01:00
Jonathan Wakely 7f45a48547 re PR libstdc++/53978 (Missing static const definitions in <bits/alloc_traits.h>)
PR libstdc++/53978
	* include/bits/alloc_traits.h (allocator_traits): Define static
	constants.
	* include/bits/ptr_traits.h (pointer_traits): Likewise.
	* include/ext/alloc_traits.h (__allocator_always_compares_equal):
	Likewise.

From-SVN: r189548
2012-07-16 21:47:40 +01:00
GCC Administrator ff3524bec4 Daily bump.
From-SVN: r189498
2012-07-16 00:17:39 +00:00
Uros Bizjak 486f7806a5 re PR target/53961 (internal compiler error: in memory_address_length, at config/i386/i386.c:23341)
PR target/53961

	Backport from mainline
	2012-04-25  Jakub Jelinek  <jakub@redhat.com>

	PR target/53110
	* config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
	instead expand it as zero extension.

From-SVN: r189491
2012-07-15 10:13:47 +02:00
GCC Administrator d5c6e86058 Daily bump.
From-SVN: r189488
2012-07-15 00:17:52 +00:00
Uros Bizjak d672a7854f i386.md (QImode and HImode cmove splitters): Merge QImode and HImode splitters.
* config/i386/i386.md (QImode and HImode cmove splitters): Merge
	QImode and HImode splitters.  Use ix86_comparison_operator.
	Explicitly match FLAGS_REG.
	(DFmode cmove splitter): Explicitly match FLAGS_REG.

From-SVN: r189478
2012-07-14 09:42:08 +02:00
GCC Administrator 21fd0bd667 Daily bump.
From-SVN: r189475
2012-07-14 00:16:52 +00:00
Hans-Peter Nilsson 0b81adb034 re PR rtl-optimization/53908 (csa removes needed memory load)
PR rtl-optimization/53908
	* gcc.dg/torture/pr53908.c: New test.

From-SVN: r189469
2012-07-13 17:22:55 +00:00
Richard Sandiford 0acdd1e392 re PR rtl-optimization/53908 (csa removes needed memory load)
PR rtl-optimization/53908
	* df-problems.c (can_move_insns_across): When doing
	memory-reference book-keeping, handle call insns.

Co-Authored-By: Bernd Schmidt <bernds@codesourcery.com>
Co-Authored-By: Steven Bosscher <steven@gcc.gnu.org>

From-SVN: r189468
2012-07-13 17:21:41 +00:00
Jason Merrill c4180e5f31 re PR regression/53953 (g++.dg/cpp0x/lambda/lambda-ice2.C (warnings and errors not matching))
PR c++/53953
	* method.c (synthesized_method_walk): Initialize no_implicit_p sooner.

From-SVN: r189466
2012-07-13 11:09:47 -04:00
Paolo Carlini 2ea4713db5 re PR libstdc++/53657 ([C++11] pair(pair&&) move constructor is non-trivial)
2012-07-13  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/53657
	* include/bits/stl_pair.h (pair<>::pair(pair&&)): Declare defaulted,
	per C++11.
	* include/bits/stl_map.h (map<>::insert(_Pair&&), map<>::insert
	(const_iterator, _Pair&&)): Constrain with std::is_constructible,
	per LWG2005.
	* include/bits/stl_multimap.h (multimap<>::insert(_Pair&&),
	multimap<>::insert(const_iterator, _Pair&&)): Likewise.
	* include/bits/hashtable.h (_Hashtable<>::insert(_Pair&&),
	_Hashtable<>::insert(const_iterator, _Pair&&)): Likewise.
	* include/debug/unordered_map: Adjust.
	* include/debug/map.h: Likewise.
	* include/debug/multimap.h: Likewise.
	* include/profile/unordered_map: Likewise.
	* include/profile/map.h: Likewise.
	* include/profile/multimap.h: Likewise.

From-SVN: r189457
2012-07-13 09:00:18 +00:00
GCC Administrator dcd1cf087d Daily bump.
From-SVN: r189447
2012-07-13 00:16:30 +00:00
GCC Administrator ec93987093 Daily bump.
From-SVN: r189430
2012-07-12 00:16:39 +00:00
GCC Administrator b8ea97010c Daily bump.
From-SVN: r189419
2012-07-11 00:19:04 +00:00
Uros Bizjak 1a5c21dd5f backport: re PR target/53811 (ICE: in insn_default_length, at config/i386/i386.md:529 (unrecognizable insn) with -mcmodel=large)
Backport from mainline
	2012-07-03  Uros Bizjak  <ubizjak@gmail.com>

	PR target/53811
	* config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
	sibcall_insn_operand.  Move it to a temporary register if not.

	2012-07-06  Uros Bizjak  <ubizjak@gmail.com>

	PR target/53853
	* config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
	emit PIC sequence for fnaddr symbol reference in advance.

testsuite/ChangeLog:

	Backport from mainline
	2012-07-03  Uros Bizjak  <ubizjak@gmail.com>

	PR target/53811
	* g++.dg/other/pr53811.C: New test.

From-SVN: r189412
2012-07-10 19:53:48 +02:00
GCC Administrator a75dc9b763 Daily bump.
From-SVN: r189400
2012-07-10 00:17:05 +00:00
Jason Merrill 45bccf555c DR 1402 PR c++/53733
DR 1402
	PR c++/53733
	* cp-tree.h (FNDECL_SUPPRESS_IMPLICIT_DECL): New.
	(struct lang_decl_fn): Add suppress_implicit_decl field.
	* method.c (implicitly_declare_fn): Check it.
	(process_subob_fn): Add no_implicit_p parm.
	(walk_field_subobs, synthesized_method_walk): Likewise.
	(maybe_explain_implicit_delete): Adjust.
	(explain_implicit_non_constexpr): Adjust.

From-SVN: r189398
2012-07-09 20:05:50 -04:00
Jason Merrill 3821e1b879 method.c (synthesized_method_walk): Cleanups don't affect the EH spec either.
* method.c (synthesized_method_walk): Cleanups don't affect the EH
	spec either.

From-SVN: r189397
2012-07-09 20:05:38 -04:00
Janis Johnson 69def80922 backport: re PR testsuite/20771 (Duplicate PCH test names)
Backport from mainline.
	2012-06-28  Janis Johnson  <janisjo@codesourcery.com>

	* g++.dg/cpp0x/nullptr19.c: Remove exta directives on same line.

	* g++.dg/template/error46.C: Add missing comment to dg-message.
	* g++.dg/template/crash107.C: Likewise.
	* g++.dg/template/error47.C: Likewise.
	* g++.dg/template/crash108.C: Likewise.
	* g++.dg/overload/operator5.C: Likewise.

	* gcc.dg/Wstrict-aliasing-converted-assigned.c: Fix syntax
	errors in dg-message directives, add comments.

	2012-06-26  Janis Johnson  <janisjo@codesourcery.com>

	* lib/scandump.exp (scan-dump, scan-dump-not, scan-dump-dem,
	scan-dump-dem-not): Use printable pattern in test name.

	2012-06-25  Janis Johnson  <janisjo@codesourcery.com>

	* lib/target-supports-dg.exp (testname-for-summary): New.
	* lib/profopt.exp (profopt_execute): Define testname_with_flags.
	* lib/gcc-dg.exp (cleanup-coverage-files, cleanup-repo-notes,
	cleanup-stack-usage, cleanup-dump, cleanup-saved-temps, scan-module,
	scan-module-absence, output-exists, output-exists-not: Use
	testname-for-summary.
	(dg-test): Clean up testname_with_flags.
	* lib/scanasm.exp (scan-assembler, scan-assembler-not, scan-hidden,
	scan-not-hidden, scan-file, scan-file-not, scan-stack-usage,
	scan-stack-usage-not, scan-assembler-times, scan-assembler-dem,
	scan-assembler-dem-not, object-size: Use testname-for-summary.
	* lib/gcov.exp (run-gcov): Likewise.
	* lib/scandump.exp (scan-dump, scan-dump-times, scan-dump-not,
	scan-dump-dem, scan-dump-dem-note): Likewise.

	* lib/profopt.exp: Make prof_option_list local to profopt-execute.
	* g++.dg/tree-prof/tree-prof.exp (PROFOPT_OPTIONS): Define after
	including profopt.opt; save and restore existing value.
	* g++.dg/bprob/bprob.exp: Likewise.
	* gcc.dg/matrix/matrix.exp: Likewise.
	* gcc.dg/tree-prof/tree-prof.exp: Likewise.
	* gcc.misc-tests/bprob.exp: Likewise; also replace formerly-ignored
	PROFOPT_OPTIONS.

	2012-06-15  Janis Johnson  <janosjo@codesourcery.com>

	* lib/gcov.exp (verify-lines, verify-branches, verify-calls): Use
	testname that includes flags, passed in as new argument, in
	pass/fail messages.
	(run_gcov): Get testname from dg-test, use it in pass/fail messages
	and pass it to verify-* procedures.

	* g++.dg/torture/stackalign/stackalign.exp: Combine stack
	alignment torture options with usual torture options.

	* g++.dg/cpp0x/auto27.C: Add comments to checks for multiple
	messages reported for one line of source code.
	* g++.dg/cpp0x/constexpr-decl.C: Likewise.
	* g++.dg/cpp0x/decltype2.C: Likewise.
	* g++.dg/cpp0x/decltype3.C: Likewise.
	* g++.dg/cpp0x/lambda/lambda-syntax1.C: Likewise.
	* g++.dg/cpp0x/regress/error-recovery1.C: Likewise.
	* g++.dg/cpp0x/static_assert3.C: Likewise.
	* g++.dg/cpp0x/udlit-cpp98-neg.C: Likewise.
	* g++.dg/cpp0x/udlit-shadow-neg.C: Likewise.
	* g++.dg/cpp0x/union1.C: Likewise.
	* g++.dg/cpp0x/variadic-ex10.C: Likewise.
	* g++.dg/cpp0x/variadic-ex14.C: Likewise.
	* g++.dg/cpp0x/variadic2.C: Likewise.
	* g++.dg/cpp0x/variadic20.C: Likewise.
	* g++.dg/cpp0x/variadic74.C: Likewise.
	* g++.dg/diagnostic/bitfld2.C: Likewise.
	* g++.dg/ext/attrib44.C: Likewise.
	* g++.dg/ext/no-asm-1.C: Likewise.
	* g++.dg/other/error34.C: Likewise.
	* g++.dg/parse/crash46.C: Likewise.
	* g++.dg/parse/error10.C: Likewise.
	* g++.dg/parse/error2.C: Likewise.
	* g++.dg/parse/error3.C: Likewise.
	* g++.dg/parse/error36.C: Likewise.
	* g++.dg/parse/error8.C: Likewise.
	* g++.dg/parse/error9.C: Likewise.
	* g++.dg/parse/parser-pr28152-2.C: Likewise.
	* g++.dg/parse/parser-pr28152.C: Likewise.
	* g++.dg/parse/template25.C: Likewise.
	* g++.dg/parse/typename11.C: Likewise.
	* g++.dg/tc1/dr147.C: Likewise.
	* g++.dg/template/deduce3.C: Likewise.
	* g++.dg/template/koenig9.C: Likewise.
	* g++.dg/template/pr23510.C: Likewise.
	* g++.dg/warn/pr12242.C: Likewise.
	* g++.dg/warn/pr30551-2.C: Likewise.
	* g++.dg/warn/pr30551.C: Likewise.
	* g++.old-deja/g++.other/typename1.C: Likewise.
	* g++.old-deja/g++.pt/niklas01a.C: Likewise.

	2012-06-13  Janis Johnson  <janisjo@codesourcery.com>

	PR testsuite/20771
	* lib/dg-pch.exp (dg-flags-pch): Add flags to make compile lines in
	test summary unique.

	* lib/scanasm.exp (scan-assembler, scan-assembler-not, scan-hidden,
	scan-not-hiddent, scan-file, scan-file-not, scan-stack-usage,
	scan-stack-usage-not): Don't strip torture options from test name.

	* lib/scandump.exp (scan-dump-times): Use printable version of
	regexp in test summary line.

	* gcc.dg/di-longlong64-sync-1.c: Add comments to checks for multiple
	messages reported for one line of source code.
	* gcc.dg/format/few-1.c: Likewise.
	* gcc.dg/ia64-sync-2.c: Likewise.
	* gcc.dg/sync-2.c: Likewise.
	* gcc.dg/noncompile/pr44517.c: Likewise.

	2012-06-12  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.dg/torture/stackalign/stackalign.exp: Combine stack
	alignment torture options with usual torture options.
	* gcc.dg/torture/stackalign/alloca-2.c: Use dg-additional-options
	instead of dg-options.
	* gcc.dg/torture/stackalign/alloca-3.c: Likewise.
	* gcc.dg/torture/stackalign/alloca-4.c: Likewise.
	* gcc.dg/torture/stackalign/alloca-5.c: Likewise.
	* gcc.dg/torture/stackalign/alloca-6.c: Likewise.
	* gcc.dg/torture/stackalign/push-1.c: Likewise.
	* gcc.dg/torture/stackalign/vararg-3.c: Likewise.

	* gcc.target/arm/di-longlong64-sync-withhelpers.c: Add comments
	to checks for multiple messages reported for one line of source code.
	* gcc.target/arm/di-longlong64-sync-withldrexd.c: Likewise.

	* gcc.c-torture/compile/sync-1.c: Add comments to checks for multiple
	messages reported for one line of source code.

	* gcc.dg/20031223-1.c: Add comments to check for multiple
	messages reported for one line of source code.
	* gcc.dg/Wconversion-integer.c: Likewise.
	* gcc.dg/Wfatal-2.c: Likewise.
	* gcc.dg/Wfatal.c: Likewise.
	* gcc.dg/Wobjsize-1.c: Likewise.
	* gcc.dg/c99-vla-jump-1.c: Likewise.
	* gcc.dg/c99-vla-jump-2.c: Likewise.
	* gcc.dg/c99-vla-jump-3.c: Likewise.
	* gcc.dg/c99-vla-jump-4.c: Likewise.
	* gcc.dg/c99-vla-jump-5.c: Likewise.
	* gcc.dg/decl-9.c: Likewise.
	* gcc.dg/declspec-10.c: Likewise.
	* gcc.dg/declspec-18.c: Likewise.
	* gcc.dg/mtune.c: Likewise.
	* gcc.dg/parser-pr28152-2.c: Likewise.
	* gcc.dg/parser-pr28152.c: Likewise.
	* gcc.dg/pr14475.c: Likewise.
	* gcc.dg/pr27953.c: Likewise.
	* gcc.dg/pr28322-3.c: Likewise.
	* gcc.dg/pr30457.c: Likewise.
	* gcc.dg/pr30551-2.c: Likewise.
	* gcc.dg/pr30551-3.c: Likewise.
	* gcc.dg/pr30551-4.c: Likewise.
	* gcc.dg/pr30551-5.c: Likewise.
	* gcc.dg/pr30551-6.c: Likewise.
	* gcc.dg/pr30551.c: Likewise.
	* gcc.dg/pr45461.c: Likewise.
	* gcc.dg/pr48552-1.c: Likewise.
	* gcc.dg/pr48552-2.c: Likewise.
	* gcc.dg/redecl-1.c: Likewise.
	* gcc.dg/transparent-union-3.c: Likewise.
	* gcc.dg/utf-dflt.c: Likewise.
	* gcc.dg/utf-dflt2.c: Likewise.
	* gcc.dg/vla-8.c: Likewise.
	* gcc.dg/vla-init-1.c: Likewise.
	* gcc.dg/wtr-int-type-1.c: Likewise.

	* c-c++-common/raw-string-3.c: Add comments to checks for multiple
	messages reported for for one line of source code.
	* c-c++-common/raw-string-5.c: Likewise.
	* c-c++-common/raw-string-4.c: Likewise.
	* c-c++-common/raw-string-6.c: Likewise.
	* c-c++-common/pr20000.c: Likewise.

	* gcc.dg/cpp/include2a.c: Add comments to checks for multiple
	messages reported for one line of source code.
	* gcc.dg/cpp/pr30786.c: Likewise.
	* gcc.dg/cpp/pr28709.c: Likewise.
	* gcc.dg/cpp/missing-header-MD.c: Likewise.
	* gcc.dg/cpp/macspace2.c: Likewise.
	* gcc.dg/cpp/missing-header-1.c: Likewise.
	* gcc.dg/cpp/missing-header-MMD.c: Likewise.
	* gcc.dg/cpp/missing-sysheader-MD.c: Likewise.
	* gcc.dg/cpp/missing-sysheader-MMD.c: Likewise.

From-SVN: r189393
2012-07-09 22:10:40 +00:00
Jason Merrill f000d03b6c re PR c++/53882 (ICE in type_contains_placeholder_1, at tree.c:3015)
PR c++/53882
	* tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
	(type_hash_eq): Likewise.

From-SVN: r189388
2012-07-09 10:11:33 -04:00
Jason Merrill febd8953f8 re PR c++/53826 ([alpha]: ICE in fold_convert_loc, at fold-const.c:2008)
PR c++/53826
	* tree.c (build_zero_cst): Handle NULLPTR_TYPE.

From-SVN: r189387
2012-07-09 10:11:16 -04:00
Eric Botcazou a327f0706a Remove duplicate entries.
From-SVN: r189382
2012-07-09 13:27:55 +00:00
Ian Lance Taylor 39c9fe9444 mksysinfo.sh: Fix handling of glibc 2.16 bits/resource.h.
From Jakub Jelinek.

From-SVN: r189373
2012-07-09 11:14:15 +00:00
GCC Administrator 2f2c68ddba Daily bump.
From-SVN: r189364
2012-07-09 00:16:59 +00:00
GCC Administrator fff57efa05 Daily bump.
From-SVN: r189354
2012-07-08 00:16:57 +00:00
Jonathan Wakely 07f387007c re PR libstdc++/53578 (include/ext/concurrence.h relies on ill-formed narrowing conversions)
PR libstdc++/53578
	* include/ext/concurrence.h (__recursive_mutex::_S_destroy): Fix
	narrowing conversion.
	* include/std/mutex (__recursive_mutex_base::_S_destroy): Likewise.

From-SVN: r189351
2012-07-07 19:13:19 +01:00
Ulrich Weigand 47c2c57f14 combine.c (force_to_mode): Avoid undefined behaviour due to negative shift amount.
* combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
	due to negative shift amount.

From-SVN: r189348
2012-07-07 12:27:33 +00:00
GCC Administrator 66887e7839 Daily bump.
From-SVN: r189343
2012-07-07 00:17:16 +00:00
Mikael Morin ad4fdadfd0 re PR fortran/53732 ("mismatching comparison operand types" on compile)
fortran/
	PR fortran/53732
	* trans-array.c (gfc_add_loop_ss_code): Disable self recursive calls
	handling nested loop(s) if the subscript flag is true.

testsuite/
	PR fortran/53732
	* gfortran.dg/inline_sum_4.f90: New test.

From-SVN: r189341
2012-07-06 19:51:15 +00:00
Kai Tietz 16b1765e55 backport: re PR bootstrap/52947 (bootstrap fails due to wrong include search path composition)
Backport from mainline.
        PR bootstrap/52947
        * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
        as "/mingw/include".

From-SVN: r189339
2012-07-06 20:56:09 +02:00
Paolo Carlini 141f7d3f5a re PR libstdc++/53872 ([C++11] ADL bug in std::thread)
2012-07-06  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/53872
	* include/std/thread (thread::_M_make_routine): Qualify make_shared
	to prevent ADL.
	* testsuite/30_threads/thread/adl.cc: New.

From-SVN: r189330
2012-07-06 13:56:24 +00:00
Nick Clifton 02cd0af286 mn10300.c (mn10300_encode_section_info): Call default_encode_section_info.
* config/mn10300/mn10300.c (mn10300_encode_section_info): Call
	default_encode_section_info.

From-SVN: r189317
2012-07-06 10:08:10 +00:00
Richard Guenther 064f886a4b backport: [multiple changes]
2012-07-06  Richard Guenther  <rguenther@suse.de>

	Backport from mainline
        2012-03-30  Richard Guenther  <rguenther@suse.de>

        PR middle-end/52786
        * double-int.c (rshift_double): Remove not
        needed cast.

	2012-03-28  Richard Guenther  <rguenther@suse.de>

	PR middle-end/50708
	* double-int.h (rshift_double): Remove.
	* double-int.c (lshift_double): Use absu_hwi to make count
	positive.
	(rshift_double): Make static, take unsigned count argument,
	remove handling of negative count argument.
	(double_int_rshift): Dispatch to lshift_double.

From-SVN: r189314
2012-07-06 09:25:46 +00:00
Richard Guenther 1ffb6a9714 backport: re PR tree-optimization/53693 (ICE in vect_get_vec_def_for_stmt_copy, at tree-vect-stmts.c:1438)
2012-07-06  Richard Guenther  <rguenther@suse.de>

	Backport from mainline
	2012-06-18  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53693
	* tree-vect-patterns.c (vect_operation_fits_smaller_type):
	Reject operands with more than one use.

	* g++.dg/torture/pr53693.C: New testcase.

From-SVN: r189313
2012-07-06 09:21:36 +00:00
Richard Guenther 23707a1db1 backport: re PR middle-end/52621 (ICE with -O3 -march=opteron in initialize_matrix_A, at tree-data-ref.c:1964)
2012-07-06  Richard Guenther  <rguenther@suse.de>

        Backport from mainline
	2012-04-11  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52621
	* tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
	consider loop nesting.
	(evolution_function_is_univariate_p): Properly check the remainder
	for chrecs.

	* gfortran.dg/pr52621.f90: New testcase.

From-SVN: r189312
2012-07-06 09:20:19 +00:00
GCC Administrator 0b3d0e52b4 Daily bump.
From-SVN: r189309
2012-07-06 00:17:16 +00:00
Pat Haugen 96f848ae54 backport: rs6000.c (rs6000_option_override_internal): Change rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
Backport from mainline
	2012-05-24  Pat Haugen <pthaugen@us.ibm.com>

	* config/rs6000/rs6000.c (rs6000_option_override_internal): Change
	rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
	(adjacent_mem_locations): Move some code to and call...
	(get_memref_parts): ...new function.
	(mem_locations_overlap): New function.
	(rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
	(is_mem_ref): Rename to...
	(find_mem_ref): ...this. Return MEM rtx.
	(get_store_dest): Remove function.
	(is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
	new parameter and adjust calls.
	(rs6000_is_costly_dependence): Update calls for extra arg. Make sure
	mem refs overlap for true_store_to_load_dep_costly.
	(rs6000_sched_reorder2): Update calls for extra arg. Adjust args
	passed to adjacent_mem_locations.
	(is_costly_group): Walk resolved dependency list.
	(force_new_group): Emit group ending nop for Power6/Power7.
	* config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
	(group_ending_nop): New define_insn.

gcc/testsuite:
	* gcc.target/powerpc/lhs-1.c: New.
	* gcc.target/powerpc/lhs-2.c: New.
	* gcc.target/powerpc/lhs-3.c: New.

From-SVN: r189303
2012-07-05 20:30:34 +00:00
Joseph Myers 649a483f31 * hr.po: New.
From-SVN: r189290
2012-07-05 15:30:36 +01:00
Jonathan Wakely 031ada551d * include/std/condition_variable: Update copyright years.
From-SVN: r189276
2012-07-05 02:12:47 +01:00
Jonathan Wakely 040ee04524 re PR libstdc++/53830 (condition_variable_any - deadlock issue)
PR libstdc++/53830
	* include/std/condition_variable (condition_variable_any::wait):
	Move _Unlock type to class scope.
	(condition_variable_any::wait_until): Reuse it.
	* testsuite/30_threads/condition_variable_any/53830.cc: New.

From-SVN: r189273
2012-07-05 01:19:36 +01:00
GCC Administrator 3f2674645e Daily bump.
From-SVN: r189271
2012-07-05 00:17:15 +00:00
Richard Guenther d365b4a600 re PR middle-end/53433 (ICE in int_mode_for_mode, at stor-layout.c:424 during lto-bootstrap)
2012-07-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/53433
	* gimple-fold.c (get_base_constructor): Do not return an
	error_mark_node DECL_INITIAL.

From-SVN: r189262
2012-07-04 13:53:11 +00:00
Uros Bizjak 9090b804b2 backport: i386.c (ix86_option_override_internal): Fix wrong code model string in the error message.
Backport from mainline
	2012-07-03  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.c (ix86_option_override_internal): Fix wrong
	code model string in the error message.

From-SVN: r189259
2012-07-04 14:53:45 +02:00
Tristan Gingold 01520f23af backport: winnt.c (i386_pe_seh_end_prologue): Move code to ...
2012-07-04  Tristan Gingold  <gingold@adacore.com>

        Backport from mainline.
        2012-06-25  Tristan Gingold  <gingold@adacore.com>

        * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
        (seh_cfa_adjust_cfa): ... that function.
        (seh_emit_stackalloc): Do not emit out of range values.
        * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
        UNSPEC_DEF_CFA constants.
        * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
        * config/i386/i386.c (ix86_frame_pointer_required): Required
        for very large frames on SEH target.
        (ix86_compute_frame_layout): Save area is before frame pointer
        on SEH target.  Handle very large frames.
        (ix86_expand_prologue): Likewise.

From-SVN: r189258
2012-07-04 12:32:02 +00:00
Richard Guenther b3f17cfc23 tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same as in free_lang_data_in_type.
2012-07-04  Richard Guenther  <rguenther@suse.de>

	* tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
	as in free_lang_data_in_type.

From-SVN: r189253
2012-07-04 10:36:30 +00:00
GCC Administrator d87b38497d Daily bump.
From-SVN: r189244
2012-07-04 00:17:50 +00:00
Eric Botcazou 36e406a346 trans.c (Call_to_gnu): Robustify test for function case if the CICO mechanism is used.
* gcc-interface/trans.c (Call_to_gnu): Robustify test for function case
	if the CICO mechanism is used.

From-SVN: r189205
2012-07-03 09:08:26 +00:00
Eric Botcazou 5e696546ef utils2.c (build_simple_component_ref): Do not look through an extension if the type contains a placeholder.
* gcc-interface/utils2.c (build_simple_component_ref): Do not look
	through an extension if the type contains a placeholder.

From-SVN: r189203
2012-07-03 08:52:34 +00:00
Eric Botcazou bbbfa18796 exp_disp.adb (Expand_Dispatching_Call): Propagate the convention on the designated subprogram type and also set...
* exp_disp.adb (Expand_Dispatching_Call): Propagate the convention on
	the designated subprogram type and also set Is_Dispatch_Table_Entity.
	(Expand_Interface_Thunk): Propagate the convention on the thunk.
	(Set_CPP_Constructors_Old): Set Is_Constructor and Convention_CPP on
	the internal view of the constructors.
	(Set_CPP_Constructors): Likewise.
	* sem_prag.adb (Analyze_Pragma) <Pragma_CPP_Constructor>: Set the
	convention on the function.
	* gcc-interface/gigi.h (is_cplusplus_method): Declare.
	* gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
	(gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the `thiscall'
	calling convention
	(get_minimal_subprog_decl): Likewise.
	(is_cplusplus_method): New predicate.
	* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Access>: Issue an
	error on access to C++ constructor or member function.

From-SVN: r189200
2012-07-03 08:29:04 +00:00
Eric Botcazou 15315d5ee4 utils.c (gnat_pushdecl): Set TYPE_CONTEXT for types attached to a TYPE_DECL.
* gcc-interface/utils.c (gnat_pushdecl): Set TYPE_CONTEXT for types
	attached to a TYPE_DECL.

From-SVN: r189196
2012-07-03 07:58:55 +00:00
Jason Merrill 7680850f90 re PR c++/53816 (internal compiler error: tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6419, with -std=c++11 option)
PR c++/53816
	* class.c (resolves_to_fixed_type_p): Check uses_template_parms
	(current_function_decl) instead of processing_template_decl.

From-SVN: r189189
2012-07-02 23:30:27 -04:00
Paolo Carlini 6bac8adeee revert: re PR libstdc++/49561 ([C++0x] std::list::size complexity)
2012-07-02  Paolo Carlini  <paolo.carlini@oracle.com>

	Revert:
	2011-10-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/49561
	* include/bits/stl_list.h (_List_base<>::_List_impl::_M_size):
	Add in C++0x mode.
	(_List_base<>::_List_impl, _List_base<>::_M_get_node,
	_List_base<>::_M_put_node, _List_base<>::_List_base(_List_base&&),
	list<>::size, list<>::swap, list<>::splice): Use it.
	(operator==(const list<>&, const list<>&)): Rewrite in C++0x mode.
	* include/bits/list.tcc (list<>::erase): Likewise.
	(list<>::merge): Adjust in C++0x mode.
	* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
	Adjust dg-error line number.
	* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
	Likewise.
	* testsuite/23_containers/list/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/
	constructor_2_neg.cc: Likewise.

From-SVN: r189186
2012-07-03 01:37:48 +00:00
GCC Administrator 26c2c2020e Daily bump.
From-SVN: r189183
2012-07-03 00:17:21 +00:00
Jason Merrill c34d9e8133 re PR c++/53821 ([c++11] multiple definitions of lambda)
PR c++/53821
	* semantics.c (maybe_add_lambda_conv_op): Don't set
	DECL_INTERFACE_KNOWN.

From-SVN: r189176
2012-07-02 15:14:58 -04:00
Martin Jambor 1f870a36f8 re PR middle-end/38474 (compile time explosion in dataflow_set_preserve_mem_locs at -O3)
2012-07-02  Martin Jambor  <mjambor@suse.cz>

	PR middle-end/38474
	* ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
	dynamic type change check.

From-SVN: r189164
2012-07-02 17:43:56 +02:00
Joseph Myers 55a2339f35 be.po, [...]: Update.
* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po, ja.po,
	nl.po, ru.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po:
	Update.

From-SVN: r189161
2012-07-02 15:29:22 +01:00
GCC Administrator 2a9c546ffe Daily bump.
From-SVN: r189105
2012-07-02 00:18:16 +00:00
GCC Administrator 29289ac8ad Daily bump.
From-SVN: r189098
2012-07-01 00:17:35 +00:00
GCC Administrator 91f5106789 Daily bump.
From-SVN: r189092
2012-06-30 00:17:42 +00:00
Eric Botcazou ca85bcce3e tree-eh.c (lower_try_finally_switch): Really put the location of the last statement of the finally block onto the switch.
* tree-eh.c (lower_try_finally_switch): Really put the location of the
	last statement of the finally block onto the switch.

From-SVN: r189087
2012-06-29 22:39:45 +00:00
Ramana Radhakrishnan 942459f26e configure: Regenerate.
2012-06-29  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

	* configure: Regenerate.
	Backport from mainline.
        2012-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
	* config.gcc (target_type_format_char): New. Document it. Set it for
	arm*-*-* .
	* configure.ac (gnu_unique_option): Use target_type_format_char
	in test.  Comment rationale.

From-SVN: r189071
2012-06-29 09:59:34 +00:00
Ramana Radhakrishnan cc05bf43bf Fix off-by-one error in vrev for Neon.
From-SVN: r189069
2012-06-29 09:48:59 +00:00
GCC Administrator 8b8347a537 Daily bump.
From-SVN: r189059
2012-06-29 00:18:28 +00:00
Georg-Johann Lay e5aaf7d69b backport: re PR other/53595 (Code size increase of +10% between two 4.7.1 snapshot)
Backport from 2012-06-28 mainline r189049
	PR 53595
	* config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
	* config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
	* config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
	avr_hard_regno_call_part_clobbered.

From-SVN: r189050
2012-06-28 13:58:32 +00:00
Richard Guenther f89585af67 re PR middle-end/53790 (ICE on dereferencing a extern union in asm statement)
2012-06-28  Richard Guenther  <rguenther@suse.de>

	PR middle-end/53790
	* expr.c (expand_expr_real_1): Verify if the type is complete
	before inspecting its size.

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

From-SVN: r189047
2012-06-28 11:52:49 +00:00
GCC Administrator 7158e42b0d Daily bump.
From-SVN: r189032
2012-06-28 00:18:48 +00:00
Fabien Chêne 2d37b8b355 re PR c++/51214 ([C++11] name lookup issue with c++11 enums)
gcc/testsuite/ChangeLog

2012-06-27  Fabien Chêne  <fabien@gcc.gnu.org>

	PR c++/51214
	* g++.dg/cpp0x/forw_enum11.C: New.

gcc/cp/ChangeLog

2012-06-27  Fabien Chêne  <fabien@gcc.gnu.org>

	PR c++/51214
	* cp-tree.h (insert_late_enum_def_into_classtype_sorted_fields):
	Declare.
	* class.c (insert_into_classtype_sorted_fields): New.
	(add_enum_fields_to_record_type): New.
	(count_fields): Adjust the comment.
	(add_fields_to_record_type): Likewise.
	(finish_struct_1): Move the code that inserts the fields for the
	sorted case, into insert_into_classtype_sorted_fields, and call
	it.
	(insert_late_enum_def_into_classtype_sorted_fields): Define.
	* decl.c (finish_enum_value_list): Call
	insert_late_enum_def_into_classtype_sorted_fields if a late enum
	definition is encountered.

From-SVN: r189021
2012-06-27 19:36:50 +02:00
Kai Tietz 2dcead10b4 backport: re PR preprocessor/37215 (ICE on 'gcc -E -dM -fpreprocessed - < /dev/null')
Merged from trunk
        PR preprocessor/37215
        * c-ppoutput.c (preprocess_file): Check for nonempty buffer.

From-SVN: r189019
2012-06-27 17:06:16 +02:00
Nick Clifton ba75af7bba rx.md (comparesi3_extend): Remove = modifier from input operand.
* config/rx/rx.md (comparesi3_extend): Remove = modifier from
	input operand.

From-SVN: r189015
2012-06-27 13:05:19 +00:00
GCC Administrator 3b036f7650 Daily bump.
From-SVN: r189002
2012-06-27 00:17:40 +00:00
Alexandre Oliva 95cad904ad re PR target/53682 (ICE in cselib_lookup (SEGV) on i586-linux-gnu)
PR debug/53682
* cselib.c (promote_debug_loc): Don't crash on NULL argument.

From-SVN: r188997
2012-06-26 20:21:58 +00:00
Richard Guenther 8c723d7f05 re PR c++/53752 (ice in write_array_type)
2012-06-26  Richard Guenther  <rguenther@suse.de>

	PR c++/53752
	* mangle.c (write_array_type): Truncate the number-of-elements
	result.

	* g++.dg/torture/pr53752.C: New testcase.

From-SVN: r188987
2012-06-26 14:03:02 +00:00
Nick Clifton 7ff4ddfe08 * config/rx/rx.md (simple_return): Use the simple_return rtx.
From-SVN: r188977
2012-06-26 08:41:55 +00:00
Jason Merrill 3917d99a4c re PR c++/53498 (Compiler crashes during C++11 template magic compilation)
PR c++/53498
	PR c++/53305
	* pt.c (tsubst_pack_expansion): Copy before dummy tsubst.

From-SVN: r188974
2012-06-25 23:42:48 -04:00
GCC Administrator fcff3cc33b Daily bump.
From-SVN: r188970
2012-06-26 00:17:36 +00:00
Jason Merrill aad65b997a re PR c++/52988 (std::async not executed on function returning nullptr_t)
PR c++/52988
	* typeck.c (decay_conversion): Don't discard side-effects from
	expressions of nullptr_t.

From-SVN: r188954
2012-06-25 16:37:25 -04:00
Ian Lance Taylor fd9559ec04 gotest: Only look in data segment for ppc64, not ppc*.
From Andreas Schwab.

From-SVN: r188945
2012-06-25 16:26:48 +00:00
Ian Lance Taylor 6ee66d63e6 libgo: Update to Go 1.0.2 release.
From-SVN: r188942
2012-06-25 16:19:39 +00:00
Jason Merrill c00babd84b re PR c++/53202 (Copy constructor not called when starting a thread)
PR c++/53202
	* semantics.c (build_data_member_initialization): Always keep
	initializer for empty base.
	(cxx_eval_bare_aggregate): Discard it here.

From-SVN: r188941
2012-06-25 11:41:13 -04:00
Jakub Jelinek bbd6a32677 re PR target/53759 (gcc -mavx emits vshufps for __builtin_ia32_loadlps)
PR target/53759
	* config/i386/sse.md (sse_loadlps): Use x m x constraints instead
	of x x x in the vmovlps load alternative.

	* gcc.target/i386/pr53759.c: New test.

From-SVN: r188938
2012-06-25 16:56:17 +02:00
Jakub Jelinek 2277d6b327 re PR c++/53594 ([C++11] Spurious -Wuninitialized warning for member with NSDMI)
PR c++/53594
	* class.c (check_bases_and_members): Avoid -Wuninitialized
	diagnostics for non-static const members or references if they
	use NSDMI.

	* g++.dg/cpp0x/nsdmi7.C: New test.

From-SVN: r188926
2012-06-25 08:54:08 +02:00
GCC Administrator 139c07de92 Daily bump.
From-SVN: r188921
2012-06-25 00:17:45 +00:00
GCC Administrator c7fd87381b Daily bump.
From-SVN: r188912
2012-06-24 00:17:43 +00:00
GCC Administrator ce4894304c Daily bump.
From-SVN: r188905
2012-06-23 00:17:56 +00:00
Richard Guenther 452b6e590f gcov-iov.c: Include bconfig.h and system.h.
2012-06-22  Richard Guenther  <rguenther@suse.de>

	* gcov-iov.c: Include bconfig.h and system.h.

From-SVN: r188883
2012-06-22 10:36:25 +00:00
Tobias Burnus 5b6ed87b8b backport: re PR fortran/53691 (ICE with -Wsurprising in LAPACK 3.4.1 cgbrfsx.f)
2012-06-22  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2012-06-17  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53691
        PR fortran/53685
        * check.c (gfc_calculate_transfer_sizes): Return if
        SIZE= is not constant or source-size cannot be determined.

2012-06-22  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2012-06-17  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53691
        PR fortran/53685
        * gfortran.dg/transfer_check_3.f90: New.

From-SVN: r188882
2012-06-22 12:27:56 +02:00
Richard Guenther 2d93f9a392 re PR gcov-profile/53744 (gcov version oscillates between 407* and 407p on branches)
2012-06-22  Richard Guenther  <rguenther@suse.de>

	PR gcov-profile/53744
	* gcov-iov.c (main): Treat "" and "prerelease" the same.

From-SVN: r188877
2012-06-22 08:10:48 +00:00
Eric Botcazou da1eb9a2b2 tree-ssa-live.c (remove_unused_scope_block_p): Remove again DECL_IGNORED_P non-reg vars even if they are used.
* tree-ssa-live.c (remove_unused_scope_block_p): Remove again
	DECL_IGNORED_P non-reg vars even if they are used.

From-SVN: r188873
2012-06-22 06:46:25 +00:00
GCC Administrator 7b5d5f6258 Daily bump.
From-SVN: r188864
2012-06-22 00:18:38 +00:00
GCC Administrator c9fe68dce0 Daily bump.
From-SVN: r188846
2012-06-21 00:18:29 +00:00
Kaz Kojima 6aaf20ea45 stack-usage-1.c: Remove dg-options line for sh targets and add __sh__ case.
* gcc.dg/stack-usage-1.c: Remove dg-options line for sh targets
	and add __sh__ case.

From-SVN: r188816
2012-06-20 07:52:49 +00:00
Jason Merrill 70395d98a1 re PR c++/53651 ([C++11] seg fault when specifying using decltype(...)::method)
PR c++/53651
	* name-lookup.c (constructor_name_p): Don't try to look at the
	name of a DECLTYPE_TYPE.

From-SVN: r188813
2012-06-20 03:22:34 -04:00
Jason Merrill 912bc3ba41 re PR c++/52637 (ICE producing debug info for c++11 code using local class as template argument)
PR c++/52637
	* dwarf2out.c (modified_type_die): Use scope_die_for.
	(gen_type_die_with_usage, dwarf2out_finish): Likewise.
	(uses_local_type_r, uses_local_type): New.
	(scope_die_for): Keep a type that uses a local type in local scope.
	Use get_context_die for namespace and type scope.

From-SVN: r188812
2012-06-20 03:22:21 -04:00
Richard Guenther fd72d9c98b re PR debug/53470 (ICE when linking with -g in splice_child_die, at dwarf2out.c:4264)
2012-06-11  Richard Guenther  <rguenther@suse.de>

	PR middle-end/53470
	* tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
	replace it with the first non-BLOCK context.

	* g++.dg/lto/pr53470_0.C: New testcase.
	* gcc.dg/lto/pr53470_0.c: Likewise.

From-SVN: r188811
2012-06-20 03:22:07 -04:00
Jason Merrill 5c8096007a re PR c++/53137 (g++ segfault)
Reapply:
	PR c++/53137
	* pt.c (instantiate_class_template_1): Set LAMBDA_EXPR_THIS_CAPTURE.
	(instantiate_decl): Don't push_to_top_level for local class methods.
	(instantiate_class_template_1): Or for local classes.

From-SVN: r188810
2012-06-20 03:21:55 -04:00
Jason Merrill a885930cfd re PR c++/53599 (gcc-4.7.1_rc20120606 segfaults compiling boost.karma)
PR c++/53599
	* pt.c (lookup_template_class_1): Use ts_global.

From-SVN: r188809
2012-06-20 03:21:40 -04:00
GCC Administrator 0654a3b95d Daily bump.
From-SVN: r188801
2012-06-20 00:18:30 +00:00
Jonathan Wakely 96b75249d5 re PR libstdc++/53270 (Error when bootstrapping gcc on hppa2.0-unknown-linux-gcc)
PR libstdc++/53270
	* config/os/gnu-linux/os_defines.h: Disable static initializer macros
	for gthreads types in C++11 mode.

From-SVN: r188768
2012-06-19 08:42:21 +01:00
GCC Administrator f75eb830f3 Daily bump.
From-SVN: r188763
2012-06-19 00:19:33 +00:00
Jörg Sonnenberger ca9ce73913 re PR libstdc++/53678 (namespace pollution on NetBSD)
2012-06-19  Jörg Sonnenberger <joerg@britannica.bec.de>
	    Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/53678
	* config/os/bsd/netbsd/ctype_base.h: Check for _CTYPE_U.
	* testsuite/22_locale/ctype_base/53678.cc: New.

Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com>

From-SVN: r188760
2012-06-19 00:59:59 +01:00
Vladimir Makarov f34cde1543 re PR rtl-optimization/53700 (ICE in reload_cse_simplify_operands, at postreload.c:403)
2012-06-18  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/53700

	Backport from mainline
	2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>

	* ira-color.c (setup_left_conflict_sizes_p): Process all
	conflicting objects.

From-SVN: r188750
2012-06-18 18:34:01 +00:00
Venkataramanan Kumar 0078248af6 Back port Fix PR 52908 - xop-mul-1:f9 miscompiled on bulldozer (-mxop) to 4.7 branch
From-SVN: r188736
2012-06-18 15:10:45 +00:00
GCC Administrator 2a1f916aa7 Daily bump.
From-SVN: r188720
2012-06-18 00:18:08 +00:00
Uros Bizjak 045a5ba934 backport: sse.md (vcvtph2ps): Fix vec_select selector.
Backport from mainline:
	2012-06-17  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/sse.md (vcvtph2ps): Fix vec_select selector.

From-SVN: r188706
2012-06-17 16:05:04 +02:00
GCC Administrator 1ec8a13816 Daily bump.
From-SVN: r188700
2012-06-17 00:17:10 +00:00
John David Anglin 907ad15519 backport: pa.h (MAX_PCREL17F_OFFSET): Define.
Backport from mainline:
	2012-06-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
	* config/pa/pa.c (pa_attr_length_millicode_call): Use
	MAX_PCREL17F_OFFSET instead of fixed offset.
	(pa_attr_length_call): Likewise.
	(pa_attr_length_indirect_call): Likewise.

From-SVN: r188697
2012-06-16 22:12:48 +00:00
GCC Administrator febf2e97db Daily bump.
From-SVN: r188688
2012-06-16 00:17:15 +00:00
Walter Lee ad316ba986 backport: sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
Backport from mainline:
        2012-06-15  Walter Lee  <walt@tilera.com>
       * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>):
          Fix typo.
        2012-06-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
       * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.

From-SVN: r188674
2012-06-15 17:28:16 +00:00
Aldy Hernandez d9eaa94b39 backport: tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
Backport from mainline:
        2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
        * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
        * gimple.h (block_in_transaction): Check for flag_tm.

From-SVN: r188658
2012-06-15 12:03:03 +00:00
Eric Botcazou c979aa5220 re PR ada/53592 (ICE on assignment to component of vector_type)
PR ada/53592
	* gcc-interface/gigi.h (maybe_vector_array): Make static inline.
	* gcc-interface/utils.c (maybe_vector_array): Delete.
	* gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Mark the
	array object as addressable if it has vector type and is on the LHS.

From-SVN: r188654
2012-06-15 10:46:12 +00:00
GCC Administrator 2f6a8002cb Daily bump.
From-SVN: r188644
2012-06-15 00:18:26 +00:00
Ian Lance Taylor a935dee8da Bring over accumulated bug fixes from mainline.
runtime: Fix printing of names in stack dumps.
compiler: Fix taking address of field of local variable.
compiler, reflect: Handle package path like gc compiler.
os: Use Entersyscall when reading directories.
os/user: Use Entersyscall.
compiler: Avoid unnecessary interface conversions.
libgo: Make the subdirectory in the CHECK target.

From-SVN: r188633
2012-06-14 19:34:15 +00:00
Aldy Hernandez 1076ec02e6 re PR tree-optimization/52558 (write introduction incorrect wrt the C++11 memory model)
PR tree-optimization/52558
        Backport from mainline:
        2012-05-21  Aldy Hernandez  <aldyh@redhat.com>
        * gimple.h (gimple_set_in_transaction): Remove.
        (gimple_in_transaction): Look in BB instead.
        (gimple_statement_base): Remove in_transaction field.
        * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
        * trans-mem.c (compute_transaction_bits): Place transaction bit
        information into basic blocks.
        2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
        PR tree-optimization/52558
        * cfg.c (alloc_aux_for_edge): Fix comment.
        (alloc_aux_for_edge): Remove static.
        * basic-block.h (alloc_aux_for_edge): Protoize.
        * tree-ssa-loop-im.c (execute_sm_if_changed): New.
        (execute_sm_if_changed_flag): New.
        (execute_sm_if_changed_flag_set): New.
        (execute_sm): Do not generate data races unless requested.
        (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
        (tree_ssa_lim_finalize): Call free_aux_for_edges.
        * gimple.h (block_in_transaction): New.
        (gimple_in_transaction): Use block_in_transaction.

From-SVN: r188631
2012-06-14 19:22:48 +00:00
Jakub Jelinek c06b130ae3 backport: re PR rtl-optimization/53589 (ICE in maybe_record_trace_start with asm goto)
Backported from mainline
	2012-06-12  Jakub Jelinek  <jakub@redhat.com>

	PR rtl-optimization/53589
	* cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
	discovery even when e->dest != target.  If any LABEL_REF points
	to e->dest label, redirect it to target's label.

	* gcc.dg/torture/pr53589.c: New test.

From-SVN: r188626
2012-06-14 19:49:49 +02:00
Jakub Jelinek f5d2ddbd0f backport: re PR c/53580 (Internal Segmentation fault in nested "omp parallel", "omp parallel for" and "omp parallel for reduction" Directives)
Backported from mainline
	2012-06-07  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/53580
	* omp-low.c (scan_omp_1_stmt): If check_omp_nesting_restrictions
	returns false, replace stmt with GIMPLE_NOP.
	(check_omp_nesting_restrictions): Instead of issuing warnings,
	issue errors and return false if any errors were reported.

	* gcc.dg/gomp/nesting-1.c: Expect errors rather than warnings.
	* gcc.dg/gomp/critical-4.c: Likewise.
	* gfortran.dg/gomp/appendix-a/a.35.1.f90: Likewise.
	* gfortran.dg/gomp/appendix-a/a.35.3.f90: Likewise.
	* gfortran.dg/gomp/appendix-a/a.35.4.f90: Likewise.
	* gfortran.dg/gomp/appendix-a/a.35.6.f90: Likewise.
	* c-c++-common/gomp/pr53580.c: New test.

	* testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
	use GOMP_barrier () call instead.
	* testsuite/libgomp.c/pr26943-3.c: Likewise.
	* testsuite/libgomp.c/pr26943-4.c: Likewise.
	* testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
	call GOMP_barrier instead.
	* testsuite/libgomp.fortran/vla5.f90: Likewise.

From-SVN: r188625
2012-06-14 19:48:38 +02:00
Jakub Jelinek 9181663154 backport: re PR libgomp/52993 (gomp_init_nest_lock_25: possible bad call to memset)
Backported from mainline
	2012-06-06  Jakub Jelinek  <jakub@redhat.com>

	PR libgomp/52993
	* config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
	argument to memset call.

From-SVN: r188624
2012-06-14 19:46:53 +02:00
Jakub Jelinek 412d31f03a Makefile.in (gnatlib-shared-default): Append $(PICFLAG_FOR_TARGET) to GNATLIBCFLAGS_FOR_C passed to submake.
* gcc-interface/Makefile.in (gnatlib-shared-default): Append
	$(PICFLAG_FOR_TARGET) to GNATLIBCFLAGS_FOR_C passed to submake.

From-SVN: r188623
2012-06-14 19:45:53 +02:00
Tobias Burnus 1f47876f3f backport: re PR fortran/50619 (Surprising interaction between -finit-real=NAN and the associate construct)
2012-06-14  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2012-06-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/50619
        * resolve.c (build_default_init_expr): Don't initialize
        ASSOCIATE names.

2012-06-14  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2012-06-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/50619
        * gfortran.dg/init_flag_10.f90: New.

From-SVN: r188617
2012-06-14 15:04:43 +02:00
Richard Guenther 1f32935a05 re PR c++/53605 (Compiler ICEs in size_binop_loc)
2012-06-14  Richard Guenther  <rguenther@suse.de>

        Backport from mainline
        2012-06-11  Richard Guenther  <rguenther@suse.de>

	PR c++/53616
	* mangle.c (write_array_type): Use double-ints for array domain
	arithmetic.

	* g++.dg/ext/pr53605.C: New testcase.

From-SVN: r188615
2012-06-14 13:02:06 +00:00
Tobias Burnus ff5658b6e9 re PR fortran/53597 (F95/F2003 constraint no longer triggers: un-SAVED default-initialized module variable)
2012-06-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53597
        * decl.c (match_attr_spec): Only mark module variables
        as SAVE_IMPLICIT for Fortran 2008 and later.

2012-06-14  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53597
        * gfortran.dg/save_4.f90: New.

From-SVN: r188614
2012-06-14 15:00:50 +02:00
Richard Guenther 115abf2f23 backport: re PR c++/52841 (error: type 'Solvable' is not a base type for type 'Resolvable')
2012-06-14  Richard Guenther  <rguenther@suse.de>

        Backport from mainline
        2012-06-06  Fabien Chene  <fabien@gcc.gnu.org>

	PR c++/52841
	* parser.c (cp_parser_alias_declaration): Return earlier
	if an error occured.

	* g++.dg/cpp0x/pr52841.C: New testcase.

From-SVN: r188613
2012-06-14 12:55:11 +00:00
Richard Guenther 82d56912ae BASE-VER: Set to 4.7.2.
2012-06-14  Richard Guenther  <rguenther@suse.de>

        * BASE-VER: Set to 4.7.2.
        * DEV-PHASE: Set to prerelease.

From-SVN: r188605
2012-06-14 10:06:05 +00:00
Christian Bruel 825bc4ece7 re PR target/53621 ([SH] Frame pointers not generated with -fno-omit-frame-pointer on GCC 4.7.0)
PR target/53621
* config/sh/sh.c (sh_option_override): Don't force
flag_omit_frame_pointer and maccumulate_outgoing_args.
* config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.

* gcc.dg/stack-usage-1.c: Force -fomit-frame-pointer on SH.

From-SVN: r188599
2012-06-14 10:43:20 +02:00
Richard Biener edc56cde51 Mark as release
From-SVN: r188596
2012-06-14 08:32:48 +00:00
Richard Biener b98f3d7dd4 Mark ChangeLog
From-SVN: r188595
2012-06-14 08:32:42 +00:00
Richard Biener bd30ab82cd Mark ChangeLog
From-SVN: r188594
2012-06-14 08:32:36 +00:00
Richard Biener 13ff018a80 Mark ChangeLog
From-SVN: r188593
2012-06-14 08:32:30 +00:00
Richard Biener c56cb37d81 Mark ChangeLog
From-SVN: r188592
2012-06-14 08:32:24 +00:00
Richard Biener bb5daa5062 Mark ChangeLog
From-SVN: r188591
2012-06-14 08:32:18 +00:00
Richard Biener 9d1e3f1d01 Mark ChangeLog
From-SVN: r188590
2012-06-14 08:32:12 +00:00
Richard Biener 6796d47cb1 Mark ChangeLog
From-SVN: r188589
2012-06-14 08:32:06 +00:00
Richard Biener a8a20e904a Mark ChangeLog
From-SVN: r188588
2012-06-14 08:31:58 +00:00
Richard Biener cc82fb5f66 Mark ChangeLog
From-SVN: r188587
2012-06-14 08:31:52 +00:00
Richard Biener 74c770df55 Mark ChangeLog
From-SVN: r188586
2012-06-14 08:31:45 +00:00
Richard Biener 56ff3e9a27 Mark ChangeLog
From-SVN: r188585
2012-06-14 08:31:37 +00:00
Richard Biener c9e1ddfb88 Mark ChangeLog
From-SVN: r188584
2012-06-14 08:31:29 +00:00
Richard Biener 10341951d1 Mark ChangeLog
From-SVN: r188583
2012-06-14 08:31:21 +00:00
Richard Biener e35fa81fa4 Mark ChangeLog
From-SVN: r188582
2012-06-14 08:31:12 +00:00
Richard Biener c7ed228849 Mark ChangeLog
From-SVN: r188581
2012-06-14 08:31:05 +00:00
Richard Biener 752151ebd4 Mark ChangeLog
From-SVN: r188580
2012-06-14 08:30:55 +00:00
Richard Biener d9aa2024c9 Mark ChangeLog
From-SVN: r188579
2012-06-14 08:30:48 +00:00
Richard Biener 6bfcdb02ca Mark ChangeLog
From-SVN: r188578
2012-06-14 08:30:39 +00:00
Richard Biener b78b38df90 Mark ChangeLog
From-SVN: r188577
2012-06-14 08:30:27 +00:00
Richard Biener 293f0a8a09 Mark ChangeLog
From-SVN: r188576
2012-06-14 08:30:11 +00:00
Richard Biener 93c51fdeab Mark ChangeLog
From-SVN: r188575
2012-06-14 08:30:02 +00:00
Richard Biener ed75420db5 Mark ChangeLog
From-SVN: r188574
2012-06-14 08:29:52 +00:00
Richard Biener 445e01a9b7 Mark ChangeLog
From-SVN: r188573
2012-06-14 08:29:42 +00:00
Richard Biener 59e7a8245e Mark ChangeLog
From-SVN: r188572
2012-06-14 08:29:34 +00:00
Richard Biener 4b5460b3b9 Mark ChangeLog
From-SVN: r188571
2012-06-14 08:29:24 +00:00
Richard Biener 6dd450107c Mark ChangeLog
From-SVN: r188570
2012-06-14 08:29:16 +00:00
Richard Biener d5d4038d9d Mark ChangeLog
From-SVN: r188569
2012-06-14 08:29:06 +00:00
Richard Biener 80f483d429 Mark ChangeLog
From-SVN: r188568
2012-06-14 08:28:59 +00:00
Richard Biener 26e84b03d6 Mark ChangeLog
From-SVN: r188567
2012-06-14 08:28:51 +00:00
Richard Biener 7c0179eb22 Mark ChangeLog
From-SVN: r188566
2012-06-14 08:28:43 +00:00
Richard Biener 0dc30eb4d2 Mark ChangeLog
From-SVN: r188565
2012-06-14 08:28:35 +00:00
Richard Biener 00a67538de Mark ChangeLog
From-SVN: r188564
2012-06-14 08:28:27 +00:00
Richard Biener 0b58f4d39e Mark ChangeLog
From-SVN: r188563
2012-06-14 08:28:20 +00:00
Richard Biener 7d74c31605 Mark ChangeLog
From-SVN: r188562
2012-06-14 08:28:10 +00:00
Richard Biener dd46cf3ca2 Mark ChangeLog
From-SVN: r188561
2012-06-14 08:28:02 +00:00
Richard Biener 55c1e7325d Mark ChangeLog
From-SVN: r188560
2012-06-14 08:27:55 +00:00
Richard Biener 63c2b673ac Mark ChangeLog
From-SVN: r188559
2012-06-14 08:27:49 +00:00
Richard Biener cea9d285e2 Mark ChangeLog
From-SVN: r188558
2012-06-14 08:27:40 +00:00
Richard Biener aca7d09f0d Mark ChangeLog
From-SVN: r188557
2012-06-14 08:27:32 +00:00
Richard Biener 44be5f0774 Mark ChangeLog
From-SVN: r188556
2012-06-14 08:27:25 +00:00
Richard Biener 14a1b114cc Mark ChangeLog
From-SVN: r188555
2012-06-14 08:27:16 +00:00
Richard Biener c724acfa88 Mark ChangeLog
From-SVN: r188554
2012-06-14 08:27:10 +00:00
Richard Biener cd018066f4 Mark ChangeLog
From-SVN: r188553
2012-06-14 08:27:04 +00:00
Richard Biener 7289e04180 Mark ChangeLog
From-SVN: r188552
2012-06-14 08:26:57 +00:00
GCC Administrator 9e055ca248 Daily bump.
From-SVN: r188543
2012-06-14 00:17:47 +00:00
Joseph Myers 4e9196d45d * gcc.pot: Regenerate.
From-SVN: r188532
2012-06-13 22:44:13 +01:00
Joseph Myers 14a2f7a059 * sr.po: New.
From-SVN: r188529
2012-06-13 22:39:41 +01:00
Uros Bizjak bb374c6370 sync.md (fetchop_name): Change ior attribute to "or".
* config/ia64/sync.md (fetchop_name): Change ior attribute to "or".

From-SVN: r188522
2012-06-13 19:46:58 +02:00
Richard Henderson 752dbb1281 sync.md (atomic_load, [...]): Use INT1 mode iterator instead of INT.
* config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
            iterator instead of INT.

From-SVN: r188519
2012-06-13 08:29:37 -07:00
Eric Botcazou 050358f195 Revert
2012-05-19  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
	(gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the thiscall
	calling convention
	(get_minimal_subprog_decl): Likewise.
	(gnat_first_param_is_class): New predicate.

From-SVN: r188513
2012-06-13 13:31:00 +00:00
GCC Administrator c2d8cf4dcb Daily bump.
From-SVN: r188491
2012-06-13 00:17:46 +00:00
Olivier Hainque 5867702310 Makefile.in (GNATLIBCFLAGS_FOR_C): Remove $(PIC_FLAG_FOR_TARGET).
ada/
        * gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Remove
        $(PIC_FLAG_FOR_TARGET).
        (gnatlib-shared-default): Add $(PIC_FLAG_FOR_TARGET) to
        GNATLIBCFLAGS_FOR_C passed to gnatlib.
        (gnatlib-shared-win32): Likewise.
        (gnatlib-shared-darwin): Likewise.
        (gnatlib-shared-dual-win32): Pass PIC_FLAG_FOR_TARGET to
        gnatlib-shared-win32.

        libada/
        * Makefile.in (GNATLIBCFLAGS_FOR_C): Remove $(PICFLAG).

From-SVN: r188462
2012-06-12 15:12:37 +00:00
Jason Merrill 3bce4334a3 re PR c++/53599 (gcc-4.7.1_rc20120606 segfaults compiling boost.karma)
PR c++/53599
	Revert:
	PR c++/53137
	* pt.c (instantiate_class_template_1): Set LAMBDA_EXPR_THIS_CAPTURE.
	(instantiate_decl): Don't push_to_top_level for local class methods.
	(instantiate_class_template_1): Or for local classes.

From-SVN: r188460
2012-06-12 11:01:17 -04:00
GCC Administrator 317642bab7 Daily bump.
From-SVN: r188408
2012-06-12 00:18:57 +00:00
GCC Administrator c82dc2bfc8 Daily bump.
From-SVN: r188374
2012-06-11 00:17:20 +00:00
GCC Administrator 9140244e76 Daily bump.
From-SVN: r188369
2012-06-10 00:17:04 +00:00
Richard Henderson a526dc89db re PR c++/53602 (Libre Office causes an internal compiler error)
PR c++/53602
        * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
        note to a clobber insn when no other insn is available.

From-SVN: r188356
2012-06-08 23:14:27 -07:00
GCC Administrator bb23dd75b6 Daily bump.
From-SVN: r188353
2012-06-09 00:17:45 +00:00
GCC Administrator ea2ac7f4ac Daily bump.
From-SVN: r188321
2012-06-08 00:17:49 +00:00
Ian Lance Taylor 4d1f6ab9c4 compiler: Fix unsafe.Sizeof for named structs with named struct fields.
From-SVN: r188296
2012-06-07 05:49:54 +00:00
Ian Lance Taylor 116560d441 runtime: Use dl_iterate_phdr to get TLS size.
From-SVN: r188291
2012-06-07 00:55:28 +00:00
GCC Administrator 7d53af77d8 Daily bump.
From-SVN: r188288
2012-06-07 00:18:29 +00:00
GCC Administrator f8a755f2cb Daily bump.
From-SVN: r188256
2012-06-06 00:18:26 +00:00
Ian Lance Taylor 128052a57e runtime: Comment out code adding TLS size to stack size.
From-SVN: r188239
2012-06-05 13:12:38 +00:00
Ian Lance Taylor 96be1a9ae6 runtime: Fix call to _dl_get_tls_static_info for i386.
From-SVN: r188231
2012-06-05 06:19:37 +00:00
Ian Lance Taylor 0714f4cab4 mksysinfo: Fix for recent change to glibc <sys/resource.h>.
From-SVN: r188229
2012-06-05 05:33:10 +00:00
GCC Administrator 827484d7c7 Daily bump.
From-SVN: r188215
2012-06-05 00:17:11 +00:00
Paolo Carlini a26669749c re PR c++/53524 (Bogus enum comparison warning)
2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53524
	* doc/invoke.texi (Wenum-compare): Update documentation.

/cp
2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53524
	* call.c (build_conditional_expr_1): Use OPT_Wenum_compare
	to control enumeral mismatch in conditional expression too.

/testsuite
2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53524
	* g++.dg/warn/Wenum-compare-no-2: New.

From-SVN: r188207
2012-06-04 20:30:59 +00:00
Edmar Wienskoski 60f854df86 re PR target/53559 (ICE on altivec builtins stv[l|r]x[l])
2012-06-04  Edmar Wienskoski  <edmar@freescale.com>

	PR target/53559
	* config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
	operands.
	(altivec_stvlxl): Ditto.
	(altivec_stvrx): Ditto.
	(altivec_stvrxl): Ditto.

gcc/testsuite
2012-06-04  Edmar Wienskoski  <edmar@freescale.com>

	PR target/53559
	* gcc.target/powerpc/cell_builtin_1.c: New test case.
	* gcc.target/powerpc/cell_builtin_2.c: Ditto.
	* gcc.target/powerpc/cell_builtin_3.c: Ditto.
	* gcc.target/powerpc/cell_builtin_4.c: Ditto.
	* gcc.target/powerpc/cell_builtin_5.c: Ditto.
	* gcc.target/powerpc/cell_builtin_6.c: Ditto.
	* gcc.target/powerpc/cell_builtin_7.c: Ditto.
	* gcc.target/powerpc/cell_builtin_8.c: Ditto.

From-SVN: r188198
2012-06-04 18:15:46 +00:00
Aldy Hernandez f839c2bf29 re PR middle-end/47530 ([trans-mem] tail call optimization problem with _ITM_commitTransaction)
PR middle-end/47530
	* trans-mem.c (expand_block_edges): Do not skip the first
	statement when resetting the BB.

From-SVN: r188191
2012-06-04 16:52:47 +00:00
Richard Guenther 7ba92f0a85 re PR lto/53471 (ICE in pp_base_format, at pretty-print.c:510 (-flto -g))
2012-06-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/53471
	* dwarf2out.c (dwarf2out_finish): If generating LTO do not
	create new assembler names.

From-SVN: r188182
2012-06-04 13:24:24 +00:00
Richard Guenther 1559b99694 backport: re PR tree-optimization/52979 (likely wrong code bug w/packed bitfields)
2012-06-04  Richard Guenther  <rguenther@suse.de>

	Backport from mainline
	2012-04-25  Jakub Jelinek  <jakub@redhat.com>
 
	PR middle-end/52979
	* stor-layout.c (get_best_mode): Don't return mode with bitsize
	larger than maxbits.  Don't compute maxbits modulo align.
	Also check that unit bytes long store at bitpos / unit * unit
	doesn't affect bits beyond bitregion_end.
	* expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
	would not fit into bitregion_start ... bitregion_end + 1 bit
	region.
	(store_split_bit_field): Decrease unit close to end of bitregion_end
	if access is restricted in order to avoid mutual recursion.

	* gcc.c-torture/compile/pr52979-1.c: New test.
	* gcc.c-torture/execute/pr52979-1.c: New test.
	* gcc.c-torture/execute/pr52979-2.c: New test.

From-SVN: r188176
2012-06-04 10:19:44 +00:00
Georg-Johann Lay f6220bceef backport: re PR target/46261 (avr-gcc: Segfaults when compiled with the -mint8 option)
Backport from 2012-06-04 mainline r188172
	PR target/46261
	* config/avr/avr-stdint.h: New file.
	* config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
	newlib-stdint.h

From-SVN: r188173
2012-06-04 09:51:00 +00:00
Jakub Jelinek 67737d058f re PR tree-optimization/53550 (ICE with -O{1,2,3} -fprefetch-loop-arrays in build2_stat, at tree.c:3803)
PR tree-optimization/53550
	* tree-ssa-loop-niter.c (number_of_iterations_cond): If type
	is POINTER_TYPE_P, use sizetype as step type instead of type.

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

From-SVN: r188170
2012-06-04 11:27:00 +02:00
Richard Guenther 3156520d5d backport: [multiple changes]
2012-06-04  Richard Guenther  <rguenther@suse.de>
	Eric Botcazou  <ebotcazou@adacore.com>

	Backport from mainline
	2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>

        * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
        Change type of BITOFFSET to signed.  Make sure the lower bound of
        the computed range is non-negative by adjusting OFFSET and BITPOS.
        (expand_assignment): Adjust call to get_bit_range.

	2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>

        * expr.c (get_bit_range): Return the null range if the enclosing record
        is part of a larger bit field.

	2012-03-20  Richard Guenther  <rguenther@suse.de>

        * stor-layout.c (finish_bitfield_representative): Fallback
        to conservative maximum size if the padding up to the next
        field cannot be computed as a constant.
        (finish_bitfield_layout): If we cannot compute the distance
        between the start of the bitfield representative and the
        bitfield member start a new representative.
        * expr.c (get_bit_range): The distance between the start of
        the bitfield representative and the bitfield member is zero
        if the field offsets are not constants.

	2012-03-16  Richard Guenther  <rguenther@suse.de>

        * stor-layout.c (finish_bitfield_representative): Fall back
        to the conservative maximum size if we cannot compute the
        size of the tail padding.

	2012-03-14  Richard Guenther  <rguenther@suse.de>

	* tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
	* stor-layout.c (start_bitfield_representative): New function.
	(finish_bitfield_representative): Likewise.
	(finish_bitfield_layout): Likewise.
	(finish_record_layout): Call finish_bitfield_layout.
	* tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
	for QUAL_UNION_TYPE fields.
	* tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
	Stream DECL_BIT_FIELD_REPRESENTATIVE.
	* tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.

	PR middle-end/52080
	PR middle-end/52097
	PR middle-end/48124
	* expr.c (get_bit_range): Unconditionally extract bitrange
	from DECL_BIT_FIELD_REPRESENTATIVE.
	(expand_assignment): Adjust call to get_bit_range.

	* gcc.dg/torture/pr48124-1.c: New testcase.
	* gcc.dg/torture/pr48124-2.c: Likewise.
	* gcc.dg/torture/pr48124-3.c: Likewise.
	* gcc.dg/torture/pr48124-4.c: Likewise.
	* gnat.dg/pack16.adb: Likewise.
	* gnat.dg/pack16_pkg.ads: Likewise.
	* gnat.dg/pack17.adb: Likewise.
	* gnat.dg/specs/pack7.ads: Likewise.
	* gnat.dg/specs/pack8.ads: Likewise.
	* gnat.dg/specs/pack8_pkg.ads: Likewise.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r188167
2012-06-04 08:43:23 +00:00
Ian Lance Taylor 4291a16d60 runtime: Better SWIG interface for allocating Go memory from C/C++.
From-SVN: r188165
2012-06-04 05:35:10 +00:00
GCC Administrator b1268aa6dd Daily bump.
From-SVN: r188159
2012-06-04 00:17:57 +00:00
GCC Administrator 1baa3f4aec Daily bump.
From-SVN: r188145
2012-06-03 00:17:21 +00:00
Jason Merrill b6f2d67dc5 re PR c++/52973 (visibility attribute for class is not passed to its members)
PR c++/52973
	* parser.c (cp_parser_class_head): Apply attributes here.
	* semantics.c (begin_class_definition): Not here.
	* cp-tree.h: Adjust.

From-SVN: r188138
2012-06-02 00:05:25 -04:00
GCC Administrator 4754b062b8 Daily bump.
From-SVN: r188132
2012-06-02 00:17:48 +00:00
Jason Merrill 6b96335ce5 re PR c++/52725 (error: "capture of non-variable" for new-expression incorrectly parsed as lambda-expression)
PR c++/52725
	* parser.c (cp_parser_binary_expression): Bail early if we're parsing
	tentatively and the LHS has a parse error.

From-SVN: r188128
2012-06-01 17:19:36 -04:00
Jason Merrill 701b2aeab3 re PR c++/53137 (g++ segfault)
PR c++/53137
	* pt.c (instantiate_class_template_1): Set LAMBDA_EXPR_THIS_CAPTURE.
	(instantiate_decl): Don't push_to_top_level for local class methods.
	(instantiate_class_template_1): Or for local classes.

From-SVN: r188123
2012-06-01 14:43:34 -04:00
Jason Merrill 95d2db2008 re PR c++/53484 ([c++11] Wrong auto in lambdas in function templates)
PR c++/53484
	* pt.c (do_auto_deduction): Don't try to deduce from a
	type-dependent initializer.

From-SVN: r188122
2012-06-01 14:43:23 -04:00
Eric Botcazou fd7b741b7e re PR tree-optimization/53501 (scev introduces signed overflow)
PR middle-end/53501
	* fold-const.c (fold_binary_loc): Refine previous change.
testsuite/
	* c-c++-common/restrict-2.c: Revert previous change.

From-SVN: r188119
2012-06-01 17:03:19 +00:00
Tobias Burnus 265113703b re PR fortran/53521 (Memory leak with zero-sized array constructor)
2012-06-01  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53521
        * trans.c (gfc_deallocate_scalar_with_status): Properly
        handle the case size == 0.

From-SVN: r188111
2012-06-01 17:08:24 +02:00
Eric Botcazou 54b3538072 re PR ada/53517 (gnat.dg/lto14.adb FAILs)
PR ada/53517
	* gnat.dg/lto14.adb: Skip on Solaris.

From-SVN: r188101
2012-06-01 07:34:05 +00:00
GCC Administrator bbe3c3ee71 Daily bump.
From-SVN: r188093
2012-06-01 00:17:42 +00:00
Oleg Endo 2c6e8a446d backport: re PR target/52667 (sh_reorg segfault)
Backport from mainline
	2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>

	PR target/52667
	* config/sh/sh.c (find_barrier): Add equality check of last_got to
	avoid going above orig insn.  Update comments.

From-SVN: r188089
2012-05-31 23:04:02 +00:00
Oleg Endo bf58e4ab2d backport: re PR target/52642 (SH Target: libstdc++ failures due to call insn swapped before prologue frame insns)
Backport from mainline
	2012-03-21  Kaz Kojima  <kkojima@gcc.gnu.org>

	PR target/52642
	* config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
	prologue for unwinder and profiler.

From-SVN: r188087
2012-05-31 23:01:13 +00:00
Oleg Endo 013e8591cd backport: sh.md (abssi2): Add TARGET_SH1 condition.
Backport from mainline
	2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config/sh/sh.md (abssi2): Add TARGET_SH1 condition.

From-SVN: r188086
2012-05-31 22:58:49 +00:00
Oleg Endo b1303129b2 backport: sh.c (sh_dwarf_register_span): Don't apply DBX_REGISTER_NUMBER.
Backport from mainline
	2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config/sh/sh.c (sh_dwarf_register_span): Don't apply
	DBX_REGISTER_NUMBER.

From-SVN: r188085
2012-05-31 22:56:44 +00:00
Oleg Endo 88da6cddaa backport: sh.c (shiftcosts): Return MAX_COST when the first operand is CONST_INT.
Backport from mainline
	2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>

	* config/sh/sh.c (shiftcosts): Return MAX_COST when the first
	operand is CONST_INT.  Take COSTS_N_INSNS into account.
	(sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value of
	shiftcosts.

From-SVN: r188084
2012-05-31 22:54:21 +00:00
Benjamin Kosnik 16b8af9e2e re PR bootstrap/52700 (lib* configure fails on --enable-symvers=gnu-versioned-namespace.)
2012-05-31  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/52007
        * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
        * configure: Regenerated.

From-SVN: r188079
2012-05-31 19:00:58 +00:00
Benjamin Kosnik 166362f083 re PR bootstrap/52700 (lib* configure fails on --enable-symvers=gnu-versioned-namespace.)
2012-05-31  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/52007
        * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
        * configure: Regenerated.

From-SVN: r188078
2012-05-31 18:59:34 +00:00
Benjamin Kosnik 49964c9712 re PR bootstrap/52700 (lib* configure fails on --enable-symvers=gnu-versioned-namespace.)
2012-05-31  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/52007
        * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
        * configure: Regenerated.

From-SVN: r188077
2012-05-31 18:57:56 +00:00
Georg-Johann Lay 99eb79fbb9 avr.opt (-msp8): Document it.
* config/avr/avr.opt (-msp8): Document it.
	* doc/invoke.texi (AVR Options): Copy from trunk docu.

From-SVN: r188071
2012-05-31 17:51:49 +00:00
Jason Merrill cb3b40de7e re PR c++/53500 (internal compiler error in joust())
PR c++/53500
	PR c++/52905
	* call.c (joust): Handle comparing list and non-list ctors.

From-SVN: r188063
2012-05-31 10:28:41 -04:00
Richard Guenther f5f1432fc5 re PR middle-end/48493 (ice in expand_expr_addr_expr_1 with complex types and mem_ref)
2012-05-31  Richard Guenther  <rguenther@suse.de>

	PR middle-end/48493
	* expr.c (expand_assignment): Do not use movmisalign on
	non-memory.

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

From-SVN: r188056
2012-05-31 11:02:29 +00:00
GCC Administrator 5f0b933611 Daily bump.
From-SVN: r188038
2012-05-31 00:17:21 +00:00
Ian Lance Taylor ab92923455 compiler: Don't crash for invalid constant types for && or ||.
From-SVN: r188034
2012-05-30 23:04:57 +00:00
John David Anglin 64ace6d980 re PR target/52999 (ICE, segmentation fault in c_tree_printer)
PR target/52999
	* config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
	(pa_section_type_flags): New.
	(pa_legitimate_constant_p): Revert previous change.

From-SVN: r188032
2012-05-30 23:03:59 +00:00
Aldy Hernandez 5068ef7119 backport: re PR middle-end/53008 (abort in _ITM_getTMCloneSafe)
Backport from mainline
        2012-05-25  Aldy Hernandez  <aldyh@redhat.com>
        PR middle-end/53008
        * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
        accessed indirectly.
        (ipa_tm_create_version): Same.

From-SVN: r188030
2012-05-30 22:13:43 +00:00
Jason Merrill dc366fdcab re PR c++/53356 (ICE in verify_gimple_stmt, at tree-cfg.c:4258)
PR c++/53356
	* tree.c (stabilize_init): Side effects make the init unstable.

From-SVN: r188021
2012-05-30 10:52:02 -04:00
Jason Merrill 10df929392 re PR c++/53220 (g++ mis-compiles compound literals)
PR c++/53220
gcc/
	* c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
	about array compound literals.
gcc/cp/
	* call.c (convert_like_real) [ck_list]: Take array address directly.
	* typeck.c (decay_conversion): Reject decay of an array compound
	literal.

From-SVN: r188020
2012-05-30 10:51:54 -04:00
Richard Guenther a822893aee re PR tree-optimization/53501 (scev introduces signed overflow)
2012-05-30  Richard Guenther  <rguenther@suse.de>

	PR middle-end/53501
	* fold-const.c (fold_binary_loc): Make sure to call
	fold_plusminus_mult_expr with the original sign of operands.

	* gcc.dg/torture/pr53501.c: New testcase.
	* c-c++-common/restrict-2.c: Adjust.

From-SVN: r188010
2012-05-30 12:32:10 +00:00
Eric Botcazou d0db0358ac explow.c (probe_stack_range): Restore simple control flow and stop again when...
* explow.c (probe_stack_range): Restore simple control flow and stop
	again when the probe cannot be generated if HAVE_check_stack.

From-SVN: r188004
2012-05-30 08:53:13 +00:00
Jakub Jelinek 96ae3a80a4 re PR rtl-optimization/53519 (ice in do_SUBST, at combine.c:707)
PR rtl-optimization/53519
	* combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
	instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.

	* gcc.c-torture/compile/pr53519.c: New test.

From-SVN: r188002
2012-05-30 08:58:00 +02:00
GCC Administrator e83c4c918c Daily bump.
From-SVN: r187997
2012-05-30 00:17:39 +00:00
Richard Guenther 2973cd27ba re PR tree-optimization/53516 (Vectorization and memset recognition miscompile bitfield stores)
2012-05-29  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53516
	* tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
	bitfield accesses.
	* tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.

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

From-SVN: r187964
2012-05-29 14:44:08 +00:00
Paolo Carlini 2110ea482a re PR c++/53491 (ICE in build_target_expr_with_type, at cp/tree.c:587)
/cp
2012-05-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53491
	* tree.c (stabilize_expr): Handle exp of void type.

/testsuite
2012-05-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53491
	* g++.dg/parse/crash60.C: New.

From-SVN: r187950
2012-05-29 10:56:53 +00:00
GCC Administrator 47064ff12b Daily bump.
From-SVN: r187940
2012-05-29 00:17:34 +00:00
Jakub Jelinek ddeab8a1a3 re PR c++/53505 (bitfield with bool type generated broken object file)
PR tree-optimization/53505
	* c-c++-common/torture/pr53505.c: New test.

From-SVN: r187932
2012-05-28 16:28:42 +02:00
Bill Schmidt b581071734 backport: re PR tree-optimization/53438 (Bitfield store replaced with full-byte store)
2012-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>

	Backport from mainline
        2012-05-23  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53438
	* tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.

From-SVN: r187930
2012-05-28 13:58:18 +00:00
Paolo Carlini 57bcbaa69b re PR c++/53503 ([C++0x] unexpected AST of kind ltgt_expr)
gcc/cp
2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53503
	* semantics.c (potential_constant_expression_1): Handle LTGT_EXPR.

libstdc++-v3
2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53503
	* testsuite/26_numerics/headers/cmath/53503.cc: New.

From-SVN: r187929
2012-05-28 12:11:04 +00:00
GCC Administrator be91123440 Daily bump.
From-SVN: r187926
2012-05-28 00:17:40 +00:00
GCC Administrator 533732da1c Daily bump.
From-SVN: r187920
2012-05-27 00:17:32 +00:00
Eric Botcazou e818eee1ae backport: re PR rtl-optimization/52528 (combine bug (powerpc testcase))
Backport from mainline
	2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>

	PR rtl-optimization/52528
	* combine.c (can_combine_p): Add setting of subst_low_luid
	before call to expand_field_assignment().

From-SVN: r187915
2012-05-26 13:55:46 +00:00
Eric Botcazou d90d9aae0c decl.c (variant_desc): Rename 'record' to 'new_type'.
* gcc-interface/decl.c (variant_desc): Rename 'record' to 'new_type'.
	(build_variant_list): Adjust to above renaming.
	(gnat_to_gnu_entity) <E_Record_Subtype>: Likewise.  Give a unique name
	to the type of the variant containers.
	(create_variant_part_from): Likewise.  Give a unique name to the type
	of the variant part.

From-SVN: r187909
2012-05-26 10:43:13 +00:00
Martin Jambor 99a2a79785 ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
2012-05-26  Martin Jambor  <mjambor@suse.cz>

	* ipa-inline-analysis.c (inline_merge_summary): Free operand_map.

From-SVN: r187907
2012-05-26 11:37:17 +02:00
GCC Administrator b8739324f6 Daily bump.
From-SVN: r187905
2012-05-26 00:18:25 +00:00
Ian Lance Taylor ce1322574f runtime: More efficient implementation of trampolines.
From-SVN: r187900
2012-05-25 21:51:45 +00:00
Ian Lance Taylor 43d0a54732 compiler: Don't create a closure if not needed.
From-SVN: r187898
2012-05-25 21:14:50 +00:00
Ian Lance Taylor a2f96eb49d morestack.S (__morestack_non_split): Check whether caller is varargs and needs %bp to hold the stack frame on return.
libgcc/:
	* config/i386/morestack.S (__morestack_non_split): Check whether
	caller is varargs and needs %bp to hold the stack frame on return.
gcc/testsuite/:
	* gcc.dg/split-6.c: New test.

From-SVN: r187895
2012-05-25 20:49:17 +00:00
Eric Botcazou e81a1314e7 re PR lto/52178 (Ada bootstrap failure in LTO mode)
PR lto/52178
	* tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
	* tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.

From-SVN: r187893
2012-05-25 20:28:10 +00:00
Ian Lance Taylor fd65b0247c runtime: Fix cast error in print.c on 32-bit systems.
From-SVN: r187890
2012-05-25 18:22:14 +00:00
Alexander Ivchenko d36df21938 re PR target/53435 ((ix86_expand_vec_perm) and (ix86_expand_vec_perm) do not pass arguments to avx2_permvar8s[f,i] correctly)
2012-05-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>

        PR target/53435
        * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
        (ix86_expand_vec_perm): Use int mode instead of float.

From-SVN: r187882
2012-05-25 13:34:07 +00:00
Eric Botcazou 7848e46db1 re PR ada/52362 (gnat.dg/lto8.adb FAILs with gas/gld)
PR ada/52362
	* config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
	gnu_ld variables to yes.
	* configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
	(HAVE_GNU_AS): Likewise.
	* config.in: Regenerate.
	* configure: Likewise.
ada/
	* link.c (__gnat_object_file_option): Set to "-Wl,@" for GNU linker.
	(__gnat_using_gnu_linker): Delete.
	* gnatlink.adb (Gnatlink): Declare Object_File_Option_Ptr here...
	Declare Object_File_Option string constant and Using_GNU_response_file
	boolean constant.
	(Process_Binder_File): ...instead of here.  Delete Using_GNU_Linker,
	Opening and Closing local variables.  Do not handle the GNU linker
	specially.
	(Write_RF): New procedure to write into the response file.  Escape some
	characters if a GNU response file is used.  Keep track of error status.
	Invoke Write_RF to write into the response file.  Delete the file only
	if the link was successful.
	* mlib-utl.adb: Do not `with' package System.
	(Gcc): Likewise.  Declare Object_File_Option string constant and
	Using_GNU_response_file boolean constant.
	(Write_RF): Take a string instead of address and length.  Escape some
	characters if a GNU response file is used.
	Invoke Write_RF to write into the response file.  Delete the file only
	if the link was successful.  Do not warn if it cannot be deleted.

From-SVN: r187877
2012-05-25 10:07:23 +00:00
Ramana Radhakrishnan d624eb46c9 backport: arm.c (neon_dereference_pointer): Do not call covert during RTL expansion.
2012-05-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

	Backport from mainline
        2012-03-12  Richard Guenther  <rguenther@suse.de>
	* config/arm/arm.c (neon_dereference_pointer): Do not call
	covert during RTL expansion.

From-SVN: r187876
2012-05-25 09:57:57 +00:00
GCC Administrator 9503b6e5a5 Daily bump.
From-SVN: r187864
2012-05-25 00:17:26 +00:00
Ian Lance Taylor 63d330539d runtime: Make runtime.Stack actually work.
From-SVN: r187855
2012-05-24 21:07:30 +00:00
Ian Lance Taylor 734f7300cd runtime: Correct definition of __go_file_line to match declaration.
From Rainer Orth.

From-SVN: r187852
2012-05-24 20:47:20 +00:00
Ian Lance Taylor 97ababd0b0 runtime: Copy runtime_printf from other Go library.
From-SVN: r187849
2012-05-24 20:45:16 +00:00
Olivier Hainque 1206dc25d9 Makefile.in: Move dependency on install-unwind_h from "install-leaf" to "install".
libgcc/
        * Makefile.in: Move dependency on install-unwind_h from
        "install-leaf" to "install".

From-SVN: r187841
2012-05-24 14:59:38 +00:00
Bill Schmidt 1286d1a143 backport: re PR target/53385 ("Error: operand out of range" after changes for LSHIFT_EXPR in vrp.c)
2012-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	Backport from mainline
        2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	PR target/53385
	* config/rs6000/rs6000.c (print_operand): Revise code that unsafely
	relied on signed overflow behavior.

From-SVN: r187835
2012-05-24 13:54:16 +00:00
Richard Guenther 06a2d93fe3 re PR middle-end/53460 (Internal compiler error: in calc_dfs_tree, at dominance.c:395)
2012-05-24  Richard Guenther  <rguenther@suse.de>

	PR middle-end/53460
	* tree-profile.c (tree_profiling): Cleanup the CFG if
	execute_fixup_cfg requests it.

	* g++.dg/tree-prof/pr53460.C: New testcase.

From-SVN: r187832
2012-05-24 12:50:15 +00:00
Jakub Jelinek 5a00618528 re PR tree-optimization/53465 (wrong code with -O1 -ftree-vrp)
PR tree-optimization/53465
	* tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
	vr0 into *vr, then vrp_meet that.
	(vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
	have any equivalences.
	(vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
	first time.

	* gcc.c-torture/execute/pr53465.c: New test.

From-SVN: r187828
2012-05-24 13:53:29 +02:00
GCC Administrator dc6121052c Daily bump.
From-SVN: r187821
2012-05-24 00:18:19 +00:00
Eric Botcazou 6b98b8e12c gimple.c (gimple_types_compatible_p_1): Remove bogus size handling.
* gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
	size handling.
	(gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
	(iterative_hash_gimple_type): Adjust comment.
	(iterative_hash_canonical_type): Likewise.  Hash the bounds of the
	domain for an array type instead of the domain type itself.

From-SVN: r187809
2012-05-23 19:09:04 +00:00
Tobias Burnus 5500d6d64a re PR fortran/53389 (-frealloc-lhs: memory leak when assigning array function result to allocatable array, where one of its supplied arguments is itself an array function result)
2012-05-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53389
        * trans-array.c (gfc_add_loop_ss_code): Don't evaluate
        * expression, if
        ss->is_alloc_lhs is set.

2012-05-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53389
        * gfortran.dg/realloc_on_assign_15.f90: New.

From-SVN: r187808
2012-05-23 21:08:52 +02:00
Georg-Johann Lay 37bcae54f5 backport: re PR target/53448 ([avr] ignoring __attribute__((aligned(2))))
Backport from 2012-05-23 mainline r187803
	PR target/53448
	* config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
	* config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
	ASM_OUTPUT_ALIGN.

From-SVN: r187804
2012-05-23 15:28:05 +00:00
Ganesh Gopalasubramanian 4fc14ef79b Generate fma3 instructions by default for 'march=native' in AMD processors that support both fma3 and fma4
From-SVN: r187794
2012-05-23 08:25:38 +00:00
GCC Administrator 67c0c151b6 Daily bump.
From-SVN: r187787
2012-05-23 00:18:16 +00:00
Ian Lance Taylor dfd5362d8c runtime: Tweak runtime.Callers for Go 1 compatibility.
From-SVN: r187782
2012-05-22 21:53:14 +00:00
Ian Lance Taylor c0b23f18aa runtime: Use getcontext, not setjmp, to save regs for GC.
From-SVN: r187778
2012-05-22 16:57:35 +00:00
Richard Guenther a505a36153 re PR middle-end/53408 (ICE in get_initial_def_for_induction, at tree-vect-loop.c:3222)
2012-05-22  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53408
	* tree-vect-loop.c (vectorizable_induction): Properly check
	the restriction that we cannot handle induction results from
	the inner loop outside of the outer loop.

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

From-SVN: r187770
2012-05-22 10:46:21 +00:00
Richard Guenther 1ace7d100f re PR middle-end/51071 (ICE in gimple_has_side_effects, at gimple.c:2513)
2012-05-22  Richard Guenther  <rguenther@suse.de>

	PR middle-end/51071
	* gcc.dg/torture/pr51071-2.c: New testcase.

From-SVN: r187765
2012-05-22 09:28:38 +00:00
GCC Administrator dd014d1f66 Daily bump.
From-SVN: r187754
2012-05-22 00:18:21 +00:00
Jakub Jelinek d0c5b25f7a re PR tree-optimization/53436 (Volatile behaves strange with OpenMP)
PR tree-optimization/53436
	* omp-low.c (omp_build_component_ref): New function.
	(build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.

From-SVN: r187742
2012-05-21 23:06:13 +02:00
Jakub Jelinek cec52b56e2 re PR tree-optimization/53366 (wrong code generation by tree vectorizer using AVX)
PR tree-optimization/53366
	* tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
	tests if complex_numbers == 2, but there are non-complex number loads
	too.

	* gcc.dg/torture/pr53366-1.c: New test.
	* gcc.dg/torture/pr53366-2.c: New test.
	* gcc.target/i386/pr53366-1.c: New test.
	* gcc.target/i386/pr53366-2.c: New test.

From-SVN: r187740
2012-05-21 23:03:42 +02:00
Jakub Jelinek ee0cbe0ab6 re PR middle-end/53409 (ICE: vector VEC(vec_void_p,base) index domain error, in vinfo_for_stmt at tree-vectorizer.h:630)
PR tree-optimization/53409
	* tree-vect-loop.c (vect_analyze_loop_operations): Don't check
	vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.

	* gcc.c-torture/compile/pr53409.c: New test.

From-SVN: r187739
2012-05-21 23:02:40 +02:00
Jakub Jelinek 72b68f358f re PR tree-optimization/53410 (ICE in build_int_cst_wide, at tree.c:1219)
PR tree-optimization/53410
	* fold-const.c (fold_binary_loc): Use build_zero_cst (type)
	instead of build_int_cst (type, 0) where vector types might be
	involved.

	* gcc.c-torture/compile/pr53410-1.c: New test.
	* gcc.c-torture/compile/pr53410-2.c: New test.

From-SVN: r187738
2012-05-21 23:00:43 +02:00
Andrew Pinski 0422e6ae8d re PR bootstrap/53183 (libgcc does not always figure out the size of double/long double)
2012-05-21  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/53183
        * configure.ac: Define the default includes to being none.
        * configure: Regenerate.

From-SVN: r187733
2012-05-21 12:02:11 -07:00
Benjamin Kosnik 388f6c13e7 re PR bootstrap/52700 (lib* configure fails on --enable-symvers=gnu-versioned-namespace.)
2012-05-21  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/52700
	* configure.ac: Allow gnu, gnu-versioned-namespace for
	--enable-symvers arguments.
	* configure: Regenerate.

From-SVN: r187730
2012-05-21 18:14:01 +00:00
Joseph Myers fe02086b3b re PR c/53418 (ICE at gimplify.c:7773)
PR c/53418
	* c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
	from folded operands before wrapping another around the
	conditional expression.

testsuite:
	* gcc.c-torture/compile/pr53418-1.c,
	gcc.c-torture/compile/pr53418-2.c: New tests.

From-SVN: r187726
2012-05-21 17:47:32 +01:00
Patrick Marlier eec2afd9dd [multiple changes]
2012-05-21  Dave Boutcher  <daveboutcher@gmail.com>
	    Patrick Marlier  <patrick.marlier@gmail.com>

	* trans-mem.c (ipa_tm_transform_clone): Transform functions with
	indirect calls.

testsuite/
2012-05-21  Patrick Marlier  <patrick.marlier@gmail.com>

	* gcc.dg/tm/indirect-2.c: New test.

From-SVN: r187721
2012-05-21 15:15:51 +00:00
H.J. Lu 8203380acd Use unspec_volatile on rdrand<mode>_1
gcc/

	Backport from mainline
	PR target/53416
	* config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
	(UNSPECV_RDRAND): This.
	(rdrand<mode>_1): Updated.


gcc/testsuite/

	Backport from mainline
	PR target/53416
	* gcc.target/i386/pr53416.c: New file.

From-SVN: r187713
2012-05-21 06:07:11 -07:00
GCC Administrator f174e8c178 Daily bump.
From-SVN: r187702
2012-05-21 00:18:13 +00:00
H.J. Lu 57749da311 Add RDRND, F16C and FSGSBASE support to -march=native
Backport from mainline
	* config/i386/driver-i386.c (host_detect_local_cpu): Support
	RDRND, F16C and FSGSBASE.

From-SVN: r187697
2012-05-20 16:10:57 -07:00
Eric Botcazou e7eca5b668 utils.c (gnat_write_global_declarations): Put a name on the dummy global variable.
* gcc-interface/utils.c (gnat_write_global_declarations): Put a name
	on the dummy global variable.

From-SVN: r187693
2012-05-20 09:46:42 +00:00
GCC Administrator 6a9013c088 Daily bump.
From-SVN: r187687
2012-05-20 00:18:17 +00:00
Eric Botcazou 5b6a5b8e9b backport: tree-ssa-pre.c (can_value_number_call): Delete.
Backport from mainline
	2012-05-14  Eric Botcazou  <ebotcazou@adacore.com>

	* tree-ssa-pre.c (can_value_number_call): Delete.
	(compute_avail): Skip all statements with side effects.
	<GIMPLE_CALL>: Skip calls to internal functions.

From-SVN: r187683
2012-05-19 23:16:33 +00:00
Eric Botcazou 450f261efe decl.c (Has_Thiscall_Convention): New macro.
2012-05-19  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
	(gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the thiscall
	calling convention
	(get_minimal_subprog_decl): Likewise.
	(gnat_first_param_is_class): New predicate.

	Backport from mainline
	2012-05-15  Javier Miranda  <miranda@adacore.com>

	* exp_ch3.adb (Build_Offset_To_Top): Modify the
	expansion of the offset_to_top functions to ensure that their
	profile is conformant with the profile specified in Ada.Tags. No
	change in functionality.

From-SVN: r187677
2012-05-19 09:34:06 +00:00
David S. Miller 46dc2b6e2e Fix VIS3 vector shift wrong code generation on sparc.
Backport r185385 from mainline.
	2012-03-14  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52584
	* tree-vect-generic.c (type_for_widest_vector_mode): Take
	element type instead of mode, use build_vector_type_for_mode
	instead of the langhook, build a vector of proper signedness.
	(expand_vector_operations_1): Adjust.

From-SVN: r187675
2012-05-18 23:19:10 -07:00
GCC Administrator e665d0fd6a Daily bump.
From-SVN: r187673
2012-05-19 00:18:05 +00:00
Eric Botcazou 37b2deff0d decl.c (gnat_to_gnu_entity): For an object at global level with unconstrained nominal subtype and a...
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an object at
	global level with unconstrained nominal subtype and a non-fixed size,
	make a variable for the size.

From-SVN: r187668
2012-05-18 20:40:23 +00:00
Ian Lance Taylor ca5c09c553 compiler: Fix erroneous use of VEC.
From-SVN: r187665
2012-05-18 20:15:58 +00:00
Olivier Hainque 8f7c0347de Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of $(libsubdir) as libexecsubdir.
* Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
        $(libsubdir) as libexecsubdir.

From-SVN: r187659
2012-05-18 16:32:05 +00:00
GCC Administrator 472abbe521 Daily bump.
From-SVN: r187646
2012-05-18 00:18:30 +00:00
David S. Miller e35c4f9f75 Fix bessel_7.f90 failures on sparc-*-linux-gnu
* gfortran.dg/bessel_7.f90: Bump allowed precision to avoid
	failure on sparc-*-linux-gnu.

From-SVN: r187637
2012-05-17 12:29:51 -07:00
Ian Lance Taylor 2053079da9 runtime: Print stack trace on panic or signal.
From-SVN: r187624
2012-05-17 05:30:43 +00:00
GCC Administrator 2a89e7fcc2 Daily bump.
From-SVN: r187619
2012-05-17 00:17:24 +00:00
Andrew Pinski 757c35c4b1 gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under GIMPLE_ASSIGN.
2012-05-16  Andrew Pinski  <apinski@cavium.com>

	* gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
	GIMPLE_ASSIGN.

From-SVN: r187609
2012-05-16 13:38:25 -07:00
David S. Miller bab9f63515 Fix var tracking ICE due to reorg.
If during reorg we delete a code label, and as a result we decide to
delete all the code following that label, we hit this condition in
jump.c:delete_related_insns():

  if (was_code_label && prev && BARRIER_P (prev))                                

which passes and then we proceed to delete insns until we hit a
non-deleted code label.

During this traversal, we can end up deleting a CALL, but in doing so
we will leave the var tracking note for the call arguments around.

Later in dwarf2_var_location() we will ICE, because we can't find the
CALL when we search backwards for it.

gcc/

	* jump.c (delete_related_insns): If we remove a CALL, make sure
	we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.

From-SVN: r187605
2012-05-16 12:54:19 -07:00
Richard Henderson c417a9f2e0 re PR debug/52727 (internal compiler error at dwarf2cfi.c2:685)
PR debug/52727
	* combine-stack-adj.c (prev_active_insn_bb): New.
	(next_active_insn_bb): New.
	(force_move_args_size_note): New.
	(combine_stack_adjustments_for_block): Use it.

From-SVN: r187603
2012-05-16 10:49:38 -07:00
Olivier Hainque 5941400450 Makefile.tpl (gcc-no-fixedincludes): Rename into ...
toplevel/
        * Makefile.tpl (gcc-no-fixedincludes): Rename into ...
        (gcc-install-no-fixedincludes): Now forwarder to local target in gcc/
        (install-no-fixedincludes): Adjust accordingly.
        * Makefile.in: Regenerate.

        gcc/
        * Makefile.in (install-no-fixedincludes): New target, former toplevel
        gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
        Add comments and improve stamp preservation across the whole sequence.
        (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.

From-SVN: r187601
2012-05-16 15:54:24 +00:00
Olivier Hainque 87a588c9f2 Makefile.in (install-unwind_h): Rename into ...
libgcc/
	* Makefile.in (install-unwind_h): Rename into ...
	(install-unwind_h-forbuild): New target.
	(all): Use it instead of the former install-unwind_h.
	(install-unwind_h): Reinstate, copy to user install destination
	for include files, not to the internal gcc object directory one.
	(install-leaf): Depend on it.

From-SVN: r187600
2012-05-16 15:53:13 +00:00
Ian Lance Taylor 7c442fde89 log/syslog: Fix name of C function syslog_c.
From Rainer Orth.

From-SVN: r187597
2012-05-16 14:52:21 +00:00
Richard Guenther 3658f3f07d re PR tree-optimization/53364 (Wrong code generation)
2012-05-16  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53364
	* tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
	detect a view-conversion of the decl.

	* g++.dg/torture/pr53364.C: New testcase.

From-SVN: r187589
2012-05-16 13:08:33 +00:00
Ian Lance Taylor 2113253770 debug/dwarf: Fix handling of LineSetFile.
From-SVN: r187579
2012-05-16 05:36:46 +00:00
Ian Lance Taylor d5e6b20d50 compiler: Fix assembler names of types defined in functions.
From-SVN: r187575
2012-05-16 00:26:48 +00:00
GCC Administrator 7a2011439e Daily bump.
From-SVN: r187572
2012-05-16 00:17:23 +00:00
Ian Lance Taylor 6ab61c8541 compiler: Fix taking address of constant outside of function.
From-SVN: r187566
2012-05-15 22:54:39 +00:00
Andris Pavenis 84c8c23f48 re PR ada/52494 (s-taprop-dummy.adb does not define subpackage Specific used in s-tpoaal.sdb)
PR ada/52494
	* s-taprop-dummy.adb (Specific): New package.

From-SVN: r187564
2012-05-15 22:35:33 +00:00
Ian Lance Taylor 5e3306615e compiler: Sort array constructors by index.
From-SVN: r187561
2012-05-15 22:30:57 +00:00
Eric Botcazou 8ba9905de6 sem_prag.adb (Process_Atomic_Shared_Volatile): Propagate atomicity from an object to its underlying type only if it is composite.
* sem_prag.adb (Process_Atomic_Shared_Volatile): Propagate
	atomicity from an object to its underlying type only if it
	is composite.

From-SVN: r187555
2012-05-15 20:08:00 +00:00
Ian Lance Taylor e13240d148 compiler: Don't try to take the address of a constant.
From-SVN: r187554
2012-05-15 20:00:57 +00:00
Ian Lance Taylor 2134753665 runtime: Make all variables used across getcontext volatile.
From-SVN: r187550
2012-05-15 18:57:03 +00:00
Jakub Jelinek 6e9d909718 re PR target/53358 (ICE due to TARGET_READ_MODIFY_WRITE peephole2)
PR target/53358
	* config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
	that operands[2] is either immediate, or q_regs_operand.

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

From-SVN: r187545
2012-05-15 17:21:38 +02:00
Alexandre Oliva d3f3539c54 re PR c++/53209 (tree check ICE: expected tree_vec, have error_mark in comp_template_args_with_info, at cp/pt.c:7038)
PR c++/53209
* pt.c (tsubst_decl): Bail out if argvec is error_mark_node.

From-SVN: r187497
2012-05-15 04:25:25 +00:00
Bin Cheng 4d4f41fab3 backport: re PR rtl-optimization/52804 (IRA/RELOAD allocate wrong register on ARM for cortex-m0)
Backport r187139 from mainline.
	2012-05-04  Bin Cheng  <bin.cheng@arm.com>

	PR rtl-optimization/52804
	* reload1.c (reload_reg_reaches_end_p): Check whether successor
	reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
	of current one with type RELOAD_FOR_INPADDR_ADDRESS.
	Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
	RELOAD_FOR_OUTADDR_ADDRESS.

From-SVN: r187496
2012-05-15 02:14:05 +00:00
GCC Administrator eb6c1e0cb7 Daily bump.
From-SVN: r187492
2012-05-15 00:17:28 +00:00
Ian Lance Taylor 5d26263b73 libgo: Use -fgo-pkgpath.
From-SVN: r187486
2012-05-14 22:09:21 +00:00
Uros Bizjak 7752b8096d re PR target/46098 (ICE: in extract_insn, at recog.c:2100 with -msse3 -ffloat-store and __builtin_ia32_loadupd())
PR target/46098
	* config/i386/i386.c (ix86_expand_special_args_builtin): Always
	generate target register for "load" class builtins.

	Revert:
	2010-10-22  Uros Bizjak  <ubizjak@gmail.com>

	PR target/46098
	* config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
	Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
	(avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
	(*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
	(<sse>_movu<ssemodesuffix>): New expander.
	(*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
	(avx_movdqu<avxmodesuffix>): New expander.
	(*sse2_movdqu): Rename from sse2_movdqu.
	(sse2_movdqu): New expander.

testsuite/ChangeLog:

	* gcc.target/i386/avx256-unaligned-load-[1234].c: Update scan strings.
	* gcc.target/i386/avx256-unaligned-store-[1234].c: Ditto.

From-SVN: r187482
2012-05-14 23:30:23 +02:00
Jakub Jelinek f2ea3f1e00 dwarf2out.c (dwarf2out_define, [...]): Treat lineno 1 the same as lineno 0 before first start file directive.
* dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
	lineno 1 the same as lineno 0 before first start file directive.
	(optimize_macinfo_range): Likewise.

From-SVN: r187476
2012-05-14 19:08:12 +02:00
Jakub Jelinek bdd61db72b dwarf2out.c (have_macinfo): Define.
* dwarf2out.c (have_macinfo): Define.
	(dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
	attribute, don't force empty compilation unit and don't emit any
	.debug_macinfo/.debug_macro section if macinfo_table is empty.

From-SVN: r187474
2012-05-14 19:06:49 +02:00
GCC Administrator fa6eb503fd Daily bump.
From-SVN: r187448
2012-05-14 00:18:39 +00:00
Uros Bizjak 88e1f07e84 backport: alpha.c (alpha_emit_conditional_branch): Handle ORDERED and UNORDERED conditions.
Backport from mainline
	2012-05-12  Uros Bizjak  <ubizjak@gmail.com>

	* config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
	ORDERED and UNORDERED conditions.

From-SVN: r187439
2012-05-13 18:25:20 +02:00
GCC Administrator 0657ef590a Daily bump.
From-SVN: r187433
2012-05-13 00:18:12 +00:00
Eric Botcazou f1c2a405ce function.c (requires_stack_frame_p): If the function can throw non-call exceptions...
* function.c (requires_stack_frame_p): If the function can throw
	non-call exceptions, return true if the insn can throw internally.

From-SVN: r187430
2012-05-12 21:37:23 +00:00
GCC Administrator f21e25afae Daily bump.
From-SVN: r187422
2012-05-12 00:18:14 +00:00
Tobias Burnus 51b6a8257f re PR fortran/53310 (EOSHIFT leaks memory)
2012-05-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53310
        * intrinsics/eoshift2.c (eoshift2): Do not leak
        memory by allocating it in the loop.

From-SVN: r187417
2012-05-12 00:32:27 +02:00
Bill Schmidt d18577a687 typeck.c (java_type_for_size): Handle 128-bit sizes for bitsizetype.
2012-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* java/typeck.c (java_type_for_size): Handle 128-bit sizes for
	bitsizetype.

From-SVN: r187409
2012-05-11 14:45:09 +00:00
GCC Administrator 33d1989270 Daily bump.
From-SVN: r187390
2012-05-11 00:18:02 +00:00
DJ Delorie 48cf46a57f random.tcc (seed_seq::generate): Cast max() operands to size_t to ensure a template match.
* include/bits/random.tcc (seed_seq::generate): Cast max()
operands to size_t to ensure a template match.
* include/std/bitset (_M_copy_from_ptr): Cast min() operands to
size_t to ensure a template match.

From-SVN: r187379
2012-05-10 17:07:04 -04:00
Paolo Carlini 635331b702 re PR c++/53301 (Spurious -Wzero-as-null-pointer-constant with reference arguments)
/cp
2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53301
	* decl.c (check_default_argument): Fix typo (POINTER_TYPE_P
	instead of TYPE_PTR_P) in zero-as-null-pointer-constant warning.

/testsuite
2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53301
	* g++.dg/warn/Wzero-as-null-pointer-constant-6.C: New.

From-SVN: r187378
2012-05-10 21:06:42 +00:00
Eric Botcazou b703a889f1 gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the DECL_ORIGINAL_TYPE if it is present.
* gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
	DECL_ORIGINAL_TYPE if it is present.

From-SVN: r187370
2012-05-10 15:00:11 +00:00
GCC Administrator acff293630 Daily bump.
From-SVN: r187361
2012-05-10 00:18:18 +00:00
Ian Lance Taylor 3ded8ee74a compiler: Add -fgo-pkgpath option.
* lang.opt: Add -fgo-pkgpath.
	* go-lang.c (go_pkgpath): New static variable.
	(go_prefix): New static variable.
	(go_langhook_init): Pass go_pkgpath and go_prefix to
	go_create_gogo.
	(go_langhook_handle_option): Handle -fgo-pkgpath.  Change
	-fgo-prefix handling to just set go_prefix.
	* go-c.h (go_set_prefix): Don't declare.
	(go_create_gogo): Add pkgpath and prefix to declaration.
	* go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix
	to pkgpath.  Don't include the package name in the asm name.
	* gccgo.texi (Invoking gccgo): Document -fgo-pkgpath.  Update the
	docs for -fgo-prefix.

From-SVN: r187357
2012-05-09 23:30:17 +00:00
Georg-Johann Lay abbaf67670 backport: re PR target/53256 ([avr] Attribute 'interrupt' shall override attribute 'signal')
Backport from 2012-05-12 mainline r187342.
	PR target/53256
	* config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
	* config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
	* config/avr/avr.h (struct machine_function): Add attributes_checked_p.
	* config/avr/avr.c (avr_asm_declare_function_name): Remove.
	(expand_prologue): Move initialization of cfun->machine->is_naked,
	is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
	(avr_set_current_function): ...this new static function.
	(TARGET_SET_CURRENT_FUNCTION): New define.
	(avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
	checking attributes of current_function_decl.
	(avr_regs_to_save): Ditto.
	(signal_function_p): Rename to avr_signal_function_p.
	(interrupt_function_p): Rename to avr_interrupt_function_p.
	* doc/extend.texi (Function Attributes): Better explanation of
	'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
	alphabetical order.

From-SVN: r187343
2012-05-09 16:39:33 +00:00
Matthias Klose 74a4464a50 gcc-ar.c (main): Don't check for execute bits for the plugin.
2012-05-09  Matthias Klose  <doko@ubuntu.com>

        * gcc-ar.c (main): Don't check for execute bits for the plugin.

From-SVN: r187339
2012-05-09 16:02:34 +00:00
GCC Administrator f186c2f0d6 Daily bump.
From-SVN: r187306
2012-05-09 00:18:27 +00:00
Hans-Peter Nilsson bd21097d75 re PR target/53272 (wrong condition-codes for strict-low-part destination and small-integer source)
PR target/53272
	* gcc.dg/torture/pr53272-1.c, gcc.dg/torture/pr53272-2.c: New test.

From-SVN: r187286
2012-05-08 15:27:58 +00:00
Hans-Peter Nilsson f64968b6f5 re PR target/53272 (wrong condition-codes for strict-low-part destination and small-integer source)
PR target/53272
	* config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
	when a constant source operand matches an "I" constraint, the "no
	CC0 change" applies to a register-destination only, not a
	strict_low_part-destination.

From-SVN: r187285
2012-05-08 15:27:03 +00:00
Ramana Radhakrishnan e91f7c80f6 backport: sync.md (sync_optab): Change ior attribute to "or".
2012-05-07  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

	Backport from mainline:
	2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

	* config/arm/sync.md (sync_optab): Change ior attribute to "or".

From-SVN: r187278
2012-05-08 10:57:58 +00:00
GCC Administrator 34f19c34c4 Daily bump.
From-SVN: r187274
2012-05-08 00:17:50 +00:00
Ian Lance Taylor 6d4c01d96e compiler: fix an ICE when parsing 0xdie, reject token 0x123i.
The lexer used to incorrectly accept a token like 0x123i
and interpreted it as 123i. It also used to die when encountering
0xdie.

From-SVN: r187267
2012-05-07 18:53:44 +00:00
Ian Lance Taylor 962cc4d5db compiler: fix ICE in handling of rune constants.
This patch corrects an ICE in handling on constant expressions
such as

const r = ^'a'

Part of issue 9.

From-SVN: r187265
2012-05-07 18:37:00 +00:00
Ian Lance Taylor 69bc1c3c53 compiler: reject NOT operator on integer types.
The Go specification only accepts the NOT operator on boolean
types.

Fixes issue 10.

From-SVN: r187263
2012-05-07 18:24:32 +00:00
Jakub Jelinek 2fb3f74005 re PR tree-optimization/53239 (VRP vs named value return opt)
PR tree-optimization/53239
	* tree-vrp.c (get_value_range): Set VR of
	SSA_NAME_IS_DEFAULT_DEF of DECL_BY_REFERENCE RESULT_DECL
	to nonnull.

	* g++.dg/opt/vrp3.C: New test.
	* g++.dg/opt/vrp3-aux.cc: New file.
	* g++.dg/opt/vrp3.h: New file.

From-SVN: r187241
2012-05-07 15:33:27 +02:00
Richard Guenther bd93e76326 re PR lto/53195 (ICE seg fault in lto (in set_is_used (tp=Unhandled dwarf expression opcode 0xf3 ) at ../.././gcc/tree-flow-inline.h:567))
2012-05-07  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53195
	* tree-inline.c (setup_one_parameter): Properly add referenced
	vars from the parameters new known value.

From-SVN: r187237
2012-05-07 13:00:39 +00:00
Tobias Burnus 6c90dfa867 backport: re PR fortran/53255 ([OOP] With TYPE, wrong type-bound operator used: of parent instead of overridden one)
2012-05-07  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline:
        2012-05-07  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53255
        * resolve.c (resolve_typebound_static): Fix handling
        of overridden specific to generic operator.

2012-05-07  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline:
        2012-05-07  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53255
        * gfortran.dg/typebound_operator_15.f90: New.

From-SVN: r187232
2012-05-07 13:50:04 +02:00
GCC Administrator a18c30343d Daily bump.
From-SVN: r187222
2012-05-07 00:18:16 +00:00
John David Anglin 6563fece97 backport: re PR target/52999 (ICE, segmentation fault in c_tree_printer)
Backport from mainline:
	2012-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR target/52999
	* config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
	in constant pool.

From-SVN: r187216
2012-05-06 20:50:06 +00:00
Pascal Obry c8f5c98afa revert: Makefile.in (WIN_SO_PREFIX [windows targets]): New Windows-specific make variable.
gcc/ada/
	Revert
	2012-02-24  Dave Korn  <dave.korn.cygwin@gmail.com>

	* gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
	Windows-specific make variable.
	(WIN_SO_INSTALL_DIR [windows targets]): Likewise.
	(install-gnatlib): Respect the above during installation when set,
	and also install any windows import library that has been built.
	(gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
	build a corresponding import library.
libada/
	Revert
	2012-02-24  Dave Korn  <dave.korn.cygwin@gmail.com>

	* Makefile.in (bindir): Import from autoconf and pass down to submake.

From-SVN: r187205
2012-05-06 09:27:25 +00:00
GCC Administrator 51c1cf776b Daily bump.
From-SVN: r187202
2012-05-06 00:17:51 +00:00
Tobias Burnus 3f814846fb backport: re PR fortran/53111 (Derived types cannot be USE-associated again with -std=f95)
2012-05-05  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline:
        2012-05-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53111
        * resolve.c (resolve_fl_derived): Fix -std=f95
        diagnostic for generic vs. DT names.

2012-05-05  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline:
        2012-05-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/53111
        * gfortran.dg/constructor_7.f90: New.
        * gfortran.dg/constructor_8.f90: New.

From-SVN: r187193
2012-05-05 11:53:21 +02:00
GCC Administrator e411c00bad Daily bump.
From-SVN: r187187
2012-05-05 00:17:56 +00:00
Ian Lance Taylor 3e21932c3b tree-vect-patterns.c (vect_single_imm_use): Correct return values from false to NULL.
* tree-vect-patterns.c (vect_single_imm_use): Correct return
	values from false to NULL.

From-SVN: r187182
2012-05-04 20:59:13 +00:00
Ian Lance Taylor 6a5b5af766 compiler: Correct parse of for with possible composite literal.
Fixes, e.g., "for first := true; first; first = false {".

From-SVN: r187177
2012-05-04 19:33:29 +00:00
Uros Bizjak d4d8983852 backport: re PR target/53228 (target attributes in libcpp/lex.c cause illegal instructions to be used elsewhere)
Backport from mainline
	2012-05-04  Uros Bizjak  <ubizjak@gmail.com>

	PR target/53228
	* config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
	(TARGET_CMOV): Rename from TARGET_CMOVE.
	(TARGET_CMOVE): New define.
	* config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
	Do not set TARGET_CMOVE here.

From-SVN: r187169
2012-05-04 18:58:16 +02:00
Ian Lance Taylor 7cc9cf2a37 libgo: Update to Go 1.0.1 release.
From-SVN: r187164
2012-05-04 15:01:31 +00:00
Ulrich Weigand 8916b41741 backport: [multiple changes]
2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
 	Backport from mainline:
 
 	2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
 	PR tree-optimization/52633
 	* tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
 	vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
 	(vect_recog_over_widening_pattern): Remove handling of code that was
 	already detected as over-widening pattern.  Remove special handling
 	of "unsigned" cases.  Instead, support general case of conversion
 	of the shift result to another type.
 
 	2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
 	* tree-vect-patterns.c (vect_single_imm_use): New function.
 	(vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
 	(vect_recog_over_widening_pattern): Likewise.
 	(vect_recog_widen_shift_pattern): Likewise.
 
 	2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
 	PR tree-optimization/52870
 	* tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
 	presumed pattern statement is within the same loop or basic block.
 
2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
 	Backport from mainline:
 
 	2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
 	PR tree-optimization/52633
 	* gcc.dg/vect/vect-over-widen-1.c: Two patterns should now be
 	recognized as widening shifts instead of over-widening.
 	* gcc.dg/vect/vect-over-widen-1-big-array.c: Likewise.
 	* gcc.dg/vect/vect-over-widen-4.c: Likewise.
 	* gcc.dg/vect/vect-over-widen-4-big-array.c: Likewise.
 	* gcc.target/arm/pr52633.c: New test.
 
 	2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
 	PR tree-optimization/52870
 	* gcc.dg/vect/pr52870.c: New test.

From-SVN: r187162
2012-05-04 14:56:48 +00:00
Richard Guenther b7177f29e1 common.opt (flto-report): Do not mark as Optimization.
2012-05-04  Richard Guenther  <rguenther@suse.de>

	* common.opt (flto-report): Do not mark as Optimization.

	lto/
	* lang.opt (fwpa): Do not mark as Optimization.
	(fltrans): Likewise.

	* gcc.dg/lto/pr53214_0.c: New testcase.

From-SVN: r187154
2012-05-04 11:34:25 +00:00
Eric Botcazou d9413944bf re PR target/48496 ('asm' operand requires impossible reload)
PR target/48496
	* recog.c (constrain_operands): If extra constraints are present, also
	accept pseudo-registers with equivalent memory locations during reload.

From-SVN: r187152
2012-05-04 11:13:20 +00:00
Ian Lance Taylor dc25b1db7f compiler: Error if importing same package twice with same name.
From-SVN: r187143
2012-05-04 05:24:17 +00:00
Michael Meissner 5bf44ebd21 re PR target/53199 (__builtin_bswap64 and __builtin_bswap32 generate errors if -mcpu=power6)
[gcc]
2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/53199
	* config/rs6000/rs6000.md (bswapdi splitters): If
	-mavoid-indexed-addresses (or -mcpu=power6 which sets it by
	default) is used, generate an alternate sequence that does not
	depend on using indexed addressing.

[gcc/testsuite]
2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/53199
	* gcc.target/powwerpc/pr53199.c: New file.

From-SVN: r187132
2012-05-04 00:28:17 +00:00
GCC Administrator f0c1948ae7 Daily bump.
From-SVN: r187130
2012-05-04 00:17:45 +00:00
David S. Miller 1672a58460 Fix long double float miscompilations on sparc 64-bit.
PR target/52684
	* config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
	MEM directly into a libcall, mark it's MEM_EXPR as addressable.
	(sparc_emit_float_lib_cmp): Likewise.

From-SVN: r187124
2012-05-03 15:34:34 -07:00
Ian Lance Taylor 9b5b32afda compiler: Build import tables as needed for imported interfaces.
From-SVN: r187112
2012-05-03 17:42:14 +00:00
Martin Jambor ce96157efc re PR lto/52605 (LTO -g ICE when looking up context of VMTs of classes defined within functions)
2012-05-03  Martin Jambor  <mjambor@suse.cz>

	PR lto/52605
	* dwarf2out.c (dwarf2out_decl): Only lookup die representing context
	of a variable when the contect is a function.

	* gcc/testsuite/g++.dg/lto/pr52605_0.C: New test.

From-SVN: r187109
2012-05-03 19:00:32 +02:00
Ian Lance Taylor c58bd2fe96 compiler: Fix order of initialization bug with global var a, b = f().
From-SVN: r187104
2012-05-03 16:09:44 +00:00
Paolo Carlini c7bea9902b re PR c++/53186 ([C++11] missing devirtualization for operators "final")
/cp
2012-05-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53186
	* call.c (build_over_call): Handle final member functions
	and class types.
	(build_new_method_call_1): Do not handle here.

/testsuite
2012-05-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53186
	* g++.dg/other/final2.C: New.

From-SVN: r187098
2012-05-03 14:32:15 +00:00
Jakub Jelinek f58bdccdc2 re PR plugins/53126 (gcc-4.7.0 error "gcc-ar: Cannot find plugin")
PR plugins/53126
	* gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
	append program name to it and pass that as first argument
	to make_relative_prefix.  Always pass standard_libexec_prefix
	as last argument to make_relative_prefix.  If
	make_relative_prefix returns NULL, fall back to
	standard_libexec_prefix.

From-SVN: r187091
2012-05-03 13:09:46 +02:00
Jakub Jelinek 83d369636b re PR debug/53174 (ICE in expand_debug_expr, verify_ssa failed)
PR debug/53174
	* tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
	removed.

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

From-SVN: r187088
2012-05-03 12:19:29 +02:00
Jakub Jelinek 2799d189aa re PR target/53187 (ICE in arm_select_dominance_cc_mode)
PR target/53187
	* config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
	mode, return that mode.

	* gcc.target/arm/pr53187.c: New test.
	* gcc.c-torture/compile/pr53187.c: New test.

From-SVN: r187086
2012-05-03 12:17:02 +02:00
Richard Guenther bad11612bb re PR middle-end/53144 (PPRE infinite loop)
2012-05-03  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53144
	* tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
	Rename to ...
	(vn_reference_lookup_or_insert_for_pieces): ... this.  Properly deal
	with SSA name values.
	(vn_reference_lookup_3): Adjust callers.

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

From-SVN: r187080
2012-05-03 08:49:03 +00:00
GCC Administrator 730e1fc631 Daily bump.
From-SVN: r187071
2012-05-03 00:17:57 +00:00
Paolo Carlini 309b70382b re PR libstdc++/53193 (23_containers/unordered_set/instantiation_neg.cc)
2012-05-02  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/53193
	* testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
	dg-error line number.

From-SVN: r187057
2012-05-02 17:16:33 +00:00
Tobias Burnus 38566e6014 backport: [multiple changes]
2012-05-02  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2012-04-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52864
        * expr.c (gfc_check_vardef_context): Fix assignment check for
        pointer components.

2012-05-02  Tobias Burnus  <burnus@net-b.de>

        Backport from mainline
        2012-04-16  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52864
        * gfortran.dg/pointer_intent_6.f90: New.

From-SVN: r187044
2012-05-02 14:51:49 +02:00
Jakub Jelinek bc7d2862bb re PR tree-optimization/53163 (crash due to null ptr deref)
PR tree-optimization/53163
	* tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
	return value from compute_all_dependences.

	* gcc.c-torture/compile/pr53163.c: New test.

From-SVN: r187039
2012-05-02 11:56:39 +02:00
Jakub Jelinek e81686ec0b re PR rtl-optimization/53160 (likely wrong code bug)
PR rtl-optimization/53160
	* ree.c (combine_reaching_defs): Handle the case where cand->insn
	has been modified by ree pass already.

	* gcc.c-torture/execute/pr53160.c: New test.

From-SVN: r187036
2012-05-02 09:19:41 +02:00
GCC Administrator f34547ccbe Daily bump.
From-SVN: r187033
2012-05-02 00:17:56 +00:00
François Dumont bd04a8d983 re PR libstdc++/53115 (_Hashtable::_M_rehash_aux(false_type) is broken)
2012-05-01  François Dumont  <fdumont@gcc.gnu.org>

	PR libstdc++/53115
	* include/bits/hashtable.h
	(_Hashtable<>::_M_rehash_aux(size_type, false_type)): Fix buckets
	after insertion of several equivalent elements.
	* testsuite/23_containers/unordered_multiset/insert/53115.cc: New.
	* testsuite/23_containers/unordered_multimap/insert/53115.cc: New.

From-SVN: r187023
2012-05-01 19:38:28 +00:00
Uros Bizjak 1e85166ca4 backport: re PR middle-end/53136 (Use after free in ipa_make_edge_direct_to_target, cxx_printable_name_internal problem)
Backport from mainline
	2012-04-30  Uros Bizjak  <ubizjak@gmail.com>

	PR middle-end/53136
	* ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
	calls to cgraph_node_name in xstrdup.
	(ipa_make_edge_direct_to_target): Ditto.
	* tree-sra.c (convert_callers_for_node): Ditto.
	* lto-symtab.c (lto_cgraph_replace_node): Ditto.
	* ipa-cp.c (perhaps_add_new_callers): Ditto.
	* cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
	(cgraph_materialize_all_clones): Ditto.
	* ipa-inline.c (report_inline_failed_reason): Ditto.
	(want_early_inline_function_p): Ditto.
	(edge_badness): Ditto.
	(update_edge_key): Ditto.
	(flatten_function): Ditto.
	(ipa_inline): Ditto.
	(inline_always_inline_functions): Ditto.
	(early_inline_small_functions): Ditto.

From-SVN: r187011
2012-05-01 08:23:13 +02:00
GCC Administrator c6b48a6d08 Daily bump.
From-SVN: r187006
2012-05-01 00:18:49 +00:00
Thomas Koenig e1730aa3f3 re PR fortran/53148 (Incorrect intrinsic function parsing on labeled statements when compiled w/ -ffrontend-optimize)
2012-04-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/53148
	Backport from trunk
	* frontend-passes.c (create_var):  If the statement has a label,
	put the label around the block.

2012-04-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/53148
	Backport from trunk
	* gfortran.dg/function_optimize_12.f90:  New test.

From-SVN: r186999
2012-04-30 19:31:13 +00:00
Andreas Tobler c95d3a6dfb backport: 31370.cc: Skip this test on powerpc64-*-freebsd*.
2012-04-30  Andreas Tobler  <andreast@fgznet.ch>

	Backport from mainline
	2012-03-21  Andreas Tobler  <andreast@fgznet.ch>

	* testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
	Skip this test on powerpc64-*-freebsd*.

From-SVN: r186997
2012-04-30 19:40:34 +02:00
Andreas Tobler ff6f1e37fe backport: config.host: Add bits to support powerpc64-*-freebsd*.
2012-04-30  Andreas Tobler  <andreast@fgznet.ch>

	Backport from mainline
	2012-03-21  Andreas Tobler  <andreast@fgznet.ch>

	* config.host: Add bits to support powerpc64-*-freebsd*.
	* config/rs6000/freebsd-unwind.h: New file.
	* config/rs6000/t-freebsd64: New file.

From-SVN: r186996
2012-04-30 19:39:57 +02:00
Andreas Tobler 67a4fcecb5 backport: configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
2012-04-30  Andreas Tobler  <andreast@fgznet.ch>

	Backport from mainline
	2012-03-21  Andreas Tobler  <andreast@fgznet.ch>

	* configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
	Introduce emul_name to select the right linker emulation for
	powerpc64-*-freebsd*.
	* configure: Regenerate.
	* config.gcc: Add bits to support powerpc64-*-freebsd*.
	* config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
	* config/rs6000/freebsd64.h: New file.
	* config/rs6000/rs6000.c (rs6000_option_override_internal): Use
	POWERPC_FREEBSD.
	(rs6000_savres_strategy): Likewise.
	(rs6000_savres_routine_name): Likewise.
	(rs6000_elf_file_end): Likewise.
	* config/rs6000/t-freebsd64: New file.
	* config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
	rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.

From-SVN: r186995
2012-04-30 19:39:01 +02:00
Ian Lance Taylor f28c1c5bef re PR go/52586 (libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64'))
PR go/52586
mksysinfo, syscall: Make sure SYS_GETDENTS64 is defined.

Fixes build on MIPS GNU/Linux.

From-SVN: r186987
2012-04-30 16:04:33 +00:00
Uros Bizjak b2028fd3b1 backport: re PR target/53138 (spaceship operator miscompiled)
Backport from mainline
	2012-04-27  Paolo Bonzini  <bonzini@gnu.org>

	PR target/53138
	* config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.

testsuite/ChangeLog:

	Backport from mainline
	2012-04-27  Paolo Bonzini  <bonzini@gnu.org>

	PR target/53138
	* gcc.c-torture/execute/20120427-1.c: New testcase.

From-SVN: r186962
2012-04-30 10:57:41 +02:00
Eric Botcazou c45a86fd95 i386.c (ix86_handle_struct_attribute): Use the proper predicate to discriminate types.
* config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
	predicate to discriminate types.
ada/
	* gcc-interface/utils.c (finish_record_type): Force the traditional GCC
	layout for bitfields on the type if it is packed or has a representation
	clause and an alternate layout is available.

From-SVN: r186959
2012-04-30 08:11:57 +00:00
GCC Administrator 17f605a1a0 Daily bump.
From-SVN: r186951
2012-04-30 00:18:16 +00:00
GCC Administrator ff00066ff4 Daily bump.
From-SVN: r186937
2012-04-29 00:18:26 +00:00
Aurelien Jarno 7280ab73e3 config.host (mips64*-*-linux*, [...]): Remove.
libgcc/
2012-04-28  Aurelien Jarno  <aurelien@aurel32.net>

	* config.host (mips64*-*-linux*, mipsisa64*-*-linux*): Remove. 
	(mips*-*-linux*): Include mips/t-tpbit when long double is 
	16 bytes long.

From-SVN: r186932
2012-04-28 08:07:03 +00:00
Ian Lance Taylor 59b88248de compiler: Fix some crashes on invalid code.
Fixes issue 7.

From-SVN: r186930
2012-04-28 04:57:11 +00:00
Ian Lance Taylor fc3db4a62c compiler: Use less memory for array/slice literals.
Fixes issue 8 in gofrontend issues list.

From-SVN: r186927
2012-04-28 00:29:34 +00:00
GCC Administrator 35fd67c388 Daily bump.
From-SVN: r186924
2012-04-28 00:18:00 +00:00
Ian Lance Taylor 0c3ba794be re PR go/52358 (math FAILs on Solaris 8 and 9)
PR go/52358
configure, runtime: Provide i386 long double math functions if needed.

From-SVN: r186916
2012-04-27 16:38:31 +00:00
Ian Lance Taylor 37db0ae2e7 re PR go/52358 (math FAILs on Solaris 8 and 9)
PR go/52358
math: Work around bug in Solaris 9 implementation of ldexp.

The bug is that ldexp(-1, -1075) should return -0, but the
Solaris 9 implementation returns +0.

From-SVN: r186914
2012-04-27 16:33:01 +00:00
Ian Lance Taylor 7b6a3460b3 runtime: Correct syscall.Setenv for systems that don't have setenv.
From-SVN: r186912
2012-04-27 16:28:43 +00:00
Georg-Johann Lay f364750d77 fix typo
From-SVN: r186900
2012-04-27 11:00:44 +00:00
Richard Guenther ae9bade9b6 re PR c/51527 (ICE: Segmentation fault: 'convert_to_integer' enters infinite recursion)
PR c/51527
	* convert.c (convert_to_integer): Avoid infinte recursion for
	target-defined built-in types.

From-SVN: r186899
2012-04-27 10:51:58 +00:00
GCC Administrator cefa345f9f Daily bump.
From-SVN: r186891
2012-04-27 00:17:48 +00:00
Ian Lance Taylor 525274658d mksysinfo, net: Always define syscall.SO_REUSEPORT.
From-SVN: r186858
2012-04-26 04:26:17 +00:00
GCC Administrator b198792be4 Daily bump.
From-SVN: r186853
2012-04-26 00:18:05 +00:00
Hans-Peter Nilsson c4557ab535 re PR target/53120 (ICE exposing strict_low_part / in/out operand thinko -fno-tree-sra)
PR target/53120
	* gcc.dg/torture/pr53120.c: New test.

From-SVN: r186849
2012-04-25 23:24:48 +00:00
Hans-Peter Nilsson 2886eff6d7 re PR target/53120 (ICE exposing strict_low_part / in/out operand thinko -fno-tree-sra)
PR target/53120
	* config/cris/cris.md ("*andhi_lowpart_v32")
	("*andqi_lowpart_v32"): Change first input-only operand from
	a (match_operand ...) to (match_dup 0).  Drop alternatives with
	const_int-matching constraints for redundancy.
	("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
	three-operand alternative.

From-SVN: r186848
2012-04-25 23:23:34 +00:00
Uros Bizjak 6059a17750 backport: i386.md (*add<mode>_2): Add r/r/0 alternative.
Backport from mainline
	2012-04-23  Uros Bizjak  <ubizjak@gmail.com>

	* config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
	(*addsi_2_zext): Ditto.
	(*add<mode>_3): Ditto.
	(*addsi_3_zext): Ditto.
	(*add<mode>_5): Ditto.

From-SVN: r186842
2012-04-26 00:10:17 +02:00
Jonathan Wakely ffd3a92080 scoped_allocator (scoped_allocator::__outermost): Do not pass non-POD to varargs function.
* include/std/scoped_allocator (scoped_allocator::__outermost): Do
	not pass non-POD to varargs function.
	* testsuite/20_util/scoped_allocator/1.cc: Fix test.

From-SVN: r186841
2012-04-25 22:53:20 +01:00
Andrew Haley 6bdb694e7d defineclass.cc (MAJOR_1_7, MINOR_1_7): New.
2012-04-23  Andrew Haley  <aph@redhat.com>

	* defineclass.cc (MAJOR_1_7,  MINOR_1_7): New.
	(parse): Allow MAJOR_1_7 classfile version.

From-SVN: r186810
2012-04-25 10:18:38 +00:00
Jakub Jelinek 9a7ac8f881 re PR c/52880 (-Woverride-init emitts unexpected error)
PR c/52880
	* c-typeck.c (set_nonincremental_init,
	set_nonincremental_init_from_string): Pass true instead of false
	as IMPLICIT to add_pending_init.

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

From-SVN: r186809
2012-04-25 11:18:49 +02:00
Ian Lance Taylor 3fef1872df re PR go/52341 (crypto/rand FAILs before Solaris 11)
PR go/52341

crypto/rand: Use io.ReadFull when reading from /dev/urandom.

From-SVN: r186804
2012-04-25 04:41:13 +00:00
Ian Lance Taylor 8d717866ff re PR go/52583 (Several new go testsuite failues on Solaris)
PR go/52583

net: Solaris fixes.

In particular fix fd_select.go to handle the case where a file
descriptor is closed by one goroutine while another goroutine
is waiting for it.

From-SVN: r186802
2012-04-25 04:26:31 +00:00
GCC Administrator d507b89568 Daily bump.
From-SVN: r186792
2012-04-25 00:17:41 +00:00
Joseph Myers f99405eb79 * vi.po: Update.
From-SVN: r186787
2012-04-24 23:16:46 +01:00
Joseph Myers 3c268d18a3 * sv.po: Update.
From-SVN: r186785
2012-04-24 23:15:15 +01:00
Ian Lance Taylor 0bfbc79f4d gotest: Remove race in use of ../testdata.
From-SVN: r186782
2012-04-24 20:13:22 +00:00
Ian Lance Taylor 902e4d85a2 mksysinfo: Only define PathMax if PATH_MAX is defined.
From-SVN: r186779
2012-04-24 19:12:38 +00:00
Georg-Johann Lay 5b301b6fb1 re PR testsuite/52641 (Test cases fail for 16-bit int targets)
PR testsuite/52641
	PR tree-optimizations/52891
	* gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int.

From-SVN: r186775
2012-04-24 17:08:20 +00:00
Ian Lance Taylor e47f4b7094 compiler: Fix order of evalation for m[0] = len(m) when m is a map.
From-SVN: r186773
2012-04-24 16:25:06 +00:00
Georg-Johann Lay 6c78ceb0ed backport: re PR target/53065 (ICE replace_reg_with_saved_mem, at caller-save.c:1125)
Backport from 2012-04-24 mainline r186768.
	PR target/53065
	* config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.

From-SVN: r186770
2012-04-24 15:23:46 +00:00
Ian Lance Taylor dad9d0ce3d compiler: Reject invalid composite literals.
From-SVN: r186767
2012-04-24 14:54:32 +00:00
Richard Guenther 10632cb2bf re PR tree-optimization/53085 (writes to volatile struct members is missing)
2012-04-24  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/53085
	* tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
	stores.

	* g++.dg/torture/pr53085.C: New testcase.

From-SVN: r186765
2012-04-24 14:42:53 +00:00
Jakub Jelinek a2e8e5e32d re PR middle-end/53084 (GCC cannot handle array initialization of string constant with point arithmetic properly)
PR middle-end/53084
	* varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR
	of MEM_REF.
	(output_addressed_constants): Likewise.

	* gcc.c-torture/execute/pr53084.c: New test.

From-SVN: r186745
2012-04-24 08:10:53 +02:00
Jakub Jelinek 2c2c513a9a re PR target/52999 (ICE, segmentation fault in c_tree_printer)
PR middle-end/52999
	* varasm.c (get_section): Don't ICE for section conflicts with
	built-in section kinds.

From-SVN: r186743
2012-04-24 08:08:55 +02:00
Ian Lance Taylor 74da3af93b compiler: Error for invalid use of ... in call.
From-SVN: r186740
2012-04-24 05:55:42 +00:00
GCC Administrator 4f1d21b511 Daily bump.
From-SVN: r186733
2012-04-24 00:17:41 +00:00
Ian Lance Taylor 0edbb8b3ae go-lang.c (go_langhook_init): Set MPFR precision to 256.
* go-lang.c (go_langhook_init): Set MPFR precision to 256.

time: Adjust float expression so that it first integer context.

From-SVN: r186728
2012-04-23 21:39:25 +00:00
Ian Lance Taylor b1745377f4 compiler: Correct handling of negative zero floating constant.
From-SVN: r186723
2012-04-23 20:49:47 +00:00
David Edelsohn 40dd2f8b90 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
From-SVN: r186717
2012-04-23 13:12:55 -04:00
Ian Lance Taylor 92b9165654 libgo: Make sure log/syslog subdirectory exists before using it.
From-SVN: r186716
2012-04-23 17:03:11 +00:00
Chris Jefferson ce5742fd0e re PR testsuite/53046 (New libstdc++ test failures)
2012-04-23  Chris Jefferson  <chris@bubblescope.net>

	PR testsuite/53046
	* testsuite/25_algorithms/stable_partition/mem_check.cc: Fix size
	of array A.
	* testsuite/25_algorithms/stable_sort/mem_check.cc: Likewise.

From-SVN: r186713
2012-04-23 15:24:44 +00:00
Georg-Johann Lay 495f8a0d34 extend.texi (AVR Named Address Spaces): Fix typos.
* doc/extend.texi (AVR Named Address Spaces): Fix typos.

From-SVN: r186699
2012-04-23 10:25:52 +00:00
Richard Guenther 0506b92953 re PR c/53060 (Typo in build_binary_op for scalar-vector ops)
2012-04-23  Richard Guenther  <rguenther@suse.de>

	PR c/53060
	* c-typeck.c (build_binary_op): Fix typo.

	* gcc.dg/pr53060.c: New testcase.

From-SVN: r186698
2012-04-23 10:24:14 +00:00
Jakub Jelinek 12839a6ab2 re PR tree-optimization/52891 (ICE in adjust_bool_pattern)
PR tree-optimizations/52891
	* tree-vect-patterns.c (adjust_bool_pattern): Use
	build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
	but with non-standard precision.

	* gcc.c-torture/compile/pr52891-1.c: New test.	
	* gcc.c-torture/compile/pr52891-2.c: New test.

From-SVN: r186695
2012-04-23 12:16:57 +02:00
GCC Administrator 338fa79d10 Daily bump.
From-SVN: r186691
2012-04-23 00:17:45 +00:00
Ian Lance Taylor af99207ee8 mksysinfo: More fixes to emulate master Go library.
From-SVN: r186686
2012-04-22 20:07:35 +00:00
Ian Lance Taylor 7f25d15435 mksysinfo: Define more structs.
From-SVN: r186684
2012-04-22 19:26:15 +00:00
Ian Lance Taylor 36a910efa3 godump.c (go_output_typedef): Dump size of structs.
* godump.c (go_output_typedef): Dump size of structs.

mksysinfo, syscall: Change Sizeof names from var to const.

From-SVN: r186679
2012-04-22 18:53:47 +00:00
Paolo Carlini 2552e8dcc0 re PR c++/53067 (c++0x GCC 4.7.0 Regression std::ref with unordered sets)
2012-04-22  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/53067
	* include/bits/hashtable_policy.h: Change inheritances to public.
	* testsuite/23_containers/unordered_map/requirements/53067.cc: New.
	* testsuite/23_containers/unordered_set/requirements/53067.cc: Likewise.

From-SVN: r186677
2012-04-22 17:38:11 +00:00
Jonathan Wakely da5843b42b re PR libstdc++/53027 (pointer_traits<>::rebind is private)
PR libstdc++/53027
	* include/bits/ptr_traits.h (pointer_traits::rebind): Make public.
	* testsuite/20_util/pointer_traits/requirements/typedefs.cc: Check
	rebind works.

From-SVN: r186671
2012-04-22 15:14:15 +01:00
GCC Administrator 95debf8490 Daily bump.
From-SVN: r186661
2012-04-22 00:18:09 +00:00
Ian Lance Taylor ea13524ea4 syscall: Additional constants, some type corrections.
From-SVN: r186656
2012-04-21 18:50:13 +00:00
Alan Modra 9351f98fe5 re PR libstdc++/52839 (double free or corruption running tr1/.../default_weaktoshared.exe)
PR libstdc++/52839
missed from last delta

From-SVN: r186651
2012-04-21 22:58:53 +09:30
Alan Modra df268c74a1 re PR libstdc++/52839 (double free or corruption running tr1/.../default_weaktoshared.exe)
PR libstdc++/52839
	* acinclude.m4 (_GLIBCXX_ATOMIC_BUILTINS): Do not depend on
	glibcxx_cv_atomic_long_long.
	* configure: Regenerate.

From-SVN: r186650
2012-04-21 22:57:44 +09:30
GCC Administrator e1a213a04c Daily bump.
From-SVN: r186648
2012-04-21 00:18:30 +00:00
Ian Lance Taylor 43880ab909 go-test.exp (go-set-goarch): Recognize powerpc*-*-*.
* go.test/go-test.exp (go-set-goarch): Recognize powerpc*-*-*.
	(go-gc-tests): Skip nilptr.go on powerpc*-*-*.

From-SVN: r186643
2012-04-20 20:19:16 +00:00
Ian Lance Taylor d17c1ea623 net, syscall: Use native endianness for GNU/Linux netlink code.
From-SVN: r186641
2012-04-20 20:11:45 +00:00
Ian Lance Taylor 45cc7e5e00 compiler, runtime: Add explicit checks for zero and overflow division.
* lang.opt: Add -fgo-check-divide-zero and
	-fgo-check-divide-overflow.
	* gccgo.texi (Invoking gccgo): Document new options.

From-SVN: r186638
2012-04-20 19:22:40 +00:00
Ian Lance Taylor 48baa71a63 net/http: Ignore sigaltstack when running strace in test.
Avoids bug in strace 4.5.20 on powerpc-unknown-linux-gnu.

From-SVN: r186636
2012-04-20 18:51:53 +00:00
Ian Lance Taylor efe8453a27 debug/dwarf: Fix address lookups for different types of lines.
This fixes the lookup when, e.g., discriminators force adding
new line arrays.

From-SVN: r186634
2012-04-20 18:44:26 +00:00
Ian Lance Taylor 500c188b23 runtime: Disable memory profiling in gc_test.
From-SVN: r186632
2012-04-20 18:40:29 +00:00
Ulrich Weigand a21b0e9956 arm.c (arm_print_operand): Fix invalid alignment hints for 'A' operand types.
* config/arm/arm.c (arm_print_operand): Fix invalid alignment
	hints for 'A' operand types.

From-SVN: r186630
2012-04-20 16:53:57 +00:00
Thomas Schwinge 51b53ebe14 struct siginfo vs. siginfo_t
Backport from trunk:

libgcc/
	2012-04-20  Thomas Schwinge  <thomas@codesourcery.com>

	* config/alpha/linux-unwind.h (alpha_fallback_frame_state): Use
	siginfo_t instead of struct siginfo.
	* config/bfin/linux-unwind.h (bfin_fallback_frame_state): Likewise.
	* config/i386/linux-unwind.h (x86_fallback_frame_state): Likewise.
	* config/ia64/linux-unwind.h (ia64_fallback_frame_state)
	(ia64_handle_unwabi): Likewise.
	* config/mips/linux-unwind.h (mips_fallback_frame_state): Likewise.
	* config/pa/linux-unwind.h (pa32_fallback_frame_state): Likewise.
	* config/sh/linux-unwind.h (shmedia_fallback_frame_state)
	(sh_fallback_frame_state): Likewise.
	* config/tilepro/linux-unwind.h (tile_fallback_frame_state): Likewise.
	* config/xtensa/linux-unwind.h (xtensa_fallback_frame_state): Likewise.

From-SVN: r186611
2012-04-20 09:51:30 +02:00
Ian Lance Taylor 5d466be78a runtime: Ignore stack sizes when deciding when to GC.
Also allocate heap bitmaps bit in page size units and clear
context when putting G structures on free list.

From-SVN: r186608
2012-04-20 04:58:41 +00:00
Ian Lance Taylor 2798d86674 gotest: Don't get confused by data tables named Test on PPC.
From-SVN: r186606
2012-04-20 04:49:37 +00:00
GCC Administrator 4277a54a22 Daily bump.
From-SVN: r186603
2012-04-20 00:19:09 +00:00
Georg-Johann Lay 278e1b6634 backport: re PR target/53033 ([avr]: Wrong register number for 3-byte loads via X)
Backport from 2012-04-19 mainline r186588.
	PR target/53033
	* config/avr/avr.c (avr_out_load_psi): Fix assembler template for
	the case *(X+const).

From-SVN: r186589
2012-04-19 11:33:01 +00:00
GCC Administrator 3ac8d6cd10 Daily bump.
From-SVN: r186583
2012-04-19 00:18:19 +00:00
Uros Bizjak 90c39b7851 sync.md (fetchop_name): Change ior attribute to "or".
* config/alpha/sync.md (fetchop_name): Change ior attribute to "or".

From-SVN: r186573
2012-04-18 17:08:55 +02:00
GCC Administrator ec788f45d7 Daily bump.
From-SVN: r186556
2012-04-18 00:18:48 +00:00
Paolo Carlini 2b874a6b85 re PR c++/53003 (Internal compiler error on short testcase)
/cp
2012-04-17  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53003
	* parser.c (cp_parser_member_declaration): Check that
	initializer_token_start is non null before dereferencing it.

/testsuite
2012-04-17  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53003
	* g++.dg/parse/crash59.C: New.

From-SVN: r186544
2012-04-17 17:45:25 +00:00
Uros Bizjak 8eadf4cf06 re PR target/53020 (__atomic_fetch_or doesn't generate `1 insn` variant)
PR target/53020
	* config/i386/sync.md (atomic_<code><mode>): Rename to
	atomic_<logic><mode>.

From-SVN: r186543
2012-04-17 19:39:06 +02:00
Jason Merrill 60759aaa63 re PR c++/38543 ([C++0x] Cannot specialize variadic template function)
PR c++/38543
	* pt.c (determine_specialization): Instead of comparing the number
	of parms, check that tsubst gives the right answer.

From-SVN: r186533
2012-04-17 10:11:34 -04:00
Jason Merrill 71b17ff5fc re PR c++/50830 ([c++0x] Variadic template, inner class error)
PR c++/50830
	* pt.c (convert_template_argument): Handle template template
	argument packs.

From-SVN: r186532
2012-04-17 10:11:13 -04:00
Jason Merrill 5a1b0c4398 re PR c++/50303 ([C++0x] Segfault with variadic template template parameters)
PR c++/50303
	* pt.c (tsubst_pack_expansion): Use tsubst_expr for template
	template parameters.

From-SVN: r186531
2012-04-17 10:10:54 -04:00
Benjamin Kosnik 2a268189e1 [multiple changes]
2012-04-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	PR bootstrap/52840
	* src/Makefile.am (build-debug): Do not adjust vpath dir, remove
	Makefile.tmp
	* src/Makefile.in: Adjust as per above.

2012-04-16  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/52689
	* libsupc++/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
	* libsupc++/Makefile.in: Regenerated.
	* src/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
	(libstdc___la_SOURCES): Add in compatiblity files, with content
	that varies with -DPIC.
	* src/Makefile.in: Regenerated.
	* src/c++11/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
	* src/c++11/Makefile.in: Regenerated.
	* src/c++11/compatibility-atomic-c++0x.cc: Guard with PIC.
	* src/c++11/compatibility-c++0x.cc: Same.
	* src/c++11/future.cc: Consolidate compatibility bits into..
	* src/c++11/mutex.cc: Consolidate compatibility bits into..
	* src/c++11/compatibility-thread-cxx0x.cc: ...here. New.
	* src/c++98/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
	* src/c++98/Makefile.in: Regenerated.
	* src/c++98/compatibility-list-2.cc: Guard with PIC.
	* src/c++98/compatibility.cc: Tweak comments.

From-SVN: r186517
2012-04-17 00:19:12 +00:00
GCC Administrator aaec481e94 Daily bump.
From-SVN: r186515
2012-04-17 00:17:43 +00:00
Ian Lance Taylor 1ec534534c compiler: fix infinite recursion in string constant evaluation.
Fixes compilation of incorrect code:
    const f, g = g, f
    func S() []byte { return []byte(f) }

The problem was already handled for numerical constants.

Part of issue 3186 (go).

From-SVN: r186512
2012-04-16 23:06:08 +00:00
Benjamin Kosnik 05126a8f77 constructors_destructor_fn_imps.hpp: Increment after recursion.
2012-04-16  Benjamin Kosnik  <bkoz@redhat.com>

	    * include/ext/pb_ds/detail/pat_trie_/
	    constructors_destructor_fn_imps.hpp: Increment after recursion.
	    * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Convert
	    node_type markup from brief.

From-SVN: r186510
2012-04-16 22:43:10 +00:00
Uros Bizjak 95c275d99b backport: re PR target/52932 (AVX2 intrinsic _mm256_permutevar8x32_ps has wrong parameter type)
2012-04-16  Uros Bizjak  <ubizjak@gmail.com>

	Backport from mainline
	2012-04-12  Uros Bizjak  <ubizjak@gmail.com>

	PR target/52932
	* config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
	argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
	* config/i386/sse.md (avx2_permvarv8sf): Change operand 1 to V8SI.
	(avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
	* config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
	Update builtin type to V8SF_FTYPE_V8SF_V8SI.
	(ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
	gen_avx2_permvarv8sf.

testsuite/ChangeLog:

2012-04-16  Uros Bizjak  <ubizjak@gmail.com>

	Backport from mainline
	2012-04-12  Uros Bizjak  <ubizjak@gmail.com>

	PR target/52932
	* gcc.target/i386/avx2-vpermps-1.c (avx2_test): Use __m256i type for
	second function argument.
	* gcc.target/i386/avx2-vpermps-2.c (init_permps): Update declaration.
	(calc_permps): Update declaration.  Calculate result correctly.
	(avx2_test): Change src2 type to union256i_d.
	* gcc.target/i386/avx2-vpermd-2.c (calc_permd): Calculate result
	correctly.

From-SVN: r186500
2012-04-16 18:03:51 +02:00
Martin Jambor a5a5cf332c re PR middle-end/52939 (ice in gimple_get_virt_method_for_binfo with -O3)
2012-04-16  Martin Jambor  <mjambor@suse.cz>

	PR middle-end/52939
	* gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
	fold_ctor_reference returns a zero constant.

	* testsuite/g++.dg/ipa/pr52939.C: New test.

From-SVN: r186489
2012-04-16 12:02:04 +02:00
Jason Merrill 3dc2385227 re PR c++/52292 ([C++11] Variadic template expansion into fixed template causes constructor to not match)
PR c++/52292
	PR c++/52380
	* pt.c (coerce_template_parms): Even if we aren't converting we
	want to expand argument packs.

From-SVN: r186481
2012-04-15 23:40:34 -04:00
GCC Administrator 1c2221a8be Daily bump.
From-SVN: r186477
2012-04-16 00:18:11 +00:00
Fabien Chêne 4ed4833744 re PR c++/52465 (g++ rejects valid code with in-class using declaration)
2012-04-15  Fabien Chêne  <fabien@gcc.gnu.org>

    PR c++/52465
    * g++.dg/lookup/using52.C: New.

gcc/cp/ChangeLog

2012-04-15  Fabien Chêne  <fabien@gcc.gnu.org>

    PR c++/52465
    * parser.c (cp_parser_class_name): Call strip_using_decl and
    return the target decl.
    * name-lookup.c (strip_using_decl): Returns NULL_TREE if the decl
    to be stripped is NULL_TREE.
    (qualify_lookup): Call strip_using_decl and perform some checks on
    the target decl.

From-SVN: r186473
2012-04-15 22:22:44 +02:00
Paolo Carlini 882eae6250 re PR libstdc++/52699 (infinite loop generated with -O0)
2012-04-14  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/52699
	* include/bits/random.tcc (independent_bits_engine<>::operator()())
	Avoid various overflows; use common_type on result_type and
	_RandomNumberEngine::result_type; avoid floating point computations;
	other smaller tweaks.

	* include/bits/random.tcc (uniform_int_distribution<>::operator())
	Use common_type; assume _UniformRandomNumberGenerator::result_type
	unsigned; tidy.

	* include/bits/stl_algobase.h (__lg(unsigned), __lg(unsigned long),
	__lg(unsigned long long)): Add.

From-SVN: r186461
2012-04-15 02:14:39 +00:00
GCC Administrator 1e34caea67 Daily bump.
From-SVN: r186459
2012-04-15 00:18:03 +00:00
GCC Administrator 4e5c1b7632 Daily bump.
From-SVN: r186443
2012-04-14 00:20:03 +00:00
Jason Merrill b92a6edaf9 re PR c++/52824 ([C++11] expanding variadic template arguments into non-variadic template)
PR c++/52824
	* pt.c (any_pack_expanson_args_p): New.
	(coerce_template_parms): Use it.

From-SVN: r186436
2012-04-13 15:44:27 -04:00
Jason Merrill c7b071838f re PR c++/52906 (ICE: SIGSEGV in check_tag_decl (decl.c:4230) with "__attribute__ ((__deprecated__));" alone)
PR c++/52906
	* decl.c (check_tag_decl): Don't complain about attributes if we
	don't even have a type.

From-SVN: r186435
2012-04-13 15:44:15 -04:00
H.J. Lu c7dbd7af46 Define _ILP32 and __ILP32__ for x32
Backported from mainline
	* config/i386/i386-c.c (ix86_target_macros): Define _ILP32
	and __ILP32__ for x32.

From-SVN: r186430
2012-04-13 11:22:54 -07:00
Tom de Vries 4e7776b3a0 backport: pr52734.c: New test.
2012-04-13  Tom de Vries  <tom@codesourcery.com>

	Backport from mainline r186419.

	2012-04-13  Tom de Vries  <tom@codesourcery.com>

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

From-SVN: r186425
2012-04-13 16:45:16 +00:00
Tom de Vries bdddd97382 backport: tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add parameters vuse and vuse_escaped.
2012-04-13  Tom de Vries  <tom@codesourcery.com>

	Backport from mainline r186418.

	2012-04-13  Tom de Vries  <tom@codesourcery.com>

	* tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
	parameters vuse and vuse_escaped.
	(find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
	gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
	vuse1 != vuse2.

From-SVN: r186424
2012-04-13 16:44:18 +00:00
Richard Guenther afc6442f05 re PR tree-optimization/52969 (ICE in in get_expr_operands, at tree-ssa-operands.c:1035 with -ftree-loop-if-convert-stores)
2012-04-13  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52969
	* tree-if-conv.c (predicate_mem_writes): Properly gimplify
	the condition for the COND_EXPR and handle predicate negation
	by swapping the COND_EXPR arms.

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

From-SVN: r186417
2012-04-13 12:27:02 +00:00
Paolo Carlini b74fee8a8c safe_iterator.h (_BeforeBeginHelper<>:: _S_Is_Beginnest): Add.
2012-04-13  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/debug/safe_iterator.h (_BeforeBeginHelper<>::
	_S_Is_Beginnest): Add.
	* include/debug/forward_list (_BeforeBeginHelper<>::
	_S_Is_Beginnest): Likewise.
	(_Safe_iterator<>::_M_is_beginnest): Add.
	* include/debug/safe_iterator.tcc (_Safe_iterator<>::_M_valid_range):
	Use the latter.
	* testsuite/23_containers/forward_list/debug/splice_after.cc:
	Add test.

From-SVN: r186412
2012-04-13 10:49:16 +00:00
Richard Guenther 847aaebda0 re PR c/52862 (ICE convert_to_pointer, at convert.c:50)
2012-04-13  Richard Guenther  <rguenther@suse.de>

	PR c/52862
	* convert.c (convert_to_pointer): Remove special-casing of
	zero.

	* gcc.dg/pr52862.c: New testcase.

From-SVN: r186409
2012-04-13 09:26:45 +00:00
Paolo Carlini dfa6222b38 forward_list.h (splice_after(const_iterator, forward_list&), [...]): Add per C++11 as published (and LWG 1310).
2012-04-12  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/forward_list.h (splice_after(const_iterator,
	forward_list&), splice_after(const_iterator, forward_list&,
	consst_iterator), splice_after(const_iterator, forward_list&,
	const_iterator, const_iterator), merge(forward_list&),
	merge(forward_list&, _Comp)): Add per C++11 as published (and
	LWG 1310).
	* include/debug/forward_list: Adjust.

	* include/bits/forward_list.h (splice_after(const_iterator,
	forward_list&&, const_iterator)): Only declare.
	(_M_transfer_after): Remove.
	(_M_splice_after(const_iterator, forward_list&&)): Change signature.
	(splice_after(const_iterator, forward_list&&, const_iterator,
	const_iterator)): Use the latter.
	* include/bits/forward_list.tcc (splice_after(const_iterator,
	forward_list&&, const_iterator)): Define here.
	(_M_splice_after): Define, use throughout.

	* include/bits/forward_list.h (insert_after(const_iterator,
	std::initializer_list<_Tp>)): Forward to insert_after(const_iterator,
	_InputIterator, _InputIterator).
	* include/bits/forward_list.tcc: Remove definition.

	* testsuite/23_containers/forward_list/modifiers/6.cc: New.
	* testsuite/23_containers/forward_list/operations/1.cc: Adjust.

	* testsuite/23_containers/forward_list/requirements/dr438/
	assign_neg.cc: Adjust dg-error line number.
	* testsuite/23_containers/forward_list/requirements/dr438/
	insert_neg.cc: Likewise.
	* testsuite/23_containers/forward_list/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/forward_list/requirements/dr438/
	constructor_2_neg.cc: Likewise.

From-SVN: r186404
2012-04-13 01:34:57 +00:00
GCC Administrator d1f3edecbb Daily bump.
From-SVN: r186401
2012-04-13 00:17:45 +00:00
Jeffrey Yasskin 0472e21057 Fix PR52822 (stable_partition move-assigns object to itself) by scanning for...
Fix PR52822 (stable_partition move-assigns object to itself) by
scanning for the first value that doesn't match the predicate before
starting to rearrange values.

2012-04-03   Jeffrey Yasskin  <jyasskin@google.com>

	PR libstdc++/52822
	* include/bits/stl_algo.h (__find_if_not): Expose in
	C++98 mode.
	(__find_if_not_n): Like __find_if_not, but works on and updates a
	counted range instead of a bounded range.
	(stable_partition): Guarantee !__pred(*__first) in call to
	__stable_partition_adaptive() or __inplace_stable_partition().
	(__stable_partition_adaptive): Use new precondition to avoid
	moving/copying objects onto themselves.  Guarantee new
	precondition to recursive calls.
	(__inplace_stable_partition): Use new precondition to simplify
	base case, remove __last parameter.  Guarantee new precondition to
	recursive calls.
	* testsuite/25_algorithms/stable_partition/moveable.cc (test02):
	Test a sequence that starts with a value matching the predicate.
	* testsuite/25_algorithms/stable_partition/pr52822.cc:
	Test vectors, which have a destructive self-move-assignment.

From-SVN: r186394
2012-04-12 21:41:55 +00:00
Michael Meissner a3807e4f1f backport: re PR target/52775 (Change default for using FCFID instruction)
[gcc]
2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	Backport from mainline
	2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/52775
	* config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
	the list of options to enable the FCFID instruction.
	(TARGET_EXTRA_BUILTINS): Adjust comment.

[gcc/testsuite]
012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	Backport from mainline
	2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/52775
	* gcc.target/powerpc/pr52775.c: New file.

From-SVN: r186392
2012-04-12 21:00:07 +00:00
Richard Guenther 1d64ea88d1 re PR tree-optimization/52943 (likely wrong code bug caused by predictive commoning)
2012-04-12  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52943
	* tree-chrec.h (chrec_is_positive): Remove.
	* tree-scalar-evolution.c (chrec_is_positive): Move ...
	* tree-data-ref.c (chrec_is_positive): ... here.  Make static.
	Return false for a constant zero instead of negative.
	(analyze_siv_subscript_cst_affine): Handle zero difference
	in the initial condition explicitely.

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

From-SVN: r186377
2012-04-12 12:50:22 +00:00
Paolo Carlini 6bf40f52a2 re PR libstdc++/52942 (using std::ref with a std::unordered_map fails to compile)
2012-04-12  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/52942
	* include/bits/stl_function.h (_Identity, _Select1st, _Select2nd):
	In C++11 mode do not derive from std::unary_function.
	* include/ext/functional (identity, select1st, select2nd): Adjust.
	* testsuite/23_containers/unordered_map/requirements/52942.cc: New.
	* testsuite/23_containers/unordered_set/requirements/52942.cc: Likewise.

From-SVN: r186376
2012-04-12 12:18:23 +00:00
GCC Administrator 3bab488a5a Daily bump.
From-SVN: r186370
2012-04-12 00:19:03 +00:00
Jonathan Wakely 7882a73465 re PR c++/52924 (Using an std::function object as deleter of shared_ptr in C++0x mode does not compile)
PR libstdc++/52924
	* include/bits/shared_ptr_base.h (_Sp_counted_deleter): Add
	user-defined destructor.
	(_Sp_counted_inplace): Likewise.
	* testsuite/20_util/shared_ptr/cons/52924.cc: New.
	* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error
	line numbers.

From-SVN: r186367
2012-04-12 00:13:44 +01:00
Jonathan Wakely 6cbc120965 * testsuite/performance/30_threads/future/polling.cc: Adjust.
From-SVN: r186360
2012-04-11 22:47:44 +01:00
Jonathan Wakely f8692937d0 re PR libstdc++/52591 ([C++0x] [4.7 Regression] moving std::vector relies on movable elements)
PR libstdc++/52591
	* include/bits/stl_vector.h (vector::operator=(vector&&)): Dispatch
	to _M_move_assign depending on whether allocator is moved.
	(vector::_M_move_assign): Add overloaded functions.
	* testsuite/23_containers/vector/52591.cc: New.
	* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
	Adjust dg-error line number.
	* testsuite/23_containers/vector/requirements/dr438/
        constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/
        constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
	Likewise.

From-SVN: r186359
2012-04-11 22:13:45 +01:00
GCC Administrator 47d92ca53b Daily bump.
From-SVN: r186300
2012-04-11 00:18:25 +00:00
John David Anglin bc2cd95d1d re PR middle-end/52894 (Stage1 bootstrap fails with gcc-4.6.3: Infinite loop in pointer_set_insert)
PR middle-end/52894
	* varasm.c (process_pending_assemble_externals): Set
	pending_assemble_externals_processed true.
	(assemble_external): Call assemble_external_real if the pending
	assemble externals have been processed.

From-SVN: r186296
2012-04-10 22:11:38 +00:00
Mike Stump cee20c6cfb Don't use CRLF endings.
* gcc.dg/tree-ssa/vrp59.c: Likewise.
	* gcc.dg/tree-ssa/vrp60.c: Likewise.
	* gnat.dg/aggr11.adb: Likewise.
	* gnat.dg/aggr11_pkg.ads: Likewise.
	* gnat.dg/aggr15.adb: Likewise.
	* gnat.dg/aggr15.ads: Likewise.
	* gnat.dg/aggr17.adb: Likewise.
	* gnat.dg/aggr18.adb: Likewise.
	* gnat.dg/array14.adb: Likewise.
	* gnat.dg/array14.ads: Likewise.
	* gnat.dg/array14_pkg.ads: Likewise.
	* gnat.dg/array19.adb: Likewise.
	* gnat.dg/array19.ads: Likewise.
	* gnat.dg/discr27.adb: Likewise.
	* gnat.dg/discr27.ads: Likewise.
	* gnat.dg/discr35.adb: Likewise.
	* gnat.dg/discr35.ads: Likewise.
	* gnat.dg/discr6.adb: Likewise.
	* gnat.dg/discr6_pkg.ads: Likewise.
	* gnat.dg/import1.adb: Likewise.
	* gnat.dg/import1.ads: Likewise.
	* gnat.dg/loop_address2.adb: Likewise.
	* gnat.dg/opt7.adb: Likewise.
	* gnat.dg/opt7.ads: Likewise.
	* gnat.dg/pointer_variable_bounds.adb: Likewise.
	* gnat.dg/pointer_variable_bounds.ads: Likewise.
	* gnat.dg/rep_clause2.adb: Likewise.
	* gnat.dg/rep_clause2.ads: Likewise.
	* gnat.dg/slice2.adb: Likewise.
	* gnat.dg/slice2.ads: Likewise.
	* gnat.dg/slice6.adb: Likewise.
	* gnat.dg/slice6_pkg.ads: Likewise.
	* gnat.dg/specs/unchecked_union2.ads: Likewise.
	* gnat.dg/taft_type2.adb: Likewise.
	* gnat.dg/taft_type2.ads: Likewise.
	* gnat.dg/taft_type2_pkg.ads: Likewise.
	* gnat.dg/volatile10.adb: Likewise.
	* gnat.dg/volatile10_pkg.ads: Likewise.

From-SVN: r186266
2012-04-10 08:02:53 +00:00
Mike Stump d153ad6db1 udlit-raw-op.C: Don't use CRLF endings.
* g++.dg/cpp0x/udlit-raw-op.C: Don't use CRLF endings.
	* gcc.dg/tree-ssa/vrp59.c: Likewise.
	* gcc.dg/tree-ssa/vrp60.c: Likewise.

	* gcc.dg/dll-8.c: Remove execute permissions.
	* g++.dg/ext/dllexport5.C: Likewise.

From-SVN: r186264
2012-04-10 07:03:19 +00:00
Mike Stump 4bba36033b a-assert.ads: Remove execute permission.
* a-assert.ads: Remove execute permission.
	* a-chacon.ads: Likewise.
	* a-coteio.ads: Likewise.
	* a-envvar.ads: Likewise.
	* a-exetim-mingw.ads: Likewise.
	* a-fzteio.ads: Likewise.
	* a-izteio.ads: Likewise.
	* a-lcteio.ads: Likewise.
	* a-llctio.ads: Likewise.
	* a-scteio.ads: Likewise.
	* a-suenco.ads: Likewise.
	* a-suenst.ads: Likewise.
	* a-suewst.ads: Likewise.
	* a-suezst.ads: Likewise.
	* a-tirsfi.ads: Likewise.
	* a-wichha.ads: Likewise.
	* a-zchara.ads: Likewise.
	* a-zchhan.ads: Likewise.
	* a-zchuni.ads: Likewise.
	* a-zrstfi.ads: Likewise.
	* aspects.ads: Likewise.
	* g-byorma.ads: Likewise.
	* g-decstr.ads: Likewise.
	* g-encstr.ads: Likewise.
	* g-spchge.ads: Likewise.
	* g-u3spch.ads: Likewise.
	* g-wispch.ads: Likewise.
	* g-zspche.ads: Likewise.
	* namet-sp.ads: Likewise.
	* s-os_lib.ads: Likewise.
	* s-regexp.ads: Likewise.
	* s-regpat.ads: Likewise.
	* s-string.ads: Likewise.
	* s-tasloc.ads: Likewise.
	* s-utf_32.ads: Likewise.
	* sem_aux.ads: Likewise.
	* a-assert.adb: Likewise.
	* a-chacon.adb: Likewise.
	* a-envvar.adb: Likewise.
	* a-exetim-mingw.adb: Likewise.
	* a-suenco.adb: Likewise.
	* a-suenst.adb: Likewise.
	* a-suewst.adb: Likewise.
	* a-suezst.adb: Likewise.
	* a-tirsfi.adb: Likewise.
	* a-wichha.adb: Likewise.
	* a-zchhan.adb: Likewise.
	* a-zchuni.adb: Likewise.
	* a-zrstfi.adb: Likewise.
	* aspects.adb: Likewise.
	* g-byorma.adb: Likewise.
	* g-decstr.adb: Likewise.
	* g-encstr.adb: Likewise.
	* g-spchge.adb: Likewise.
	* g-u3spch.adb: Likewise.
	* g-wispch.adb: Likewise.
	* g-zspche.adb: Likewise.
	* namet-sp.adb: Likewise.
	* s-except.adb: Likewise.
	* s-inmaop-vxworks.adb: Likewise.
	* s-os_lib.adb: Likewise.
	* s-regexp.adb: Likewise.
	* s-regpat.adb: Likewise.
	* s-string.adb: Likewise.
	* s-tasloc.adb: Likewise.
	* s-utf_32.adb: Likewise.
	* s-wchcon.adb: Likewise.
	* sem_aux.adb: Likewise.

From-SVN: r186262
2012-04-10 06:07:19 +00:00
GCC Administrator af1d3f47c7 Daily bump.
From-SVN: r186255
2012-04-10 00:18:10 +00:00
François Dumont d081c756d4 re PR libstdc++/52476 ([DR 518] Unordered multimap reorders equivalent elements)
2012-04-09  François Dumont  <fdumont@gcc.gnu.org>

	PR libstdc++/52476
	* include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Add.
	(_Hashtable<>::_M_rehash): Use the latter.
	* testsuite/23_containers/unordered_multimap/insert/52476.cc: New.
	* testsuite/23_containers/unordered_multiset/insert/52476.cc: New.

From-SVN: r186249
2012-04-09 19:12:18 +00:00
Eric Botcazou 5059bffee9 target-supports.exp (check_effective_target_sparc_v9): New.
* lib/target-supports.exp (check_effective_target_sparc_v9): New.
	(check_effective_target_sync_long_long): Add SPARC case.
	(check_effective_target_sync_long_long_runtime): Likewise.
	(check_effective_target_sync_int_long): Adjust SPARC case.
	(check_effective_target_sync_char_short): Likewise.

From-SVN: r186242
2012-04-09 09:24:22 +00:00
Eric Botcazou ed40632523 re PR target/52717 (thunk referenced in discarded section when building samba with -flto)
PR target/52717
	* config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
	the DECL generated for the special GOT helper.

From-SVN: r186238
2012-04-09 08:53:37 +00:00
Terry Guo c27fbe4b8e backport: Makefile.am (TEST_GCC_EXEC_PREFIX): New.
2012-04-09  Terry Guo  <terry.guo@arm.com>

        Backport from mainline
        2012-03-28  Terry Guo  <terry.guo@arm.com>

        * testsuite/Makefile.am (TEST_GCC_EXEC_PREFIX): New.
        * testsuite/Makefile.in: Regenerated.

From-SVN: r186236
2012-04-09 02:21:32 +00:00
GCC Administrator c986f2ad33 Daily bump.
From-SVN: r186232
2012-04-09 00:18:17 +00:00
GCC Administrator 9a75d4b7f3 Daily bump.
From-SVN: r186221
2012-04-08 00:17:59 +00:00
Joseph Myers ce5834adbd * es.po: Update.
From-SVN: r186218
2012-04-08 00:03:00 +01:00
Thomas Koenig d9aa62115b re PR fortran/52893 (Moving functions out of implied DO loops)
2012-04-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/52893
	Backport from trunk
	* frontend-passes.c:  Keep track of wether we are in an implicit
	DO loop; do not do function elimination if we are.

2012-04-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/52893
	Backport from trunk
	* gfortran.dg/function_optimize_11.f90:  New test.

From-SVN: r186215
2012-04-07 20:27:02 +00:00
Thomas Koenig 4978b39b2f re PR fortran/52668 (Incorrect unused warning for USE associating variable in common block)
2012-04-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/52668
	Backport from trunk
	* module.c:  Only mark symbols as use_only if they have been
	imported via an only list.

2012-04-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/52668
	Backport from trunk
	* gfortran.dg/use_only_6.f90: New test.

From-SVN: r186214
2012-04-07 19:58:43 +00:00
GCC Administrator a746610f01 Daily bump.
From-SVN: r186207
2012-04-07 00:18:07 +00:00
Mike Stump 5e09bc6346 re PR testsuite/50722 (FAIL: gcc.dg/pr49994-3.c (test for excess errors))
PR testsuite/50722
	* gcc.dg/pr49994-3.c: Use -w to squelch non-portable warnings.

From-SVN: r186197
2012-04-06 15:35:52 +00:00
Walter Lee 5352b027b6 Rename some internal atomic macros to have a less generic prefix.
2012-04-06  Walter Lee  <walt@tilera.com>

	Backport from mainline
	2012-03-07  Walter Lee  <walt@tilera.com>

	* config/tilepro/atomic.c: Rename "atomic_" prefix to
	"arch_atomic_".
	(atomic_xor): Rename and move definition to
	config/tilepro/atomic.h.
	(atomic_nand): Ditto.
	* config/tilepro/atomic.h: Rename "atomic_" prefix to
	"arch_atomic_".
	(arch_atomic_xor): Move from config/tilepro/atomic.c.
	(arch_atomic_nand): Ditto.

From-SVN: r186196
2012-04-06 15:13:09 +00:00
Walter Lee ebff895c9a Fix an unwinding bug for functions with dynamic stack frames.
2012-04-06  Walter Lee  <walt@tilera.com>

	Backport from mainline
	2012-03-07  Walter Lee  <walt@tilera.com>

	* config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
	REG_CFA_* notes for the stack pointer.
	(tilegx_expand_epilogue): Restore stack pointer by adjusting it by
	EH_RETURN_STACKADJ_RTX.
	* config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
	generate REG_CFA_* notes for the stack pointer.
	(tilepro_expand_epilogue): Restore stack pointer by adjusting it
	by EH_RETURN_STACKADJ_RTX.

From-SVN: r186195
2012-04-06 15:06:53 +00:00
Jason Merrill 6b8fa44f0a re PR c++/52596 ([C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153)
PR c++/52596
	* tree.c (lvalue_kind): Treat a deferred access control SCOPE_REF
	as an lvalue.

From-SVN: r186188
2012-04-06 09:26:14 -04:00
Matt Turner 1d02a30769 install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
gcc/
2012-04-04  Matt Turner  <mattst88@gmail.com>

	* doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".

From-SVN: r186180
2012-04-06 08:26:19 +00:00
Eric Botcazou 83547b3c5f ia64.c (ia64_load_pair_ok): Return 0 if the second member of the destination isn't also a FP_REGS register.
* config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
	of the destination isn't also a FP_REGS register.

From-SVN: r186178
2012-04-06 06:45:16 +00:00
GCC Administrator efc264e2da Daily bump.
From-SVN: r186173
2012-04-06 00:17:27 +00:00
GCC Administrator 9d3bd79627 Daily bump.
From-SVN: r186152
2012-04-05 00:18:04 +00:00
Ian Lance Taylor 14e3c946f5 syscall: Add more constants.
From-SVN: r186145
2012-04-04 18:50:24 +00:00
H.J. Lu 39320d6906 Use long long in gtm_jmpbuf for x86-64
2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>

	Backported from mainline
	2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>

	PR libitm/52854
	* config/x86/target.h (gtm_jmpbuf): Replace long with long long
	for x86-64.

From-SVN: r186141
2012-04-04 08:51:15 -07:00
GCC Administrator 2fbddfe689 Daily bump.
From-SVN: r186127
2012-04-04 00:17:38 +00:00
Ian Lance Taylor cc44d77c82 syscall, net: Fix GNU/Linux netlink code for big-endian systems.
From-SVN: r186124
2012-04-03 23:45:10 +00:00
Jason Merrill d828fc3819 re PR c++/52796 ([C++11] Initialization of primitive object with 0-length parameter pack fails to value-initialize)
PR c++/52796
	* pt.c (tsubst_initializer_list): A pack expansion with no elements
	means value-initialization.

From-SVN: r186121
2012-04-03 19:37:11 -04:00
Ian Lance Taylor d790186831 mksysinfo.sh: Add some more networking constants.
From-SVN: r186115
2012-04-03 19:42:40 +00:00
Ian Lance Taylor 6c1f6028ec gotest: Fix finding functions on PPC.
From-SVN: r186113
2012-04-03 18:27:20 +00:00
Richard Guenther abc8638c88 backport: re PR tree-optimization/52406 (likely wrong code bug)
2012-04-03  Richard Guenther  <rguenther@suse.de>

	Backport from mainline
	2012-03-02  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52406
	* tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
	(struct indices): Add unconstrained_base member.
	(struct dr_alias): Remove unused vops member.
	(DR_UNCONSTRAINED_BASE): New define.
	* tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
	add indices to allow their disambiguation.  Make DR_BASE_OBJECT
	be an artificial access that covers the whole indexed object,
	or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
	plain decl base-objects to their MEM_REF variant.
	(dr_may_alias_p): When the base-object of either data reference
	has unknown size use only points-to information.
	(compute_affine_dependence): Make dumps easier to read and
	more verbose.
	* tree-vect-data-ref.c (vector_alignment_reachable_p): Use
	DR_REF when looking for packed references.
	(vect_supportable_dr_alignment): Likewise.

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

From-SVN: r186108
2012-04-03 14:30:32 +00:00
Richard Guenther 794db76007 backport: re PR middle-end/52580 (171.swim performance drop on x86 – vectorization doesn’t happen anymore)
2012-04-03  Richard Guenther  <rguenther@suse.de>

	Backport from mainline
	2012-03-15  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52580
	* tree-data-ref.c (subscript_dependence_tester_1): Check
	all dimensions for non-conflicting access functions.

	* gfortran.dg/vect/pr52580.f: New testcase.

From-SVN: r186107
2012-04-03 13:05:58 +00:00
Richard Guenther d6f53b2222 Backport PRs 52493, 52678, 52701, 52754
2012-04-03  Richard Guenther  <rguenther@suse.de>

	Backport from mainline
	2012-03-06  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52493
	* tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.

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

	2012-03-23  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52678
	* tree-vectorizer.h (struct _stmt_vec_info): Add
	loop_phi_evolution_part member.
	(STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
	* tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
	STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
	* tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
	Use the cached evolution part and the PHI nodes value from
	the loop preheader edge instead of re-analyzing the evolution.

	* gfortran.dg/pr52678.f: New testcase.

	2012-03-26  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52701
	* tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
	compute and set the evolution part of PHI nodes.

	* gfortran.dg/pr52701.f90: New testcase.

	2012-03-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52754
	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
	propagate arbitrary addresses into really plain dereferences.

	* gcc.target/i386/pr52754.c: New testcase.

From-SVN: r186105
2012-04-03 11:55:24 +00:00
Jakub Jelinek f5acdedf58 re PR middle-end/52835 (-O3 wrongly optimizes loop __builtin_memcpy away)
PR tree-optimization/52835
	* tree-data-ref.c (build_rdg): Return NULL if
	compute_data_dependences_for_loop failed.

	* gfortran.dg/pr52835.f90: New test.

From-SVN: r186103
2012-04-03 11:05:00 +02:00
GCC Administrator 7a2e5bc65d Daily bump.
From-SVN: r186096
2012-04-03 00:17:01 +00:00
H.J. Lu f2a2248468 Update x32 rt_sigreturn syscall number to 0x40000201
2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>

	Backported from mainline
	2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/linux-unwind.h (RT_SIGRETURN_SYSCALL): Update x32
	system call number.

From-SVN: r186089
2012-04-02 10:03:52 -07:00
GCC Administrator 4b5df6cf99 Daily bump.
From-SVN: r186061
2012-04-02 00:17:10 +00:00
GCC Administrator d0b7675f0a Daily bump.
From-SVN: r186053
2012-04-01 00:18:05 +00:00
Eric Botcazou 5ba8f12164 tree-cfg.c (call_can_make_abnormal_goto): New predicate.
* tree-cfg.c (call_can_make_abnormal_goto): New predicate.
	(stmt_can_make_abnormal_goto): Use it.
	(is_ctrl_altering_stmt): Likewise.

From-SVN: r186048
2012-03-31 17:25:10 +00:00
Eric Botcazou d2aabfb127 unwind-ia64.c (uw_install_context): Manually save LC if it hasn't been previously saved.
* config/ia64/unwind-ia64.c (uw_install_context): Manually save LC
	if it hasn't been previously saved.

From-SVN: r186046
2012-03-31 16:24:24 +00:00
Eric Botcazou d71308302b Revert
2012-03-25  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (SS_MARK_NAME): New define.
	(gnat_to_gnu_entity) <E_Function>: Prepend leaf attribute on entities
	whose name is SS_MARK_NAME.

From-SVN: r186039
2012-03-31 08:27:52 +00:00
Martin Jambor c79b029ebf tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there is a builtin_stack_save in a dominating BB.
2012-03-31  Martin Jambor  <mjambor@suse.cz>

	* tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
	is a builtin_stack_save in a dominating BB.

From-SVN: r186037
2012-03-31 09:11:18 +02:00
Jeffrey Yasskin c61f32f80d re PR libstdc++/52799 (deque::emplace(iterator, ...) tries to call push_front(...), which doesn't exist)
2012-03-30  Jeffrey Yasskin  <jyasskin@gcc.gnu.org>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/52799
	* include/bits/deque.tcc (emplace): Fix thinko, replace push_front
	-> emplace_front, and likewise for *_back.
	* testsuite/23_containers/deque/modifiers/emplace/52799.cc: New.
	* testsuite/23_containers/list/modifiers/emplace/52799.cc: Likewise.
	* testsuite/23_containers/vector/modifiers/emplace/52799.cc: Likewise.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r186036
2012-03-31 01:57:14 +00:00
GCC Administrator 164c297d27 Daily bump.
From-SVN: r186033
2012-03-31 00:19:07 +00:00
Ian Lance Taylor b5a7c91b3b libgo: Update to weekly.2012-03-27 aka go1 release.
From-SVN: r186030
2012-03-30 22:37:03 +00:00
Ian Lance Taylor 9af958f4cd File removed in weekly.2012-03-22 release.
From-SVN: r186027
2012-03-30 22:14:03 +00:00
Ian Lance Taylor e1cb530744 libgo: Update to weekly.2012-03-22.
From-SVN: r186025
2012-03-30 22:09:40 +00:00
Ian Lance Taylor 0d8c82fe4c libgo: Update to weekly.2012-03-13.
From-SVN: r186022
2012-03-30 21:26:46 +00:00
Ian Lance Taylor 71c1575471 syscall: Convert errno to error after Exitsyscall.
From-SVN: r186021
2012-03-30 21:10:47 +00:00
Uros Bizjak 440cbda9e6 re PR libfortran/52758 (libgfortran/intrinsics/chmod.c: Array index out of bounds)
PR libgfortran/52758
	* intrinsics/chmod.c (chmod_func): Remove out-of-bounds
	initialization of rwxXstugo.

From-SVN: r186014
2012-03-30 17:37:51 +02:00
Ian Lance Taylor 64bf41072e compiler: Fix order of evaluation of struct composite literals.
From-SVN: r185991
2012-03-30 04:59:17 +00:00
Meador Inge 1a59ca6699 re PR c++/52672 (internal compiler error: in cxx_eval_indirect_ref, at cp/semantics.c:6766)
PR c++/52672
	* gcc/cp/semantics.c (cxx_fold_indirect_ref): Don't attempt to fold
	stripped child trees that are not pointer types.

From-SVN: r185989
2012-03-29 23:48:12 -04:00
GCC Administrator fa2d39ae13 Daily bump.
From-SVN: r185987
2012-03-30 00:18:05 +00:00
Paolo Carlini 73dbd1bcbc re PR c++/52718 (-Wzero-as-null-pointer-constant: misleading location for 0 as default argument)
/cp
2012-03-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52718
	* decl.c (check_default_argument): With -Wzero-as-null-pointer-constant
	warn for a zero as null pointer constant default argument.

/testsuite
2012-03-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52718
	* g++.dg/warn/Wzero-as-null-pointer-constant-5.C: New.

From-SVN: r185984
2012-03-29 23:21:02 +00:00
Uros Bizjak aa9488f6c3 sse.md (avx_h<plusminus_insn>v4df3): Fix results crossing 128bit lane boundary.
* config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
	crossing 128bit lane boundary.

From-SVN: r185979
2012-03-30 00:07:09 +02:00
Uros Bizjak d9b7123a02 backport: re PR target/52698 (-maddress-mode=long doesn't work)
Backported from mainline
	2012-03-27  Uros Bizjak  <ubizjak@gmail.com>

	PR target/52698
	* config/i386/i386-protos.h (ix86_legitimize_reload_address):
	New prototype.
	* config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
	* config/i386/i386.c: Include reload.h.
	(ix86_legitimize_reload_address): New function.

From-SVN: r185972
2012-03-29 21:16:34 +02:00
Jason Merrill 36940623d0 re PR c++/52685 (ICE in copy_binfo)
PR c++/52685
	* tree.c (copy_binfo): Handle BINFO_DEPENDENT_BASE_P.

From-SVN: r185969
2012-03-29 11:55:42 -04:00
Jakub Jelinek b13021b581 re PR c++/52759 (ICE in cp/mangle.c)
PR c++/52759
	* decl.c (start_decl): Don't call maybe_apply_pragma_weak
	if processing_template_decl.

	* g++.dg/ext/weak4.C: New test.

From-SVN: r185967
2012-03-29 17:05:42 +02:00
Jason Merrill ac5c443fe5 re PR c++/52743 (g++-4.7.0 seg faults on overload functions.)
PR c++/52743
	* call.c (compare_ics): Handle ck_aggr like ck_list.

From-SVN: r185964
2012-03-29 10:45:09 -04:00
Jason Merrill 664359178e re PR c++/52746 (Explicit virtual destructor call replaced by direct call in template function)
PR c++/52746
	* typeck.c (lookup_destructor): Clear BASELINK_QUALIFIED_P if
	we didn't get an explicit scope.
	* pt.c (tsubst_baselink): Likewise.

From-SVN: r185961
2012-03-29 09:20:18 -04:00
Ian Lance Taylor 4141dd56b5 compiler, libgo: unsafe.{Sizeof,Alignof,Offsetof} return uintptr.
From-SVN: r185947
2012-03-29 03:53:30 +00:00
GCC Administrator 9979a2b7cf Daily bump.
From-SVN: r185942
2012-03-29 00:18:46 +00:00
Ian Lance Taylor bc6b767a63 mksysinfo: Fix use of _in6_addr in _zone_net_addr_t.
From Rainer Orth.

From-SVN: r185939
2012-03-28 23:19:22 +00:00
Ian Lance Taylor 24f609f690 compiler: fix null-dereference on invalid len() arg.
This patch fixes an ICE caused by syntax errors in arguments
to unary built-in functions like len().

Updates issue 7.

From Rémy Oudompheng.

From-SVN: r185936
2012-03-28 22:31:20 +00:00
Ian Lance Taylor e72e40d1b5 compiler: avoid an ICE on bound interface methods used as values.
Updates issue 7.

From-SVN: r185934
2012-03-28 22:25:53 +00:00
Ian Lance Taylor ad57e71d44 compiler: fix method finalization of unnamed structs.
Used to trigger an ICE on
  var v struct{I}; type I interface{}

Updates issue 7.

From-SVN: r185932
2012-03-28 22:22:19 +00:00
Ian Lance Taylor 63135179e4 compiler: fix crashes.
The compiler would crash on:
        if true || x, y := 1, 2 {}
and
        var s string
        s = append(s, "hello")

Reported in issue 3186.

From-SVN: r185929
2012-03-28 21:33:37 +00:00
Ian Lance Taylor 1089b513c0 compiler: Rewrite handling of untyped numeric constants.
Fixes various bugs when, e.g., using float or complex
constants in integer contexts.

From-SVN: r185926
2012-03-28 21:27:48 +00:00
Martin Jambor 23a24bba32 re PR middle-end/52693 (Wrong code with SRA and arrays)
2012-03-28  Martin Jambor  <mjambor@suse.cz>

	PR middle-end/52693
	* tree-sra.c (sra_modify_assign): Do not call
	load_assign_lhs_subreplacements when working with an unscalarizable
	region.

	* testsuite/gcc.dg/torture/pr52693.c: New test.

From-SVN: r185920
2012-03-28 17:04:45 +02:00
Jakub Jelinek 59c3b4faae re PR middle-end/52691 (va_start to builtin_next_arg optimization lost)
PR middle-end/52691
	* tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
	__builtin_va_start to __builtin_next_arg if the latter is
	builtin_decl_explicit_p rather than when it is not.

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

From-SVN: r185918
2012-03-28 16:49:26 +02:00
Jakub Jelinek 4108bbe9af re PR middle-end/52750 (32xsigned char __builtin_shuffle)
PR middle-end/52750
	* tree-vect-generic.c (vector_element): Perform multiplication
	for pos in bitsizetype type instead of idx type.

	* gcc.c-torture/compile/pr52750.c: New test.

From-SVN: r185916
2012-03-28 16:46:14 +02:00
Georg-Johann Lay ae0d9296d1 backport: re PR target/52692 ([avr]: Add support for avr-specific built-ins + LTO)
gcc/
	Backport from 2012-03-28 mainline r185910.

	PR target/52692
	* config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
	(avr_builtin_decl): New static function.
	(struct avr_builtin_description, avr_bdesc): Move up.
	Add GTY marker. Add field fndecl. Remove redundant field id.
	(avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
	(avr_expand_builtin): Code cleanup because .id is removed.
	
testsuite/
	Backport from 2012-03-28 mainline r185910.

	PR target/52692
	* gcc.target/avr/torture/builtins-2.c: New test.

From-SVN: r185911
2012-03-28 09:19:10 +00:00
Aurelien Buhrig d1e36baeaa re PR middle-end/51893 (Wrong subword index computation in store_bit_field_1 on BIG_ENDIAN targets)
PR middle-end/51893
	* expmed.c (store_bit_field_1): Fix wordnum value for big-endian
	targets.

From-SVN: r185909
2012-03-28 09:06:03 +00:00
Georg-Johann Lay 4c11ce3b32 backport: re PR target/52737 ([avr]: -mtiny-stack shall not influence multilib selection)
Backport from 2012-03-28 mainline r185907.

	PR target/52737
	* contrib/gcc_update (files_and_dependencies):
	Remove gcc/config/avr/t-multilib from touch data.

gcc/
	Backport from 2012-03-28 mainline r185907.

	PR target/52737
	* config.gcc (tm_file): Remove avr/multilib.h.

	* doc/invoke.texi (AVR Options): Adjust
	documentation of -mtiny-stack.

	* config/avr/genmultilib.awk: Remove code to generate multilib.h.
	(BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
	* config/avr/t-avr: Remove generation of multilib.h.
	* config/avr/t-multilib: Regenerate.
	* config/avr/multilib.h: Remove.
	* config/avr/avr.opt (-msp8): New option.
	(avr_sp8): New variable.
	* config/avr/driver-avr.c (avr_device_to_sp8): New function.
	* config/avr/avr.h (AVR_HAVE_SPH): New define.
	(AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
	(avr_device_to_sp8): New prototype.
	(EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
	(DRIVER_SELF_SPECS): New define.
	* config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
	__AVR_SP8__, __AVR_HAVE_SPH__.
	* config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
	AVR_HAVE_8BIT_SP to decide if SP_H is present.
	(avr_file_start): Ditto.
	
libgcc/
	Backport from 2012-03-28 mainline r185907.

	PR target/52737
	* config/avr/lib1funcs.S: Use __AVR_HAVE_SPH__ for SP_H checks
	instead of __AVR_HAVE_8BIT_SP__.

From-SVN: r185908
2012-03-28 09:04:11 +00:00
Jakub Jelinek 3381e23cf6 re PR target/52736 (miscompilation: store to aliased __m128d is 8 Bytes off)
PR target/52736
	* config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
	instead of 8 in adjust_address.

	* gcc.target/i386/pr52736.c: New test.

From-SVN: r185905
2012-03-28 10:03:11 +02:00
GCC Administrator f7bb11f848 Daily bump.
From-SVN: r185901
2012-03-28 00:18:30 +00:00
Eric Botcazou 77ac819e2a expmed.c (store_bit_field): Assert that BITREGION_START is a multiple of a unit before computing the offset...
* expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
	of a unit before computing the offset in units.

From-SVN: r185896
2012-03-27 20:38:16 +00:00
Joseph Myers 6c72a57c37 * ja.po: Update.
From-SVN: r185879
2012-03-27 15:30:10 +01:00
Joseph Myers d9fbebc16f be.po, [...]: Update.
* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po, ja.po,
	nl.po, ru.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po:
	Update.

From-SVN: r185877
2012-03-27 15:27:20 +01:00
Richard Guenther 4da3c5cc2d re PR middle-end/52720 (internal compiler error: in try_move_mult_to_index)
2012-03-27  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52720
	* fold-const.c (try_move_mult_to_index): Handle &x.array more
	explicitely.

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

From-SVN: r185864
2012-03-27 12:49:10 +00:00
GCC Administrator d54cef6248 Daily bump.
From-SVN: r185828
2012-03-27 00:18:23 +00:00
David Edelsohn 8db9a3af31 inclhack.def (aix_malloc): New.
* inclhack.def (aix_malloc): New.
        * fixincl.x: Regenerate.
        * tests/base/malloc.h [AIX_MALLOC_CHECK]: New.

From-SVN: r185805
2012-03-26 10:59:00 -04:00
Georg-Johann Lay 4e441df83b backport: avr-torture.exp (AVR_TORTURE_OPTIONS): Add "-Os -flto" to list.
Backport from 2012-03-26 mainline r185793.
	* gcc.target/avr/torture/avr-torture.exp (AVR_TORTURE_OPTIONS):
	Add "-Os -flto" to list.

From-SVN: r185794
2012-03-26 11:32:54 +00:00
GCC Administrator d2b2c22176 Daily bump.
From-SVN: r185785
2012-03-26 00:18:42 +00:00
Eric Botcazou 6bf1fe52ed decl.c (SS_MARK_NAME): New define.
* gcc-interface/decl.c (SS_MARK_NAME): New define.
	(gnat_to_gnu_entity) <E_Function>: Prepend leaf attribute on entities
	whose name is SS_MARK_NAME.

From-SVN: r185781
2012-03-25 17:14:31 +00:00
GCC Administrator 8a74a04c70 Daily bump.
From-SVN: r185771
2012-03-25 00:17:34 +00:00
Eric Botcazou 2a2628fe13 re PR target/52610 (mpfr fails to compile when specifying CFLAGS="-O3 -mcpu=leon")
PR target/52610
	* config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.

From-SVN: r185766
2012-03-24 18:47:55 +00:00
H.J. Lu 0b2d8c7bd8 Fix a typo in testsuite/demangle-expected
2012-03-24  H.J. Lu  <hongjiu.lu@intel.com>

	* testsuite/demangle-expected: Fix a typo.

From-SVN: r185763
2012-03-24 08:54:26 -07:00
Steven Bosscher 164652f754 forgot ChangeLogs
From-SVN: r185760
2012-03-24 13:49:34 +00:00
Steven Bosscher f78cc78290 re PR middle-end/52640 (performance bottleneck: gcc/tree.c;value_member)
gcc/
	PR middle-end/52640
	* varasm.c: Include pointer-set.h.
	(pending_assemble_externals_set): New pointer set.
	(process_pending_assemble_externals): Destroy the pointer set.
	(assemble_external): See if decl is in pending_assemble_externals_set,
	and add it to pending_assemble_externals if necessary.
	(init_varasm_once): Allocate pending_assemble_externals_set.

testsuite/
	PR middle-end/52640
	* gcc.c-torture/compile/limits-externdecl.c: New test.

From-SVN: r185759
2012-03-24 13:48:35 +00:00
GCC Administrator c27666a599 Daily bump.
From-SVN: r185755
2012-03-24 00:18:21 +00:00
David S. Miller 18b2067f63 Update sparc-linux-gnu libstdc++ ABI baseline.
libstdc++-v3/

	* config/abi/post/sparc-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r185749
2012-03-23 11:55:43 -07:00
Ian Lance Taylor c2a5e23f2a syscall: Fix errno handling in syscall.Syscall and friends.
From-SVN: r185747
2012-03-23 18:41:28 +00:00
Michael Meissner c3f0aa9259 backport: re PR target/50310 (ICE: in gen_vcondv2div2df, at config/i386/sse.md:1435 with -O -ftree-vectorize and __builtin_isunordered())
2012-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>

	Backported from mainline
	2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/50310
	* config/rs6000/vector.md (vector_uneq<mode>): Add support for
	UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
	(vector_ltgt<mode>): Likewise.
	(vector_ordered<mode>): Likewise.
	(vector_unordered<mode>): Likewise.
	* config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.

From-SVN: r185743
2012-03-23 16:16:38 +00:00
Joern Rennecke 7ff24554cb epiphany.c (epiphany_function_value_regno_p): Make static.
* config/epiphany/epiphany.c (epiphany_function_value_regno_p):
        Make static.

From-SVN: r185740
2012-03-23 14:42:08 +00:00
Paolo Carlini 67ef376b48 forward_list.h: Fix comments.
2012-03-23  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/forward_list.h: Fix comments.

From-SVN: r185738
2012-03-23 13:27:45 +00:00
Paweł Sikora d41f38901c re PR libstdc++/52540 (std::use_facet throws bad_cast when compiled with _GLIBCXX_DEBUG)
2012-03-23  Paweł Sikora  <pawel.sikora@agmk.net>

	PR libstdc++/52540
	* include/Makefile.am (c++config.h): Fix sed rule to not break
	the _GLIBCXX_EXTERN_TEMPLATE redefinition.
	* include/Makefile.in: Regenerate.

From-SVN: r185733
2012-03-23 11:00:54 +00:00
William Bader 60df23a50d re PR c/52682 ([patch] gcc-4.7.0/gcc/c-family/c-lex.c doesn't compile with old C compilers)
2012-03-23  William Bader  <williambader@hotmail.com>

	PR c/52682
	* c-lex.c (c_lex_with_flags): Avoid declarations after stmts.

From-SVN: r185726
2012-03-23 08:19:08 +00:00
Paolo Carlini 813a75e50e re PR c++/52487 ([C++11] ICE at cp/semantics.c:5613 with lambda capturing reference to incomplete type by value)
/cp
2012-03-22  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52487
	* class.c (check_field_decls): Call literal_type_p only
	on complete types.

/testsuite
2012-03-22  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52487
	* g++.dg/cpp0x/lambda/lambda-ice7.C: New.

From-SVN: r185723
2012-03-23 00:58:10 +00:00
GCC Administrator 02e80fa682 Daily bump.
From-SVN: r185720
2012-03-23 00:18:00 +00:00
Jonathan Wakely 2dbb7ac4eb re PR libstdc++/52433 ([C++11] debug mode iterators need to move)
PR libstdc++/52433
	* include/debug/safe_iterator.h (_Safe_iterator): Add move
	constructor and move assignment operator.
	* testsuite/23_containers/vector/debug/52433.cc: New.

From-SVN: r185717
2012-03-23 00:02:47 +00:00
Kaz Kojima cf42709fba backport: re PR rtl-optimization/48596 ([SH] unable to find a register to spill in class 'FPUL_REGS')
Backported from mainline
	2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>

	PR target/48596
	PR target/48806
	* config/sh/sh.c (sh_register_move_cost): Increase cost between
	GENERAL_REGS and FP_REGS for SImode.

From-SVN: r185714
2012-03-22 21:39:45 +00:00
Tobias Burnus 5745473914 re PR fortran/52452 (INTRINSIC cannot be applied to gfortran's ETIME)
2012-03-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52452
        * resolve.c (resolve_intrinsic): Don't search for a
        function if we know that it is a subroutine.

2012-03-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52452
        * gfortran.dg/intrinsic_8.f90: New.

From-SVN: r185713
2012-03-22 22:13:00 +01:00
Jakub Jelinek f145179afe re PR c++/52671 (ICE with misplaced attribute on enum)
PR c++/52671
	* decl.c (check_tag_decl): Only use CLASSTYPE_TEMPLATE_INSTANTIATION
	on CLASS_TYPE_P types.

	* g++.dg/ext/attrib44.C: New test.

From-SVN: r185711
2012-03-22 21:29:01 +01:00
Jakub Jelinek d7788b60ae re PR c++/52671 (ICE with misplaced attribute on enum)
PR c++/52671
	* decl.c (check_tag_decl): Only use CLASSTYPE_TEMPLATE_INSTANTIATION
	on CLASS_TYPE_P types.

	* g++.dg/ext/attrib44.C: New test.

From-SVN: r185710
2012-03-22 21:27:38 +01:00
Jakub Jelinek 6edb7180d2 re PR middle-end/52547 (ICE with openmp with nested function which requires a trampoline)
PR middle-end/52547
	* tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
	on any new_local_var_chain vars declared during recursing on
	GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.

	* testsuite/libgomp.c/pr52547.c: New test.

From-SVN: r185708
2012-03-22 20:27:52 +01:00
David Edelsohn 7e43d48401 backport: aix_closure.S (ffi_closure_ASM): Adjust for Darwin64 change to return value of ffi_closure_helper_DARWIN and...
2012-03-22  David Edelsohn  <dje.gcc@gmail.com>

        Backport from mainline:
        2012-03-09  David Edelsohn  <dje.gcc@gmail.com>

        * src/powerpc/aix_closure.S (ffi_closure_ASM): Adjust for Darwin64
        change to return value of ffi_closure_helper_DARWIN and load type
        from return type.

        From Tom Honermann <tom.honermann@oracle.com>:
        * src/powerpc/aix.S: Declare .ffi_prep_args.  Insert nops after
        branch instructions.
        * src/powerpc/aix_closure.S: Declare .ffi_closure_helper_DARWIN.

From-SVN: r185706
2012-03-22 14:43:00 -04:00
Jason Merrill 1d37e85568 re PR c++/52582 (g++ ICE when compiling qt-4.8.0 with -O2 on PPC (32bit))
PR c++/52582
	* method.c (implicitly_declare_fn): Set DECL_EXTERNAL.

From-SVN: r185705
2012-03-22 14:34:24 -04:00
Jason Merrill a896a0dbc1 cp-demangle.c (cplus_demangle_operators): Add li.
* cp-demangle.c (cplus_demangle_operators): Add li.
	(d_unqualified_name): Handle it specially.

From-SVN: r185704
2012-03-22 14:34:16 -04:00
Georg-Johann Lay a8277c363f Backport PRs 52148, 52461, 52484, 52488, 52496, 52499, 52505, 52506, 52507, 52508 and more
libgcc/
	Backport from 2012-03-07 mainline r185033.

	PR target/52507
	* config/avr/lib1funcs.S (__movmemx_hi): Fix loop label in RAM-part.

	Backport from 2012-03-07 mainline r185031.

	PR target/52505
	* config/avr/lib1funcs.S (__xload_1): Don't read unintentionally
	from RAM.

	Backport from 2012-03-07 mainline r185030.

	PR target/52461
	PR target/52508
	* config/avr/lib1funcs.S (__do_copy_data): Clear RAMPZ after usage
	if RAMPZ affects reading from RAM.
	(__tablejump_elpm__): Ditto.
	(.xload): Ditto.
	(__movmemx_hi): Ditto.
	(__do_global_ctors): Right condition for RAMPZ usage is "have ELPM".
	(__do_global_dtors): Ditto.
	(__xload_1, __xload_2, __xload_3, __xload_4): Ditto.
	(__movmemx_hi): Ditto.

gcc/
	Backport from 2012-03-22 mainline r185692.

	PR target/52496
	* config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
	(unspecv): Add UNSPECV_MEMORY_BARRIER.
	(cli_sei): Use unspec_volatile instead of unspec for memory barrier.
	(delay_cycles_1, delay_cycles_2): Ditto.
	(delay_cycles_3, delay_cycles_4): Ditto.
	(nopv, *nopv): Ditto.
	(sleep, *sleep): Ditto.
	(wdr, *wdr): Ditto.

	Backport from 2012-03-21 mainline r185605.

	PR rtl-optimization/52543
	PR target/52461
	* config/avr/avr-protos.h (avr_load_lpm): New prototype.
	* config/avr/avr.c (avr_mode_dependent_address_p): New function.
	(TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
	(avr_load_libgcc_p): Restrict to __flash loads.
	(avr_out_lpm): Only handle 1-byte loads from __flash.
	(avr_load_lpm): New function.
	(avr_find_unused_d_reg): Remove.
	(avr_out_lpm_no_lpmx): Remove.
	(adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
	* config/avr/avr.md (unspec): Add UNSPEC_LPM.
	(load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
	(load_<mode>, load_<mode>_clobber): New insns.
	(mov<mode>): For multi-byte move from non-generic
	16-bit address spaces: Expand to load_<mode> resp.
	load_<mode>_clobber.
	(load<mode>_libgcc): Remove expander.
	(split-lpmx): Remove split.

	Backport from 2012-03-13 mainline r185329.

	PR target/52488
	* config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
	offset (size) to a value the insns can deal with.
	(expand_epilogue): Ditto.

	Backport from 2012-03-12 mainline r185256.

	PR target/52499
	* config/avr/avr.c (avr_mode_code_base_reg_class): Change return
	type from reg_class_t to enum reg_class.
	* config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.

	Backport from 2012-03-12 mainline r185253.

	PR target/52148
	* config/avr/avr.c (avr_out_movmem): Fix typo in output template
	for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
	r184615 from 2012-02-28.

	Backport from 2012-03-08 mainline r185105.

	* config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
	for constants in [-63,63].

	Backport from 2012-03-08 mainline r185100.

	PR target/52496
	* config/avr/avr.c (avr_mem_clobber): New static function.
	(avr_expand_delay_cycles): Add memory clobber operand to
	delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
	* config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
	(enable_interrupt, disable_interrupt): New expander.
	(nopv, sleep, wdr): New expanders.
	(delay_cycles_1): Add memory clobber.
	(delay_cycles_2): Add memory clobber.
	(delay_cycles_3): Add memory clobber.
	(delay_cycles_4): Add memory clobber.
	(cli_sei): New insn from former "enable_interrupt",
	"disable_interrupt" with memory clobber.
	(*wdt): New insn from former "wdt" with memory clobber.
	(*nopv): Similar, but for "nopv".
	(*sleep): Similar, but for "sleep".

	Backport from 2012-03-07 mainline r185043.

	PR target/52484
	* config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.

	Backport from 2012-03-07 mainline r185032.

	PR target/52506
	* gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
	to: RAMPZ, RAMPY, RAMPX, RAMPD.
	(expand_prologue): Only clear RAMPZ if it has effect on RAM-read.

	Backport from 2012-03-07 mainline r185031.

	PR target/52505
	* config/avr/avr.c (avr_out_xload): Don't read unintentionally
	from RAM.
	* config/avr/avr.md (xload_8): Adjust insn length.

	Backport from 2012-03-07 mainline r185030.

	PR target/52461
	* gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
	if RAMPZ affects reading from RAM.

	Backport from 2012-03-05 mainline r184919.

	* config/avr/avr.md (*umaddqihi4.2): New insn-and-split.

From-SVN: r185697
2012-03-22 15:06:57 +00:00
Georg-Johann Lay c0aa57e4fb backport: re PR target/49868 (Implement named address space to place/access data in flash memory)
Backport from 2012-03-20 mainline r185583.

	* gcc.target/avr/progmem.h (pgm_read_char): Define depending on
	__AVR_HAVE_LPMX__

	Backport from 2012-03-20 mainline r185570.

        PR target/49868
        * gcc.target/avr/torture/addr-space-2.h: New file.
        * gcc.target/avr/torture/addr-space-2-g.h: New test.
        * gcc.target/avr/torture/addr-space-2-0.h: New test.
        * gcc.target/avr/torture/addr-space-2-1.h: New test.
        * gcc.target/avr/torture/addr-space-2-x.h: New test.
	
	Backport from 2012-03-12 mainline r185255.

        PR target/49868
        * gcc.target/avr/torture/addr-space-1.h: New file.
        * gcc.target/avr/torture/addr-space-g.h: New test.
        * gcc.target/avr/torture/addr-space-0.h: New test.
        * gcc.target/avr/torture/addr-space-1.h: New test.
        * gcc.target/avr/torture/addr-space-x.h: New test.

From-SVN: r185696
2012-03-22 14:48:55 +00:00
Paolo Carlini a8204b0cfd array (array<>::at(size_type) const): Fix version for undefined __EXCEPTIONS.
2012-03-22  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/array (array<>::at(size_type) const): Fix version
	for undefined __EXCEPTIONS.

From-SVN: r185690
2012-03-22 12:36:01 +00:00
Georg-Johann Lay a2bf718c71 Fix timestamp of r185685.
From-SVN: r185686
2012-03-22 10:46:13 +00:00
Georg-Johann Lay 50497c4830 backport: re PR other/52545 (output.h: SECTION_EXCLUDE flag clobbers SECTION_MACH_DEP)
Backport from mainline r185259.
	PR other/52545
	* output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
	SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.

From-SVN: r185685
2012-03-22 10:40:31 +00:00
Jakub Jelinek d6b0165ded backport: re PR c++/52521 ([C++11] user defined literals and order of declaration)
Backported from mainline
	2012-03-14  Jakub Jelinek  <jakub@redhat.com>

	PR c++/52521
	* parser.c (lookup_literal_operator): Return fn only if
	processed all arguments from args vector and argtypes is
	void_list_node.

	* g++.dg/cpp0x/udlit-args2.C: New test.

From-SVN: r185683
2012-03-22 11:10:24 +01:00
Jakub Jelinek ab843994bf backport: re PR c/52577 (__builtin_shuffle -Wunused-but-set-* false positives)
Backported from mainline
	2012-03-13  Jakub Jelinek  <jakub@redhat.com>
 
	PR c/52577
	* c-parser.c (c_parser_postfix_expression)
	<case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.

	* gcc.dg/Wunused-var-3.c: New test.

From-SVN: r185682
2012-03-22 11:08:49 +01:00
Jakub Jelinek d3cd54e82d backport: smmintrin.h: Avoid /* within a comment.
Backported from trunk
	2012-03-13  Jakub Jelinek  <jakub@redhat.com>

	* config/i386/smmintrin.h: Avoid /* within a comment.
	* config/i386/nmmintrin.h: Likewise.

From-SVN: r185681
2012-03-22 11:06:10 +01:00
Richard Guenther 3e49b466d3 BASE-VER: Set to 4.7.1.
2012-03-22  Richard Guenther  <rguenther@suse.de>

        * BASE-VER: Set to 4.7.1.
        * DEV-PHASE: Set to prerelease.

From-SVN: r185679
2012-03-22 09:22:13 +00:00
Richard Biener ae02e369d7 Mark as release
From-SVN: r185674
2012-03-22 07:11:51 +00:00
Richard Biener 7f5c61d4d3 Mark ChangeLog
From-SVN: r185673
2012-03-22 07:11:44 +00:00
Richard Biener 9667cf6de3 Mark ChangeLog
From-SVN: r185672
2012-03-22 07:11:37 +00:00
Richard Biener aeafaa6191 Mark ChangeLog
From-SVN: r185671
2012-03-22 07:11:31 +00:00
Richard Biener 80a5ee861a Mark ChangeLog
From-SVN: r185670
2012-03-22 07:11:24 +00:00
Richard Biener 2c103c96e5 Mark ChangeLog
From-SVN: r185669
2012-03-22 07:11:17 +00:00
Richard Biener 2eefb134cc Mark ChangeLog
From-SVN: r185668
2012-03-22 07:11:09 +00:00
Richard Biener 064e355050 Mark ChangeLog
From-SVN: r185667
2012-03-22 07:11:03 +00:00
Richard Biener 54099845d1 Mark ChangeLog
From-SVN: r185666
2012-03-22 07:10:55 +00:00
Richard Biener 3ba5346047 Mark ChangeLog
From-SVN: r185665
2012-03-22 07:10:49 +00:00
Richard Biener 5c2124bbe1 Mark ChangeLog
From-SVN: r185664
2012-03-22 07:10:41 +00:00
Richard Biener 3894ad92fa Mark ChangeLog
From-SVN: r185663
2012-03-22 07:10:33 +00:00
Richard Biener e072a2ecf8 Mark ChangeLog
From-SVN: r185662
2012-03-22 07:10:23 +00:00
Richard Biener d73fef14a9 Mark ChangeLog
From-SVN: r185661
2012-03-22 07:10:15 +00:00
Richard Biener 0b35dc0edd Mark ChangeLog
From-SVN: r185660
2012-03-22 07:10:06 +00:00
Richard Biener b4d059a159 Mark ChangeLog
From-SVN: r185659
2012-03-22 07:09:59 +00:00
Richard Biener fc66a2caa7 Mark ChangeLog
From-SVN: r185658
2012-03-22 07:09:51 +00:00
Richard Biener f92a3d2a0f Mark ChangeLog
From-SVN: r185657
2012-03-22 07:09:44 +00:00
Richard Biener 8de999d293 Mark ChangeLog
From-SVN: r185656
2012-03-22 07:09:37 +00:00
Richard Biener 78bbd9aafe Mark ChangeLog
From-SVN: r185655
2012-03-22 07:09:29 +00:00
Richard Biener 4b89294cfd Mark ChangeLog
From-SVN: r185654
2012-03-22 07:09:21 +00:00
Richard Biener d36e06560c Mark ChangeLog
From-SVN: r185653
2012-03-22 07:09:12 +00:00
Richard Biener cf8bf333a9 Mark ChangeLog
From-SVN: r185652
2012-03-22 07:09:04 +00:00
Richard Biener 1080478d68 Mark ChangeLog
From-SVN: r185651
2012-03-22 07:08:57 +00:00
Richard Biener 80911b9540 Mark ChangeLog
From-SVN: r185650
2012-03-22 07:08:50 +00:00
Richard Biener dbacbeb234 Mark ChangeLog
From-SVN: r185649
2012-03-22 07:08:44 +00:00
Richard Biener 5d6b87ad8a Mark ChangeLog
From-SVN: r185648
2012-03-22 07:08:39 +00:00
Richard Biener c245567d03 Mark ChangeLog
From-SVN: r185647
2012-03-22 07:08:32 +00:00
Richard Biener 846de40d67 Mark ChangeLog
From-SVN: r185646
2012-03-22 07:08:24 +00:00
Richard Biener 4ed02a800d Mark ChangeLog
From-SVN: r185645
2012-03-22 07:08:18 +00:00
Richard Biener 1032a7bb75 Mark ChangeLog
From-SVN: r185644
2012-03-22 07:08:11 +00:00
Richard Biener 93b5f800e4 Mark ChangeLog
From-SVN: r185643
2012-03-22 07:08:05 +00:00
Richard Biener f1d018cb87 Mark ChangeLog
From-SVN: r185642
2012-03-22 07:07:59 +00:00
Richard Biener 36dd729261 Mark ChangeLog
From-SVN: r185641
2012-03-22 07:07:53 +00:00
Richard Biener d53493c3a5 Mark ChangeLog
From-SVN: r185640
2012-03-22 07:07:48 +00:00
Richard Biener d17836e481 Mark ChangeLog
From-SVN: r185639
2012-03-22 07:07:40 +00:00
Richard Biener f82c1ac2ea Mark ChangeLog
From-SVN: r185638
2012-03-22 07:07:34 +00:00
Richard Biener 7da26c3cc0 Mark ChangeLog
From-SVN: r185637
2012-03-22 07:07:27 +00:00
Richard Biener 51cad5d581 Mark ChangeLog
From-SVN: r185636
2012-03-22 07:07:21 +00:00
Richard Biener cd3a725096 Mark ChangeLog
From-SVN: r185635
2012-03-22 07:07:13 +00:00
Richard Biener ab6dcdd32b Mark ChangeLog
From-SVN: r185634
2012-03-22 07:07:06 +00:00
Richard Biener 2bc563824b Mark ChangeLog
From-SVN: r185633
2012-03-22 07:06:58 +00:00
Richard Biener 367f965765 Mark ChangeLog
From-SVN: r185632
2012-03-22 07:06:50 +00:00
Richard Biener d2b1fda7aa Mark ChangeLog
From-SVN: r185631
2012-03-22 07:06:44 +00:00
Richard Biener 8ffa2597e2 Mark ChangeLog
From-SVN: r185630
2012-03-22 07:06:37 +00:00
GCC Administrator 8cfd730126 Daily bump.
From-SVN: r185626
2012-03-22 00:18:51 +00:00
Jason Merrill 94dd0b741a mangle.c (write_type): Handle 'auto'.
gcc/cp/
	* mangle.c (write_type): Handle 'auto'.
	* init.c (build_new): Don't do auto deduction where it might
	affect template mangling.
libiberty/
	* cp-demangle.c (cplus_demangle_type): Handle 'auto'.

From-SVN: r185606
2012-03-21 10:43:00 -04:00
GCC Administrator 22b515f1b6 Daily bump.
From-SVN: r185592
2012-03-21 00:17:34 +00:00
GCC Administrator f980a7b1f0 Daily bump.
From-SVN: r185551
2012-03-20 00:19:02 +00:00
GCC Administrator c60341f242 Daily bump.
From-SVN: r185513
2012-03-19 00:18:41 +00:00
Joseph Myers add19043a7 * gcc.pot: Regenerate.
From-SVN: r185506
2012-03-18 14:02:21 +00:00
GCC Administrator 85ddefae3d Daily bump.
From-SVN: r185497
2012-03-18 00:18:34 +00:00
GCC Administrator d3fb85e985 Daily bump.
From-SVN: r185480
2012-03-17 00:18:34 +00:00
Rainer Orth 9cb4d0c9a5 Improve wording in GCC 4.7 Solaris update to install.texi
* doc/install.texi (Specific, *-*-solaris2*): Improve wording.

From-SVN: r185457
2012-03-16 09:43:53 +00:00
GCC Administrator 3afa31584e Daily bump.
From-SVN: r185450
2012-03-16 00:18:36 +00:00
Ian Lance Taylor bccbb3dcfa libgo: Export {enter,exit}syscall and use it for getaddrinfo.
From-SVN: r185440
2012-03-15 18:09:39 +00:00
Jakub Jelinek 3ee571d264 re PR middle-end/52592 (compilation failure with undefined reference to `__builtin_iround')
PR middle-end/52592
	* builtins.c (expand_builtin_int_roundingfn_2): If expanding
	BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
	calls instead of __builtin_ir{int,ound}*.

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

Co-Authored-By: Andrew Pinski <apinski@cavium.com>

From-SVN: r185432
2012-03-15 14:40:13 +01:00
Joseph Myers 9ebbda0946 * sv.po: Update.
From-SVN: r185405
2012-03-15 00:28:43 +00:00
GCC Administrator 7ed45840c5 Daily bump.
From-SVN: r185402
2012-03-15 00:18:28 +00:00
Jakub Jelinek facc0bdb6f re PR c++/52582 (g++ ICE when compiling qt-4.8.0 with -O2 on PPC (32bit))
PR c++/52582
	* config/rs6000/rs6000.c (call_ABI_of_interest): Return true
	if c_node is NULL.

	* g++.dg/opt/pr52582.C: New test.

From-SVN: r185383
2012-03-14 15:21:12 +01:00
GCC Administrator 9036c76401 Daily bump.
From-SVN: r185370
2012-03-14 00:18:27 +00:00
Joseph Myers 2565271424 * gennews (files): Add files for GCC 4.7.
From-SVN: r185366
2012-03-13 23:21:51 +00:00
Joseph Myers 0ebca56924 invoke.texi (-std=c99), [...]): Refer to GCC 4.7 version of c99status.html.
* doc/invoke.texi (-std=c99), doc/standards.texi (C language):
	Refer to GCC 4.7 version of c99status.html.

From-SVN: r185364
2012-03-13 23:18:07 +00:00
Torvald Riegel a9e2eaaf3b libitm: Fix lost wake-up in serial lock.
PR libitm/52526
	Backported from mainline.
	* config/linux/rwlock.cc (GTM::gtm_rwlock::read_lock): Fix lost
	wake-up.

From-SVN: r185360
2012-03-13 22:11:46 +00:00
Ian Lance Taylor 6a5d68a1be re PR go/52557 (Timex undefined on arm-linux-gnueabi)
PR go/52557
mksysinfo: Fix handling of timex for ARM GNU/Linux.

From-SVN: r185359
2012-03-13 22:03:30 +00:00
GCC Administrator c2c297b116 Daily bump.
From-SVN: r185275
2012-03-13 00:18:59 +00:00
Michael Meissner 56cbf65b90 backport: linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not redefine to be NULL if the current bit-size is different from the...
2012-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	Backport from mainline
	2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
	redefine to be NULL if the current bit-size is different from the
	configured bit-size.

	* config/rs6000/rs6000.c (rs6000_option_override_internal): If the
	cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
	set the default tuning.  Add asserts to make sure the cpu and tune
	indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
	test whether the index is set, instead of > 0.
	(rs6000_file_start): Do not reset the default cpu if the current
	bit-size is different from the configured bit-size.

From-SVN: r185248
2012-03-12 16:16:51 +00:00
Rainer Orth 6865cd64bb GCC 4.7 Solaris updates to install.texi
* doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
	binutils reference.
	(Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
	Update binutils references.
	(Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
	Update binutils reference.
	Update Sun as/GNU ld caveat.
	Document binutils largefile requirement for LTO plugin.
	Remove reference to alternate libpthread.

From-SVN: r185243
2012-03-12 15:42:42 +00:00
John David Anglin aeca44fe83 re PR middle-end/52450 (FAIL: gcc.dg/torture/pr52402.c at -O1 and above)
PR target/52450
	* gcc.dg/torture/pr52402.c: Skip execution on 32-bit hppa*-*-hpux*.

From-SVN: r185239
2012-03-12 15:33:32 +00:00
John David Anglin 4f5a8a6a11 pr52407.c: Add -fno-common option on hppa*-*-hpux*.
* gcc.dg/torture/pr52407.c: Add -fno-common option on hppa*-*-hpux*.

From-SVN: r185237
2012-03-12 15:29:32 +00:00
Rainer Orth 5ce26fec95 GCC 4.7 IRIX, Tru64 UNIX updates to install.texi
* doc/install.texi (Specific, alpha*-dec-osf5.1): Update binutils
	reference.
	(Specific, mips-sgi-irix6): Likewise.

From-SVN: r185234
2012-03-12 15:11:00 +00:00
Joseph Myers cab844bd28 * sv.po: Update.
From-SVN: r185209
2012-03-12 01:12:39 +00:00
GCC Administrator 3206e8e5d7 Daily bump.
From-SVN: r185206
2012-03-12 00:18:17 +00:00
GCC Administrator a9dd952141 Daily bump.
From-SVN: r185189
2012-03-11 00:18:40 +00:00
John David Anglin 7878cfeab7 re PR libstdc++/52456 (FAIL: libstdc++-abi/abi_check)
PR libstdc++/52456
	* config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r185185
2012-03-10 22:57:45 +00:00
Ian Lance Taylor cbe806a0d7 Update Go compiler, library, and testsuite on gcc 4.7 branch.
* go-gcc.cc (Gcc_backend::assignment_statement): Convert the rhs
	to the lhs type if necessary.


	* go-gcc.cc (Gcc_backend::init_statement): Don't initialize a
	zero-sized variable.
	(go_non_zero_struct): New global variable.
	(Gcc_backend::non_zero_size_type): New function.
	(Gcc_backend::global_variable): Don't build an assignment for a
	zero-sized value.
	* go-c.h (go_non_zero_struct): Declare.
	* config-lang.in (gtfiles): Add go-c.h.

From-SVN: r185180
2012-03-10 19:03:09 +00:00
Tobias Burnus e1f6191100 re PR fortran/52469 (-fwhole-file bug: Wrong backend_decl for result of PPC function)
2012-03-10  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52469
        * trans-types.c (gfc_get_function_type): Handle backend_decl
        of a procedure pointer.

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

        PR fortran/52469
        * gfortran.dg/proc_ptr_34.f90

From-SVN: r185170
2012-03-10 09:18:31 +01:00
GCC Administrator 4d8dabdf72 Daily bump.
From-SVN: r185164
2012-03-10 00:19:22 +00:00
Andreas Schwab 21e083eca8 * config/locale/gnu/monetary_members.cc
(moneypunct<char,true>::_M_initialize_moneypunct): Throw caught
exception again.
(moneypunct<char,false>::_M_initialize_moneypunct): Likewise.
* testsuite/22_locale/locale/cons/12352.cc: Also test en_US
locale.

From-SVN: r185151
2012-03-09 19:51:16 +00:00
GCC Administrator 844462f987 Daily bump.
From-SVN: r185119
2012-03-09 00:19:19 +00:00
Rainer Orth e2123e1d47 Fix R_386_TLS_LDM_PLT detection
* configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
	* configure: Regenerate.

From-SVN: r185102
2012-03-08 13:54:54 +00:00
GCC Administrator 7457ecda00 Daily bump.
From-SVN: r185087
2012-03-08 00:19:03 +00:00
Jason Merrill 39695cfad3 re PR c++/52521 ([C++11] user defined literals and order of declaration)
PR c++/52521
	* mangle.c (write_literal_operator_name): The length comes after the
	operator prefix.

From-SVN: r185077
2012-03-07 15:16:16 -05:00
Richard Henderson e093a7bc9f m68k: Limit TAS to 68000 and CF ISA_B.
* config/m68k/m68k.h (ISA_HAS_TAS): New.
	* config/m68k/sync.md (atomic_test_and_set): Use it.
	(atomic_test_and_set_1): Likewise.

From-SVN: r185063
2012-03-07 08:23:17 -08:00
Ralf Corsepius 5ab31493c5 re PR other/51417 (Cross-compiler - wrappers for ar, nm, ranlib installed under wrong names)
2012-03-05  Ralf Corsépius  <ralf.corsepius@rtems.org>

	PR target/51417
	* Makefile.in: Let install-gcc-ar depend on installdirs, gcc-ar$(exeext),
	gcc-nm$(exeext), gcc-ranlib$(exeext).
	Don't double canonicalize if cross-compiling.

From-SVN: r185034
2012-03-07 11:59:56 +01:00
GCC Administrator f79e877152 Daily bump.
From-SVN: r185023
2012-03-07 00:19:21 +00:00
Aldy Hernandez ca8c3fbed9 trans-mem.c: New typedef for tm_region_p.
* trans-mem.c: New typedef for tm_region_p.
	Define vector types for tm_region_p.
	(tm_region_init): Replace region_worklist to a vector called
	bb_regions.

From-SVN: r185001
2012-03-06 16:28:48 +00:00
Aldy Hernandez 887c5c0015 re PR middle-end/52463 (libitm.c/memcpy-1.c FAILs)
PR middle-end/52463
	* trans-mem.c (tm_region_init): Use last_basic_block.

From-SVN: r184992
2012-03-06 14:44:27 +00:00
Aldy Hernandez ea68184553 re PR middle-end/52463 (libitm.c/memcpy-1.c FAILs)
PR middle-end/52463
	* trans-mem.c (tm_region_init): Use last_basic_block.

From-SVN: r184991
2012-03-06 14:37:54 +00:00
GCC Administrator 2158614a59 Daily bump.
From-SVN: r184970
2012-03-06 00:19:14 +00:00
Richard Henderson 8549703e32 re PR tree-optimization/52242 (libgomp.c/atomic-2.c failure on s390x)
PR tree-opt/52242
	Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
	* omp-low.c (expand_omp_atomic): Assume anything aligned to
	BIGGEST_ALIGNMENT is aligned.

From-SVN: r184956
2012-03-05 11:53:54 -08:00
Torvald Riegel 38cdf40323 libitm: Update texinfo docs.
Backported from mainline @184940.
	libitm/
	* libitm.texi: Link to specification and add a usage example.

From-SVN: r184954
2012-03-05 19:26:37 +00:00
Oleg Endo b7fabe6d57 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
From-SVN: r184951
2012-03-05 10:52:44 -08:00
Richard Henderson 4bf3e7a19c re PR target/52481 (m68k-*: internal compiler error: in extract_insn, at recog.c:2123)
PR target/52481
	* config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
	instead of calling negqi2 directly.

From-SVN: r184950
2012-03-05 10:41:56 -08:00
Joseph Myers c356b64a86 * sv.po: Update.
From-SVN: r184931
2012-03-05 13:06:26 +00:00
Rainer Orth 73becb4bb0 Fix 64-bit *intmax_t definitions on IRIX
* config/mips/iris6.h [!USED_FOR_TARGET] (long_intmax): Declare.
	(INTMAX_TYPE): Use it.
	(UINTMAX_TYPE): Likewise.
	(SUBTARGET_OVERRIDE_OPTIONS): Define.
	(irix6_c_common_override_options): Declare.
	(C_COMMON_OVERRIDE_OPTIONS): Define.
	* config/mips/mips.c [TARGET_IRIX6] (long_intmax): Define.
	* config/mips/irix6-c.c: New file.
	* config/mips/t-irix6 (irix6-c.o): New target.
	* config.gcc (mips-sgi-irix6.5): Set c_target_objs,
	cxx_target_objs.

From-SVN: r184921
2012-03-05 10:43:22 +00:00
GCC Administrator 147d7b70f5 Daily bump.
From-SVN: r184909
2012-03-05 00:18:34 +00:00
Georg-Johann Lay 819a5a6bde backport: pr52402.c: Add dg-require-effective-target int32plus.
Backport from mainline r184894.
	* gcc.dg/torture/pr52402.c: Add dg-require-effective-target
	int32plus.

From-SVN: r184895
2012-03-04 20:59:46 +00:00
Richard Henderson 69d598889f optabs.c (expand_atomic_test_and_set): Honor atomic_test_and_set_trueval even when atomic_test_and_set optab is not in use.
* optabs.c (expand_atomic_test_and_set): Honor
	atomic_test_and_set_trueval even when atomic_test_and_set
	optab is not in use.

From-SVN: r184878
2012-03-03 18:34:55 -08:00
GCC Administrator fbc79413e8 Daily bump.
From-SVN: r184871
2012-03-04 00:19:11 +00:00
Joseph Myers 5ee993423a * de.po: Update.
From-SVN: r184861
2012-03-03 17:35:55 +00:00
Joseph Myers 01d75abf7c * gcc.pot: Regenerate.
From-SVN: r184853
2012-03-03 12:04:08 +00:00
GCC Administrator a33d63b288 Daily bump.
From-SVN: r184848
2012-03-03 00:18:26 +00:00
Benjamin Kosnik 20679157f2 cstdio: Remove extraneous extern.
* include/c_global/cstdio: Remove extraneous extern.
	* include/c_std/cstdio: Same.

From-SVN: r184842
2012-03-02 23:57:14 +01:00
Peter Bergner a235425a12 backport: vsx.md (vsx_set_<mode>): Reorder operands.
Backport from mainline
	2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
gcc/
	* config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.

gcc/testsuite/
	* gcc.target/powerpc/pr52457.c: New test.

From-SVN: r184812
2012-03-02 12:32:59 -06:00
Richard Guenther 331722cf4c DEV-PHASE: Set to prerelease.
2012-03-02  Richard Guenther  <rguenther@suse.de>

        * DEV-PHASE: Set to prerelease.

From-SVN: r184779
2012-03-02 11:08:40 +00:00
2853 changed files with 234596 additions and 133381 deletions

View File

@ -1,3 +1,47 @@
2014-06-12 Release Manager
* GCC 4.7.4 released.
2013-04-11 Release Manager
* GCC 4.7.3 released.
2012-09-20 Release Manager
* GCC 4.7.2 released.
2012-09-05 Georg-Johann Lay <avr@gjlay.de>
Backport from 2012-09-05 mainline r190697.
PR target/54461
* configure.ac (noconfigdirs,target=avr-*-*): Add target-newlib,
target-libgloss if configured --with-avrlibc.
* configure: Regenerate.
2012-06-14 Release Manager
* GCC 4.7.1 released.
2012-05-16 Olivier Hainque <hainque@adacore.com>
* Makefile.tpl (gcc-no-fixedincludes): Rename into ...
(gcc-install-no-fixedincludes): Now forwarder to local target in gcc/
(install-no-fixedincludes): Adjust accordingly.
* Makefile.in: Regenerate.
2012-03-28 Georg-Johann Lay <avr@gjlay.de>
Backport from 2012-03-28 mainline r185907.
PR target/52737
* contrib/gcc_update (files_and_dependencies):
Remove gcc/config/avr/t-multilib from touch data.
2012-03-22 Release Manager
* GCC 4.7.0 released.
2012-02-17 Walter Lee <walt@tilera.com>
* MAINTAINERS: (Write After Approval): Delete myself.

View File

@ -2426,11 +2426,12 @@ install.all: install-no-fixedincludes
true ; \
fi
# install-no-fixedincludes is used because Cygnus can not distribute
# the fixed header files.
# install-no-fixedincludes is used to allow the elaboration of binary packages
# suitable for distribution, where we cannot include the fixed system header
# files.
.PHONY: install-no-fixedincludes
install-no-fixedincludes: installdirs install-host-nogcc \
install-target gcc-no-fixedincludes
install-target gcc-install-no-fixedincludes
.PHONY: install-strip
install-strip:
@ -40721,25 +40722,16 @@ check-gcc-go:
check-go: check-gcc-go check-target-libgo
# Install the gcc headers files, but not the fixed include files,
# which Cygnus is not allowed to distribute. This rule is very
# dependent on the workings of the gcc Makefile.in.
.PHONY: gcc-no-fixedincludes
gcc-no-fixedincludes:
# The gcc part of install-no-fixedincludes, which relies on an intimate
# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
.PHONY: gcc-install-no-fixedincludes
gcc-install-no-fixedincludes:
@if [ -f ./gcc/Makefile ]; then \
rm -rf gcc/tmp-include; \
mv gcc/include gcc/tmp-include 2>/dev/null; \
mkdir gcc/include; \
cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
touch gcc/stmp-fixinc gcc/include/fixed; \
rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
(cd ./gcc && \
$(MAKE) $(GCC_FLAGS_TO_PASS) install); \
rm -rf gcc/include; \
mv gcc/tmp-include gcc/include 2>/dev/null; \
(cd ./gcc \
&& $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
else true; fi
@endif gcc

View File

@ -906,11 +906,12 @@ install.all: install-no-fixedincludes
true ; \
fi
# install-no-fixedincludes is used because Cygnus can not distribute
# the fixed header files.
# install-no-fixedincludes is used to allow the elaboration of binary packages
# suitable for distribution, where we cannot include the fixed system header
# files.
.PHONY: install-no-fixedincludes
install-no-fixedincludes: installdirs install-host-nogcc \
install-target gcc-no-fixedincludes
install-target gcc-install-no-fixedincludes
.PHONY: install-strip
install-strip:
@ -1443,25 +1444,16 @@ check-gcc-[+language+]:
check-[+language+]: check-gcc-[+language+][+ FOR lib-check-target +] [+ lib-check-target +][+ ENDFOR lib-check-target +]
[+ ENDFOR languages +]
# Install the gcc headers files, but not the fixed include files,
# which Cygnus is not allowed to distribute. This rule is very
# dependent on the workings of the gcc Makefile.in.
.PHONY: gcc-no-fixedincludes
gcc-no-fixedincludes:
# The gcc part of install-no-fixedincludes, which relies on an intimate
# knowledge of how a number of gcc internal targets (inter)operate. Delegate.
.PHONY: gcc-install-no-fixedincludes
gcc-install-no-fixedincludes:
@if [ -f ./gcc/Makefile ]; then \
rm -rf gcc/tmp-include; \
mv gcc/include gcc/tmp-include 2>/dev/null; \
mkdir gcc/include; \
cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
touch gcc/stmp-fixinc gcc/include/fixed; \
rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(HOST_EXPORTS) \
(cd ./gcc && \
$(MAKE) $(GCC_FLAGS_TO_PASS) install); \
rm -rf gcc/include; \
mv gcc/tmp-include gcc/include 2>/dev/null; \
(cd ./gcc \
&& $(MAKE) $(GCC_FLAGS_TO_PASS) install-no-fixedincludes); \
else true; fi
@endif gcc

View File

@ -1,3 +1,31 @@
2014-06-12 Release Manager
* GCC 4.7.4 released.
2013-04-11 Release Manager
* GCC 4.7.3 released.
2012-09-20 Jakub Jelinek <jakub@redhat.com>
PR other/43620
* Makefile.am (AUTOMAKE_OPTIONS): Add no-dist.
* Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
2012-09-20 Release Manager
* GCC 4.7.2 released.
2012-06-14 Release Manager
* GCC 4.7.1 released.
2012-03-22 Release Manager
* GCC 4.7.0 released.
2012-02-27 Jack Howarth <howarth@bromo.med.uc.edu>
Patrick Marlier <patrick.marlier@gmail.com>

View File

@ -4,7 +4,7 @@
## files that should be in the distribution are not mentioned in this
## Makefile.am.
AUTOMAKE_OPTIONS = foreign subdir-objects
AUTOMAKE_OPTIONS = foreign subdir-objects no-dist
ACLOCAL_AMFLAGS = -I .. -I ../config
SUBDIRS = include testsuite

View File

@ -36,13 +36,10 @@ build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
subdir = .
DIST_COMMON = $(am__configure_deps) $(srcdir)/../compile \
$(srcdir)/../config.guess $(srcdir)/../config.sub \
$(srcdir)/../depcomp $(srcdir)/../install-sh \
$(srcdir)/../ltmain.sh $(srcdir)/../missing \
$(srcdir)/../mkinstalldirs $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/threads.mk.in \
$(top_srcdir)/configure ChangeLog depcomp
DIST_COMMON = ChangeLog $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(top_srcdir)/configure $(am__configure_deps) \
$(srcdir)/../mkinstalldirs $(srcdir)/threads.mk.in \
$(srcdir)/../depcomp
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
$(top_srcdir)/../config/depstand.m4 \
@ -63,14 +60,6 @@ CONFIG_CLEAN_FILES = threads.mk
CONFIG_CLEAN_VPATH_FILES =
LTLIBRARIES = $(noinst_LTLIBRARIES)
am__DEPENDENCIES_1 =
am__libgcjgc_la_SOURCES_DIST = allchblk.c alloc.c blacklst.c \
checksums.c dbg_mlc.c dyn_load.c finalize.c gc_dlopen.c \
gcj_mlc.c headers.c malloc.c mallocx.c mark.c mark_rts.c \
misc.c new_hblk.c obj_map.c os_dep.c pcr_interface.c \
ptr_chck.c real_malloc.c reclaim.c specific.c stubborn.c \
typd_mlc.c backgraph.c win32_threads.c pthread_support.c \
pthread_stop_world.c darwin_stop_world.c \
powerpc_darwin_mach_dep.s
@POWERPC_DARWIN_TRUE@am__objects_1 = powerpc_darwin_mach_dep.lo
am_libgcjgc_la_OBJECTS = allchblk.lo alloc.lo blacklst.lo checksums.lo \
dbg_mlc.lo dyn_load.lo finalize.lo gc_dlopen.lo gcj_mlc.lo \
@ -80,14 +69,6 @@ am_libgcjgc_la_OBJECTS = allchblk.lo alloc.lo blacklst.lo checksums.lo \
backgraph.lo win32_threads.lo pthread_support.lo \
pthread_stop_world.lo darwin_stop_world.lo $(am__objects_1)
libgcjgc_la_OBJECTS = $(am_libgcjgc_la_OBJECTS)
am__libgcjgc_convenience_la_SOURCES_DIST = allchblk.c alloc.c \
blacklst.c checksums.c dbg_mlc.c dyn_load.c finalize.c \
gc_dlopen.c gcj_mlc.c headers.c malloc.c mallocx.c mark.c \
mark_rts.c misc.c new_hblk.c obj_map.c os_dep.c \
pcr_interface.c ptr_chck.c real_malloc.c reclaim.c specific.c \
stubborn.c typd_mlc.c backgraph.c win32_threads.c \
pthread_support.c pthread_stop_world.c darwin_stop_world.c \
powerpc_darwin_mach_dep.s
am__objects_2 = allchblk.lo alloc.lo blacklst.lo checksums.lo \
dbg_mlc.lo dyn_load.lo finalize.lo gc_dlopen.lo gcj_mlc.lo \
headers.lo malloc.lo mallocx.lo mark.lo mark_rts.lo misc.lo \
@ -115,8 +96,6 @@ CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
LTCCASCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=compile $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
SOURCES = $(libgcjgc_la_SOURCES) $(libgcjgc_convenience_la_SOURCES)
DIST_SOURCES = $(am__libgcjgc_la_SOURCES_DIST) \
$(am__libgcjgc_convenience_la_SOURCES_DIST)
MULTISRCTOP =
MULTIBUILDTOP =
MULTIDIRS =
@ -133,47 +112,10 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
distdir dist dist-all distcheck
$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
am__remove_distdir = \
{ test ! -d "$(distdir)" \
|| { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
&& rm -fr "$(distdir)"; }; }
am__relativize = \
dir0=`pwd`; \
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
sed_rest='s,^[^/]*/*,,'; \
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
sed_butlast='s,/*[^/]*$$,,'; \
while test -n "$$dir1"; do \
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
if test "$$first" != "."; then \
if test "$$first" = ".."; then \
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
else \
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
if test "$$first2" = "$$first"; then \
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
else \
dir2="../$$dir2"; \
fi; \
dir0="$$dir0"/"$$first"; \
fi; \
fi; \
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
DIST_ARCHIVES = $(distdir).tar.gz
GZIP_ENV = --best
distuninstallcheck_listfiles = find . -type f -print
distcleancheck_listfiles = find . -type f -print
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AM_CPPFLAGS = @AM_CPPFLAGS@
@ -314,7 +256,7 @@ toolexeclibdir = @toolexeclibdir@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = foreign subdir-objects
AUTOMAKE_OPTIONS = foreign subdir-objects no-dist
ACLOCAL_AMFLAGS = -I .. -I ../config
SUBDIRS = include testsuite
noinst_LTLIBRARIES = libgcjgc.la libgcjgc_convenience.la
@ -672,182 +614,6 @@ GTAGS:
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
$(am__remove_distdir)
test -d "$(distdir)" || mkdir "$(distdir)"
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
dir1=$$subdir; dir2="$(top_distdir)"; \
$(am__relativize); \
new_top_distdir=$$reldir; \
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$new_top_distdir" \
distdir="$$new_distdir" \
am__remove_distdir=: \
am__skip_length_check=: \
am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
done
-test -n "$(am__skip_mode_fix)" \
|| find "$(distdir)" -type d ! -perm -755 \
-exec chmod u+rwx,go+rx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r "$(distdir)"
dist-gzip: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
dist-bzip2: distdir
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
$(am__remove_distdir)
dist-lzma: distdir
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
$(am__remove_distdir)
dist-xz: distdir
tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
$(am__remove_distdir)
dist-tarZ: distdir
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
$(am__remove_distdir)
dist-shar: distdir
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
$(am__remove_distdir)
dist-zip: distdir
-rm -f $(distdir).zip
zip -rq $(distdir).zip $(distdir)
$(am__remove_distdir)
dist dist-all: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
case '$(DIST_ARCHIVES)' in \
*.tar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
*.tar.bz2*) \
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
*.tar.lzma*) \
lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
*.tar.xz*) \
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
*.tar.Z*) \
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
*.shar.gz*) \
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
*.zip*) \
unzip $(distdir).zip ;;\
esac
chmod -R a-w $(distdir); chmod a+w $(distdir)
mkdir $(distdir)/_build
mkdir $(distdir)/_inst
chmod a-w $(distdir)
test -d $(distdir)/_build || exit 0; \
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
&& am__cwd=`pwd` \
&& $(am__cd) $(distdir)/_build \
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
$(DISTCHECK_CONFIGURE_FLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
distuninstallcheck \
&& chmod -R a-w "$$dc_install_base" \
&& ({ \
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
} || { rm -rf "$$dc_destdir"; exit 1; }) \
&& rm -rf "$$dc_destdir" \
&& $(MAKE) $(AM_MAKEFLAGS) dist \
&& rm -rf $(DIST_ARCHIVES) \
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
&& cd "$$am__cwd" \
|| exit 1
$(am__remove_distdir)
@(echo "$(distdir) archives ready for distribution: "; \
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
distuninstallcheck:
@$(am__cd) '$(distuninstallcheck_dir)' \
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|| { echo "ERROR: files left after uninstall:" ; \
if test -n "$(DESTDIR)"; then \
echo " (check DESTDIR support)"; \
fi ; \
$(distuninstallcheck_listfiles) ; \
exit 1; } >&2
distcleancheck: distclean
@if test '$(srcdir)' = . ; then \
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
exit 1 ; \
fi
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|| { echo "ERROR: files left in build directory after distclean:" ; \
$(distcleancheck_listfiles) ; \
exit 1; } >&2
check-am: all-am
check: check-recursive
all-am: Makefile $(LTLIBRARIES) all-multi
@ -960,21 +726,19 @@ uninstall-am:
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
all all-am all-multi am--refresh check check-am clean \
clean-generic clean-libtool clean-multi \
clean-noinstLTLIBRARIES ctags ctags-recursive dist dist-all \
dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz \
dist-zip distcheck distclean distclean-compile \
distclean-generic distclean-libtool distclean-multi \
distclean-tags distcleancheck distdir distuninstallcheck dvi \
dvi-am html html-am info info-am install install-am \
install-data install-data-am install-dvi install-dvi-am \
install-exec install-exec-am install-html install-html-am \
install-info install-info-am install-man install-multi \
install-pdf install-pdf-am install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
installdirs-am maintainer-clean maintainer-clean-generic \
maintainer-clean-multi mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool mostlyclean-multi pdf \
pdf-am ps ps-am tags tags-recursive uninstall uninstall-am
clean-noinstLTLIBRARIES ctags ctags-recursive distclean \
distclean-compile distclean-generic distclean-libtool \
distclean-multi distclean-tags dvi dvi-am html html-am info \
info-am install install-am install-data install-data-am \
install-dvi install-dvi-am install-exec install-exec-am \
install-html install-html-am install-info install-info-am \
install-man install-multi install-pdf install-pdf-am \
install-ps install-ps-am install-strip installcheck \
installcheck-am installdirs installdirs-am maintainer-clean \
maintainer-clean-generic maintainer-clean-multi mostlyclean \
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
mostlyclean-multi pdf pdf-am ps ps-am tags tags-recursive \
uninstall uninstall-am
override CFLAGS := $(filter-out $(O0_CFLAGS), $(CFLAGS)) $(O0_CFLAGS)

View File

@ -36,9 +36,9 @@ build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
subdir = include
DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/gc_config.h.in \
$(srcdir)/gc_ext_config.h.in
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(srcdir)/gc_config.h.in $(srcdir)/gc_ext_config.h.in \
$(noinst_HEADERS)
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
$(top_srcdir)/../config/depstand.m4 \
@ -55,11 +55,9 @@ CONFIG_HEADER = gc_config.h gc_ext_config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
SOURCES =
DIST_SOURCES =
HEADERS = $(noinst_HEADERS)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AM_CPPFLAGS = @AM_CPPFLAGS@
@ -323,37 +321,6 @@ GTAGS:
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(HEADERS) gc_config.h gc_ext_config.h
@ -453,16 +420,15 @@ uninstall-am:
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-libtool ctags distclean distclean-generic distclean-hdr \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-man install-pdf install-pdf-am \
install-ps install-ps-am install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
uninstall-am
distclean-libtool distclean-tags dvi dvi-am html html-am info \
info-am install install-am install-data install-data-am \
install-dvi install-dvi-am install-exec install-exec-am \
install-html install-html-am install-info install-info-am \
install-man install-pdf install-pdf-am install-ps \
install-ps-am install-strip installcheck installcheck-am \
installdirs maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
ps ps-am tags uninstall uninstall-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.

View File

@ -35,7 +35,7 @@ build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
subdir = testsuite
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
$(top_srcdir)/../config/depstand.m4 \
@ -53,10 +53,8 @@ CONFIG_HEADER = $(top_builddir)/include/gc_config.h \
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
SOURCES =
DIST_SOURCES =
RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
RUNTEST = runtest
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AM_CPPFLAGS = @AM_CPPFLAGS@
@ -267,37 +265,6 @@ distclean-DEJAGNU:
-l='$(DEJATOOL)'; for tool in $$l; do \
rm -f $$tool.sum $$tool.log; \
done
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
$(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
check: check-am
@ -399,8 +366,8 @@ uninstall-am:
.PHONY: all all-am check check-DEJAGNU check-am clean clean-generic \
clean-libtool distclean distclean-DEJAGNU distclean-generic \
distclean-libtool distdir dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am install-dvi \
distclean-libtool dvi dvi-am html html-am info info-am install \
install-am install-data install-data-am install-dvi \
install-dvi-am install-exec install-exec-am install-html \
install-html-am install-info install-info-am install-man \
install-pdf install-pdf-am install-ps install-ps-am \

View File

@ -1,3 +1,23 @@
2014-06-12 Release Manager
* GCC 4.7.4 released.
2013-04-11 Release Manager
* GCC 4.7.3 released.
2012-09-20 Release Manager
* GCC 4.7.2 released.
2012-06-14 Release Manager
* GCC 4.7.1 released.
2012-03-22 Release Manager
* GCC 4.7.0 released.
2012-01-22 Douglas B Rupp <rupp@gnat.com>
* config/mh-interix: Remove as unneeded.

7
configure vendored
View File

@ -3447,6 +3447,13 @@ case "${target}" in
arm-*-riscix*)
noconfigdirs="$noconfigdirs ld target-libgloss"
;;
avr-*-rtems*)
;;
avr-*-*)
if test x${with_avrlibc} = xyes; then
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
fi
;;
c4x-*-* | tic4x-*-*)
noconfigdirs="$noconfigdirs target-libgloss"
;;

View File

@ -873,6 +873,13 @@ case "${target}" in
arm-*-riscix*)
noconfigdirs="$noconfigdirs ld target-libgloss"
;;
avr-*-rtems*)
;;
avr-*-*)
if test x${with_avrlibc} = xyes; then
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
fi
;;
c4x-*-* | tic4x-*-*)
noconfigdirs="$noconfigdirs target-libgloss"
;;

View File

@ -1,3 +1,34 @@
2014-06-12 Release Manager
* GCC 4.7.4 released.
2014-02-02 Uros Bizjak <ubizjak@gmail.com>
Backport from mainline
2012-05-09 David Edelsohn <dje.gcc@gmail.com>
* gcc_update: Use $GCC_SVN to retrieve branch and revision.
2013-04-11 Release Manager
* GCC 4.7.3 released.
2012-09-20 Release Manager
* GCC 4.7.2 released.
2012-06-14 Release Manager
* GCC 4.7.1 released.
2012-03-22 Release Manager
* GCC 4.7.0 released.
2012-03-13 Joseph Myers <joseph@codesourcery.com>
* gennews (files): Add files for GCC 4.7.
2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR libstdc++/52188

View File

@ -83,7 +83,6 @@ gcc/config/arm/arm-tune.md: gcc/config/arm/arm-cores.def gcc/config/arm/gentune.
gcc/config/arm/arm-tables.opt: gcc/config/arm/arm-arches.def gcc/config/arm/arm-cores.def gcc/config/arm/arm-fpus.def gcc/config/arm/genopt.sh
gcc/config/avr/avr-tables.opt: gcc/config/avr/avr-mcus.def gcc/config/avr/genopt.sh
gcc/config/avr/t-multilib: gcc/config/avr/avr-mcus.def gcc/config/avr/genmultilib.awk
gcc/config/avr/multilib.h: gcc/config/avr/avr-mcus.def gcc/config/avr/genmultilib.awk
gcc/config/c6x/c6x-tables.opt: gcc/config/c6x/c6x-isas.def gcc/config/c6x/genopt.sh
gcc/config/c6x/c6x-sched.md: gcc/config/c6x/c6x-sched.md.in gcc/config/c6x/gensched.sh
gcc/config/c6x/c6x-mult.md: gcc/config/c6x/c6x-mult.md.in gcc/config/c6x/genmult.sh
@ -368,8 +367,8 @@ case $vcs_type in
exit 1
fi
revision=`svn info | awk '/Revision:/ { print $2 }'`
branch=`svn info | sed -ne "/URL:/ {
revision=`$GCC_SVN info | awk '/Revision:/ { print $2 }'`
branch=`$GCC_SVN info | sed -ne "/^URL:/ {
s,.*/trunk,trunk,
s,.*/branches/,,
s,.*/tags/,,

View File

@ -3,8 +3,8 @@
# Script to generate the NEWS file from online release notes.
# Contributed by Joseph Myers <jsm28@cam.ac.uk>.
#
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2010, 2011
# Free Software Foundation, Inc.
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2010, 2011,
# 2012 Free Software Foundation, Inc.
# This file is part of GCC.
#
# GCC is free software; you can redistribute it and/or modify
@ -24,6 +24,7 @@
website=http://gcc.gnu.org/
files="
gcc-4.7/index.html gcc-4.7/changes.html
gcc-4.6/index.html gcc-4.6/changes.html
gcc-4.5/index.html gcc-4.5/changes.html
gcc-4.4/index.html gcc-4.4/changes.html

View File

@ -1,3 +1,23 @@
2014-06-12 Release Manager
* GCC 4.7.4 released.
2013-04-11 Release Manager
* GCC 4.7.3 released.
2012-09-20 Release Manager
* GCC 4.7.2 released.
2012-06-14 Release Manager
* GCC 4.7.1 released.
2012-03-22 Release Manager
* GCC 4.7.0 released.
2010-06-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* bin/gcc-svn-ids: Fix unportable shell quoting.

View File

@ -1,3 +1,23 @@
2014-06-12 Release Manager
* GCC 4.7.4 released.
2013-04-11 Release Manager
* GCC 4.7.3 released.
2012-09-20 Release Manager
* GCC 4.7.2 released.
2012-06-14 Release Manager
* GCC 4.7.1 released.
2012-03-22 Release Manager
* GCC 4.7.0 released.
2009-09-02 Geoff Keating <geoffk@apple.com>
* btest-gcc.sh: Continue after bootstrap comparison failure.

View File

@ -1,3 +1,29 @@
2014-06-12 Release Manager
* GCC 4.7.4 released.
2013-04-11 Release Manager
* GCC 4.7.3 released.
2012-09-20 Release Manager
* GCC 4.7.2 released.
2012-06-14 Release Manager
* GCC 4.7.1 released.
2012-03-26 David Edelsohn <dje.gcc@gmail.com>
* inclhack.def (aix_malloc): New.
* fixincl.x: Regenerate.
* tests/base/malloc.h [AIX_MALLOC_CHECK]: New.
2012-03-22 Release Manager
* GCC 4.7.0 released.
2012-01-11 Bruce Korb <bkorb@gnu.org>
Steven G. Kargl <kargl@gcc.gnu.org>
Andreas Tobler <andreast@fgznet.ch>

View File

@ -2,11 +2,11 @@
*
* DO NOT EDIT THIS FILE (fixincl.x)
*
* It has been AutoGen-ed January 9, 2012 at 11:55:38 PM by AutoGen 5.12
* It has been AutoGen-ed March 26, 2012 at 10:53:21 AM by AutoGen 5.10
* From the definitions inclhack.def
* and the template file fixincl
*/
/* DO NOT SVN-MERGE THIS FILE, EITHER Mon Jan 9 23:55:38 CET 2012
/* DO NOT SVN-MERGE THIS FILE, EITHER Mon Mar 26 10:53:21 EDT 2012
*
* You must regenerate it. Use the ./genfixes script.
*
@ -15,7 +15,7 @@
* certain ANSI-incompatible system header files which are fixed to work
* correctly with ANSI C and placed in a directory that GNU C will search.
*
* This file contains 223 fixup descriptions.
* This file contains 224 fixup descriptions.
*
* See README for more information.
*
@ -520,6 +520,43 @@ static const char* apzAix_ComplexPatch[] = {
"#define _Complex_I (__extension__ 1.0iF)",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Malloc fix
*/
tSCC zAix_MallocName[] =
"aix_malloc";
/*
* File name selection pattern
*/
tSCC zAix_MallocList[] =
"malloc.h\0";
/*
* Machine/OS name selection pattern
*/
tSCC* apzAix_MallocMachs[] = {
"*-*-aix*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zAix_MallocSelect0[] =
"#ifdef __cplusplus";
#define AIX_MALLOC_TEST_CT 1
static tTestDesc aAix_MallocTests[] = {
{ TT_EGREP, zAix_MallocSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Aix_Malloc
*/
static const char* apzAix_MallocPatch[] = {
"format",
"#if (defined(__cplusplus) && defined(__IBMCPP__))",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Aix_Net_If_Arp fix
@ -9069,9 +9106,9 @@ static const char* apzX11_SprintfPatch[] = {
*
* List of all fixes
*/
#define REGEX_COUNT 265
#define REGEX_COUNT 266
#define MACH_LIST_SIZE_LIMIT 181
#define FIX_COUNT 223
#define FIX_COUNT 224
/*
* Enumerate the fixes
@ -9086,6 +9123,7 @@ typedef enum {
AAB_SOLARIS_SYS_VARARGS_H_FIXIDX,
AAB_SUN_MEMCPY_FIXIDX,
AIX_COMPLEX_FIXIDX,
AIX_MALLOC_FIXIDX,
AIX_NET_IF_ARP_FIXIDX,
AIX_ONCE_INIT_1_FIXIDX,
AIX_ONCE_INIT_2_FIXIDX,
@ -9348,6 +9386,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
AIX_COMPLEX_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aAix_ComplexTests, apzAix_ComplexPatch, 0 },
{ zAix_MallocName, zAix_MallocList,
apzAix_MallocMachs,
AIX_MALLOC_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aAix_MallocTests, apzAix_MallocPatch, 0 },
{ zAix_Net_If_ArpName, zAix_Net_If_ArpList,
apzAix_Net_If_ArpMachs,
AIX_NET_IF_ARP_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,

View File

@ -369,6 +369,19 @@ fix = {
test_text = "#define _Complex_I __I\n";
};
/*
* malloc.h on AIX6 uses XLC++ specific builtin syntax
*/
fix = {
hackname = aix_malloc;
mach = "*-*-aix*";
files = "malloc.h";
select = "#ifdef __cplusplus";
c_fix = format;
c_fix_arg = "#if (defined(__cplusplus) && defined(__IBMCPP__))";
test_text = "#ifdef __cplusplus";
};
/*
* net/if_arp.h defines a variable fc_softc instead of adding a
* typedef for the struct on AIX 5.2, 5.3, 6.1 and 7.1

View File

@ -9,6 +9,11 @@
#if defined( AIX_MALLOC_CHECK )
#if (defined(__cplusplus) && defined(__IBMCPP__))
#endif /* AIX_MALLOC_CHECK */
#if defined( SUN_MALLOC_CHECK )
typedef void * malloc_t;
void free();

View File

@ -1 +1 @@
4.7.0
4.7.4

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
20120302
20140612

View File

@ -1 +0,0 @@
experimental

View File

@ -540,6 +540,21 @@ extra_modes_file=@extra_modes_file@
extra_opt_files=@extra_opt_files@
host_hook_obj=@out_host_hook_obj@
# Multiarch support
enable_multiarch = @enable_multiarch@
with_cpu = @with_cpu@
with_float = @with_float@
ifeq ($(enable_multiarch),yes)
if_multiarch = $(1)
else
ifeq ($(enable_multiarch),auto)
# SYSTEM_HEADER_DIR is makefile syntax, cannot be evaluated in configure.ac
if_multiarch = $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib/*/crti.o),$(1))
else
if_multiarch =
endif
endif
# ------------------------
# Installation directories
# ------------------------
@ -1104,7 +1119,7 @@ FLAGS_TO_PASS = \
"build_tooldir=$(build_tooldir)" \
"gcc_tooldir=$(gcc_tooldir)" \
"bindir=$(bindir)" \
"libexecsubdir=$(libsubdir)" \
"libexecsubdir=$(libexecsubdir)" \
"datarootdir=$(datarootdir)" \
"datadir=$(datadir)" \
"localedir=$(localedir)"
@ -1833,10 +1848,11 @@ s-mlib: $(srcdir)/genmultilib Makefile
"$(MULTILIB_EXTRA_OPTS)" \
"$(MULTILIB_EXCLUSIONS)" \
"$(MULTILIB_OSDIRNAMES)" \
"$(MULTIARCH_DIRNAME)" \
"@enable_multilib@" \
> tmp-mlib.h; \
else \
$(SHELL) $(srcdir)/genmultilib '' '' '' '' '' '' '' no \
$(SHELL) $(srcdir)/genmultilib '' '' '' '' '' '' '' "$(MULTIARCH_DIRNAME)" no \
> tmp-mlib.h; \
fi
$(SHELL) $(srcdir)/../move-if-change tmp-mlib.h multilib.h
@ -2554,7 +2570,7 @@ tree-ssa-reassoc.o : tree-ssa-reassoc.c $(TREE_FLOW_H) $(CONFIG_H) \
$(TM_H) coretypes.h $(TREE_DUMP_H) $(TREE_PASS_H) $(FLAGS_H) \
tree-iterator.h $(BASIC_BLOCK_H) $(GIMPLE_H) $(TREE_INLINE_H) \
$(VEC_H) langhooks.h alloc-pool.h pointer-set.h $(CFGLOOP_H) \
tree-pretty-print.h gimple-pretty-print.h $(DIAGNOSTIC_CORE_H)
tree-pretty-print.h gimple-pretty-print.h $(DIAGNOSTIC_CORE_H) $(PARAMS_H)
tree-optimize.o : tree-optimize.c $(TREE_FLOW_H) $(CONFIG_H) $(SYSTEM_H) \
$(TREE_H) $(TM_P_H) $(GGC_H) output.h \
$(DIAGNOSTIC_H) $(BASIC_BLOCK_H) $(FLAGS_H) $(TIMEVAR_H) $(TM_H) \
@ -2580,7 +2596,7 @@ gimple-low.o : gimple-low.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) \
$(DIAGNOSTIC_H) $(GIMPLE_H) $(TREE_INLINE_H) langhooks.h \
$(LANGHOOKS_DEF_H) $(TREE_FLOW_H) $(TIMEVAR_H) $(TM_H) coretypes.h \
$(EXCEPT_H) $(FLAGS_H) $(RTL_H) $(FUNCTION_H) $(EXPR_H) $(TREE_PASS_H) \
$(HASHTAB_H) $(DIAGNOSTIC_CORE_H) tree-iterator.h
$(HASHTAB_H) $(DIAGNOSTIC_CORE_H) tree-iterator.h langhooks.h
omp-low.o : omp-low.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
$(RTL_H) $(GIMPLE_H) $(TREE_INLINE_H) langhooks.h $(DIAGNOSTIC_CORE_H) \
$(TREE_FLOW_H) $(TIMEVAR_H) $(FLAGS_H) $(EXPR_H) $(DIAGNOSTIC_CORE_H) \
@ -3350,7 +3366,7 @@ sel-sched.o : sel-sched.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(FUNCTION_H) $(INSN_ATTR_H) $(RECOG_H) $(EXCEPT_H) $(PARAMS_H) \
$(TM_P_H) output.h $(TARGET_H) $(TIMEVAR_H) $(TREE_PASS_H) \
$(SCHED_INT_H) $(GGC_H) $(TREE_H) langhooks.h rtlhooks-def.h \
$(SEL_SCHED_IR_H) $(SEL_SCHED_DUMP_H) sel-sched.h $(DBGCNT_H) $(EMIT_RTL_H)
$(SEL_SCHED_IR_H) $(SEL_SCHED_DUMP_H) sel-sched.h $(DBGCNT_H) $(EMIT_RTL_H) ira.h
sel-sched-dump.o : sel-sched-dump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(RTL_H) $(REGS_H) hard-reg-set.h $(FLAGS_H) insn-config.h \
$(FUNCTION_H) $(INSN_ATTR_H) $(DIAGNOSTIC_CORE_H) $(RECOG_H) $(EXCEPT_H) $(PARAMS_H) \
@ -3417,7 +3433,7 @@ regrename.o : regrename.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
ifcvt.o : ifcvt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \
$(REGS_H) $(DIAGNOSTIC_CORE_H) $(FLAGS_H) insn-config.h $(FUNCTION_H) $(RECOG_H) \
$(TARGET_H) $(BASIC_BLOCK_H) $(EXPR_H) output.h $(EXCEPT_H) $(TM_P_H) \
$(OPTABS_H) $(CFGLOOP_H) hard-reg-set.h $(TIMEVAR_H) \
$(OPTABS_H) $(CFGLOOP_H) hard-reg-set.h pointer-set.h $(TIMEVAR_H) \
$(TREE_PASS_H) $(DF_H) $(DBGCNT_H)
params.o : params.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(COMMON_TARGET_H) \
$(PARAMS_H) $(DIAGNOSTIC_CORE_H)
@ -4038,10 +4054,16 @@ gcov-dump$(exeext): $(GCOV_DUMP_OBJS) $(LIBDEPS)
# Build the include directories.
stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) fixinc_list
# Copy in the headers provided with gcc.
#
# The sed command gets just the last file name component;
# this is necessary because VPATH could add a dirname.
# Using basename would be simpler, but some systems don't have it.
#
# The touch command is here to workaround an AIX/Linux NFS bug.
#
# The move-if-change + cp -p twists for limits.h are intended to preserve
# the time stamp when we regenerate, to prevent pointless rebuilds during
# e.g. install-no-fixedincludes.
-if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
-if [ -d include-fixed ] ; then true; else mkdir include-fixed; chmod a+rx include-fixed; fi
for file in .. $(USER_H); do \
@ -4090,8 +4112,10 @@ stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) fixinc_list
fi; \
$(mkinstalldirs) $${fix_dir}; \
chmod a+rx $${fix_dir} || true; \
$(SHELL) $(srcdir)/../move-if-change \
tmp-xlimits.h tmp-limits.h; \
rm -f $${fix_dir}/limits.h; \
mv tmp-xlimits.h $${fix_dir}/limits.h; \
cp -p tmp-limits.h $${fix_dir}/limits.h; \
chmod a+r $${fix_dir}/limits.h; \
done
# Install the README
@ -4193,6 +4217,42 @@ stmp-fixinc: gsyslimits.h macro_list fixinc_list \
fi
$(STAMP) stmp-fixinc
#
# Install with the gcc headers files, not the fixed include files, which we
# are typically not allowed to distribute. The general idea is to:
# - Get to "install" with a bare set of internal headers, not the
# fixed system ones,
# - Prevent rebuilds of what normally depends on the headers, which is
# useless for installation purposes and would rely on improper headers.
# - Restore as much of the original state as possible.
.PHONY: install-no-fixedincludes
install-no-fixedincludes:
# Stash the current set of headers away, save stamps we're going to
# alter explicitly, and arrange for fixincludes not to run next time
# we trigger a headers rebuild.
-rm -rf tmp-include
-mv include tmp-include 2>/dev/null
-mv include-fixed tmp-include-fixed 2>/dev/null
-mv stmp-int-hdrs tmp-stmp-int-hdrs 2>/dev/null
-mv stmp-fixinc tmp-stmp-fixinc 2>/dev/null
-mkdir include
-cp -p $(srcdir)/gsyslimits.h include/syslimits.h
-touch stmp-fixinc
# Rebuild our internal headers, restore the original stamps so that
# "install" doesn't trigger pointless rebuilds because of that update,
# then do install
$(MAKE) $(FLAGS_TO_PASS) stmp-int-hdrs
-mv tmp-stmp-int-hdrs stmp-int-hdrs 2>/dev/null
-mv tmp-stmp-fixinc stmp-fixinc 2>/dev/null
$(MAKE) $(FLAGS_TO_PASS) install
# Restore the original set of maybe-fixed headers
-rm -rf include; mv tmp-include include 2>/dev/null
-rm -rf include-fixed; mv tmp-include-fixed include-fixed 2>/dev/null
# Remake the info files.
doc: $(BUILD_INFO) $(GENERATED_MANPAGES)
@ -4811,20 +4871,18 @@ install-collect2: collect2 installdirs
install-lto-wrapper: lto-wrapper$(exeext)
$(INSTALL_PROGRAM) lto-wrapper$(exeext) $(DESTDIR)$(libexecsubdir)/lto-wrapper$(exeext)
install-gcc-ar:
set -e ; \
for i in ar nm ranlib ; do \
install_name=`echo gcc-$$i|sed '$(program_transform_name)'`$(exeext) ;\
target_install_name=$(target_noncanonical)-`echo gcc-$$i|sed '$(program_transform_name)'`$(exeext) ; \
binname=gcc-$$i$(exeext) ; \
rm -f $(DESTDIR)$(bindir)/$$install_name ; \
rm -f $(DESTDIR)$(bindir)/$$target_install_name ; \
$(INSTALL_PROGRAM) $$binname $(DESTDIR)$(bindir)/$$install_name ;\
if test -f $(DESTDIR)$(bindir)$$target_install_name ; then \
install-gcc-ar: installdirs gcc-ar$(exeext) gcc-nm$(exeext) gcc-ranlib$(exeext)
for i in gcc-ar gcc-nm gcc-ranlib; do \
install_name=`echo $$i|sed '$(program_transform_name)'` ;\
target_install_name=$(target_noncanonical)-`echo $$i|sed '$(program_transform_name)'` ; \
rm -f $(DESTDIR)$(bindir)/$$install_name$(exeext) ; \
$(INSTALL_PROGRAM) $$i$(exeext) $(DESTDIR)$(bindir)/$$install_name$(exeext) ;\
if test -f gcc-cross$(exeext); then \
:; \
else \
rm -f $(DESTDIR)$(bindir)/$$target_install_name$(exeext); \
( cd $(DESTDIR)$(bindir) && \
$(LN) $$install_name $$target_install_name ) ; \
$(LN) $$install_name$(exeext) $$target_install_name$(exeext) ) ; \
fi ; \
done

View File

@ -1,3 +1,469 @@
2014-06-12 Release Manager
* GCC 4.7.4 released.
2014-03-30 Eric Botcazou <ebotcazou@adacore.com>
PR ada/60703
* system-linux-alpha.ads: Adjust for Ada 2005.
* system-linux-mips.ads: Likewise.
* system-linux-mips64el.ads: Likewise.
* system-linux-mipsel.ads: Likewise.
* system-linux-s390.ads: Likewise.
* system-linux-s390x.ads: Likewise.
* system-linux-sparc.ads: Likewise.
* system-linux-sparcv9.ads: Likewise.
* system-rtems.ads: Likewise.
* system-vxworks-arm.ads: Likewise.
2014-03-13 Eric Botcazou <ebotcazou@adacore.com>
PR ada/51483
* back_end.ads (Register_Type_Proc): Add 'precision' parameter.
* cstand.adb (Register_Float_Type): Add 'precision' parameter and use
it to set the RM size. Use directly 'size' for the Esize.
* gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
* gcc-interface/misc.c (enumerate_modes): Likewise. Do not register
types for vector modes, pass the size in addition to the precision.
2014-01-12 Eric Botcazou <ebotcazou@adacore.com>
PR ada/59772
* gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
as intermediate type.
(UI_To_gnu): Likewise.
2013-12-12 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/Make-lang.in (ada/doctools/xgnatugn): Use gnatmake.
2013-10-19 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (gnat_set_type_context): New function.
(gnat_pushdecl): Use it to set the context of the type.
2013-09-18 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Subprogram_Body_to_gnu): Pop the stack of
return variables for subprograms using the CICO mechanism.
2013-08-13 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (can_equal_min_or_max_val_p): Be prepared for
values outside of the range of the type.
2013-05-26 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Last_Bit>: Add kludge
to avoid generating an overflow for -1.
2013-04-11 Release Manager
* GCC 4.7.3 released.
2013-03-08 Cesar Strauss <cestrauss@gmail.com>
PR ada/52123
* seh_init.c (Raise_From_Signal_Handler): Declare as no-return.
(__gnat_SEH_error_handler): Likewise. Remove final return.
2013-02-21 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/56258
* gnat-style.texi (@title): Remove @hfill.
* projects.texi: Avoid line wrapping inside of @pxref or @xref.
2013-02-20 Eric Botcazou <ebotcazou@adacore.com>
PR ada/56271
Backport from mainline
2012-05-15 Olivier Hainque <hainque@adacore.com>
* gcc-interface/Make-lang.in (COMMON_FLAGS_TO_PASS): Use WARN_CFLAGS
instead of trying to mimic it.
2013-02-14 Rainer Emrich <rainer@emrich-ebersheim.de>
Back-port from mainline.
PR target/52123
* adaint.c (__gnat_check_OWNER_ACL): Cast from pointer via
SECURITY_DESCRIPTOR *.
(__gnat_set_OWNER_ACL): Cast from DWORD to ACCESS_MODE.
(__gnat_portable_spawn): Fix cast to char* const*.
(add_handle): Cast from pointer via void **.
(add_handle): Cast from pointer via int *.
(__gnat_locate_exec_on_path): Cast from pointer via TCHAR *.
(__gnat_locate_exec_on_path): Cast from pointer via char *.
* initialize.c (append_arg): Cast from pointer via LPWSTR.
(__gnat_initialize): Cast from pointer via LPWSTR.
* seh_init.c (__gnat_SEH_error_handler): Cast from pointer via FARPROC.
* tracebak.c: Cast from pointer via FARPROC.
2013-02-07 Simon Wright <simon@pushface.org>
PR target/50678
* init.c (__darwin_major_version): New function for x86-64/Darwin.
(__gnat_adjust_context_for_raise) [Darwin]: Disable the workaround
on Darwin 12 and above.
2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <discrete_type>: Do not
pack the field of the record type made for a misaligned type.
2013-01-06 Eric Botcazou <ebotcazou@adacore.com>
Backport from mainline
2013-01-04 Robert Dewar <dewar@adacore.com>
* gnat_rm.texi: Document alignment choice for subtypes.
2012-12-21 Ed Schonberg <schonberg@adacore.com>
PR ada/53737
* sem_ch12.adb (Analyze_Associations): Do not check the legality of
actuals for RACW types if this is an internal instantiation for a formal
package with defaulted parameters.
2012-12-18 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
Backport from mainline.
2012-10-15 Matthias Klose <doko@ubuntu.com>
* gcc-interface/Makefile.in: Match arm*-*-linux-*eabi* for
ARM Linux/GNU.
2012-12-16 Eric Botcazou <ebotcazou@adacore.com>
PR ada/54614
Backport from mainline
2012-10-01 Vincent Pucci <pucci@adacore.com>
* s-gearop.adb (Vector_Matrix_Product): Fix dimension check and index
of Left in S evaluation.
2012-12-15 Eric Botcazou <ebotcazou@adacore.com>
PR ada/53766
Backport from mainline
2012-07-17 Hristian Kirtchev <kirtchev@adacore.com>
* exp_attr.adb (Expand_N_Attribute_Reference): Add local variables Attr
and Conversion_Added. Add local constant Typ.
Retrieve the original attribute after the arithmetic check
machinery has modified the node. Add a conversion to the target
type when the prefix of attribute Max_Size_In_Storage_Elements
is a controlled type.
2012-12-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR ada/52110
* s-osinte-hpux-dce.ads: Declare pthread_rwlockattr_t and
pthread_rwlock_t subtypes. Delete duplicate declaration of clockid_t.
* s-taspri-hpux-dce.ads: Change "pragma Atomic (Thread)" to comment.
2012-11-09 Eric Botcazou <ebotcazou@adacore.com>
PR other/52438
* s-taspri-lynxos.ads: Delete.
* s-osinte-kfreebsd-gnu.ads: Change license to GPL V3+.
* s-tpopsp-rtems.adb: Likewise.
* s-osinte-rtems.adb: Likewise.
2012-10-30 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/Make-lang.in: Fix and clean up rules for C files.
2012-10-22 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Force
BLKmode on the type if it is passed by reference.
<E_Array_Subtype>: Likewise.
<E_Record_Type>: Guard the call to Is_By_Reference_Type predicate.
<E_Record_Subtype>: Likewise.
* gcc-interface/Makefile.in: Remove outdated comment and reference to
non-existing file.
2012-10-22 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Loop_Statement_to_gnu): Use gnat_type_for_size
directly to obtain an unsigned version of the base type.
2012-10-22 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: Do not
generate the special PARM_DECL for an Out parameter in LTO mode.
2012-10-02 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interfaces/decl.c (elaborate_expression_1): Use the variable for
bounds of loop iteraration scheme only for locally defined subtypes.
* gcc-interface/trans.c (build_return_expr): Apply the NRV optimization
only for BLKmode.
2012-09-20 Release Manager
* GCC 4.7.2 released.
2012-09-07 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Loop_Statement_to_gnu): Revert to using
size_type_node instead of sizetype.
2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Try to ensure
that an object of CW type initialized to a value is sufficiently
aligned for this value.
2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Do not
look up the REP part of the base type in advance. Deal with that of
the variant types.
(get_rep_part): Be prepared for record types with fields.
2012-07-03 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Call_to_gnu): Robustify test for function case
if the CICO mechanism is used.
2012-07-03 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils2.c (build_simple_component_ref): Do not look
through an extension if the type contains a placeholder.
2012-07-03 Eric Botcazou <ebotcazou@adacore.com>
* exp_disp.adb (Expand_Dispatching_Call): Propagate the convention on
the designated subprogram type and also set Is_Dispatch_Table_Entity.
(Expand_Interface_Thunk): Propagate the convention on the thunk.
(Set_CPP_Constructors_Old): Set Is_Constructor and Convention_CPP on
the internal view of the constructors.
(Set_CPP_Constructors): Likewise.
* sem_prag.adb (Analyze_Pragma) <Pragma_CPP_Constructor>: Set the
convention on the function.
* gcc-interface/gigi.h (is_cplusplus_method): Declare.
* gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
(gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the `thiscall'
calling convention
(get_minimal_subprog_decl): Likewise.
(is_cplusplus_method): New predicate.
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Access>: Issue an
error on access to C++ constructor or member function.
2012-07-03 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (gnat_pushdecl): Set TYPE_CONTEXT for types
attached to a TYPE_DECL.
2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
PR ada/53592
* gcc-interface/gigi.h (maybe_vector_array): Make static inline.
* gcc-interface/utils.c (maybe_vector_array): Delete.
* gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Mark the
array object as addressable if it has vector type and is on the LHS.
2012-06-14 Jakub Jelinek <jakub@redhat.com>
* gcc-interface/Makefile.in (gnatlib-shared-default): Append
$(PICFLAG_FOR_TARGET) to GNATLIBCFLAGS_FOR_C passed to submake.
2012-06-14 Release Manager
* GCC 4.7.1 released.
2012-06-13 Eric Botcazou <ebotcazou@adacore.com>
Revert
2012-05-19 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
(gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the thiscall
calling convention
(get_minimal_subprog_decl): Likewise.
(gnat_first_param_is_class): New predicate.
2012-06-12 Olivier Hainque <hainque@adacore.com>
* gcc-interface/Makefile.in (GNATLIBCFLAGS_FOR_C): Remove
$(PIC_FLAG_FOR_TARGET).
(gnatlib-shared-default): Add $(PIC_FLAG_FOR_TARGET) to
GNATLIBCFLAGS_FOR_C passed to gnatlib.
(gnatlib-shared-win32): Likewise.
(gnatlib-shared-darwin): Likewise.
(gnatlib-shared-dual-win32): Pass PIC_FLAG_FOR_TARGET to
gnatlib-shared-win32.
2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (variant_desc): Rename 'record' to 'new_type'.
(build_variant_list): Adjust to above renaming.
(gnat_to_gnu_entity) <E_Record_Subtype>: Likewise. Give a unique name
to the type of the variant containers.
(create_variant_part_from): Likewise. Give a unique name to the type
of the variant part.
2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
PR ada/52362
* link.c (__gnat_object_file_option): Set to "-Wl,@" for GNU linker.
(__gnat_using_gnu_linker): Delete.
* gnatlink.adb (Gnatlink): Declare Object_File_Option_Ptr here...
Declare Object_File_Option string constant and Using_GNU_response_file
boolean constant.
(Process_Binder_File): ...instead of here. Delete Using_GNU_Linker,
Opening and Closing local variables. Do not handle the GNU linker
specially.
(Write_RF): New procedure to write into the response file. Escape some
characters if a GNU response file is used. Keep track of error status.
Invoke Write_RF to write into the response file. Delete the file only
if the link was successful.
* mlib-utl.adb: Do not `with' package System.
(Gcc): Likewise. Declare Object_File_Option string constant and
Using_GNU_response_file boolean constant.
(Write_RF): Take a string instead of address and length. Escape some
characters if a GNU response file is used.
Invoke Write_RF to write into the response file. Delete the file only
if the link was successful. Do not warn if it cannot be deleted.
2012-05-20 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (gnat_write_global_declarations): Put a name
on the dummy global variable.
2012-05-19 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
(gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the thiscall
calling convention
(get_minimal_subprog_decl): Likewise.
(gnat_first_param_is_class): New predicate.
Backport from mainline
2012-05-15 Javier Miranda <miranda@adacore.com>
* exp_ch3.adb (Build_Offset_To_Top): Modify the
expansion of the offset_to_top functions to ensure that their
profile is conformant with the profile specified in Ada.Tags. No
change in functionality.
2012-05-18 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an object at
global level with unconstrained nominal subtype and a non-fixed size,
make a variable for the size.
2012-05-15 Andris Pavenis <andris.pavenis@iki.fi>
PR ada/52494
* s-taprop-dummy.adb (Specific): New package.
2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
* sem_prag.adb (Process_Atomic_Shared_Volatile): Propagate
atomicity from an object to its underlying type only if it
is composite.
2012-05-06 Pascal Obry <obry@adacore.com>
Revert
2012-02-24 Dave Korn <dave.korn.cygwin@gmail.com>
* gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
Windows-specific make variable.
(WIN_SO_INSTALL_DIR [windows targets]): Likewise.
(install-gnatlib): Respect the above during installation when set,
and also install any windows import library that has been built.
(gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
build a corresponding import library.
2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (finish_record_type): Force the traditional GCC
layout for bitfields on the type if it is packed or has a representation
clause and an alternate layout is available.
2012-04-09 Mike Stump <mikestump@comcast.net>
* a-assert.ads: Remove execute permission.
* a-chacon.ads: Likewise.
* a-coteio.ads: Likewise.
* a-envvar.ads: Likewise.
* a-exetim-mingw.ads: Likewise.
* a-fzteio.ads: Likewise.
* a-izteio.ads: Likewise.
* a-lcteio.ads: Likewise.
* a-llctio.ads: Likewise.
* a-scteio.ads: Likewise.
* a-suenco.ads: Likewise.
* a-suenst.ads: Likewise.
* a-suewst.ads: Likewise.
* a-suezst.ads: Likewise.
* a-tirsfi.ads: Likewise.
* a-wichha.ads: Likewise.
* a-zchara.ads: Likewise.
* a-zchhan.ads: Likewise.
* a-zchuni.ads: Likewise.
* a-zrstfi.ads: Likewise.
* aspects.ads: Likewise.
* g-byorma.ads: Likewise.
* g-decstr.ads: Likewise.
* g-encstr.ads: Likewise.
* g-spchge.ads: Likewise.
* g-u3spch.ads: Likewise.
* g-wispch.ads: Likewise.
* g-zspche.ads: Likewise.
* namet-sp.ads: Likewise.
* s-os_lib.ads: Likewise.
* s-regexp.ads: Likewise.
* s-regpat.ads: Likewise.
* s-string.ads: Likewise.
* s-tasloc.ads: Likewise.
* s-utf_32.ads: Likewise.
* sem_aux.ads: Likewise.
* a-assert.adb: Likewise.
* a-chacon.adb: Likewise.
* a-envvar.adb: Likewise.
* a-exetim-mingw.adb: Likewise.
* a-suenco.adb: Likewise.
* a-suenst.adb: Likewise.
* a-suewst.adb: Likewise.
* a-suezst.adb: Likewise.
* a-tirsfi.adb: Likewise.
* a-wichha.adb: Likewise.
* a-zchhan.adb: Likewise.
* a-zchuni.adb: Likewise.
* a-zrstfi.adb: Likewise.
* aspects.adb: Likewise.
* g-byorma.adb: Likewise.
* g-decstr.adb: Likewise.
* g-encstr.adb: Likewise.
* g-spchge.adb: Likewise.
* g-u3spch.adb: Likewise.
* g-wispch.adb: Likewise.
* g-zspche.adb: Likewise.
* namet-sp.adb: Likewise.
* s-except.adb: Likewise.
* s-inmaop-vxworks.adb: Likewise.
* s-os_lib.adb: Likewise.
* s-regexp.adb: Likewise.
* s-regpat.adb: Likewise.
* s-string.adb: Likewise.
* s-tasloc.adb: Likewise.
* s-utf_32.adb: Likewise.
* s-wchcon.adb: Likewise.
* sem_aux.adb: Likewise.
2012-03-22 Release Manager
* GCC 4.7.0 released.
2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (components_to_record): Add ARTIFICIAL parameter

File diff suppressed because it is too large Load Diff

0
gcc/ada/a-assert.adb Executable file → Normal file
View File

0
gcc/ada/a-assert.ads Executable file → Normal file
View File

0
gcc/ada/a-chacon.adb Executable file → Normal file
View File

0
gcc/ada/a-chacon.ads Executable file → Normal file
View File

0
gcc/ada/a-coteio.ads Executable file → Normal file
View File

0
gcc/ada/a-envvar.adb Executable file → Normal file
View File

0
gcc/ada/a-envvar.ads Executable file → Normal file
View File

0
gcc/ada/a-exetim-mingw.adb Executable file → Normal file
View File

0
gcc/ada/a-exetim-mingw.ads Executable file → Normal file
View File

0
gcc/ada/a-fzteio.ads Executable file → Normal file
View File

0
gcc/ada/a-izteio.ads Executable file → Normal file
View File

0
gcc/ada/a-lcteio.ads Executable file → Normal file
View File

0
gcc/ada/a-llctio.ads Executable file → Normal file
View File

0
gcc/ada/a-scteio.ads Executable file → Normal file
View File

0
gcc/ada/a-suenco.adb Executable file → Normal file
View File

0
gcc/ada/a-suenco.ads Executable file → Normal file
View File

0
gcc/ada/a-suenst.adb Executable file → Normal file
View File

0
gcc/ada/a-suenst.ads Executable file → Normal file
View File

0
gcc/ada/a-suewst.adb Executable file → Normal file
View File

0
gcc/ada/a-suewst.ads Executable file → Normal file
View File

0
gcc/ada/a-suezst.adb Executable file → Normal file
View File

0
gcc/ada/a-suezst.ads Executable file → Normal file
View File

0
gcc/ada/a-tirsfi.adb Executable file → Normal file
View File

0
gcc/ada/a-tirsfi.ads Executable file → Normal file
View File

0
gcc/ada/a-wichha.adb Executable file → Normal file
View File

0
gcc/ada/a-wichha.ads Executable file → Normal file
View File

0
gcc/ada/a-zchara.ads Executable file → Normal file
View File

0
gcc/ada/a-zchhan.adb Executable file → Normal file
View File

0
gcc/ada/a-zchhan.ads Executable file → Normal file
View File

0
gcc/ada/a-zchuni.adb Executable file → Normal file
View File

0
gcc/ada/a-zchuni.ads Executable file → Normal file
View File

0
gcc/ada/a-zrstfi.adb Executable file → Normal file
View File

0
gcc/ada/a-zrstfi.ads Executable file → Normal file
View File

View File

@ -1982,7 +1982,7 @@ __gnat_check_OWNER_ACL
GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION,
NULL, 0, &nLength);
if ((pSD = (PSECURITY_DESCRIPTOR) HeapAlloc
if ((pSD = (SECURITY_DESCRIPTOR *) HeapAlloc
(GetProcessHeap (), HEAP_ZERO_MEMORY, nLength)) == NULL)
return 0;
@ -2059,7 +2059,7 @@ __gnat_set_OWNER_ACL
return;
BuildExplicitAccessWithName
(&ea, username, AccessPermissions, AccessMode, NO_INHERITANCE);
(&ea, username, AccessPermissions, (ACCESS_MODE) AccessMode, NO_INHERITANCE);
if (AccessMode == SET_ACCESS)
{
@ -2384,7 +2384,7 @@ __gnat_portable_spawn (char *args[])
strcat (args[0], args_0);
strcat (args[0], "\"");
status = spawnvp (P_WAIT, args_0, (const char* const*)args);
status = spawnvp (P_WAIT, args_0, (char* const*)args);
/* restore previous value */
free (args[0]);
@ -2544,9 +2544,9 @@ add_handle (HANDLE h, int pid)
{
plist_max_length += 1000;
HANDLES_LIST =
xrealloc (HANDLES_LIST, sizeof (HANDLE) * plist_max_length);
(void **) xrealloc (HANDLES_LIST, sizeof (HANDLE) * plist_max_length);
PID_LIST =
xrealloc (PID_LIST, sizeof (int) * plist_max_length);
(int *) xrealloc (PID_LIST, sizeof (int) * plist_max_length);
}
HANDLES_LIST[plist_length] = h;
@ -2935,7 +2935,7 @@ __gnat_locate_exec_on_path (char *exec_name)
#define EXPAND_BUFFER_SIZE 32767
wapath_val = alloca (EXPAND_BUFFER_SIZE);
wapath_val = (TCHAR *) alloca (EXPAND_BUFFER_SIZE);
wapath_val [0] = '.';
wapath_val [1] = ';';
@ -2945,7 +2945,7 @@ __gnat_locate_exec_on_path (char *exec_name)
if (!res) wapath_val [0] = _T('\0');
apath_val = alloca (EXPAND_BUFFER_SIZE);
apath_val = (char *) alloca (EXPAND_BUFFER_SIZE);
WS2SC (apath_val, wapath_val, EXPAND_BUFFER_SIZE);
return __gnat_locate_exec (exec_name, apath_val);

0
gcc/ada/aspects.adb Executable file → Normal file
View File

0
gcc/ada/aspects.ads Executable file → Normal file
View File

View File

@ -55,6 +55,7 @@ package Back_End is
Complex : Boolean; -- True iff type has real and imaginary parts
Count : Natural; -- Number of elements in vector, 0 otherwise
Float_Rep : Float_Rep_Kind; -- Representation used for fpt type
Precision : Positive; -- Precision of representation in bits
Size : Positive; -- Size of representation in bits
Alignment : Natural); -- Required alignment in bits
pragma Convention (C, Register_Type_Proc);

View File

@ -151,6 +151,7 @@ package body CStand is
Complex : Boolean; -- True iff type has real and imaginary parts
Count : Natural; -- Number of elements in vector, 0 otherwise
Float_Rep : Float_Rep_Kind; -- Representation used for fpt type
Precision : Positive; -- Precision of representation in bits
Size : Positive; -- Size of representation in bits
Alignment : Natural); -- Required alignment in bits
pragma Convention (C, Register_Float_Type);
@ -2015,6 +2016,7 @@ package body CStand is
Complex : Boolean;
Count : Natural;
Float_Rep : Float_Rep_Kind;
Precision : Positive;
Size : Positive;
Alignment : Natural)
is
@ -2064,13 +2066,24 @@ package body CStand is
else
Write_Str ("mod 2**");
Write_Int (Int (Size / Positive'Max (1, Count)));
Write_Int (Int (Precision / Positive'Max (1, Count)));
Write_Line (";");
end if;
Write_Str ("for " & T & "'Size use ");
Write_Int (Int (Size));
Write_Line (";");
if Precision = Size then
Write_Str ("for " & T (1 .. Last) & "'Size use ");
Write_Int (Int (Size));
Write_Line (";");
else
Write_Str ("for " & T (1 .. Last) & "'Value_Size use ");
Write_Int (Int (Precision));
Write_Line (";");
Write_Str ("for " & T (1 .. Last) & "'Object_Size use ");
Write_Int (Int (Size));
Write_Line (";");
end if;
Write_Str ("for " & T & "'Alignment use ");
Write_Int (Int (Alignment / 8));
@ -2093,15 +2106,13 @@ package body CStand is
if Digs > 0 and then not Complex and then Count = 0 then
declare
Ent : constant Entity_Id := New_Standard_Entity;
Esize : constant Pos := Pos ((Size + Alignment - 1)
/ Alignment * Alignment);
begin
Set_Defining_Identifier
(New_Node (N_Full_Type_Declaration, Stloc), Ent);
Make_Name (Ent, T (1 .. Last));
Set_Scope (Ent, Standard_Standard);
Build_Float_Type (Ent, Esize, Float_Rep, Pos (Digs));
Set_RM_Size (Ent, UI_From_Int (Int (Size)));
Build_Float_Type (Ent, Int (Size), Float_Rep, Pos (Digs));
Set_RM_Size (Ent, UI_From_Int (Int (Precision)));
Set_Alignment (Ent, UI_From_Int (Int (Alignment / 8)));
if No (Back_End_Float_Types) then

View File

@ -2996,9 +2996,26 @@ package body Exp_Attr is
-- Max_Size_In_Storage_Elements --
----------------------------------
when Attribute_Max_Size_In_Storage_Elements =>
when Attribute_Max_Size_In_Storage_Elements => declare
Typ : constant Entity_Id := Etype (N);
Attr : Node_Id;
Conversion_Added : Boolean := False;
-- A flag which tracks whether the original attribute has been
-- wrapped inside a type conversion.
begin
Apply_Universal_Integer_Attribute_Checks (N);
-- The universal integer check may sometimes add a type conversion,
-- retrieve the original attribute reference from the expression.
Attr := N;
if Nkind (Attr) = N_Type_Conversion then
Attr := Expression (Attr);
Conversion_Added := True;
end if;
-- Heap-allocated controlled objects contain two extra pointers which
-- are not part of the actual type. Transform the attribute reference
-- into a runtime expression to add the size of the hidden header.
@ -3007,20 +3024,20 @@ package body Exp_Attr is
-- two pointers are already present in the type.
if VM_Target = No_VM
and then Nkind (N) = N_Attribute_Reference
and then Nkind (Attr) = N_Attribute_Reference
and then Needs_Finalization (Ptyp)
and then not Header_Size_Added (N)
and then not Header_Size_Added (Attr)
then
Set_Header_Size_Added (N);
Set_Header_Size_Added (Attr);
-- Generate:
-- P'Max_Size_In_Storage_Elements +
-- Universal_Integer
-- (Header_Size_With_Padding (Ptyp'Alignment))
Rewrite (N,
Rewrite (Attr,
Make_Op_Add (Loc,
Left_Opnd => Relocate_Node (N),
Left_Opnd => Relocate_Node (Attr),
Right_Opnd =>
Convert_To (Universal_Integer,
Make_Function_Call (Loc,
@ -3034,9 +3051,19 @@ package body Exp_Attr is
New_Reference_To (Ptyp, Loc),
Attribute_Name => Name_Alignment))))));
Analyze (N);
-- Add a conversion to the target type
if not Conversion_Added then
Rewrite (Attr,
Make_Type_Conversion (Loc,
Subtype_Mark => New_Reference_To (Typ, Loc),
Expression => Relocate_Node (Attr)));
end if;
Analyze (Attr);
return;
end if;
end;
--------------------
-- Mechanism_Code --

View File

@ -1883,9 +1883,10 @@ package body Exp_Ch3 is
procedure Build_Offset_To_Top_Function (Iface_Comp : Entity_Id);
-- Generate:
-- function Fxx (O : in Rec_Typ) return Storage_Offset is
-- function Fxx (O : Address) return Storage_Offset is
-- type Acc is access all <Typ>;
-- begin
-- return O.Iface_Comp'Position;
-- return Acc!(O).Iface_Comp'Position;
-- end Fxx;
----------------------------------
@ -1896,6 +1897,7 @@ package body Exp_Ch3 is
Body_Node : Node_Id;
Func_Id : Entity_Id;
Spec_Node : Node_Id;
Acc_Type : Entity_Id;
begin
Func_Id := Make_Temporary (Loc, 'F');
@ -1912,7 +1914,7 @@ package body Exp_Ch3 is
Make_Defining_Identifier (Loc, Name_uO),
In_Present => True,
Parameter_Type =>
New_Reference_To (Rec_Type, Loc))));
New_Reference_To (RTE (RE_Address), Loc))));
Set_Result_Definition (Spec_Node,
New_Reference_To (RTE (RE_Storage_Offset), Loc));
@ -1924,7 +1926,19 @@ package body Exp_Ch3 is
Body_Node := New_Node (N_Subprogram_Body, Loc);
Set_Specification (Body_Node, Spec_Node);
Set_Declarations (Body_Node, New_List);
Acc_Type := Make_Temporary (Loc, 'T');
Set_Declarations (Body_Node, New_List (
Make_Full_Type_Declaration (Loc,
Defining_Identifier => Acc_Type,
Type_Definition =>
Make_Access_To_Object_Definition (Loc,
All_Present => True,
Null_Exclusion_Present => False,
Constant_Present => False,
Subtype_Indication =>
New_Reference_To (Rec_Type, Loc)))));
Set_Handled_Statement_Sequence (Body_Node,
Make_Handled_Sequence_Of_Statements (Loc,
Statements => New_List (
@ -1933,7 +1947,9 @@ package body Exp_Ch3 is
Make_Attribute_Reference (Loc,
Prefix =>
Make_Selected_Component (Loc,
Prefix => Make_Identifier (Loc, Name_uO),
Prefix =>
Unchecked_Convert_To (Acc_Type,
Make_Identifier (Loc, Name_uO)),
Selector_Name =>
New_Reference_To (Iface_Comp, Loc)),
Attribute_Name => Name_Position)))));

View File

@ -803,6 +803,11 @@ package body Exp_Disp is
Subp_Ptr_Typ := Create_Itype (E_Access_Subprogram_Type, Call_Node);
Set_Etype (Subp_Typ, Res_Typ);
Set_Returns_By_Ref (Subp_Typ, Returns_By_Ref (Subp));
Set_Convention (Subp_Typ, Convention (Subp));
-- Notify gigi that the designated type is a dispatching primitive
Set_Is_Dispatch_Table_Entity (Subp_Typ);
-- Create a new list of parameters which is a copy of the old formal
-- list including the creation of a new set of matching entities.
@ -1842,6 +1847,7 @@ package body Exp_Disp is
Thunk_Id := Make_Temporary (Loc, 'T');
Set_Is_Thunk (Thunk_Id);
Set_Convention (Thunk_Id, Convention (Prim));
-- Procedure case
@ -8460,8 +8466,9 @@ package body Exp_Disp is
Set_Init_Proc (Typ, Init);
Set_Is_Imported (Init);
Set_Is_Constructor (Init);
Set_Interface_Name (Init, Interface_Name (E));
Set_Convention (Init, Convention_C);
Set_Convention (Init, Convention_CPP);
Set_Is_Public (Init);
Set_Has_Completion (Init);
end if;
@ -8554,8 +8561,9 @@ package body Exp_Disp is
Parameter_Specifications => Parms));
Set_Is_Imported (Constructor_Id);
Set_Is_Constructor (Constructor_Id);
Set_Interface_Name (Constructor_Id, Interface_Name (E));
Set_Convention (Constructor_Id, Convention_C);
Set_Convention (Constructor_Id, Convention_CPP);
Set_Is_Public (Constructor_Id);
Set_Has_Completion (Constructor_Id);

0
gcc/ada/g-byorma.adb Executable file → Normal file
View File

0
gcc/ada/g-byorma.ads Executable file → Normal file
View File

0
gcc/ada/g-decstr.adb Executable file → Normal file
View File

0
gcc/ada/g-decstr.ads Executable file → Normal file
View File

0
gcc/ada/g-encstr.adb Executable file → Normal file
View File

0
gcc/ada/g-encstr.ads Executable file → Normal file
View File

0
gcc/ada/g-spchge.adb Executable file → Normal file
View File

0
gcc/ada/g-spchge.ads Executable file → Normal file
View File

0
gcc/ada/g-u3spch.adb Executable file → Normal file
View File

0
gcc/ada/g-u3spch.ads Executable file → Normal file
View File

0
gcc/ada/g-wispch.adb Executable file → Normal file
View File

0
gcc/ada/g-wispch.ads Executable file → Normal file
View File

0
gcc/ada/g-zspche.adb Executable file → Normal file
View File

0
gcc/ada/g-zspche.ads Executable file → Normal file
View File

View File

@ -68,7 +68,7 @@ ADA_RTL_OBJ_DIR = $(libsubdir)/adalib
THREAD_KIND=native
TRACE=no
# We do not want the WARN_CFLAGS of the compiler in Ada as it is for C/C++.
COMMON_FLAGS_TO_PASS = $(filter-out -pedantic -W%, $(FLAGS_TO_PASS))
COMMON_FLAGS_TO_PASS = $(filter-out $(WARN_CFLAGS), $(FLAGS_TO_PASS))
ADA_FLAGS_TO_PASS = \
"ADA_FOR_BUILD=$(ADA_FOR_BUILD)" \
"ADA_INCLUDE_DIR=$(ADA_INCLUDE_DIR)" \
@ -660,7 +660,7 @@ ada.tags: force
ada/doctools/xgnatugn$(build_exeext): ada/xgnatugn.adb
-$(MKDIR) ada/doctools
$(CP) $^ ada/doctools
cd ada/doctools && $(GNATMAKE) -q xgnatugn
cd ada/doctools && gnatmake -q xgnatugn
# Note that doc/gnat_ugn.texi and doc/projects.texi do not depend on
# xgnatugn being built so we can distribute a pregenerated doc/gnat_ugn.info
@ -1225,33 +1225,20 @@ ada/mdll-fil.o : ada/mdll-fil.adb ada/mdll.ads ada/mdll-fil.ads
ada/mdll-utl.o : ada/mdll-utl.adb ada/mdll.ads ada/mdll-utl.ads ada/sdefault.ads ada/types.ads
$(CC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
ada/adadecode.o : ada/adadecode.c $(CONFIG_H) $(SYSTEM_H) ada/adadecode.h
ada/adaint.o : ada/adaint.c $(CONFIG_H) $(SYSTEM_H) ada/adaint.h
ada/argv.o : ada/argv.c $(CONFIG_H) $(SYSTEM_H) ada/adaint.h
ada/cstreams.o : ada/cstreams.c $(CONFIG_H) $(SYSTEM_H) ada/adaint.h
ada/exit.o : ada/exit.c $(CONFIG_H) $(SYSTEM_H) ada/adaint.h
ada/final.o : ada/final.c $(CONFIG_H) $(SYSTEM_H) ada/raise.h
ada/link.o : ada/link.c
ada/targext.o : ada/targext.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
$(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
ada/adadecode.o : ada/adadecode.c $(CONFIG_H) $(SYSTEM_H) ada/adadecode.h ada/adaint.h
ada/adaint.o : ada/adaint.c $(CONFIG_H) $(SYSTEM_H) ada/adaint.h version.h
ada/argv.o : ada/argv.c $(CONFIG_H) $(SYSTEM_H) ada/adaint.h
ada/cio.o : ada/cio.c $(CONFIG_H) $(SYSTEM_H) ada/adaint.h
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
$(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
ada/cstreams.o : ada/cstreams.c $(CONFIG_H) $(SYSTEM_H) ada/adaint.h
ada/env.o: ada/env.c $(CONFIG_H) $(SYSTEM_H) ada/env.h
ada/exit.o : ada/exit.c $(CONFIG_H) $(SYSTEM_H) ada/adaint.h
ada/final.o : ada/final.c
ada/init.o : ada/init.c $(CONFIG_H) $(SYSTEM_H) ada/adaint.h ada/raise.h
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
$(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
ada/initialize.o : ada/initialize.c
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
$(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
ada/initialize.o : ada/initialize.c $(CONFIG_H) $(SYSTEM_H) ada/raise.h
ada/link.o : ada/link.c auto-host.h
ada/raise.o : ada/raise.c $(CONFIG_H) $(SYSTEM_H) ada/adaint.h ada/raise.h
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ADA_CFLAGS) \
$(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
ada/seh_init.o: ada/seh_init.c $(CONFIG_H) $(SYSTEM_H) ada/raise.h
ada/targext.o : ada/targext.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
ada/cuintp.o : ada/gcc-interface/cuintp.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
$(TM_H) $(TREE_H) ada/gcc-interface/ada.h ada/types.h ada/uintp.h \

View File

@ -111,10 +111,11 @@ NO_REORDER_ADAFLAGS = -fno-toplevel-reorder
GNATLIBFLAGS = -W -Wall -gnatpg -nostdinc
GNATLIBCFLAGS = -g -O2
PICFLAG_FOR_TARGET = @PICFLAG_FOR_TARGET@
# Pretend that _Unwind_GetIPInfo is available for the target by default. This
# should be autodetected during the configuration of libada and passed down to
# here, but we need something for --disable-libada and hope for the best.
GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET) \
GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) \
-fexceptions -DIN_RTS -DHAVE_GETIPINFO
ALL_ADAFLAGS = $(CFLAGS) $(ADA_CFLAGS) $(ADAFLAGS)
THREAD_KIND = native
@ -1241,7 +1242,6 @@ ifeq ($(strip $(filter-out %86_64 freebsd%,$(arch) $(osys))),)
s-taprop.adb<s-taprop-posix.adb \
s-taspri.ads<s-taspri-posix.ads \
s-tpopsp.adb<s-tpopsp-posix.adb \
g-trasym.adb<g-trasym-dwarf.adb \
$(ATOMICS_TARGET_PAIRS) \
$(X86_64_TARGET_PAIRS) \
system.ads<system-freebsd-x86_64.ads
@ -1589,19 +1589,16 @@ ifeq ($(strip $(filter-out cygwin% mingw32% pe,$(osys))),)
# the Cygwin port has always been a CygMing frankenhybrid and it is
# a long-term project to disentangle them.
ifeq ($(strip $(filter-out cygwin%,$(osys))),)
WIN_SO_PREFIX=cyg
LIBGNAT_TARGET_PAIRS = \
s-memory.adb<s-memory.adb \
g-socthi.ads<g-socthi.ads \
g-socthi.adb<g-socthi.adb
else
WIN_SO_PREFIX=lib
LIBGNAT_TARGET_PAIRS = \
s-memory.adb<s-memory-mingw.adb \
g-socthi.ads<g-socthi-mingw.ads \
g-socthi.adb<g-socthi-mingw.adb
endif
WIN_SO_INSTALL_DIR = $(bindir)
LIBGNAT_TARGET_PAIRS += \
a-dirval.adb<a-dirval-mingw.adb \
a-excpol.adb<a-excpol-abort.adb \
@ -1869,7 +1866,7 @@ ifeq ($(strip $(filter-out powerpc% linux%,$(arch) $(osys))),)
LIBRARY_VERSION := $(LIB_VERSION)
endif
ifeq ($(strip $(filter-out arm% linux-gnueabi,$(arch) $(osys)-$(word 4,$(targ)))),)
ifeq ($(strip $(filter-out arm%-linux,$(arch)-$(osys)) $(if $(findstring eabi,$(word 4,$(targ))),,$(word 4,$(targ)))),)
LIBGNAT_TARGET_PAIRS = \
a-intnam.ads<a-intnam-linux.ads \
s-inmaop.adb<s-inmaop-posix.adb \
@ -2452,14 +2449,11 @@ install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
# for shared libraries on some targets, e.g. on HP-UX where the x
# permission is required.
# Also install the .dSYM directories if they exist (these directories
# contain the debug information for the shared libraries on darwin),
# and the windows import libraries if they exist.
libpfx=$(if $(WIN_SO_PREFIX),$(WIN_SO_PREFIX),lib); \
librtlobjdir=$(if $(WIN_SO_INSTALL_DIR),$(WIN_SO_INSTALL_DIR),$(ADA_RTL_OBJ_DIR)); \
# contain the debug information for the shared libraries on darwin)
for file in gnat gnarl; do \
if [ -f $(RTSDIR)/$${libpfx}$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
$(INSTALL) $(RTSDIR)/$${libpfx}$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(DESTDIR)$${librtlobjdir}; \
if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) ]; then \
$(INSTALL) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(DESTDIR)$(ADA_RTL_OBJ_DIR); \
fi; \
if [ -f $(RTSDIR)/lib$${file}$(soext) ]; then \
$(LN_S) lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext) \
@ -2469,10 +2463,6 @@ install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
$(CP) -r $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext).dSYM \
$(DESTDIR)$(ADA_RTL_OBJ_DIR); \
fi; \
if [ -f $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext)$(arext) ]; then \
$(INSTALL_DATA) $(RTSDIR)/lib$${file}$(hyphen)$(LIBRARY_VERSION)$(soext)$(arext) \
$(DESTDIR)$(ADA_RTL_OBJ_DIR); \
fi; \
done
# This copy must be done preserving the date on the original file.
for file in $(RTSDIR)/*.ad?; do \
@ -2527,8 +2517,6 @@ install-gnatlib: ../stamp-gnatlib-$(RTSDIR)
$(RM) ../stamp-gnatlib-$(RTSDIR)
touch ../stamp-gnatlib1-$(RTSDIR)
# GNULLI End #############################################################
ifeq ($(strip $(filter-out alpha64 ia64 dec hp vms% openvms% alphavms%,$(subst -, ,$(host)))),)
OSCONS_CPP=../../$(DECC) -E /comment=as_is -DNATIVE \
-DTARGET='""$(target)""' $(fsrcpfx)ada/s-oscons-tmplt.c
@ -2606,7 +2594,7 @@ gnatlib-shared-default:
$(MAKE) $(FLAGS_TO_PASS) \
GNATLIBFLAGS="$(GNATLIBFLAGS)" \
GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
MULTISUBDIR="$(MULTISUBDIR)" \
THREAD_KIND="$(THREAD_KIND)" \
gnatlib
@ -2652,8 +2640,9 @@ gnatlib-shared-dual:
gnatlib-shared-dual-win32:
$(MAKE) $(FLAGS_TO_PASS) \
GNATLIBFLAGS="$(GNATLIBFLAGS)" \
GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
GNATLIBCFLAGS="$(GNATLIBCFLAGS)" \
GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" \
MULTISUBDIR="$(MULTISUBDIR)" \
THREAD_KIND="$(THREAD_KIND)" \
gnatlib-shared-win32
@ -2676,7 +2665,7 @@ gnatlib-shared-win32:
$(MAKE) $(FLAGS_TO_PASS) \
GNATLIBFLAGS="$(GNATLIBFLAGS)" \
GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
MULTISUBDIR="$(MULTISUBDIR)" \
THREAD_KIND="$(THREAD_KIND)" \
gnatlib
@ -2684,24 +2673,22 @@ gnatlib-shared-win32:
cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
| sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
$(PICFLAG_FOR_TARGET) \
-o $(WIN_SO_PREFIX)gnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
-Wl,-out-implib,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)$(arext) \
-o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
$(SO_OPTS)$(WIN_SO_PREFIX)gnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
$(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) $(MISCLIB)
cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
| sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -shared -shared-libgcc \
$(PICFLAG_FOR_TARGET) \
-o $(WIN_SO_PREFIX)gnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
-Wl,-out-implib,libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext)$(arext) \
-o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(GNATRTL_TASKING_OBJS) \
$(SO_OPTS)$(WIN_SO_PREFIX)gnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(THREADSLIB) -L. -lgnat$(hyphen)$(LIBRARY_VERSION)
$(SO_OPTS)libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(THREADSLIB) -Wl,libgnat$(hyphen)$(LIBRARY_VERSION)$(soext)
gnatlib-shared-darwin:
$(MAKE) $(FLAGS_TO_PASS) \
GNATLIBFLAGS="$(GNATLIBFLAGS)" \
GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) -fno-common" \
GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET) -fno-common" \
MULTISUBDIR="$(MULTISUBDIR)" \
THREAD_KIND="$(THREAD_KIND)" \
gnatlib

View File

@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
* Copyright (C) 1992-2010, Free Software Foundation, Inc. *
* Copyright (C) 1992-2014, Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
@ -59,8 +59,8 @@
static tree
build_cst_from_int (tree type, HOST_WIDE_INT low)
{
if (TREE_CODE (type) == REAL_TYPE)
return convert (type, build_int_cst (NULL_TREE, low));
if (SCALAR_FLOAT_TYPE_P (type))
return convert (type, build_int_cst (gnat_type_for_size (32, 0), low));
else
return build_int_cst_type (type, low);
}
@ -99,19 +99,12 @@ UI_To_gnu (Uint Input, tree type)
gcc_assert (Length > 0);
/* The computations we perform below always require a type at least as
large as an integer not to overflow. REAL types are always fine, but
large as an integer not to overflow. FP types are always fine, but
INTEGER or ENUMERAL types we are handed may be too short. We use a
base integer type node for the computations in this case and will
convert the final result back to the incoming type later on.
The base integer precision must be superior than 16. */
if (TREE_CODE (comp_type) != REAL_TYPE
&& TYPE_PRECISION (comp_type)
< TYPE_PRECISION (long_integer_type_node))
{
comp_type = long_integer_type_node;
gcc_assert (TYPE_PRECISION (comp_type) > 16);
}
convert the final result back to the incoming type later on. */
if (!SCALAR_FLOAT_TYPE_P (comp_type) && TYPE_PRECISION (comp_type) < 32)
comp_type = gnat_type_for_size (32, 0);
gnu_base = build_cst_from_int (comp_type, Base);

View File

@ -50,19 +50,23 @@
#include "ada-tree.h"
#include "gigi.h"
/* Convention_Stdcall should be processed in a specific way on 32 bits
Windows targets only. The macro below is a helper to avoid having to
check for a Windows specific attribute throughout this unit. */
/* "stdcall" and "thiscall" conventions should be processed in a specific way
on 32-bit x86/Windows only. The macros below are helpers to avoid having
to check for a Windows specific attribute throughout this unit. */
#if TARGET_DLLIMPORT_DECL_ATTRIBUTES
#ifdef TARGET_64BIT
#define Has_Stdcall_Convention(E) \
(!TARGET_64BIT && Convention (E) == Convention_Stdcall)
#define Has_Thiscall_Convention(E) \
(!TARGET_64BIT && is_cplusplus_method (E))
#else
#define Has_Stdcall_Convention(E) (Convention (E) == Convention_Stdcall)
#define Has_Thiscall_Convention(E) (is_cplusplus_method (E))
#endif
#else
#define Has_Stdcall_Convention(E) 0
#define Has_Thiscall_Convention(E) 0
#endif
/* Stack realignment is necessary for functions with foreign conventions when
@ -120,8 +124,8 @@ typedef struct variant_desc_d {
/* The value of the qualifier. */
tree qual;
/* The record associated with this variant. */
tree record;
/* The type of the variant after transformation. */
tree new_type;
} variant_desc;
DEF_VEC_O(variant_desc);
@ -778,6 +782,14 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
gnu_size = max_size (TYPE_SIZE (gnu_type), true);
mutable_p = true;
}
/* If we are at global level and the size isn't constant, call
elaborate_expression_1 to make a variable for it rather than
calculating it each time. */
if (global_bindings_p () && !TREE_CONSTANT (gnu_size))
gnu_size = elaborate_expression_1 (gnu_size, gnat_entity,
get_identifier ("SIZE"),
definition, false);
}
/* If the size is zero byte, make it one byte since some linkers have
@ -899,6 +911,16 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
debug_info_p);
}
/* ??? If this is an object of CW type initialized to a value, try to
ensure that the object is sufficient aligned for this value, but
without pessimizing the allocation. This is a kludge necessary
because we don't support dynamic alignment. */
if (align == 0
&& Ekind (Etype (gnat_entity)) == E_Class_Wide_Subtype
&& No (Renamed_Object (gnat_entity))
&& No (Address_Clause (gnat_entity)))
align = get_target_system_allocator_alignment () * BITS_PER_UNIT;
#ifdef MINIMUM_ATOMIC_ALIGNMENT
/* If the size is a constant and no alignment is specified, force
the alignment to be the minimum valid atomic alignment. The
@ -908,7 +930,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
necessary and can interfere with constant replacement. Finally,
do not do it for Out parameters since that creates an
size inconsistency with In parameters. */
if (align == 0 && MINIMUM_ATOMIC_ALIGNMENT > TYPE_ALIGN (gnu_type)
if (align == 0
&& MINIMUM_ATOMIC_ALIGNMENT > TYPE_ALIGN (gnu_type)
&& !FLOAT_TYPE_P (gnu_type)
&& !const_flag && No (Renamed_Object (gnat_entity))
&& !imported_p && No (Address_Clause (gnat_entity))
@ -1485,7 +1508,11 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
the VAR_DECL. Suppress debug info for the latter but make sure it
will live on the stack so that it can be accessed from within the
debugger through the PARM_DECL. */
if (kind == E_Out_Parameter && definition && !optimize && debug_info_p)
if (kind == E_Out_Parameter
&& definition
&& debug_info_p
&& !optimize
&& !flag_generate_lto)
{
tree param = create_param_decl (gnu_entity_name, gnu_type, false);
gnat_pushdecl (param, gnat_entity);
@ -1869,8 +1896,10 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
}
/* If the type we are dealing with has got a smaller alignment than the
natural one, we need to wrap it up in a record type and under-align
the latter. We reuse the padding machinery for this purpose. */
natural one, we need to wrap it up in a record type and misalign the
latter; we reuse the padding machinery for this purpose. Note that,
even if the record type is marked as packed because of misalignment,
we don't pack the field so as to give it the size of the type. */
else if (align > 0)
{
tree gnu_field_type, gnu_field;
@ -1900,7 +1929,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
a bitfield. */
gnu_field
= create_field_decl (get_identifier ("F"), gnu_field_type,
gnu_type, NULL_TREE, bitsize_zero_node, 1, 0);
gnu_type, TYPE_SIZE (gnu_field_type),
bitsize_zero_node, 0, 0);
finish_record_type (gnu_type, gnu_field, 2, debug_info_p);
compute_record_mode (gnu_type);
@ -2228,6 +2258,12 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
TYPE_MULTI_ARRAY_P (tem) = (index > 0);
if (array_type_has_nonaliased_component (tem, gnat_entity))
TYPE_NONALIASED_COMPONENT (tem) = 1;
/* If it is passed by reference, force BLKmode to ensure that
objects of this type will always be put in memory. */
if (TYPE_MODE (tem) != BLKmode
&& Is_By_Reference_Type (gnat_entity))
SET_TYPE_MODE (tem, BLKmode);
}
/* If an alignment is specified, use it if valid. But ignore it
@ -2567,6 +2603,11 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
TYPE_MULTI_ARRAY_P (gnu_type) = (index > 0);
if (array_type_has_nonaliased_component (gnu_type, gnat_entity))
TYPE_NONALIASED_COMPONENT (gnu_type) = 1;
/* See the E_Array_Type case for the rationale. */
if (TYPE_MODE (gnu_type) != BLKmode
&& Is_By_Reference_Type (gnat_entity))
SET_TYPE_MODE (gnu_type, BLKmode);
}
/* Attach the TYPE_STUB_DECL in case we have a parallel type. */
@ -3135,7 +3176,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
/* If it is passed by reference, force BLKmode to ensure that objects
of this type will always be put in memory. */
if (Is_By_Reference_Type (gnat_entity))
if (TYPE_MODE (gnu_type) != BLKmode
&& Is_By_Reference_Type (gnat_entity))
SET_TYPE_MODE (gnu_type, BLKmode);
/* We used to remove the associations of the discriminants and _Parent
@ -3276,9 +3318,6 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
else
gnu_unpad_base_type = gnu_base_type;
/* Look for a REP part in the base type. */
gnu_rep_part = get_rep_part (gnu_unpad_base_type);
/* Look for a variant part in the base type. */
gnu_variant_part = get_variant_part (gnu_unpad_base_type);
@ -3314,11 +3353,16 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
{
tree old_variant = v->type;
tree new_variant = make_node (RECORD_TYPE);
tree suffix
= concat_name (DECL_NAME (gnu_variant_part),
IDENTIFIER_POINTER
(DECL_NAME (v->field)));
TYPE_NAME (new_variant)
= DECL_NAME (TYPE_NAME (old_variant));
= concat_name (TYPE_NAME (gnu_type),
IDENTIFIER_POINTER (suffix));
copy_and_substitute_in_size (new_variant, old_variant,
gnu_subst_list);
v->record = new_variant;
v->new_type = new_variant;
}
}
else
@ -3401,7 +3445,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
and put the field either in the new type if there is a
selected variant or in one of the new variants. */
if (gnu_context == gnu_unpad_base_type
|| (gnu_rep_part
|| ((gnu_rep_part = get_rep_part (gnu_unpad_base_type))
&& gnu_context == TREE_TYPE (gnu_rep_part)))
gnu_cont_type = gnu_type;
else
@ -3412,7 +3456,9 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
t = NULL_TREE;
FOR_EACH_VEC_ELT_REVERSE (variant_desc,
gnu_variant_list, ix, v)
if (v->type == gnu_context)
if (gnu_context == v->type
|| ((gnu_rep_part = get_rep_part (v->type))
&& gnu_context == TREE_TYPE (gnu_rep_part)))
{
t = v->type;
break;
@ -3422,7 +3468,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
if (selected_variant)
gnu_cont_type = gnu_type;
else
gnu_cont_type = v->record;
gnu_cont_type = v->new_type;
}
else
/* The front-end may pass us "ghost" components if
@ -3499,12 +3545,12 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
modify it below. */
gnu_field_list = nreverse (gnu_field_list);
finish_record_type (gnu_type, gnu_field_list, 2, false);
compute_record_mode (gnu_type);
/* See the E_Record_Type case for the rationale. */
if (Is_By_Reference_Type (gnat_entity))
if (TYPE_MODE (gnu_type) != BLKmode
&& Is_By_Reference_Type (gnat_entity))
SET_TYPE_MODE (gnu_type, BLKmode);
else
compute_record_mode (gnu_type);
TYPE_VOLATILE (gnu_type) = Treat_As_Volatile (gnat_entity);
@ -4402,6 +4448,11 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
(&attr_list, ATTR_MACHINE_ATTRIBUTE,
get_identifier ("stdcall"), NULL_TREE,
gnat_entity);
else if (Has_Thiscall_Convention (gnat_entity))
prepend_one_attribute_to
(&attr_list, ATTR_MACHINE_ATTRIBUTE,
get_identifier ("thiscall"), NULL_TREE,
gnat_entity);
/* If we should request stack realignment for a foreign convention
subprogram, do so. Note that this applies to task entry points in
@ -5282,6 +5333,10 @@ get_minimal_subprog_decl (Entity_Id gnat_entity)
prepend_one_attribute_to (&attr_list, ATTR_MACHINE_ATTRIBUTE,
get_identifier ("stdcall"), NULL_TREE,
gnat_entity);
else if (Has_Thiscall_Convention (gnat_entity))
prepend_one_attribute_to (&attr_list, ATTR_MACHINE_ATTRIBUTE,
get_identifier ("thiscall"), NULL_TREE,
gnat_entity);
if (No (Interface_Name (gnat_entity)) && gnu_ext_name == gnu_entity_name)
gnu_ext_name = NULL_TREE;
@ -5330,6 +5385,39 @@ rest_of_type_decl_compilation_no_defer (tree decl)
}
}
/* Return whether the E_Subprogram_Type/E_Function/E_Procedure GNAT_ENTITY is
a C++ imported method or equivalent.
We use the predicate on 32-bit x86/Windows to find out whether we need to
use the "thiscall" calling convention for GNAT_ENTITY. This convention is
used for C++ methods (functions with METHOD_TYPE) by the back-end. */
bool
is_cplusplus_method (Entity_Id gnat_entity)
{
if (Convention (gnat_entity) != Convention_CPP)
return False;
/* This is the main case: C++ method imported as a primitive operation. */
if (Is_Dispatching_Operation (gnat_entity))
return True;
/* A thunk needs to be handled like its associated primitive operation. */
if (Is_Subprogram (gnat_entity) && Is_Thunk (gnat_entity))
return True;
/* C++ classes with no virtual functions can be imported as limited
record types, but we need to return true for the constructors. */
if (Is_Constructor (gnat_entity))
return True;
/* This is set on the E_Subprogram_Type built for a dispatching call. */
if (Is_Dispatch_Table_Entity (gnat_entity))
return True;
return False;
}
/* Finalize the processing of From_With_Type incomplete types. */
void
@ -6277,6 +6365,7 @@ elaborate_expression_1 (tree gnu_expr, Entity_Id gnat_entity, tree gnu_name,
use_variable = expr_variable_p
&& (expr_global_p
|| (!optimize
&& definition
&& Is_Itype (gnat_entity)
&& Nkind (Associated_Node_For_Itype (gnat_entity))
== N_Loop_Parameter_Specification));
@ -8111,7 +8200,7 @@ build_variant_list (tree qual_union_type, VEC(subst_pair,heap) *subst_list,
v->type = variant_type;
v->field = gnu_field;
v->qual = qual;
v->record = NULL_TREE;
v->new_type = NULL_TREE;
/* Recurse on the variant subpart of the variant, if any. */
variant_subpart = get_variant_part (variant_type);
@ -8839,7 +8928,8 @@ get_rep_part (tree record_type)
/* The REP part is the first field, internal, another record, and its name
starts with an 'R'. */
if (DECL_INTERNAL_P (field)
if (field
&& DECL_INTERNAL_P (field)
&& TREE_CODE (TREE_TYPE (field)) == RECORD_TYPE
&& IDENTIFIER_POINTER (DECL_NAME (field)) [0] == 'R')
return field;
@ -8884,7 +8974,9 @@ create_variant_part_from (tree old_variant_part,
/* First create the type of the variant part from that of the old one. */
new_union_type = make_node (QUAL_UNION_TYPE);
TYPE_NAME (new_union_type) = DECL_NAME (TYPE_NAME (old_union_type));
TYPE_NAME (new_union_type)
= concat_name (TYPE_NAME (record_type),
IDENTIFIER_POINTER (DECL_NAME (old_variant_part)));
/* If the position of the variant part is constant, subtract it from the
size of the type of the parent to get the new size. This manual CSE
@ -8918,7 +9010,7 @@ create_variant_part_from (tree old_variant_part,
continue;
/* Retrieve the list of fields already added to the new variant. */
new_variant = v->record;
new_variant = v->new_type;
field_list = TYPE_FIELDS (new_variant);
/* If the old variant had a variant subpart, we need to create a new

View File

@ -123,6 +123,10 @@ extern tree get_unpadded_type (Entity_Id gnat_entity);
alias is already present, in which case it is returned instead. */
extern tree get_minimal_subprog_decl (Entity_Id gnat_entity);
/* Return whether the E_Subprogram_Type/E_Function/E_Procedure GNAT_ENTITY is
a C++ imported method or equivalent. */
extern bool is_cplusplus_method (Entity_Id gnat_entity);
/* Create a record type that contains a SIZE bytes long field of TYPE with a
starting bit position so that it is aligned to ALIGN bits, and leaving at
least ROOM bytes free before the field. BASE_ALIGN is the alignment the
@ -764,10 +768,6 @@ extern tree remove_conversions (tree exp, bool true_address);
likewise return an expression pointing to the underlying array. */
extern tree maybe_unconstrained_array (tree exp);
/* If EXP's type is a VECTOR_TYPE, return EXP converted to the associated
TYPE_REPRESENTATIVE_ARRAY. */
extern tree maybe_vector_array (tree exp);
/* Return an expression that does an unchecked conversion of EXPR to TYPE.
If NOTRUNC_P is true, truncation operations should be suppressed. */
extern tree unchecked_convert (tree type, tree expr, bool notrunc_p);
@ -992,7 +992,7 @@ extern Nat get_target_double_scalar_alignment (void);
/* This function is called by the front-end to enumerate all the supported
modes for the machine, as well as some predefined C types. */
extern void enumerate_modes (void (*f) (const char *, int, int, int, int, int,
int));
int, int));
#ifdef __cplusplus
}
@ -1013,3 +1013,17 @@ extern void enumerate_modes (void (*f) (const char *, int, int, int, int, int,
/* Convenient shortcuts. */
#define VECTOR_TYPE_P(TYPE) (TREE_CODE (TYPE) == VECTOR_TYPE)
/* If EXP's type is a VECTOR_TYPE, return EXP converted to the associated
TYPE_REPRESENTATIVE_ARRAY. */
static inline tree
maybe_vector_array (tree exp)
{
tree etype = TREE_TYPE (exp);
if (VECTOR_TYPE_P (etype))
exp = convert (TYPE_REPRESENTATIVE_ARRAY (etype), exp);
return exp;
}

View File

@ -632,7 +632,7 @@ must_pass_by_ref (tree gnu_type)
/* This function is called by the front-end to enumerate all the supported
modes for the machine, as well as some predefined C types. F is a function
which is called back with the parameters as listed below, first a string,
then six ints. The name is any arbitrary null-terminated string and has
then seven ints. The name is any arbitrary null-terminated string and has
no particular significance, except for the case of predefined C types, where
it should be the name of the C type. For integer types, only signed types
should be listed, unsigned versions are assumed. The order of types should
@ -648,11 +648,12 @@ must_pass_by_ref (tree gnu_type)
COMPLEX_P nonzero is this represents a complex mode
COUNT count of number of items, nonzero for vector mode
FLOAT_REP Float_Rep_Kind for FP, otherwise undefined
SIZE number of bits used to store data
PRECISION number of bits used to store data
SIZE number of bits occupied by the mode
ALIGN number of bits to which mode is aligned. */
void
enumerate_modes (void (*f) (const char *, int, int, int, int, int, int))
enumerate_modes (void (*f) (const char *, int, int, int, int, int, int, int))
{
const tree c_types[]
= { float_type_node, double_type_node, long_double_type_node };
@ -726,28 +727,26 @@ enumerate_modes (void (*f) (const char *, int, int, int, int, int, int))
/* First register any C types for this mode that the front end
may need to know about, unless the mode should be skipped. */
if (!skip_p)
if (!skip_p && !vector_p)
for (nameloop = 0; nameloop < ARRAY_SIZE (c_types); nameloop++)
{
tree typ = c_types[nameloop];
const char *nam = c_names[nameloop];
tree type = c_types[nameloop];
const char *name = c_names[nameloop];
if (TYPE_MODE (typ) == i)
if (TYPE_MODE (type) == i)
{
f (nam, digs, complex_p,
vector_p ? GET_MODE_NUNITS (i) : 0, float_rep,
TYPE_PRECISION (typ), TYPE_ALIGN (typ));
f (name, digs, complex_p, 0, float_rep, TYPE_PRECISION (type),
TREE_INT_CST_LOW (TYPE_SIZE (type)), TYPE_ALIGN (type));
skip_p = true;
}
}
/* If no predefined C types were found, register the mode itself. */
if (!skip_p)
f (GET_MODE_NAME (i), digs, complex_p,
vector_p ? GET_MODE_NUNITS (i) : 0, float_rep,
GET_MODE_PRECISION (i), GET_MODE_ALIGNMENT (i));
GET_MODE_PRECISION (i), GET_MODE_BITSIZE (i),
GET_MODE_ALIGNMENT (i));
}
}

View File

@ -1395,6 +1395,15 @@ Attribute_to_gnu (Node_Id gnat_node, tree *gnu_result_type_p, int attribute)
TREE_NO_TRAMPOLINE (gnu_expr) = TREE_CONSTANT (gnu_expr) = 1;
}
/* For 'Access, issue an error message if the prefix is a C++ method
since it can use a special calling convention on some platforms,
which cannot be propagated to the access type. */
else if (attribute == Attr_Access
&& Nkind (Prefix (gnat_node)) == N_Identifier
&& is_cplusplus_method (Entity (Prefix (gnat_node))))
post_error ("access to C++ constructor or member function not allowed",
gnat_node);
/* For other address attributes applied to a nested function,
find an inner ADDR_EXPR and annotate it so that we can issue
a useful warning with -Wtrampolines. */
@ -1892,14 +1901,19 @@ Attribute_to_gnu (Node_Id gnat_node, tree *gnu_result_type_p, int attribute)
gnu_result = bitsize_int (bitpos % BITS_PER_UNIT);
gnu_result = size_binop (PLUS_EXPR, gnu_result,
TYPE_SIZE (TREE_TYPE (gnu_prefix)));
gnu_result = size_binop (MINUS_EXPR, gnu_result,
bitsize_one_node);
/* ??? Avoid a large unsigned result that will overflow when
converted to the signed universal_integer. */
if (integer_zerop (gnu_result))
gnu_result = integer_minus_one_node;
else
gnu_result
= size_binop (MINUS_EXPR, gnu_result, bitsize_one_node);
break;
case Attr_Bit_Position:
gnu_result = gnu_field_bitpos;
break;
}
}
/* If this has a PLACEHOLDER_EXPR, qualify it by the object we are
handling. */
@ -2218,7 +2232,10 @@ can_equal_min_or_max_val_p (tree val, tree type, bool max)
if (TREE_CODE (val) != INTEGER_CST)
return true;
return tree_int_cst_equal (val, min_or_max_val) == 1;
if (max)
return tree_int_cst_lt (val, min_or_max_val) == 0;
else
return tree_int_cst_lt (min_or_max_val, val) == 0;
}
/* Return true if VAL (of type TYPE) can equal the minimum value of TYPE.
@ -2387,14 +2404,16 @@ Loop_Statement_to_gnu (Node_Id gnat_node)
/* Otherwise, use the do-while form with the help of a special
induction variable in the unsigned version of the base type
or the unsigned version of sizetype, whichever is the
or the unsigned version of the size type, whichever is the
largest, in order to have wrap-around arithmetics for it. */
else
{
if (TYPE_PRECISION (gnu_base_type) > TYPE_PRECISION (sizetype))
gnu_base_type = gnat_unsigned_type (gnu_base_type);
if (TYPE_PRECISION (gnu_base_type)
> TYPE_PRECISION (size_type_node))
gnu_base_type
= gnat_type_for_size (TYPE_PRECISION (gnu_base_type), 1);
else
gnu_base_type = sizetype;
gnu_base_type = size_type_node;
gnu_first = convert (gnu_base_type, gnu_first);
gnu_last = convert (gnu_base_type, gnu_last);
@ -3113,6 +3132,7 @@ build_return_expr (tree ret_obj, tree ret_val)
if (optimize
&& AGGREGATE_TYPE_P (operation_type)
&& !TYPE_IS_FAT_POINTER_P (operation_type)
&& TYPE_MODE (operation_type) == BLKmode
&& aggregate_value_p (operation_type, current_function_decl))
{
/* Recognize the temporary created for a return value with variable
@ -3418,6 +3438,8 @@ Subprogram_Body_to_gnu (Node_Id gnat_node)
{
tree gnu_retval;
VEC_pop (tree, gnu_return_var_stack);
add_stmt (gnu_result);
add_stmt (build1 (LABEL_EXPR, void_type_node,
VEC_last (tree, gnu_return_label_stack)));
@ -4051,7 +4073,7 @@ call_to_gnu (Node_Id gnat_node, tree *gnu_result_type_p, tree gnu_target,
/* The first entry is for the actual return value if this is a
function, so skip it. */
if (TREE_VALUE (gnu_cico_list) == void_type_node)
if (function_call)
gnu_cico_list = TREE_CHAIN (gnu_cico_list);
if (Nkind (Name (gnat_node)) == N_Explicit_Dereference)
@ -4155,8 +4177,7 @@ call_to_gnu (Node_Id gnat_node, tree *gnu_result_type_p, tree gnu_target,
return value from it and update the return type. */
if (TYPE_CI_CO_LIST (gnu_subprog_type))
{
tree gnu_elmt = value_member (void_type_node,
TYPE_CI_CO_LIST (gnu_subprog_type));
tree gnu_elmt = TYPE_CI_CO_LIST (gnu_subprog_type);
gnu_call = build_component_ref (gnu_call, NULL_TREE,
TREE_PURPOSE (gnu_elmt), false);
gnu_result_type = TREE_TYPE (gnu_call);
@ -5218,7 +5239,12 @@ gnat_to_gnu (Node_Id gnat_node)
/* Convert vector inputs to their representative array type, to fit
what the code below expects. */
gnu_array_object = maybe_vector_array (gnu_array_object);
if (VECTOR_TYPE_P (TREE_TYPE (gnu_array_object)))
{
if (present_in_lhs_or_actual_p (gnat_node))
gnat_mark_addressable (gnu_array_object);
gnu_array_object = maybe_vector_array (gnu_array_object);
}
gnu_array_object = maybe_unconstrained_array (gnu_array_object);

View File

@ -500,6 +500,22 @@ gnat_zaplevel (void)
free_binding_level = level;
}
/* Set the context of TYPE and its parallel types (if any) to CONTEXT. */
static void
gnat_set_type_context (tree type, tree context)
{
tree decl = TYPE_STUB_DECL (type);
TYPE_CONTEXT (type) = context;
while (decl && DECL_PARALLEL_TYPE (decl))
{
TYPE_CONTEXT (DECL_PARALLEL_TYPE (decl)) = context;
decl = TYPE_STUB_DECL (DECL_PARALLEL_TYPE (decl));
}
}
/* Record DECL as belonging to the current lexical scope and use GNAT_NODE
for location information and flag propagation. */
@ -581,6 +597,7 @@ gnat_pushdecl (tree decl, Node_Id gnat_node)
if (TREE_CODE (t) == POINTER_TYPE)
TYPE_NEXT_PTR_TO (t) = tt;
TYPE_NAME (tt) = DECL_NAME (decl);
gnat_set_type_context (tt, DECL_CONTEXT (decl));
TYPE_STUB_DECL (tt) = TYPE_STUB_DECL (t);
DECL_ORIGINAL_TYPE (decl) = tt;
}
@ -590,6 +607,7 @@ gnat_pushdecl (tree decl, Node_Id gnat_node)
/* We need a variant for the placeholder machinery to work. */
tree tt = build_variant_type_copy (t);
TYPE_NAME (tt) = decl;
gnat_set_type_context (tt, DECL_CONTEXT (decl));
TREE_USED (tt) = TREE_USED (t);
TREE_TYPE (decl) = tt;
if (DECL_ORIGINAL_TYPE (TYPE_NAME (t)))
@ -609,7 +627,10 @@ gnat_pushdecl (tree decl, Node_Id gnat_node)
if (t)
for (t = TYPE_MAIN_VARIANT (t); t; t = TYPE_NEXT_VARIANT (t))
if (!(TYPE_NAME (t) && TREE_CODE (TYPE_NAME (t)) == TYPE_DECL))
TYPE_NAME (t) = decl;
{
TYPE_NAME (t) = decl;
gnat_set_type_context (t, DECL_CONTEXT (decl));
}
}
}
@ -704,6 +725,19 @@ finish_record_type (tree record_type, tree field_list, int rep_level,
case where there is a rep clause but all fields have errors and
no longer have a position. */
TYPE_SIZE (record_type) = 0;
/* Ensure we use the traditional GCC layout for bitfields when we need
to pack the record type or have a representation clause. The other
possible layout (Microsoft C compiler), if available, would prevent
efficient packing in almost all cases. */
#ifdef TARGET_MS_BITFIELD_LAYOUT
if (TARGET_MS_BITFIELD_LAYOUT && TYPE_PACKED (record_type))
decl_attributes (&record_type,
tree_cons (get_identifier ("gcc_struct"),
NULL_TREE, NULL_TREE),
ATTR_FLAG_TYPE_IN_PLACE);
#endif
layout_type (record_type);
}
@ -4461,20 +4495,6 @@ maybe_unconstrained_array (tree exp)
return exp;
}
/* If EXP's type is a VECTOR_TYPE, return EXP converted to the associated
TYPE_REPRESENTATIVE_ARRAY. */
tree
maybe_vector_array (tree exp)
{
tree etype = TREE_TYPE (exp);
if (VECTOR_TYPE_P (etype))
exp = convert (TYPE_REPRESENTATIVE_ARRAY (etype), exp);
return exp;
}
/* Return true if EXPR is an expression that can be folded as an operand
of a VIEW_CONVERT_EXPR. See ada-tree.h for a complete rationale. */
@ -4896,8 +4916,12 @@ gnat_write_global_declarations (void)
if (!VEC_empty (tree, types_used_by_cur_var_decl))
{
struct varpool_node *node;
char *label;
ASM_FORMAT_PRIVATE_NAME (label, first_global_object_name, 0);
dummy_global
= build_decl (BUILTINS_LOCATION, VAR_DECL, NULL_TREE, void_type_node);
= build_decl (BUILTINS_LOCATION, VAR_DECL, get_identifier (label),
void_type_node);
TREE_STATIC (dummy_global) = 1;
TREE_ASM_WRITTEN (dummy_global) = 1;
node = varpool_node (dummy_global);

View File

@ -1902,10 +1902,12 @@ build_simple_component_ref (tree record_variable, tree component,
break;
/* Next, see if we're looking for an inherited component in an extension.
If so, look thru the extension directly. */
If so, look thru the extension directly, but not if the type contains
a placeholder, as it might be needed for a later substitution. */
if (!new_field
&& TREE_CODE (record_variable) == VIEW_CONVERT_EXPR
&& TYPE_ALIGN_OK (record_type)
&& !type_contains_placeholder_p (record_type)
&& TREE_CODE (TREE_TYPE (TREE_OPERAND (record_variable, 0)))
== RECORD_TYPE
&& TYPE_ALIGN_OK (TREE_TYPE (TREE_OPERAND (record_variable, 0))))

View File

@ -42,7 +42,7 @@ Texts. A copy of the license is included in the section entitled
@titlepage
@titlefont{GNAT Coding Style:}
@sp 1
@title @hfill A Guide for GNAT Developers
@title A Guide for GNAT Developers
@subtitle GNAT, The GNU Ada Compiler
@versionsubtitle
@author Ada Core Technologies, Inc.

View File

@ -11258,6 +11258,30 @@ The default alignment for the type @code{V} is 4, as a result of the
Integer field in the record, but it is permissible, as shown, to
override the default alignment of the record with a smaller value.
@cindex Alignment, subtypes
Note that according to the Ada standard, an alignment clause applies only
to the first named subtype. If additional subtypes are declared, then the
compiler is allowed to choose any alignment it likes, and there is no way
to control this choice. Consider:
@smallexample @c ada
type R is range 1 .. 10_000;
for R'Alignment use 1;
subtype RS is R range 1 .. 1000;
@end smallexample
@noindent
The alignment clause specifies an alignment of 1 for the first named subtype
@code{R} but this does not necessarily apply to @code{RS}. When writing
portable Ada code, you should avoid writing code that explicitly or
implicitly relies on the alignment of such subtypes.
For the GNAT compiler, if an explicit alignment clause is given, this
value is also used for any subsequent subtypes. So for GNAT, in the
above example, you can count on the alignment of @code{RS} being 1. But this
assumption is non-portable, and other compilers may choose different
alignments for the subtype @code{RS}.
@node Size Clauses
@section Size Clauses
@cindex Size Clause

View File

@ -178,6 +178,19 @@ procedure Gnatlink is
-- Predicate indicating whether the linker has an option whereby the
-- names of object files can be passed to the linker in a file.
Object_File_Option_Ptr : Interfaces.C.Strings.chars_ptr;
pragma Import (C, Object_File_Option_Ptr, "__gnat_object_file_option");
-- Pointer to a string representing the linker option which specifies
-- the response file.
Object_File_Option : constant String := Value (Object_File_Option_Ptr);
-- The linker option which specifies the response file as a string
Using_GNU_response_file : constant Boolean :=
Object_File_Option'Length > 0
and then Object_File_Option (Object_File_Option'Last) = '@';
-- Whether a GNU response file is used
Object_List_File_Required : Boolean := False;
-- Set to True to force generation of a response file
@ -760,28 +773,12 @@ procedure Gnatlink is
-- Pointer to string specifying the default extension for
-- object libraries, e.g. Unix uses ".a", VMS uses ".olb".
Object_File_Option_Ptr : Interfaces.C.Strings.chars_ptr;
pragma Import (C, Object_File_Option_Ptr, "__gnat_object_file_option");
-- Pointer to a string representing the linker option which specifies
-- the response file.
Using_GNU_Linker : Boolean;
for Using_GNU_Linker'Size use Character'Size;
pragma Import (C, Using_GNU_Linker, "__gnat_using_gnu_linker");
-- Predicate indicating whether this target uses the GNU linker. In
-- this case we must output a GNU linker compatible response file.
Separate_Run_Path_Options : Boolean;
for Separate_Run_Path_Options'Size use Character'Size;
pragma Import
(C, Separate_Run_Path_Options, "__gnat_separate_run_path_options");
-- Whether separate rpath options should be emitted for each directory
Opening : aliased constant String := """";
Closing : aliased constant String := '"' & ASCII.LF;
-- Needed to quote object paths in object list files when GNU linker
-- is used.
procedure Get_Next_Line;
-- Read the next line from the binder file without the line
-- terminator.
@ -804,6 +801,10 @@ procedure Gnatlink is
-- after Store_File_Context. The binder file context will be restored
-- with the data stored by the last Store_File_Context call.
procedure Write_RF (S : String);
-- Write a string to the response file and check if it was successful.
-- Fail the program if it was not successful (disk full).
-------------------
-- Get_Next_Line --
-------------------
@ -897,6 +898,46 @@ procedure Gnatlink is
end if;
end Store_File_Context;
--------------
-- Write_RF --
--------------
procedure Write_RF (S : String) is
Success : Boolean := True;
begin
-- If a GNU response file is used, space and backslash need to be
-- escaped because they are interpreted as a string separator and
-- an escape character respectively by the underlying mechanism.
-- On the other hand, quote and double-quote are not escaped since
-- they are interpreted as string delimiters on both sides.
if Using_GNU_response_file then
for I in S'Range loop
if S (I) = ' ' or else S (I) = '\' then
if Write (Tname_FD, ASCII.BACK_SLASH'Address, 1) /= 1 then
Success := False;
end if;
end if;
if Write (Tname_FD, S (I)'Address, 1) /= 1 then
Success := False;
end if;
end loop;
else
if Write (Tname_FD, S'Address, S'Length) /= S'Length then
Success := False;
end if;
end if;
if Write (Tname_FD, ASCII.LF'Address, 1) /= 1 then
Success := False;
end if;
if not Success then
Exit_With_Error ("Error generating response file: disk full");
end if;
end Write_RF;
-- Start of processing for Process_Binder_File
begin
@ -985,61 +1026,14 @@ procedure Gnatlink is
-- ??? Status of Write and Close operations should be checked, and
-- failure should occur if a status is wrong.
-- If target is using the GNU linker we must add a special header
-- and footer in the response file.
-- The syntax is : INPUT (object1.o object2.o ... )
-- Because the GNU linker does not like name with characters such
-- as '!', we must put the object paths between double quotes.
if Using_GNU_Linker then
declare
GNU_Header : aliased constant String := "INPUT (";
begin
Status := Write (Tname_FD, GNU_Header'Address,
GNU_Header'Length);
end;
end if;
for J in Objs_Begin .. Objs_End loop
-- Opening quote for GNU linker
if Using_GNU_Linker then
Status := Write (Tname_FD, Opening'Address, 1);
end if;
Status := Write (Tname_FD, Linker_Objects.Table (J).all'Address,
Linker_Objects.Table (J).all'Length);
-- Closing quote for GNU linker
if Using_GNU_Linker then
Status := Write (Tname_FD, Closing'Address, 2);
else
Status := Write (Tname_FD, ASCII.LF'Address, 1);
end if;
Write_RF (Linker_Objects.Table (J).all);
Response_File_Objects.Increment_Last;
Response_File_Objects.Table (Response_File_Objects.Last) :=
Linker_Objects.Table (J);
end loop;
-- Handle GNU linker response file footer
if Using_GNU_Linker then
declare
GNU_Footer : aliased constant String := ")";
begin
Status := Write (Tname_FD, GNU_Footer'Address,
GNU_Footer'Length);
end;
end if;
Close (Tname_FD, Closing_Status);
-- Add the special objects list file option together with the name
@ -1047,7 +1041,7 @@ procedure Gnatlink is
-- file table.
Linker_Objects.Table (Objs_Begin) :=
new String'(Value (Object_File_Option_Ptr) &
new String'(Object_File_Option &
Tname (Tname'First .. Tname'Last - 1));
-- The slots containing these object file names are then removed
@ -2213,14 +2207,15 @@ begin
System.OS_Lib.Spawn (Linker_Path.all, Args, Success);
-- Delete the temporary file used in conjunction with linking if
-- one was created. See Process_Bind_File for details.
if Success then
-- Delete the temporary file used in conjunction with linking
-- if one was created. See Process_Bind_File for details.
if Tname_FD /= Invalid_FD then
Delete (Tname);
end if;
if Tname_FD /= Invalid_FD then
Delete (Tname);
end if;
if not Success then
else
Error_Msg ("error when calling " & Linker_Path.all);
Exit_Program (E_Fatal);
end if;

View File

@ -2256,7 +2256,9 @@ __gnat_install_handler(void)
#elif defined(__APPLE__)
#include <signal.h>
#include <stdlib.h>
#include <sys/syscall.h>
#include <sys/sysctl.h>
#include <mach/mach_vm.h>
#include <mach/mach_init.h>
#include <mach/vm_statistics.h>
@ -2295,20 +2297,52 @@ __gnat_is_stack_guard (mach_vm_address_t addr)
#define HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE
#if defined (__x86_64__)
static int
__darwin_major_version (void)
{
static int cache = -1;
if (cache < 0)
{
int mib[2] = {CTL_KERN, KERN_OSRELEASE};
size_t len;
/* Find out how big the buffer needs to be (and set cache to 0
on failure). */
if (sysctl (mib, 2, NULL, &len, NULL, 0) == 0)
{
char release[len];
sysctl (mib, 2, release, &len, NULL, 0);
/* Darwin releases are of the form L.M.N where L is the major
version, so strtol will return L. */
cache = (int) strtol (release, NULL, 10);
}
else
{
cache = 0;
}
}
return cache;
}
#endif
void
__gnat_adjust_context_for_raise (int signo ATTRIBUTE_UNUSED,
void *ucontext ATTRIBUTE_UNUSED)
{
#if defined (__x86_64__)
/* Work around radar #10302855/pr50678, where the unwinders (libunwind or
libgcc_s depending on the system revision) and the DWARF unwind data for
the sigtramp have different ideas about register numbering (causing rbx
and rdx to be transposed).. */
ucontext_t *uc = (ucontext_t *)ucontext ;
unsigned long t = uc->uc_mcontext->__ss.__rbx;
if (__darwin_major_version () < 12)
{
/* Work around radar #10302855, where the unwinders (libunwind or
libgcc_s depending on the system revision) and the DWARF unwind
data for sigtramp have different ideas about register numbering,
causing rbx and rdx to be transposed. */
ucontext_t *uc = (ucontext_t *)ucontext;
unsigned long t = uc->uc_mcontext->__ss.__rbx;
uc->uc_mcontext->__ss.__rbx = uc->uc_mcontext->__ss.__rdx;
uc->uc_mcontext->__ss.__rdx = t;
uc->uc_mcontext->__ss.__rbx = uc->uc_mcontext->__ss.__rdx;
uc->uc_mcontext->__ss.__rdx = t;
}
#endif
}

View File

@ -88,14 +88,14 @@ append_arg (int *index, LPWSTR dir, LPWSTR value,
{
/* no dir prefix */
dirlen = 0;
fullvalue = xmalloc ((vallen + 1) * sizeof(TCHAR));
fullvalue = (LPWSTR) xmalloc ((vallen + 1) * sizeof(TCHAR));
}
else
{
/* Add dir first */
dirlen = _tcslen (dir);
fullvalue = xmalloc ((dirlen + vallen + 1) * sizeof(TCHAR));
fullvalue = (LPWSTR) xmalloc ((dirlen + vallen + 1) * sizeof(TCHAR));
_tcscpy (fullvalue, dir);
}
@ -203,7 +203,7 @@ __gnat_initialize (void *eh ATTRIBUTE_UNUSED)
if (ldir != NULL)
{
int n = ldir - wargv[k] + 1;
dir = xmalloc ((n + 1) * sizeof (TCHAR));
dir = (LPWSTR) xmalloc ((n + 1) * sizeof (TCHAR));
_tcsncpy (dir, wargv[k], n);
dir[n] = _T('\0');
}

View File

@ -72,27 +72,12 @@ extern "C" {
/* shared_libgcc_default gives the system dependent link method that */
/* be used by default for linking libgcc (shared or static) */
/* using_gnu_linker is set to 1 when the GNU linker is used under this */
/* target. */
/* separate_run_path_options is set to 1 when separate "rpath" arguments */
/* must be passed to the linker for each directory in the rpath. */
/* default_libgcc_subdir is the subdirectory name (from the installation */
/* root) where we may find a shared libgcc to use by default. */
/* RESPONSE FILE & GNU LINKER */
/* -------------------------- */
/* objlist_file_supported and using_gnu_link used together tell gnatlink */
/* to generate a GNU style response file. Note that object_file_option */
/* must be set to "" in this case, since no option is required for a */
/* response file to be passed to GNU ld. With a GNU linker we use the */
/* linker script to implement the response file feature. Any file passed */
/* in the GNU ld command line with an unknown extension is supposed to be */
/* a linker script. Each linker script augment the current configuration. */
/* The format of such response file is as follow : */
/* INPUT (obj1.p obj2.o ...) */
#define SHARED 'H'
#define STATIC 'T'
@ -103,7 +88,6 @@ int __gnat_link_max = 10000;
unsigned char __gnat_objlist_file_supported = 1;
char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
unsigned char __gnat_using_gnu_linker = 0;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 0;
const char *__gnat_default_libgcc_subdir = "lib";
@ -115,7 +99,6 @@ int __gnat_link_max = 5000;
unsigned char __gnat_objlist_file_supported = 1;
char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
unsigned char __gnat_using_gnu_linker = 0;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 0;
@ -129,13 +112,12 @@ const char *__gnat_default_libgcc_subdir = "lib32";
#endif
#elif defined (__WIN32)
const char *__gnat_object_file_option = "";
const char *__gnat_object_file_option = "-Wl,@";
const char *__gnat_run_path_option = "";
int __gnat_link_max = 30000;
unsigned char __gnat_objlist_file_supported = 1;
char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
unsigned char __gnat_using_gnu_linker = 1;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 0;
const char *__gnat_default_libgcc_subdir = "lib";
@ -147,19 +129,17 @@ int __gnat_link_max = 5000;
unsigned char __gnat_objlist_file_supported = 1;
char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
unsigned char __gnat_using_gnu_linker = 0;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 0;
const char *__gnat_default_libgcc_subdir = "lib";
#elif defined (__FreeBSD__)
const char *__gnat_object_file_option = "";
const char *__gnat_object_file_option = "-Wl,@";
const char *__gnat_run_path_option = "-Wl,-rpath,";
char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
int __gnat_link_max = 8192;
unsigned char __gnat_objlist_file_supported = 1;
unsigned char __gnat_using_gnu_linker = 1;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 0;
const char *__gnat_default_libgcc_subdir = "lib";
@ -171,19 +151,17 @@ char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = SHARED;
int __gnat_link_max = 262144;
unsigned char __gnat_objlist_file_supported = 1;
unsigned char __gnat_using_gnu_linker = 0;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 1;
const char *__gnat_default_libgcc_subdir = "lib";
#elif defined (linux) || defined(__GLIBC__)
const char *__gnat_object_file_option = "";
const char *__gnat_object_file_option = "-Wl,@";
const char *__gnat_run_path_option = "-Wl,-rpath,";
char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
int __gnat_link_max = 8192;
unsigned char __gnat_objlist_file_supported = 1;
unsigned char __gnat_using_gnu_linker = 1;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 0;
#if defined (__x86_64)
@ -202,7 +180,6 @@ char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
int __gnat_link_max = 15000;
const unsigned char __gnat_objlist_file_supported = 1;
unsigned char __gnat_using_gnu_linker = 0;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 0;
const char *__gnat_default_libgcc_subdir = "lib";
@ -211,13 +188,12 @@ const char *__gnat_default_libgcc_subdir = "lib";
/* These are the settings for all systems that use gnu ld. GNU style response
file is supported, the shared library default is STATIC. */
const char *__gnat_object_file_option = "";
const char *__gnat_object_file_option = "-Wl,@";
const char *__gnat_run_path_option = "";
char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
int __gnat_link_max = 8192;
unsigned char __gnat_objlist_file_supported = 1;
unsigned char __gnat_using_gnu_linker = 1;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 0;
const char *__gnat_default_libgcc_subdir = "lib";
@ -229,7 +205,6 @@ char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
int __gnat_link_max = 2147483647;
unsigned char __gnat_objlist_file_supported = 0;
unsigned char __gnat_using_gnu_linker = 0;
const char *__gnat_object_library_extension = ".olb";
unsigned char __gnat_separate_run_path_options = 0;
const char *__gnat_default_libgcc_subdir = "lib";
@ -241,7 +216,6 @@ char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
int __gnat_link_max = 2147483647;
unsigned char __gnat_objlist_file_supported = 0;
unsigned char __gnat_using_gnu_linker = 0;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 0;
#if defined (__sparc_v9__) || defined (__sparcv9)
@ -259,7 +233,6 @@ char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
int __gnat_link_max = 2147483647;
unsigned char __gnat_objlist_file_supported = 0;
unsigned char __gnat_using_gnu_linker = 0;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 0;
const char *__gnat_default_libgcc_subdir = "lib";
@ -274,7 +247,6 @@ char __gnat_shared_libgnat_default = STATIC;
char __gnat_shared_libgcc_default = STATIC;
int __gnat_link_max = 2147483647;
unsigned char __gnat_objlist_file_supported = 0;
unsigned char __gnat_using_gnu_linker = 0;
const char *__gnat_object_library_extension = ".a";
unsigned char __gnat_separate_run_path_options = 0;
const char *__gnat_default_libgcc_subdir = "lib";

View File

@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
-- Copyright (C) 2002-2011, AdaCore --
-- Copyright (C) 2002-2012, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@ -31,8 +31,6 @@ with Output; use Output;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with System;
package body MLib.Utl is
Adalib_Path : String_Access := null;
@ -353,16 +351,13 @@ package body MLib.Utl is
-- Pointer to a string representing the linker option which specifies
-- the response file.
Using_GNU_Linker : Boolean;
for Using_GNU_Linker'Size use Character'Size;
pragma Import (C, Using_GNU_Linker, "__gnat_using_gnu_linker");
-- Predicate indicating whether this target uses the GNU linker. In
-- this case we must output a GNU linker compatible response file.
Object_File_Option : constant String := Value (Object_File_Option_Ptr);
-- The linker option which specifies the response file as a string
Opening : aliased constant String := """";
Closing : aliased constant String := '"' & ASCII.LF;
-- Needed to quote object paths in object list files when GNU linker
-- is used.
Using_GNU_response_file : constant Boolean :=
Object_File_Option'Length > 0
and then Object_File_Option (Object_File_Option'Last) = '@';
-- Whether a GNU response file is used
Tname : String_Access;
Tname_FD : File_Descriptor := Invalid_FD;
@ -390,7 +385,7 @@ package body MLib.Utl is
Position : Object_Position;
procedure Write_RF (A : System.Address; N : Integer);
procedure Write_RF (S : String);
-- Write a string to the response file and check if it was successful.
-- Fail the program if it was not successful (disk full).
@ -398,12 +393,38 @@ package body MLib.Utl is
-- Write_RF --
--------------
procedure Write_RF (A : System.Address; N : Integer) is
Status : Integer;
procedure Write_RF (S : String) is
Success : Boolean := True;
begin
Status := Write (Tname_FD, A, N);
-- If a GNU response file is used, space and backslash need to be
-- escaped because they are interpreted as a string separator and
-- an escape character respectively by the underlying mechanism.
-- On the other hand, quote and double-quote are not escaped since
-- they are interpreted as string delimiters on both sides.
if Status /= N then
if Using_GNU_response_file then
for I in S'Range loop
if S (I) = ' ' or else S (I) = '\' then
if Write (Tname_FD, ASCII.BACK_SLASH'Address, 1) /= 1 then
Success := False;
end if;
end if;
if Write (Tname_FD, S (I)'Address, 1) /= 1 then
Success := False;
end if;
end loop;
else
if Write (Tname_FD, S'Address, S'Length) /= S'Length then
Success := False;
end if;
end if;
if Write (Tname_FD, ASCII.LF'Address, 1) /= 1 then
Success := False;
end if;
if not Success then
Fail ("cannot generate response file to link library: disk full");
end if;
end Write_RF;
@ -529,53 +550,10 @@ package body MLib.Utl is
Create_Temp_File (Tname_FD, Tname);
-- If target is using the GNU linker we must add a special header
-- and footer in the response file.
-- The syntax is : INPUT (object1.o object2.o ... )
-- Because the GNU linker does not like name with characters such
-- as '!', we must put the object paths between double quotes.
if Using_GNU_Linker then
declare
GNU_Header : aliased constant String := "INPUT (";
begin
Write_RF (GNU_Header'Address, GNU_Header'Length);
end;
end if;
for J in Objects'Range loop
-- Opening quote for GNU linker
if Using_GNU_Linker then
Write_RF (Opening'Address, 1);
end if;
Write_RF (Objects (J).all'Address, Objects (J).all'Length);
-- Closing quote for GNU linker
if Using_GNU_Linker then
Write_RF (Closing'Address, 2);
else
Write_RF (ASCII.LF'Address, 1);
end if;
Write_RF (Objects (J).all);
end loop;
-- Handle GNU linker response file footer
if Using_GNU_Linker then
declare
GNU_Footer : aliased constant String := ")";
begin
Write_RF (GNU_Footer'Address, GNU_Footer'Length);
end;
end if;
Close (Tname_FD, Closing_Status);
if not Closing_Status then
@ -583,8 +561,7 @@ package body MLib.Utl is
end if;
A := A + 1;
Arguments (A) :=
new String'(Value (Object_File_Option_Ptr) & Tname.all);
Arguments (A) := new String'(Object_File_Option & Tname.all);
else
A := A + Objects'Length;
@ -596,17 +573,15 @@ package body MLib.Utl is
Spawn (Driver.all, Arguments (1 .. A), Success);
if Tname /= null then
Delete_File (Tname.all, Closing_Status);
if Success then
-- Delete the temporary file used in conjunction with linking
-- if one was created.
if not Closing_Status then
Write_Str ("warning: could not delete response file """);
Write_Str (Tname.all);
Write_Line (""" to link library");
if Tname_FD /= Invalid_FD then
Delete_File (Tname.all);
end if;
end if;
if not Success then
else
if Driver_Name = No_Name then
Fail (Gcc_Name.all & " execution error");
else

0
gcc/ada/namet-sp.adb Executable file → Normal file
View File

0
gcc/ada/namet-sp.ads Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More