Commit Graph

49265 Commits

Author SHA1 Message Date
Loren J. Rittle
4ea34005e6 std_bitset.h (_M_do_find_next): Fix -Wall nit.
* include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
	* include/bits/concept_check.h: Fix multi-line comment.
	* testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
	when target is *-*-freebsd*.

From-SVN: r65620
2003-04-15 06:11:10 +00:00
Roger Sayle
0ae0f1b084 argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
* argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
	* memchr.c: Likewise.
	* strcasecmp.c: Likewise.
	* strncasecmp.c: Likewise.
	* strncmp.c: Likewise.
	* xatexit.c: Likewise.
	* xmalloc.c: Likewise.

	* copysign.c: Use traditional function declaration instead of DEFUN.
	* sigsetmask.c: Likewise.

	* memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
	* memset.c: Likewise.

	* memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
	* memmove.c: Likewise.

From-SVN: r65619
2003-04-15 03:35:47 +00:00
Mark Mitchell
db0b376eb9 extend.texi (Empty Structures): Correct description of G++'s handling of these structures.
* doc/extend.texi (Empty Structures): Correct description of G++'s
	handling of these structures.

From-SVN: r65618
2003-04-15 02:28:17 +00:00
Tom Tromey
355d899392 resolve.cc (_Jv_PrepareClass): Round up class size to multiple of alignment.
* resolve.cc (_Jv_PrepareClass): Round up class size to multiple
	of alignment.

From-SVN: r65617
2003-04-15 02:17:12 +00:00
Roger Sayle
88702c45a6 * strdup.c (strdup): Tweak implementation to use memcpy.
From-SVN: r65616
2003-04-15 02:11:43 +00:00
Mark Mitchell
f4e929877c c-decl.c (grokdeclarator): Reject extern redeclarations of static variables.
* c-decl.c (grokdeclarator): Reject extern redeclarations of
	static variables.

	* gcc.c-torture/execute/scope-2.c: Move to ...
	* gcc.dg/noncompile/scope.c: .... here.

From-SVN: r65615
2003-04-15 01:37:03 +00:00
Ziemowit Laski
e623703138 tree.c (build_cplus_array_type_1): Do not call uses_template_parms() on a NULL index_type.
2003-04-14  Ziemowit Laski  <zlaski@apple.com>

	* tree.c (build_cplus_array_type_1): Do not call
	uses_template_parms() on a NULL index_type.

From-SVN: r65613
2003-04-15 00:34:11 +00:00
GCC Administrator
47f2b6acd5 Daily bump.
From-SVN: r65612
2003-04-15 00:17:07 +00:00
Loren J. Rittle
e0dfd3fae5 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
From-SVN: r65605
2003-04-15 00:03:47 +00:00
Janis Johnson
615158e2e8 rs6000.md (define_constants): Define constants for all UNSPEC usage, including new values for TLS support.
2003-04-14  Janis Johnson  <janis187@us.ibm.com>

	* config/rs6000/rs6000.md (define_constants): Define constants for
	all UNSPEC usage, including new values for TLS support.
	(aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
	load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
	load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
	macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
	stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
	eh_set_lr_di): Use them.
	* rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
	rs6000_emit_epilogue) Use them.

From-SVN: r65604
2003-04-14 22:54:35 +00:00
Nathan Myers
21a1d2c493 PR libstdc++/9701 (in_avail())
2003-04-14  Nathan Myers  <ncm@cantrip.org>
	    Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/9701 (in_avail())
	* include/std/std_streambuf.h (in_avail): Simplify, in_avail
	doesn't care if there is anything in some putback cell.
	* testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.

	* testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
	unused string literals.

Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>

From-SVN: r65603
2003-04-14 22:43:32 +00:00
Janis Johnson
629f6514b8 rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
2003-04-14  Janis Johnson  <janis287@us.ibm.com>

	* rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.

From-SVN: r65602
2003-04-14 22:35:45 +00:00
Neil Booth
8951a63507 * Makefile.in (c-opts.o): Use custom action.
From-SVN: r65601
2003-04-14 22:25:10 +00:00
Olivier Hainque
41ee320444 explow.c (round_push): Use HOST_WIDE_INT instead of int for the temporary used to round CONST_INT sizes.
* explow.c (round_push): Use HOST_WIDE_INT instead of int for the
	temporary used to round CONST_INT sizes.

From-SVN: r65600
2003-04-14 18:08:51 -04:00
Joel Brobecker
39d658e395 dbxout.c (print_int_cst_bounds_in_octal_p): New function, extracted from dbxout_type.
* dbxout.c (print_int_cst_bounds_in_octal_p): New function,
	extracted from dbxout_type.
	(dbxout_range_type): print large bounds in octal format.
	(dbxout_type): Replace extracted code by call to
	print_int_cst_bounds_in_octal_p.

From-SVN: r65599
2003-04-14 18:06:07 -04:00
Olivier Hainque
4694840a01 tree.c (int_fits_type_p): Extract generic checks from the case of constant type bounds.
* tree.c (int_fits_type_p): Extract generic checks from the case
	of constant type bounds. Refine the checks against constant type
	bounds to allow for possible decisions against each of these bounds
	without requiring both bounds to be constant.
	(tree_int_cst_msb): Put back.
	* tree.h (tree_int_cst_msb): Likewise.

From-SVN: r65598
2003-04-14 17:59:54 -04:00
Olivier Hainque
4147232b5c global.c (global_conflicts): Prevent allocation of call clobbered hard regs to pseudos live across abnormal...
* global.c (global_conflicts): Prevent allocation of call clobbered
	hard regs to pseudos live across abnormal edges, as later passes are
	not ready to handle them.

From-SVN: r65597
2003-04-14 17:51:07 -04:00
Douglas B Rupp
798a393534 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
From-SVN: r65596
2003-04-14 17:44:36 -04:00
Richard Kenner
0d3c880062 stor-layout.c (layout_type, [...]): Add missing code to handle "superflat arrays" in Ada.
* stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
	handle "superflat arrays" in Ada.

From-SVN: r65595
2003-04-14 17:36:35 -04:00
Richard Kenner
2443af3720 integrate.c (expand_inline_function): Don't inline if would lose /u on a BLKmode TARGET.
* integrate.c (expand_inline_function): Don't inline if would
	lose /u on a BLKmode TARGET.

From-SVN: r65594
2003-04-14 17:33:05 -04:00
Joel Brobecker
8cb5fbbf74 dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead of DW_LANG_Ada83 for Ada units.
* dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
        of DW_LANG_Ada83 for Ada units.

From-SVN: r65591
2003-04-14 17:12:45 -04:00
Olivier Hainque
cbcafd35b7 * fold-const.c (fold): Reorder tests for conditional expressions.
From-SVN: r65590
2003-04-14 17:09:44 -04:00
Olivier Hainque
9ceca3020a expr.c (highest_pow2_factor): Return unsigned.
* expr.c (highest_pow2_factor): Return unsigned.
        * expr.h (offset_address): Likewise.
        * emit-rtl.c (offset_address): POW2 argument now unsigned.

From-SVN: r65589
2003-04-14 17:07:12 -04:00
Roger Sayle
712b7a052f builtins.c (expand_builtin_strlen): Evaluate the lengths of string literals at compile-time.
* builtins.c (expand_builtin_strlen):  Evaluate the lengths of
	string literals at compile-time.

From-SVN: r65585
2003-04-14 20:23:27 +00:00
Roger Sayle
15d4fd9863 fold-const.c (fold): Transform (c1 - x) cmp c2...
* fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
	comparison operation and c1/c2 are floating point constants into
	x swap(cmp) (c1 - c2).

	* gcc.dg/20030414-2.c: New test case.

From-SVN: r65584
2003-04-14 20:16:58 +00:00
Paolo Carlini
22fc0e9ffe fstream.tcc (basic_filebuf::setbuf): Don't set _M_out_end, _M_set_indeterminate() does it.
2003-04-14  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
	_M_out_end, _M_set_indeterminate() does it.

From-SVN: r65582
2003-04-14 17:57:48 +00:00
Vladimir Makarov
2fcb395cd4 genautomata.c (output_translate_vect): Fix a typo in loop condition.
2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>

	* genautomata.c (output_translate_vect): Fix a typo in loop
	condition.

From-SVN: r65580
2003-04-14 15:50:08 +00:00
Hans-Peter Nilsson
747a0d9d6a re PR target/10377 (gcc-3.2.2 creates bad assembler for cris)
PR target/10377
	* config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
	("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
	("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
	("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
	("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
	("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
	("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
	("*extopqihi_swap_side", "*extopqisi_swap_side")
	("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
	When next to constraint R, replace constraint i with n.

From-SVN: r65575
2003-04-14 14:32:44 +00:00
Kaveh R. Ghazi
39e8d04986 configure.in (HAVE_UINTPTR_T): Always define.
* configure.in (HAVE_UINTPTR_T): Always define.
	* configure: Regenerated.

From-SVN: r65574
2003-04-14 14:29:14 +00:00
Jan Hubicka
58e6ae30c7 re PR rtl-optimization/10024 ([HP-PA] inline optimization ICE)
PR opt/10024
	* cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.

From-SVN: r65571
2003-04-14 14:19:12 +00:00
Hans-Peter Nilsson
26224a84b5 re PR target/10377 (gcc-3.2.2 creates bad assembler for cris)
PR target/10377
	* gcc.dg/20030414-1.c: New test.

From-SVN: r65565
2003-04-14 14:01:42 +00:00
Kriang Lerdsuwanakij
88657a26e6 * doc/contrib.texi (Contributors): Correct my entry.
From-SVN: r65563
2003-04-14 10:02:30 +00:00
Tom Tromey
e6311b9e25 * gjavah.c (print_c_decl): Indentation fix.
From-SVN: r65562
2003-04-14 04:42:21 +00:00
Roger Sayle
7f685e177e tree.h (DECL_BUILT_IN_NONANSI): Remove.
* tree.h (DECL_BUILT_IN_NONANSI): Remove.
	* c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
	* c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
	implies DECL_BUILT_IN to simplify logic.
	* print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.

From-SVN: r65561
2003-04-14 03:13:07 +00:00
Roger Sayle
1331d16fd4 builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
* builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
	(BT_FN_PTR_SIZE_SIZE): Likewise.
	* builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
	New built-in functions for malloc, calloc and strdup respectively.
	* calls.c (special_function_p): No need to handle malloc-like
	functions any longer.  ECF_MALLOC is set via built-in attributes.

	* c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
	* cp/decl.c (duplicate_decls): Preserve pure and malloc attributes.
	* f/com.c (duplicate_decls): Preserve pure and malloc attributes.

	* doc/extend.texi: Document these new built-in functions.

	* gcc.dg/builtins-13.c: New test case.
	* gcc.dg/builtins-14.c: New test case.

From-SVN: r65560
2003-04-14 02:55:31 +00:00
Kaveh Ghazi
e235df1f71 Fix formatting in last commit.
From-SVN: r65559
2003-04-14 02:23:45 +00:00
GCC Administrator
fda8869be8 Daily bump.
From-SVN: r65558
2003-04-14 00:17:06 +00:00
Kaveh R. Ghazi
9cb65f923c builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
gcc:
	* builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
	(expand_builtin_stpcpy): New.
	(expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
	* builtins.def: Add mempcpy & stpcpy support.
	* doc/extend.texi (mempcpy, stpcpy): Document new builtins.

testsuite:
	* gcc.c-torture/execute/string-opt-18.c: New test.

From-SVN: r65551
2003-04-13 23:46:11 +00:00
Mark Mitchell
f4f4610e03 re PR c++/10300 (use of array-new (nothrow) in segfaults on NULL return)
PR c++/10300
	* init.c (build_new_1): Reorganize.

	PR c++/10300
	* g++.dg/init/new5.C: New test.

From-SVN: r65550
2003-04-13 17:54:03 +00:00
Nick Clifton
5de601cf57 Replace "GNU CC" with "GCC"
From-SVN: r65549
2003-04-13 17:51:08 +00:00
Nick Clifton
c7992b22ff oops - forgot to delete file whne comitting previous delta
From-SVN: r65547
2003-04-13 17:19:44 +00:00
Nick Clifton
50d440bc05 config-ml.in: Remove support for --disable-aix removing call-aix multilibs.
config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete support for
 -mcall-aix switch.
config/rs6000/eabiaix.h: Delete.
config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG, RETURN_ADDRESS_OFFSET):
 Remove use of ABI_AIX_NODESC.
config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
config/rs6000/rs6000.c (print_operand, rs6000_stack_info, debug_stack_info,
 output_function_profiler, rs6000_trampoline_size,
 rs6000_initialise_trampoline): Likewise.
config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv, sibcall_nonlocal_sysv,
 sibcall_value_local64): Likewise.
config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix multilibs.
 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
 (MULTILIB_EXCEPTIONS): Delete.
 (MULTILIB_MATCHES): Remove mcall-aix matches.
doc/fragments.texi: Replace -mcall-aix example with an ARM one.
doc/install.texi: Delete powerpc-*-eabiaix target.
doc/invoke.texi: Remove documentation of mcall-aix switch.
doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
config.gcc: Delete powerpc-*-eabiaix target.

From-SVN: r65546
2003-04-13 16:59:45 +00:00
Kazu Hirata
62b9c42c44 invoke.texi: Fix typos.
* doc/invoke.texi: Fix typos.
	* doc/tm.texi: Likewise.

From-SVN: r65544
2003-04-13 11:18:36 +00:00
John David Anglin
26af0e5d07 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
From-SVN: r65542
2003-04-13 03:56:20 +00:00
Zack Weinberg
6d0c8bb1bc * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
From-SVN: r65540
2003-04-13 03:31:09 +00:00
Zack Weinberg
dcf92453c8 tree.c (build_constructor): New function.
* tree.c (build_constructor): New function.
	* tree.h: Prototype it.

	* c-typeck.c (build_c_cast, pop_init_level)
	* profile.c (build_function_info_value, build_gcov_info_value)
	(create_profiler):
	Use build_constructor.

	* builtins.c (expand_builtin_args_info): Remove #if 0 blocks.

	* objc/objc-act.c (build_constructor):
	Rename objc_build_constructor. Use build_constructor.
	(build_objc_string_object, objc_add_static_instance)
	(init_def_list, init_objc_symtab, init_module_descriptor)
	(generate_static_references, build_selector_translation_table)
	(build_descriptor_table_initializer, generate_descriptor_table)
	(build_protocol_initializer, build_ivar_list_initializer)
	(generate_ivars_list, build_dispatch_table_initializer)
	(generate_dispatch_table, generate_protocol_list)
	(build_category_initializer, build_shared_structure_initializer):
	Update to match.

ada:
	* gigi.h, utils2.c (build_constructor):
	Rename gnat_build_constructor. Use build_constructor.
	* decl.c (gnat_to_gnu_entity)
	* trans.c (tree_transform, pos_to_constructor, extract_values)
	* ada/utils.c (build_template, convert_to_fat_pointer, convert)
	(unchecked_convert)
	* ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
	(fill_vms_descriptor):
	Update to match.

cp:
	* class.c (initialize_array)
	* decl.c (reshape_init)
	* decl2.c (build_expr_from_tree)
	* init.c (build_zero_init)
	* pt.c (tsubst_copy, tsubst_copy_and_build)
	* rtti.c (tinfo_base_init, generic_initializer, ptr_initializer)
	(ptm_initializer, class_initializer, get_pseudo_ti_init)
	* semantics.c (finish_compound_literal)
	* typeck.c (build_ptrmemfunc1)
	* typeck2.c (store_init_value, process_init_constructor)
	(build_functional_cast): Use build_constructor.

f:
	* com.c (ffecom_build_complex_constant_, ffecom_expr_)
	(ffecom_init_zero_, ffecom_transform_namelist_, ffecom_vardesc_)
	(ffecom_vardesc_array_, ffecom_vardesc_dims_, ffecom_2)
	* ste.c (ffeste_io_ialist_, ffeste_io_cilist_, ffeste_io_cllist_)
	(ffeste_io_icilist_, ffeste_io_inlist_, ffeste_io_olist_):
	Use build_constructor.

java:
	* class.c (make_field_value, make_method_value, get_dispatch_table)
	(make_class_data, emit_offset_symbol_table)
	* constants.c (build_constants_constructor)
	* java-tree.h (START_RECORD_CONSTRUCTOR)
	* parse.y (maybe_build_array_element_wfl):
	Use build_constructor.

From-SVN: r65539
2003-04-13 01:45:35 +00:00
GCC Administrator
71707889ed Daily bump.
From-SVN: r65538
2003-04-13 00:17:05 +00:00
Zack Weinberg
c85b28e8f3 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
From-SVN: r65531
2003-04-12 23:07:34 +00:00
Stephane Carrez
cebcfdc87f * config/m68hc11/m68hc11-protos.h
(m68hc11_eq_compare_operator): Declare
	* config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
	* config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
	(d_register_operand): Check the operand mode.
	(hard_addr_reg_operand): Likewise.

From-SVN: r65529
2003-04-12 23:52:33 +02:00
Stephane Carrez
0ae32ec0d7 m68hc11.md ("decrement_and_branch_until_zero"): New pattern for dbcc/ibcc generation for 68HC12.
* config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
	pattern for dbcc/ibcc generation for 68HC12.
	("doloop_end"): New pattern.
	("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
	("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
	("m68hc12_dbcc_dec_qi"): New pattern.
	("m68hc12_dbcc_inc_qi"): New pattern.
	(split): Add split for the above when we can't use dbcc/ibcc due to
	reloading.
	(peephole2): Add peephole2 to generate the above when possible.

From-SVN: r65527
2003-04-12 23:22:49 +02:00