Commit Graph

54303 Commits

Author SHA1 Message Date
Andreas Tobler
f145ed6b90 cls_double.c: Do a check on the result.
2003-11-08  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/libffi.call/cls_double.c: Do a check on the result.
	* testsuite/libffi.call/cls_uchar.c: Likewise.
	* testsuite/libffi.call/cls_uint.c: Likewise.
	* testsuite/libffi.call/cls_ulonglong.c: Likewise.
	* testsuite/libffi.call/cls_ushort.c: Likewise.
	* testsuite/libffi.call/return_sc.c: Cleanup whitespaces.

From-SVN: r73369
2003-11-08 19:32:16 +01:00
Kaveh R. Ghazi
a37336cf73 * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
From-SVN: r73363
2003-11-08 15:08:51 +00:00
Roger Sayle
587a98546a re PR target/10467 ([arm] [3.3/3.4 regression] ICE in pre_insert_copy_insn,)
PR optimization/10467
	* gcc.dg/20031108-1.c: New test case.

From-SVN: r73362
2003-11-08 14:43:30 +00:00
Jeff Sturm
edf6d50b51 FirstThread.java (Klocale, Kcalendar): New fields.
* gnu/gcj/runtime/FirstThread.java (Klocale, Kcalendar):
New fields.

From-SVN: r73360
2003-11-08 13:43:12 +00:00
Jeff Sturm
773d424b52 ByteArrayOutputStream.java (resize): Fix off-by-one error.
* java/io/ByteArrayOutputStream.java (resize):
Fix off-by-one error.

From-SVN: r73359
2003-11-08 13:41:20 +00:00
Geoffrey Keating
8a1977f38c rs6000.c (rs6000_legitimize_address): Remove redundant parens.
* config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
	redundant parens.

From-SVN: r73354
2003-11-08 02:21:01 +00:00
Geoffrey Keating
3d67ba1e3b cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
2003-11-07  Geoffrey Keating  <geoffk@apple.com>

	* cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
	(find_file_in_dir): Likewise.
	(_cpp_find_file): Print message if no header file is found
	but an invalid PCH file was.

2003-11-07  Geoffrey Keating  <geoffk@apple.com>

	* gcc.dg/pch/warn-1.c: Allow for more helpful error message.

From-SVN: r73353
2003-11-08 02:17:51 +00:00
Joseph Myers
30321c396e c-typeck.c (pedantic_lvalue_warning): Deprecate compound expressions as lvalues.
* c-typeck.c (pedantic_lvalue_warning): Deprecate compound
	expressions as lvalues.
	(internal_build_compound_expr): Remove special handling for
	non-pedantic case.
	* doc/extend.texi: Document that all extended lvalues are now
	deprecated.

testsuite:
	* gcc.dg/compound-lvalue-1.c: New test.
	* gcc.dg/c90-const-expr-2.c, gcc.dg/c99-const-expr-2.c: Remove
	some XFAILs.

From-SVN: r73352
2003-11-08 01:38:48 +00:00
Bryce McKinlay
9b574a7758 * gnu/gcj/xlib/XAnyEvent.java (XAnyEvent): Make constructor public.
From-SVN: r73351
2003-11-08 01:23:47 +00:00
Jonathan Wakely
3ab3dca624 vec.cc: Conform to C++STYLE.
2003-11-07  Jonathan Wakely  <redi@gcc.gnu.org>

	* libsupc++/vec.cc: Conform to C++STYLE.

From-SVN: r73350
2003-11-08 00:36:13 +00:00
GCC Administrator
4eedccc489 Daily bump.
From-SVN: r73348
2003-11-08 00:16:08 +00:00
Geoffrey Keating
047c6eac11 re PR pch/11654 (incorrect stabs when using pre-compiled headers)
PR 11654
	* dbxout.c (struct dbx_file): Do not save for PCH.
	(current_file): Likewise.
	(dbxout_init): Don't allocate struct dbx_file using GC.
	(dbxout_start_source_file): Likewise.

From-SVN: r73346
2003-11-07 22:12:39 +00:00
Falk Hueffner
1cd93a2a2b elf.h, [...]: Convert to ISO C90.
* config/alpha/elf.h, config/alpha/unicosmk.h,
        config/alpha/vms.h: Convert to ISO C90.

From-SVN: r73342
2003-11-07 19:57:32 +01:00
Nathanael Nerode
4241d31258 * config/arm/pe.h: Convert to ISO C90.
From-SVN: r73341
2003-11-07 18:45:26 +00:00
Carlo Wood
bfc8fe1a20 Ugh, copied the wrong date from previous test case.
From-SVN: r73340
2003-11-07 17:59:23 +00:00
Carlo Wood
2d369f351f re PR libstdc++/12736 (Demangler bug)
PR libstdc++/12736
* bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
(qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
K, V, r and A qualifiers before processing them as a group.
* testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
* testsuite/demangle/regression/cw-16.cc: New.

From-SVN: r73339
2003-11-07 17:55:27 +00:00
J"orn Rennecke
bcc8cc820a Fix libstdc++-v3 build failure on sh64-elf:
* sh-protos.h (sh_pch_valid_p): Declare.
	* sh.c ("intl.h"): Include.
	(TARGET_PCH_VALID_P): Override.
	(sh_target_switches): New variable.
	(target_switches): Define.
	(sh_pch_valid_p): New function.

	* sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.

From-SVN: r73338
2003-11-07 17:44:57 +00:00
Robert Millan
b938ad89a5 configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
2003-11-07  Robert Millan  <robertmh@gnu.org>

        * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
        * crossconfig.m4: Likewise.
        * configure: Regenerate.

From-SVN: r73337
2003-11-07 16:49:18 +00:00
Jan Hubicka
d7222e384a i386.c (x86_64_sign_extended_value): Return false from tls variables.
* i386.c (x86_64_sign_extended_value):  Return false from tls variables.
	(x86_64_zero_extended_value):  likewise.

From-SVN: r73334
2003-11-07 09:26:06 +00:00
Richard Sandiford
235d0d663c mips.md (loadgp): Take $25 as a second operand.
* config/mips/mips.md (loadgp): Take $25 as a second operand.
	* config/mips/mips.c (mips_expand_prologue): Modify accordingly.

From-SVN: r73330
2003-11-07 08:14:32 +00:00
Carlo Wood
eb622d37cf demangle.h (qualifier_list<Allocator>::decode_qualifiers(string_type&, string_type&, bool member_function_pointer_qualifiers): Always seperate the '[' of an array type with a space from what is left of it...
* include/bits/demangle.h
(qualifier_list<Allocator>::decode_qualifiers(string_type&,
string_type&, bool member_function_pointer_qualifiers):
Always seperate the '[' of an array type with a space from
what is left of it, except when that is the closing bracket
of another array dimension.

From-SVN: r73328
2003-11-07 03:53:44 +00:00
Carlo Wood
2215f7320e demangle.h (qualifier_list<Allocator>::decode_qualifiers(string_type&, string_type&, bool) const): Made const.
* include/bits/demangle.h
(qualifier_list<Allocator>::decode_qualifiers(string_type&,
string_type&, bool) const): Made const.
(qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
(_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
std::ostream& operator<<(std::ostream&, qualifier const&),
std::ostream& operator<<(std::ostream&, qualifier_list const&),
qualifier_list<Allocator>::decode_qualifiers(string_type&,
string_type&, bool) const,
session<Allocator>::decode_type_with_postfix(string_type&,
string_type&, qualifier_list<Allocator>*))
Added and/or changed debug-only hooks and code.

From-SVN: r73327
2003-11-07 03:49:43 +00:00
Mohan Embar
cafa50327c re PR libgcj/12231 ([win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window)
PR libgcj/12231
	* java/lang/Win32Process.java (hasExited) Changed from
	public to private.
	(startProcess): Likewise.
	(cleanup): Likewise.
	* java/lang/natWin32Process.cc (cleanup) Don't close
	input, output and error streams.
	(ChildProcessPipe): New helper class.
	(startProcess): Refactored to use ChildProcessPipe.
	Use CREATE_NO_WINDOW when launching child process.

From-SVN: r73326
2003-11-07 03:16:49 +00:00
Mohan Embar
bbf76ec06c win32.h (_Jv_platform_close_on_exec): Changed signature and declared extern.
* include/win32.h (_Jv_platform_close_on_exec): Changed
	signature and declared extern.
	* win32.cc (_Jv_platform_close_on_exec): Implemented.
	* gnu/java/net/natPlainDatagramSocketImplWin32.cc
	(create): Use new signature of _Jv_platform_close_on_exec.
	* gnu/java/net/natPlainSocketImplWin32.cc
	(create): Eliminated a few typecasts
	Use new signature of _Jv_platform_close_on_exec.
	(accept): Eliminated a few typecasts
	Use new signature of _Jv_platform_close_on_exec.
	* java/io/natFileDescriptorWin32.cc (open): Use
	_Jv_platform_close_on_exec.

From-SVN: r73325
2003-11-07 03:13:56 +00:00
GCC Administrator
eb4ad71ac1 Daily bump.
From-SVN: r73323
2003-11-07 00:16:07 +00:00
Matt Austern
968b41a166 c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY field instead of hanging an attribute object off the decl.
* c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
	field instead of hanging an attribute object off the decl.
	* tree.h (DECL_VISIBLITY): New accessor macro for
	symbol_visibility field in struct tree_decl.
	(enum symbol_visibility): Move definition to before tree_decl.
	(struct tree_decl): Define new two-bit field, symbol_visibility.
	(decl_visibility): Remove declaration.
	* varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
	instead of decl_visibility.
	(default_binds_local_p_1):  Use DECL_VISIBILITY	instead of
	decl_visibility.
	(decl_visibility): Remove.
	* cp/decl.c (duplicate_decls): copy DECL_VISIBILITY field.
	* cp/method.c (use_thunk): give thunk same visibility as function.
	* cp/optimize.c (maybe_clone_body): copy DECL_VISIBILITY field.

From-SVN: r73320
2003-11-06 22:08:26 +00:00
Ulrich Weigand
63e292b7ec s390.c (s390_emit_epilogue): Recognize more cases where register 14 will be saved.
* config/s390/s390.c (s390_emit_epilogue): Recognize more cases
	where register 14 will be saved.

From-SVN: r73319
2003-11-06 22:05:38 +00:00
Geoffrey Keating
2858f73ac1 rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
* config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
	(USE_ALTIVEC_FOR_ARG_P): Likewise.
	* config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
	Take a pointer as the CUM parameter.  Update callers.
	(USE_ALTIVEC_FOR_ARG_P): Likewise.  Also correct for Darwin/AIX
	32-bit ABIs.
	(function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P.  Correct case
	of vector parameters as named arguments of stdarg function.
	(function_arg): Likewise.

	* config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
	-maltivec is specified, not the non-existent -faltivec.

From-SVN: r73317
2003-11-06 21:52:36 +00:00
Ulrich Weigand
8c17530ef3 s390-protos.h (s390_function_value): Declare.
* config/s390/s390-protos.h (s390_function_value): Declare.
	* config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
	(s390_return_in_memory): New function.
	(s390_function_value): New function.
	(s390_function_arg_float): Return false for all arguments larger
	than 8 bytes.
	(s390_function_arg_pass_by_reference): Likewise.  Return true for
	all vector arguments.
	(s390_function_arg_integer): New function.
	(s390_function_arg_advance): Call it.  Add sanity checks.
	(s390_function_arg): Likewise.
	* config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
	(LIBCALL_VALUE): Likewise.
	(RET_REG): Remove.
	(RETURN_IN_MEMORY): Remove.

From-SVN: r73314
2003-11-06 21:35:10 +00:00
Andreas Tobler
2b04d015d6 prep_cif.c (ffi_prep_cif): Move the validity check after the initialization.
2003-11-06  Andreas Tobler  <a.tobler@schweiz.ch>

	* src/prep_cif.c (ffi_prep_cif): Move the validity check after
	the initialization.

From-SVN: r73309
2003-11-06 16:47:41 +01:00
Andrew Haley
4b88687391 expr.c (java_stack_swap): Make sure destination stack slots are of the correct type.
2003-11-06  Andrew Haley  <aph@redhat.com>

        * expr.c (java_stack_swap): Make sure destination stack slots are
        of the correct type.

From-SVN: r73306
2003-11-06 15:19:49 +00:00
Richard Sandiford
e88fb323aa mips-protos.h (mips_initial_elimination_offset): Change return type to HOST_WIDE_INT.
* config/mips/mips-protos.h (mips_initial_elimination_offset): Change
	return type to HOST_WIDE_INT.
	* config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
	Make initialized a bool.  Make register masks unsigned ints.
	(compute_frame_size): Make same mask change here.  Use HOST_WIDE_INT
	where appropriate.
	(mips_initial_elimination_offset): Return a HOST_WIDE_INT.
	(mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.

From-SVN: r73303
2003-11-06 11:22:03 +00:00
Richard Sandiford
88d6a75f25 frv.c (frv_initial_elimination_offset): Remove bogus negation.
* config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
	negation.

From-SVN: r73302
2003-11-06 10:54:08 +00:00
Richard Sandiford
def49dc443 * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
From-SVN: r73301
2003-11-06 10:53:04 +00:00
Momchil Velikov
95757874f9 mips.c (override_options): Set MASK_SOFT_FLOAT for VR4111 too.
* config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
	for VR4111 too.

From-SVN: r73300
2003-11-06 10:31:58 +00:00
Momchil Velikov
c8e26ef47b *** empty log message ***
From-SVN: r73299
2003-11-06 10:29:16 +00:00
Jan Hubicka
668f73d4c4 builtins.c (simplify_builtin_strrchr, [...]): Add missing casts.
* builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
	missing casts.

From-SVN: r73296
2003-11-06 09:00:33 +00:00
Zack Weinberg
37783865bd genmodes.c: Change the word "bitsize" to "precision" throughout.
* genmodes.c: Change the word "bitsize" to "precision" throughout.
	* machmode.def: Likewise.
	* machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
	(GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
	(GET_MODE_PRECISION): New macro.
	(mode_bitsize): Renamed mode_precision.
	* stor-layout.c (mode_for_size, smallest_mode_for_size):
	Use GET_MODE_PRECISION; clarify comments.
ada:
	* misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
	and update for changed meaning of GET_MODE_BITSIZE.

From-SVN: r73295
2003-11-06 08:38:52 +00:00
GCC Administrator
6c748c6c99 Daily bump.
From-SVN: r73289
2003-11-06 00:16:07 +00:00
Joseph Myers
01e9797612 install-old.texi: Remove old documentation of building cross-compilers.
* doc/install-old.texi: Remove old documentation of building
	cross-compilers.
	* doc/install.texi: Move some of it to here.

From-SVN: r73283
2003-11-05 22:26:58 +00:00
Andrew Pinski
f6d90f821d Add PR preprocessor/12891 to Per's last patch.
From-SVN: r73282
2003-11-05 13:24:31 -08:00
Per Bothner
9b49a0aaab c-opts.c (finish_options): Set include_cursor to disable premature calls to push_command_line_include from...
* c-opts.c (finish_options):  Set include_cursor to disable premature
	calls to push_command_line_include from cpp_scan_nooutput.
	Fixes bug reported by DJ Delorie.

From-SVN: r73281
2003-11-05 13:09:04 -08:00
Eric Botcazou
5167214390 20031023-4.c: XFAIL on SPARC64
* gcc.c-torture/compile/20031023-4.c: XFAIL on SPARC64
	* gcc.c-torture/compile/simd-5.c: XFAIL on SPARC64 at -O0 and -O1.
	* gcc.c-torture/execute/simd-4.x: New file.  XFAIL on SPARC at -O0.
	* gcc.c-torture/execute/va-arg-25.x: New file.  XFAIL on SPARC.
	* gcc.dg/uninit-C.c: XFAIL on non 64-bit Solaris versions.

From-SVN: r73280
2003-11-05 20:15:02 +00:00
Andrew Pinski
f4dcab145f Add PR optimization/10080 to Zdenek Dvorak's last commit.
From-SVN: r73279
2003-11-05 11:20:48 -08:00
Geoffrey Keating
f31bf321f8 rs6000.c (setup_incoming_varargs): Remove code supporting old-style varargs.
* config/rs6000/rs6000.c (setup_incoming_varargs): Remove
	code supporting old-style varargs.

From-SVN: r73278
2003-11-05 18:24:53 +00:00
Geoffrey Keating
2cf520bf3a rs6000.c (rs6000_machopic_legitimize_pic_address): Use an intermediate register for better optimisation.
* config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
	an intermediate register for better optimisation.

From-SVN: r73277
2003-11-05 18:21:30 +00:00
Geoffrey Keating
a6cf80f29c rs6000.c (compute_vrsave_mask): Correct off-by-one error.
* config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
	error.

From-SVN: r73276
2003-11-05 18:17:20 +00:00
Zdenek Dvorak
142d1f57d6 cfgloopanal.c (variable_initial_value, [...]): Record the fact that initial value is extended from inner mode.
* cfgloopanal.c (variable_initial_value, variable_initial_values,
	simple_loop_exit_p): Record the fact that initial value is extended
	from inner mode.
	(count_strange_loop_iterations, count_loop_iterations): Handle
	ivs that iterate in a narrower mode. Fix handling of overflows.
	Improve handling of NE conditions.
	(inverse, fits_in_mode_p): New static functions.
	(simple_increment): Detect variables that iterate in a narrower mode.
	* cfgloop.h (struct loop_desc): Fields inner_mode and extend added.

From-SVN: r73275
2003-11-05 18:10:44 +00:00
Geoffrey Keating
af09332e6d darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin needs VRSAVE.
* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
	needs VRSAVE.

From-SVN: r73274
2003-11-05 18:06:22 +00:00
Joseph Myers
0a49d02ccb c-typeck.c (pedantic_lvalue_warning): Deprecate use of conditional expressions as lvalues.
* c-typeck.c (pedantic_lvalue_warning): Deprecate use of
	conditional expressions as lvalues.

testsuite:
	* gcc.dg/cond-lvalue-1.c: New test.

From-SVN: r73273
2003-11-05 17:53:04 +00:00