Richard Henderson [Sun, 3 Mar 2002 09:00:51 +0000 (01:00 -0800)]
* c-decl.c (start_decl): Initialized variables are not common.
From-SVN: r50250
Per Bothner [Sun, 3 Mar 2002 08:35:11 +0000 (00:35 -0800)]
Make --CLASSPATH by a synonym for --classpath and -classpath.
Implement --bootclasspath.
From-SVN: r50247
Per Bothner [Sun, 3 Mar 2002 08:33:59 +0000 (00:33 -0800)]
gcc.c (option_map): Suport new --bootclasspath option.
* gcc.c (option_map): Suport new --bootclasspath option.
--CLASSPATH is now just an alias for --classpath.
From-SVN: r50246
GCC Administrator [Sun, 3 Mar 2002 08:17:12 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r50245
Aldy Hernandez [Sun, 3 Mar 2002 06:41:07 +0000 (06:41 +0000)]
20020103-1.c: Add othe -D ppc variants.
2002-03-03 Aldy Hernandez <aldyh@redhat.com>
* gcc.dg/
20020103-1.c: Add othe -D ppc variants.
From-SVN: r50241
Richard Henderson [Sun, 3 Mar 2002 05:20:04 +0000 (21:20 -0800)]
i386.h (ix86_expand_prologue): Do not emit pic register load if "internal" visibility.
* config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
load if "internal" visibility.
* doc/extend.texi: Document visibility meanings.
From-SVN: r50240
Richard Henderson [Sun, 3 Mar 2002 04:57:02 +0000 (20:57 -0800)]
i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies to functions as well.
* config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
to functions as well.
From-SVN: r50239
Richard Henderson [Sun, 3 Mar 2002 04:51:15 +0000 (20:51 -0800)]
Revert bogus commit.
From-SVN: r50238
Richard Henderson [Sun, 3 Mar 2002 04:50:53 +0000 (20:50 -0800)]
attribs.c (handle_alias_attribute): Don't call assemble_alias.
* attribs.c (handle_alias_attribute): Don't call assemble_alias.
(handle_visibility_attribute): Don't call assemble_visibility.
* toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
without asmspec. Invoke assemble_alias when needed.
* varasm.c (maybe_assemble_visibility): New.
(assemble_start_function, assemble_variable, assemble_alias): Use it.
From-SVN: r50237
Richard Henderson [Sun, 3 Mar 2002 04:23:21 +0000 (20:23 -0800)]
varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P; invoke ENCODE_SECTION_INFO with first call flag.
* varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
invoke ENCODE_SECTION_INFO with first call flag.
* config/darwin-protos.h, config/darwin.c, config/darwin.h,
config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
config/m68hc11/m68hc11.h, config/m88k/m88k.h,
config/mcore/mcore-protos.h, config/mcore/mcore.c,
config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
config/sh/sh.h, config/sparc/sparc.h,
config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
FIRST argument. As needed, examine it and do nothing.
* config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
* config/arm/t-pe (pe.o): Add dependencies.
From-SVN: r50236
Kaveh R. Ghazi [Sun, 3 Mar 2002 02:27:42 +0000 (02:27 +0000)]
a29k.h, [...]: (BITS_PER_UNIT): Delete.
* a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
* defaults.h (BITS_PER_UNIT): Define.
* doc/tm.texi (BITS_PER_UNIT): Document default value.
From-SVN: r50235
Paolo Carlini [Sat, 2 Mar 2002 21:32:56 +0000 (22:32 +0100)]
num_get_members_char.cc (test04): Use a named locale expecting grouping (de_DE).
2002-03-02 Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/num_get_members_char.cc (test04):
Use a named locale expecting grouping (de_DE).
* testsuite/22_locale/num_get_members_wchar_t.cc (test04):
Ditto.
* testsuite/27_io/ios_manip_basefield.cc (test01):
Extend coverage, uniform treatment of hexs and octs.
From-SVN: r50234
Nathan Sidwell [Sat, 2 Mar 2002 19:51:57 +0000 (19:51 +0000)]
re PR c++/775 (2.97 error declaring nested class a friend)
cp:
PR c++/775
* decl.c (lookup_tag): Only reject enum/class mismatch, not
class/union mismatch.
* parse.y (check_class_key): New function.
(structsp): Call it.Read from remote host gcc.gnu.org: Connection reset by peer
testsuite:
* g++.dg/other/classkey1.C: New test.
From-SVN: r50230
Alexandre Petit-Bianco [Sat, 2 Mar 2002 17:58:05 +0000 (09:58 -0800)]
Fix for PR java/5758, java/5632:
2002-02-28 Alexandre Petit-Bianco <apbianco@redhat.com>
Fix for PR java/5758, java/5632:
* jcf-parse.c (load_class): Renamed local variable, consider `.' an
inner-class separator too.
* parse.y (do_resolve_class): New local `decl_result.'
Progressively build a name for what can have been loaded.
From-SVN: r50228
Kazu Hirata [Sat, 2 Mar 2002 17:20:01 +0000 (17:20 +0000)]
h8300-protos.h: Add a prototype for compute_a_shift_length.
* config/h8300/h8300-protos.h: Add a prototype for
compute_a_shift_length.
* config/h8300/h8300.c (h8300_asm_insn_count): New.
(compute_a_shift_length): Likewise.
(h8300_adjust_insn_length): Do not adjust insn length of shift
insns.
* config/h8300/h8300.md (anonymous shift patterns): Use
compute_a_shift_length.
From-SVN: r50227
Richard Kenner [Sat, 2 Mar 2002 13:53:38 +0000 (13:53 +0000)]
sparc.c (sparc_initialize_trampoline): Use trunc_int_for_mode.
* config/sparc/sparc.c (sparc_initialize_trampoline): Use
trunc_int_for_mode.
From-SVN: r50226
Richard Kenner [Sat, 2 Mar 2002 11:35:36 +0000 (11:35 +0000)]
* emit-rtl.c (offset_address): Call update_temp_slot_address.
From-SVN: r50223
GCC Administrator [Sat, 2 Mar 2002 08:17:34 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r50222
Kaveh R. Ghazi [Sat, 2 Mar 2002 03:52:17 +0000 (03:52 +0000)]
Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
* Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
* doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
* flags.h (flag_zero_initialized_in_bss): Declare.
* toplev.c (flag_zero_initialized_in_bss): New flag.
(lang_independent_options): Add flag_zero_initialized_in_bss.
* tree.c (initializer_zerop): New function.
* tree.h (initializer_zerop): Declare.
* varasm.c (assemble_variable): If we can emit bss, put zero
initializers in the bss section.
From-SVN: r50218
Alan Modra [Sat, 2 Mar 2002 00:11:11 +0000 (00:11 +0000)]
rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't like more than one symbol per .weak directive.
* config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
like more than one symbol per .weak directive.
From-SVN: r50217
Richard Henderson [Fri, 1 Mar 2002 23:56:33 +0000 (15:56 -0800)]
ia64.c (ia64_initial_elimination_offset): Do not adjust argument_pointer by pretend_args_size.
* config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
adjust argument_pointer by pretend_args_size.
(ia64_va_start): Adjust va_start address by -pretend_args_size.
From-SVN: r50212
Kazu Hirata [Fri, 1 Mar 2002 22:07:44 +0000 (22:07 +0000)]
* config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
From-SVN: r50207
Jan Hubicka [Fri, 1 Mar 2002 20:07:01 +0000 (21:07 +0100)]
toplev.c (rest_of_compilation): Delete dead jumptables before loop.
* toplev.c (rest_of_compilation): Delete dead jumptables before
loop.
* flow.c (delete_dead_jumptables): Make global.
* rtl.h (delete_dead_jumptables): Declare.
From-SVN: r50205
Michael Matz [Fri, 1 Mar 2002 19:27:05 +0000 (19:27 +0000)]
Reduced testcase of a 252.eon (SPEC2000) problem.
From-SVN: r50204
Richard Henderson [Fri, 1 Mar 2002 18:39:21 +0000 (10:39 -0800)]
981223-1.x: New.
* gcc.c-torture/compile/981223-1.x: New.
* gcc.c-torture/compile/920625-1.x: New.
From-SVN: r50202
David Edelsohn [Fri, 1 Mar 2002 17:33:21 +0000 (17:33 +0000)]
rs6000.h (HANDLE_PRAGMA_PACK): Delete.
* config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
* config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
* config/rs6000/xcoff.h (COLLET_EXPORT_LIST): Delete.
From-SVN: r50200
Michael Matz [Fri, 1 Mar 2002 13:50:28 +0000 (13:50 +0000)]
typeck.c (cp_pointer_int_sum): Complete inner type which is used later by size_in_bytes().
2002-03-01 Michael Matz <matz@suse.de>
* typeck.c (cp_pointer_int_sum): Complete inner type which is
used later by size_in_bytes().
From-SVN: r50197
Anthony Green [Fri, 1 Mar 2002 13:43:09 +0000 (13:43 +0000)]
Oops. A ChangeLog entry got committed prematurely with my last change.
This fixes is.
From-SVN: r50196
Kazu Hirata [Fri, 1 Mar 2002 09:14:08 +0000 (09:14 +0000)]
h8300-protos.h: Fix formatting.
* config/h8300/h8300-protos.h: Fix formatting.
* config/h8300/h8300.c: Likewise.
* config/h8300/h8300.h: Likewise.
From-SVN: r50192
Kazu Hirata [Fri, 1 Mar 2002 08:57:14 +0000 (08:57 +0000)]
h8300.c (print_operand): Support 16-bit constant addresses.
* config/h8300/h8300.c (print_operand): Support 16-bit
constant addresses.
* config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
From-SVN: r50191
GCC Administrator [Fri, 1 Mar 2002 08:19:04 +0000 (08:19 +0000)]
Daily bump.
From-SVN: r50190
Richard Henderson [Fri, 1 Mar 2002 08:13:04 +0000 (00:13 -0800)]
expmed.c (store_bit_field): Prevent generation of CONCATs...
* expmed.c (store_bit_field): Prevent generation of CONCATs;
pun complex values as integers; use gen_lowpart instead of
gen_rtx_SUBREG.
(extract_bit_field): Likewise.
From-SVN: r50185
Phil Edwards [Fri, 1 Mar 2002 07:19:29 +0000 (07:19 +0000)]
cp-tree.h: Require __GNUC__ to be #defined.
2002-03-01 Phil Edwards <pme@gcc.gnu.org>
* cp-tree.h: Require __GNUC__ to be #defined.
(build_init): Add missing prototype.
From-SVN: r50183
Alan Modra [Fri, 1 Mar 2002 06:00:38 +0000 (06:00 +0000)]
tm.texi (ASM_WEAKEN_DECL): Document.
* doc/tm.texi (ASM_WEAKEN_DECL): Document.
(ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
(SUPPORTS_WEAK): Likewise.
* output.h (add_weak): Add tree param.
* varasm.c (add_weak): Likewise. Save decl.
(struct weak_syms): Add decl field.
(mark_weak_decls): New function.
(init_varasm_once): ggc_add_root mark_weak_decls.
(assemble_start_function): Use ASM_WEAKEN_DECL.
(assemble_variable): Likewise.
(assemble_alias): Likewise.
(declare_weak): Pass decl to add_weak.
(weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
(remove_from_pending_weak_list): Declare and define for
ASM_WEAKEN_DECL.
* c-pragma.c (handle_pragma_weak): Adjust add_weak call.
* c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
* defaults.h (SUPPORTS_WEAK): Likewise.
* config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
.weak for code sym. Do emit .size for descriptor sym.
(ASM_DECLARE_FUNCTION_SIZE): Define.
* config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
(ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
.lglobl unless TARGET_XCOFF. Formatting fixes.
* config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
.weak for code sym.
(HANDLE_PRAGMA_WEAK): Remove.
(ASM_WEAKEN_LABEL): Remove.
* config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
Co-Authored-By: David Edelsohn <edelsohn@gnu.org>
From-SVN: r50181
Anthony Green [Fri, 1 Mar 2002 05:36:31 +0000 (05:36 +0000)]
Add pointer support to the reflection code.
From-SVN: r50180
Richard Henderson [Fri, 1 Mar 2002 02:39:38 +0000 (18:39 -0800)]
* g++.dg/opt/vtgc1.C: Adjust patterns for ia64.
From-SVN: r50179
Jason Merrill [Fri, 1 Mar 2002 01:49:00 +0000 (20:49 -0500)]
tree.h (TARGET_EXPR_SLOT, [...]): New macros.
* tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
(TARGET_EXPR_CLEANUP): New macro.
cp/
* except.c: Don't include decl.h or obstack.h. Do include
tree-inline.h.
(build_throw): Destroy temporaries from the thrown
expression before calling __cxa_throw. Construct a thrown
temporary directly into the exception object.
(stabilize_throw_expr): New function.
(wrap_cleanups_r): New function.
* tree.c (stabilize_expr): New function.
* init.c (build_init): New function.
* Make-lang.in (cp/except.o): Adjust .h deps.
From-SVN: r50177
Richard Henderson [Fri, 1 Mar 2002 01:27:57 +0000 (17:27 -0800)]
linker-map.gnu: Export operator new with unsigned long, and with std::nothrow_t.
* config/linker-map.gnu: Export operator new with unsigned long,
and with std::nothrow_t. Likewise operator delete.
From-SVN: r50176
Steve Ellcey [Fri, 1 Mar 2002 01:19:52 +0000 (01:19 +0000)]
rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition to take ptr_extend into account as third type of extension.
* doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
to take ptr_extend into account as third type of extension.
(SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
fields used by SUBREG_PROMOTED_UNSIGNED_P.
* rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
(SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
* calls.c (precompute_arguments): Use new macro.
(expand_call): Ditto.
* combine.c (nonzero_bits): Ditto.
(record_promoted_value): Ditto.
* expr.c (store_expr): Ditto.
(expand_expr): Ditto.
* function.c (assign_parms): Ditto.
From-SVN: r50174
Alexandre Oliva [Fri, 1 Mar 2002 00:50:39 +0000 (00:50 +0000)]
gcc.c (init_gcc_specs): Get -static and -static-libgcc to override -shared and -shared-libgcc.
* gcc.c (init_gcc_specs): Get -static and -static-libgcc to
override -shared and -shared-libgcc.
From-SVN: r50171
Alexandre Oliva [Fri, 1 Mar 2002 00:49:53 +0000 (00:49 +0000)]
configure.in (libstdcxx_flags): Don't add libstdc++-v3 flags for libjava.
* configure.in (libstdcxx_flags): Don't add libstdc++-v3 flags for
libjava.
(CXX_FOR_TARGET): Explain why -shared-libgcc here.
From-SVN: r50169
Bryce McKinlay [Thu, 28 Feb 2002 23:27:09 +0000 (23:27 +0000)]
* expr.c (build_java_arraystore_check): Fix formatting.
From-SVN: r50167
David O'Brien [Thu, 28 Feb 2002 23:06:25 +0000 (23:06 +0000)]
config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification of "ultrasparc".
2002-02-28 David O'Brien <obrien@FreeBSD.org>
* config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
of "ultrasparc".
* config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
to be broken.
Approved by: Richard Henderson <rth@redhat.com>
Message-ID: <
20020228100723.A30279@redhat.com>
From-SVN: r50165
Paolo Carlini [Thu, 28 Feb 2002 21:16:45 +0000 (22:16 +0100)]
locale_facets.tcc (num_get::_M_extract_int): Admit grouping for octals and hexadecimals too.
2002-02-28 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (num_get::_M_extract_int):
Admit grouping for octals and hexadecimals too.
* testsuite/22_locale/num_get_members_char.cc: Add test04.
(test01): Tweak "." -> "," in void* test.
* testsuite/22_locale/num_get_members_wchar_t.cc: Ditto.
* testsuite/27_io/ios_manip_basefield.cc: Remove static keyword.
* testsuite/27_io/ios_manip_fmtflags.cc: Remove two of them.
From-SVN: r50162
Richard Henderson [Thu, 28 Feb 2002 19:48:40 +0000 (11:48 -0800)]
ia64.c (ia64_adjust_cost): All non-MM consumers have 4 cycle latency from MM producers.
* config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4 cycle latency from MM producers.
(ia64_internal_sched_reorder): Likewise with pipeline flush.
From-SVN: r50160
Jakub Jelinek [Thu, 28 Feb 2002 18:56:55 +0000 (19:56 +0100)]
* mklibgcc.in: Don't use GNU make extension.
From-SVN: r50156
Neil Booth [Thu, 28 Feb 2002 18:51:14 +0000 (18:51 +0000)]
c-parse.in (STATIC): New terminal.
* c-parse.in (STATIC): New terminal.
(scspec): New non-terminal. Update productions accordingly.
(program): Remove bogus ifc / end ifc.
(array_declarator): Simplify production using STATIC.
From-SVN: r50155
Jim Meyering [Thu, 28 Feb 2002 18:46:17 +0000 (18:46 +0000)]
cpplex.c (cpp_parse_escape): Restore mistakenly-removed code: \a still means TARGET_BELL.
* cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
\a still means TARGET_BELL.
From-SVN: r50154
Richard Henderson [Thu, 28 Feb 2002 18:32:12 +0000 (10:32 -0800)]
haifa-sched.c (sched_emit_insn): New.
* haifa-sched.c (sched_emit_insn): New.
(schedule_block): Use last_scheduled_insn to track last insn.
* sched-int.h (sched_emit_insn): Prototype.
* config/ia64/ia64.c (last_issued): Remove.
(ia64_variable_issue): Don't set it.
(nop_cycles_until): Use sched_emit_insn.
From-SVN: r50153
Andrew MacLeod [Thu, 28 Feb 2002 18:31:00 +0000 (18:31 +0000)]
sparc.c (sparc64_initialize_trampoline): Generate sign extended constants.
* config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
extended constants.
From-SVN: r50152
Kazu Hirata [Thu, 28 Feb 2002 18:13:06 +0000 (18:13 +0000)]
h8300.c: Fix formatting.
* config/h8300/h8300.c: Fix formatting.
* config/h8300/h8300.h: Likewise.
From-SVN: r50150
Jason Merrill [Thu, 28 Feb 2002 15:46:31 +0000 (10:46 -0500)]
search.c (lookup_base_r): Don't clear is_non_public just because we found a friendly scope.
* search.c (lookup_base_r): Don't clear is_non_public just because
we found a friendly scope.
From-SVN: r50143
Jason Merrill [Thu, 28 Feb 2002 15:32:38 +0000 (10:32 -0500)]
search.c (lookup_base_r): Don't clear is_non_public just because we found a friendly scope.
* search.c (lookup_base_r): Don't clear is_non_public just because
we found a friendly scope.
From-SVN: r50140
Marek Michalkiewicz [Thu, 28 Feb 2002 15:23:54 +0000 (16:23 +0100)]
avr.c (avr_hard_regno_mode_ok): Do not allow r29 which may overwrite the high byte of the frame pointer.
* config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
which may overwrite the high byte of the frame pointer.
From-SVN: r50138
Bo Thorsen [Thu, 28 Feb 2002 15:16:17 +0000 (15:16 +0000)]
linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
2002-02-28 Bo Thorsen <bo@suse.de>
* config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
(STARTFILE_SPEC): Add 64 bit files.
(ENDFILE_SPEC): Likewise.
From-SVN: r50137
Jason Merrill [Thu, 28 Feb 2002 13:30:04 +0000 (08:30 -0500)]
c-decl.c (finish_function): Only warn about missing return statement with -Wreturn-type.
* c-decl.c (finish_function): Only warn about missing return
statement with -Wreturn-type.
* cp/decl.c (finish_function): Only warn about missing return
statement with -Wreturn-type.
From-SVN: r50132
Bryce McKinlay [Thu, 28 Feb 2002 11:40:29 +0000 (11:40 +0000)]
expr.c (java_array_data_offset): Removed function.
* expr.c (java_array_data_offset): Removed function.
(JAVA_ARRAY_LENGTH_OFFSET): Removed macro.
(build_java_array_length_access): Obtain "length" value using a
COMPONENT_REF, instead of INDIRECT_REF and arithmetic.
(build_java_arrayaccess): Correct comment. Access "data" using a
COMPONENT_REF, and return an ARRAY_REF instead of an INDIRECT_REF.
(build_java_arraystore_check): New function.
(expand_java_arraystore): Use build_java_arraystore_check.
* parse.y (patch_assignment): Simplify code to insert a store check
when lvalue is an ARRAY_REF. Use build_java_arraystore_check.
* check-init.c (check_init): Update to reflect that an array length
access is now a COMPONENT_REF.
* gcj.texi (Code Generation): Improve documentation of
-fno-bounds-check. Add documentation for -fno-store-check.
* java-tree.h (flag_store_check): Declare.
(build_java_arraystore_check): Declare.
* lang.c (flag_store_check): Initialize to 1.
(lang_f_options): Add store-check option.
* jvspec.c: Don't pass store-check option to jvgenmain.
* lang-options.h: Add help string for -fno-store-check.
From-SVN: r50129
Jan Hubicka [Thu, 28 Feb 2002 11:03:16 +0000 (11:03 +0000)]
cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
* cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
* i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
From-SVN: r50128
Jan Hubicka [Thu, 28 Feb 2002 10:11:01 +0000 (10:11 +0000)]
basic-block.h (BB_REACHABLE): Renumber.
* basic-block.h (BB_REACHABLE): Renumber.
(BB_DIRTY, BB_NEW): New flags.
(clear_bb_flags): Declare.
(update_life_info_in_dirty_blocks): Declare.
* cfg.c (clear_bb_flags): New function.
* cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
* emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
reorder_insns, emit_insn_after): Mark block as dirty.
* flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
(update_life_info_in_dirty_blocks): New function.
* recog.c (apply_change_group): Dirtify block.
* cse.c (cse_insn): Reorder emitting of jump insn to keep
cfg consistent.
* gcse.c (delete_null_pointer_checks): Likewise.
* toplev.c (dump_file_index): Move cse2 after bp,
add DFI_null
(dump_file_info): Similary.
(rest_of_compilation): Avoid most of CFG rebuilds;
do first if converision after null pointer checks, do cse2
after branch prediction; avoid full liveness rebuild after
initializing subregs.
* invoke.texi (-d options): Document -du, renumber.
* cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
(notice_new_block): Do not set BB_UPDATE_LIFE.
(try_forward_edges, merge_blocks_move_predecessor_nojumps,
merge_blocks_move_successor_nojumps, merge_blocks,
try_crossjump_to_edge): Likewise.
(try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
* cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
* ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
(merge_of_block): Do not use life_data_ok.
(find_if_case_1): Do not use SET_UPDATE_LIFE.
(if_convert): Use BB_DIRTY mechanizm to update life.
* lcm.c (optimize_mode_switching): Update
update_life_info_in_dirty_blocks
From-SVN: r50127
GCC Administrator [Thu, 28 Feb 2002 08:17:15 +0000 (08:17 +0000)]
Daily bump.
From-SVN: r50126
Neil Booth [Thu, 28 Feb 2002 07:39:44 +0000 (07:39 +0000)]
Makefile.in (integrate.o): Update.
* Makefile.in (integrate.o): Update.
* c-decl.c (copy_lang_decl): Rename.
* c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
* integrate.c: Include langhooks.h.
(copy_decl_for_inlining): Update to use langhook.
* langhooks-def.h (lhd_do_nothing_t,
LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.c (lhd_do_nothing_t): New.
* langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
* tree.h (copy_lang_decl): Remove.
ada:
* misc.c (copy_lang_decl): Remove.
cp:
* class.c (build_clone): Update.
* cp-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
* cp-tree.h (cxx_dup_lang_specific_decl): New.
* lex.c (copy_lang_decl): Rename cxx_dup_lang_specific_decl.
(copy_decl): Update.
* method.c (make_thunk): Update.
f:
* com.c (copy_lang_decl): Delete.
java:
* decl.c (copy_lang_decl): Rename java_dup_lang_specific_decl.
* java-tree.h (java_dup_lang_specific_decl): New.
* lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
objc:
* objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
From-SVN: r50122
Andrew MacLeod [Thu, 28 Feb 2002 03:09:41 +0000 (03:09 +0000)]
dwarf2out.c (stack_adjust_offset): Add support for POST_INC, POST_DEC, and POST_MODIFY.
* dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
POST_DEC, and POST_MODIFY.
From-SVN: r50121
Adam Megacz [Thu, 28 Feb 2002 01:03:37 +0000 (01:03 +0000)]
natInetAddress.cc: Changed USE_WINSOCK to WIN32, added '#undef STRICT'.
2002-02-27 Adam Megacz <adam@xwt.org>
* java/net/natInetAddress.cc: Changed USE_WINSOCK to WIN32, added
'#undef STRICT'.
From-SVN: r50120
Zack Weinberg [Wed, 27 Feb 2002 22:14:59 +0000 (22:14 +0000)]
c-typeck.c (digest_init): Remove unused parameter; all callers changed.
* c-typeck.c (digest_init): Remove unused parameter; all
callers changed.
From-SVN: r50118
Hans-Peter Nilsson [Wed, 27 Feb 2002 21:16:55 +0000 (21:16 +0000)]
* gcc.c-torture/execute/
20020227-1.c: New test.
From-SVN: r50117
Hans-Peter Nilsson [Wed, 27 Feb 2002 21:11:19 +0000 (21:11 +0000)]
* gcc.c-torture/execute/
20020227-1.c: New test.
From-SVN: r50116
Mark Mitchell [Wed, 27 Feb 2002 20:29:45 +0000 (20:29 +0000)]
visibility13.C: Remove "instantiated from here" ERROR lines.
* g++.old-deja/g++.law/visibility13.C: Remove "instantiated from
here" ERROR lines.
* g++.old-deja/g++.oliva/partord1.C: Likewise.
* g++.old-deja.g++.other/defarg1.C: Likewise.
* g++.old-deja/g++.pt/calls2.C: Likewise.
* g++.old-deja/g++.pt/crash20.C: Likewise.
* g++.old-deja/g++.pt/crash30.C: Likewise.
* g++.old-deja/g++.pt/crash36.C: Likewise.
* g++.old-deja/g++.pt/crash6.C: Likewise.
* g++.old-deja/g++.pt/defarg13.C: Likewise.
* g++.old-deja/g++.pt/derived3.C: Likewise.
* g++.old-deja/g++.pt/error1.C: Likewise.
* g++.old-deja/g++.pt/friend21.C: Likewise.
* g++.old-deja/g++.pt/friend23.C: Likewise.
* g++.old-deja/g++.pt/infinite1.C: Likewise.
* g++.old-deja/g++.robertl/eb128.C: Likewise.
From-SVN: r50115
Geoffrey Keating [Wed, 27 Feb 2002 20:27:38 +0000 (20:27 +0000)]
Index: ChangeLog
* expmed.c (expand_shift): Correctly test for low part of a
subreg.
Index: testsuite/ChangeLog
* gcc.c-torture/execute/
20020225-2.c: New test.
From-SVN: r50114
Ulrich Weigand [Wed, 27 Feb 2002 20:20:54 +0000 (20:20 +0000)]
s390.c (s390_chunkify_pool): Do not confuse insn UIDs with insn addresses.
* config/s390/s390.c (s390_chunkify_pool): Do not confuse
insn UIDs with insn addresses.
From-SVN: r50112
Paolo Carlini [Wed, 27 Feb 2002 19:54:32 +0000 (20:54 +0100)]
ios_manip_basefield.cc (test01): Fix for 64 bit machines.
2002-02-27 Paolo Carlini <pcarlini@unitus.it>
* testsuite/27_io/ios_manip_basefield.cc (test01):
Fix for 64 bit machines.
From-SVN: r50111
Zack Weinberg [Wed, 27 Feb 2002 18:48:07 +0000 (18:48 +0000)]
c-common.c, [...]: Delete code implementing -traditional mode.
* c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
gcc.c, toplev.c: Delete code implementing -traditional mode.
* ada/misc.c, ch/ch-tree.h, ch/decl.c, cp/decl2.c, f/com.c,
f/lex.c, f/top.c, java/builtins.c, java/decl.c: Delete
traditional-mode-related code copied from the C front end
but not used, or used only to permit the compiler to link.
* doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
Document removal of -traditional mode for compilation, and
remove documentation only relevant to that mode.
* config/nextstep.h, config/ptx4.h, config/svr4.h,
config/convex/convex.h, config/d30v/d30v.h,
config/i386/dgux.h, config/i386/osf1elf.h,
config/i386/osfelf.h, config/i386/osfrose.h,
config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
config/m68k/hp310.h, config/m88k/dgux.h,
config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
config/m88k/m88k.h, config/m88k/openbsd.h,
config/mips/abi64.h, config/mips/osfrose.h,
config/mips/svr4-5.h, config/mips/svr4-t.h,
config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
config/stormy16/stormy16.h: Remove all references to
-traditional from target specs. Delete all mention of the
no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
delete a couple of commented-out definitions of
DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
to -traditional.
* system.h: Poison TRADITIONAL_RETURN_FLOAT.
* doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
* testsuite/gcc.c-torture/execute/920730-1t.c,
testsuite/gcc.c-torture/execute/920730-1t.x,
testsuite/gcc.dg/ext-glob.c: Delete test cases, only relevant
to -traditional.
From-SVN: r50110
Zack Weinberg [Wed, 27 Feb 2002 18:40:15 +0000 (18:40 +0000)]
mklibgcc.in: Don't use \n in a line subject to interpretation by echo.
* mklibgcc.in: Don't use \n in a line subject to
interpretation by echo.
From-SVN: r50109
Graham Stott [Wed, 27 Feb 2002 15:08:07 +0000 (15:08 +0000)]
rs6000.h (ASM_OUTPUT_DEF_FROM_DELC): Constify NAME.
* config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
Constify NAME.
From-SVN: r50102
Graham Stott [Wed, 27 Feb 2002 15:03:05 +0000 (15:03 +0000)]
* loop.c (prescan_loop): Handle PARALLEL.
From-SVN: r50101
Graham Stott [Wed, 27 Feb 2002 15:01:10 +0000 (15:01 +0000)]
unroll.c (loop_iterations): Return 0 if the add_val for a BIV is REG.
* unroll.c (loop_iterations): Return 0 if the add_val for
a BIV is REG.
From-SVN: r50100
Graham Stott [Wed, 27 Feb 2002 13:53:50 +0000 (13:53 +0000)]
* final.c (output_operand_lossage): Constify PFX_STR.
From-SVN: r50099
Graham Stott [Wed, 27 Feb 2002 13:50:57 +0000 (13:50 +0000)]
* df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
From-SVN: r50098
Jan Hubicka [Wed, 27 Feb 2002 09:47:27 +0000 (10:47 +0100)]
linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
* linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
* x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
From-SVN: r50097
Jan Hubicka [Wed, 27 Feb 2002 09:40:32 +0000 (10:40 +0100)]
* linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
From-SVN: r50096
GCC Administrator [Wed, 27 Feb 2002 08:19:19 +0000 (08:19 +0000)]
Daily bump.
From-SVN: r50095
Neil Booth [Wed, 27 Feb 2002 07:24:53 +0000 (07:24 +0000)]
cpplex.c (_cpp_lex_token): Handle directives in macro arguments.
* cpplex.c (_cpp_lex_token): Handle directives in macro
arguments.
* cpplib.c (_cpp_handle_directive): Save and restore state
if parsing macro args when entering a directive.
* cppmacro.c (collect_args): No need to handle directives
in macro arguments.
(enter_macro_context, replace_args): Use the original macro
definition in case it was redefined whilst collecting arguments.
doc:
* cpp.texi: Update.
testsuite:
* gcc.dg/cpp/undef1.c: Remove.
* gcc.dg/cpp/directiv.c: Update.
* gcc.dg/cpp/mac-dir-1.c, mac-dir-2.c: New tests.
From-SVN: r50091
David Edelsohn [Wed, 27 Feb 2002 05:42:20 +0000 (00:42 -0500)]
[multiple changes]
2002-02-26 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
* config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
* config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
method on AIX.
* config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
(movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
(load_toc_v4_PIC_2): Same.
2002-02-26 Alan Modra <amodra@bigpond.net.au>
* config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
From-SVN: r50090
Tom Tromey [Wed, 27 Feb 2002 05:32:29 +0000 (05:32 +0000)]
natSystem.cc (init_properties): Use __VERSION__.
* java/lang/natSystem.cc (init_properties): Use __VERSION__.
* gij.cc (version): Use __VERSION__.
* include/config.h.in: Rebuilt.
* acconfig.h (GCJVERSION): Removed.
* configure: Rebuilt.
* configure.in (GCJVERSION): Removed.
From-SVN: r50088
Michael Meissner [Wed, 27 Feb 2002 05:28:58 +0000 (05:28 +0000)]
Add
20020226-1.c to test rotate patterns
From-SVN: r50087
Andreas Schwab [Wed, 27 Feb 2002 02:18:09 +0000 (02:18 +0000)]
acinclude.m4 (LIB_AC_PROG_CXX): Use glibjava_CXX instead of glibcpp_CXX, since libjava uses even another CXX.
2002-02-26 Andreas Schwab <schwab@suse.de>
* acinclude.m4 (LIB_AC_PROG_CXX): Use glibjava_CXX instead of
glibcpp_CXX, since libjava uses even another CXX.
* aclocal.m4, configure: Regenerated.
From-SVN: r50084
Richard Henderson [Wed, 27 Feb 2002 01:52:18 +0000 (17:52 -0800)]
* config/alpha/alpha.md (ashldi_se): Re-enable.
From-SVN: r50083
Richard Henderson [Wed, 27 Feb 2002 01:48:57 +0000 (17:48 -0800)]
alpha.c (alpha_encode_section_info): Examine MODULE_LOCAL_P; improve commentary.
* config/alpha/alpha.c (alpha_encode_section_info): Examine
MODULE_LOCAL_P; improve commentary.
From-SVN: r50082
Tom Tromey [Wed, 27 Feb 2002 01:39:30 +0000 (01:39 +0000)]
natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not `1'.
* java/lang/natPosixProcess.cc (startProcess): Use FD_CLOEXEC, not
`1'.
From-SVN: r50081
Zack Weinberg [Wed, 27 Feb 2002 01:26:04 +0000 (01:26 +0000)]
cpp.texi: Clarify documentation of relationship between #line and #include.
* doc/cpp.texi: Clarify documentation of relationship between
#line and #include.
From-SVN: r50079
Kazu Hirata [Wed, 27 Feb 2002 01:09:50 +0000 (01:09 +0000)]
h8300-protos.h: Update the prototype for compute_logical_op_length.
* config/h8300/h8300-protos.h: Update the prototype for
compute_logical_op_length. Add the prototype for
compute_logical_op_cc.
* config/h8300/h8300.c (compute_logical_op_length): Figure out
code from operands.
(compute_logical_op_cc): New.
* config/h8300/h8300.md: Combine all the logical op patterns
in HImode and SImode. Use compute_logical_op_cc.
From-SVN: r50078
Benjamin Kosnik [Wed, 27 Feb 2002 01:01:59 +0000 (01:01 +0000)]
basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
2002-02-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
Adjust comment.
* include/bits/basic_ios.h (basic_ios::_M_fill): Make mutable.
(basic_ios::_M_fill_init): New.
(basic_ios::fill()): Delay dealing with _M_fill.
Adjust comment.
* testsuite/27_io/ios_init.cc (test02): Adjust testcase.
From-SVN: r50077
Benjamin Kosnik [Wed, 27 Feb 2002 01:01:31 +0000 (01:01 +0000)]
basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
2002-02-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill to zero.
Adjust comment.
* include/bits/basic_ios.h (basic_ios::_M_fill): Make mutable.
(basic_ios::_M_fill_init): New.
(basic_ios::fill()): Deal with _M_fill lazily.
Adjust comment.
* testsuite/27_io/ios_init.cc (test02): Adjust testcase.
From-SVN: r50076
Kelley Cook [Wed, 27 Feb 2002 00:29:00 +0000 (16:29 -0800)]
i386.c (print_operand): Don't append ATT-style length suffixs to x87 opcodes when in Intel mode.
* config/i386/i386.c (print_operand): Don't append ATT-style
length suffixs to x87 opcodes when in Intel mode.
From-SVN: r50075
Ryan T. Sammartino [Wed, 27 Feb 2002 00:22:09 +0000 (00:22 +0000)]
emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
* emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
(init_emit_once): Update calls.
* fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
(init_syntax_once): Prototype.
From-SVN: r50072
John David Anglin [Tue, 26 Feb 2002 23:38:34 +0000 (23:38 +0000)]
pa-linux.h (LIB_SPEC): Update definition.
* pa-linux.h (LIB_SPEC): Update definition.
* pa32-linux.h (LINK_COMMAND_SPEC): Delete.
From-SVN: r50071
Loren J. Rittle [Tue, 26 Feb 2002 23:02:52 +0000 (23:02 +0000)]
Makefile.am (thread_target_headers): Unconditionally stage and install gthr-posix.h.
* include/Makefile.am (thread_target_headers): Unconditionally
stage and install gthr-posix.h.
(${target_builddir}/gthr-posix.h): New rule cloned off
${target_builddir}/gthr-default.h.
(${target_builddir}/gthr-default.h): Support chained inclusion
of gthr support headers.
* include/Makefile.in: Rebuilt.
From-SVN: r50069
Richard Henderson [Tue, 26 Feb 2002 22:41:48 +0000 (14:41 -0800)]
ia64.c (nop_cycles_until): Do init_insn_group_barriers if we emitted a stop bit.
* config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
if we emitted a stop bit.
From-SVN: r50065
Jakub Jelinek [Tue, 26 Feb 2002 21:39:07 +0000 (22:39 +0100)]
configure.in (libgcc_visibility): Substitute.
* configure.in (libgcc_visibility): Substitute.
* configure: Rebuilt.
* mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
defined symbols .hidden.
From-SVN: r50063
Jakub Jelinek [Tue, 26 Feb 2002 21:17:22 +0000 (22:17 +0100)]
attribs.c (c_common_attribute_table): Add visibility.
* attribs.c (c_common_attribute_table): Add visibility.
(handle_visibility_attribute): New function.
* varasm.c (assemble_visibility): New function.
* output.h (assemble_visibility): Add prototype.
* tree.h (MODULE_LOCAL_P): Define.
* crtstuff.c (__dso_handle): Use visibility attribute.
* config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
for MODULE_LOCAL_P symbols too.
* config/ia64/ia64.c (ia64_encode_section_info): Handle
MODULE_LOCAL_P symbols the same way as local symbols.
Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
into .sdata/.sbss by the user.
* doc/extend.texi (Function Attributes): Document visibility
attribute.
* gcc.dg/ia64-visibility-1.c: New test.
From-SVN: r50061
Jakub Jelinek [Tue, 26 Feb 2002 21:08:57 +0000 (22:08 +0100)]
re PR debug/5770 (undefined reference to `.LC0')
PR debug/5770
* dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
STRING_CST initializer spanning the whole variable without
embedded zeros.
If expand_expr returned MEM, don't use it.
* g++.dg/debug/debug4.C: New test.
From-SVN: r50058