Commit Graph

75958 Commits

Author SHA1 Message Date
Volker Reichelt
4f543d151e re PR c++/28343 (ICE with invalid asm specifier for struct member)
PR c++/28343
	* decl.c (cp_finish_decl): Check asmspec_tree for error_mark_node.
	* decl2.c (grokfield): Likewise.

	* g++.dg/ext/asmspec1.C: New test.

From-SVN: r115436
2006-07-14 09:43:23 +00:00
Bryce McKinlay
a7929aa4bd gcj.texi (Invocation): Corrections for Invocation API example.
2006-07-12  Bryce McKinlay  <mckinlay@redhat.com>

        * gcj.texi (Invocation): Corrections for Invocation API example.

From-SVN: r115432
2006-07-14 04:54:43 +01:00
Bryce McKinlay
b369a1989c interpret.cc (_Jv_InterpMethod::run): Don't SAVE_PC for fdiv.
2006-07-13  Bryce McKinlay  <mckinlay@redhat.com>

	* interpret.cc (_Jv_InterpMethod::run): Don't SAVE_PC for fdiv.

From-SVN: r115431
2006-07-14 01:52:18 +01:00
GCC Administrator
11761b31da Daily bump.
From-SVN: r115429
2006-07-14 00:17:37 +00:00
Paolo Carlini
21ded7c71e string_copy_cons_and_dest.cc: New.
2006-07-13  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/performance/21_strings/string_copy_cons_and_dest.cc: New.

From-SVN: r115425
2006-07-13 23:41:06 +00:00
Janis Johnson
263108e10f sourcebuild.texi (Test Directives): Document dg-shouldfail.
gcc:

	* doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.

gcc/testsuite:

	* lib/gcc-dg.exp (tool_load): Wrapper to support shouldfail tests.
	(dg-test): Support shouldfail tests.
	* lib/target-supports-dg.exp (dg-shouldfail): New.
	* gcc.test-framework/test-framework.awk: Handle shouldfail tests.
	* gcc.test-framework/dg-do-run-sf-exp-F.c: New test.
	* gcc.test-framework/dg-do-run-sf-exp-P.c: New test.
	* gcc.test-framework/dg-do-run-sft-exp-F.c: New test.
	* gcc.test-framework/dg-do-run-sft-exp-P.c: New test.
	* gcc.test-framework/dg-dox-run-sf-exp-XF.c: New test.
	* gcc.test-framework/dg-dox-run-sf-exp-XP.c: New test.

From-SVN: r115424
2006-07-13 22:58:07 +00:00
Bryce McKinlay
43e6b77cbb interpret.cc (_Jv_InterpMethod::compile): Add FIXME comment.
2006-07-13  Bryce McKinlay  <mckinlay@redhat.com>

	* interpret.cc (_Jv_InterpMethod::compile): Add FIXME comment.
	(_Jv_InterpMethod::run): SAVE_PC before executing any instruction 
	using resolve_pool_entry, as it can throw. Likewise for div/rem ops
	that can throw ArithmeticException.

From-SVN: r115422
2006-07-13 22:13:12 +01:00
Jan Hubicka
88d03811f8 cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call align_variable.
* cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call align_variable.
	* output.h (align_variable): Declare.
	* varasm.c (align_variable): Export.
	* value-prof.c (tree_value_profile_transformations): Recompute iterator
	when basic block changed.

From-SVN: r115421
2006-07-13 20:49:34 +00:00
Benjamin Kosnik
56dbe89df5 Makefile.am (pch*_output_anchor): Add.
2006-07-13  Benjamin Kosnik  <bkoz@redhat.com>

	* include/Makefile.am (pch*_output_anchor): Add.
	(pch*_output): Use.
	(CLEANFILES): Use.
	* include/Makefile.in: Regenerate.
	
	* scripts/check_performance: Be verbose on compile error.

From-SVN: r115419
2006-07-13 19:21:51 +00:00
Bryce McKinlay
0ed431d484 builtins.c (check_for_builtin): If a builtin could result in a direct call being generated...
2006-07-12  Bryce McKinlay  <mckinlay@redhat.com>

	* builtins.c (check_for_builtin): If a builtin could result in a
	direct call being generated, don't use it if flag_indirect_dispatch
	is set.

From-SVN: r115414
2006-07-13 15:19:04 +01:00
Ben Elliston
18c3f977d0 * MAINTAINERS (Various Maintainers): Add myself as dfp maintainer.
From-SVN: r115413
2006-07-13 22:29:12 +10:00
Nick Clifton
6915d7f002 sh.c (sh_reorg): Ignore deleted insns whilst walking the LOG_LINKS chain.
* config/sh/sh.c (sh_reorg): Ignore deleted insns whilst walking the 
  LOG_LINKS chain.

From-SVN: r115412
2006-07-13 07:55:25 +00:00
Geoffrey Keating
7c0de6a544 Index: ChangeLog
2006-07-12  Geoffrey Keating  <geoffk@apple.com>

	* doc/invoke.texi (C++ Dialect Options): Explain difference
	between -fvisibility-inlines-hidden and setting hidden
	visibility explicitly.

Index: cp/ChangeLog
2006-07-12  Geoffrey Keating  <geoffk@apple.com>

	* decl2.c (determine_visibility): Don't change visibility of
	function locals because of -fvisibility-inlines-hidden.

Index: testsuite/ChangeLog
2006-07-12  Geoffrey Keating  <geoffk@apple.com>

	* g++.dg/ext/visibility/fvisibility-inlines-hidden-2.C: New.

From-SVN: r115411
2006-07-13 06:16:59 +00:00
Paul Thomas
72af9f0b51 re PR fortran/28174 (Corruption of multiple character arrays when passing array sections)
2006-07-13  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/28174
	* trans-expr.c (gfc_conv_aliased_arg): Missing formal arg means
	that intent is INOUT (fixes regression).

	PR fortran/25097
	* check.c (check_present): The only permitted reference is a
	full array reference.

	PR fortran/20903
	* decl.c (variable_decl): Add error if a derived type is not
	from the current namespace if the namespace is an interface
	body.

2006-07-13  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25097
	* gfortran.dg/present_1.f90: New test.

	PR fortran/20903
	* gfortran.dg/interface_derived_type_1.f90: New test.

From-SVN: r115410
2006-07-13 05:07:35 +00:00
Eric Christopher
3fb8727b3b t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
2006-07-12  Eric Christopher  <echristo@apple.com>

	* config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
	(stmp-lipo): Depend on libgcc.a.

From-SVN: r115409
2006-07-13 02:42:49 +00:00
GCC Administrator
b9c828c710 Daily bump.
From-SVN: r115406
2006-07-13 00:17:20 +00:00
Benjamin Kosnik
04dc169115 Makefile.am: Revert last change.
2006-07-12  Benjamin Kosnik  <bkoz@redhat.com>

	* include/Makefile.am: Revert last change.
	* include/Makefile.in: Same.

From-SVN: r115402
2006-07-13 00:14:06 +00:00
Kazu Hirata
5f89204ee8 * tree.c: Fix a comment typo.
From-SVN: r115401
2006-07-12 22:43:27 +00:00
Naveen.H.S
8a01e7d967 muldiv.md (umulhisi3_c): Use only registers for dest.
* config/m32c/muldiv.md (umulhisi3_c): Use only registers for 
dest.
(umulhisi3_r): Likewise.

From-SVN: r115400
2006-07-12 18:31:32 -04:00
Jason Merrill
ec0897dedd re PR c++/28217 (ICE in tree_int_cst_sgn)
PR c++/28217
        * semantics.c (note_decl_for_pch): Don't premangle templates.

From-SVN: r115399
2006-07-12 17:57:58 -04:00
Benjamin Kosnik
f67a67d831 Makefile.am (pch_output): Don't precompile extc++.h.
2006-07-12  Benjamin Kosnik  <bkoz@redhat.com>

	* include/Makefile.am (pch_output): Don't precompile extc++.h.
	(pch_output_dirs): Same.
	* include/Makefile.in: Regenerate.

	* testsuite/lib/libstdc++.exp: Test PCH with stdtr1c++.h.

From-SVN: r115379
2006-07-12 17:07:09 +00:00
Tom Tromey
e9186fbe67 re PR libgcj/27271 (i/o error (java.util.zip.ZipException: Deflated stream ends early.))
PR libgcj/27271:
	* java/util/zip/ZipFile.java (getInputStream): Call addDummyByte
	on PartialInputStream.
	(PartialInputStream.dummyByteCount): New field.
	(PartialInputStream.fillBuffer): Handle dummy byte.
	(PartialInputStream.read): Likewise.
	(PartialInputStream.addDummyByte): New method.

From-SVN: r115378
2006-07-12 17:00:49 +00:00
Paolo Carlini
93e890688c re PR libstdc++/27878 (GCC 4.1.1 build fails on mips-sgi-irix6.5 (libstdc++)/GCC 4.1.0 worked.)
2006-07-12  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/27878
	* doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
	x < 19, vs wchar_t support.

From-SVN: r115374
2006-07-12 16:02:46 +00:00
Gary Benson
782bcb9f98 File.java (renameTo): Fix security checks.
2006-07-12  Gary Benson  <gbenson@redhat.com>

	* java/io/File.java (renameTo): Fix security checks.

From-SVN: r115373
2006-07-12 15:25:50 +00:00
Francois-Xavier Coudert
b3eb1e0e9c re PR fortran/28163 (Calling libgfortran's copy_string is inefficient)
PR fortran/28163

	* trans-expr.c (gfc_trans_string_copy): Generate inline code
	to perform string copying instead of calling a library function.
	* trans-decl.c (gfc_build_intrinsic_function_decls): Don't build
	decl for copy_string.
	* trans.h (gfor_fndecl_copy_string): Remove prototype.

	* intrinsics/string_intrinsics.c (copy_string): Remove function.

From-SVN: r115372
2006-07-12 15:11:11 +00:00
Nick Clifton
45e49d9640 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up instead of -isa=sh4.
From-SVN: r115371
2006-07-12 15:04:24 +00:00
Bryce McKinlay
2bdda702e9 re PR java/28352 (gcj -C fails to generate line number info for method)
2006-07-12  Bryce McKinlay  <mckinlay@redhat.com>

	PR libgcj/28352
	* stacktrace.cc (getLineNumberForFrame): Roll back PC by 1 when
	looking up line number for interpreted frame.

From-SVN: r115370
2006-07-12 14:56:25 +01:00
Mike Stump
8b907df422 re PR c/28280 (bogus "statement with no effect" warning with VLA and typeof)
PR c/28280
	* c-parser.c (c_parser_typeof_specifier): Don't use
	c_finish_expr_stmt, open code desired semantics instead.

From-SVN: r115369
2006-07-12 13:12:08 +00:00
Martin Michlmayr
4b64175082 typeck.c (string_conv_p): Remove spurious quotation mark in warning.
* typeck.c (string_conv_p): Remove spurious quotation mark in
	warning.

From-SVN: r115368
2006-07-12 12:55:01 +00:00
Mike Stump
f27026943b * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
From-SVN: r115367
2006-07-12 11:56:48 +00:00
Paolo Carlini
d5fa9a0dd1 codecvt_specializations.h: Fix typo in commit for libstdc++/28290.
2006-07-11  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/codecvt_specializations.h: Fix typo in commit
	for libstdc++/28290.

From-SVN: r115361
2006-07-12 00:17:42 +00:00
GCC Administrator
292681075d Daily bump.
From-SVN: r115360
2006-07-12 00:17:25 +00:00
Paolo Carlini
420644ea23 locale_facets.tcc (collate<>::do_transform( const _CharT*, const _CharT*)): Simplify previous fix for libstdc++/28277, always allocate memory dynamically.
2006-07-11  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (collate<>::do_transform(
	const _CharT*, const _CharT*)): Simplify previous fix for
	libstdc++/28277, always allocate memory dynamically.

From-SVN: r115356
2006-07-12 00:05:50 +00:00
Paolo Carlini
ad084e9d07 re PR libstdc++/28344 (Use of __alpha in tr1/random breaks Tru64 UNIX bootstrap)
2006-07-11  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/28344
	* include/tr1/random (gamma_distribution<>::
	gamma_distribution(const result_type&)): Don't use __alpha as
	parameter name, a predefined macro on Alpha systems.

From-SVN: r115355
2006-07-11 22:08:56 +00:00
Paolo Carlini
6ab639421e re PR libstdc++/28290 (error: 'iconv_t' does not name a type)
2006-07-11  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/28290
	* include/ext/codecvt_specializations.h: Fix, adding missing
	includes and guards.

From-SVN: r115354
2006-07-11 17:48:10 +00:00
Paolo Carlini
36bb088b04 PR libstdc++/28277 (partial: collate bits)
2006-07-11  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/28277 (partial: collate bits)
	* include/bits/locale_facets.tcc (collate<>::do_transform(
	const _CharT*, const _CharT*)): Avoid __builtin_alloca with no
	limit; also avoid multiple calls (in a loop).
	* testsuite/22_locale/collate/transform/char/28277.cc: New.
	* testsuite/22_locale/collate/transform/wchar_t/28277.cc: Likewise.

From-SVN: r115332
2006-07-11 11:21:38 +00:00
Feng Wang
9d6a4afbc8 Fix typos.
From-SVN: r115329
2006-07-11 07:20:17 +00:00
Mike Stump
d92f605539 Fix typo
From-SVN: r115328
2006-07-11 04:10:38 +00:00
Feng Wang
7b95e2a837 re PR fortran/28213 (ICE: Hollerith constant)
2006-07-11  Feng Wang  <fengwang@nudt.edu.cn>

        PR fortran/28213
        * gfortran.dg/hollerith4.f90: Test hollerith constants used in I/O
        list.

2006-07-11  Feng Wang  <fengwang@nudt.edu.cn>

        PR fortran/28213
        * trans-io.c (ransfer_expr): Deal with Hollerith constants used in
        I/O list.

From-SVN: r115326
2006-07-11 04:09:40 +00:00
Eric Christopher
fb49f596ba t-slibgcc-darwin: Rewrite.
2006-07-10  Eric Christopher  <echristo@apple.com>

	* config/t-slibgcc-darwin: Rewrite.

From-SVN: r115325
2006-07-11 03:17:44 +00:00
GCC Administrator
79908c99d4 Daily bump.
From-SVN: r115323
2006-07-11 00:17:37 +00:00
James Lemke
f9562794b9 Update my e-mail address.
From-SVN: r115319
2006-07-10 22:29:44 +00:00
Mike Stump
ff642329cf * libsupc++/eh_globals.cc (~__eh_globals_init): Unset _M_init.
From-SVN: r115318
2006-07-10 21:50:34 +00:00
Laurynas Biveinis
c76e55eafd Fix spaces to tabs in the last commit.
From-SVN: r115313
2006-07-10 19:44:48 +00:00
Benjamin Kosnik
f42482f542 re PR libstdc++/15448 (libstdc++ does not rebuild PCH)
2006-07-10  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/15448
	* include/Makefile.am: Clean up pch rules.
	* include/Makefile.in: Regenerate.

From-SVN: r115312
2006-07-10 19:32:51 +00:00
Laurynas Biveinis
b24f7f6b32 re PR bootstrap/20437 (bootstrap --enable-maintainer-mode broken)
fixincludes:
2006-07-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

	PR bootstrap/20437
	* Makefile.in (configure, config.h.in): change into $(srcdir)
	before autoconf or autoheader call.

gcc:
2006-07-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

	PR bootstrap/20437
	* Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
	dependencies.

From-SVN: r115310
2006-07-10 17:58:18 +00:00
GCC Administrator
65a15d8eed Daily bump.
From-SVN: r115302
2006-07-10 00:17:30 +00:00
Paolo Carlini
5c171a745d locale_facets.tcc (__int_to_char<>(_CharT*, long, const _CharT*, ios_base::fmtflags), [...]): Remove.
2006-07-09  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (__int_to_char<>(_CharT*,
	long, const _CharT*, ios_base::fmtflags), __int_to_char<>(_CharT*,
	unsigned long, const _CharT*, ios_base::fmtflags),
	__int_to_char<>(_CharT*, long long, const _CharT*, ios_base::fmtflags),
	__int_to_char<>(_CharT*, unsigned long long, const _CharT*,
	ios_base::fmtflags)): Remove.
	(__int_to_char<>(_CharT*, _ValueT, const _CharT*, ios_base::fmtflags,
	bool)): Adjust.
	(num_put<>::_M_insert_int(_OutIter, ios_base&, _CharT, _ValueT)):
	Likewise.

From-SVN: r115298
2006-07-09 21:26:19 +00:00
GCC Administrator
3f01f6f15d Daily bump.
From-SVN: r115295
2006-07-09 00:17:57 +00:00
Matthias Klose
0ee5ccdf3e sourcebuild.texi: Fix typo.
2006-07-08  Matthias Klose  <doko@debian.org>

        * doc/sourcebuild.texi: Fix typo.

From-SVN: r115287
2006-07-08 18:35:51 +00:00