Commit Graph

39670 Commits

Author SHA1 Message Date
Jakub Jelinek
ad47f1e56e c-typeck.c (store_init_value): If initializing object with array type of unknown size by a compound literal...
* c-typeck.c (store_init_value): If initializing object with array
	type of unknown size by a compound literal, set object's size from
	compound literal size.
	* doc/extend.texi (Compound Literals): Adjust documentation.

	* gcc.dg/gnu89-init-1.c: Adjust for the new behaviour, add some
	additional tests.

From-SVN: r48343
2001-12-28 10:51:20 +01:00
Richard Henderson
e6724881e6 real.c (etoe113, toe113): Ifndef INTEL_EXTENDED_IEEE_FORMAT.
* real.c (etoe113, toe113): Ifndef INTEL_EXTENDED_IEEE_FORMAT.
        (endian): Clear word 3 for INTEL_EXTENDED_IEEE_FORMAT.
        (etartdouble): Invoke etoe64 for INTEL_EXTENDED_IEEE_FORMAT.
        * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Don't special case
        INTEL_EXTENDED_IEEE_FORMAT.

From-SVN: r48342
2001-12-28 01:23:05 -08:00
GCC Administrator
9346c2fffd Daily bump.
From-SVN: r48340
2001-12-28 08:16:10 +00:00
Geoffrey Keating
2ef1a7f960 combine.c (try_combine): Mask off sign bits when combining stores to the low and high parts of a...
* combine.c (try_combine): Mask off sign bits when combining
	stores to the low and high parts of a two-word value.

From-SVN: r48339
2001-12-28 07:52:44 +00:00
Geoffrey Keating
19f90fadbc expr.c (expand_expr): Don't mark memory for non-constants as constant.
* expr.c (expand_expr): Don't mark memory for non-constants as
	constant.

From-SVN: r48338
2001-12-28 07:51:59 +00:00
Richard Kenner
9674c84284 integrate.c (copy_rtx_and_substitute, case MEM): If inlining and not for LHS, clear RTX_UNCHANGING_P.
* integrate.c (copy_rtx_and_substitute, case MEM): If inlining
	and not for LHS, clear RTX_UNCHANGING_P.

From-SVN: r48337
2001-12-27 20:46:22 -05:00
Philipp Thomas
0b264069f0 cppfiles.c (stack_include_files): Don't translate <stdin>.
From-SVN: r48336
2001-12-28 00:09:47 +00:00
Roger Sayle
fe85f179e8 re PR rtl-optimization/3508 (builtin memcmp() could be optimised)
* builtins.c (expand_builtin_memcmp): Optimize memcmp built-in
        when all arguments are known constant.  Fixes PR opt/3508.

        * gcc.c-torture/execute/string-opt-16.c: New testcase.

From-SVN: r48335
2001-12-27 15:34:31 -08:00
Kazu Hirata
30d7b5f413 * config/h8300/h8300.md (two anonymous patterns): Remove.
From-SVN: r48334
2001-12-27 22:43:59 +00:00
Richard Henderson
df8992f8f3 haifa-sched.c (reemit_other_notes): New.
* haifa-sched.c (reemit_other_notes): New.
        (schedule_block): Use it.
        * sched-ebb.c (schedule_ebbs): Call remove_unnecessary_notes.
        * sched-rgn.c (schedule_insns): Likewise.
        * cfglayout.c (remove_scope_notes): Handle removing note at
        the end of the insn chain.
        * function.c (debug_find_var_in_block_tree): New.

        * gcc.dg/debug-1.c, gcc.dg/debug-2.c: New.

From-SVN: r48333
2001-12-27 14:19:59 -08:00
Phil Edwards
bb2ae697ab testsuite_hooks.h (gnu_counting_struct): Add.
2001-12-27  Phil Edwards  <pme@gcc.gnu.org>

	* testsuite/testsuite_hooks.h (gnu_counting_struct):  Add.
	* testsuite/23_containers/deque_ctor.cc:  New file.

From-SVN: r48332
2001-12-27 21:51:28 +00:00
Hans-Peter Nilsson
a4b593ef7d Fix typo in 2001-12-26 entry
From-SVN: r48331
2001-12-27 21:10:43 +00:00
Alan Modra
4001af0e42 linux64.h (ASM_DECLARE_FUNCTION_NAME): Simplify.
2001-12-27  Alan Modra  <amodra@bigpond.net.au>
            David Edelsohn  <edelsohn@gnu.org>

        * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Simplify.

Co-Authored-By: David Edelsohn <edelsohn@gnu.org>

From-SVN: r48330
2001-12-27 12:59:21 -05:00
Jakub Jelinek
3db83e3261 toplev.c (independent_decode_option): Re-add -aux-info option handling.
* toplev.c (independent_decode_option): Re-add -aux-info option
	handling.

From-SVN: r48329
2001-12-27 18:22:00 +01:00
Richard Kenner
de5b49f224 integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note if special value.
* integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note
	if special value.

From-SVN: r48328
2001-12-27 09:57:17 -05:00
Paolo Carlini
b206658a5f locale_facets.tcc (collate::do_transform): Adjust implicit typename.
2001-12-27  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/locale_facets.tcc (collate::do_transform):
	Adjust implicit typename.
	* config/locale/messages_members_generic.h (messages::open,
	messages::do_open, messages::do_get): Adjust implicit typename.
	* config/locale/messages_members_gnu.h (messages::open,
	messages::do_open, messages::do_get): Adjust Implicit typename.
	* config/locale/messages_members_ieee_1003.1-200x.h (messages::open,
	messages::do_open, messages::do_get): Adjust implicit typename.

From-SVN: r48327
2001-12-27 12:13:23 +00:00
GCC Administrator
110fa83701 Daily bump.
From-SVN: r48325
2001-12-27 08:16:09 +00:00
Phil Edwards
2d53d9ebe7 re PR libstdc++/3829 (missing template instantiations)
2001-12-27  Phil Edwards  <pme@gcc.gnu.org>

	PR libstdc++/3829
	* src/misc-inst.cc:  Many additional I/O-related instantiations.
	* testsuite/27_io/instantiations.cc:  New file.

From-SVN: r48324
2001-12-27 07:26:00 +00:00
Kaveh Ghazi
7f729bc6b8 Fix typo in ChangeLog
From-SVN: r48323
2001-12-27 03:37:11 +00:00
Kaveh R. Ghazi
c083a819b2 collect2.c (is_ctor_dtor): Const-ify.
* collect2.c (is_ctor_dtor): Const-ify.
	* m88k-protos.c (output_file_start): Likewise.
	* m88k.c (m88k_lang_independent_options, output_options,
	output_file_start): Likewise.
	* fix-header.c (files_to_ignore, std_include_entry, include_entry,
	std_include_table, main): Likewise.
	* protoize.c (longopts): Likewise.
	* regclass.c (int_reg_class_contents): Likewise.
	* toplev.c (dump_file, f_options, W_options): Make static.
	(lang_independent_options, f_options, W_options): Const-ify.
	* tree-dump.c (dump_file_info): Likewise.
	* unroll.c (_factor): Make static.

java:
	* chartables.h: Const-ify.
	* gjavah.c (options): Likewise.
	* jcf-dump.c (options): Likewise.
	* jv-scan.c (options): Likewise.
	* lex.c (java_start_char_p, java_part_char_p): Likewise.
	* parse.y (binop_lookup): Likewise.

From-SVN: r48322
2001-12-27 03:35:21 +00:00
Richard Kenner
21cb9e6053 * config/alpha/alpha.c (alpha_align_insns): Remove warning.
From-SVN: r48321
2001-12-26 18:10:56 -05:00
Richard Kenner
fba0947d6a sparc.md (call struct patterns): Show starting at two words long.
* config/sparc/sparc.md (call struct patterns): Show starting
	at two words long.

From-SVN: r48320
2001-12-26 18:03:42 -05:00
David Edelsohn
3b37035206 rs6000.h (ASM_CPU_SPEC, [...]): Add mcpu=405.
* rs6000.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add mcpu=405.
        * sysv4.h (CPP_SYSV_SPEC, CPP_OS_VXWORKS_SPEC): Add mcpu=405.

From-SVN: r48319
2001-12-26 17:53:46 -05:00
Benjamin Kosnik
f591eb23d1 insert_iterator.cc (test02): Add.
2001-12-26  Benjamin Kosnik  <bkoz@waller.constant.com>

	* testsuite/24_iterators/insert_iterator.cc (test02): Add.
	* testsuite/24_iterators/front_insert_iterator.cc (test02): Add.
	* testsuite/24_iterators/back_insert_iterator.cc (test02): Add.
	* testsuite/24_iterators/reverse_iterator.cc (test02): Add.

	* include/bits/stl_iterator.h (reverse_iterator): Uglify member
	current to _M_current.
	(back_insert_iterator): Ulify member container to _M_container.
	(front_insert_iterator): Same.
	(insert_iterator): Same.

From-SVN: r48318
2001-12-26 21:56:17 +00:00
Nathan Sidwell
7d8e83691e re PR c++/196 (problem with: namespace N { class N {...}; })
cp:
	PR c++/196
	* cp/parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
testsuite:
	* g++.dg/eh/ctor1.C: New test.
	* g++.dg/other/error2.C: New test.

From-SVN: r48317
2001-12-26 20:33:37 +00:00
DJ Delorie
8a723db2df function.c (expand_main_function): Make sure stack adjustments happen before sjlj exception setup.
* function.c (expand_main_function): Make sure stack adjustments
happen before sjlj exception setup.

From-SVN: r48316
2001-12-26 14:54:44 -05:00
David Edelsohn
b92b324de7 rs6000.md (indirect_jump): Prefer CTR over LR.
* rs6000.md (indirect_jump): Prefer CTR over LR.
        * xcoff.h (ASM_DECLARE_FUNCTION_NAME): Handle weak function.

From-SVN: r48315
2001-12-26 13:02:17 -05:00
GCC Administrator
682bb08093 Daily bump.
From-SVN: r48313
2001-12-26 08:16:09 +00:00
Richard Kenner
2ad9852de7 * dwarf2out.c: Reformatting and minor code rearrangement.
From-SVN: r48312
2001-12-25 12:11:35 -05:00
Gabriel Dos Reis
4ff64fa9f0 std_limits.h (__glibcpp_xxx_is_modulo): New macros for signed types; default value is true.
* include/bits/std_limits.h (__glibcpp_xxx_is_modulo): New
	macros for signed types; default value is true.
	(numeric_limits<>::is_modulo): Get value from corresponding
	__glibcpp_xxx_is_modulo macro.

From-SVN: r48311
2001-12-25 13:53:56 +00:00
GCC Administrator
cf161a952a Daily bump.
From-SVN: r48309
2001-12-25 08:16:09 +00:00
Nathan Sidwell
a56ca89955 re PR c++/160 (Reference variables not initialized correctly in constructor initializer list using , operator)
cp:
	PR c++/160
	* typeck.c (build_modify_expr): Remove old unreachable code & tidy
	up. Don't stabilize_references when initializing a reference.
testsuite:
	* g++.dg/other/init2.C: New test.

From-SVN: r48307
2001-12-24 20:52:36 +00:00
Douglas B Rupp
fdfc290b94 configure.in (uintptr_t): Use AC_CHECK_TYPE.
* configure.in (uintptr_t): Use AC_CHECK_TYPE.
	* configure: Regenerated.

From-SVN: r48306
2001-12-24 12:51:40 -05:00
Douglas B Rupp
596151e193 configure.in (quoted_stage_prefix_set_by_configure): Generate.
* configure.in (quoted_stage_prefix_set_by_configure): Generate.
	* configure: Regenerated.
	* Makefile.in (SUBDIR_FLAGS_TO_PASS): Use
	quoted_stage_prefix_set_by_configure.

From-SVN: r48305
2001-12-24 12:37:36 -05:00
Richard Kenner
5f0d23589f rtl.h (in_expr_list_p): New declaration.
* rtl.h (in_expr_list_p): New declaration.
	* rtlanal.c (in_expr_list_p): New function.
	* cfgcleanup.c: Reformatting and minor code rearrangement.
	* cfglayout.c, cfgloop.c, cfgrtl.c: Likewise.

From-SVN: r48304
2001-12-24 10:44:45 -05:00
Richard Kenner
e88712b55b Remove bogus blank line
From-SVN: r48303
2001-12-24 09:38:56 -05:00
Richard Henderson
b79d521356 re PR debug/5163 (Internal compiler error in add_abstract_origin_attribute, at dwarf2out.c:9296)
PR c/5163:
        * c-decl.c (duplicate_decls): As needed, set DECL_INLINE when
        we have a function body associated.  Minor cleanups.
        (grokdeclarator): Do not set DECL_INLINE without a function body.

        * gcc.dg/20011223-1.c: New.
        * gcc.dg/inline-1.c: New.

From-SVN: r48302
2001-12-24 00:45:59 -08:00
GCC Administrator
6b98090114 Daily bump.
From-SVN: r48301
2001-12-24 08:16:39 +00:00
Richard Henderson
7abcb63a42 stmt.c (resolve_operand_names): Handle operand modifiers.
* stmt.c (resolve_operand_names): Handle operand modifiers.

        * gcc.dg/asm-4.c: Test operand modifiers.

From-SVN: r48299
2001-12-23 22:15:31 -08:00
Richard Henderson
6be2e1f88c stmt.c (parse_input_constraint): Break out from ...
* stmt.c (parse_input_constraint): Break out from ...
        (expand_asm_operands): ... here.  Loop over the operands twice,
        the first time only calling mark_addressable.  Correct and simplify
        the conditions for spilling an output operand to memory.

From-SVN: r48298
2001-12-23 21:57:02 -08:00
Richard Henderson
99407cf2f1 * config/alpha/alpha.c (call_operand) [OSF]: Disallow virtual regs.
From-SVN: r48297
2001-12-23 20:00:51 -08:00
Richard Henderson
8aad177787 * gcc.c-torture/execute/20011219-1.c (main): Make "i" a long.
From-SVN: r48296
2001-12-23 19:37:08 -08:00
Richard Henderson
c5b3a39ef4 alpha.md (UNSPEC_SIBCALL): New.
* config/alpha/alpha.md (UNSPEC_SIBCALL): New.
        (sibcall, sibcall_value, sibcall_osf_1_er, sibcall_osf_1): Use it.
        (sibcall_value_osf_1_er, sibcall_value_osf_1): Likewise.

From-SVN: r48295
2001-12-23 19:08:23 -08:00
Richard Henderson
72ac12bf6f utils.c (end_subprog_body): Push GC context around rest_of_compilation for nested functions.
* utils.c (end_subprog_body): Push GC context around
        rest_of_compilation for nested functions.

From-SVN: r48294
2001-12-23 17:47:10 -08:00
Jeff Law
b6e220169c os_defines.h: Do not include <_sys/inttypes.h>.
* config/os/hpux/bits/os_defines.h: Do not include <_sys/inttypes.h>.
        Twiddle return types for strtoll and strtoull to avoid using
        intmax_t and uintmax-t.

From-SVN: r48293
2001-12-23 18:45:29 -07:00
Joseph Myers
6eb5351149 re PR c/2454 (Test Program A0376972.c fails with gcc-20010320, works with gcc-2.95.3)
* c-typeck.c (c_start_case): Don't strip conversions from the
	controlling expression.  Partially fixes PR c/2454.

testsuite:
	* gcc.c-torture/execute/20011223-1.c: New test.

From-SVN: r48292
2001-12-23 23:49:32 +00:00
Joseph Myers
b31bbca2fe Makefile.in (USER_H): Remove proto.h.
* Makefile.in (USER_H): Remove proto.h.
	* config.gcc (c*-convex-*): Set extra_headers=proto.h.

From-SVN: r48291
2001-12-23 23:33:14 +00:00
Kaveh R. Ghazi
0b5826acc8 arc.c (arc_hard_regno_mode_ok): Const-ify.
* arc.c (arc_hard_regno_mode_ok): Const-ify.
	* arc.h (arc_hard_regno_mode_ok): Likewise.
	* i386.c (x86_64_reg_class_name): Make static.
	* m68k.c (regno_reg_class): Const-ify.
	* m68k.h (regno_reg_class): Likewise.
	* mcore.c (reg_class_from_letter): Likewise.
	* mcore.h (reg_class_from_letter): Likewise.
	* sh.c (reg_class_from_letter, ashiftrt_insns, shift_insns,
	ext_shift_insns, ext_shift_amounts): Likewise.
	* sh.h (reg_class_from_letter): Likewise.
	* sparc.c (hard_regno_mode_classes, hard_32bit_mode_classes,
	hard_64bit_mode_classes): Likewise.
	* sparc.h (hard_regno_mode_classes): Likewise.

	* gcc.c (modify_target): Make static.
	* gengenrtl.c (defs, formats): Likewise.
	* reload1.c (elim_table_1, init_elim_table): Const-ify.
	* tradcpp.c (directive, directive_table, handle_directive,
	skip_if_group, run_directive): Likewise.

cp:
	* decl2.c (lang_f_options): Const-ify.

f:
	* com.c (ffecom_gfrt_volatile_, ffecom_gfrt_complex_,
	ffecom_gfrt_const_, ffecom_gfrt_type_): Const-ify.

java:
	* Make-lang.in (keyword.h): Pass -C to gperf to const-ify
	the static arrays that are output.
	* jvspec.c (jvgenmain_spec): Make static.
	* keyword.gperf (struct java_keyword, java_keyword): Const-ify.
	* keyword.h: Regenerate.
	* lang.c (string_option, process_option_with_no, lang_f_options,
	lang_W_options): Const-ify.
	* lex.c (java_lex): Likewise.

From-SVN: r48290
2001-12-23 16:07:16 +00:00
Richard Henderson
14aacce76e * 5nosinte.ads: Get definition of "int" from Interfaces.C.
From-SVN: r48288
2001-12-23 05:22:17 -08:00
Richard Henderson
e4abc3d580 calls.c (expand_call): Don't turn off ECF_LIBCALL_BLOCK for an invalid result register...
* calls.c (expand_call): Don't turn off ECF_LIBCALL_BLOCK for
        an invalid result register; do end the sequence properly.
        (emit_library_call_value_1): Likewise.

From-SVN: r48287
2001-12-23 05:02:18 -08:00