platform/upstream/gcc.git
21 years ago2003-11-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 11 Nov 2003 11:56:58 +0000 (11:56 +0000)]
2003-11-11  Michael Koch  <konqueror@gmx.de>

* java/nio/ByteBuffer.java
(equals): Remove redundant obj == null check.

From-SVN: r73447

21 years agonatPipeImpl.cc, [...]: Removed
Michael Koch [Tue, 11 Nov 2003 11:49:12 +0000 (11:49 +0000)]
natPipeImpl.cc, [...]: Removed

2003-11-11  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/natPipeImpl.cc,
gnu/java/nio/natSelectorImpl.cc: Removed
* gnu/java/nio/natPipeImplEcos.cc,
gnu/java/nio/natPipeImplPosix.cc,
gnu/java/nio/natPipeImplWin32.cc,
gnu/java/nio/natSelectorImplEcos.cc,
gnu/java/nio/natSelectorImplPosix.cc,
gnu/java/nio/natSelectorImplWin32.cc: New files
* configure.in: Create links for gnu/java/nio/natPipeImpl.cc and
gnu/java/nio/natSelectorImpl.cc
* configure: Regenerated.

From-SVN: r73446

21 years agoURLStreamHandler.java (toExternalForm): Print port only if host is printed too and...
Michael Koch [Tue, 11 Nov 2003 11:34:24 +0000 (11:34 +0000)]
URLStreamHandler.java (toExternalForm): Print port only if host is printed too and port was really given to URL.

2003-11-11  Micheal Koch  <konqueror@gmx.de>

* java/net/URLStreamHandler.java (toExternalForm): Print port only
if host is printed too and port was really given to URL.

From-SVN: r73445

21 years agors6000.c (legitimate_lo_sum_address_p): Remove accidental commit in previous change.
David Edelsohn [Tue, 11 Nov 2003 04:24:37 +0000 (04:24 +0000)]
rs6000.c (legitimate_lo_sum_address_p): Remove accidental commit in previous change.

        * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
        accidental commit in previous change.

From-SVN: r73440

21 years agoMinor fixes to darwin version of -mpowerpc64.
Fariborz Jahanian [Tue, 11 Nov 2003 02:35:45 +0000 (02:35 +0000)]
Minor fixes to darwin version of -mpowerpc64.

From-SVN: r73439

21 years agoMisc. fixes for -mpowerpc64 vesion darwin.
Fariborz Jahanian [Tue, 11 Nov 2003 02:34:56 +0000 (02:34 +0000)]
Misc. fixes for -mpowerpc64 vesion darwin.

Reviewed by David Edelsohn.

From-SVN: r73438

21 years agoTimestamp.java (valueOf): Correctly handle nanoseconds.
Gary Benson [Tue, 11 Nov 2003 00:51:44 +0000 (00:51 +0000)]
Timestamp.java (valueOf): Correctly handle nanoseconds.

2003-11-10  Gary Benson  <gbenson@redhat.com>

* java/sql/Timestamp.java (valueOf): Correctly handle
nanoseconds.

From-SVN: r73437

21 years agoDaily bump.
GCC Administrator [Tue, 11 Nov 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73435

21 years ago* dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
Richard Henderson [Mon, 10 Nov 2003 23:45:44 +0000 (15:45 -0800)]
* dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.

From-SVN: r73431

21 years agodarwin-protos.h (darwin_assemble_visibility): Declare.
Matt Austern [Mon, 10 Nov 2003 23:07:09 +0000 (23:07 +0000)]
darwin-protos.h (darwin_assemble_visibility): Declare.

* config/darwin-protos.h (darwin_assemble_visibility): Declare.
* config/darwin.c (darwin_assemble_visibility): Define.  Warn for
anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
* config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
darwin_assemble_visibility instead of default.

From-SVN: r73430

21 years agojcf-parse.c (classify_zip_file): Correctly compare filename_length against length...
Tom Tromey [Mon, 10 Nov 2003 22:13:21 +0000 (22:13 +0000)]
jcf-parse.c (classify_zip_file): Correctly compare filename_length against length of manifest file's name.

* jcf-parse.c (classify_zip_file): Correctly compare
filename_length against length of manifest file's name.

From-SVN: r73429

21 years ago* cvt.c (convert_to_void): Use void_zero_node after overload failure.
Richard Henderson [Mon, 10 Nov 2003 22:02:36 +0000 (14:02 -0800)]
* cvt.c (convert_to_void): Use void_zero_node after overload failure.

From-SVN: r73427

21 years agoFor PR java/12996:
Tom Tromey [Mon, 10 Nov 2003 21:30:10 +0000 (21:30 +0000)]
For PR java/12996:

* libjava.jar/simple.jar: New file.
* libjava.jar/simple.xfail: New file.
* libjava.jar/simple.out: New file.
* libjava.jar/simple.java: New file.
* libjava.jar/jar.exp: New file.

From-SVN: r73426

21 years ago[multiple changes]
Arnaud Charlet [Mon, 10 Nov 2003 17:30:00 +0000 (18:30 +0100)]
[multiple changes]

2003-11-10  Ed Falis  <falis@gnat.com>

* 5ytiitho.adb: (procStartHookAdd): Definition and call deleted

* 5zinit.adb: (Install_Handler): Moved back to spec
(Install_Signal_Handlers): Deleted

* 5zthrini.adb: Added context clause for System.Storage_Elements
(Register): Only handles creation of taskVar; initialization moved to
Thread_Body_Enter.
(Reset_TSD): Deleted; replaced by Thread_Body_Enter
Added declaration of environment task secondary stack and
initialization.

* s-thread.adb: Implement bodies for thread body processing

* s-thread.ads:
Added comment identifying supported targets for pragma Thread_Body.

2003-11-10  Pascal Obry  <obry@gnat.com>

* adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
GNAT_MAX_PATH_LEN.

* s-fileio.adb:
(Open): Properly check for string length before copying into the buffer.
Raises Name_Error if buffer is too small. Note that this was a potential
buffer overflow.

2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>

* bindgen.adb, comperr.adb: Code clean ups.
* gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.

2003-11-10  Sergey Rybin  <rybin@act-europe.fr>

* gnat1drv.adb: Add call to Sem_Elim.Initialize.

2003-11-10  Vincent Celier  <celier@gnat.com>

* gprcmd.adb:
(Gprcmd): Add new command "prefix" to get the prefix of the GNAT
installation.

* make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler

* prj.adb: (Project_Empty): Add new boolean component Virtual

* prj.ads: (Virtual_Prefix): New constant string
(Project_Data): New boolean component Virtual

* prj-nmsc.adb (Language_Independent_Check): Adjust error message when
a library project is extended by a virtual extending project.

* prj-part.adb:
Modifications throughout to implement extending-all project, including:
(Virtual_Hash, Processed_Hash): New hash tables
(Create_Virtual_Extending_Project): New procedure
(Look_For_Virtual_Projects_For): New procedure

* prj-proc.adb:
(Process): After checking the projects, if main project is an
extending-all project, set the object directory of all virtual extending
project to the object directory of the main project.
Adjust error message when a virtual extending project has the same
object directory as an project being extended.
(Recursive_Process): If name starts with the virtual prefix, set Virtual
to True in the project data.

* prj-tree.adb:
(Default_Project_Node): Add new boolean component Extending_All
(Is_Extending_All): New function
(Set_Is_Extending_All): New procedure

* prj-tree.ads: (Is_Extending_All): New function
(Set_Is_Extending_All): New procedure
(Project_Node_Record): New boolean component Extending_All

* switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib

* vms_data.ads:
Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler

* bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
"gprcmd prefix" to define it.

2003-11-10  Thomas Quinot  <quinot@act-europe.fr>

* einfo.ads: Fix a typo and remove an extraneous word in comments.

* lib-load.adb:
(Create_Dummy_Package_Unit): Set the scope of the entity for the
created dummy package to Standard_Standard, not to itself, to
defend other parts of the front-end against encoutering a cycle in
the scope chain.

* sem_ch10.adb:
(Analyze_With_Clause): When setting the entities for the successive
N_Expanded_Names that constitute the name of a child unit, do not
attempt to go further than Standard_Standard in the chain of scopes.
This case arises from the placeholder units created by
Create_Dummy_Package_Unit in the case of a with_clause for a
nonexistent child unit.

2003-11-10  Ed Schonberg  <schonberg@gnat.com>

* exp_ch6.adb:
(Expand_Thread_Body): Place subprogram on scope stack, so that new
declarations are given the proper scope.

* sem_ch13.adb:
(Check_Expr_Constants): Reject an expression that contains a constant
created during expansion, and that appears after the object to which
the address clause applies.

* sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
Analyze_Iteration_Scheme, to rewrite a loop parameter specification
that uses 'Range of a function call with controlled components, so
that the function result can be finalized before starting the loop.

* sem_ch8.adb:
(Find_Selected_Component): Improve error message when prefix is
an implicit dereference of an incomplete type.

2003-11-10  Robert Dewar  <dewar@gnat.com>

* opt.ads: New Print_Standard flag for -gnatS switch

* sem_ch13.adb: Remove some additional checks for unaligned arrays

* cstand.adb (Create_Standard): Print out package standard if -gnatS
switch set

* debug.adb: Update doc for -gnatds to discuss relationship with new
-gnatS flag

* sinfo.adb: Add new field Entity_Or_Associated_Node

* sinfo.ads: Add new field Entity_Or_Associated_Node
Update documentation for Associated_Node and Entity fields to clarify
relationship and usage.

* sprint.adb:
(Write_Id): Properly process Associated_Node field in generic template

* switch-c.adb:
Recognize new -gnatS switch for printing package Standard
This replaces gnatpsta

* usage.adb:
Add line for  new -gnatS switch for printing package Standard
This replaces gnatpsta

From-SVN: r73423

21 years agorun_all.sh: Add handling of unsupported (tasking) tests.
Arnaud Charlet [Mon, 10 Nov 2003 17:10:45 +0000 (18:10 +0100)]
run_all.sh: Add handling of unsupported (tasking) tests.

* ada/acats/run_all.sh: Add handling of unsupported (tasking) tests.
Clean ups.

From-SVN: r73422

21 years ago7sosprim.adb: tv_usec of struct_timeval and time_t are long integer.
Andreas Jaeger [Mon, 10 Nov 2003 15:54:35 +0000 (16:54 +0100)]
7sosprim.adb: tv_usec of struct_timeval and time_t are long integer.

* 7sosprim.adb: tv_usec of struct_timeval and time_t are long
integer.

From-SVN: r73419

21 years agoAdd handling of -nostdlib, now recognized/needed by gnat1.
Arnaud Charlet [Mon, 10 Nov 2003 11:20:03 +0000 (12:20 +0100)]
Add handling of -nostdlib, now recognized/needed by gnat1.

From-SVN: r73413

21 years agoMakefile.in, [...]: Remove build of gnat_wrapper and gnatpsta, no longer needed.
Arnaud Charlet [Mon, 10 Nov 2003 10:25:21 +0000 (11:25 +0100)]
Makefile.in, [...]: Remove build of gnat_wrapper and gnatpsta, no longer needed.

* Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
no longer needed.

* gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.

* sysdep.c: Add handling of cygwin.

From-SVN: r73412

21 years ago* Make-lang.in: Makefile automatically updated
GNAT Script [Mon, 10 Nov 2003 09:57:06 +0000 (09:57 +0000)]
* Make-lang.in: Makefile automatically updated

From-SVN: r73411

21 years agoComplete previous change.
Arnaud Charlet [Mon, 10 Nov 2003 09:45:58 +0000 (10:45 +0100)]
Complete previous change.

From-SVN: r73409

21 years agore PR ada/12950 (Ada runtime is not relocatable)
Arnaud Charlet [Mon, 10 Nov 2003 09:42:57 +0000 (10:42 +0100)]
re PR ada/12950 (Ada runtime is not relocatable)

PR 12950
* osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
functions. Used to handle dynamic prefix relocation, via set_std_prefix.
Replace GNAT_ROOT by GCC_ROOT.

* Make-lang.in: Use new function Relocate_Path to generate sdefault.adb

From-SVN: r73407

21 years agore PR c++/12832 (ICE: tree check: expected class 'd', have 'x' (error_mark) in locati...
Gabriel Dos Reis [Mon, 10 Nov 2003 08:32:16 +0000 (08:32 +0000)]
re PR c++/12832 (ICE: tree check: expected class 'd', have 'x' (error_mark) in location_of, at cp/error.c:1962)

PR c++/12832
* name-lookup.c (supplement_binding): Gracefully handle names
used at non-class scope prior declaration.

From-SVN: r73406

21 years agore PR target/12865 (`mprotect' call to make trampoline executable may fail)
Waldek Hebisch [Mon, 10 Nov 2003 08:11:47 +0000 (09:11 +0100)]
re PR target/12865 (`mprotect' call to make trampoline executable may fail)

PR target/12865
* config/sparc/sparc.c (sparc_initialize_trampoline): Call
__enable_execute_stack only after writing onto the stack.
(sparc64_initialize_trampoline): Likewise.

From-SVN: r73402

21 years agoDaily bump.
GCC Administrator [Mon, 10 Nov 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73400

21 years ago* java/net/Inet4Address.java (serialVersionUID): Updated.
Tom Tromey [Sun, 9 Nov 2003 23:07:11 +0000 (23:07 +0000)]
* java/net/Inet4Address.java (serialVersionUID): Updated.

From-SVN: r73398

21 years ago200031109-1.c: New test.
Andrew Pinski [Sun, 9 Nov 2003 21:27:16 +0000 (21:27 +0000)]
200031109-1.c: New test.

2003-11-09  Andrew Pinski  <pinskia@physics.uc.edu>

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

From-SVN: r73397

21 years agolocale_facets.tcc (_M_insert_int, [...]): Move a couple of vars inside an if block.
Paolo Carlini [Sun, 9 Nov 2003 19:15:25 +0000 (19:15 +0000)]
locale_facets.tcc (_M_insert_int, [...]): Move a couple of vars inside an if block.

2003-11-09  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (_M_insert_int,
_M_insert_float): Move a couple of vars inside an if block.

From-SVN: r73395

21 years agoclosure_fn0.c: Print result and check with dg-output to make debugging easier.
Andreas Tobler [Sun, 9 Nov 2003 17:05:10 +0000 (18:05 +0100)]
closure_fn0.c: Print result and check with dg-output to make debugging easier.

2003-11-09  Andreas Tobler  <a.tobler@schweiz.ch>

* testsuite/libffi.call/closure_fn0.c: Print result and check
with dg-output to make debugging easier.
* testsuite/libffi.call/closure_fn1.c: Likewise.
* testsuite/libffi.call/closure_fn2.c: Likewise.
* testsuite/libffi.call/closure_fn3.c: Likewise.
* testsuite/libffi.call/closure_fn4.c: Likewise.
* testsuite/libffi.call/closure_fn5.c: Likewise.
* testsuite/libffi.call/cls_12byte.c: Likewise.
* testsuite/libffi.call/cls_16byte.c: Likewise.
* testsuite/libffi.call/cls_18byte.c: Likewise.
* testsuite/libffi.call/cls_19byte.c: Likewise.
* testsuite/libffi.call/cls_1_1byte.c: Likewise.
* testsuite/libffi.call/cls_20byte.c: Likewise.
* testsuite/libffi.call/cls_20byte1.c: Likewise.
* testsuite/libffi.call/cls_24byte.c: Likewise.
* testsuite/libffi.call/cls_2byte.c: Likewise.
* testsuite/libffi.call/cls_3_1byte.c: Likewise.
* testsuite/libffi.call/cls_3byte1.c: Likewise.
* testsuite/libffi.call/cls_3byte2.c: Likewise.
* testsuite/libffi.call/cls_4_1byte.c: Likewise.
* testsuite/libffi.call/cls_4byte.c: Likewise.
* testsuite/libffi.call/cls_5byte.c: Likewise.
* testsuite/libffi.call/cls_64byte.c: Likewise.
* testsuite/libffi.call/cls_6byte.c: Likewise.
* testsuite/libffi.call/cls_7byte.c: Likewise.
* testsuite/libffi.call/cls_8byte.c: Likewise.
* testsuite/libffi.call/cls_9byte1.c: Likewise.
* testsuite/libffi.call/cls_9byte2.c: Likewise.
* testsuite/libffi.call/cls_double.c: Likewise.
* testsuite/libffi.call/cls_float.c: Likewise.
* testsuite/libffi.call/cls_schar.c: Likewise.
* testsuite/libffi.call/cls_sint.c: Likewise.
* testsuite/libffi.call/cls_sshort.c: Likewise.
* testsuite/libffi.call/cls_uchar.c: Likewise.
* testsuite/libffi.call/cls_uint.c: Likewise.
* testsuite/libffi.call/cls_ulonglong.c: Likewise.
* testsuite/libffi.call/cls_ushort.c: Likewise.
* testsuite/libffi.call/problem1.c: Likewise.

* testsuite/libffi.special/unwindtest.cc: Make ffi_closure
static.

From-SVN: r73393

21 years agoloop.c (check_dbra_loop): Try swapping the comparison operands of the loop condition...
Roger Sayle [Sun, 9 Nov 2003 14:33:20 +0000 (14:33 +0000)]
loop.c (check_dbra_loop): Try swapping the comparison operands of the loop condition to identify a...

* loop.c (check_dbra_loop): Try swapping the comparison operands
of the loop condition to identify a suitable induction variable.
* unroll.c (loop_iterations): Likewise.

From-SVN: r73391

21 years agosparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs sparc64 #cpu and #machine assertions.
Kaveh R. Ghazi [Sun, 9 Nov 2003 14:05:10 +0000 (14:05 +0000)]
sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs sparc64 #cpu and #machine assertions.

* config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
sparc64 #cpu and #machine assertions.

From-SVN: r73390

21 years agore PR libstdc++/12971 (Resolution of DR 328 [WP] still unimplemented)
Paolo Carlini [Sun, 9 Nov 2003 10:47:58 +0000 (10:47 +0000)]
re PR libstdc++/12971 (Resolution of DR 328 [WP] still unimplemented)

2003-11-09  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/12971
* include/bits/locale_facets.tcc
(money_put::do_put(..., long double)): Fix conversion
specification as per DR 328 [WP].
* testsuite/22_locale/money_put/put/char/12971.cc: Add.
* testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
* docs/html/ext/howto.html: Add entry for DR 328.

From-SVN: r73389

21 years ago* Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
Richard Henderson [Sun, 9 Nov 2003 09:27:29 +0000 (01:27 -0800)]
* Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.

From-SVN: r73386

21 years ago* tree-optimize.c (tree_rest_of_compilation): Fix warning.
Jan Hubicka [Sun, 9 Nov 2003 03:06:21 +0000 (04:06 +0100)]
* tree-optimize.c (tree_rest_of_compilation): Fix warning.

From-SVN: r73385

21 years agocgraphunit.c (cgraph_expand_function): Use cgraph_possibly_inlined_p.
Jan Hubicka [Sun, 9 Nov 2003 02:37:54 +0000 (02:37 +0000)]
cgraphunit.c (cgraph_expand_function): Use cgraph_possibly_inlined_p.

* cgraphunit.c (cgraph_expand_function): Use
cgraph_possibly_inlined_p.
* tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.

* opts.c (common_handle_option): Do not set max-inline-insns.
* params.def: Update comments.
(PARAM_MAX_INLINE_INSNS): Kill.
* invoke.texi (max-inline-insns): Kill.

From-SVN: r73384

21 years agocgraphunit.c (cgraph_expand_function): Use cgraph_possibly_inlined_p.
Jan Hubicka [Sun, 9 Nov 2003 01:52:59 +0000 (02:52 +0100)]
cgraphunit.c (cgraph_expand_function): Use cgraph_possibly_inlined_p.

* cgraphunit.c (cgraph_expand_function): Use
cgraph_possibly_inlined_p.
* tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.

* opts.c (common_handle_option): Do not set max-inline-insns.
* params.def: Update comments.
(PARAM_MAX_INLINE_INSNS): Kill.
* invoke.texi (max-inline-insns): Kill.

From-SVN: r73382

21 years agoDaily bump.
GCC Administrator [Sun, 9 Nov 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73380

21 years agore PR c/3190 (-Wformat-y2k doesn't belong to -Wall - it's hard to avoid)
Joseph Myers [Sat, 8 Nov 2003 22:42:00 +0000 (22:42 +0000)]
re PR c/3190 (-Wformat-y2k doesn't belong to -Wall - it's hard to avoid)

PR c/3190
PR c/8714
* c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
* invoke.texi: Update.

testsuite:
PR c/3190
PR c/8714
* gcc.dg/format/c90-strftime-1.c, gcc.dg/format/c90-strftime-2.c,
gcc.dg/format/c99-strftime-1.c, gcc.dg/format/ext3.c,
gcc.dg/format/no-y2k-1.c: Update.

From-SVN: r73378

21 years agore PR libstdc++/12967 (Resolution of DR 300 [WP] still unimplemented)
Paolo Carlini [Sat, 8 Nov 2003 21:17:30 +0000 (21:17 +0000)]
re PR libstdc++/12967 (Resolution of DR 300 [WP] still unimplemented)

2003-11-08  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/12967
* include/bits/list.tcc (merge): Implement resolution of
DR 300 [WP].
* docs/html/ext/howto.html: Add entry for DR 300; tweak entry
for DR 231.

* docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
Import R27.

From-SVN: r73377

21 years agore PR libgcj/12894 (META-INF entries should be incoluded as --resource entries when...
Tom Tromey [Sat, 8 Nov 2003 20:44:04 +0000 (20:44 +0000)]
re PR libgcj/12894 (META-INF entries should be incoluded as --resource entries when compiling jars)

PR java/12894:
* jcf-parse.c (classify_zip_file): Only skip MANIFEST.MF file.

From-SVN: r73376

21 years agore PR rtl-optimization/12630 (Various unrecognizable insns and ICEs at -O3)
John David Anglin [Sat, 8 Nov 2003 20:36:30 +0000 (20:36 +0000)]
re PR rtl-optimization/12630 (Various unrecognizable insns and ICEs at -O3)

PR optimization/12630
* pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
Handle length computation 64-bit moves.
(compute_clrstr_length, output_block_clear): Implement block clear.
(output_block_move): Handle 64-bit moves.
(pa_adjust_insn_length): Use compute_movstr_length and
compute_clrstr_length.
* pa.md (movstrsi): Revise operand order and comments.  Don't use
match_scratch.
(movstrsi_internal): Delete.
(movstrsi_prereload, movstrsi_postreload): New insns.  Define splitter
and peephole2 patterns to transform prereload to postreload form.
(movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
clrstrdi_postreload): New patterns for 64-bit block move, and block
clear.
* pa-protos.h (output_block_clear): New prototype.

From-SVN: r73375

21 years agocls_9byte2.c: New test case.
Andreas Tobler [Sat, 8 Nov 2003 19:03:58 +0000 (20:03 +0100)]
cls_9byte2.c: New test case.

2003-11-08  Andreas Tobler  <a.tobler@schweiz.ch>

* testsuite/libffi.call/cls_9byte2.c: New test case.
* testsuite/libffi.call/cls_9byte1.c: Likewise.
* testsuite/libffi.call/cls_64byte.c: Likewise.
* testsuite/libffi.call/cls_20byte1.c: Likewise.
* testsuite/libffi.call/cls_19byte.c: Likewise.
* testsuite/libffi.call/cls_18byte.c: Likewise.
* testsuite/libffi.call/closure_fn4.c: Likewise.
* testsuite/libffi.call/closure_fn5.c: Likewise.
* testsuite/libffi.call/cls_schar.c: Likewise.
* testsuite/libffi.call/cls_sint.c: Likewise.
* testsuite/libffi.call/cls_sshort.c: Likewise.
* testsuite/libffi.call/nested_struct2.c: Likewise.
* testsuite/libffi.call/nested_struct3.c: Likewise.

From-SVN: r73372

21 years ago* libjava.jacks/jacks.xfail: Updated.
Tom Tromey [Sat, 8 Nov 2003 18:56:51 +0000 (18:56 +0000)]
* libjava.jacks/jacks.xfail: Updated.

From-SVN: r73371

21 years agodbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO.
Andreas Schwab [Sat, 8 Nov 2003 18:49:00 +0000 (18:49 +0000)]
dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO.

* dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
XCOFF_DEBUGGING_INFO.

From-SVN: r73370

21 years agocls_double.c: Do a check on the result.
Andreas Tobler [Sat, 8 Nov 2003 18:32:16 +0000 (19:32 +0100)]
cls_double.c: Do a check on the result.

2003-11-08  Andreas Tobler  <a.tobler@schweiz.ch>

* testsuite/libffi.call/cls_double.c: Do a check on the result.
* testsuite/libffi.call/cls_uchar.c: Likewise.
* testsuite/libffi.call/cls_uint.c: Likewise.
* testsuite/libffi.call/cls_ulonglong.c: Likewise.
* testsuite/libffi.call/cls_ushort.c: Likewise.
* testsuite/libffi.call/return_sc.c: Cleanup whitespaces.

From-SVN: r73369

21 years ago* dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
Kaveh R. Ghazi [Sat, 8 Nov 2003 15:08:51 +0000 (15:08 +0000)]
* dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.

From-SVN: r73363

21 years agore PR target/10467 ([arm] [3.3/3.4 regression] ICE in pre_insert_copy_insn,)
Roger Sayle [Sat, 8 Nov 2003 14:43:30 +0000 (14:43 +0000)]
re PR target/10467 ([arm] [3.3/3.4 regression] ICE in pre_insert_copy_insn,)

PR optimization/10467
* gcc.dg/20031108-1.c: New test case.

From-SVN: r73362

21 years agoFirstThread.java (Klocale, Kcalendar): New fields.
Jeff Sturm [Sat, 8 Nov 2003 13:43:12 +0000 (13:43 +0000)]
FirstThread.java (Klocale, Kcalendar): New fields.

* gnu/gcj/runtime/FirstThread.java (Klocale, Kcalendar):
New fields.

From-SVN: r73360

21 years agoByteArrayOutputStream.java (resize): Fix off-by-one error.
Jeff Sturm [Sat, 8 Nov 2003 13:41:20 +0000 (13:41 +0000)]
ByteArrayOutputStream.java (resize): Fix off-by-one error.

* java/io/ByteArrayOutputStream.java (resize):
Fix off-by-one error.

From-SVN: r73359

21 years agors6000.c (rs6000_legitimize_address): Remove redundant parens.
Geoffrey Keating [Sat, 8 Nov 2003 02:21:01 +0000 (02:21 +0000)]
rs6000.c (rs6000_legitimize_address): Remove redundant parens.

* config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
redundant parens.

From-SVN: r73354

21 years agocppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
Geoffrey Keating [Sat, 8 Nov 2003 02:17:51 +0000 (02:17 +0000)]
cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.

2003-11-07  Geoffrey Keating  <geoffk@apple.com>

* cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
(find_file_in_dir): Likewise.
(_cpp_find_file): Print message if no header file is found
but an invalid PCH file was.

2003-11-07  Geoffrey Keating  <geoffk@apple.com>

* gcc.dg/pch/warn-1.c: Allow for more helpful error message.

From-SVN: r73353

21 years agoc-typeck.c (pedantic_lvalue_warning): Deprecate compound expressions as lvalues.
Joseph Myers [Sat, 8 Nov 2003 01:38:48 +0000 (01:38 +0000)]
c-typeck.c (pedantic_lvalue_warning): Deprecate compound expressions as lvalues.

* c-typeck.c (pedantic_lvalue_warning): Deprecate compound
expressions as lvalues.
(internal_build_compound_expr): Remove special handling for
non-pedantic case.
* doc/extend.texi: Document that all extended lvalues are now
deprecated.

testsuite:
* gcc.dg/compound-lvalue-1.c: New test.
* gcc.dg/c90-const-expr-2.c, gcc.dg/c99-const-expr-2.c: Remove
some XFAILs.

From-SVN: r73352

21 years ago* gnu/gcj/xlib/XAnyEvent.java (XAnyEvent): Make constructor public.
Bryce McKinlay [Sat, 8 Nov 2003 01:23:47 +0000 (01:23 +0000)]
* gnu/gcj/xlib/XAnyEvent.java (XAnyEvent): Make constructor public.

From-SVN: r73351

21 years agovec.cc: Conform to C++STYLE.
Jonathan Wakely [Sat, 8 Nov 2003 00:36:13 +0000 (00:36 +0000)]
vec.cc: Conform to C++STYLE.

2003-11-07  Jonathan Wakely  <redi@gcc.gnu.org>

* libsupc++/vec.cc: Conform to C++STYLE.

From-SVN: r73350

21 years agoDaily bump.
GCC Administrator [Sat, 8 Nov 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73348

21 years agore PR pch/11654 (incorrect stabs when using pre-compiled headers)
Geoffrey Keating [Fri, 7 Nov 2003 22:12:39 +0000 (22:12 +0000)]
re PR pch/11654 (incorrect stabs when using pre-compiled headers)

PR 11654
* dbxout.c (struct dbx_file): Do not save for PCH.
(current_file): Likewise.
(dbxout_init): Don't allocate struct dbx_file using GC.
(dbxout_start_source_file): Likewise.

From-SVN: r73346

21 years agoelf.h, [...]: Convert to ISO C90.
Falk Hueffner [Fri, 7 Nov 2003 18:57:32 +0000 (19:57 +0100)]
elf.h, [...]: Convert to ISO C90.

        * config/alpha/elf.h, config/alpha/unicosmk.h,
        config/alpha/vms.h: Convert to ISO C90.

From-SVN: r73342

21 years ago* config/arm/pe.h: Convert to ISO C90.
Nathanael Nerode [Fri, 7 Nov 2003 18:45:26 +0000 (18:45 +0000)]
* config/arm/pe.h: Convert to ISO C90.

From-SVN: r73341

21 years agoUgh, copied the wrong date from previous test case.
Carlo Wood [Fri, 7 Nov 2003 17:59:23 +0000 (17:59 +0000)]
Ugh, copied the wrong date from previous test case.

From-SVN: r73340

21 years agore PR libstdc++/12736 (Demangler bug)
Carlo Wood [Fri, 7 Nov 2003 17:55:27 +0000 (17:55 +0000)]
re PR libstdc++/12736 (Demangler bug)

PR libstdc++/12736
* bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
(qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
K, V, r and A qualifiers before processing them as a group.
* testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
* testsuite/demangle/regression/cw-16.cc: New.

From-SVN: r73339

21 years agoFix libstdc++-v3 build failure on sh64-elf:
J"orn Rennecke [Fri, 7 Nov 2003 17:44:57 +0000 (17:44 +0000)]
Fix libstdc++-v3 build failure on sh64-elf:

* sh-protos.h (sh_pch_valid_p): Declare.
* sh.c ("intl.h"): Include.
(TARGET_PCH_VALID_P): Override.
(sh_target_switches): New variable.
(target_switches): Define.
(sh_pch_valid_p): New function.

* sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.

From-SVN: r73338

21 years agoconfigure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
Robert Millan [Fri, 7 Nov 2003 16:49:18 +0000 (16:49 +0000)]
configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.

2003-11-07  Robert Millan  <robertmh@gnu.org>

        * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
        * crossconfig.m4: Likewise.
        * configure: Regenerate.

From-SVN: r73337

21 years agoi386.c (x86_64_sign_extended_value): Return false from tls variables.
Jan Hubicka [Fri, 7 Nov 2003 09:26:06 +0000 (10:26 +0100)]
i386.c (x86_64_sign_extended_value): Return false from tls variables.

* i386.c (x86_64_sign_extended_value):  Return false from tls variables.
(x86_64_zero_extended_value):  likewise.

From-SVN: r73334

21 years agomips.md (loadgp): Take $25 as a second operand.
Richard Sandiford [Fri, 7 Nov 2003 08:14:32 +0000 (08:14 +0000)]
mips.md (loadgp): Take $25 as a second operand.

* config/mips/mips.md (loadgp): Take $25 as a second operand.
* config/mips/mips.c (mips_expand_prologue): Modify accordingly.

From-SVN: r73330

21 years agodemangle.h (qualifier_list<Allocator>::decode_qualifiers(string_type&, string_type...
Carlo Wood [Fri, 7 Nov 2003 03:53:44 +0000 (03:53 +0000)]
demangle.h (qualifier_list<Allocator>::decode_qualifiers(string_type&, string_type&, bool member_function_pointer_qualifiers): Always seperate the '[' of an array type with a space from what is left of it...

* include/bits/demangle.h
(qualifier_list<Allocator>::decode_qualifiers(string_type&,
string_type&, bool member_function_pointer_qualifiers):
Always seperate the '[' of an array type with a space from
what is left of it, except when that is the closing bracket
of another array dimension.

From-SVN: r73328

21 years agodemangle.h (qualifier_list<Allocator>::decode_qualifiers(string_type&, string_type...
Carlo Wood [Fri, 7 Nov 2003 03:49:43 +0000 (03:49 +0000)]
demangle.h (qualifier_list<Allocator>::decode_qualifiers(string_type&, string_type&, bool) const): Made const.

* include/bits/demangle.h
(qualifier_list<Allocator>::decode_qualifiers(string_type&,
string_type&, bool) const): Made const.
(qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
(_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
std::ostream& operator<<(std::ostream&, qualifier const&),
std::ostream& operator<<(std::ostream&, qualifier_list const&),
qualifier_list<Allocator>::decode_qualifiers(string_type&,
string_type&, bool) const,
session<Allocator>::decode_type_with_postfix(string_type&,
string_type&, qualifier_list<Allocator>*))
Added and/or changed debug-only hooks and code.

From-SVN: r73327

21 years agore PR libgcj/12231 ([win32] Console applications spawned via Runtime.exec( ) in a...
Mohan Embar [Fri, 7 Nov 2003 03:16:49 +0000 (03:16 +0000)]
re PR libgcj/12231 ([win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window)

PR libgcj/12231
* java/lang/Win32Process.java (hasExited) Changed from
public to private.
(startProcess): Likewise.
(cleanup): Likewise.
* java/lang/natWin32Process.cc (cleanup) Don't close
input, output and error streams.
(ChildProcessPipe): New helper class.
(startProcess): Refactored to use ChildProcessPipe.
Use CREATE_NO_WINDOW when launching child process.

From-SVN: r73326

21 years agowin32.h (_Jv_platform_close_on_exec): Changed signature and declared extern.
Mohan Embar [Fri, 7 Nov 2003 03:13:56 +0000 (03:13 +0000)]
win32.h (_Jv_platform_close_on_exec): Changed signature and declared extern.

* include/win32.h (_Jv_platform_close_on_exec): Changed
signature and declared extern.
* win32.cc (_Jv_platform_close_on_exec): Implemented.
* gnu/java/net/natPlainDatagramSocketImplWin32.cc
(create): Use new signature of _Jv_platform_close_on_exec.
* gnu/java/net/natPlainSocketImplWin32.cc
(create): Eliminated a few typecasts
Use new signature of _Jv_platform_close_on_exec.
(accept): Eliminated a few typecasts
Use new signature of _Jv_platform_close_on_exec.
* java/io/natFileDescriptorWin32.cc (open): Use
_Jv_platform_close_on_exec.

From-SVN: r73325

21 years agoDaily bump.
GCC Administrator [Fri, 7 Nov 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73323

21 years agoc-common.c (handle_visibility_attribute): Set DECL_VISIBILITY field instead of hangin...
Matt Austern [Thu, 6 Nov 2003 22:08:26 +0000 (22:08 +0000)]
c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY field instead of hanging an attribute object off the decl.

* c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
field instead of hanging an attribute object off the decl.
* tree.h (DECL_VISIBLITY): New accessor macro for
symbol_visibility field in struct tree_decl.
(enum symbol_visibility): Move definition to before tree_decl.
(struct tree_decl): Define new two-bit field, symbol_visibility.
(decl_visibility): Remove declaration.
* varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
instead of decl_visibility.
(default_binds_local_p_1):  Use DECL_VISIBILITY instead of
decl_visibility.
(decl_visibility): Remove.
* cp/decl.c (duplicate_decls): copy DECL_VISIBILITY field.
* cp/method.c (use_thunk): give thunk same visibility as function.
* cp/optimize.c (maybe_clone_body): copy DECL_VISIBILITY field.

From-SVN: r73320

21 years agos390.c (s390_emit_epilogue): Recognize more cases where register 14 will be saved.
Ulrich Weigand [Thu, 6 Nov 2003 22:05:38 +0000 (22:05 +0000)]
s390.c (s390_emit_epilogue): Recognize more cases where register 14 will be saved.

* config/s390/s390.c (s390_emit_epilogue): Recognize more cases
where register 14 will be saved.

From-SVN: r73319

21 years agors6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
Geoffrey Keating [Thu, 6 Nov 2003 21:52:36 +0000 (21:52 +0000)]
rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.

* config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
(USE_ALTIVEC_FOR_ARG_P): Likewise.
* config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
Take a pointer as the CUM parameter.  Update callers.
(USE_ALTIVEC_FOR_ARG_P): Likewise.  Also correct for Darwin/AIX
32-bit ABIs.
(function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P.  Correct case
of vector parameters as named arguments of stdarg function.
(function_arg): Likewise.

* config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
-maltivec is specified, not the non-existent -faltivec.

From-SVN: r73317

21 years agos390-protos.h (s390_function_value): Declare.
Ulrich Weigand [Thu, 6 Nov 2003 21:35:10 +0000 (21:35 +0000)]
s390-protos.h (s390_function_value): Declare.

* config/s390/s390-protos.h (s390_function_value): Declare.
* config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
(s390_return_in_memory): New function.
(s390_function_value): New function.
(s390_function_arg_float): Return false for all arguments larger
than 8 bytes.
(s390_function_arg_pass_by_reference): Likewise.  Return true for
all vector arguments.
(s390_function_arg_integer): New function.
(s390_function_arg_advance): Call it.  Add sanity checks.
(s390_function_arg): Likewise.
* config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
(LIBCALL_VALUE): Likewise.
(RET_REG): Remove.
(RETURN_IN_MEMORY): Remove.

From-SVN: r73314

21 years agoprep_cif.c (ffi_prep_cif): Move the validity check after the initialization.
Andreas Tobler [Thu, 6 Nov 2003 15:47:41 +0000 (16:47 +0100)]
prep_cif.c (ffi_prep_cif): Move the validity check after the initialization.

2003-11-06  Andreas Tobler  <a.tobler@schweiz.ch>

* src/prep_cif.c (ffi_prep_cif): Move the validity check after
the initialization.

From-SVN: r73309

21 years agoexpr.c (java_stack_swap): Make sure destination stack slots are of the correct type.
Andrew Haley [Thu, 6 Nov 2003 15:19:49 +0000 (15:19 +0000)]
expr.c (java_stack_swap): Make sure destination stack slots are of the correct type.

2003-11-06  Andrew Haley  <aph@redhat.com>

        * expr.c (java_stack_swap): Make sure destination stack slots are
        of the correct type.

From-SVN: r73306

21 years agomips-protos.h (mips_initial_elimination_offset): Change return type to HOST_WIDE_INT.
Richard Sandiford [Thu, 6 Nov 2003 11:22:03 +0000 (11:22 +0000)]
mips-protos.h (mips_initial_elimination_offset): Change return type to HOST_WIDE_INT.

* config/mips/mips-protos.h (mips_initial_elimination_offset): Change
return type to HOST_WIDE_INT.
* config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
Make initialized a bool.  Make register masks unsigned ints.
(compute_frame_size): Make same mask change here.  Use HOST_WIDE_INT
where appropriate.
(mips_initial_elimination_offset): Return a HOST_WIDE_INT.
(mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.

From-SVN: r73303

21 years agofrv.c (frv_initial_elimination_offset): Remove bogus negation.
Richard Sandiford [Thu, 6 Nov 2003 10:54:08 +0000 (10:54 +0000)]
frv.c (frv_initial_elimination_offset): Remove bogus negation.

* config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
negation.

From-SVN: r73302

21 years ago* config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
Richard Sandiford [Thu, 6 Nov 2003 10:53:04 +0000 (10:53 +0000)]
* config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.

From-SVN: r73301

21 years agomips.c (override_options): Set MASK_SOFT_FLOAT for VR4111 too.
Momchil Velikov [Thu, 6 Nov 2003 10:31:58 +0000 (12:31 +0200)]
mips.c (override_options): Set MASK_SOFT_FLOAT for VR4111 too.

* config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
for VR4111 too.

From-SVN: r73300

21 years ago*** empty log message ***
Momchil Velikov [Thu, 6 Nov 2003 10:29:16 +0000 (10:29 +0000)]
*** empty log message ***

From-SVN: r73299

21 years agobuiltins.c (simplify_builtin_strrchr, [...]): Add missing casts.
Jan Hubicka [Thu, 6 Nov 2003 09:00:33 +0000 (10:00 +0100)]
builtins.c (simplify_builtin_strrchr, [...]): Add missing casts.

* builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
missing casts.

From-SVN: r73296

21 years agogenmodes.c: Change the word "bitsize" to "precision" throughout.
Zack Weinberg [Thu, 6 Nov 2003 08:38:52 +0000 (08:38 +0000)]
genmodes.c: Change the word "bitsize" to "precision" throughout.

* genmodes.c: Change the word "bitsize" to "precision" throughout.
* machmode.def: Likewise.
* machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
(GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
(GET_MODE_PRECISION): New macro.
(mode_bitsize): Renamed mode_precision.
* stor-layout.c (mode_for_size, smallest_mode_for_size):
Use GET_MODE_PRECISION; clarify comments.
ada:
* misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
and update for changed meaning of GET_MODE_BITSIZE.

From-SVN: r73295

21 years agoDaily bump.
GCC Administrator [Thu, 6 Nov 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73289

21 years agoinstall-old.texi: Remove old documentation of building cross-compilers.
Joseph Myers [Wed, 5 Nov 2003 22:26:58 +0000 (22:26 +0000)]
install-old.texi: Remove old documentation of building cross-compilers.

* doc/install-old.texi: Remove old documentation of building
cross-compilers.
* doc/install.texi: Move some of it to here.

From-SVN: r73283

21 years agoAdd PR preprocessor/12891 to Per's last patch.
Andrew Pinski [Wed, 5 Nov 2003 21:24:31 +0000 (13:24 -0800)]
Add PR preprocessor/12891 to  Per's last patch.

From-SVN: r73282

21 years agoc-opts.c (finish_options): Set include_cursor to disable premature calls to push_comm...
Per Bothner [Wed, 5 Nov 2003 21:09:04 +0000 (21:09 +0000)]
c-opts.c (finish_options): Set include_cursor to disable premature calls to push_command_line_include from...

* c-opts.c (finish_options):  Set include_cursor to disable premature
calls to push_command_line_include from cpp_scan_nooutput.
Fixes bug reported by DJ Delorie.

From-SVN: r73281

21 years ago20031023-4.c: XFAIL on SPARC64
Eric Botcazou [Wed, 5 Nov 2003 20:15:02 +0000 (21:15 +0100)]
20031023-4.c: XFAIL on SPARC64

* gcc.c-torture/compile/20031023-4.c: XFAIL on SPARC64
* gcc.c-torture/compile/simd-5.c: XFAIL on SPARC64 at -O0 and -O1.
* gcc.c-torture/execute/simd-4.x: New file.  XFAIL on SPARC at -O0.
* gcc.c-torture/execute/va-arg-25.x: New file.  XFAIL on SPARC.
* gcc.dg/uninit-C.c: XFAIL on non 64-bit Solaris versions.

From-SVN: r73280

21 years agoAdd PR optimization/10080 to Zdenek Dvorak's last commit.
Andrew Pinski [Wed, 5 Nov 2003 19:20:48 +0000 (11:20 -0800)]
Add PR optimization/10080 to Zdenek Dvorak's last commit.

From-SVN: r73279

21 years agors6000.c (setup_incoming_varargs): Remove code supporting old-style varargs.
Geoffrey Keating [Wed, 5 Nov 2003 18:24:53 +0000 (18:24 +0000)]
rs6000.c (setup_incoming_varargs): Remove code supporting old-style varargs.

* config/rs6000/rs6000.c (setup_incoming_varargs): Remove
code supporting old-style varargs.

From-SVN: r73278

21 years agors6000.c (rs6000_machopic_legitimize_pic_address): Use an intermediate register for...
Geoffrey Keating [Wed, 5 Nov 2003 18:21:30 +0000 (18:21 +0000)]
rs6000.c (rs6000_machopic_legitimize_pic_address): Use an intermediate register for better optimisation.

* config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
an intermediate register for better optimisation.

From-SVN: r73277

21 years agors6000.c (compute_vrsave_mask): Correct off-by-one error.
Geoffrey Keating [Wed, 5 Nov 2003 18:17:20 +0000 (18:17 +0000)]
rs6000.c (compute_vrsave_mask): Correct off-by-one error.

* config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
error.

From-SVN: r73276

21 years agocfgloopanal.c (variable_initial_value, [...]): Record the fact that initial value...
Zdenek Dvorak [Wed, 5 Nov 2003 18:10:44 +0000 (19:10 +0100)]
cfgloopanal.c (variable_initial_value, [...]): Record the fact that initial value is extended from inner mode.

* cfgloopanal.c (variable_initial_value, variable_initial_values,
simple_loop_exit_p): Record the fact that initial value is extended
from inner mode.
(count_strange_loop_iterations, count_loop_iterations): Handle
ivs that iterate in a narrower mode. Fix handling of overflows.
Improve handling of NE conditions.
(inverse, fits_in_mode_p): New static functions.
(simple_increment): Detect variables that iterate in a narrower mode.
* cfgloop.h (struct loop_desc): Fields inner_mode and extend added.

From-SVN: r73275

21 years agodarwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin needs VRSAVE.
Geoffrey Keating [Wed, 5 Nov 2003 18:06:22 +0000 (18:06 +0000)]
darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin needs VRSAVE.

* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
needs VRSAVE.

From-SVN: r73274

21 years agoc-typeck.c (pedantic_lvalue_warning): Deprecate use of conditional expressions as...
Joseph Myers [Wed, 5 Nov 2003 17:53:04 +0000 (17:53 +0000)]
c-typeck.c (pedantic_lvalue_warning): Deprecate use of conditional expressions as lvalues.

* c-typeck.c (pedantic_lvalue_warning): Deprecate use of
conditional expressions as lvalues.

testsuite:
* gcc.dg/cond-lvalue-1.c: New test.

From-SVN: r73273

21 years agoFix date.
Andreas Jaeger [Wed, 5 Nov 2003 17:31:17 +0000 (18:31 +0100)]
Fix date.

From-SVN: r73272

21 years agoasm1.C: Enable for e.g.
Gernot Hillier [Wed, 5 Nov 2003 17:30:50 +0000 (18:30 +0100)]
asm1.C: Enable for e.g.

2003-11-03  Gernot Hillier  <gernot.hillier@siemens.com>

* g++.old-deja/g++.pt/asm1.C: Enable for e.g. x86_64-*-linux-gnu.

From-SVN: r73271

21 years agore PR c++/11616 (Error message "instantiated from here" gives wrong location)
Kriang Lerdsuwanakij [Wed, 5 Nov 2003 14:37:57 +0000 (14:37 +0000)]
re PR c++/11616 (Error message "instantiated from here" gives wrong location)

PR c++/11616
* pt.c (instantiate_pending_templates): Save and restore
input_location.

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

From-SVN: r73269

21 years agore PR c++/2019 (Wrong line number warning listing the previous declaration of a befri...
Kriang Lerdsuwanakij [Wed, 5 Nov 2003 13:56:01 +0000 (13:56 +0000)]
re PR c++/2019 (Wrong line number warning listing the previous declaration of a befriended function)

PR c++/2019
* friend.c (add_friend): Don't display previous declaration in
case of duplicate friend warning.

From-SVN: r73268

21 years agoResync Ada changes.
Arnaud Charlet [Wed, 5 Nov 2003 13:48:42 +0000 (14:48 +0100)]
Resync Ada changes.

From-SVN: r73267

21 years agotsystem.h: Add the prototype of strlen.
Kazu Hirata [Wed, 5 Nov 2003 05:17:16 +0000 (05:17 +0000)]
tsystem.h: Add the prototype of strlen.

* tsystem.h: Add the prototype of strlen.
* unwind-pe.h (read_encoded_value_with_base): Add an
appropriate cast to handle a case where the pointer size is
smaller than sizeof (int).

From-SVN: r73265

21 years agoChangeLog: Remove extraneous '>>>>'.
Jeffrey D. Oldham [Wed, 5 Nov 2003 04:38:44 +0000 (04:38 +0000)]
ChangeLog: Remove extraneous '>>>>'.

2003-11-04  Jeffrey D. Oldham  <oldham@codesourcery.com>

* ChangeLog: Remove extraneous '>>>>'.

From-SVN: r73264