Commit Graph

106364 Commits

Author SHA1 Message Date
Ian Lance Taylor
c9610865d0 mksysinfo.sh: Use -std=gnu99.
From-SVN: r169379
2011-01-28 23:54:56 +00:00
Dodji Seketeli
bc44baadce re PR preprocessor/47311 ([C++0x] ICE in tsubst @cp/pt.c:10502)
Fix PR c++/47311

gcc/cp/

	PR c++/47311
	* cp-tree.h (fixup_template_parms): Declare.
	* pt.c (end_template_parm_list): Do not fixup template parms here.
	(fixup_template_parms): Remove static. Fix typo in the
	comments. Remove useless code statement.
	(fixup_template_parm): For a template template parameter, fixup
	its attributes before fixing up its type.
	* parser.c
	(cp_parser_template_declaration_after_export): After parsing
	template parameters fixup their types.

gcc/testsuite/

	PR c++/47311
	* g++.dg/template/param2.C: New test.

From-SVN: r169377
2011-01-29 00:35:59 +01:00
Ian Lance Taylor
46adbf0c6b mksysinfo.sh: Fix Solaris specific define.
From-SVN: r169376
2011-01-28 23:33:28 +00:00
Jerry DeLisle
874634eda6 re PR libfortran/47285 (G format outputs wrong number of characters when decimal supplied in literal)
2011-01-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47285
	* gfortran.dg/fmt_g.f: New test.

From-SVN: r169375
2011-01-28 22:35:43 +00:00
Tobias Burnus
36ea267b8a re PR fortran/47507 (PURE functions with VALUE arguments invalidly rejectd)
2011-01-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47507
        * resolve.c (resolve_formal_arglist): Allow arguments with VALUE
        attribute also without INTENT.

2011-01-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47507
        * gfortran.dg/pure_formal_1.f90: New.

From-SVN: r169372
2011-01-28 20:49:25 +01:00
Tobias Burnus
5582f599f6 gfortran.texi (Fortran 2003 status): Mention support for nonconstant namelist variables.
2011-01-28  Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi (Fortran 2003 status): Mention support for
        nonconstant namelist variables.

From-SVN: r169371
2011-01-28 20:47:16 +01:00
Jakub Jelinek
591e29d9da re PR target/42894 (Invalid rtl sharing in Thumb1.)
PR target/42894
	* varasm.c (force_const_mem): Store copy of x in desc->constant
	instead of x itself.
	* expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
	itself into REG_EQUAL note.

	* gcc.dg/tls/pr42894.c: New test.

From-SVN: r169370
2011-01-28 20:36:44 +01:00
Joseph Myers
62dcc44a4b * config/freebsd.opt (posix, rdynamic): New Driver options.
From-SVN: r169368
2011-01-28 19:25:16 +00:00
Paolo Carlini
c2ac0d631f atomic_base.h: Do not include <stddef.h>.
2011-01-28  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/atomic_base.h: Do not include <stddef.h>.
	(kill_dependency): Uglify ret.

From-SVN: r169364
2011-01-28 16:59:49 +00:00
Joseph Myers
f41371ead8 * ja.po: Update.
From-SVN: r169360
2011-01-28 15:11:34 +00:00
Rainer Orth
5c04326f5e * gcc.dg/pr47276.c: Add dg-require-visibility.
From-SVN: r169359
2011-01-28 15:07:37 +00:00
Rainer Orth
d44f039a47 * gcc.target/i386/asm-6.c: XFAIL on i?86-pc-solaris2.1[0-9] && ilp32.
From-SVN: r169358
2011-01-28 14:33:42 +00:00
Paul Thomas
8d51f26f8e re PR fortran/45170 ([F2003] allocatable character lengths)
2011-01-28  Paul Thomas  <pault@gcc.gnu.org>
	    Tobias Burnus  <burnus@gcc.gnu.org>

	PR fortran/45170
	PR fortran/35810
	PR fortran/47350
	* interface.c (compare_actual_formal): An allocatable or pointer
	deferred length actual is only allowed if the formal argument
	is also deferred length. Clean up whitespace.
	* trans-expr.c (gfc_conv_procedure_call): Pass string length for
	deferred character length formal arguments by reference. Do the
	same for function results.
	(gfc_trans_pointer_assignment): Do not do runtime check of lhs
	and rhs character lengths, if deferred length lhs.  In this case
	set the lhs character length to that of the rhs.
	(gfc_conv_string_parameter): Remove assert that string length is
	an integer type.
	(is_scalar_reallocatable_lhs): New function.
	(alloc_scalar_allocatable_for_assignment): New function.
	(gfc_trans_assignment_1): Call above new function. If the rhs is
	a deferred character length itself, makes ure that the function
	is called before reallocation, so that the length is available.
	(gfc_trans_asssignment): Remove error about assignment to
	deferred length character variables.
	* gfortran.texi : Update entry about (re)allocation on
	assignment.
	* trans-stmt.c (gfc_trans_allocate): Add code to handle deferred
	length character variables.
	* module.c (mio_typespec): Transfer deferred characteristic.
	* trans-types.c (gfc_get_function_type): New code to generate
	hidden typelist, so that those character lengths that are
	passed by reference get the right type.
	* resolve.c (resolve_contained_fntype): Supress error for
	deferred character length functions.
	(resolve_function, resolve_fl_procedure) The same.
	(check_symbols): Remove the error that support for
	entity with deferred type parameter is not yet implemented.
	(resolve_fl_derived): The same.
	match.c (alloc_opt_list): Allow MOLD for deferred length object.
	* trans-decl.c (gfc_get_symbol_decl): For deferred character
	length dummies, generate a local variable for string length.
	(create_function_arglist): Hidden length can be a pointer.
	(gfc_trans_deferred_vars): For deferred character length
	results and dummies, assign the string length to the local
	variable from the hidden argument on entry and the other way
	round on exit, as appropriate.

2011-01-28  Paul Thomas  <pault@gcc.gnu.org>
	    Tobias Burnus  <burnus@gcc.gnu.org>

	PR fortran/45170
	PR fortran/35810
	PR fortran/47350
	* gfortran.dg/realloc_on_assign_3.f03: New test.
	* gfortran.dg/realloc_on_assign_4.f03: New test.
	* gfortran.dg/realloc_on_assign_5.f90: New test.
	* gfortran.dg/allocatable_function_5.f90: New test.
	* gfortran.dg/allocate_deferred_char_scalar_1.f90: New test.
	* gfortran.dg/deferred_type_param_2.f90: Remove two "not yet
	implemented" dg-errors.


Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org>

From-SVN: r169356
2011-01-28 13:53:19 +00:00
Rainer Orth
c9f58b9add configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports -Bstatic/-Bdynamic.
* configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
	-Bstatic/-Bdynamic.
	* configure: Regenerate.

From-SVN: r169353
2011-01-28 09:37:12 +00:00
Ian Lance Taylor
51677e0338 Add Solaris version of os.Hostname.
From-SVN: r169350
2011-01-28 01:44:55 +00:00
GCC Administrator
0047207685 Daily bump.
From-SVN: r169349
2011-01-28 00:18:23 +00:00
Ian Lance Taylor
b47750fee3 mksysinfo: Add #defines for Solaris.
From-SVN: r169345
2011-01-28 00:11:23 +00:00
Ian Lance Taylor
b91b9ad43e When closing a file, call closedir if we called opendir.
Fixes Go issue 1448.

From-SVN: r169344
2011-01-28 00:01:08 +00:00
Ian Lance Taylor
75d0b39856 mksysinfo: Always define IPV6_V6ONLY.
From-SVN: r169343
2011-01-27 23:28:09 +00:00
Ian Lance Taylor
24d6250f98 Don't force rebuild if mksysinfo.sh does not change sysinfo.go.
From-SVN: r169342
2011-01-27 23:25:31 +00:00
Ian Lance Taylor
afc9550b35 Add missing dependency in libgo/Makefile.am.
From-SVN: r169341
2011-01-27 22:49:34 +00:00
Tobias Burnus
f18694de28 re PR fortran/47474 (Wrong code with allocatable scalar, allocatable components as function result)
2011-01-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47474
        * trans-decl.c (gfc_generate_function_code): Fix init
        of allocatable result variable with allocatable components.

From-SVN: r169340
2011-01-27 23:47:08 +01:00
Ian Lance Taylor
2887665c94 Fix self-referential struct via function and array.
From-SVN: r169339
2011-01-27 20:39:19 +00:00
Janne Blomqvist
b5fa435a2a Pr 47431 CTIME/FDATE thread-safety using ctime_r()
From-SVN: r169338
2011-01-27 22:22:37 +02:00
Janne Blomqvist
6a0f6e7799 PR 47432 Use ttyname_r() if available
From-SVN: r169337
2011-01-27 22:05:45 +02:00
Joseph Myers
5f02b9dbcd sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
* config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
	* config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.

From-SVN: r169336
2011-01-27 18:36:03 +00:00
Joseph Myers
188214d4f7 * ja.po: Update.
From-SVN: r169335
2011-01-27 18:09:14 +00:00
Janne Blomqvist
21be0a5ab5 PR 47491 getpwuid_r() bootstrap regression on Solaris
From-SVN: r169334
2011-01-27 19:34:14 +02:00
Anatoly Sokolov
5df974120e s390.h (PREFERRED_RELOAD_CLASS): Remove.
* config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
	* config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
	* config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
	(s390_preferred_reload_class): Make static. Change return and
	'rclass' argument type to reg_class_t.

From-SVN: r169333
2011-01-27 20:10:16 +03:00
Jan Hubicka
779d4b91eb re PR middle-end/46949 (ICE when weakref is used on a definition (internal compiler error: in function_and_variable_visibility, at ipa.c:904))
PR middle-end/46949
	* cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
	(process_function_and_variable_attributes): Check defined weakrefs.
	* gcc.dg/attr-weakref-4.c: New testcase

From-SVN: r169332
2011-01-27 16:16:34 +00:00
Martin Jambor
e80b21edae re PR tree-optimization/47228 (wrong code with loop)
2011-01-27  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/47228
	* tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
	build_ref_for_offset.

	* testsuite/gcc.dg/torture/pr47228.c: New test.

From-SVN: r169331
2011-01-27 14:41:51 +01:00
Andreas Krebbel
6c90babb57 pr42585.c: Disable on s390 and s390x.
2011-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gcc.dg/tree-ssa/pr42585.c: Disable on s390 and s390x.

From-SVN: r169328
2011-01-27 11:22:02 +00:00
Ulrich Weigand
9119185007 compat.exp (compat-execute): Pass -Wl,--extra-stack-space=8192 when using auto-overlay support on the SPU.
* lib/compat.exp (compat-execute): Pass -Wl,--extra-stack-space=8192
	when using auto-overlay support on the SPU.

From-SVN: r169326
2011-01-27 08:43:12 +00:00
Eric Botcazou
467fd7909a re PR rtl-optimization/44174 (can't find a register in class 'CLOBBERED_REGS' while reloading 'asm')
PR rtl-optimization/44174
	* gcc.target/i386/asm-6.c: New test.

From-SVN: r169325
2011-01-27 08:39:33 +00:00
Ulrich Weigand
6dcc4f31c2 * config/spu/spu-elf.h (ASM_SPEC): Remove.
From-SVN: r169324
2011-01-27 08:39:02 +00:00
Tobias Burnus
22b00a9f06 re PR fortran/47472 (Rules printed by -M option contains duplicate slash when -J option is used)
2011-01-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47472
        * options.c (gfc_handle_module_path_options): Save
        module path without trailing slash as include path.

From-SVN: r169323
2011-01-27 08:02:58 +01:00
Jeff Law
3de2811212 Update copyright year
From-SVN: r169322
2011-01-26 21:33:18 -07:00
Mikael Pettersson
3b8ff89fa6 re PR rtl-optimization/46856 (internal compiler error in final_scan_insn breaks m68k-linux bootstrap)
PR rtl-optimization/46856
	* postreload.c (reload_combine_recognize_const_pattern): Do not
	separate cc0 setter and user on cc0 targets.

	PR rtl-optimization/46856
	* gcc.c-torture/compile/pr46856.c: New test.

From-SVN: r169321
2011-01-26 21:25:49 -07:00
Jerry DeLisle
434b897293 re PR libfortran/47285 (G format outputs wrong number of characters when decimal supplied in literal)
2011-01-26  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47285
	* io/write_float.def (output_float): Return SUCCESS or FAILURE and use
	the result to set the padding.

From-SVN: r169320
2011-01-27 02:16:18 +00:00
Nicola Pero
04af87889f In gcc/: 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR c/43082
	* c-typeck.c (c_objc_common_truthvalue_conversion): If we are
	passed a VOID_TYPE expression, immediately emit an error and
	return error_mark_node.

In gcc/testsuite/:
2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
	    Andrew Pinski  <pinskia@gmail.com>

	PR c/43082
	* gcc.dg/pr43082.c: New.

Co-Authored-By: Andrew Pinski <pinskia@gmail.com>

From-SVN: r169319
2011-01-27 02:09:13 +00:00
GCC Administrator
45d581f790 Daily bump.
From-SVN: r169317
2011-01-27 00:18:29 +00:00
Ian Lance Taylor
dc75b81734 Fix typo in socket_bsd.go.
From-SVN: r169313
2011-01-27 00:08:02 +00:00
Ian Lance Taylor
83f2ff2ad3 mksysinfo.sh: #include <sys/uio.h>.
From-SVN: r169312
2011-01-27 00:03:51 +00:00
Ian Lance Taylor
ffbdd13975 netchan: Avoid race condition in test.
Copied from master library.

From-SVN: r169311
2011-01-26 23:53:19 +00:00
Jeff Law
f7a60085fc re PR libgomp/47464 (Many gomp failures)
PR rtl-optimization/47464
	* df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
	rather than may_trap_p as needed.

From-SVN: r169310
2011-01-26 15:45:04 -07:00
Ian Lance Taylor
753e7b85bd net: Check for EINTR.
From-SVN: r169309
2011-01-26 22:37:13 +00:00
Eric Botcazou
dcf25f5973 re PR other/47467 (hwint.h:239:3: error: implicit declaration of function 'abs')
PR bootstrap/47467
	* targext.c: Include target files if IN_RTS is defined.

From-SVN: r169308
2011-01-26 22:10:23 +00:00
DJ Delorie
5c2917ec9d re PR rtl-optimization/46878 (V850 ICE in in maybe_add_or_update_dep_1, at sched-deps.c:854)
PR rtl-optimization/46878
* combine.c (insn_a_feeds_b): Check for the implicit cc0
setter/user dependency as well.

* gcc.dg/pr46878-1.c: New test.

From-SVN: r169307
2011-01-26 17:03:47 -05:00
Jakub Jelinek
81cce6f682 re PR c++/47476 ([C++0x] ICE in potential_constant_expression_1)
PR c++/47476
	* semantics.c (potential_constant_expression_1): Handle
	TRUTH_XOR_EXPR.

	* g++.dg/cpp0x/pr47476.C: New test.

From-SVN: r169306
2011-01-26 22:20:40 +01:00
Eric Botcazou
bef16e8723 re PR rtl-optimization/44469 (internal compiler error: in fixup_reorder_chain, at cfglayout.c:797)
PR rtl-optimization/44469
	* cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
	after removing trivially dead basic blocks.

From-SVN: r169304
2011-01-26 21:11:57 +00:00