[Bug target/54617] [4.8 Regression] ICE when compiling gcc.c-torture/compile/pr42025-2.c on powerpc-apple-darwin9 with -m64 and -O1 or above after revision 191302

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 18 15:08:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54617

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-09-18
     Ever Confirmed|0                           |1

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-09-18 15:07:38 UTC ---
I cannot build a cross without:

Index: config/darwin-c.c
===================================================================
--- config/darwin-c.c   (revision 191429)
+++ config/darwin-c.c   (working copy)
@@ -267,7 +267,7 @@ static struct framework_header framework
 static char *
 framework_construct_pathname (const char *fname, cpp_dir *dir)
 {
-  char *buf;
+  const char *buf;
   size_t fname_len, frname_len;
   cpp_dir *fast_dir;
   char *frname;
@@ -344,7 +344,7 @@ find_subframework_file (const char *fnam
 {
   char *sfrname;
   const char *dot_framework = ".framework/";
-  char *bufptr;
+  const char *bufptr;
   int sfrname_len, i, fname_len;
   struct cpp_dir *fast_dir;
   static struct cpp_dir subframe_dir;

so please include the above in your next round of testing.  This is with:

eric@polaris:~/build/gcc/powerpc-apple-darwin> g++ --version
g++ (SUSE Linux) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



More information about the Gcc-bugs mailing list