Commit Graph

106047 Commits

Author SHA1 Message Date
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
Jakub Jelinek
9766135bb1 re PR rtl-optimization/47157 (ICE: in calc_dfs_tree, at dominance.c:395 with -O)
PR rtl-optimization/47157
	* combine.c (try_combine): If undobuf.other_insn becomes
	(set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
	and set *new_direct_jump_p too.

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

From-SVN: r168439
2011-01-03 21:59:20 +01:00
Jakub Jelinek
d652f226fc Update Copyright years for files modified in 2010.
From-SVN: r168438
2011-01-03 21:52:22 +01:00
Ulrich Weigand
4c81ff2682 vector-shift2.c (schar): Define.
* gcc.dg/torture/vector-shift2.c (schar): Define.
	(main): Always use schar or uchar instead of plain "char" to avoid
	dependencies on implementation-defined char signedness.

From-SVN: r168437
2011-01-03 18:02:35 +00:00
Paolo Carlini
bfb194f15f re PR libstdc++/46922 (Missing exported symbols from libstdc++)
2011-01-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/46922
	* config/abi/pre/gnu.ver: Export std::bad_function_call symbols.

From-SVN: r168435
2011-01-03 17:09:12 +00:00
Sebastian Pop
f4a2e5717b Fix PR47021: ADDR_EXPRs don't contain SCoP parameters.
2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/47021
	* graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.

From-SVN: r168433
2011-01-03 17:01:36 +00:00
Jakub Jelinek
9f8e43c012 gcc.c (process_command): Update copyright notice dates.
gcc/
	* gcc.c (process_command): Update copyright notice dates.
	* gcov.c (print_version): Likewise.
	* gcov-dump.c (print_version): Likewise.
	* mips-tfile.c (main): Likewise.
	* mips-tdump.c (main): Likewise.
gcc/fortran/
	* gfortranspec.c (lang_specific_driver): Update copyright notice
	dates.
gcc/java/
	* jcf-dump.c (version): Update copyright notice dates.
libmudflap/
	* mf-runtime.c (__mf_usage): Update copyright notice dates.
libjava/
	* gnu/gcj/convert/Convert.java (version): Update copyright notice
	dates.
	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise.
libjava/classpath/
	* gnu/java/rmi/registry/RegistryImpl.java (version): Update
	copyright notice dates.
	* tools/gnu/classpath/tools/orbd/Main.java (run): Likewise.

From-SVN: r168432
2011-01-03 17:14:57 +01:00
Martin Jambor
1a2e38f3dd re PR tree-optimization/46801 (FAIL: gnat.dg/pack9.adb scan-tree-dump-not optimized "gnat_rcheck")
2011-01-03  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/46801
	* tree-sra.c (type_internals_preclude_sra_p): Check whether
	aggregate fields start at byte boundary instead of the bit-field flag.

	* testsuite/gnat.dg/pack9.adb: Remove xfail.

From-SVN: r168431
2011-01-03 16:43:23 +01:00
H.J. Lu
56b721c591 Revert revision 168407.
2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>

	PR driver/47137
	* gcc.c (main): Revert revision 168407.

From-SVN: r168429
2011-01-03 07:03:05 -08:00
Martin Jambor
839d549b58 lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
2011-01-03  Martin Jambor  <mjambor@suse.cz>

	* lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.

From-SVN: r168424
2011-01-03 14:32:44 +01:00
Ulrich Weigand
2fa6eeff4b tree-vect-generic.c (expand_vector_operations_1): When using vector/ vector optab to expand vector/scalar shift...
* tree-vect-generic.c (expand_vector_operations_1): When using vector/
	vector optab to expand vector/scalar shift, update gimple to vector.

From-SVN: r168423
2011-01-03 13:25:25 +00:00