gcc.git
21 years ago* config/mt-aix43: Delete.
Geoffrey Keating [Mon, 23 Dec 2002 02:36:23 +0000 (02:36 +0000)]
* config/mt-aix43: Delete.

From-SVN: r60420

21 years agostor-layout.c (update_alignment_for_field): Use ADJUST_FIELD_ALIGN when computing...
Mark Mitchell [Mon, 23 Dec 2002 02:10:18 +0000 (02:10 +0000)]
stor-layout.c (update_alignment_for_field): Use ADJUST_FIELD_ALIGN when computing the alignment for a zero-width bitfield...

* stor-layout.c (update_alignment_for_field): Use
ADJUST_FIELD_ALIGN when computing the alignment for a zero-width
bitfield when PCC_BITFIELD_TYPE_MATTERS.

From-SVN: r60419

21 years ago* treelang.texi: Use @ifnottex instead of @ifinfo.
Joseph Myers [Sun, 22 Dec 2002 21:48:29 +0000 (21:48 +0000)]
* treelang.texi: Use @ifnottex instead of @ifinfo.

From-SVN: r60417

21 years agore PR c++/8572 (ICE with external definition of conversion operator to internal class...
Nathan Sidwell [Sun, 22 Dec 2002 21:32:28 +0000 (21:32 +0000)]
re PR c++/8572 (ICE with external definition of conversion operator to internal class within template class)

cp:
PR c++/8572
* cp-tree.h (grokoptypename): Add SCOPE parameter.
* decl2.c (grokoptypename): Add SCOPE parameter. tsubst the type
if in a template scope.
* parse.y (unoperator): Return the scope.
(operator_name): Adjust grokoptypename call.
testsuite:
* g++.dg/parse/conv_op1.C: New test.

From-SVN: r60416

21 years ago* genautomata.c: Fix comment typos.
Kazu Hirata [Sun, 22 Dec 2002 18:30:28 +0000 (18:30 +0000)]
* genautomata.c: Fix comment typos.

From-SVN: r60415

21 years agoparams.def (tracer-min-branch-probability-feedback): Fix default.
Jan Hubicka [Sun, 22 Dec 2002 17:24:38 +0000 (18:24 +0100)]
params.def (tracer-min-branch-probability-feedback): Fix default.

* params.def (tracer-min-branch-probability-feedback): Fix default.
* final.c (compute_alignments): Use profile to avoid code bloat.

From-SVN: r60413

21 years agogcj.texi (Limitations): Add note about org.xml.sax and org.w3c.dom.
Anthony Green [Sun, 22 Dec 2002 16:46:02 +0000 (16:46 +0000)]
gcj.texi (Limitations): Add note about org.xml.sax and org.w3c.dom.

2002-12-22  Anthony Green  <green@redhat.com>

* gcj.texi (Limitations): Add note about org.xml.sax and
org.w3c.dom.

From-SVN: r60411

21 years agoMakefile.am: Move org.xml.sax and org.w3c.dom into their own libraries.
Anthony Green [Sun, 22 Dec 2002 16:08:40 +0000 (16:08 +0000)]
Makefile.am: Move org.xml.sax and org.w3c.dom into their own libraries.

2002-12-21  Anthony Green  <green@redhat.com>

* Makefile.am: Move org.xml.sax and org.w3c.dom into their own
libraries.
* Makefile.in: Rebuilt.

From-SVN: r60410

21 years agocp-tree.h (make_unbound_class_template): Use tsubst_flags_t.
Kriang Lerdsuwanakij [Sun, 22 Dec 2002 16:01:27 +0000 (16:01 +0000)]
cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.

* cp-tree.h (make_unbound_class_template): Use tsubst_flags_t.
* decl.c (make_unbound_class_template): Adjust.  Check for tf_error.
* pt.c (tsubst) [OFFSET_TYPE]: Check for tf_error.

From-SVN: r60407

21 years agoh8300.c (get_shift_alg): Make shift insn sequences end with a valid cc0 whenever...
Kazu Hirata [Sun, 22 Dec 2002 15:02:30 +0000 (15:02 +0000)]
h8300.c (get_shift_alg): Make shift insn sequences end with a valid cc0 whenever possible.

* config/h8300/h8300.c (get_shift_alg): Make shift insn
sequences end with a valid cc0 whenever possible.

From-SVN: r60406

21 years agoh8300.md (negsf2): New.
Kazu Hirata [Sun, 22 Dec 2002 14:45:52 +0000 (14:45 +0000)]
h8300.md (negsf2): New.

* config/h8300/h8300.md (negsf2): New.
(*negsf2_h8300): Likewise.
(*negsf2_h8300hs): Likewise.

From-SVN: r60405

21 years agoDaily bump.
GCC Administrator [Sun, 22 Dec 2002 08:18:02 +0000 (08:18 +0000)]
Daily bump.

From-SVN: r60404

21 years agoconfigure.in (extra_ranlibflags_for_target): New variable.
Geoffrey Keating [Sun, 22 Dec 2002 06:46:41 +0000 (06:46 +0000)]
configure.in (extra_ranlibflags_for_target): New variable.

* configure.in (extra_ranlibflags_for_target): New variable.
(*-*-darwin): Add -c to ranlib commands.
* configure (tooldir): Handle extra_ranlibflags_for_target.

From-SVN: r60397

21 years agointegrate.c (output_inline_function): Don't hold private pointers to 'struct function...
Geoffrey Keating [Sun, 22 Dec 2002 06:42:16 +0000 (06:42 +0000)]
integrate.c (output_inline_function): Don't hold private pointers to 'struct function' over GC calls.

* integrate.c (output_inline_function): Don't hold private
pointers to 'struct function' over GC calls.

From-SVN: r60396

21 years agolib1funcs.asm (__fpscr_values): Conditionalize with NO_FPSCR_VALUES.
Kaz Kojima [Sat, 21 Dec 2002 23:26:16 +0000 (23:26 +0000)]
lib1funcs.asm (__fpscr_values): Conditionalize with NO_FPSCR_VALUES.

* config/sh/lib1funcs.asm (__fpscr_values): Conditionalize with
NO_FPSCR_VALUES.
* config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Add -DNO_FPSCR_VALUES.

From-SVN: r60395

21 years ago* gcc.c-torture/compile/20021220-1.c: Removed until bug fix is approved.
Josef Zlomek [Sat, 21 Dec 2002 20:39:53 +0000 (21:39 +0100)]
* gcc.c-torture/compile/20021220-1.c: Removed until bug fix is approved.

From-SVN: r60394

21 years agoh8300.md (zero_extendqisi2): Correct the length.
Kazu Hirata [Sat, 21 Dec 2002 18:45:37 +0000 (18:45 +0000)]
h8300.md (zero_extendqisi2): Correct the length.

* config/h8300/h8300.md (zero_extendqisi2): Correct the
length.

From-SVN: r60389

21 years agoh8300.md (*zero_extendqihi2_h8300): Make the second alternative "#".
Kazu Hirata [Sat, 21 Dec 2002 17:47:32 +0000 (17:47 +0000)]
h8300.md (*zero_extendqihi2_h8300): Make the second alternative "#".

* config/h8300/h8300.md (*zero_extendqihi2_h8300): Make the
second alternative "#".
(*zero_extendqihi2_h8300hs): Likewise.
(a define_split): New.

From-SVN: r60388

21 years agoh8300-protos.h: Update the prototype for split_adds_subs.
Kazu Hirata [Sat, 21 Dec 2002 17:43:15 +0000 (17:43 +0000)]
h8300-protos.h: Update the prototype for split_adds_subs.

* config/h8300/h8300-protos.h: Update the prototype for
split_adds_subs.
Add prototypes for const_le_2_operand and const_le_6_operand.
* config/h8300/h8300.c (split_adds_subs): Add an argument to
specify whether inc/dec should be used when possible.
(const_le_2_operand): New.
(const_le_6_operand): Likewise.
* config/h8300/h8300.md (two peepholes): New.

From-SVN: r60387

21 years agoDaily bump.
GCC Administrator [Sat, 21 Dec 2002 08:17:25 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r60386

21 years agofr30.md: Fix a comment typo.
Kazu Hirata [Sat, 21 Dec 2002 05:22:17 +0000 (05:22 +0000)]
fr30.md: Fix a comment typo.

* config/fr30/fr30.md: Fix a comment typo.
* config/i386/i386.c: Likewise.
* config/ip2k/ip2k.h: Likewise.

From-SVN: r60379

21 years agoFix misc SPE instrinsic problems.
Jim Wilson [Sat, 21 Dec 2002 01:21:23 +0000 (01:21 +0000)]
Fix misc SPE instrinsic problems.

* config/rs6000/spe.h (__ev_subifw): Reverse arguments.
(__ev_subw, __ev_subiw): New.
(ev_mwlssf, ev_mwlsmf, ev_mwlssfa, ev_mwlsmfa, ev_mwlssfaaw,
ev_mwlsmfaaw, ev_mwlssfanw, ev_mwlsmfanw): Delete.

From-SVN: r60378

21 years agopa-linux.h (TARGET_HAS_STUBS_AND_ELF_SECTIONS): Delete define.
John David Anglin [Fri, 20 Dec 2002 23:24:39 +0000 (23:24 +0000)]
pa-linux.h (TARGET_HAS_STUBS_AND_ELF_SECTIONS): Delete define.

* pa-linux.h (TARGET_HAS_STUBS_AND_ELF_SECTIONS): Delete define.
* pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete define.
* pa.c (pa_function_ok_for_sibcall): Allow non indirect sibcalls on
TARGET_ELF32.  Add comment on sibcall issues for TARGET_64BIT.

From-SVN: r60377

21 years agoh8300-protos.h: Add prototypes for incdec_operand and eqne_operator.
Kazu Hirata [Fri, 20 Dec 2002 20:53:52 +0000 (20:53 +0000)]
h8300-protos.h: Add prototypes for incdec_operand and eqne_operator.

* config/h8300/h8300-protos.h: Add prototypes for
incdec_operand and eqne_operator.
* config/h8300/h8300.c (incdec_operand): New.
(eqne_operator): Likewise.
* config/h8300/h8300.h (CONST_OK_FOR_M): Likewise.
(CONST_OK_FOR_O): Likewise.
(CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_M and
CONST_OK_FOR_O.
* config/h8300/h8300.md (UNSPEC_INCDEC): New.
(addhi3_incdec): New.
(addsi3_incdec): Likewise.
(two peepholes): Likewise.

From-SVN: r60375

21 years agoh8300.c (dosize): Remove warnings.
Kazu Hirata [Fri, 20 Dec 2002 20:40:57 +0000 (20:40 +0000)]
h8300.c (dosize): Remove warnings.

* config/h8300/h8300.c (dosize): Remove warnings.
(print_operand): Likewise.

From-SVN: r60374

21 years agoalpha.c (decl_has_samegp): New.
Richard Henderson [Fri, 20 Dec 2002 19:42:41 +0000 (11:42 -0800)]
alpha.c (decl_has_samegp): New.

        * config/alpha/alpha.c (decl_has_samegp): New.
        (samegp_function_operand): Use it.  Rename from
        current_file_function_operand.
        (direct_call_operand): Handle -msmall-text via symbol->jump.
        (tls_symbolic_operand_1): Use T for tprel64, t for smaller tprel.
        (tls_symbolic_operand_type): Likewise.
        (alpha_encode_section_info): Likewise.  Handle -msmall-text.
        (alpha_function_ok_for_sibcall): Use decl_has_samegp.
        (alpha_end_function): Set symbol->jump for functions defined in
        the text section.
        * config/alpha/alpha-protos.h: Update.
        * config/alpha/alpha.h (MASK_SMALL_TEXT, TARGET_SMALL_TEXT): New.
        (TARGET_SWITCHES): Add -msmall-text and -mlarge-text.
        (PREDICATE_CODES): Update.
        * config/alpha/alpha.md (call patterns): Update for
        samegp_function_operand rename; use !samegp reloc if
        TARGET_EXPLICIT_RELOCS.
        * doc/invoke.text: Document -msmall-text and -mlarge-text.

From-SVN: r60373

21 years agore PR java/8955 (switch case statement causes gcj to throw segmentation fault)
Tom Tromey [Fri, 20 Dec 2002 19:25:46 +0000 (19:25 +0000)]
re PR java/8955 (switch case statement causes gcj to throw segmentation fault)

* jcf-write.c (generate_bytecode_insns) [SWITCH_EXPR]: Handle case
where minimum case value is Integer.MIN_VALUE.
Fixes PR java/8955.

From-SVN: r60372

21 years agons32k.md (movdi): Use "l" instead of "f" to match all registers capable of holding...
Ian Dall [Fri, 20 Dec 2002 18:14:18 +0000 (18:14 +0000)]
ns32k.md (movdi): Use "l" instead of "f" to match all registers capable of holding a double float.

        * config/ns32k/ns32k.md (movdi): Use "l" instead of "f" to match
        all registers capable of holding a double float.
        (*rcond): change name of "reverse branch" insns to
        something more meaningful.
        (*rbgt, *rblt, *rbge, *rble): Reverse branches to handle IEEE
        comparisons properly.
        (*ffs): Change operand 0 from write to read-modify-write.
        (*ffsssi2): Drop constraints from define_expand.

        * config/ns32k/ns32k.h (STORE_RATIO, STORE_BY_PIECES): Avoid using
        MOVE_RATIO as default for store operations.

        * config/ns32k/ns32k.h (enum reg_class, REG_CLASS_NAMES): Add
        LONG_REGS class.
        (CANNOT_CHANGE_MODE_CLASS): Can't subreg LONG_REGS.
        (GO_IF_LEGITIMATE_ADDRESS): Remove spurious abort().
        * config/ns32k/ns32k.c (regclass_map): Add LONG_REGS class.

        * config/ns32k/STATUS: New File
        * config/ns32k/NOTES: New file.

From-SVN: r60370

21 years agoChangeLog: Fix a typo.
Kazu Hirata [Fri, 20 Dec 2002 16:11:41 +0000 (16:11 +0000)]
ChangeLog: Fix a typo.

* ChangeLog: Fix a typo.
* class.c: Fix comment typos.
* cp-tree.h: Likewise.

From-SVN: r60368

21 years ago* gcc.c-torture/compile/20021220-1.c: New test.
Josef Zlomek [Fri, 20 Dec 2002 13:18:57 +0000 (13:18 +0000)]
* gcc.c-torture/compile/20021220-1.c: New test.

From-SVN: r60366

21 years agoTestcase for http://gcc.gnu.org/ml/gcc-patches/2002-12/msg01106.html "[PATCH]...
Josef Zlomek [Fri, 20 Dec 2002 13:15:14 +0000 (13:15 +0000)]
Testcase for gcc.gnu.org/ml/gcc-patches/2002-12/msg01106.html "[PATCH]...

Testcase for http://gcc.gnu.org/ml/gcc-patches/2002-12/msg01106.html
"[PATCH] fix bug in jump.c which caused SEGFAULT in loop.c"

From-SVN: r60365

21 years agoinvoke.texi: Document -mzarch, -mesa, -mcpu= and -march= option for S/390 and zSeries.
Hartmut Penner [Fri, 20 Dec 2002 13:02:42 +0000 (13:02 +0000)]
invoke.texi: Document -mzarch, -mesa, -mcpu= and -march= option for S/390 and zSeries.

        * doc/invoke.texi: Document -mzarch, -mesa, -mcpu= and -march=
option for S/390 and zSeries.
        * config/s390/s390.c (s390_cpu, s390_cpu_string, s390_arch,
        s390_arch_string): New variables.
        (override_options): Checking for options and setting of
        appropriate target_flags, cpu and arch flags.
        * config/s390/s390.h: (processor_type): New enum.
        (TARGET_SWITCHES): New switches -mesa/zarch.
        * config/s390/s390.md: New attribute 'cpu'.

From-SVN: r60364

21 years agoDaily bump.
GCC Administrator [Fri, 20 Dec 2002 08:18:11 +0000 (08:18 +0000)]
Daily bump.

From-SVN: r60363

21 years agoc-pretty-print.h: Fix comment typos.
Kazu Hirata [Fri, 20 Dec 2002 04:30:57 +0000 (04:30 +0000)]
c-pretty-print.h: Fix comment typos.

* c-pretty-print.h: Fix comment typos.
* integrate.c: Likewise.
* varasm.c: Likewise.
* config/c4x/c4x.h: Likewise.
* config/c4x/c4x.md: Likewise.
* config/fr30/fr30.md: Likewise.
* config/frv/frv.c: Likewise.
* config/h8300/h8300.c: Likewise.
* config/i386/i386.c: Likewise.
* config/i386/i386.h: Likewise.
* config/ia64/ia64.c: Likewise.
* config/ia64/ia64.h: Likewise.
* config/ip2k/ip2k.md: Likewise.
* config/m68hc11/m68hc11-crt0.S: Likewise.
* config/m68hc11/m68hc11.h: Likewise.
* config/m68hc11/m68hc11.md: Likewise.
* config/m68hc11/m68hc12.h: Likewise.
* config/mcore/mcore.md: Likewise.
* config/mips/mips.c: Likewise.
* config/mips/mips.md: Likewise.
* config/mmix/mmix-modes.def: Likewise.
* config/pa/pa.c: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/rs6000/rs6000.h: Likewise.
* config/rs6000/rs6000.md: Likewise.

From-SVN: r60354

21 years agoh8300.md (output_a_shift): Clean up the code to output shifts using rotation.
Kazu Hirata [Fri, 20 Dec 2002 04:05:14 +0000 (04:05 +0000)]
h8300.md (output_a_shift): Clean up the code to output shifts using rotation.

* config/h8300/h8300.md (output_a_shift): Clean up the code to
output shifts using rotation.

From-SVN: r60353

21 years agoMakefile.am (ordinary_java_source_files): Add org/xml/sax/helpers/NewInstance.java.
Anthony Green [Fri, 20 Dec 2002 03:49:20 +0000 (03:49 +0000)]
Makefile.am (ordinary_java_source_files): Add org/xml/sax/helpers/NewInstance.java.

2002-12-19  Anthony Green  <green@redhat.com>

* Makefile.am (ordinary_java_source_files): Add
org/xml/sax/helpers/NewInstance.java.
* Makefile.in: Rebuilt.
* org/xml/sax/package.html, org/xml/sax/ext/package.html,
org/xml/sax/helpers/package.html: New files.
* org/xml/sax/*: Upgrade to SAX 2.0.1 release from
http://www.saxproject.org.

From-SVN: r60350

21 years agonatResourceBundle.cc: Include ArrayIndexOutOfBoundsException.h.
Andrew Haley [Fri, 20 Dec 2002 02:06:21 +0000 (02:06 +0000)]
natResourceBundle.cc: Include ArrayIndexOutOfBoundsException.h.

2002-12-19  Andrew Haley  <aph@redhat.com>

* java/util/natResourceBundle.cc: Include
ArrayIndexOutOfBoundsException.h.
(getCallingClassLoader): Don't put upper bound on stack search.
Catch ArrayIndexOutOfBoundsException.

From-SVN: r60348

21 years ago* libtool-version: Increased `current'.
Tom Tromey [Fri, 20 Dec 2002 01:47:54 +0000 (01:47 +0000)]
* libtool-version: Increased `current'.

From-SVN: r60346

21 years ago* flow.c (allocate_reg_life_data): Reset REG_FREQ.
Zdenek Dvorak [Fri, 20 Dec 2002 01:18:43 +0000 (02:18 +0100)]
* flow.c (allocate_reg_life_data): Reset REG_FREQ.

From-SVN: r60344

21 years agoh8300.md (pushqi_h8300): Don't push the stack pointer.
Kazu Hirata [Fri, 20 Dec 2002 00:08:06 +0000 (00:08 +0000)]
h8300.md (pushqi_h8300): Don't push the stack pointer.

* config/h8300/h8300.md (pushqi_h8300): Don't push the stack
pointer.
(pushqi_h8300hs): Likewise.
(pushhi_h8300): Likewise.
(pushhi_h8300hs): Likewise.

From-SVN: r60343

21 years agoAdd support for darwin linker option -dynamic.
Devang Patel [Thu, 19 Dec 2002 23:46:49 +0000 (15:46 -0800)]
Add support for darwin linker option -dynamic.

From-SVN: r60341

21 years ago* sched-rgn.c (init_regions): Update comment.
J"orn Rennecke [Thu, 19 Dec 2002 23:45:40 +0000 (23:45 +0000)]
* sched-rgn.c (init_regions): Update comment.

From-SVN: r60340

21 years agors6000.md (define_attr type): Remove altivec.
David Edelsohn [Thu, 19 Dec 2002 23:04:55 +0000 (23:04 +0000)]
rs6000.md (define_attr type): Remove altivec.

        * config/rs6000/rs6000.md (define_attr type): Remove altivec.
        * config/rs6000/altivec.md (movv4si_internal): Set correct instruction
        attributes.
        (movv8hi_internal,movv16qi_internal,movv4sf_internal): Same.
        (get_vrsave_internal,set_vrsave_internal): Same.
        (altivec_vspltisb,altivec_vspltish,altivec_vspltisw): Same.
        (absv16qi2,absv8hi2,absv4si2,absv4sf2): Same
        (altivec_abss_v16qi,altivec_abss_v8hi,altivec_abss_v4si): Same.

From-SVN: r60339

21 years agoi386.c (ix86_handle_cdecl_attribute): Check for attributes incompatible with fastcall...
Casper S. Hornstrup [Thu, 19 Dec 2002 22:00:33 +0000 (22:00 +0000)]
i386.c (ix86_handle_cdecl_attribute): Check for attributes incompatible with fastcall attribute.

        * config/i386/i386.c (ix86_handle_cdecl_attribute): Check for
        attributes incompatible with fastcall attribute.
        (ix86_handle_regparm_attribute): Likewise.

        * config/i386/i386.c (ix86_comp_type_attributes): Check for mismatched
        fastcall types.

        * config/i386/cygwin.h (TARGET_OS_CPP_BUILTINS): Add fastcall
        attributes.
        (ASM_OUTPUT_LABELREF): Define as i386_pe_output_labelref.
        * config/i386/i386-protos.h (i386_pe_output_labelref): Declare.
        * config/i386/winnt.c (i386_pe_mark_dllimport). Add __imp_ prefix in
        i386_pe_output_labelref rather than here.
        (gen_fastcall_suffix): New function. Decorates a label name with the
        fastcall prefix (@) and the stdcall suffix.
        (i386_pe_encode_section_info): Call gen_fastcall_suffix() if a symbol
        has a fastcall attribute.
        (i386_pe_output_labelref): New function. Outputs a label reference.
        * config/i386/i386.c (ix86_attribute_table): Accept 'fastcall' as a
        valid attribute.
        (ix86_return_pops_args): Fastcall functions pop the stack.
        (init_cumulative_args): Reserve registers ECX and EDX if function has
        fastcall attribute.
        (function_arg): Use registers ECX and EDX if function has fastcall
        attribute.
        * config/i386/i386.h (CUMULATIVE_ARGS): Add fastcall attribute flag.
        (DLL_IMPORT_EXPORT_PREFIX): Redefine as '#'.
        (FASTCALL_PREFIX): Define as '@'.
        * config/i386/mingw32.h (TARGET_OS_CPP_BUILTINS): Add fastcall
        attributes.
        * doc/extend.texi: Add documentation of fastcall attribute.

        * testsuite/gcc.dg/i386-fastcall-1.c: New.

Co-Authored-By: Danny Smith <dannysmith@users.sourceforge.net>
Co-Authored-By: Eric Kohl <ekohl@rz-online.de>
From-SVN: r60337

21 years agoconfigure.in: FORBUILD when build!=host changed from ../$build-alias to ../build...
Nathanael Nerode [Thu, 19 Dec 2002 21:44:30 +0000 (21:44 +0000)]
configure.in: FORBUILD when build!=host changed from ../$build-alias to ../build-$build_alias...

* configure.in: FORBUILD when build!=host changed from
../$build-alias to ../build-$build_alias to match change made
in top directory.
* configure: Regenerated.

From-SVN: r60336

21 years agore PR rtl-optimization/8988 (gcc3.2 and 3.2.1 with -O2 and -mcpu=i386 generates code...
Eric Botcazou [Thu, 19 Dec 2002 20:47:12 +0000 (21:47 +0100)]
re PR rtl-optimization/8988 (gcc3.2 and 3.2.1 with -O2 and -mcpu=i386 generates code that segfaults)

PR optimization/8988
* loop.c (maybe_eliminate_biv): Kill REG_EQUAL notes mentioning
the biv when eliminating.

From-SVN: r60334

21 years agoThis was approved for 3.4 BIB branch.
Devang Patel [Thu, 19 Dec 2002 20:34:43 +0000 (12:34 -0800)]
This was approved for 3.4 BIB branch.

This was approved for 3.4 BIB branch. But since it is dead now, I am putting
this in mainline sources.

2002-12-19  Devang Patel  <dpatel@apple.com>
      * gcc.c (struct default_compiler): Recognizes input file name with
      .CPP extension as C++ source files
      * cp/lang-spec.h: Same
      * doc/invoke.texi:  Add documentation for .CPP support.

From-SVN: r60330

21 years agoFix date typo
Nathanael Nerode [Thu, 19 Dec 2002 20:27:49 +0000 (20:27 +0000)]
Fix date typo

From-SVN: r60327

21 years agoMakefile.tpl: Revert HJL's change.
Nathanael Nerode [Thu, 19 Dec 2002 20:23:50 +0000 (20:23 +0000)]
Makefile.tpl: Revert HJL's change.

* Makefile.tpl: Revert HJL's change.
* Makefile.in: Regenerated.
* configure.in: Put build_prefix before $(BUILD_SUBDIR) here, and
always.

From-SVN: r60326

21 years agore PR other/8553 (AltiVec vec_abs broken at -O0 with register keyword)
Aldy Hernandez [Thu, 19 Dec 2002 19:57:29 +0000 (19:57 +0000)]
re PR other/8553 (AltiVec vec_abs broken at -O0 with register keyword)

2002-12-19  Aldy Hernandez  <aldyh@redhat.com>

PR 8553

* config/rs6000/altivec.md ("absv8hi2"): Add & to clobbered
registers.
("absv16qi2"): Same.
("absv4si2"): Same.
("absv4sf2"): Same.
("altivec_abss_v16qi"): Same.
("altivec_abss_v8hi"): Same.
("altivec_abss_v4si"): Same.

From-SVN: r60324

21 years agos390.md ("*tsthiCCT", [...]): New insns.
Ulrich Weigand [Thu, 19 Dec 2002 19:55:12 +0000 (19:55 +0000)]
s390.md ("*tsthiCCT", [...]): New insns.

* config/s390/s390.md ("*tsthiCCT", "*tsthiCCT_cconly",
"*tstqiCCT", "*tstqiCCT_cconly"): New insns.

From-SVN: r60322

21 years agoadd PR# to last fix
Aldy Hernandez [Thu, 19 Dec 2002 19:49:27 +0000 (19:49 +0000)]
add PR# to last fix

From-SVN: r60321

21 years agonatClassLoader.cc (defineClass0): Removed erroneous comment.
Tom Tromey [Thu, 19 Dec 2002 19:31:55 +0000 (19:31 +0000)]
natClassLoader.cc (defineClass0): Removed erroneous comment.

* java/lang/natClassLoader.cc (defineClass0): Removed erroneous
comment.
* java/lang/ClassLoader.java (defineClass): Use chained
exception when rethrowing.
* defineclass.cc (handleClassBegin): Mark class as interpreted.
* java/lang/reflect/Modifier.java (INVISIBLE, INTERPRETED): New
constants.
* resolve.cc (_Jv_PrepareMissingMethods): New function.
(_Jv_PrepareClass): Use it.
* include/java-interp.h (_Jv_IsInterpretedClass): Rewrote.
(_Jv_InterpClass): _Jv_PrepareMissingMethods now friend.
* java/lang/Class.h (Class::getModifiers): Mask with ALL_FLAGS.
(Class): _Jv_PrepareMissingMethods now friend.
* java/lang/natClassLoader.cc (defineClass0): Use JvSynchronize.
Record `NULL' for system class loader.
(_Jv_RegisterInitiatingLoader): Use JvSynchronize.  Special case
system class loader.
(_Jv_FindClassInCache): Likewise.
(_Jv_UnregisterClass): Use JvSynchronize.  Free old loader info.
(_Jv_FindClass): Special case system class loader.
* java/lang/natClass.cc (_Jv_abstractMethodError): New function.
(_Jv_SetVTableEntries): Put _Jv_abstractMethodError into empty
vtable slots.
(_Jv_LayoutVTableMethods): Don't generate vtable slot for a method
in a final class.
(_getDeclaredMethod): Don't return synthetic methods.
(getDeclaredMethods): Likewise.
(_getMethod): Likewise.
(_getMethods): Likewise.

From-SVN: r60319

21 years agotweak
Jason Merrill [Thu, 19 Dec 2002 18:25:03 +0000 (13:25 -0500)]
tweak

From-SVN: r60316

21 years agoHandle anonymous unions at the tree level.
Jason Merrill [Thu, 19 Dec 2002 17:43:54 +0000 (12:43 -0500)]
Handle anonymous unions at the tree level.

        C++ ABI change: Mangle anonymous unions using the name of their
        first named field (by depth-first search).  Should not cause
        binary compatibility problems, though, as the compiler previously
        didn't emit anything for affected unions.
        * cp-tree.def (ALIAS_DECL): New tree code.
        * decl2.c (build_anon_union_vars): Build ALIAS_DECLs.  Return the
        first field, not the largest.
        (finish_anon_union): Don't mess with RTL.  Do set DECL_ASSEMBLER_NAME,
        push the decl, and write it out at namespace scope.
        * decl.c (lookup_name_real): See through an ALIAS_DECL.
        (pushdecl): Add namespace bindings for ALIAS_DECLs.
        * rtti.c (unemitted_tinfo_decl_p): Don't try to look at the name
        of a decl which doesn't have one.
        * typeck.c (build_class_member_access_expr): Don't recurse if
        we already have the type we want.

From-SVN: r60315

21 years agoHandle anonymous unions at the tree level.
Jason Merrill [Thu, 19 Dec 2002 17:16:26 +0000 (12:16 -0500)]
Handle anonymous unions at the tree level.

        C++ ABI change: Mangle anonymous unions using the name of their
        first named field (by depth-first search).  Should not cause
        binary compatibility problems, though, as the compiler previously
        didn't emit anything for affected unions.
        * cp-tree.def (ALIAS_DECL): New tree code.
        * decl2.c (build_anon_union_vars): Build ALIAS_DECLs.  Return the
        first field, not the largest.
        (finish_anon_union): Don't mess with RTL.  Do set DECL_ASSEMBLER_NAME,
        push the decl, and write it out at namespace scope.
        * decl.c (lookup_name_real): See through an ALIAS_DECL.
        (pushdecl): Add namespace bindings for ALIAS_DECLs.
        * rtti.c (unemitted_tinfo_decl_p): Don't try to look at the name
        of a decl which doesn't have one.
        * typeck.c (build_class_member_access_expr): Don't recurse if
        we already have the type we want.

From-SVN: r60314

21 years agore PR target/8340 (ICE on x86 inline asm w/ -fPIC)
Eric Botcazou [Thu, 19 Dec 2002 17:06:46 +0000 (18:06 +0100)]
re PR target/8340 (ICE on x86 inline asm w/ -fPIC)

PR target/8340
* stmt.c (expand_asm_operands): Produce an error when
the PIC register is clobbered.

From-SVN: r60313

21 years agoMakefile.in (OBJS): Add alloc-pool.o
Daniel Berlin [Thu, 19 Dec 2002 15:53:46 +0000 (15:53 +0000)]
Makefile.in (OBJS): Add alloc-pool.o

2002-12-18  Daniel Berlin  <dberlin@dberlin.org>

* Makefile.in (OBJS): Add alloc-pool.o
(alloc-pool.o): New object.

* alloc-pool.c: New file.
* alloc-pool.h: New file.

From-SVN: r60312

21 years agore PR c++/8099 (Friend classes and template specializations)
Kriang Lerdsuwanakij [Thu, 19 Dec 2002 15:11:29 +0000 (15:11 +0000)]
re PR c++/8099 (Friend classes and template specializations)

PR c++/8099
* friend.c (make_friend_class): Allow partial specialization
when declaration is not a template friend.

* g++.dg/template/friend9.C: New test.

From-SVN: r60308

21 years agore PR c++/3663 (G++ doesn't check access control during template instanation)
Kriang Lerdsuwanakij [Thu, 19 Dec 2002 14:45:19 +0000 (14:45 +0000)]
re PR c++/3663 (G++ doesn't check access control during template instanation)

PR c++/3663
* pt.c (lookup_template_class): Copy TREE_PRIVATE and
TREE_PROTECTED to created decl nodes.

* g++.dg/template/access7.C: New test.

From-SVN: r60307

21 years ago* intdoc.in: Fix typos.
Kazu Hirata [Thu, 19 Dec 2002 14:27:13 +0000 (14:27 +0000)]
* intdoc.in: Fix typos.

From-SVN: r60306

21 years agoMakefile.tpl, [...]: Substitute libstdcxx_incdir.
Andreas Schwab [Thu, 19 Dec 2002 11:01:21 +0000 (11:01 +0000)]
Makefile.tpl, [...]: Substitute libstdcxx_incdir.

* Makefile.tpl, configure.in: Substitute libstdcxx_incdir.
* Makefile.in: Regenerate.

From-SVN: r60303

21 years agodocumentation.html: Add link for debug.html.
Benjamin Kosnik [Thu, 19 Dec 2002 08:18:14 +0000 (08:18 +0000)]
documentation.html: Add link for debug.html.

2002-12-18  Benjamin Kosnik  <bkoz@redhat.com>

  * docs/html/documentation.html: Add link for debug.html.
* docs/html/debug.html: New.

From-SVN: r60302

21 years agoDaily bump.
GCC Administrator [Thu, 19 Dec 2002 08:18:11 +0000 (08:18 +0000)]
Daily bump.

From-SVN: r60301

21 years agoomit needless braces
Jason Merrill [Thu, 19 Dec 2002 07:29:28 +0000 (02:29 -0500)]
omit needless braces

From-SVN: r60293

21 years agoBigInteger.java (euclidInv): Make sure quot and rem are in canonical form after divide().
Raif Naffah [Thu, 19 Dec 2002 06:59:46 +0000 (06:59 +0000)]
BigInteger.java (euclidInv): Make sure quot and rem are in canonical form after divide().

2002-12-18  Raif Naffah  <raif@fl.net.au>

* java/math/BigInteger.java (euclidInv): Make sure quot and rem are in
canonical form after divide().
(modInverse): Likewise.

From-SVN: r60292

21 years agore PR libgcj/8945 (StringTokenizer)
Andrew Haley [Thu, 19 Dec 2002 06:43:12 +0000 (06:43 +0000)]
re PR libgcj/8945 (StringTokenizer)

2002-12-18  Andrew Haley  <aph@redhat.com>

* parse.y (patch_invoke): Force evaluation order when `check' is
set.  For PR libgcj/8945.

From-SVN: r60290

21 years agopr8945.java: New file.
Tom Tromey [Thu, 19 Dec 2002 06:40:03 +0000 (06:40 +0000)]
pr8945.java: New file.

* libjava.lang/pr8945.java: New file.
* libjava.lang/pr8945.out: New file.

From-SVN: r60286

21 years agogcc.c (validate_switches): Robustify against skipping past '\0'.
Loren James Rittle [Thu, 19 Dec 2002 05:22:53 +0000 (05:22 +0000)]
gcc.c (validate_switches): Robustify against skipping past '\0'.

2002-12-18  Loren James Rittle  <rittle@labs.mot.com>

* gcc.c (validate_switches): Robustify against skipping past '\0'.

From-SVN: r60283

21 years agoconfig.gcc: Set extra_objs in the generic Darwin rule, not in the machine-specific...
Geoffrey Keating [Thu, 19 Dec 2002 05:19:47 +0000 (05:19 +0000)]
config.gcc: Set extra_objs in the generic Darwin rule, not in the machine-specific rules.

* config.gcc: Set extra_objs in the generic Darwin rule,
not in the machine-specific rules.

From-SVN: r60282

21 years agoChangeLog: Follow spelling conventions.
Kazu Hirata [Thu, 19 Dec 2002 05:18:13 +0000 (05:18 +0000)]
ChangeLog: Follow spelling conventions.

* ChangeLog: Follow spelling conventions.
* ChangeLog.2: Likewise.
* ChangeLog.4: Likewise.
* ChangeLog.5: Likewise.
* cppexp.c: Likewise.
* df.c: Likewise.
* gcov.c: Likewise.
* gengtype.c: Likewise.
* reload1.c: Likewise.
* sched-rgn.c: Likewise.
* stmt.c: Likewise.
* stor-layout.c: Likewise.
* timevar.c: Likewise.
* toplev.c: Likewise.
* tree.h: Likewise.
* varasm.c: Likewise.
* config/fr30/fr30.md: Likewise.
* config/i386/i386.c: Likewise.
* config/ia64/ia64.c: Likewise.
* config/pa/pa.c: Likewise.

From-SVN: r60281

21 years ago* basic-block.h (flow_bb_inside_loop_p): Correct prototype.
Roger Sayle [Thu, 19 Dec 2002 02:59:15 +0000 (02:59 +0000)]
* basic-block.h (flow_bb_inside_loop_p): Correct prototype.

From-SVN: r60279

21 years agoclass.c (build_base_field): Do not set DECL_PACKED on the FIELD_DECL.
Mark Mitchell [Thu, 19 Dec 2002 02:31:50 +0000 (02:31 +0000)]
class.c (build_base_field): Do not set DECL_PACKED on the FIELD_DECL.

* class.c (build_base_field): Do not set DECL_PACKED on the
FIELD_DECL.

From-SVN: r60277

21 years agovector_capacity.cc (test03): Move ...
Kaveh R. Ghazi [Thu, 19 Dec 2002 01:54:59 +0000 (01:54 +0000)]
vector_capacity.cc (test03): Move ...

* testsuite/23_containers/vector_capacity.cc (test03): Move ...
* testsuite/23_containers/vector_resize.cc: ...here as a new file.
Pass in -lmalloc for irix6.
* testsuite/27_io/ios_base_storage.cc: Pass in -lmalloc for irix6.

From-SVN: r60276

21 years agoMakefile.tpl: Add @build_prefix@ before $(BUILD_SUBDIR).
H.J. Lu [Thu, 19 Dec 2002 00:51:33 +0000 (00:51 +0000)]
Makefile.tpl: Add @build_prefix@ before $(BUILD_SUBDIR).

2002-12-18  H.J. Lu <hjl@gnu.org>

* Makefile.tpl: Add @build_prefix@ before $(BUILD_SUBDIR).
* Makefile.in: Regenerated.

* configure.in (build_prefix): New. Substitute.

From-SVN: r60272

21 years agog77.texi: Fix typos.
Kazu Hirata [Thu, 19 Dec 2002 00:27:52 +0000 (00:27 +0000)]
g77.texi: Fix typos.

* g77.texi: Fix typos.
* intdoc.texi: Likewise.
* news.texi: Follow spelling conventions.

From-SVN: r60271

21 years agoaltivec.h (vec_cmplt macro): Reverse arguments in macro.
Aldy Hernandez [Wed, 18 Dec 2002 23:44:18 +0000 (23:44 +0000)]
altivec.h (vec_cmplt macro): Reverse arguments in macro.

2002-12-18  Aldy Hernandez  <aldyh@redhat.com>

* config/rs6000/altivec.h (vec_cmplt macro): Reverse arguments in
macro.
(vec_cmplt C++ functions): Reverse arguments.

From-SVN: r60269

21 years agot-rs6000: Move contents to t-fprules...
Geoffrey Keating [Wed, 18 Dec 2002 22:45:36 +0000 (22:45 +0000)]
t-rs6000: Move contents to t-fprules...

* config/rs6000/t-rs6000: Move contents to t-fprules,
add rules for dependencies of rs6000.o and to build rs6000-c.o
* config/rs6000/t-fprules: New file from t-rs6000.
* config/rs6000/t-beos: Remove soft-fp rules.
* config/rs6000/t-ppccomm: Likewise.
* config/rs6000/t-newas: Likewise.
* config/rs6000/t-rs6000-c-rule: Delete.
* config.gcc: Use t-fprules for rs6000/ ports when appropriate.
Use t-rs6000 for all rs6000/ ports instead of t-rs6000-c-rule.
Create generic Darwin rules.

From-SVN: r60265

21 years ago* gengenrtl.c (gencode): Delete unnecessary rtl_obstack declaration.
Geoffrey Keating [Wed, 18 Dec 2002 22:37:49 +0000 (22:37 +0000)]
* gengenrtl.c (gencode): Delete unnecessary rtl_obstack declaration.

From-SVN: r60264

21 years agonew test
Jason Merrill [Wed, 18 Dec 2002 20:00:28 +0000 (15:00 -0500)]
new test

From-SVN: r60263

21 years agom32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P and LIT_NAME_P.
Doug Evans [Wed, 18 Dec 2002 19:23:58 +0000 (19:23 +0000)]
m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P and LIT_NAME_P.

* m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
and LIT_NAME_P.
(move_src_operand): Remove compile-time warning.
* m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.

From-SVN: r60262

21 years agoMakefile.tpl: Don't let real targets depend on phony targets.
Nathanael Nerode [Wed, 18 Dec 2002 18:34:22 +0000 (18:34 +0000)]
Makefile.tpl: Don't let real targets depend on phony targets.

* Makefile.tpl: Don't let real targets depend on phony targets.
* Makefile.in: Regenerate.

From-SVN: r60261

21 years agore PR c++/8674 (ICE in cp_expr_size, at cp/cp-lang.c:307)
Jason Merrill [Wed, 18 Dec 2002 16:43:20 +0000 (11:43 -0500)]
re PR c++/8674 (ICE in cp_expr_size, at cp/cp-lang.c:307)

        PR c++/8674
        * call.c (build_over_call): Check specifically for TARGET_EXPR
        when eliding.

From-SVN: r60260

21 years agore PR c++/6255 (ICE with templatess)
Jason Merrill [Wed, 18 Dec 2002 16:42:23 +0000 (11:42 -0500)]
re PR c++/6255 (ICE with templatess)

        PR c++/6255
        * decl.c (lookup_name_real): Build a new TYPENAME_TYPE rather than
        modifying the old one.

From-SVN: r60259

21 years agonew test
Jason Merrill [Wed, 18 Dec 2002 16:41:11 +0000 (11:41 -0500)]
new test

From-SVN: r60258

21 years agodate_.c (G77_date_y2kbuggy_0): Declare G77_abort_0 noreturn.
Jason Merrill [Wed, 18 Dec 2002 16:37:14 +0000 (11:37 -0500)]
date_.c (G77_date_y2kbuggy_0): Declare G77_abort_0 noreturn.

        * libU77/date_.c (G77_date_y2kbuggy_0): Declare G77_abort_0 noreturn.
        * libU77/vxtidate_.c (G77_vxtidate_y2kbuggy_0): Likewise.

From-SVN: r60256

21 years agovterminate.cc (__verbose_terminate_handler): Send diagnostics to stderr.
Jason Merrill [Wed, 18 Dec 2002 16:31:35 +0000 (11:31 -0500)]
vterminate.cc (__verbose_terminate_handler): Send diagnostics to stderr.

        * src/vterminate.cc (__verbose_terminate_handler): Send
        diagnostics to stderr.

From-SVN: r60254

21 years agounwind-dw2-fde.c (frame_downheap): Split out from...
Jason Merrill [Wed, 18 Dec 2002 16:27:56 +0000 (11:27 -0500)]
unwind-dw2-fde.c (frame_downheap): Split out from...

        * unwind-dw2-fde.c (frame_downheap): Split out from...
        (frame_heapsort): Here.

From-SVN: r60253

21 years agoOnly invoke testsuite_flags if the libstdc++-v3 directory has been found.
Nick Clifton [Wed, 18 Dec 2002 15:50:40 +0000 (15:50 +0000)]
Only invoke testsuite_flags if the libstdc++-v3 directory has been found.

From-SVN: r60252

21 years agocp-tree.h (struct tree_srcloc): Use location_t.
Gabriel Dos Reis [Wed, 18 Dec 2002 13:07:42 +0000 (13:07 +0000)]
cp-tree.h (struct tree_srcloc): Use location_t.

        * cp-tree.h (struct tree_srcloc): Use location_t.
        (SOURCE_LOCUS): New.
        (SRCLOC_FILE, SRCLOC_LINE): Adjust.

From-SVN: r60247

21 years agoDaily bump.
GCC Administrator [Wed, 18 Dec 2002 08:17:54 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r60244

21 years agotree.c (make_node): Don't set TREE_TYPE on 's' class nodes.
Jason Merrill [Wed, 18 Dec 2002 06:36:51 +0000 (01:36 -0500)]
tree.c (make_node): Don't set TREE_TYPE on 's' class nodes.

        * tree.c (make_node): Don't set TREE_TYPE on 's' class nodes.
        (build1): Always set TREE_SIDE_EFFECTS on 's' class nodes.

From-SVN: r60237

21 years agodecl.c (finish_function): Also complain about no return in templates.
Jason Merrill [Wed, 18 Dec 2002 06:26:58 +0000 (01:26 -0500)]
decl.c (finish_function): Also complain about no return in templates.

        * decl.c (finish_function): Also complain about no return in
        templates.
        * semantics.c (finish_return_stmt): Also call check_return_expr in
        templates.
        * typeck.c (check_return_expr): In a template, just remember that we
        saw a return.

From-SVN: r60236

21 years ago* gcc.c (do_spec_1) ['W']: End any pending argument from the braces.
Jason Merrill [Wed, 18 Dec 2002 06:07:26 +0000 (01:07 -0500)]
* gcc.c (do_spec_1) ['W']: End any pending argument from the braces.

From-SVN: r60235

21 years agocalls.c (expand_call): Don't try to be clever about expanding the return slot address.
Jason Merrill [Wed, 18 Dec 2002 05:57:43 +0000 (00:57 -0500)]
calls.c (expand_call): Don't try to be clever about expanding the return slot address.

        * calls.c (expand_call): Don't try to be clever about expanding
        the return slot address.

From-SVN: r60234

21 years agoMakefile.tpl (do-info): Depend on maybe-all-texinfo, not all-texinfo.
Nathanael Nerode [Wed, 18 Dec 2002 05:28:41 +0000 (05:28 +0000)]
Makefile.tpl (do-info): Depend on maybe-all-texinfo, not all-texinfo.

2002-12-18  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.tpl (do-info): Depend on maybe-all-texinfo, not all-texinfo.
* Makefile.in: Regenerate.

From-SVN: r60233

21 years agolinux.h (NO_IMPLICIT_EXTERN_C, [...]): Define.
Kaz Kojima [Wed, 18 Dec 2002 02:26:03 +0000 (02:26 +0000)]
linux.h (NO_IMPLICIT_EXTERN_C, [...]): Define.

* config/sh/linux.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC):
Define.

From-SVN: r60231

21 years agoconfigure.in: Define with_target_subdir and with_build_subdir variables in config...
Ulrich Weigand [Wed, 18 Dec 2002 01:18:58 +0000 (01:18 +0000)]
configure.in: Define with_target_subdir and with_build_subdir variables in config-ml.in...

* configure.in: Define with_target_subdir and with_build_subdir
variables in config-ml.in AC_OUTPUT call.
* configure: Regenerate.

From-SVN: r60230

21 years agocalls.c (expand_call): Handle CALL_EXPR_HAS_RETURN_SLOT_ADDR with special struct...
Jason Merrill [Tue, 17 Dec 2002 21:29:29 +0000 (16:29 -0500)]
calls.c (expand_call): Handle CALL_EXPR_HAS_RETURN_SLOT_ADDR with special struct-return ABIs.

        * calls.c (expand_call): Handle CALL_EXPR_HAS_RETURN_SLOT_ADDR
        with special struct-return ABIs.

cp/
        * semantics.c (simplify_aggr_init_exprs_r): Don't change the type
        of the CALL_EXPR.

From-SVN: r60223

21 years ago* genmultilib: Use 'cd ./foo'.
Jason Merrill [Tue, 17 Dec 2002 21:17:35 +0000 (16:17 -0500)]
* genmultilib: Use 'cd ./foo'.

From-SVN: r60222