This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Follow up to my earlier patch (MIPS/Alpha/Interix)


Thanks to the regression checker, I discovered that my earlier patch
which eliminated clk_objective_c caused the MIPS bootstrap to fail
(see below). Looking at the config/ subdirectories, I noticed that
at least two other targets will likely have problems. Below,
I offer a patch for all three. Presumably, the maintainers of the
respective back-ends should check this in, but I can do it as
well, if such is the will of the people.

Index: gcc/config/mips/mips.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.h,v
retrieving revision 1.211
diff -c -3 -p -r1.211 mips.h
*** gcc/config/mips/mips.h 7 Aug 2002 02:57:53 -0000 1.211
--- gcc/config/mips/mips.h 10 Aug 2002 06:06:14 -0000
*************** extern void sbss_section PARAMS ((void)
*** 488,494 ****
builtin_define ("__LANGUAGE_C_PLUS_PLUS"); \
builtin_define ("__LANGUAGE_C_PLUS_PLUS__"); \
} \
! else if (c_language == clk_objective_c) \
{ \
builtin_define ("_LANGUAGE_OBJECTIVE_C"); \
builtin_define ("__LANGUAGE_OBJECTIVE_C"); \
--- 488,494 ----
builtin_define ("__LANGUAGE_C_PLUS_PLUS"); \
builtin_define ("__LANGUAGE_C_PLUS_PLUS__"); \
} \
! if (flag_objc) \
{ \
builtin_define ("_LANGUAGE_OBJECTIVE_C"); \
builtin_define ("__LANGUAGE_OBJECTIVE_C"); \

Index: gcc/config/i386/i386-interix.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386-interix.h,v
retrieving revision 1.35
diff -c -3 -p -r1.35 i386-interix.h
*** gcc/config/i386/i386-interix.h 5 Aug 2002 18:53:16 -0000 1.35
--- gcc/config/i386/i386-interix.h 10 Aug 2002 06:14:04 -0000
*************** Boston, MA 02111-1307, USA. */
*** 72,78 ****
builtin_define_std ("LANGUAGE_C"); \
if (c_language == clk_cplusplus) \
builtin_define_std ("LANGUAGE_C_PLUS_PLUS"); \
! else if (c_language == clk_objective_c) \
builtin_define_std ("LANGUAGE_OBJECTIVE_C"); \
} \
} \
--- 72,78 ----
builtin_define_std ("LANGUAGE_C"); \
if (c_language == clk_cplusplus) \
builtin_define_std ("LANGUAGE_C_PLUS_PLUS"); \
! if (flag_objc) \
builtin_define_std ("LANGUAGE_OBJECTIVE_C"); \
} \
} \

Index: gcc/config/i386/i386-interix.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386-interix.h,v
retrieving revision 1.35
diff -c -3 -p -r1.35 i386-interix.h
*** gcc/config/i386/i386-interix.h 5 Aug 2002 18:53:16 -0000 1.35
--- gcc/config/i386/i386-interix.h 10 Aug 2002 06:15:47 -0000
*************** Boston, MA 02111-1307, USA. */
*** 72,78 ****
builtin_define_std ("LANGUAGE_C"); \
if (c_language == clk_cplusplus) \
builtin_define_std ("LANGUAGE_C_PLUS_PLUS"); \
! else if (c_language == clk_objective_c) \
builtin_define_std ("LANGUAGE_OBJECTIVE_C"); \
} \
} \
--- 72,78 ----
builtin_define_std ("LANGUAGE_C"); \
if (c_language == clk_cplusplus) \
builtin_define_std ("LANGUAGE_C_PLUS_PLUS"); \
! if (flag_objc) \
builtin_define_std ("LANGUAGE_OBJECTIVE_C"); \
} \
} \


Begin forwarded message:

From: GCC regression checker <regress@redhat.com>
Date: Fri Aug 09, 2002 10:34:44 US/Pacific
To: gcc-regression@gcc.gnu.org
Cc: zlaski@apple.com
Subject: GCC build failed for mips-elf with your patch on 2002-08-10T02:30:00Z.
Reply-To: gcc-regression@gcc.gnu.org

With your recent patch, GCC does not compile on:
mips-elf
Attached is build output for those targets.

The build failures are new.

For more information, see <http://people.redhat.com/geoffk/gcc-regression/>.

Attachment: ChangeLog.diff
Description: Binary data

Attachment: mips-elf-log.txt
Description: Text document

--
Geoffrey Keating <regress@redhat.com>
(via an automated GCC regression-testing script.)

--------------------------------------------------------------
Ziemowit Laski                 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group        Cupertino, CA USA  95014-2083
Apple Computer, Inc.           +1.408.974.6229  Fax .5477

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]