Commit Graph

105807 Commits

Author SHA1 Message Date
Eric Botcazou
5e9fba51b5 re PR tree-optimization/47005 (ACATS c62002a is miscompiled at -O2)
PR tree-optimization/47005
	* tree-sra.c (struct access): Add 'non_addressable' bit.
	(create_access): Set it for a DECL_NONADDRESSABLE_P field.
	(decide_one_param_reduction): Return 0 if the parameter is passed by
	reference and one of the accesses in the group is non_addressable.

From-SVN: r168508
2011-01-05 11:23:40 +00:00
Thomas Koenig
75fee9f255 re PR fortran/46017 (Reject ALLOCATE(a, a%b) as "a%b" depends on the allocation status of "a")
2011-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/46017
	* resolve.c (resolve_allocate_deallocate): Follow references to
	check for duplicate occurence of allocation/deallocation objects.

2011-01-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/46017
	* gfortran.dg/allocate_error_2.f90:  New test.

From-SVN: r168506
2011-01-05 10:03:15 +00:00
Janus Weil
8c077737e2 re PR fortran/47024 ([OOP] STORAGE_SIZE (for polymorphic types): Segfault at run time)
2011-01-05  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47024
	* trans-decl.c (gfc_trans_deferred_vars): Initialize the _vpr component
	of polymorphic allocatables according to their declared type.


2011-01-05  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47024
	* gfortran.dg/storage_size_3.f08: New.

From-SVN: r168505
2011-01-05 10:05:44 +01:00
Ian Lance Taylor
6452b11201 re PR go/47158 ([cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc)
PR go/47158
	PR go/47159
	PR go/47160
	PR go/47161
Fix space leaks.
Patch from Ettl Martin.

From-SVN: r168504
2011-01-05 05:33:32 +00:00
Jerry DeLisle
183440ee5b re PR libfortran/47154 (END= does not work in namelist read)
2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47154
	* gfortran.dg/namelist_68.f90: New test.

From-SVN: r168503
2011-01-05 04:18:39 +00:00
Jerry DeLisle
43e0224a58 re PR libfortran/47154 (END= does not work in namelist read)
2011-01-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47154
	* io/list_read.c (namelist_read): Remove calls to hit_eof to avoid the
	duplicate calls via next_record.

From-SVN: r168502
2011-01-05 03:53:15 +00:00
Joseph Myers
535e081a5a * de.po: Update.
From-SVN: r168501
2011-01-05 01:24:51 +00:00
Ian Lance Taylor
9a00604e53 re PR go/46959 (M68K Not Supported by Go)
PR go/46959
	PR go/46960
	PR go/46961
	PR go/46962
	PR go/46963
	PR go/46964
Use __builtin_unwind_init rather than the SAVE_REGS hack.

From-SVN: r168500
2011-01-05 00:24:15 +00:00
GCC Administrator
adb7f9c365 Daily bump.
From-SVN: r168499
2011-01-05 00:18:25 +00:00
Ian Lance Taylor
a3bc69c529 re PR go/46958 (ARM Go Does Not Compile (__builtin_return_address))
PR go/46958
	PR go/46965
Call __builtin_return_address with 0 rather than 1.

From-SVN: r168495
2011-01-05 00:07:59 +00:00
Ian Lance Taylor
5667638c69 Check for identical package name and prefix in imported package.
From-SVN: r168494
2011-01-04 23:29:49 +00:00
Eric Botcazou
3ebb5ca6cc re PR tree-optimization/47056 (10 Ada ACATS tests fail to link with undefined reference on ia64-linux)
PR tree-optimization/47056
	* cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
	(mark_load): Likewise.  Handle FUNCTION_DECL specially.
	(mark_store): Likewise.  Pass STMT to ipa_record_reference.

From-SVN: r168493
2011-01-04 23:22:31 +00:00
Eric Botcazou
c5a62c6fde re PR preprocessor/39213 (Preprocessor ICE with -m64 and --traditional-cpp)
PR preprocessor/39213
	* directives.c (end_directive): Call _cpp_remove_overlay for deferred
	pragmas as well in traditional mode.

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

From-SVN: r168490
2011-01-04 23:18:12 +00:00
Ian Lance Taylor
c7f15f802a Don't crash if append arguments are erroneous.
From-SVN: r168489
2011-01-04 22:54:05 +00:00
Eric Botcazou
d5d4d14e15 dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the initializer.
* dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
	initializer.  Skip view conversions from aggregate types.

From-SVN: r168488
2011-01-04 22:44:04 +00:00
Ian Lance Taylor
5e208e74b3 Don't crash when adding function calls that return multiple results.
From-SVN: r168487
2011-01-04 22:37:26 +00:00
Ian Lance Taylor
bdc4349d7e Don't look outside of function literal for break or continue label.
From-SVN: r168486
2011-01-04 22:18:20 +00:00
Ian Lance Taylor
82701bd204 Don't create erroneous COND_EXPR.
From-SVN: r168485
2011-01-04 22:15:46 +00:00
Ian Lance Taylor
eb83e2d7f0 Don't crash if tuple init redefines non-variable.
From-SVN: r168484
2011-01-04 21:15:26 +00:00
Ian Lance Taylor
1ed36e906f Don't crash if named constant has no type when converting to GENERIC.
From-SVN: r168483
2011-01-04 20:18:31 +00:00
Ian Lance Taylor
10d53f5d11 Don't crash initializing multiple vars from a single result function.
From-SVN: r168482
2011-01-04 19:46:23 +00:00
Ian Lance Taylor
79b4a34ad0 Check for multiple default cases in switch or select.
From-SVN: r168481
2011-01-04 19:34:32 +00:00
Ian Lance Taylor
f36067eb52 Fix handling of abstract types in temporary statements.
From-SVN: r168480
2011-01-04 19:02:47 +00:00
Kai Tietz
37cae45e16 Ups missed ...
From-SVN: r168479
2011-01-04 19:53:32 +01:00
Ian Lance Taylor
ecad0c2519 Traverse expressions when looking for types.
From-SVN: r168478
2011-01-04 18:52:50 +00:00
Ian Lance Taylor
7516c36883 Don't crash if package import fails.
From-SVN: r168477
2011-01-04 18:24:05 +00:00
Ian Lance Taylor
1b7029893b Fix building recover thunks which return multiple values.
From-SVN: r168476
2011-01-04 18:16:17 +00:00
Kai Tietz
d996ef705a re PR bootstrap/47055 ("make profiledbootstrap" fails on MSYS/mingw-w64)
2011-01-04  Kai Tietz  <kai.tietz@onevision.com>

        PR bootstrap/47055
        * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.

From-SVN: r168475
2011-01-04 19:05:06 +01:00
Kai Tietz
7f957ac94c re PR libstdc++/47145 (configure test for docbook-xsl-ns stylesheets uses hardcoded path)
2011-01-04  Kai Tietz  <kai.tietz@onevision.com>

        PR libstdc++/47145
        * configure.ac (AC_CHECK_FILE): Replaced by test -f.
        * configure: Regenerated.

Unbreaking cross-compiling ...

From-SVN: r168474
2011-01-04 18:59:39 +01:00
Ian Lance Taylor
b6493d3890 Avoid crash when selecting on non-channel.
From-SVN: r168473
2011-01-04 17:42:21 +00:00
Philipp Thomas
017096ca1c Fix obvious typo.
From-SVN: r168471
2011-01-04 16:59:42 +00:00
Janus Weil
844ba45510 re PR fortran/46448 ([OOP] symbol `__copy_...' is already defined)
2011-01-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/46448
	* class.c (gfc_find_derived_vtab): Set the module field for the copying
	routine to make sure it receives module name mangling.


2011-01-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/46448
	* gfortran.dg/class_34.f90: New.

From-SVN: r168464
2011-01-04 13:59:23 +01:00
Ulrich Weigand
55c623b524 function.c (thread_prologue_and_epilogue_insns): Do not crash on empty epilogue sequences.
* function.c (thread_prologue_and_epilogue_insns): Do not crash
	on empty epilogue sequences.

From-SVN: r168463
2011-01-04 12:20:45 +00:00
Ulrich Weigand
d28139df87 builtin-cproj-1.c: On the __SPU__ target, do not use __builtin_inff.
* gcc.dg/torture/builtin-cproj-1.c: On the __SPU__ target, do not
	use __builtin_inff.  Skip all single-precision tests that require
	Infinity.

From-SVN: r168462
2011-01-04 12:19:31 +00:00
Joseph Myers
b98d6b3556 vxworks.opt (Bdynamic, [...]): New Driver options.
* config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
	non-static): New Driver options.

From-SVN: r168461
2011-01-04 11:48:04 +00:00
Pascal Obry
c6eecbd880 decl.c: Disable Stdcall convention handling for 64-bit.
* gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r168460
2011-01-04 11:33:39 +00:00
Jie Zhang
a0d43bacfc re PR driver/47137 (gcc incorrectly combines assembly inputs)
PR driver/47137
	* gcc.c (default_compilers[]): Set combinable field to 0
	for all assembly languages.

From-SVN: r168459
2011-01-04 10:21:27 +00:00
Eric Botcazou
2d3c7e4f2d trans.c (Case_Statement_to_gnu): Put the SLOC of the end-of-case on the end label and its associated gotos, if any.
* gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
	end-of-case on the end label and its associated gotos, if any.

From-SVN: r168458
2011-01-04 09:50:33 +00:00
Eric Botcazou
0394741f9b trans.c (Subprogram_Body_to_gnu): Evaluate the expressions of the parameter cache within the statement group of...
* gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
	expressions of the parameter cache within the statement group of
	the CICO mechanism.

From-SVN: r168456
2011-01-04 09:43:56 +00:00
Olivier Hainque
2a02d0907c trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
* gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
	(set_end_locus_from_node): New function.
	(Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
	make and the function end_locus.
	(Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
	for the elaboration subprogram.
	(set_gnu_expr_location_from_node) <default case>: Use it to attempt to
	set the end_locus of the expression as well.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r168455
2011-01-04 09:30:06 +00:00
Eric Botcazou
89f5e97804 re PR ada/47131 (internal error for ACATS C34011B on SJLJ targets)
PR ada/47131
	* gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
	variables that are referenced in exception handlers volatile.

From-SVN: r168454
2011-01-04 08:58:02 +00:00
Mingjie Xing
2b18eb327c Add the pipeline description for Loongson3A.
From-SVN: r168452
2011-01-04 02:53:50 +00:00
GCC Administrator
5e7e855011 Daily bump.
From-SVN: r168451
2011-01-04 00:18:03 +00:00
Eric Botcazou
42a48c4fd6 re PR middle-end/47017 (gnatlib ICE on sparc64-linux)
PR middle-end/47017
	* expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
	instead of convert_memory_address_addr_space on the base expression.

From-SVN: r168447
2011-01-03 23:59:55 +00:00
Ulrich Weigand
249d12daf8 * g++.dg/torture/pr46111.C: Add dg-require-effective-target pthread.
From-SVN: r168446
2011-01-03 23:16:17 +00:00
Ulrich Weigand
9c1732c469 spu.c (spu_option_override): Update error text for bad -march= / -mtune= values.
* config/spu/spu.c (spu_option_override): Update error text
	for bad -march= / -mtune= values.

From-SVN: r168445
2011-01-03 23:15:03 +00:00
Ulrich Weigand
aa474365da spu.c (asm_file_start): Only reset flag_var_tracking if branch-hint optimization will be performed.
* config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
	if branch-hint optimization will be performed.

From-SVN: r168444
2011-01-03 23:14:18 +00:00
Ulrich Weigand
4ce99a208b Fix incorrect date.
From-SVN: r168443
2011-01-03 23:13:48 +00:00
Jakub Jelinek
371556eeb7 re PR target/47148 (likely wrong code bug)
PR tree-optimization/47148
	* ipa-split.c (split_function): Convert arguments to
	DECL_ARG_TYPE if possible.

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

From-SVN: r168441
2011-01-03 22:10:31 +01:00
Jakub Jelinek
1ac12fa2a7 re PR tree-optimization/47155 (ccp caused miscompilation)
PR tree-optimization/47155
	* tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
	when computing uns.

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

From-SVN: r168440
2011-01-03 22:01:14 +01:00