public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/30853]  New: warnings about traditional.c during bootstrap with -O3, leading to internal error
@ 2007-02-18 23:44 sdack at gmx dot de
  2007-02-23  0:11 ` [Bug bootstrap/30853] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: sdack at gmx dot de @ 2007-02-18 23:44 UTC (permalink / raw)
  To: gcc-bugs

Through a change in gcc-4.1.2/config/mh-x86omitfp to replace "-O2
-fomit-framepointer" with "-O3" the bootstrap process will fail with the
following warnings:

../../gcc-4.1.2/libcpp/traditional.c: In function '_cpp_scan_out_logical_line':
../../gcc-4.1.2/libcpp/traditional.c:349: warning: 'fmacro.args' may be used
uninitialized in this function
../../gcc-4.1.2/libcpp/traditional.c:349: warning: 'fmacro.node' may be used
uninitialized in this function
../../gcc-4.1.2/libcpp/traditional.c:349: warning: 'fmacro.offset' may be used
uninitialized in this function
../../gcc-4.1.2/libcpp/traditional.c:349: warning: 'fmacro.argc' may be used
uninitialized in this function
../../gcc-4.1.2/libcpp/traditional.c:349: warning: 'fmacro.line' may be used
uninitialized in this function

When bootstrapping without Werror it will produce some more warnings and
eventually fails (during a profiledbootstrap) in an internal compiler error.
Can be reproduced with:

1) Edit config/mh-x86omitfp and set BOOT_CFLAGS to "-O3"
2) configure --prefix=/home/sven/gnu --enable-languages=c --enable-bootstrap
3) make bootstrap

The following warnings probably explain why there is an internal compiler
error:
gengtype-lex.c:3400: warning: no previous prototype for 'yyget_lineno'
gengtype-lex.c:3409: warning: no previous prototype for 'yyget_in'
gengtype-lex.c:3417: warning: no previous prototype for 'yyget_out'
gengtype-lex.c:3425: warning: no previous prototype for 'yyget_leng'
gengtype-lex.c:3434: warning: no previous prototype for 'yyget_text'
gengtype-lex.c:3443: warning: no previous prototype for 'yyset_lineno'
gengtype-lex.c:3455: warning: no previous prototype for 'yyset_in'
gengtype-lex.c:3460: warning: no previous prototype for 'yyset_out'
gengtype-lex.c:3465: warning: no previous prototype for 'yyget_debug'
gengtype-lex.c:3470: warning: no previous prototype for 'yyset_debug'
gengtype-lex.c:3476: warning: no previous prototype for 'yylex_destroy'

build/gengtype
warning: structure `c_arg_info' used but not defined
warning: structure `c_switch' used but not defined
warning: structure `et_node' used but not defined
warning: structure `loop' used but not defined
warning: structure `ipa_reference_vars_info_d' used but not defined
warning: structure `reg_info_def' used but not defined
warning: structure `value_set' used but not defined
warning: structure `c_arg_info' used but not defined
warning: structure `c_switch' used but not defined
warning: structure `et_node' used but not defined
warning: structure `loop' used but not defined
warning: structure `ipa_reference_vars_info_d' used but not defined
warning: structure `reg_info_def' used but not defined
warning: structure `value_set' used but not defined


-- 
           Summary: warnings about traditional.c during bootstrap with -O3,
                    leading to internal error
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sdack at gmx dot de
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug bootstrap/30853] warnings about traditional.c during bootstrap with -O3, leading to internal error
  2007-02-18 23:44 [Bug bootstrap/30853] New: warnings about traditional.c during bootstrap with -O3, leading to internal error sdack at gmx dot de
@ 2007-02-23  0:11 ` pinskia at gcc dot gnu dot org
  2007-02-23 13:04 ` sdack at gmx dot de
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-23  0:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-02-23 00:11 -------
--enable-bootstrap

Don't use that option for 4.1.x.

Can you try again without that option?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug bootstrap/30853] warnings about traditional.c during bootstrap with -O3, leading to internal error
  2007-02-18 23:44 [Bug bootstrap/30853] New: warnings about traditional.c during bootstrap with -O3, leading to internal error sdack at gmx dot de
  2007-02-23  0:11 ` [Bug bootstrap/30853] " pinskia at gcc dot gnu dot org
@ 2007-02-23 13:04 ` sdack at gmx dot de
  2007-02-23 14:31 ` pinskia at gcc dot gnu dot org
  2007-02-23 15:53 ` sdack at gmx dot de
  3 siblings, 0 replies; 5+ messages in thread
From: sdack at gmx dot de @ 2007-02-23 13:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sdack at gmx dot de  2007-02-23 13:03 -------
Subject: Re:  warnings about traditional.c during
 bootstrap with -O3, leading to internal error

> --enable-bootstrap
> 
> Don't use that option for 4.1.x.
> 
> Can you try again without that option?

  I have, and together with alot of other options. I then compiled multiple
packages (bash, binutils, bison, bzip2, coreutils, cpio, ... sed, tar, texinfo)
with the resulting gcc and ran the regression tests of those packages. It does
not seem to do any harm after all.

  Still, I find it a bit scary installing gcc without first bootstrapping it. I
trust the result more than without it.

Sven


-- 


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


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

* [Bug bootstrap/30853] warnings about traditional.c during bootstrap with -O3, leading to internal error
  2007-02-18 23:44 [Bug bootstrap/30853] New: warnings about traditional.c during bootstrap with -O3, leading to internal error sdack at gmx dot de
  2007-02-23  0:11 ` [Bug bootstrap/30853] " pinskia at gcc dot gnu dot org
  2007-02-23 13:04 ` sdack at gmx dot de
@ 2007-02-23 14:31 ` pinskia at gcc dot gnu dot org
  2007-02-23 15:53 ` sdack at gmx dot de
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-23 14:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-02-23 14:30 -------
>   Still, I find it a bit scary installing gcc without first bootstrapping it. I
> trust the result more than without it.

--enable-bootstrap is not the flag which enables bootstrap but instead it
enables toplevel bootstrap which is not supported in 4.1.x.

"make bootstrap" without --enable-bootstrap will do a normal bootstrap and
should just work.

So closing as invalid.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug bootstrap/30853] warnings about traditional.c during bootstrap with -O3, leading to internal error
  2007-02-18 23:44 [Bug bootstrap/30853] New: warnings about traditional.c during bootstrap with -O3, leading to internal error sdack at gmx dot de
                   ` (2 preceding siblings ...)
  2007-02-23 14:31 ` pinskia at gcc dot gnu dot org
@ 2007-02-23 15:53 ` sdack at gmx dot de
  3 siblings, 0 replies; 5+ messages in thread
From: sdack at gmx dot de @ 2007-02-23 15:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sdack at gmx dot de  2007-02-23 15:52 -------
Subject: Re:  warnings about traditional.c during
 bootstrap with -O3, leading to internal error

> >   Still, I find it a bit scary installing gcc without first
> bootstrapping it. I
> > trust the result more than without it.
> 
> --enable-bootstrap is not the flag which enables bootstrap but instead it
> enables toplevel bootstrap which is not supported in 4.1.x.
> 
> "make bootstrap" without --enable-bootstrap will do a normal bootstrap and
> should just work.
> 
> So closing as invalid.

Of course I ran make with "bootstrap" and with "profiledbootstrap". It still
fails to compile with a BOOT_CFLAGS set to -O3.

Since this is the section for reporting bugs and problems with bootstrap,
please explain to me why you changed the severity from major to minor. When you
tell me not to use the option at all I consider it to be broken and that is
surely not a minor problem!

I still fail to bootstrap with -O3.

Please explain why you close the report as being invalid.

Sven


-- 


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


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

end of thread, other threads:[~2007-02-23 15:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-18 23:44 [Bug bootstrap/30853] New: warnings about traditional.c during bootstrap with -O3, leading to internal error sdack at gmx dot de
2007-02-23  0:11 ` [Bug bootstrap/30853] " pinskia at gcc dot gnu dot org
2007-02-23 13:04 ` sdack at gmx dot de
2007-02-23 14:31 ` pinskia at gcc dot gnu dot org
2007-02-23 15:53 ` sdack at gmx dot de

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).