platform/upstream/gcc.git
23 years agoexpr.c (emit_move_insn): Add REG_EQUAL note when constant loaded into register was...
Alexandre Oliva [Sat, 27 Jan 2001 20:24:34 +0000 (20:24 +0000)]
expr.c (emit_move_insn): Add REG_EQUAL note when constant loaded into register was forced into memory.

* expr.c (emit_move_insn): Add REG_EQUAL note when constant loaded
into register was forced into memory.

From-SVN: r39301

23 years agoltcf-cxx.sh (ac_cv_prog_cc_pic_works, [...]): Don't unset, it's non-portable and...
Michael Sokolov [Sat, 27 Jan 2001 19:51:13 +0000 (19:51 +0000)]
ltcf-cxx.sh (ac_cv_prog_cc_pic_works, [...]): Don't unset, it's non-portable and no longer necessary, set to empty instead.

* ltcf-cxx.sh (ac_cv_prog_cc_pic_works, ac_cv_prog_cc_static_works):
Don't unset, it's non-portable and no longer necessary, set to empty
instead.

From-SVN: r39300

23 years ago* ltconfig: Shell portability fix for the tagname validity check.
Michael Sokolov [Sat, 27 Jan 2001 19:48:46 +0000 (19:48 +0000)]
* ltconfig: Shell portability fix for the tagname validity check.

From-SVN: r39299

23 years agojni.cc (_Jv_JNIFunctions): Added comment for each entry in native interface structure.
Tom Tromey [Sat, 27 Jan 2001 19:30:31 +0000 (19:30 +0000)]
jni.cc (_Jv_JNIFunctions): Added comment for each entry in native interface structure.

* jni.cc (_Jv_JNIFunctions): Added comment for each entry in
native interface structure.

From-SVN: r39298

23 years agoltcf-c.sh (ld_shlibs): Disable on unknown CPU types.
Alexandre Oliva [Sat, 27 Jan 2001 19:12:14 +0000 (19:12 +0000)]
ltcf-c.sh (ld_shlibs): Disable on unknown CPU types.

* ltcf-c.sh (ld_shlibs) [aix5*]: Disable on unknown CPU types.
* ltcf-cxx.sh, ltcf-gcj.sh: Likewise.

From-SVN: r39297

23 years agopure.cc (writestr): Just use cstdio and std::fputs.
Benjamin Kosnik [Sat, 27 Jan 2001 19:00:09 +0000 (19:00 +0000)]
pure.cc (writestr): Just use cstdio and std::fputs.

2001-01-26  Benjamin Kosnik  <bkoz@kredhat.com>

* libsupc++/pure.cc (writestr): Just use cstdio and std::fputs.

From-SVN: r39296

23 years ago* Makefile.in: Remove uses of + before $(MAKE).
Alexandre Oliva [Sat, 27 Jan 2001 18:47:16 +0000 (18:47 +0000)]
* Makefile.in: Remove uses of + before $(MAKE).

From-SVN: r39295

23 years agoDaily bump.
Jeff Law [Sat, 27 Jan 2001 08:45:08 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r39294

23 years agoObjectInputStream.java (read): AND byte with 0xff to make result unsigned.
Bryce McKinlay [Sat, 27 Jan 2001 06:04:29 +0000 (06:04 +0000)]
ObjectInputStream.java (read): AND byte with 0xff to make result unsigned.

* java/io/ObjectInputStream.java (read): AND byte with 0xff to make
result unsigned.
(read (byte[], int, int)): Only call readNextBlock() if the block
buffer would actually be overrun. Increment blockDataPosition.
(callReadMethod): Propagate exceptions from invocation target.
* java/io/ObjectOutputStream.java (callWriteMethod): Propagate
exceptions from invocation target.

From-SVN: r39293

23 years agoinserters_extractors.cc: Remove explicit reference to 'testsuite/'.
Loren J. Rittle [Fri, 26 Jan 2001 23:31:57 +0000 (23:31 +0000)]
inserters_extractors.cc: Remove explicit reference to 'testsuite/'.

2001-01-25  Loren J. Rittle  <ljrittle@acm.org>

        * testsuite/21_strings/inserters_extractors.cc: Remove
        explicit reference to 'testsuite/'.

From-SVN: r39292

23 years agostmt.c (cost_table): Remove.
Richard Henderson [Fri, 26 Jan 2001 23:24:38 +0000 (15:24 -0800)]
stmt.c (cost_table): Remove.

        * stmt.c (cost_table): Remove.
        (COST_TABLE, cost_table_initialized): New.
        (estimate_case_costs): Use the later instead of the former.
        (balance_case_nodes): Likewise.

From-SVN: r39291

23 years agoatomicity.h: Remove tricky .subsetion bits.
Richard Henderson [Fri, 26 Jan 2001 23:07:38 +0000 (15:07 -0800)]
atomicity.h: Remove tricky .subsetion bits.

2001-01-25  Richard Henderson  <rth@redhat.com>

* config/cpu/alpha/bits/atomicity.h: Remove tricky .subsetion
bits. Fixes Tru64 build issues.

From-SVN: r39290

23 years agojni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external to internal represen...
Tom Tromey [Fri, 26 Jan 2001 23:00:19 +0000 (23:00 +0000)]
jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external to internal representation.

* jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external
to internal representation.
(_Jv_JNI_GetAnyFieldID): Likewise.  Also, only use
_Jv_FindClassFromSignature.

From-SVN: r39289

23 years ago* ltcf-cxx.sh: Use parentheses around eval $ac_compile.
Michael Sokolov [Fri, 26 Jan 2001 22:55:12 +0000 (22:55 +0000)]
* ltcf-cxx.sh: Use parentheses around eval $ac_compile.

From-SVN: r39288

23 years ago* libjava.jni/martin.c (Java_martin_myNative): Flush stdout.
Tom Tromey [Fri, 26 Jan 2001 22:52:19 +0000 (22:52 +0000)]
* libjava.jni/martin.c (Java_martin_myNative): Flush stdout.

From-SVN: r39287

23 years agomartin.out: New file.
Tom Tromey [Fri, 26 Jan 2001 22:41:41 +0000 (22:41 +0000)]
martin.out: New file.

* libjava.jni/martin.out: New file.
* libjava.jni/martin.c: New file.
* libjava.jni/martin.java: New file.

From-SVN: r39286

23 years agoalias.c (objects_must_conflict_p): Read-only slots may not conflict despite having...
Richard Henderson [Fri, 26 Jan 2001 22:32:51 +0000 (14:32 -0800)]
alias.c (objects_must_conflict_p): Read-only slots may not conflict despite having the same type.

        * alias.c (objects_must_conflict_p): Read-only slots may not
        conflict despite having the same type.

From-SVN: r39285

23 years agoloop.c (loop_giv_reduce_benefit): Copy mode size into int variable.
Michael Hayes [Fri, 26 Jan 2001 22:06:45 +0000 (22:06 +0000)]
loop.c (loop_giv_reduce_benefit): Copy mode size into int variable.

* loop.c (loop_giv_reduce_benefit): Copy mode size into
int variable.
(check_ext_dependant_givs): Initialise u_start_val and
u_end_val.
(load_mems): Make last_max_reg unsigned.
(try_swap_copy_prop): Use INSN_P and initialise set.

From-SVN: r39284

23 years agonatSystem.cc (getSystemTimeZone): Only use tm_gmtoff and timezone if they are availab...
Warren Levy [Fri, 26 Jan 2001 21:57:08 +0000 (21:57 +0000)]
natSystem.cc (getSystemTimeZone): Only use tm_gmtoff and timezone if they are available on the system.

* java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff
and timezone if they are available on the system.

From-SVN: r39283

23 years ago* README.AVR : Removed.
Denis Chertykov [Fri, 26 Jan 2001 20:40:32 +0000 (23:40 +0300)]
* README.AVR : Removed.

From-SVN: r39282

23 years ago* README.AVR : Removed.
Denis Chertykov [Fri, 26 Jan 2001 20:35:04 +0000 (23:35 +0300)]
* README.AVR : Removed.

From-SVN: r39281

23 years agopa-64.h (text_section): Remove declaration.
Jeffrey A Law [Fri, 26 Jan 2001 18:37:26 +0000 (18:37 +0000)]
pa-64.h (text_section): Remove declaration.

        * pa-64.h (text_section): Remove declaration.

        * pa.md (return_internal): Remove mode on PIC register use.

From-SVN: r39280

23 years ago* configure.in: Allow libgcj to be built on Sparc Solaris.
Tom Tromey [Fri, 26 Jan 2001 18:10:07 +0000 (18:10 +0000)]
* configure.in: Allow libgcj to be built on Sparc Solaris.

From-SVN: r39279

23 years agoDaily bump.
Jeff Law [Fri, 26 Jan 2001 08:45:09 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r39278

23 years agoacinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Bourne shell portability bug (use ${MAKE-make...
Michael Sokolov [Fri, 26 Jan 2001 06:19:52 +0000 (06:19 +0000)]
acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Bourne shell portability bug (use ${MAKE-make}, not ${MAKE:-make}).

* acinclude.m4 (GLIBCPP_CHECK_GNU_MAKE): Bourne shell portability bug
(use ${MAKE-make}, not ${MAKE:-make}).
* aclocal.m4, configure: Regenerate.

From-SVN: r39277

23 years agoios.cc: Remove accidental inclusion of <stdio.h> in last checkin.
Mark Mitchell [Fri, 26 Jan 2001 02:25:13 +0000 (02:25 +0000)]
ios.cc: Remove accidental inclusion of <stdio.h> in last checkin.

* src/ios.cc: Remove accidental inclusion of <stdio.h> in last
checkin.

From-SVN: r39276

23 years agoMakefile.am (sources): Add globals.cc.
Mark Mitchell [Thu, 25 Jan 2001 22:39:29 +0000 (22:39 +0000)]
Makefile.am (sources): Add globals.cc.

* src/Makefile.am (sources): Add globals.cc.
* src/Makefile.in: Regenerated.
* src/globals.cc: New file.
* src/ios.cc (cin): Don't define here, just declare extern.
(cout): Likewise.
(cerr): Likewise.
(clog): Likewise.
(wcin): Likewise.
(wcout): Likewise.
(wcerr): Likewise.
(wclog): Likewise.

From-SVN: r39275

23 years agoChangeLog (2001-01-21): Fixed typo.
Alexandre Petit-Bianco [Thu, 25 Jan 2001 22:25:22 +0000 (14:25 -0800)]
ChangeLog (2001-01-21): Fixed typo.

2001-01-25  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* ChangeLog (2001-01-21): Fixed typo.
* class.c (layout_class_method): Code accounting for WFLed
method DECL_NAMEs deleted.
* constant.c (find_methodref_index): Likewise.
* decl.c (lang_mark_tree): Mark `wfl' field in struct lang_decl.
* java-tree.h (DECL_FUNCTION_WFL): New macro.
(struct lang_decl): New field `wfl'.
(java_get_real_method_name): Prototype deleted.
* mangle.c (mangle_method_decl): Code accounting for WFLed
method DECL_NAMEs deleted.
* parse.h (GET_METHOD_NAME): Macro deleted.
* parse.y (reset_method_name): Deleted.
(method_header): Set DECL_FUNCTION_WFL.
(check_abstract_method_header): Code accounting for WFLed method
DECL_NAMEs deleted.
(java_get_real_method_name): Deleted.
(check_method_redefinition): Code accounting for WFLed method
DECL_NAMEs deleted. Use DECL_FUNCTION_WFL.
(java_check_regular_methods): Likewise.
(java_check_abstract_methods): Likewise.
(java_expand_classes): Don't call `reset_method_name.'
(search_applicable_method_list): Use DECL_NAMEs instead of
GET_METHOD_NAME.
* typeck.c (lookup_do): Code accounting for WFLed method
DECL_NAMEs deleted.

(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01954.html)

From-SVN: r39274

23 years agotm.texi (DATA_ALIGNMENT, [...]): fix typos.
Lars Brinkhoff [Thu, 25 Jan 2001 22:18:16 +0000 (22:18 +0000)]
tm.texi (DATA_ALIGNMENT, [...]): fix typos.

* tm.texi (DATA_ALIGNMENT, LOCAL_ALIGNMENT, ASM_OPEN_PAREN,
ASM_CLOSE_PAREN): fix typos.

From-SVN: r39273

23 years agoacconfig.h: Define `const' to the empty string if neither __STDC__ nor __cplusplus...
Mark Mitchell [Thu, 25 Jan 2001 21:56:21 +0000 (21:56 +0000)]
acconfig.h: Define `const' to the empty string if neither __STDC__ nor __cplusplus is defined.

* acconfig.h: Define `const' to the empty string if neither
__STDC__ nor __cplusplus is defined.
* config.in: Regenerated.

From-SVN: r39272

23 years agoconfig.gcc (rs6000-ibm-aix[5-9]*): Change to aix51.h.
David Edelsohn [Thu, 25 Jan 2001 20:12:30 +0000 (20:12 +0000)]
config.gcc (rs6000-ibm-aix[5-9]*): Change to aix51.h.

* config.gcc (rs6000-ibm-aix[5-9]*): Change to aix51.h.
* collect2.c (main): Delete importf.  Add ".obj" file extension.
(GCC_CHECK_HDR): Handle AIX V5 new magic number.
(aix_std_libs): Add additional AIX libraries to skip.
* config/rs6000/aix.h (MY_ISCOFF): Add AIX V5 new magic number.
* config/rs6000/aix51.h: New file.

From-SVN: r39271

23 years ago- Add AIX 5 support following AIX 4.
David Edelsohn [Thu, 25 Jan 2001 19:11:34 +0000 (19:11 +0000)]
- Add AIX 5 support following AIX 4.

From-SVN: r39270

23 years ago* java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.
Tom Tromey [Thu, 25 Jan 2001 19:07:18 +0000 (19:07 +0000)]
* java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.

From-SVN: r39269

23 years ago20000320-1.c (main): For MIPS...
Jeffrey Oldham [Thu, 25 Jan 2001 17:58:26 +0000 (17:58 +0000)]
20000320-1.c (main): For MIPS...

2001-01-25  Jeffrey Oldham  <oldham@codesourcery.com>

* gcc.c-torture/execute/ieee/20000320-1.c (main): For MIPS, change
floating point number rounding mode to round to the nearest
representable mode.

From-SVN: r39268

23 years agostd_iterator.h: Do not include stl_relops.h.
Phil Edwards [Thu, 25 Jan 2001 15:35:10 +0000 (15:35 +0000)]
std_iterator.h: Do not include stl_relops.h.

2001-01-25  Phil Edwards  <pme@sources.redhat.com>

* include/bits/std_iterator.h:  Do not include stl_relops.h.
* include/bits/std_numeric.h:  Ditto.
* include/bits/stl_algobase.h:  Ditto.
* include/bits/stl_relops.h:  Add comment warning about problems.

From-SVN: r39267

23 years ago* lex.c (java_read_char): Check for EOF from getc first.
Richard Earnshaw [Thu, 25 Jan 2001 10:35:09 +0000 (10:35 +0000)]
* lex.c (java_read_char): Check for EOF from getc first.

From-SVN: r39261

23 years agoloop.c (loop_call_insn_emit_before, [...]): New.
Michael Hayes [Thu, 25 Jan 2001 09:28:55 +0000 (09:28 +0000)]
loop.c (loop_call_insn_emit_before, [...]): New.

* loop.c (loop_call_insn_emit_before, loop_call_insn_hoist): New.
(loop_insn_emit_before): No longer static.
(move_movables): Replace emit_insn_after with loop_insn_emit_after.
(loop_givs_rescan, load_mems): Likewise.
(check_dbra_loop): Replace emit_insn_before with loop_insn_emit_before.
(maybe_eliminate_biv_1):
(move_movables): Replace emit_call_insn_before with
loop_call_insn_hoist.
* loop.h (loop_insn_emit_before): Add.
* unroll.c (copy_loop_body): Replace emit_insn_before with
loop_insn_emit_before.

From-SVN: r39260

23 years agoDaily bump.
Jeff Law [Thu, 25 Jan 2001 08:45:17 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r39259

23 years ago* diagnostic.c (fatal): Request preprocessed source.
Neil Booth [Thu, 25 Jan 2001 07:39:50 +0000 (07:39 +0000)]
* diagnostic.c (fatal): Request preprocessed source.

From-SVN: r39258

23 years agomangle.c (write_mangled_name, [...]): Mangle overloaded operators even in "C" linkage.
Jakub Jelinek [Thu, 25 Jan 2001 07:35:21 +0000 (08:35 +0100)]
mangle.c (write_mangled_name, [...]): Mangle overloaded operators even in "C" linkage.

* mangle.c (write_mangled_name, write_encoding): Mangle overloaded
operators even in "C" linkage.
* method.c (set_mangled_name_for_decl): Likewise.
* decl.c (grokfndecl): Call set_mangled_name_for_decl even for
overloaded operators in "C" linkage.

* g++.old-deja/g++.other/mangle2.C: New test.

From-SVN: r39257

23 years agoalarm_.c: Separate the #ifdef KR_headers logic from the G77_alarm_0 function definition.
Michael Sokolov [Thu, 25 Jan 2001 05:11:38 +0000 (05:11 +0000)]
alarm_.c: Separate the #ifdef KR_headers logic from the G77_alarm_0 function definition.

* libU77/alarm_.c: Separate the #ifdef KR_headers logic from the
G77_alarm_0 function definition.  Check for SIG_ERR and provide our own
if missing.

From-SVN: r39256

23 years ago*.cc: Remove explicit reference to 'testsuite/' in testcases.
Gabriel Dos Reis [Thu, 25 Jan 2001 04:09:22 +0000 (04:09 +0000)]
*.cc: Remove explicit reference to 'testsuite/' in testcases.

       * testsuite/27_io/*.cc: Remove explicit reference to 'testsuite/'
       in testcases.  Prepare for the DejaGnu based framework.
       * mkcheck.in: Adjust call to tests_flags.  Don't mmkdir testsuite
       directory -- it is now mkcheck working directory.
       * tests_flags.in: Remove reference to $(top_srcdir).  Use
       ${SRC_DIR} instead.
       * Makefile.am (check, check-install): Change mkcheck invocation
       logic.
       * Makefile.in: Regenerate.

From-SVN: r39255

23 years agoc-decl.c (duplicate_decls): If different_binding_level is nonzero...
J"orn Rennecke [Thu, 25 Jan 2001 02:03:14 +0000 (02:03 +0000)]
c-decl.c (duplicate_decls): If different_binding_level is nonzero...

* c-decl.c (duplicate_decls): If different_binding_level is nonzero,
olddecl has argument types and newdecl has none, use the argument
types from olddecl.

From-SVN: r39254

23 years agodwarf2out.c (prefix_of): New function.
Ulrich Drepper [Thu, 25 Jan 2001 00:18:16 +0000 (00:18 +0000)]
dwarf2out.c (prefix_of): New function.

* dwarf2out.c (prefix_of): New function.  Determine longest common
prefix of the two arguments.  The units are whole path components.
(output_file_names): When adding a new directory find the one entry
with the longest common prefix already in the list.  Artificially
generate entry if there is none for this prefix.
Fix test to check whether the zeroth directory entry is used.
: ----------------------------------------------------------------------

From-SVN: r39253

23 years agoNew test.
Richard Henderson [Thu, 25 Jan 2001 00:16:42 +0000 (16:16 -0800)]
New test.

From-SVN: r39252

23 years agoreload1.c (reload_reg_free_for_value_p): New parameter start_regno.
J"orn Rennecke [Thu, 25 Jan 2001 00:02:49 +0000 (00:02 +0000)]
reload1.c (reload_reg_free_for_value_p): New parameter start_regno.

* reload1.c (reload_reg_free_for_value_p): New parameter start_regno.
Changed all callers.  Take it into account when deciding if a
previously loaded value matches.

From-SVN: r39251

23 years agoreload.c (find_reloads_subreg_address): Fail the substitution if the resulting addres...
Richard Henderson [Wed, 24 Jan 2001 23:50:56 +0000 (15:50 -0800)]
reload.c (find_reloads_subreg_address): Fail the substitution if the resulting address is insufficiently aligned.

        * reload.c (find_reloads_subreg_address): Fail the substitution
        if the resulting address is insufficiently aligned.

From-SVN: r39250

23 years agoMakefile.in: Explicitly generate a.out for check.
David Billinghurst [Wed, 24 Jan 2001 22:24:48 +0000 (22:24 +0000)]
Makefile.in: Explicitly generate a.out for check.

2001-01-24  David Billinghurst <David.Billinghurst@riotinto.com>

* libU77/Makefile.in:  Explicitly generate a.out for check.

From-SVN: r39249

23 years agoFix obvious bug in previous commit
DJ Delorie [Wed, 24 Jan 2001 21:43:11 +0000 (16:43 -0500)]
Fix obvious bug in previous commit

From-SVN: r39248

23 years agocombine.c (combine_simplify_rtx): If the modes are all VOIDmode, check the original...
DJ Delorie [Wed, 24 Jan 2001 21:10:06 +0000 (16:10 -0500)]
combine.c (combine_simplify_rtx): If the modes are all VOIDmode, check the original operand's mode also.

* combine.c (combine_simplify_rtx): If the modes are all VOIDmode,
check the original operand's mode also.
* simplify-rtx.c (simplify_ternary_operation): Ditto.

From-SVN: r39247

23 years agoc-parse.in (cast_expr): Move compound literals from here ...
Joseph Myers [Wed, 24 Jan 2001 20:41:49 +0000 (20:41 +0000)]
c-parse.in (cast_expr): Move compound literals from here ...

* c-parse.in (cast_expr): Move compound literals from here ...
(primary): ... to here.  Use standard terminology "compound
literal" instead of "constructor expression".

testsuite:
* gcc.c-torture/compile/20010124-1.c: New test.

From-SVN: r39246

23 years agoltmain.sh (TAG disable-shared, [...]): Make sure we keep at least one of build_libtoo...
Alexandre Oliva [Wed, 24 Jan 2001 20:08:50 +0000 (20:08 +0000)]
ltmain.sh (TAG disable-shared, [...]): Make sure we keep at least one of build_libtool_libs or build_old_libs set to yes.

* ltmain.sh (TAG disable-shared, TAG disable-static): Make sure we
keep at least one of build_libtool_libs or build_old_libs set to
yes.

From-SVN: r39245

23 years agotexi2pod.pl: Handle "\,".
Joseph Myers [Wed, 24 Jan 2001 19:47:47 +0000 (19:47 +0000)]
texi2pod.pl: Handle "\,".

contrib:
* texi2pod.pl: Handle "\,".

gcc:
* gcc.1, cpp.1: Regenerate.

From-SVN: r39244

23 years agoatomicity.h (__compare_and_swap): Remove.
Mark Mitchell [Wed, 24 Jan 2001 19:19:26 +0000 (19:19 +0000)]
atomicity.h (__compare_and_swap): Remove.

* config/os/aix/bits/atomicity.h (__compare_and_swap): Remove.
(__always_swap): Likewise.

From-SVN: r39243

23 years agocalls.c (emit_library_call_value_1): Memory slot for pass-by-reference argument shoul...
Alexandre Oliva [Wed, 24 Jan 2001 19:00:58 +0000 (19:00 +0000)]
calls.c (emit_library_call_value_1): Memory slot for pass-by-reference argument should have the mode of the argument...

* calls.c (emit_library_call_value_1): Memory slot for
pass-by-reference argument should have the mode of the argument,
not of the pointer to it.

From-SVN: r39242

23 years agogcc.texi (G++ and GCC): Mention gcj manual.
Tom Tromey [Wed, 24 Jan 2001 18:47:35 +0000 (18:47 +0000)]
gcc.texi (G++ and GCC): Mention gcj manual.

* gcc.texi (G++ and GCC): Mention gcj manual.
(Standards): Link to section of manual mentioning gcj/Java
compatibility.

From-SVN: r39241

23 years agocppfiles.c (_cpp_read_file): Add to dependencies if requested.
Jakub Jelinek [Wed, 24 Jan 2001 18:44:40 +0000 (19:44 +0100)]
cppfiles.c (_cpp_read_file): Add to dependencies if requested.

* cppfiles.c (_cpp_read_file): Add to dependencies if requested.
* cppinit.c (cpp_start_read): Remove deps_add_dep call.
* tradcpp.c (main): Add -imacros or -include'd dependencies
for -M*.
* cpp.texi (-M, -MM): Document -M -include behaviour.

From-SVN: r39240

23 years ago* config/i386/xm-i386.h: Make __i386__ a boolean macro.
Roger Collins [Wed, 24 Jan 2001 18:40:46 +0000 (18:40 +0000)]
* config/i386/xm-i386.h: Make __i386__ a boolean macro.

From-SVN: r39239

23 years agoMakefile.in: Rebuilt.
Tom Tromey [Wed, 24 Jan 2001 17:43:25 +0000 (17:43 +0000)]
Makefile.in: Rebuilt.

* Makefile.in: Rebuilt.
* Makefile.am (c_source_files): Added sf_fabs.c.
* java/lang/sf_fabs.c: New file.

From-SVN: r39238

23 years agoabi64.h (RETURN_IN_MEMORY): Always take into account whether registers are 32 bits...
Will Cohen [Wed, 24 Jan 2001 14:01:26 +0000 (14:01 +0000)]
abi64.h (RETURN_IN_MEMORY): Always take into account whether registers are 32 bits or 64 bits in size.

2001-01-24  Will Cohen  <wcohen@redhat.com>

* config/mips/abi64.h (RETURN_IN_MEMORY): Always take into account
whether registers are 32 bits or 64 bits in size.

From-SVN: r39237

23 years agom32r.h (PREDICATE_CODES): Remove m32r_not_same_reg.
Ben Elliston [Wed, 24 Jan 2001 12:47:45 +0000 (12:47 +0000)]
m32r.h (PREDICATE_CODES): Remove m32r_not_same_reg.

2001-01-24  Ben Elliston  <bje@redhat.com>

* config/m32r/m32r.h (PREDICATE_CODES): Remove m32r_not_same_reg.

From-SVN: r39236

23 years agomissed in
Nathan Sidwell [Wed, 24 Jan 2001 11:31:40 +0000 (11:31 +0000)]
missed in

missed in
        * call.c (add_builtin_candidate): Quote std properly, from
        previous change.
commit

From-SVN: r39235

23 years agopt.c (tsubst_decl): Remove IN_DECL parameter.
Nathan Sidwell [Wed, 24 Jan 2001 11:25:28 +0000 (11:25 +0000)]
pt.c (tsubst_decl): Remove IN_DECL parameter.

cp:
* pt.c (tsubst_decl): Remove IN_DECL parameter.
(tsubst_arg_types): Check parameter is not void.
(tsubst): Adjust tsubst_decl call.
testsuite:
* g++.old-deja/g++.pt/spec38.C: New test.

From-SVN: r39234

23 years agocall.c (add_builtin_candidate): Quote std properly, from previous change.
Nathan Sidwell [Wed, 24 Jan 2001 11:21:29 +0000 (11:21 +0000)]
call.c (add_builtin_candidate): Quote std properly, from previous change.

cp:
* call.c (add_builtin_candidate): Quote std properly, from
previous change.

From-SVN: r39233

23 years agoalpha.md (builtin_longjmp_internal): New.
Richard Henderson [Wed, 24 Jan 2001 09:00:02 +0000 (01:00 -0800)]
alpha.md (builtin_longjmp_internal): New.

        * config/alpha/alpha.md (builtin_longjmp_internal): New.
        (builtin_longjmp): Use it instead of emit_indirect_jump.

From-SVN: r39232

23 years agoDaily bump.
Jeff Law [Wed, 24 Jan 2001 08:45:12 +0000 (01:45 -0700)]
Daily bump.

From-SVN: r39231

23 years agoclass.c (layout_class): Don't lay the superclass out if it's already being laid out.
Alexandre Petit-Bianco [Wed, 24 Jan 2001 08:08:36 +0000 (08:08 +0000)]
class.c (layout_class): Don't lay the superclass out if it's already being laid out.

2001-01-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* class.c (layout_class): Don't lay the superclass out if it's
already being laid out.
* jcf-parse.c (handle_innerclass_attribute): New function.
(HANDLE_INNERCLASSES_ATTRIBUTE): Invoke
handle_innerclasses_attribute.
(jcf_parse): Don't load an innerclasses if it's already being
laid out.
* jcf-write.c (append_innerclass_attribute_entry): Static
`anonymous_name' and its initialization deleted. `ocii' and `ini'
to be zero for anonymous classes.

2001-01-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* class.c (set_constant_value): Set DECL_FIELD_FINAL_IUD if
necessary.
* jcf-parse.c (set_source_filename): Use
MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC if necessary.

2001-01-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* expr.c (build_jni_stub): Set DECL_CONTEXT on `meth_var' so it
gets a unique asm name.

2001-01-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* jcf-parse.c (HANDLE_END_METHODS): Nullify current_method.
(HANDLE_START_FIELD): Invoke MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC
if necessary.
(HANDLE_SYNTHETIC_ATTRIBUTE): New macro.
* jcf-reader.c (get_attribute): Handle `Synthetic' attribute.
* parse.y (lookup_package_type_and_set_next): Deleted.
(resolve_package): Removed unnecessary code.
(find_applicable_accessible_methods_list): `finit$' can't be
  inherited.
* verify.c (pop_argument_types): Added missing prototype.

(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01812.html)

From-SVN: r39230

23 years agopt.c (check_explicit_specialization): Clone constructors and destructors.
Kriang Lerdsuwanakij [Wed, 24 Jan 2001 07:06:07 +0000 (07:06 +0000)]
pt.c (check_explicit_specialization): Clone constructors and destructors.

* pt.c (check_explicit_specialization): Clone constructors and
destructors.

* g++.old-deja/g++.pt/spec33.C: Change from "Build don't link" to
"Build don't run".

From-SVN: r39229

23 years agobb-reorder.c (make_reorder_chain_1): Handle case where jump edge goes to the same...
John David Anglin [Wed, 24 Jan 2001 05:57:46 +0000 (05:57 +0000)]
bb-reorder.c (make_reorder_chain_1): Handle case where jump edge goes to the same block as the fallthru edge.

        * bb-reorder.c (make_reorder_chain_1): Handle case where
        jump edge goes to the same block as the fallthru edge.

From-SVN: r39228

23 years agoEliminate IA-64 compiler warnings.
Jim Wilson [Wed, 24 Jan 2001 04:30:47 +0000 (04:30 +0000)]
Eliminate IA-64 compiler warnings.

* dwarf2out.c (dwarf2out_line): Make last_file_num be unsigned.
* frame.h (__ia64_personality_v1): Add prototype.
* libgcc2.c (ia64_throw_helper): Change personality declaration to
prototype form.  Add void * cast to first argument to personality
call.
...

From-SVN: r39227

23 years agoexception_support.cc (__terminate_func): Remove declaration.
Chris Demetriou [Wed, 24 Jan 2001 03:04:36 +0000 (03:04 +0000)]
exception_support.cc (__terminate_func): Remove declaration.

2001-01-23  Chris Demetriou  <cgd@broadcom.com>

        * libsupc++/exception_support.cc (__terminate_func): Remove
        declaration.
        (__terminate_func_ptr): New typedef.
        (__terminate, __terminate_set_func): New extern function
        prototypes.
        (std::terminate): Use __terminate function.
        (std::set_terminate): Use __terminate_set_func function.

From-SVN: r39226

23 years agoexception.cc (__terminate_func): Remove declaration.
Chris Demetriou [Wed, 24 Jan 2001 03:04:04 +0000 (03:04 +0000)]
exception.cc (__terminate_func): Remove declaration.

2001-01-23  Chris Demetriou  <cgd@broadcom.com>

        * exception.cc (__terminate_func): Remove declaration.
        (__terminate_func_ptr): New typedef.
        (__terminate, __terminate_set_func): New extern function
        prototypes.
        (std::terminate): Use __terminate function.
        (std::set_terminate): Use __terminate_set_func function.

From-SVN: r39225

23 years agolibgcc-std.ver (GCC_3.0): Add __terminate_func_set to list of EH symbols.
Chris Demetriou [Wed, 24 Jan 2001 03:03:12 +0000 (03:03 +0000)]
libgcc-std.ver (GCC_3.0): Add __terminate_func_set to list of EH symbols.

2001-01-23  Chris Demetriou  <cgd@broadcom.com>

        * libgcc-std.ver (GCC_3.0): Add __terminate_func_set to list
        of EH symbols.
        * libgcc2.c (__terminate_func): Make variable static.
        (__terminate_set_func): New function to set __terminate_func.
        * libgcc2.h (__terminate_func_ptr): New typedef.
        (__terminate_set_func): New function.

From-SVN: r39224

23 years agoltcf-gcj.sh (lt_simple_link_test_code): Remove stray `(0)'.
Alexandre Oliva [Wed, 24 Jan 2001 02:24:50 +0000 (02:24 +0000)]
ltcf-gcj.sh (lt_simple_link_test_code): Remove stray `(0)'.

* ltcf-gcj.sh (lt_simple_link_test_code): Remove stray `(0)'.
* libtool.m4 (_AC_LIBTOOL_GCJ): Pass $CPPFLAGS on.

From-SVN: r39223

23 years agoflow.c (init_propagate_block_info): Don't consider unchanging memories for dead frame...
Richard Henderson [Wed, 24 Jan 2001 02:23:54 +0000 (18:23 -0800)]
flow.c (init_propagate_block_info): Don't consider unchanging memories for dead frame store elimination.

        * flow.c (init_propagate_block_info): Don't consider unchanging
        memories for dead frame store elimination.

From-SVN: r39222

23 years agovarasm.c (UNIQUE_SECTION): Move default implementation ...
Richard Henderson [Wed, 24 Jan 2001 02:23:23 +0000 (18:23 -0800)]
varasm.c (UNIQUE_SECTION): Move default implementation ...

        * varasm.c (UNIQUE_SECTION): Move default implementation ...
        * defaults.h: ... here.

From-SVN: r39221

23 years agoFix date.
Franz Sirl [Wed, 24 Jan 2001 00:48:03 +0000 (00:48 +0000)]
Fix date.

From-SVN: r39220

23 years ago20010123-1.c: New test.
Franz Sirl [Wed, 24 Jan 2001 00:45:42 +0000 (00:45 +0000)]
20010123-1.c: New test.

        2001-01-22  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

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

From-SVN: r39219

23 years agoUpdate copyright dates.
Franz Sirl [Wed, 24 Jan 2001 00:07:32 +0000 (00:07 +0000)]
Update copyright dates.

From-SVN: r39218

23 years ago* c4x.h (TARGET_LOAD_DIRECT_MEMS): Define.
Michael Hayes [Tue, 23 Jan 2001 23:22:30 +0000 (23:22 +0000)]
* c4x.h (TARGET_LOAD_DIRECT_MEMS): Define.

From-SVN: r39217

23 years agoctime_.c: #include <sys/types.h> for time_t.
Michael Sokolov [Tue, 23 Jan 2001 23:20:30 +0000 (23:20 +0000)]
ctime_.c: #include <sys/types.h> for time_t.

* libU77/ctime_.c: #include <sys/types.h> for time_t.
* libU77/datetime_.c: Likewise.
* libU77/fdate_.c: Likewise.
* libU77/gmtime_.c: Likewise.
* libU77/idate_.c: Likewise.
* libU77/itime_.c: Likewise.
* libU77/ltime_.c: Likewise.
* libU77/sys_clock_.c: Likewise.
* libU77/vxtidate_.c: Likewise.
* libU77/vxttime_.c: Likewise.

From-SVN: r39216

23 years ago* c-lex.c (lex_charconst): Fix typo: s/p/str.
Neil Booth [Tue, 23 Jan 2001 23:18:43 +0000 (23:18 +0000)]
* c-lex.c (lex_charconst): Fix typo: s/p/str.

From-SVN: r39215

23 years agocom.c: Don't explicitly include any time headers...
Michael Sokolov [Tue, 23 Jan 2001 23:04:35 +0000 (23:04 +0000)]
com.c: Don't explicitly include any time headers...

* com.c: Don't explicitly include any time headers, the right ones are
already included by proj.h.

From-SVN: r39214

23 years agovarasm.c (UNIQUE_SECTION): Move default implementation ...
Richard Henderson [Tue, 23 Jan 2001 22:29:30 +0000 (14:29 -0800)]
varasm.c (UNIQUE_SECTION): Move default implementation ...

        * varasm.c (UNIQUE_SECTION): Move default implementation ...
        * defaults.h: ... here.

From-SVN: r39213

23 years agoconfigure.in: Enable libgcj on several additional platforms.
Bryce McKinlay [Tue, 23 Jan 2001 22:17:31 +0000 (22:17 +0000)]
configure.in: Enable libgcj on several additional platforms.

* configure.in: Enable libgcj on several additional platforms.

In gcc/java:
* config-lang.in: Disable java by default.

From-SVN: r39212

23 years agors6000.h (rs6000_return_addr): Move prototype from here...
Franz Sirl [Tue, 23 Jan 2001 22:03:48 +0000 (22:03 +0000)]
rs6000.h (rs6000_return_addr): Move prototype from here...

        2001-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * rs6000.h (rs6000_return_addr): Move prototype from here...
        * rs6000-protos.h (rs6000_return_addr): ...to here.
        (rs6000_init_expanders): Delete prototype.

From-SVN: r39211

23 years agoReplace , with \, inside @gccoptlist macros.
Nick Clifton [Tue, 23 Jan 2001 21:35:15 +0000 (21:35 +0000)]
Replace , with \, inside @gccoptlist macros.

Document %B and %j and %. and %v3 and %M and %{S*&T} spec switches.

From-SVN: r39210

23 years agoconfigure.target: Just use os_include_dir always.
Benjamin Kosnik [Tue, 23 Jan 2001 20:58:23 +0000 (20:58 +0000)]
configure.target: Just use os_include_dir always.

2001-01-23  Benjamin Kosnik  <bkoz@redhat.com>

* configure.target: Just use os_include_dir always.
* configure.in: Remove calls to GLIBCPP_CHECK_CTYPE_SUPPORT.
Link atomicity files and ctype files here.
* configure: Regenerate.
* acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Remove.
(GLIBCPP_ENABLE_ATOMICITY): Remove.
* aclocal.m4: Regenerate.

From-SVN: r39209

23 years agogcj.texi (Copying): New node.
Tom Tromey [Tue, 23 Jan 2001 20:09:17 +0000 (20:09 +0000)]
gcj.texi (Copying): New node.

* gcj.texi (Copying): New node.
Added copyright information.

From-SVN: r39208

23 years ago* c4x.c (c4x_r11_set_p): Calculate rtx code correctly.
Herman A.J. ten Brugge [Tue, 23 Jan 2001 19:31:08 +0000 (20:31 +0100)]
* c4x.c (c4x_r11_set_p): Calculate rtx code correctly.

From-SVN: r39207

23 years agocpperror.c: Merge handlers of PEDWARN and WARNING.
Chris Demetriou [Tue, 23 Jan 2001 19:20:14 +0000 (19:20 +0000)]
cpperror.c: Merge handlers of PEDWARN and WARNING.

        * cpperror.c: Merge handlers of PEDWARN and WARNING.
        Have -Werror make pedantic warnings errors, like the
        rest of GCC.

Co-Authored-By: Neil Booth <neil@daikokuya.demon.co.uk>
From-SVN: r39206

23 years agoconfigure.in: Place definition of MULTISUBDIR in libsupc++/Makefile as is done for...
Chris Demetriou [Tue, 23 Jan 2001 19:18:29 +0000 (19:18 +0000)]
configure.in: Place definition of MULTISUBDIR in libsupc++/Makefile as is done for src/Makefile.

2001-01-23  Chris Demetriou  <cgd@broadcom.com>

        * configure.in: Place definition of MULTISUBDIR in
        libsupc++/Makefile as is done for src/Makefile.
        * configure: Regenerate.

From-SVN: r39205

23 years agoc-tree.texi (IDENTIFIER_LENGTH): Fix typo.
Phil Edwards [Tue, 23 Jan 2001 18:36:53 +0000 (18:36 +0000)]
c-tree.texi (IDENTIFIER_LENGTH): Fix typo.

2001-01-23  Phil Edwards  <pme@sources.redhat.com>

* c-tree.texi (IDENTIFIER_LENGTH):  Fix typo.

From-SVN: r39204

23 years agointegrate.h (struct inline_remap): Add compare_src, compare_mode.
Jakub Jelinek [Tue, 23 Jan 2001 18:36:06 +0000 (19:36 +0100)]
integrate.h (struct inline_remap): Add compare_src, compare_mode.

* integrate.h (struct inline_remap): Add compare_src, compare_mode.
* integrate.c (expand_inline_function): Initialize them.
(subst_constants): If changing COMPARE so that both its arguments
will be VOIDmode and the comparison mode will be lost, note
compare_mode.  Use the recorded compare_mode to optimize
IF_THEN_ELSE.

From-SVN: r39203

23 years ago* libU77/sys_clock_.c: #include <sys/param.h> for the clock tick rate.
Michael Sokolov [Tue, 23 Jan 2001 18:35:56 +0000 (18:35 +0000)]
* libU77/sys_clock_.c: #include <sys/param.h> for the clock tick rate.

From-SVN: r39202

23 years agodwarf2out.c (new_die): Use xcalloc.
Jason Merrill [Tue, 23 Jan 2001 17:22:08 +0000 (12:22 -0500)]
dwarf2out.c (new_die): Use xcalloc.

        * dwarf2out.c (new_die): Use xcalloc.
        (output_die): Abort rather than emit a local reference to offset 0.

From-SVN: r39201

23 years agoacinclude.m4: Cosmetic changes only.
Phil Edwards [Tue, 23 Jan 2001 17:02:28 +0000 (17:02 +0000)]
acinclude.m4: Cosmetic changes only.

2001-01-23  Phil Edwards  <pme@sources.redhat.com>

* acinclude.m4:  Cosmetic changes only.
* aclocal.m4:  Regenerated.
* configure:  Regenerated.
* configure.target:  Update documented list of changed variables.
* docs/html/install.html:  Fix typo.
* docs/html/20_util/howto.html:  More notes on auto_ptr.
* docs/html/27_io/howto.html:  More notes on streabufs.
* docs/html/faq/index.html:  Add rel_ops problem and mention the
  DEC as(1) .subsection difficulty.
* docs/html/faq/index.txt:  Regenerated.

From-SVN: r39200

23 years agolibgcc2.c (get_reg_addr): Don't abort if we haven't got a copy of a saved register...
Andrew Haley [Tue, 23 Jan 2001 13:58:55 +0000 (13:58 +0000)]
libgcc2.c (get_reg_addr): Don't abort if we haven't got a copy of a saved register; return NULL instead.

2001-01-17  Andrew Haley  <aph@redhat.com>

        * libgcc2.c (get_reg_addr): Don't abort if we haven't got a copy
        of a saved register; return NULL instead.
        (copy_reg): Take a pointer to a source register rather than a
        frame_state.
        (next_stack_level): Remember the address in the stack frame of all
        saved registers.
        Use the saved register pointer array as the source of the CFA.
        (throw_helper): Rewrite.  Unwind once rather than twice and keep
        track of saved registers as we go.

From-SVN: r39199

23 years agodecl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC indicates anything special...
Nathan Sidwell [Tue, 23 Jan 2001 10:44:18 +0000 (10:44 +0000)]
decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC indicates anything special about template depth.

cp:
* decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
indicates anything special about template depth. Make sure we
only count the user visible template classes.
testsuite:
* g++.old-deja/g++.pt/spec37.C: New test.

From-SVN: r39198

23 years agocall.c (build_conv): Typo in comment.
Nathan Sidwell [Tue, 23 Jan 2001 10:36:26 +0000 (10:36 +0000)]
call.c (build_conv): Typo in comment.

cp:
* call.c (build_conv): Typo in comment.
(add_builtin_candidate): Add more explanation.
Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
when we have enumeral types.
(add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
candidates for relops and eqops.
(joust): Simplify control flow. Allow a non-template user
function to hide a builtin.
testsuite:
* g++.old-deja/g++.pt/overload14.C: New test.

From-SVN: r39197