Phil Edwards [Thu, 27 Dec 2001 07:26:00 +0000 (07:26 +0000)]
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
Kaveh Ghazi [Thu, 27 Dec 2001 03:37:11 +0000 (03:37 +0000)]
Fix typo in ChangeLog
From-SVN: r48323
Kaveh R. Ghazi [Thu, 27 Dec 2001 03:35:21 +0000 (03:35 +0000)]
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
Richard Kenner [Wed, 26 Dec 2001 23:10:56 +0000 (23:10 +0000)]
* config/alpha/alpha.c (alpha_align_insns): Remove warning.
From-SVN: r48321
Richard Kenner [Wed, 26 Dec 2001 23:03:42 +0000 (23:03 +0000)]
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
David Edelsohn [Wed, 26 Dec 2001 22:53:46 +0000 (22:53 +0000)]
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
Benjamin Kosnik [Wed, 26 Dec 2001 21:56:17 +0000 (21:56 +0000)]
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
Nathan Sidwell [Wed, 26 Dec 2001 20:33:37 +0000 (20:33 +0000)]
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
DJ Delorie [Wed, 26 Dec 2001 19:54:44 +0000 (14:54 -0500)]
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
David Edelsohn [Wed, 26 Dec 2001 18:02:17 +0000 (18:02 +0000)]
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
GCC Administrator [Wed, 26 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48313
Richard Kenner [Tue, 25 Dec 2001 17:11:35 +0000 (17:11 +0000)]
* dwarf2out.c: Reformatting and minor code rearrangement.
From-SVN: r48312
Gabriel Dos Reis [Tue, 25 Dec 2001 13:53:56 +0000 (13:53 +0000)]
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
GCC Administrator [Tue, 25 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48309
Nathan Sidwell [Mon, 24 Dec 2001 20:52:36 +0000 (20:52 +0000)]
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
Douglas B Rupp [Mon, 24 Dec 2001 17:51:40 +0000 (12:51 -0500)]
configure.in (uintptr_t): Use AC_CHECK_TYPE.
* configure.in (uintptr_t): Use AC_CHECK_TYPE.
* configure: Regenerated.
From-SVN: r48306
Douglas B Rupp [Mon, 24 Dec 2001 17:37:36 +0000 (12:37 -0500)]
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
Richard Kenner [Mon, 24 Dec 2001 15:44:45 +0000 (15:44 +0000)]
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
Richard Kenner [Mon, 24 Dec 2001 14:38:56 +0000 (09:38 -0500)]
Remove bogus blank line
From-SVN: r48303
Richard Henderson [Mon, 24 Dec 2001 08:45:59 +0000 (00:45 -0800)]
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
GCC Administrator [Mon, 24 Dec 2001 08:16:39 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48301
Richard Henderson [Mon, 24 Dec 2001 06:15:31 +0000 (22:15 -0800)]
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
Richard Henderson [Mon, 24 Dec 2001 05:57:02 +0000 (21:57 -0800)]
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
Richard Henderson [Mon, 24 Dec 2001 04:00:51 +0000 (20:00 -0800)]
* config/alpha/alpha.c (call_operand) [OSF]: Disallow virtual regs.
From-SVN: r48297
Richard Henderson [Mon, 24 Dec 2001 03:37:08 +0000 (19:37 -0800)]
* gcc.c-torture/execute/
20011219-1.c (main): Make "i" a long.
From-SVN: r48296
Richard Henderson [Mon, 24 Dec 2001 03:08:23 +0000 (19:08 -0800)]
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
Richard Henderson [Mon, 24 Dec 2001 01:47:10 +0000 (17:47 -0800)]
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
Jeff Law [Mon, 24 Dec 2001 01:45:29 +0000 (18:45 -0700)]
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
Joseph Myers [Sun, 23 Dec 2001 23:49:32 +0000 (23:49 +0000)]
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
Joseph Myers [Sun, 23 Dec 2001 23:33:14 +0000 (23:33 +0000)]
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
Kaveh R. Ghazi [Sun, 23 Dec 2001 16:07:16 +0000 (16:07 +0000)]
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
Richard Henderson [Sun, 23 Dec 2001 13:22:17 +0000 (05:22 -0800)]
* 5nosinte.ads: Get definition of "int" from Interfaces.C.
From-SVN: r48288
Richard Henderson [Sun, 23 Dec 2001 13:02:18 +0000 (05:02 -0800)]
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
Florian Weimer [Sun, 23 Dec 2001 11:23:14 +0000 (12:23 +0100)]
gnat-style.texi (Declarations and Types): Remove ancient style rule which was mandated by code generation issues.
* gnat-style.texi (Declarations and Types): Remove ancient style
rule which was mandated by code generation issues.
From-SVN: r48286
Florian Weimer [Sun, 23 Dec 2001 11:09:54 +0000 (12:09 +0100)]
gnat-style.texi (header): Add @dircategory, @direntry.
* gnat-style.texi (header): Add @dircategory, @direntry.
(title page): Remove date.
(general) Add @./@: where approriate, and two spaces after the
full stop at the end of a sentence. Use @samp markup when
referring concrete lexical entities (keywords, attribute names
etc.), and @syntax for ARM grammar elements. Use @r for English
text in comments. Use @emph for emphasis. Change "if-statements"
etc. to "if statements" (without @samp). Break long lines. Make
casing of section names consistent.
(Identifiers): Use @samp markup for variable names.
(Comments): Use @samp markup for comment characters. Line-end
comments may follow any Ada code, not just statements. Fix
misspelling of "Integer" as "integer".
(Loop statements): Do not use variable name "I", use "J".
(Subprogram Declarations): Document alignment.
(Subprogram Bodies, Block statements): Document empty line before
"begin".
From-SVN: r48285
GCC Administrator [Sun, 23 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48283
Aldy Hernandez [Sun, 23 Dec 2001 06:58:48 +0000 (06:58 +0000)]
rs6000.h (rs6000_builtins): Add vsldoi variants.
* config/rs6000/rs6000.h (rs6000_builtins): Add vsldoi variants.
* config/rs6000/rs6000.md ("altivec_vsldoi_*"): Same.
* config/rs6000/rs6000.c: Clean up some spacing and indentation.
(altivec_init_builtins): Add tree types for builtins with 4 bit
literals.
(bdesc_3arg): Add vsldoi variants.
From-SVN: r48282
Kaveh R. Ghazi [Sun, 23 Dec 2001 04:59:13 +0000 (04:59 +0000)]
1750a.h (datalbl, jmplbl): Declare array size explicitly.
* 1750a.h (datalbl, jmplbl): Declare array size explicitly.
* a29k.h (a29k_debug_reg_map): Likewise.
* arc.h (arc_regno_reg_class): Likewise.
* c4x-protos.h (c4x_regclass_map, c4x_caller_save_map): Likewise.
* convex.h (regno_reg_class, reg_class_from_letter): Likewise.
* d30v.h (regno_reg_class, reg_class_from_letter): Likewise.
* i386.h (regclass_map): Likewise.
* m32r.h (m32r_hard_regno_mode_ok, m32r_punct_chars): Likewise.
* mcore.h (regno_reg_class): Likewise.
* mips.h (mips_print_operand_punct, mips_char_to_class):
Likewise.
* ns32k.h (regclass_map): Likewise.
* pj.h (pj_debugreg_renumber_vec): Likewise.
* s390.h (regclass_map): Likewise.
* sh.h (regno_reg_class): Likewise.
* sparc.h (sparc_regno_reg_class): Likewise.
* hard-reg-set.h (reg_class_contents): Likewise.
* machmode.h (class_narrowest_mode): Likewise.
f:
* bld.c (ffebld_arity_op_): Declare array size explicitly.
* bld.h (ffebld_arity_op_): Likewise.
From-SVN: r48281
David Edelsohn [Sun, 23 Dec 2001 02:16:02 +0000 (02:16 +0000)]
loop.c (scan_loop, [...]): Do not overlook hard registers when computing statistics.
* loop.c (scan_loop, move_movables, count_one_set): Do not
overlook hard registers when computing statistics.
From-SVN: r48280
Jan Hubicka [Sun, 23 Dec 2001 00:10:43 +0000 (01:10 +0100)]
calls.c (ECF_LIBCALL_BLOCK): New constant.
* calls.c (ECF_LIBCALL_BLOCK): New constant.
(emit_call_1, initialize_argument_information,
precompute_arguments, expand_call,
emit_library_call_value_1): Use ECF_LIBCALL_BLOCK
instead of ECF_PURE | ECF_CONST. Honnor LCT_CONST/LCT_PURE.
From-SVN: r48279
Richard Henderson [Sat, 22 Dec 2001 21:13:44 +0000 (13:13 -0800)]
* configure.target (CPULIMITSH): Fix typo in alpha case.
From-SVN: r48278
Joseph Myers [Sat, 22 Dec 2001 21:07:33 +0000 (21:07 +0000)]
config.gcc (extra_headers): Move settings to math-68881.h and ppc-asm.h to common code for CPU types.
* config.gcc (extra_headers): Move settings to math-68881.h and
ppc-asm.h to common code for CPU types. Use math-68881.h on all
m68k targets.
(header_files): Remove unused setting.
From-SVN: r48277
Kaveh R. Ghazi [Sat, 22 Dec 2001 20:55:04 +0000 (20:55 +0000)]
elxsi.c: Include "hard-reg-set.h" and/or don't declare `call_used_regs' explicitly.
* elxsi.c: Include "hard-reg-set.h" and/or don't declare
`call_used_regs' explicitly.
* i860.c: Likewise.
* m68k.c: Likewise.
* ns32k.c: Likewise.
* pa.c: Likewise.
* vax.c: Likewise.
* we32k.c: Likewise.
From-SVN: r48276
Jan Hubicka [Sat, 22 Dec 2001 19:07:28 +0000 (20:07 +0100)]
i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
* i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
(TARGET_CPU_DEFAULT_*): Renumber.
From-SVN: r48273
John Wehle [Sat, 22 Dec 2001 17:23:52 +0000 (17:23 +0000)]
rtl.h (subreg_lsb): Declare.
* rtl.h (subreg_lsb): Declare.
* rtlanal.c (subreg_lsb): Implement.
From-SVN: r48272
Jeff Law [Sat, 22 Dec 2001 16:51:55 +0000 (09:51 -0700)]
os_defines.h: Update to avoid #defines for strtoll and strtoull.
* config/os/hpux/bits/os_defines.h: Update to avoid #defines
for strtoll and strtoull.
From-SVN: r48271
Richard Kenner [Sat, 22 Dec 2001 15:51:07 +0000 (15:51 +0000)]
* cfg.c, cfganal.c, cfgbuild.c: Reformatting and minor cleanups.
From-SVN: r48270
Richard Kenner [Sat, 22 Dec 2001 15:37:09 +0000 (15:37 +0000)]
* predict.c: Reformatting and minor cleanups.
From-SVN: r48269
Richard Kenner [Sat, 22 Dec 2001 15:06:55 +0000 (15:06 +0000)]
expr.c (expand_expr, [...]): Handling taking address of SAVE_EXPR.
* expr.c (expand_expr, case ADDR_EXPR): Handling taking address of
SAVE_EXPR.
* function.c (gen_mem_addressof): Add missing tests for SAVE_EXPR.
(put_addressof_into_stack): Clarify code in setting of used_p.
From-SVN: r48268
Richard Kenner [Sat, 22 Dec 2001 14:46:58 +0000 (14:46 +0000)]
calls.c (flags_from_decl_or_type): Move ECF_SP_DEPRESSED here.
* calls.c (flags_from_decl_or_type): Move ECF_SP_DEPRESSED here.
(expand_call): Delete from here.
Do pending stack adjustments if ECF_SP_DEPRESSED.
From-SVN: r48267
Richard Kenner [Sat, 22 Dec 2001 14:31:27 +0000 (14:31 +0000)]
dwarf2out.c (save_rtx): Deleted.
* dwarf2out.c (save_rtx): Deleted.
(mem_loc_descriptor): Do equivalent operation.
(add_const_value_attribute, case CONST): Likewise.
(add_name_and_src_coords_attributes): Likewise.
From-SVN: r48266
Florian Weimer [Sat, 22 Dec 2001 11:58:51 +0000 (12:58 +0100)]
make.adb (Add_Switch): Make Generic_Position a procedure.
* make.adb (Add_Switch): Make Generic_Position a procedure. The
function approach did not work well because of a side effect (the
function call could reallocate the table which was being indexed
using its result). Fixes ada/4851.
From-SVN: r48265
GCC Administrator [Sat, 22 Dec 2001 08:16:10 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48263
Kazu Hirata [Sat, 22 Dec 2001 02:41:38 +0000 (02:41 +0000)]
* config/h8300/h8300.h: Fix comment formatting.
From-SVN: r48262
Richard Henderson [Sat, 22 Dec 2001 00:52:30 +0000 (16:52 -0800)]
boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into ..
* boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into ..
(get_boehm_type_descriptor): ... here. Arrange for the
TREE_TYPE to get set properly.
From-SVN: r48261
Jeff Law [Sat, 22 Dec 2001 00:42:46 +0000 (17:42 -0700)]
os_defines.h: Include <sys/_inttypes.h.
* config/os/hpux/bits/os_defines.h: Include <sys/_inttypes.h.
Define strtoll and strtoull. Provide prototypes for
__strtoll and __strtoull. Define _GLIBCPP_USE_LONG_LONG
unconditionally.
From-SVN: r48260
Jeff Law [Sat, 22 Dec 2001 00:39:43 +0000 (17:39 -0700)]
* src/locale-inst.cc: Include <bits/std_cstdlib.h>
From-SVN: r48259
Jeff Law [Sat, 22 Dec 2001 00:32:47 +0000 (17:32 -0700)]
* configure.target: Fix typo in hpux case.
From-SVN: r48258
Jeff Law [Sat, 22 Dec 2001 00:28:16 +0000 (17:28 -0700)]
pa.h (CPP_SPEC): If not in ANSI mode, define _INCLUDE_LONGLONG.
* pa.h (CPP_SPEC): If not in ANSI mode, define _INCLUDE_LONGLONG.
(CPLUSPLUS_CPP_SPEC): Define _INCLUDE_LONGLONG.
From-SVN: r48257
Tom Tromey [Fri, 21 Dec 2001 22:51:41 +0000 (22:51 +0000)]
ObjectInputStream.java (enableResolveObject): Use correct security check.
* java/io/ObjectInputStream.java (enableResolveObject): Use
correct security check.
* java/io/ObjectOutputStream.java (enableReplaceObject): Use
correct security check.
From-SVN: r48256
Tom Tromey [Fri, 21 Dec 2001 21:59:27 +0000 (21:59 +0000)]
re PR java/5165 (Loading class fields with a ConstantValue attribute)
Fix for PR java/5165:
* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
Convert any constant string field to a String; not just final
fields.
From-SVN: r48255
Robert Lipe [Fri, 21 Dec 2001 20:54:21 +0000 (20:54 +0000)]
* system.h (PREFETCH): Explictly undefine.
From-SVN: r48254
Tom Tromey [Fri, 21 Dec 2001 19:47:50 +0000 (19:47 +0000)]
re PR libgcj/2428 (Classloader is not set)
Fix for PR libgcj/2428:
* java/lang/natClass.cc: Include RuntimePermission.h.
(getClassLoader): Define.
* java/lang/Class.h (Class.getClassLoader): Only declare.
From-SVN: r48253
Richard Henderson [Fri, 21 Dec 2001 19:44:06 +0000 (11:44 -0800)]
class.c (compile_resource_file): Set TREE_PUBLIC on the constructor only if the target requires collect2.
* class.c (compile_resource_file): Set TREE_PUBLIC on the constructor
only if the target requires collect2.
From-SVN: r48252
Richard Henderson [Fri, 21 Dec 2001 19:26:08 +0000 (11:26 -0800)]
* class.c (build_class_ref): Mark _Jv_fooClass DECL_EXTERNAL.
From-SVN: r48251
Tom Tromey [Fri, 21 Dec 2001 19:18:52 +0000 (19:18 +0000)]
reverted erroneous checking -- sorry about that
From-SVN: r48250
Tom Tromey [Fri, 21 Dec 2001 19:15:36 +0000 (19:15 +0000)]
For PR java/4509:
* parse.y (java_complete_lhs) [COMPOUND_EXPR]: Correctly compute
CAN_COMPLETE_NORMALLY for the node.
* jcf-write.c (generate_bytecode_insns) [COMPOUND_EXPR]: Don't
generate code for second branch if first branch can't complete
normally.
(generate_bytecode_insns) [LOOP_EXPR]: Don't generate `goto' to
the loop head if the loop body can't complete normally.
From-SVN: r48249
Richard Henderson [Fri, 21 Dec 2001 19:14:46 +0000 (11:14 -0800)]
wtr-aggr-init-1.c: Test that __extension__ disables then re-enables the warning.
* gcc.dg/wtr-aggr-init-1.c: Test that __extension__ disables then
re-enables the warning.
From-SVN: r48248
Richard Henderson [Fri, 21 Dec 2001 18:31:11 +0000 (10:31 -0800)]
c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
* c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
(RESTORE_WARN_FLAGS): Restore it.
(extension): Zero warn_traditional.
From-SVN: r48247
Richard Henderson [Fri, 21 Dec 2001 18:03:25 +0000 (10:03 -0800)]
* g++.old-deja/g++.eh/badalloc1.C (malloc): Fix typo.
From-SVN: r48246
Kazu Hirata [Fri, 21 Dec 2001 16:19:14 +0000 (16:19 +0000)]
* doc/passes.texi: Fix a typo.
From-SVN: r48245
Kazu Hirata [Fri, 21 Dec 2001 16:15:38 +0000 (16:15 +0000)]
* config/h8300/h8300.h: Fix a comment typo.
From-SVN: r48244
Paolo Carlini [Fri, 21 Dec 2001 13:08:35 +0000 (14:08 +0100)]
stl_rope.h (_Rope_iterator): Add local typedef to fix implicit typename problems.
2001-12-21 Paolo Carlini <pcarlini@unitus.it>
* include/ext/stl_rope.h (_Rope_iterator):
Add local typedef to fix implicit typename problems.
From-SVN: r48242
Nick Clifton [Fri, 21 Dec 2001 11:46:01 +0000 (11:46 +0000)]
Add missing URL for message that prompted this new test
From-SVN: r48241
Jakub Jelinek [Fri, 21 Dec 2001 11:30:47 +0000 (12:30 +0100)]
* gcc.c-torture/compile/
20011218-1.c: New test.
From-SVN: r48240
Jakub Jelinek [Fri, 21 Dec 2001 11:07:59 +0000 (12:07 +0100)]
combine.c (nonzero_bits): If using reg_nonzero_bits, we don't know anything about bits outside of X mode.
* combine.c (nonzero_bits): If using reg_nonzero_bits,
we don't know anything about bits outside of X mode.
(num_sign_bit_copies): Likewise.
From-SVN: r48239
Turly O'Connor [Fri, 21 Dec 2001 10:44:50 +0000 (10:44 +0000)]
darwin.c (machopic_classify_ident): Handle "stale" section- encoded name problem to avoid generating illegal stubs.
* darwin.c (machopic_classify_ident): Handle "stale" section-
encoded name problem to avoid generating illegal stubs.
(func_name_maybe_scoped): Remove, not needed for gcc3.
(machopic_indirect_call_target): Don't use it.
(darwin_encode_section_info): Call only one of update_stubs()
or update_non_lazy_ptrs() as DECL cannot be both.
(machopic_output_possible_stub_label): New.
* darwin.h (ASM_DECLARE_FUNCTION_NAME): Use it.
* darwin-protos.h (machopic_output_possible_stub_label): Declare.
From-SVN: r48238
Nick Clifton [Fri, 21 Dec 2001 09:31:37 +0000 (09:31 +0000)]
Use 'a' operand code for prefetch instruction.
From-SVN: r48237
Nick Clifton [Fri, 21 Dec 2001 08:46:23 +0000 (08:46 +0000)]
oops - accidentally omitted from previous delta
From-SVN: r48236
GCC Administrator [Fri, 21 Dec 2001 08:16:13 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r48234
Tom Tromey [Fri, 21 Dec 2001 05:28:27 +0000 (05:28 +0000)]
For PR java/4509:
* parse.y (java_complete_lhs) [COMPOUND_EXPR]: Correctly compute
CAN_COMPLETE_NORMALLY for the node.
* jcf-write.c (generate_bytecode_insns) [COMPOUND_EXPR]: Don't
generate code for second branch if first branch can't complete
normally.
(generate_bytecode_insns) [LOOP_EXPR]: Don't generate `goto' to
the loop head if the loop body can't complete normally.
From-SVN: r48233
Tom Tromey [Fri, 21 Dec 2001 05:13:43 +0000 (05:13 +0000)]
For PR java/4766:
* jcf-write.c (generate_bytecode_insns) [TRY_FINALLY_EXPR]: Handle
case where `finally' clause can't complete normally.
From-SVN: r48232
Tom Tromey [Fri, 21 Dec 2001 04:37:24 +0000 (04:37 +0000)]
re PR java/5057 (gcj -C erroneously omits <clinit>)
Fixes PR java/5057:
* parse.y (analyze_clinit_body): Added this_class parameter.
Check for more cases where we must keep <clinit>.
(maybe_yank_clinit): Cleaned up flow control.
From-SVN: r48231
Kaveh R. Ghazi [Fri, 21 Dec 2001 02:46:09 +0000 (02:46 +0000)]
aclocal.m4 (gcc_AC_PROG_GNAT): Run prospective ada drivers in subshells.
* aclocal.m4 (gcc_AC_PROG_GNAT): Run prospective ada drivers in
subshells.
* configure.in: Likewise for perl Pod::Man.
* configure: Regenerated.
From-SVN: r48230
Kaveh R. Ghazi [Fri, 21 Dec 2001 02:36:37 +0000 (02:36 +0000)]
builtin-attrs.def (__builtin_printf_unlocked, [...]): Mark with the __printf__ attribute.
* builtin-attrs.def (__builtin_printf_unlocked,
__builtin_fprintf_unlocked, printf_unlocked, fprintf_unlocked):
Mark with the __printf__ attribute.
* builtins.c (expand_builtin_fputs): Add an `unlocked' parameter
and set the replacement function depending on it.
(expand_builtin): Skip BUILT_IN_*_UNLOCKED when not optimizing.
Handle BUILT_IN_*_UNLOCKED when optimizing.
* builtins.def (DEF_EXT_FALLBACK_BUILTIN,
DEF_EXT_FRONT_END_LIB_BUILTIN): New macros.
Declare the "unlocked" stdio functions.
* c-common.c (c_expand_builtin_printf, c_expand_builtin_fprintf):
Add an `unlocked' parameter and set the replacement function
depending on it.
(c_expand_builtin): Handle BUILT_IN_PRINTF_UNLOCKED and
BUILT_IN_FPRINTF_UNLOCKED.
* doc/extend.texi (printf_unlocked, fprintf_unlocked,
fputs_unlocked): Document.
testsuite:
* gcc.dg/format/builtin-1.c: Test unlocked stdio.
* gcc.dg/format/c90-printf-3.c: Likewise.
* gcc.dg/format/c99-printf-3.c: Likewise.
* gcc.dg/format/ext-1.c: Likewise.
* gcc.dg/format/ext-6.c: Likewise.
* gcc.dg/format/format.h: Prototype unlocked stdio.
From-SVN: r48229
Richard Henderson [Fri, 21 Dec 2001 02:07:09 +0000 (18:07 -0800)]
New test.
From-SVN: r48228
Josef Zlomek [Fri, 21 Dec 2001 01:50:10 +0000 (02:50 +0100)]
cfgloop.c (flow_loops_find): Use the information of the depth first search order of the CFG correctly when...
* cfgloop.c (flow_loops_find): Use the information of the depth
first search order of the CFG correctly when finding natural loops.
From-SVN: r48227
Richard Henderson [Fri, 21 Dec 2001 00:33:29 +0000 (16:33 -0800)]
* config/alpha/alpha.md (prologue_mcount): Update for explicit relocs.
From-SVN: r48226
Richard Henderson [Fri, 21 Dec 2001 00:22:39 +0000 (16:22 -0800)]
alpha.c (call_operand): Accept pseudos.
* config/alpha/alpha.c (call_operand) [OSF]: Accept pseudos.
* config/alpha/alpha.md (call_osf, call_value_osf): Don't force
operand into $27.
From-SVN: r48225
Richard Henderson [Fri, 21 Dec 2001 00:18:26 +0000 (16:18 -0800)]
badalloc1.C (arena_size): New.
* g++.old-deja/g++.eh/badalloc1.C (arena_size): New.
(arena): Use it.
(malloc): Correct allocation logic. Abort if we fill up the
arena before initialization complete.
(realloc): Correct allocation logic.
From-SVN: r48224
Joseph Myers [Thu, 20 Dec 2001 23:35:42 +0000 (23:35 +0000)]
configure.in (all_headers, [...]): Remove.
* configure.in (all_headers, all_lib2funcs): Remove.
* configure: Regenerate.
* Makefile.in (LANG_EXTRA_HEADERS): Remove.
(USER_H): Don't include $(LANG_EXTRA_HEADERS).
* config/alpha/t-interix (USER_H): Don't include
$(LANG_EXTRA_HEADERS).
* config/i386/t-interix: Likewise.
* config/t-openbsd: Likewise.
From-SVN: r48222
Bryce McKinlay [Thu, 20 Dec 2001 22:50:21 +0000 (22:50 +0000)]
decl.c (java_init_decl_processing): Don't initialize finit_leg_identifier_node.
* decl.c (java_init_decl_processing): Don't initialize
finit_leg_identifier_node.
* java-tree.h (java_tree_index): Remove JTI_FINIT_LEG_IDENTIFIER_NODE.
(finit_leg_identifier_node): Remove.
(ID_FINIT_P): Don't check for JTI_FINIT_LEG_IDENTIFIER_NODE.
From-SVN: r48221
Bryce McKinlay [Thu, 20 Dec 2001 22:48:52 +0000 (22:48 +0000)]
mangle.c (mangle_member_name): Don't special-case for NO_DOLLAR_IN_LABEL.
* mangle.c (mangle_member_name): Don't special-case for
NO_DOLLAR_IN_LABEL.
* mangle_name.c (unicode_mangling_length): Likewise.
(append_unicode_mangled_name): Likewise.
* parse.y (make_nested_class_name): Remove dead NO_DOLLAR_IN_LABEL
code.
From-SVN: r48220
Bryce McKinlay [Thu, 20 Dec 2001 22:47:39 +0000 (22:47 +0000)]
expr.c (build_java_array_length_access): Don't force null pointer check unless flag_check_references is set.
* expr.c (build_java_array_length_access): Don't force null pointer
check unless flag_check_references is set.
From-SVN: r48219
Andreas Jaeger [Thu, 20 Dec 2001 20:02:43 +0000 (21:02 +0100)]
libgcc2.c (__bb_exit_func): Remove unused variable.
* libgcc2.c (__bb_exit_func): Remove unused variable.
(num_digits): Remove unused function.
From-SVN: r48215
Nick Clifton [Thu, 20 Dec 2001 19:03:37 +0000 (19:03 +0000)]
Fix prologue/epilogue generation for ARM ISR routines.
Add test case to catch bugs reported in prologue/epilogue generation for ARM ISR routines.
From-SVN: r48210
Tom Tromey [Thu, 20 Dec 2001 18:05:20 +0000 (18:05 +0000)]
For PR java/4766:
* libjava.compile/PR4766.java: New file.
From-SVN: r48209
Tom Tromey [Thu, 20 Dec 2001 17:45:41 +0000 (17:45 +0000)]
re PR java/3417 (Downcast on integral types.)
Fix for PR java/3417:
* parse.y (patch_assignment): Added special processing for
`return'.
(patch_return): Don't convert booleans to integers, and don't
special-case `null'.
From-SVN: r48208
Richard Henderson [Thu, 20 Dec 2001 17:36:39 +0000 (09:36 -0800)]
varasm.c (assemble_real): Use REAL_VALUE_TO_x and assemble_integer to emit floating point values.
* varasm.c (assemble_real): Use REAL_VALUE_TO_x and assemble_integer
to emit floating point values.
(assemble_real_1): Remove.
* 1750a/1750a.c (real_value_to_target_single): New.
(real_value_to_target_double): New.
* 1750a/1750a.h (TARGET_FLOAT_FORMAT): New.
(REAL_VALUE_TO_TARGET_SINGLE): New.
(REAL_VALUE_TO_TARGET_DOUBLE): New.
* 1750a/1750a-protos.h: Update.
* 1750a/1750a.h, a29k/a29k.h, alpha/alpha.h, alpha/unicosmk.h,
alpha/vms.h, arc/arc.h, arm/aof.h, arm/aout.h, avr/avr.c,
avr/avr.h, c4x/c4x.h, clipper/clix.h, convex/convex.h, cris/cris.h,
d30v/d30v.h, dsp16xx/dsp16xx.c, dsp16xx/dsp16xx.h, elxsi/elxsi.h,
fr30/fr30.h, h8300/h8300.h, i370/i370.h, i386/i386.h, i386/i386elf.h,
i386/next.h, i386/ptx4-i.h, i386/sysv4.h, i860/fx2800.h, i860/i860.h,
i860/paragon.h, i860/sysv4.h, i960/i960-protos.h, i960/i960.c,
i960/i960.h, ia64/ia64.h, m32r/m32r.h, m68hc11/m68hc11.c,
m68hc11/m68hc11.h, m68k/3b1.h, m68k/altos3068.h, m68k/crds.h,
m68k/dpx2.h, m68k/hp320.h, m68k/m68k.h, m68k/mot3300.h, m68k/news.h,
m68k/next.h, m68k/next21.h, m68k/sgs.h, m68k/sun2o4.h, m68k/sun3.h,
m68k/tower-as.h, m88k/m88k.h, mcore/mcore.h, mips/mips-protos.h,
mips/mips.c, mips/mips.h, mmix/mmix-protos.h, mmix/mmix.c,
mmix/mmix.h, mn10200/mn10200.h, mn10300/mn10300.h, ns32k/encore.h,
ns32k/ns32k.h, pa/long_double.h, pa/pa.h, pdp11/pdp11.h, pj/pj.h,
romp/romp.c, romp/romp.h, rs6000/rs6000.h, s390/linux.h, sh/sh.h,
sparc/sparc.h, stormy16/stormy16.h, v850/v850.h, vax/vax.h,
vax/vaxv.h, we32k/we32k.h, doc/tm.texi: Remove ASM_OUTPUT_FLOAT,
ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE_FLOAT,
ASM_OUTPUT_SHORT_FLOAT, ASM_OUTPUT_THREE_QUARTER_FLOAT, and all
associated support routines.
From-SVN: r48207
Jan Hubicka [Thu, 20 Dec 2001 17:01:26 +0000 (18:01 +0100)]
cfgcleanup.c (flow_find_cross_jump): Avoid incrementing of ninsns if one of block does not contain jump.
* cfgcleanup.c (flow_find_cross_jump): Avoid incrementing of ninsns
if one of block does not contain jump.
(outgoing_edge_math): Revert last path; require edges to be noncomplex
nonfake to match single exit edge; require conditional jumps to not
have side effect.
From-SVN: r48203