public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25732]  New: Compiling GCC 3.3 per Definitive Guide to GCC book; directory layout per book
@ 2006-01-10  8:17 ldmiller at rcn dot com
  2006-01-10 10:19 ` [Bug c/25732] " rguenth at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: ldmiller at rcn dot com @ 2006-01-10  8:17 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2440 bytes --]

Halts compile with
In file included from ../../gcc-3.3/gcc/read-rtl.c:24:
../../gcc-3.3/gcc/rtl.h:132: warning: type of bit-field ‘code’ is a GCC
extension
../../gcc-3.3/gcc/rtl.h:135: warning: type of bit-field ‘mode’ is a GCC
extension
../../gcc-3.3/gcc/read-rtl.c: In function ‘fatal_with_file_and_line’:
../../gcc-3.3/gcc/read-rtl.c:53: warning: traditional C rejects ISO C style
function definitions
../../gcc-3.3/gcc/read-rtl.c: In function ‘read_rtx’:
../../gcc-3.3/gcc/read-rtl.c:653: error: invalid lvalue in increment
make[2]: *** [read-rtl.o] Error 1
make[2]: Leaving directory `/home/ldmiller/ldmiller/src/gccbuild/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/ldmiller/ldmiller/src/gccbuild/gcc'
make: *** [bootstrap] Error 2
ldmiller@millermini:~/ldmiller/src/gccbuild$

File rtl.c reads:

     case 'E':
        {
          /* Obstack to store scratch vector in.  */
          struct obstack vector_stack;
          int list_counter = 0;
          rtvec return_vec = NULL_RTVEC;

          c = read_skip_spaces (infile);
          if (c != '[')
            fatal_expected_char (infile, '[', c);

          /* add expressions to a list, while keeping a count */
          obstack_init (&vector_stack);
          while ((c = read_skip_spaces (infile)) && c != ']')
            {
              ungetc (c, infile);
              list_counter++;
              obstack_ptr_grow (&vector_stack, (PTR) read_rtx (infile));
<<<COMPILE CRASHES HERE>>>
            }
          if (list_counter > 0)
            {
              return_vec = rtvec_alloc (list_counter);
              memcpy (&return_vec->elem[0], obstack_finish (&vector_stack),
                      list_counter * sizeof (rtx));
            }
          XVEC (return_rtx, i) = return_vec;
          obstack_free (&vector_stack, NULL);
          /* close bracket gotten */
        }
        break;


-- 
           Summary: Compiling GCC 3.3 per Definitive Guide to GCC book;
                    directory layout per book
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ldmiller at rcn dot com
 GCC build triplet: powerpc_unknown
  GCC host triplet: powerpc_unknown
GCC target triplet: powerpc_unknown


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/25732] Compiling GCC 3.3 per Definitive Guide to GCC book; directory layout per book
  2006-01-10  8:17 [Bug c/25732] New: Compiling GCC 3.3 per Definitive Guide to GCC book; directory layout per book ldmiller at rcn dot com
@ 2006-01-10 10:19 ` rguenth at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-01-10 10:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2006-01-10 10:19 -------
You need an older gcc to build this version of gcc.  Or you need to build at
least gcc 3.3.6.  gcc < 3.3.6 contain invalid C code that is now rejected.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-10 10:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-10  8:17 [Bug c/25732] New: Compiling GCC 3.3 per Definitive Guide to GCC book; directory layout per book ldmiller at rcn dot com
2006-01-10 10:19 ` [Bug c/25732] " rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).