platform/upstream/gcc.git
20 years ago2003-09-25 Michael Koch <konqueror@gmx.de>
Michael Koch [Thu, 25 Sep 2003 10:17:00 +0000 (10:17 +0000)]
2003-09-25  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/DatagramChannelImpl.java
(DatagramChannelImpl): Made class final.
(blocking): Made private.
(socket): Made it a NIODatagramSocket and private.
(DatagramChannelImpl): create NIODatagramSocket instead of
DatagramSocket.
(implConfigureBlocking): Set socket timeout.
(connect): Check that channel is not closed.
(write): Implemented.
(write): Rewritten.
(read): Implemented.
(read): Rewritten.
(receive): Implemented.
(send): Implemented.
* gnu/java/nio/SelectionKeyImpl.java
(readyOps): Made private.
(interestOps): Made private.
(impl): Made private.
(ch): Made private.
(readyOps): Check if selection key is valid.
(interestOps): Likewise.
* gnu/java/nio/SelectorImpl.java
(closed): Removed.
(keys): Made private.
(selected): Made private.
(finalize): New method.
(implCloseSelector): Rewritten.
(keys): Return unmodifiable Set.
(deregisterCancelledKeys): Fixed typo in method name.
* gnu/java/nio/SocketChannelImpl.java
(SocketChannelImpl): Made class final.
(socket): Made it a NIOSocket and private.
(blocking): Made private.
(connected): Made private.
(connectionPending): New member variable.
(SocketChannelImpl): New implementation.
(finalizer): Use isConnected().
(connect): Rewritten.
(finishConnect): Throws IOException, implemented.
(isConnectionPending): Return connectionPending.
(read): Rewritten.
(write): Rewritten.
* gnu/java/nio/NIOConstants.java: New file.
* Makefile.am (ordinary_java_source_files):
Added gnu/java/nio/NIOConstants.java.
* Makefile.in: Regenerated.

From-SVN: r71769

20 years agoarm.c (all_cores): arm710t, arm720t and arm740t are all based on the arm7tdmi core.
Richard Earnshaw [Thu, 25 Sep 2003 08:53:49 +0000 (08:53 +0000)]
arm.c (all_cores): arm710t, arm720t and arm740t are all based on the arm7tdmi core.

* arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
arm7tdmi core.

From-SVN: r71768

20 years agoInetAddress.java: Reorder imports, remove implementation comment.
Michael Koch [Thu, 25 Sep 2003 08:22:56 +0000 (08:22 +0000)]
InetAddress.java: Reorder imports, remove implementation comment.

2003-09-25  Michael Koch  <konqueror@gmx.de>

* java/net/InetAddress.java:
Reorder imports, remove implementation comment.
(isMulticastAddress): Merged documentation from classpath.
* java/net/URLConnection.java
(setRequestProperty): Check key for null, fix documentation.
(adREquestProperty): Check key for null, remove wrong implementation
and replace it with comment to overwrite this method in subclasses,
fix documentation.

From-SVN: r71767

20 years agodarwin-protos.h (objc_image_info_section): New prototype.
Ziemowit Laski [Thu, 25 Sep 2003 08:09:42 +0000 (08:09 +0000)]
darwin-protos.h (objc_image_info_section): New prototype.

2003-09-25  Ziemowit Laski  <zlaski@apple.com>

        * config/darwin-protos.h (objc_image_info_section):
        New prototype.

From-SVN: r71766

20 years agoProxy.java (generate): Uncomment protection domain code.
Tom Tromey [Thu, 25 Sep 2003 07:46:19 +0000 (07:46 +0000)]
Proxy.java (generate): Uncomment protection domain code.

* java/lang/reflect/Proxy.java (generate): Uncomment protection
domain code.
* java/lang/natClassLoader.cc (defineClass): Added `loader'
argument.
(linkClass0): Now in VMClassLoader.
(markClassErrorState0): Likewise.
(getSystemClassLoaderInternal): New method.
* java/lang/natClass.cc (initializeClass): Use
VMClassLoader::resolveClass.
* java/lang/ClassLoader.java: New version, from Classpath.
* java/lang/Class.java (getProtectionDomain):
protectionDomainPermission and unknownProtectionDomain now in
VMClassLoader.
* java/lang/Class.h: VMClassLoader now a friend class.
* gnu/gcj/runtime/VMClassLoader.java (instance): Now
package-private.
* gcj/javaprims.h: Regenerated class list.
* resolve.cc (_Jv_PrepareClass): Use VMClassLoader::resolveClass.
* java/lang/VMClassLoader.java: New version from Classpath;
modified for libgcj use.

From-SVN: r71765

20 years agoMakefile.in (stub-objc.o): Depend on $(GGC_H).
Ziemowit Laski [Thu, 25 Sep 2003 07:33:38 +0000 (07:33 +0000)]
Makefile.in (stub-objc.o): Depend on $(GGC_H).

2003-09-25  Ziemowit Laski  <zlaski@apple.com>

        * Makefile.in (stub-objc.o): Depend on $(GGC_H).

From-SVN: r71764

20 years agoconfig.gcc: Get rid of more gratuitious 'x'es.
Nathanael Nerode [Thu, 25 Sep 2003 07:30:57 +0000 (07:30 +0000)]
config.gcc: Get rid of more gratuitious 'x'es.

* config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
tsc701 as a --with-cpu, --with-tune setting for sparc.

From-SVN: r71763

20 years agocp-parse.in (objc_try_stmt): Do not specify a %type.
Ziemowit Laski [Thu, 25 Sep 2003 07:17:02 +0000 (07:17 +0000)]
cp-parse.in (objc_try_stmt): Do not specify a %type.

2003-09-25  Ziemowit Laski  <zlaski@apple.com>

        * cp-parse.in (objc_try_stmt): Do not specify a %type.

From-SVN: r71762

20 years agoconfig.gcc: New 'widely ported system' clause for rtems.
Nathanael Nerode [Thu, 25 Sep 2003 07:12:41 +0000 (07:12 +0000)]
config.gcc: New 'widely ported system' clause for rtems.

* config.gcc: New 'widely ported system' clause for rtems.
Set thread file there, not in individual clauses.

From-SVN: r71761

20 years agomips.c (mips_va_arg): Handle arguments that must be passed on the stack.
Richard Sandiford [Thu, 25 Sep 2003 07:04:05 +0000 (07:04 +0000)]
mips.c (mips_va_arg): Handle arguments that must be passed on the stack.

* config/mips/mips.c (mips_va_arg): Handle arguments that must be
passed on the stack.

From-SVN: r71760

20 years agoconfig.gcc (widely ported systems section): Mostly alphabetize by system.
Nathanael Nerode [Thu, 25 Sep 2003 07:00:01 +0000 (07:00 +0000)]
config.gcc (widely ported systems section): Mostly alphabetize by system.

* config.gcc (widely ported systems section): Mostly alphabetize
by system.  Comment the case where we can't.

From-SVN: r71759

20 years agoForgot to add in last commit.
Michael Koch [Thu, 25 Sep 2003 06:56:06 +0000 (06:56 +0000)]
Forgot to add in last commit.

From-SVN: r71758

20 years agoByteBufferHelper.java: New file.
Michael Koch [Thu, 25 Sep 2003 06:43:52 +0000 (06:43 +0000)]
ByteBufferHelper.java: New file.

2003-09-25  Michael Koch  <konqueror@gmx.de>

* java/nio/ByteBufferHelper.java:
New file.
* java/nio/ByteBufferImpl.java,
java/nio/DirectByteBufferImpl.java,
java/nio/MappedByteBufferImpl.java
(getType,putType): Use new helper class ByteBufferHelper.
* Makefile.am (ordinary_java_source_files):
Added java/nio/ByteBufferHelper.java.
* Makefile.in: Regenerated.

From-SVN: r71757

20 years ago* config.gcc (widely ported systems section): Reindent and clean up.
Nathanael Nerode [Thu, 25 Sep 2003 06:29:23 +0000 (06:29 +0000)]
* config.gcc (widely ported systems section): Reindent and clean up.

From-SVN: r71756

20 years agoconfig.gcc: Remove some unnecessary uses of 'x' in case statements.
Nathanael Nerode [Thu, 25 Sep 2003 05:52:28 +0000 (05:52 +0000)]
config.gcc: Remove some unnecessary uses of 'x' in case statements.

* config.gcc: Remove some unnecessary uses of 'x' in case statements.
Actually allow ep9312 as an arm --with-arch setting.

From-SVN: r71755

20 years ago* config.gcc (*-hpux11): Disable fixproto.
Nathanael Nerode [Thu, 25 Sep 2003 05:25:18 +0000 (05:25 +0000)]
* config.gcc (*-hpux11): Disable fixproto.

From-SVN: r71752

20 years agore PR pch/12112 (Putting PCH files in a directory completely broken)
Phil Edwards [Thu, 25 Sep 2003 04:46:44 +0000 (04:46 +0000)]
re PR pch/12112 (Putting PCH files in a directory completely broken)

2003-09-24  Phil Edwards  <phil@codesourcery.com>

PR pch/12112
* gcc/cppfiles.c (pch_open_file): Return based on combined
        result of all files.
(validate_pch): Return validate flag for current file.

From-SVN: r71751

20 years agore PR libgcj/12388 (mingw32 target fails to build libjava)
Bryce McKinlay [Thu, 25 Sep 2003 03:04:41 +0000 (03:04 +0000)]
re PR libgcj/12388 (mingw32 target fails to build libjava)

* gnu/java/net/natPlainSocketImplWin32.cc: Add missing #includes.
PR libgcj/12388.

From-SVN: r71750

20 years agore PR bootstrap/12358 (Bootstrap comparison failure!)
Roger Sayle [Thu, 25 Sep 2003 02:12:13 +0000 (02:12 +0000)]
re PR bootstrap/12358 (Bootstrap comparison failure!)

PR bootstrap/12358
* fold-const.c (tree_swap_operands_p): Only reorder operands when
one of the operands is constant.

From-SVN: r71749

20 years agoMERGE OF objc-improvements-branch into MAINLINE.
Ziemowit Laski [Thu, 25 Sep 2003 01:26:01 +0000 (01:26 +0000)]
MERGE OF objc-improvements-branch into MAINLINE.

2003-09-24  Ziemowit Laski  <zlaski@apple.com>

        MERGE OF objc-improvements-branch into MAINLINE.
See 'gcc/ChangeLog' and 'gcc/testsuite/ChangeLog' for
the gory details.

From-SVN: r71748

20 years agoDaily bump.
GCC Administrator [Thu, 25 Sep 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r71746

20 years agocpplib.c (do_pragma): Reintroduce cb_line_change call in the code path that calls...
Alexandre Oliva [Wed, 24 Sep 2003 23:53:07 +0000 (23:53 +0000)]
cpplib.c (do_pragma): Reintroduce cb_line_change call in the code path that calls a handler.

* cpplib.c (do_pragma): Reintroduce cb_line_change call in the
code path that calls a handler.

From-SVN: r71744

20 years ago* gcc.dg/cpp/Wunknown-pragmas-1.c: New test.
Alexandre Oliva [Wed, 24 Sep 2003 23:52:32 +0000 (23:52 +0000)]
* gcc.dg/cpp/Wunknown-pragmas-1.c: New test.

From-SVN: r71743

20 years agoconfig.gcc (c4x-*, [...]): Disable fixproto.
Nathanael Nerode [Wed, 24 Sep 2003 22:33:00 +0000 (22:33 +0000)]
config.gcc (c4x-*, [...]): Disable fixproto.

* config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
Disable fixproto.

From-SVN: r71740

20 years agoconfig.gcc: Clean up and reindent $with_cpu=yes|no clause and the section giving...
Nathanael Nerode [Wed, 24 Sep 2003 21:34:14 +0000 (21:34 +0000)]
config.gcc: Clean up and reindent $with_cpu=yes|no clause and the section giving $with_cpu...

* config.gcc: Clean up and reindent $with_cpu=yes|no clause and
the section giving $with_cpu defaults by target.

From-SVN: r71738

20 years agoconfig.gcc (arm-*-coff*, [...]): Disable fixproto.
Nathanael Nerode [Wed, 24 Sep 2003 21:24:44 +0000 (21:24 +0000)]
config.gcc (arm-*-coff*, [...]): Disable fixproto.

* config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
i[34567]86-pc-msdosdjgpp*): Disable fixproto.

From-SVN: r71737

20 years agors6000.md (movti_power): Collapse case 1 and 2 together.
David Edelsohn [Wed, 24 Sep 2003 19:32:46 +0000 (19:32 +0000)]
rs6000.md (movti_power): Collapse case 1 and 2 together.

        * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
        together.  Protect load string instruction with TARGET_STRING.
        (movti_string): Collapse case 1 and 2 together.

From-SVN: r71736

20 years ago* class.c (build_utf8_ref): Test for HAVE_GAS_SHF_MERGE value.
Rainer Orth [Wed, 24 Sep 2003 13:07:25 +0000 (13:07 +0000)]
* class.c (build_utf8_ref): Test for HAVE_GAS_SHF_MERGE value.

From-SVN: r71733

20 years ago* c-common.c (c_common_type_for_mode): Check for VOIDmode.
Nathan Sidwell [Wed, 24 Sep 2003 09:15:21 +0000 (09:15 +0000)]
* c-common.c (c_common_type_for_mode): Check for VOIDmode.

From-SVN: r71732

20 years agoarm.h (ASM_OUTPUT_REG_PUSH, [...]): Wrap in do...while(0)
Richard Earnshaw [Wed, 24 Sep 2003 09:06:32 +0000 (09:06 +0000)]
arm.h (ASM_OUTPUT_REG_PUSH, [...]): Wrap in do...while(0)

* arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
do...while(0)

From-SVN: r71731

20 years ago* config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
Geoffrey Keating [Wed, 24 Sep 2003 07:49:13 +0000 (07:49 +0000)]
* config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.

From-SVN: r71728

20 years agoStringBuffer.java (substring): Don't set `shared' on small Strings, even if buffer...
Bryce McKinlay [Wed, 24 Sep 2003 06:19:24 +0000 (06:19 +0000)]
StringBuffer.java (substring): Don't set `shared' on small Strings, even if buffer is already shared.

* java/lang/StringBuffer.java (substring): Don't set `shared' on
small Strings, even if buffer is already shared.

From-SVN: r71726

20 years agoacinclude.m4 (AM_LC_LOCALES): Added check for locale.h.
Michael Koch [Wed, 24 Sep 2003 05:39:23 +0000 (05:39 +0000)]
acinclude.m4 (AM_LC_LOCALES): Added check for locale.h.

2003-09-24  Michael Koch  <konqueror@gmx.de>

* acinclude.m4 (AM_LC_LOCALES): Added check for locale.h.

From-SVN: r71725

20 years agoPlainSocketImpl.java (read): Remove declaration.
Bryce McKinlay [Wed, 24 Sep 2003 05:38:36 +0000 (05:38 +0000)]
PlainSocketImpl.java (read): Remove declaration.

* gnu/java/net/PlainSocketImpl.java (read): Remove declaration.
(write): Likewise.
(SocketInputStream, SocketOutputStream): Declare `read' and `write'
native. Remove implementations which called back into
PlainSocketImpl.
Remove unneccessary overridden methods.
* gnu/java/net/natPlainSocketImplNoNet.cc (read): Move
implementation
to inner class PlainSocketImpl.SocketInputStream.
(write): Likewise.
* gnu/java/net/natPlainSocketImplPosix.cc: As above.
* gnu/java/net/natPlainSocketImplWin32.cc: As above.
* gnu/java/net/SocketInputStream.java: Remove unused file.
* gnu/java/net/SocketOutputStream.java: Likewise.
* Makefile.am: Build CNI headers for PlainSocketImpl.SocketInputStream
and SocketOutputStream.
* Makefile.in: Rebuilt.

From-SVN: r71724

20 years agoconfig.gcc: Move use_fixproto=no from generic vxworks clause to specific one.
Nathanael Nerode [Wed, 24 Sep 2003 04:09:00 +0000 (04:09 +0000)]
config.gcc: Move use_fixproto=no from generic vxworks clause to specific one.

* config.gcc: Move use_fixproto=no from generic vxworks clause to
specific one.

From-SVN: r71723

20 years agoconfig.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto (accidentally missed in...
Nathanael Nerode [Wed, 24 Sep 2003 04:03:46 +0000 (04:03 +0000)]
config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto (accidentally missed in last pass).

* config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
(accidentally missed in last pass).

From-SVN: r71722

20 years agore PR bootstrap/12383 (Bootstrap fails in dwarf2out with `HAVE_GAS_SHF_MERGE' undeclared)
Andrew Pinski [Wed, 24 Sep 2003 03:56:49 +0000 (03:56 +0000)]
re PR bootstrap/12383 (Bootstrap fails in dwarf2out with `HAVE_GAS_SHF_MERGE' undeclared)

2003-09-23  Andrew Pinski  <apinski@apple.com>

        PR bootstrap/12383
        * configure: Regenerate.

From-SVN: r71721

20 years agoconfig.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally missed in last pass).
Nathanael Nerode [Wed, 24 Sep 2003 03:52:29 +0000 (03:52 +0000)]
config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally missed in last pass).

* config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
missed in last pass).

From-SVN: r71720

20 years agomn10300.md (andsi3): Fix cut&pasto in 0xfffffffe constant.
Alexandre Oliva [Wed, 24 Sep 2003 02:56:46 +0000 (02:56 +0000)]
mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe constant.

* config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
constant.

From-SVN: r71718

20 years ago* config.gcc: Move vax-*-vms* unsupported notice up with the rest.
Nathanael Nerode [Wed, 24 Sep 2003 02:42:13 +0000 (02:42 +0000)]
* config.gcc: Move vax-*-vms* unsupported notice up with the rest.

From-SVN: r71715

20 years agoconfig.gcc (alpha64*-dec-*vms*, [...]): Disable fixproto.
Nathanael Nerode [Wed, 24 Sep 2003 02:37:52 +0000 (02:37 +0000)]
config.gcc (alpha64*-dec-*vms*, [...]): Disable fixproto.

* config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
powerpcle-*-eabi*): Disable fixproto.

From-SVN: r71714

20 years agoconfig.gcc: Move use_fixproto=no from generic FreeBSD clause to specific FreeBSD...
Nathanael Nerode [Wed, 24 Sep 2003 02:28:51 +0000 (02:28 +0000)]
config.gcc: Move use_fixproto=no from generic FreeBSD clause to specific FreeBSD clauses.

* config.gcc: Move use_fixproto=no from generic FreeBSD clause to
specific FreeBSD clauses.

From-SVN: r71713

20 years agoconfig.gcc: Move use_fixproto=no from generic NetBSD clause to specific NetBSD clauses.
Nathanael Nerode [Wed, 24 Sep 2003 02:19:38 +0000 (02:19 +0000)]
config.gcc: Move use_fixproto=no from generic NetBSD clause to specific NetBSD clauses.

* config.gcc: Move use_fixproto=no from generic NetBSD clause to
specific NetBSD clauses.

From-SVN: r71712

20 years agoconfig.gcc: Move use_fixproto=no from generic OpenBSD clause to specific OpenBSD...
Nathanael Nerode [Wed, 24 Sep 2003 02:10:04 +0000 (02:10 +0000)]
config.gcc: Move use_fixproto=no from generic OpenBSD clause to specific OpenBSD clauses.

* config.gcc: Move use_fixproto=no from generic OpenBSD clause
to specific OpenBSD clauses.

From-SVN: r71711

20 years ago* java/lang/System.java: Add GCJ LOCAL note about encoding aliases.
Nathanael Nerode [Wed, 24 Sep 2003 01:56:56 +0000 (01:56 +0000)]
* java/lang/System.java: Add GCJ LOCAL note about encoding aliases.

From-SVN: r71710

20 years agopa.c (hppa_expand_prologue): Do pic register save in frame marker without adding...
John David Anglin [Wed, 24 Sep 2003 01:38:32 +0000 (01:38 +0000)]
pa.c (hppa_expand_prologue): Do pic register save in frame marker without adding a frame note.

* pa.c (hppa_expand_prologue): Do pic register save in frame marker
without adding a frame note.
* pa.md (allocate_stack): Save pic register in new frame marker when
generating pic code.

From-SVN: r71709

20 years agoDaily bump.
GCC Administrator [Wed, 24 Sep 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r71706

20 years agocgraphunit.c (cgraph_expand_all_functions): Renamed from cgraph_expand_functions.
Kelley Cook [Wed, 24 Sep 2003 00:05:42 +0000 (00:05 +0000)]
cgraphunit.c (cgraph_expand_all_functions): Renamed from cgraph_expand_functions.

2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>

* cgraphunit.c (cgraph_expand_all_functions): Renamed from
cgraph_expand_functions.

From-SVN: r71704

20 years agoMakefile.in (gnucompare*): Merge into ...
Kaveh R. Ghazi [Tue, 23 Sep 2003 22:57:53 +0000 (22:57 +0000)]
Makefile.in (gnucompare*): Merge into ...

* Makefile.in (gnucompare*): Merge into ...
(slowcompare*): ... here.
(fastcompare*): New targets.
* aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
other "fast" cmp programs.
* configure: Regenerate.

From-SVN: r71703

20 years agotarghooks.c: Include output.h.
Rainer Orth [Tue, 23 Sep 2003 22:33:30 +0000 (22:33 +0000)]
targhooks.c: Include output.h.

* targhooks.c: Include output.h.
* Makefile.in (targhooks.o): Add output.h to dependency list.

From-SVN: r71702

20 years ago* config.host: Removed superfluous newline.
Rainer Orth [Tue, 23 Sep 2003 22:29:01 +0000 (22:29 +0000)]
* config.host: Removed superfluous newline.

From-SVN: r71701

20 years agoconfig.gcc: Use ${target}, not $machine.
Nathanael Nerode [Tue, 23 Sep 2003 21:51:44 +0000 (21:51 +0000)]
config.gcc: Use ${target}, not $machine.

* config.gcc: Use ${target}, not $machine.
* configure.in: Don't set $machine.
* configure: Regenerate.

From-SVN: r71700

20 years agoFloat.java, [...]: Add GCJ LOCAL markers.
Nathanael Nerode [Tue, 23 Sep 2003 21:42:40 +0000 (21:42 +0000)]
Float.java, [...]: Add GCJ LOCAL markers.

* java/lang/Float.java, java/lang/Double.java: Add GCJ LOCAL
markers.

From-SVN: r71699

20 years agors6000.c (function_arg_pass_by_reference): Don't pass zero-size arrays by reference.
Geoffrey Keating [Tue, 23 Sep 2003 21:37:32 +0000 (21:37 +0000)]
rs6000.c (function_arg_pass_by_reference): Don't pass zero-size arrays by reference.

2003-09-23  Geoffrey Keating  <geoffk@apple.com>

* config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
pass zero-size arrays by reference.
(rs6000_va_arg): Likewise.

2003-09-23  Geoffrey Keating  <geoffk@apple.com>

* gcc.dg/darwin-abi-1.c: New file.

From-SVN: r71698

20 years agoconfig.gcc: Set use_fixproto=no in each specific *-gnu* configuration...
Nathanael Nerode [Tue, 23 Sep 2003 20:16:59 +0000 (20:16 +0000)]
config.gcc: Set use_fixproto=no in each specific *-gnu* configuration...

* config.gcc: Set use_fixproto=no in each specific *-gnu*
configuration, rather than the generic one.

From-SVN: r71695

20 years agolocale_facets.tcc: Tweak to avoid warnings.
Benjamin Kosnik [Tue, 23 Sep 2003 20:03:30 +0000 (20:03 +0000)]
locale_facets.tcc: Tweak to avoid warnings.

2003-09-23  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/locale_facets.tcc: Tweak to avoid warnings.
* testsuite/testsuite_hooks.h: Same.
* testsuite/*/*.cc: Same.

From-SVN: r71693

20 years agotree-inline.c (remap_save_expr): Map new save_expr to identity rather than to error_m...
Richard Henderson [Tue, 23 Sep 2003 20:02:48 +0000 (13:02 -0700)]
tree-inline.c (remap_save_expr): Map new save_expr to identity rather than to error_mark_node.

        * tree-inline.c (remap_save_expr): Map new save_expr to identity
        rather than to error_mark_node.

From-SVN: r71692

20 years agoconfigure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
Rainer Orth [Tue, 23 Sep 2003 19:47:00 +0000 (19:47 +0000)]
configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.

* configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
Update description.
* configure: Regenerate.
* config.in: Likewise.
* dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
HAVE_GAS_SHF_MERGE value.
* varasm.c (mergeable_string_section): Likewise.
(mergeable_constant_section): Likewise.

From-SVN: r71691

20 years agoexcept.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO value.
Rainer Orth [Tue, 23 Sep 2003 19:29:56 +0000 (19:29 +0000)]
except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO value.

* except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
value.

From-SVN: r71690

20 years agotarget.h (struct gcc_target): New member external_libcall.
Rainer Orth [Tue, 23 Sep 2003 19:17:49 +0000 (19:17 +0000)]
target.h (struct gcc_target): New member external_libcall.

* target.h (struct gcc_target): New member external_libcall.
* target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
(TARGET_ASM_OUT): Use it.
* doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
* targhooks.c: Convert to ISO C 90.
(default_external_libcall): New function.
* targhooks.h (default_external_libcall): Declare.
* varasm.c (assemble_external_libcall): Use
targetm.asm_out.external_libcall instead of
ASM_OUTPUT_EXTERNAL_LIBCALL.
* config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
(mips_output_external_libcall): Declare.
* config/mips/mips.c (mips_output_external_libcall): Change
definition guard.
Change to match TARGET_ASM_EXTERNAL_LIBCALL.
Only operate for O32 ABI.
* config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
* config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
superceded by TARGET_ASM_EXTERNAL_LIBCALL.

From-SVN: r71689

20 years agoCorrect gpr_or_gpr_p ChangeLog entry.
David Edelsohn [Tue, 23 Sep 2003 18:56:57 +0000 (14:56 -0400)]
Correct gpr_or_gpr_p ChangeLog entry.

From-SVN: r71688

20 years agoconfig.gcc: Do per-target disabling of fixproto here in clauses, not in t- fragments.
Nathanael Nerode [Tue, 23 Sep 2003 18:56:00 +0000 (18:56 +0000)]
config.gcc: Do per-target disabling of fixproto here in clauses, not in t- fragments.

* config.gcc: Do per-target disabling of fixproto here in clauses,
not in t- fragments.
* configure.in: Adjust to set STMP_FIXPROTO correctly.
* configure: Regenerate.
* config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
* config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
t-interix, t-linux-aout:  Delete files consisting only of
setting of STMP_FIXPROTO.

From-SVN: r71687

20 years agoconfig.host: Allow unknown hosts (not targets).
Nathanael Nerode [Tue, 23 Sep 2003 18:52:45 +0000 (18:52 +0000)]
config.host: Allow unknown hosts (not targets).

* config.host: Allow unknown hosts (not targets).  Allow
ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
empty clauses.  Remove useless obsolete-configuration clause.
Prune unsupported configuration list.  Collapse identical
clauses for closely related systems.  Rewrite comment for
unsupported hosts list.  Reorganize a little.

From-SVN: r71686

20 years agoMAINTAINERS: Move myself from 'Write After Approval' to 'Various Maintainers' section...
Andreas Tobler [Tue, 23 Sep 2003 17:34:37 +0000 (19:34 +0200)]
MAINTAINERS: Move myself from 'Write After Approval' to 'Various Maintainers' section as...

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

* MAINTAINERS: Move myself from 'Write After Approval' to
'Various Maintainers' section as libffi testsuite maintainer.

From-SVN: r71685

20 years agojcf-write.c (generate_bytecode_insns): Optimize binary operations with equal operands...
Roger Sayle [Tue, 23 Sep 2003 15:49:53 +0000 (15:49 +0000)]
jcf-write.c (generate_bytecode_insns): Optimize binary operations with equal operands without side-effects.

* jcf-write.c (generate_bytecode_insns): Optimize binary operations
with equal operands without side-effects.

From-SVN: r71684

20 years agocp-tree.h (scope_kind): Add new enumerator.
Gabriel Dos Reis [Tue, 23 Sep 2003 15:42:21 +0000 (15:42 +0000)]
cp-tree.h (scope_kind): Add new enumerator.

* cp-tree.h (scope_kind): Add new enumerator.
(keep_next_level): Change parameter type to bool.
(begin_scope):  Change prototype.
(pushlevel): Remove declaration.
* decl.c (push_binding_level): Fold in begin_scope.  Remove.
(struct cp_binding_level): Remove tag_tranparent field.  Make keep
of bitsize one.
(keep_next_level_flag): Make a bool.
(cxx_scope_descriptor): Update scope names table
(make_cxx_scope): Fold in begin_scope.  Remove..
(namespace_scope_ht_size): New function.
(begin_scope): Change prototype.  Return a scope.  Tidy.
(kept_level_p): Update.
(pushlevel): Remove.
(maybe_push_cleanup_level): Simplify.
(poplevel): Update for sk_cleanup and keep change.
(print_binding_level): Likewise.
(initial_push_namespace_scope): Fold in begin_scope.  Remove.
(push_namespace): Update.
(pushtag): Likewise.
(lookup_tag): Likewise.
(lookup_name_current_level): Likewise.
(lookup_type_current_level): Likewise.
(cxx_init_decl_processing): Likewise.
(start_function): Likewise.
(begin_function_body): Likewise.
(start_method): Likewise.
* pt.c (push_inline_template_parms_recursive): Likewise.
(begin_template_parm_list): Likewise.
(begin_specialization): Likewise.
* semantics.c (do_pushlevel): Likewise.
(begin_compound_stmt): Likewise.
(begin_stmt_expr): Likewise.

From-SVN: r71683

20 years agoc-common.c (c_common_signed_or_unsigned_type): Examine mode, not precision.
Richard Henderson [Tue, 23 Sep 2003 06:04:14 +0000 (23:04 -0700)]
c-common.c (c_common_signed_or_unsigned_type): Examine mode, not precision.

        * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
        not precision.
* g++.dg/opt/enum1.C: New.

From-SVN: r71677

20 years agodecl.c (java_init_decl_processing): Don't emit otable decls if flag_indirect_dispatch...
Jeff Sturm [Tue, 23 Sep 2003 03:05:30 +0000 (03:05 +0000)]
decl.c (java_init_decl_processing): Don't emit otable decls if flag_indirect_dispatch is not set.

* decl.c (java_init_decl_processing): Don't emit otable decls
if flag_indirect_dispatch is not set.

From-SVN: r71674

20 years agors6000.c (altivec_in_gprs_p): Rename to ...
David Edelsohn [Tue, 23 Sep 2003 02:03:55 +0000 (02:03 +0000)]
rs6000.c (altivec_in_gprs_p): Rename to ...

        * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
        (gpr_or_gpr_p): Change to bool.
        (rs6000_split_altivec_in_gprs): Rename to ...
        (rs6000_split_multireg_move): Add support for update addressing.
        * config/rs6000/rs6000-protos.h: Same.
        * config/rs6000/altivec.md: Same.
        * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
        multiple GPRs.
        (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
        (movti_power): Use new splitter for multiple GPRs.
        (movti_string): Same.
        (movti_ppc64): Same.

Co-Authored-By: Hartmut Penner <hpenner@de.ibm.com>
From-SVN: r71673

20 years agoDaily bump.
GCC Administrator [Tue, 23 Sep 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r71671

20 years agoxtensa-protos.h: Convert to ISO C90.
Bob Wilson [Mon, 22 Sep 2003 23:19:45 +0000 (23:19 +0000)]
xtensa-protos.h: Convert to ISO C90.

* config/xtensa/xtensa-protos.h: Convert to ISO C90.
* config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.

From-SVN: r71669

20 years agomn10300.md: Revert 2003-09-17's patch.
Alexandre Oliva [Mon, 22 Sep 2003 20:13:40 +0000 (20:13 +0000)]
mn10300.md: Revert 2003-09-17's patch.

* config/mn10300/mn10300.md: Revert 2003-09-17's patch.
(andsi3): Set attr cc to set_zn when using shifts or adds.

From-SVN: r71663

20 years agoistream.tcc (basic_istream::read, [...]): Avoid redundant setstate(failbit) calls...
Petur Runolfsson [Mon, 22 Sep 2003 18:29:56 +0000 (18:29 +0000)]
istream.tcc (basic_istream::read, [...]): Avoid redundant setstate(failbit) calls when sentry::operator bool() returns false.

2003-09-22  Petur Runolfsson  <peturr02@ru.is>

* include/bits/istream.tcc (basic_istream::read,
basic_istream::readsome, basic_istream::putback,
basic_istream::unget, operator>>(basic_istream, CharT)):
Avoid redundant setstate(failbit) calls when sentry::operator bool()
returns false.

From-SVN: r71662

20 years ago* doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
Bernardo Innocenti [Mon, 22 Sep 2003 17:43:57 +0000 (19:43 +0200)]
* doc/contrib.texi: Add Peter Barada, Paul Dale and myself.

From-SVN: r71660

20 years agofloatformat.h (struct floatformat): Add field "is_valid".
Andrew Cagney [Mon, 22 Sep 2003 17:42:03 +0000 (17:42 +0000)]
floatformat.h (struct floatformat): Add field "is_valid".

2003-09-22  Andrew Cagney  <cagney@redhat.com>

* floatformat.h (struct floatformat): Add field "is_valid".

2003-09-22  Andrew Cagney  <cagney@redhat.com>

* floatformat.c (floatformat_i387_ext_is_valid): New function.
(floatformat_always_valid): New function.
(floatformat_i387_ext): Initialize new "is_valid" field to
"floatformat_i387_ext_is_valid".
(floatformat_ieee_single_little): Initialize "is_valid" field to
floatformat_always_valid.
(floatformat_ieee_double_big): Ditto.
(floatformat_ieee_double_little): Ditto.
(floatformat_ieee_double_little): Ditto.
(floatformat_ieee_double_littlebyte_bigword): Ditto.
(floatformat_i960_ext): Ditto.
(floatformat_m88110_ext): Ditto.
(floatformat_m88110_harris_ext): Ditto.
(floatformat_arm_ext_big): Ditto.
(floatformat_arm_ext_littlebyte_bigword): Ditto.
(floatformat_ia64_spill_big): Ditto.
(floatformat_ia64_spill_little): Ditto.
(floatformat_ia64_quad_big): Ditto.
(floatformat_ia64_quad_little): Ditto.
(floatformat_ia64_quad_little): Ditto.
(floatformat_is_valid): Call "is_valid".

From-SVN: r71659

20 years agom68k.h (MASK_RTD, [...]): Resurrect -mrtd option.
Bernardo Innocenti [Mon, 22 Sep 2003 17:35:06 +0000 (19:35 +0200)]
m68k.h (MASK_RTD, [...]): Resurrect -mrtd option.

* config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
Resurrect -mrtd option.

From-SVN: r71658

20 years agoAnother newlib fix.
Anthony Green [Mon, 22 Sep 2003 16:04:24 +0000 (16:04 +0000)]
Another newlib fix.

From-SVN: r71655

20 years agoAnother newlib fix
Anthony Green [Mon, 22 Sep 2003 16:00:23 +0000 (16:00 +0000)]
Another newlib fix

From-SVN: r71654

20 years agore PR libstdc++/12365 (include/g++/bits/demangle.h:155: warning: unused parameter...
Carlo Wood [Mon, 22 Sep 2003 14:39:16 +0000 (14:39 +0000)]
re PR libstdc++/12365 (include/g++/bits/demangle.h:155: warning: unused parameter 'cv_qualifier')

2003-09-22  Carlo Wood  <carlo@alinoe.com>

PR libstdc++/12365
* include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
char const*, int, int)): Remove unused identifier
cv_qualifier for overloaded constructor.

From-SVN: r71653

20 years agogcc_release (announce_snapshot): Restructure processing of snapshot-README and snapsh...
Gerald Pfeifer [Mon, 22 Sep 2003 14:29:20 +0000 (14:29 +0000)]
gcc_release (announce_snapshot): Restructure processing of snapshot-README and snapshot-index.html and add a new...

* gcc_release (announce_snapshot): Restructure processing
of snapshot-README and snapshot-index.html and add a new
substitution for @EXPORT@.

From-SVN: r71652

20 years agore PR libgcj/12350 (StringBuffer.substring handles shared flag incorrected.)
Ralph Loader [Mon, 22 Sep 2003 08:17:49 +0000 (08:17 +0000)]
re PR libgcj/12350 (StringBuffer.substring handles shared flag incorrected.)

2003-09-21  Ralph Loader  <suckfish@ihug.co.nz>

        PR java/12350:
        * java/lang/StringBuffer.java (substring): Fix handling of shared
        flag.

2003-09-21  Ralph Loader  <suckfish@ihug.co.nz>

        PR java/12350
        * libjava.lang/PR12350.java: New file.
        * libjava.lang/PR12350.out: New file.

From-SVN: r71651

20 years agojni.cc (_Jv_LookupJNIMethod): Remove workaround that should hide a compiler warning...
Michael Koch [Mon, 22 Sep 2003 08:05:51 +0000 (08:05 +0000)]
jni.cc (_Jv_LookupJNIMethod): Remove workaround that should hide a compiler warning but produces a different...

2003-09-22  Michael Koch  <konqueror@gmx.de>

* jni.cc (_Jv_LookupJNIMethod): Remove workaround that should hide a
compiler warning but produces a different one now.

From-SVN: r71650

20 years agoInetAddress.java: Moves around some code, reformats and adds documentation.
Michael Koch [Mon, 22 Sep 2003 07:56:44 +0000 (07:56 +0000)]
InetAddress.java: Moves around some code, reformats and adds documentation.

2003-09-22  Michael Koch  <konqueror@gmx.de>

* java/net/InetAddress.java:
Moves around some code, reformats and adds documentation.
No functional changes.

From-SVN: r71649

20 years agore PR target/12281 (not emiting function which is static and marked as inline)
Andrew Pinski [Mon, 22 Sep 2003 07:18:09 +0000 (07:18 +0000)]
re PR target/12281 (not emiting function which is static and marked as inline)

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

        PR target/12281
        * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
        mark_referenced instead of setting TREE_SYMBOL_REFERENCED.

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

        PR target/12281
        * gcc.c-torture/compile/20030921-1.c: New test.

From-SVN: r71648

20 years agore PR target/9786 (Ice in fixup_abnormal_edges with -fnon-call-exceptions -O2)
Eric Botcazou [Mon, 22 Sep 2003 06:59:51 +0000 (06:59 +0000)]
re PR target/9786 (Ice in fixup_abnormal_edges with -fnon-call-exceptions -O2)

PR target/9786
* reg-stack.c (convert_regs_1): Purge possible dead eh edges
after potential deletion of trapping insn. Avoids later ICE
from call to fixup_abnormal_edges.
(convert_regs_2): Stack the current block successors before
processing this block, that is, before the potential deletion of
dead edges by convert_regs_1, because these edges have been used
to initialize the predecessors count.

From-SVN: r71644

20 years ago2003-09-22 Michael Koch <konqueror@gmx.de>
Michael Koch [Mon, 22 Sep 2003 05:48:32 +0000 (05:48 +0000)]
2003-09-22  Michael Koch  <konqueror@gmx.de>

* java/net/JarURLConnection.java
(JarURLConnection): Modifed code to match classpath more, fixed comment.
(getCertificates): Made it more error prone.
(getMainAttributes): Likewise.
(getAttributes): Implemented.
(getManifest): Reformatted code.

From-SVN: r71643

20 years ago* real.c: Fix several nits in the head comment.
Eric Botcazou [Mon, 22 Sep 2003 05:46:51 +0000 (07:46 +0200)]
* real.c: Fix several nits in the head comment.

From-SVN: r71642

20 years agoRevert DECL_SOURCE_LOCATION -> TREE_LOCUS change.
Richard Henderson [Mon, 22 Sep 2003 05:09:32 +0000 (22:09 -0700)]
Revert DECL_SOURCE_LOCATION -> TREE_LOCUS change.

From-SVN: r71641

20 years agoDaily bump.
GCC Administrator [Mon, 22 Sep 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r71638

20 years agotree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
Richard Henderson [Sun, 21 Sep 2003 23:39:40 +0000 (16:39 -0700)]
tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.

* tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
(TREE_FILENAME, TREE_LINENO): Likewise.
(set_tree_locus, copy_tree_locus, set_tree_file_line): New.
(TREE_LOCUS_SET_P): New.
* c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.

ada/
* trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
change to const.

cp/
* class.c, cp-tree.h, decl.c, decl2.c, error.c, init.c,
method.c, optimize.c, pt.c, semantics.c, tree.c: Update for
DECL_SOURCE_LOCATION rename and change to const.

f/
* com.c, ste.c: Update for DECL_SOURCE_LOCATION rename and
change to const.

java/
* class.c, decl.c, jcf-parse.c, jcf-write.c, parse.y,
resource.c: Update for DECL_SOURCE_LOCATION rename and change to const.

treelang/
* treetree.c: Update for DECL_SOURCE_LOCATION rename and
change to const.

From-SVN: r71636

20 years ago* config/vax/vax-protos.h: Convert to ISO C90.
Nathanael Nerode [Sun, 21 Sep 2003 20:03:06 +0000 (20:03 +0000)]
* config/vax/vax-protos.h: Convert to ISO C90.

From-SVN: r71632

20 years ago* config/vax/vax.c: Convert to ISO C90.
Nathanael Nerode [Sun, 21 Sep 2003 19:51:24 +0000 (19:51 +0000)]
* config/vax/vax.c: Convert to ISO C90.

From-SVN: r71631

20 years agoconfigure.in: Pass a computed --program-transform-name to subconfigures.
Daniel Jacobowitz [Sun, 21 Sep 2003 19:32:22 +0000 (19:32 +0000)]
configure.in: Pass a computed --program-transform-name to subconfigures.

* configure.in: Pass a computed --program-transform-name
to subconfigures.
* configure: Regenerated.

From-SVN: r71630

20 years agonews.texi: Update with fixed PR's.
Toon Moene [Sun, 21 Sep 2003 16:19:01 +0000 (18:19 +0200)]
news.texi: Update with fixed PR's.

2003-09-21  Toon Moene  <toon@moene.indiv.nluug.nl>

* news.texi: Update with fixed PR's.

From-SVN: r71629

20 years agore PR libf2c/11918 (isatty does not call f_init)
Toon Moene [Sun, 21 Sep 2003 16:16:46 +0000 (18:16 +0200)]
re PR libf2c/11918 (isatty does not call f_init)

2003-09-21  Toon Moene  <toon@moene.indiv.nluug.nl>

PR libf2c/11918
* fstat_.c: Call f_init().
* isatty_.c: Ditto.
* fnum_.c: Check file descriptor before handing it back.

From-SVN: r71628

20 years agore PR target/12353 (ICE in copyprop_hardreg_forward_1)
Graham Stott [Sun, 21 Sep 2003 15:27:00 +0000 (15:27 +0000)]
re PR target/12353 (ICE in copyprop_hardreg_forward_1)

       PR target/12353
       * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.

From-SVN: r71627

20 years agog77.texi: Remove ancient part about debugging COMMON and EQUIVALENCE not correctly.
George Helffrich [Sun, 21 Sep 2003 13:26:36 +0000 (13:26 +0000)]
g77.texi: Remove ancient part about debugging COMMON and EQUIVALENCE not correctly.

2003-09-21  George Helffrich  <bugzilla@w170.uklinux.net>

* g77.texi: Remove ancient part about debugging COMMON
and EQUIVALENCE not correctly.

From-SVN: r71623

20 years agore PR target/12301 (corruption in exception path, exception in returned expression)
Eric Botcazou [Sun, 21 Sep 2003 08:17:48 +0000 (08:17 +0000)]
re PR target/12301 (corruption in exception path, exception in returned expression)

PR target/12301
* reorg.c (stop_search_p): Return 1 for insns that can
throw internally.

From-SVN: r71620

20 years agoc-format.c (gcc_diag_char_table): Add %J.
Richard Henderson [Sun, 21 Sep 2003 05:07:20 +0000 (22:07 -0700)]
c-format.c (gcc_diag_char_table): Add %J.

        * c-format.c (gcc_diag_char_table): Add %J.
        (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
        (check_format_types): Fix wanted_type name lookup.
        (init_dynamic_diag_info): Setup %J.
        * diagnostic.c (text_specifies_location): Implement %J.
        * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
        dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
        tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
        config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
        config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.

        * tree-inline.c: Include intl.h
        (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
        * Makefile.in (tree-inline.o): Update.
cp/
        * decl.c, decl2.c, pt.c: Use %J in diagnostics.
java/
        * check-init.c, class.c, decl.c, expr.c: Use %J in diagnostics.
testsuite/
        * gcc.dg/format/gcc_diag-1.c: Add tests for %J.

From-SVN: r71619

20 years agoi386.c (ix86_expand_carry_flag_compare): Fix transformation of a>=0 into (unsigned...
Roger Sayle [Sun, 21 Sep 2003 02:22:45 +0000 (02:22 +0000)]
i386.c (ix86_expand_carry_flag_compare): Fix transformation of a>=0 into (unsigned)a<0x80000000.

* config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
transformation of a>=0 into (unsigned)a<0x80000000.

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

From-SVN: r71618