1. 21 Dec, 2002 4 commits
  2. 20 Dec, 2002 18 commits
  3. 19 Dec, 2002 18 commits
    • Add support for darwin linker option -dynamic. · 3ab68120
      From-SVN: r60341
      Devang Patel committed
    • * sched-rgn.c (init_regions): Update comment. · b2dfd40f
      From-SVN: r60340
      J"orn Rennecke committed
    • rs6000.md (define_attr type): Remove altivec. · 310b9b1d
              * 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
      David Edelsohn committed
    • i386.c (ix86_handle_cdecl_attribute): Check for attributes incompatible with fastcall attribute. · e91f04de
              * 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
      Casper S. Hornstrup committed
    • configure.in: FORBUILD when build!=host changed from ../$build-alias to ../build-$build_alias... · 61138bb6
      
      	* 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
      Nathanael Nerode committed
    • re PR rtl-optimization/8988 (gcc3.2 and 3.2.1 with -O2 and -mcpu=i386 generates… · 039baf9e
      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
      Eric Botcazou committed
    • This was approved for 3.4 BIB branch. · ee8acf89
      
      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
      Devang Patel committed
    • Fix date typo · aace3269
      From-SVN: r60327
      Nathanael Nerode committed
    • Makefile.tpl: Revert HJL's change. · 346b290d
      
      	* Makefile.tpl: Revert HJL's change.
      	* Makefile.in: Regenerated.
      	* configure.in: Put build_prefix before $(BUILD_SUBDIR) here, and
      	always.
      
      From-SVN: r60326
      Nathanael Nerode committed
    • re PR other/8553 (AltiVec vec_abs broken at -O0 with register keyword) · 598119bb
      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
      Aldy Hernandez committed
    • s390.md ("*tsthiCCT", [...]): New insns. · 3af97654
      	* config/s390/s390.md ("*tsthiCCT", "*tsthiCCT_cconly",
      	"*tstqiCCT", "*tstqiCCT_cconly"): New insns.
      
      From-SVN: r60322
      Ulrich Weigand committed
    • add PR# to last fix · 7f04df0d
      From-SVN: r60321
      Aldy Hernandez committed
    • natClassLoader.cc (defineClass0): Removed erroneous comment. · a1aba4f9
      	* 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
      Tom Tromey committed
    • tweak · 38540594
      From-SVN: r60316
      Jason Merrill committed
    • Handle anonymous unions at the tree level. · 92f93e54
              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
      Jason Merrill committed
    • Handle anonymous unions at the tree level. · 0ca7178c
              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
      Jason Merrill committed
    • re PR target/8340 (ICE on x86 inline asm w/ -fPIC) · e54b4cae
      	PR target/8340
      	* stmt.c (expand_asm_operands): Produce an error when
      	the PIC register is clobbered.
      
      From-SVN: r60313
      Eric Botcazou committed
    • Makefile.in (OBJS): Add alloc-pool.o · 7f22efe1
      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
      Daniel Berlin committed