Commit Graph

46779 Commits

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

From-SVN: r60364
2002-12-20 13:02:42 +00:00
GCC Administrator
0c58a6399d Daily bump.
From-SVN: r60363
2002-12-20 08:18:11 +00:00
Kazu Hirata
5bdc58781b c-pretty-print.h: Fix comment typos.
* c-pretty-print.h: Fix comment typos.
	* integrate.c: Likewise.
	* varasm.c: Likewise.
	* config/c4x/c4x.h: Likewise.
	* config/c4x/c4x.md: Likewise.
	* config/fr30/fr30.md: Likewise.
	* config/frv/frv.c: Likewise.
	* config/h8300/h8300.c: Likewise.
	* config/i386/i386.c: Likewise.
	* config/i386/i386.h: Likewise.
	* config/ia64/ia64.c: Likewise.
	* config/ia64/ia64.h: Likewise.
	* config/ip2k/ip2k.md: Likewise.
	* config/m68hc11/m68hc11-crt0.S: Likewise.
	* config/m68hc11/m68hc11.h: Likewise.
	* config/m68hc11/m68hc11.md: Likewise.
	* config/m68hc11/m68hc12.h: Likewise.
	* config/mcore/mcore.md: Likewise.
	* config/mips/mips.c: Likewise.
	* config/mips/mips.md: Likewise.
	* config/mmix/mmix-modes.def: Likewise.
	* config/pa/pa.c: Likewise.
	* config/rs6000/rs6000.c: Likewise.
	* config/rs6000/rs6000.h: Likewise.
	* config/rs6000/rs6000.md: Likewise.

From-SVN: r60354
2002-12-20 04:30:57 +00:00
Kazu Hirata
539dbd15f3 h8300.md (output_a_shift): Clean up the code to output shifts using rotation.
* config/h8300/h8300.md (output_a_shift): Clean up the code to
	output shifts using rotation.

From-SVN: r60353
2002-12-20 04:05:14 +00:00
Anthony Green
7a163ec05c Makefile.am (ordinary_java_source_files): Add org/xml/sax/helpers/NewInstance.java.
2002-12-19  Anthony Green  <green@redhat.com>

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

From-SVN: r60350
2002-12-20 03:49:20 +00:00
Andrew Haley
51d6eed48e natResourceBundle.cc: Include ArrayIndexOutOfBoundsException.h.
2002-12-19  Andrew Haley  <aph@redhat.com>

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

From-SVN: r60348
2002-12-20 02:06:21 +00:00
Tom Tromey
4dfde20672 * libtool-version: Increased `current'.
From-SVN: r60346
2002-12-20 01:47:54 +00:00
Zdenek Dvorak
e505be8547 * flow.c (allocate_reg_life_data): Reset REG_FREQ.
From-SVN: r60344
2002-12-20 01:18:43 +00:00
Kazu Hirata
191ff85279 h8300.md (pushqi_h8300): Don't push the stack pointer.
* config/h8300/h8300.md (pushqi_h8300): Don't push the stack
	pointer.
	(pushqi_h8300hs): Likewise.
	(pushhi_h8300): Likewise.
	(pushhi_h8300hs): Likewise.

From-SVN: r60343
2002-12-20 00:08:06 +00:00
Devang Patel
3ab68120e2 Add support for darwin linker option -dynamic.
From-SVN: r60341
2002-12-19 15:46:49 -08:00
J"orn Rennecke
b2dfd40f47 * sched-rgn.c (init_regions): Update comment.
From-SVN: r60340
2002-12-19 23:45:40 +00:00
David Edelsohn
310b9b1d76 rs6000.md (define_attr type): Remove altivec.
* config/rs6000/rs6000.md (define_attr type): Remove altivec.
        * config/rs6000/altivec.md (movv4si_internal): Set correct instruction
        attributes.
        (movv8hi_internal,movv16qi_internal,movv4sf_internal): Same.
        (get_vrsave_internal,set_vrsave_internal): Same.
        (altivec_vspltisb,altivec_vspltish,altivec_vspltisw): Same.
        (absv16qi2,absv8hi2,absv4si2,absv4sf2): Same
        (altivec_abss_v16qi,altivec_abss_v8hi,altivec_abss_v4si): Same.

From-SVN: r60339
2002-12-19 18:04:55 -05:00
Casper S. Hornstrup
e91f04de4b i386.c (ix86_handle_cdecl_attribute): Check for attributes incompatible with fastcall attribute.
* config/i386/i386.c (ix86_handle_cdecl_attribute): Check for
        attributes incompatible with fastcall attribute.
        (ix86_handle_regparm_attribute): Likewise.

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

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

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

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

From-SVN: r60337
2002-12-19 14:00:33 -08:00
Nathanael Nerode
61138bb628 configure.in: FORBUILD when build!=host changed from ../$build-alias to ../build-$build_alias...
* configure.in: FORBUILD when build!=host changed from
	../$build-alias to ../build-$build_alias to match change made
	in top directory.
	* configure: Regenerated.

From-SVN: r60336
2002-12-19 21:44:30 +00:00
Eric Botcazou
039baf9e87 re PR rtl-optimization/8988 (gcc3.2 and 3.2.1 with -O2 and -mcpu=i386 generates code that segfaults)
PR optimization/8988
	* loop.c (maybe_eliminate_biv): Kill REG_EQUAL notes mentioning
	the biv when eliminating.

From-SVN: r60334
2002-12-19 20:47:12 +00:00
Devang Patel
ee8acf894e This was approved for 3.4 BIB branch.
This was approved for 3.4 BIB branch. But since it is dead now, I am putting
this in mainline sources.

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

From-SVN: r60330
2002-12-19 12:34:43 -08:00
Nathanael Nerode
aace32692e Fix date typo
From-SVN: r60327
2002-12-19 20:27:49 +00:00
Nathanael Nerode
346b290d6d Makefile.tpl: Revert HJL's change.
* Makefile.tpl: Revert HJL's change.
	* Makefile.in: Regenerated.
	* configure.in: Put build_prefix before $(BUILD_SUBDIR) here, and
	always.

From-SVN: r60326
2002-12-19 20:23:50 +00:00
Aldy Hernandez
598119bb20 re PR other/8553 (AltiVec vec_abs broken at -O0 with register keyword)
2002-12-19  Aldy Hernandez  <aldyh@redhat.com>

	PR 8553

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

From-SVN: r60324
2002-12-19 19:57:29 +00:00
Ulrich Weigand
3af97654cd s390.md ("*tsthiCCT", [...]): New insns.
* config/s390/s390.md ("*tsthiCCT", "*tsthiCCT_cconly",
	"*tstqiCCT", "*tstqiCCT_cconly"): New insns.

From-SVN: r60322
2002-12-19 19:55:12 +00:00
Aldy Hernandez
7f04df0d2d add PR# to last fix
From-SVN: r60321
2002-12-19 19:49:27 +00:00
Tom Tromey
a1aba4f9a5 natClassLoader.cc (defineClass0): Removed erroneous comment.
* java/lang/natClassLoader.cc (defineClass0): Removed erroneous
	comment.
	* java/lang/ClassLoader.java (defineClass): Use chained
	exception when rethrowing.
	* defineclass.cc (handleClassBegin): Mark class as interpreted.
	* java/lang/reflect/Modifier.java (INVISIBLE, INTERPRETED): New
	constants.
	* resolve.cc (_Jv_PrepareMissingMethods): New function.
	(_Jv_PrepareClass): Use it.
	* include/java-interp.h (_Jv_IsInterpretedClass): Rewrote.
	(_Jv_InterpClass): _Jv_PrepareMissingMethods now friend.
	* java/lang/Class.h (Class::getModifiers): Mask with ALL_FLAGS.
	(Class): _Jv_PrepareMissingMethods now friend.
	* java/lang/natClassLoader.cc (defineClass0): Use JvSynchronize.
	Record `NULL' for system class loader.
	(_Jv_RegisterInitiatingLoader): Use JvSynchronize.  Special case
	system class loader.
	(_Jv_FindClassInCache): Likewise.
	(_Jv_UnregisterClass): Use JvSynchronize.  Free old loader info.
	(_Jv_FindClass): Special case system class loader.
	* java/lang/natClass.cc (_Jv_abstractMethodError): New function.
	(_Jv_SetVTableEntries): Put _Jv_abstractMethodError into empty
	vtable slots.
	(_Jv_LayoutVTableMethods): Don't generate vtable slot for a method
	in a final class.
	(_getDeclaredMethod): Don't return synthetic methods.
	(getDeclaredMethods): Likewise.
	(_getMethod): Likewise.
	(_getMethods): Likewise.

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

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

From-SVN: r60314
2002-12-19 12:16:26 -05:00
Eric Botcazou
e54b4cae03 re PR target/8340 (ICE on x86 inline asm w/ -fPIC)
PR target/8340
	* stmt.c (expand_asm_operands): Produce an error when
	the PIC register is clobbered.

From-SVN: r60313
2002-12-19 17:06:46 +00:00
Daniel Berlin
7f22efe1d6 Makefile.in (OBJS): Add alloc-pool.o
2002-12-18  Daniel Berlin  <dberlin@dberlin.org>

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

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

From-SVN: r60312
2002-12-19 15:53:46 +00:00
Kriang Lerdsuwanakij
da9701a61c re PR c++/8099 (Friend classes and template specializations)
PR c++/8099
	* friend.c (make_friend_class): Allow partial specialization
	when declaration is not a template friend.

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

From-SVN: r60308
2002-12-19 15:11:29 +00:00
Kriang Lerdsuwanakij
cab7a9a3b9 re PR c++/3663 (G++ doesn't check access control during template instanation)
PR c++/3663
	* pt.c (lookup_template_class): Copy TREE_PRIVATE and
	TREE_PROTECTED to created decl nodes.

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

From-SVN: r60307
2002-12-19 14:45:19 +00:00
Kazu Hirata
7f60195472 * intdoc.in: Fix typos.
From-SVN: r60306
2002-12-19 14:27:13 +00:00
Andreas Schwab
f089514211 Makefile.tpl, [...]: Substitute libstdcxx_incdir.
* Makefile.tpl, configure.in: Substitute libstdcxx_incdir.
	* Makefile.in: Regenerate.

From-SVN: r60303
2002-12-19 11:01:21 +00:00
Benjamin Kosnik
b5ff3a9077 documentation.html: Add link for debug.html.
2002-12-18  Benjamin Kosnik  <bkoz@redhat.com>

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

From-SVN: r60302
2002-12-19 08:18:14 +00:00
GCC Administrator
c034372c80 Daily bump.
From-SVN: r60301
2002-12-19 08:18:11 +00:00
Jason Merrill
4f7c4327d4 omit needless braces
From-SVN: r60293
2002-12-19 02:29:28 -05:00
Raif Naffah
a17cf75b73 BigInteger.java (euclidInv): Make sure quot and rem are in canonical form after divide().
2002-12-18  Raif Naffah  <raif@fl.net.au>

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

From-SVN: r60292
2002-12-19 06:59:46 +00:00
Andrew Haley
71d082af2f re PR libgcj/8945 (StringTokenizer)
2002-12-18  Andrew Haley  <aph@redhat.com>

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

From-SVN: r60290
2002-12-19 06:43:12 +00:00
Tom Tromey
453eac4a7d pr8945.java: New file.
* libjava.lang/pr8945.java: New file.
	* libjava.lang/pr8945.out: New file.

From-SVN: r60286
2002-12-19 06:40:03 +00:00
Loren James Rittle
5a0ba8c9ee gcc.c (validate_switches): Robustify against skipping past '\0'.
2002-12-18  Loren James Rittle  <rittle@labs.mot.com>

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

From-SVN: r60283
2002-12-19 05:22:53 +00:00
Geoffrey Keating
064b6c700a config.gcc: Set extra_objs in the generic Darwin rule, not in the machine-specific rules.
* config.gcc: Set extra_objs in the generic Darwin rule,
	not in the machine-specific rules.

From-SVN: r60282
2002-12-19 05:19:47 +00:00
Kazu Hirata
272d0bee76 ChangeLog: Follow spelling conventions.
* ChangeLog: Follow spelling conventions.
	* ChangeLog.2: Likewise.
	* ChangeLog.4: Likewise.
	* ChangeLog.5: Likewise.
	* cppexp.c: Likewise.
	* df.c: Likewise.
	* gcov.c: Likewise.
	* gengtype.c: Likewise.
	* reload1.c: Likewise.
	* sched-rgn.c: Likewise.
	* stmt.c: Likewise.
	* stor-layout.c: Likewise.
	* timevar.c: Likewise.
	* toplev.c: Likewise.
	* tree.h: Likewise.
	* varasm.c: Likewise.
	* config/fr30/fr30.md: Likewise.
	* config/i386/i386.c: Likewise.
	* config/ia64/ia64.c: Likewise.
	* config/pa/pa.c: Likewise.

From-SVN: r60281
2002-12-19 05:18:13 +00:00
Roger Sayle
358ecb103a * basic-block.h (flow_bb_inside_loop_p): Correct prototype.
From-SVN: r60279
2002-12-19 02:59:15 +00:00
Mark Mitchell
50cb905943 class.c (build_base_field): Do not set DECL_PACKED on the FIELD_DECL.
* class.c (build_base_field): Do not set DECL_PACKED on the
	FIELD_DECL.

From-SVN: r60277
2002-12-19 02:31:50 +00:00
Kaveh R. Ghazi
58c3ef5c9e vector_capacity.cc (test03): Move ...
* testsuite/23_containers/vector_capacity.cc (test03): Move ...
	* testsuite/23_containers/vector_resize.cc: ...here as a new file.
	Pass in -lmalloc for irix6.
	* testsuite/27_io/ios_base_storage.cc: Pass in -lmalloc for irix6.

From-SVN: r60276
2002-12-19 01:54:59 +00:00
H.J. Lu
782d0c0231 Makefile.tpl: Add @build_prefix@ before $(BUILD_SUBDIR).
2002-12-18  H.J. Lu <hjl@gnu.org>

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

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

From-SVN: r60272
2002-12-18 16:51:33 -08:00
Kazu Hirata
e1618452c3 g77.texi: Fix typos.
* g77.texi: Fix typos.
	* intdoc.texi: Likewise.
	* news.texi: Follow spelling conventions.

From-SVN: r60271
2002-12-19 00:27:52 +00:00
Aldy Hernandez
d486dec6f0 altivec.h (vec_cmplt macro): Reverse arguments in macro.
2002-12-18  Aldy Hernandez  <aldyh@redhat.com>

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

From-SVN: r60269
2002-12-18 23:44:18 +00:00
Geoffrey Keating
40b4cdbfa9 t-rs6000: Move contents to t-fprules...
* config/rs6000/t-rs6000: Move contents to t-fprules,
	add rules for dependencies of rs6000.o and to build rs6000-c.o
	* config/rs6000/t-fprules: New file from t-rs6000.
	* config/rs6000/t-beos: Remove soft-fp rules.
	* config/rs6000/t-ppccomm: Likewise.
	* config/rs6000/t-newas: Likewise.
	* config/rs6000/t-rs6000-c-rule: Delete.
	* config.gcc: Use t-fprules for rs6000/ ports when appropriate.
	Use t-rs6000 for all rs6000/ ports instead of t-rs6000-c-rule.
	Create generic Darwin rules.

From-SVN: r60265
2002-12-18 22:45:36 +00:00
Geoffrey Keating
892aebc9f1 * gengenrtl.c (gencode): Delete unnecessary rtl_obstack declaration.
From-SVN: r60264
2002-12-18 22:37:49 +00:00
Jason Merrill
b197bc0172 new test
From-SVN: r60263
2002-12-18 15:00:28 -05:00
Doug Evans
9d3030465c m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P and LIT_NAME_P.
* m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
	and LIT_NAME_P.
	(move_src_operand): Remove compile-time warning.
	* m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.

From-SVN: r60262
2002-12-18 19:23:58 +00:00