public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/3609: Cann't boot kernel-2.4.6 with CVS gcc-3.0.1
@ 2001-08-09  0:24 mmitchel
  0 siblings, 0 replies; 5+ messages in thread
From: mmitchel @ 2001-08-09  0:24 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, k_fukui, mmitchel, nobody

Synopsis: Cann't boot kernel-2.4.6 with CVS gcc-3.0.1

Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Thu Aug  9 00:24:14 2001
Responsible-Changed-Why:
    Testing fix.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3609&database=gcc


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

* Re: c/3609: Cann't boot kernel-2.4.6 with CVS gcc-3.0.1
@ 2001-08-13  9:54 mmitchel
  0 siblings, 0 replies; 5+ messages in thread
From: mmitchel @ 2001-08-13  9:54 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, k_fukui, mmitchel

Synopsis: Cann't boot kernel-2.4.6 with CVS gcc-3.0.1

State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Mon Aug 13 09:54:27 2001
State-Changed-Why:
    Not a bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3609&database=gcc


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

* Re: c/3609: Cann't boot kernel-2.4.6 with CVS gcc-3.0.1
@ 2001-07-12  4:39 sirl
  0 siblings, 0 replies; 5+ messages in thread
From: sirl @ 2001-07-12  4:39 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, k_fukui, nobody

Synopsis: Cann't boot kernel-2.4.6 with CVS gcc-3.0.1

State-Changed-From-To: feedback->analyzed
State-Changed-By: sirl
State-Changed-When: Thu Jul 12 04:39:45 2001
State-Changed-Why:
    I have the same problem and tracked it down to a misoptimization of the
    strcpy function.
    
    This code:
    
    strcpy(namep, (*((typeof(&("linux,phandle")))((unsigned
    long)(&("linux,phandle")) + offset))));
    
    gets misoptimized to:
    
    memcpy(namep, (*((typeof(&("linux,phandle")))((unsigned
    long)(&("linux,phandle")) + offset))), offset - sizeof("linux,phandle"));
    
    Note the length of the memcpy! 
    
    Inspection of the assembly shows that it happens both on powerpc-linux-gnu
    and x86-linux-gnu independent of -fstrict-aliasing and -fno-builtins.
    gcc-2.95 compiles this just fine, so this is a regression.
    
    Franz.
    
    extern char * strcpy(char *,const char *);
    extern unsigned long reloc_offset(void);
    
    void inspect_node(void)
    {
    char *namep;
    unsigned long offset = reloc_offset();
    
    strcpy(namep, (*((typeof(&("linux,phandle")))((unsigned
    long)(&("linux,phandle")) + offset))));
    
    return;
    }
    

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3609&database=gcc


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

* Re: c/3609: Cann't boot kernel-2.4.6 with CVS gcc-3.0.1
@ 2001-07-11 10:50 mmitchel
  0 siblings, 0 replies; 5+ messages in thread
From: mmitchel @ 2001-07-11 10:50 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, k_fukui, nobody

Synopsis: Cann't boot kernel-2.4.6 with CVS gcc-3.0.1

State-Changed-From-To: open->feedback
State-Changed-By: mmitchel
State-Changed-When: Wed Jul 11 10:50:52 2001
State-Changed-Why:
    Unreproducible.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3609&database=gcc


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

* c/3609: Cann't boot kernel-2.4.6 with CVS gcc-3.0.1
@ 2001-07-08 16:16 k_fukui
  0 siblings, 0 replies; 5+ messages in thread
From: k_fukui @ 2001-07-08 16:16 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3609
>Category:       c
>Synopsis:       Cann't boot kernel-2.4.6 with CVS gcc-3.0.1
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 08 16:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kaoru Fukui
>Release:        CVS GCC-3.0.1
>Organization:
>Environment:
linuxppc,binutils-2.11.90currentCVS
>Description:
kernel-2.4.6's compilation has done with NO problem using gcc-3.0.1,
but the kernel cannot boot. 

I rebuilt the same kernel source with gcc-2.95.4,
the kernel was fine boot.
>How-To-Repeat:
compiling kernel-2.4.6 with gcc-3.0.1,then boot.
>Fix:
none.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2001-08-13  9:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-09  0:24 c/3609: Cann't boot kernel-2.4.6 with CVS gcc-3.0.1 mmitchel
  -- strict thread matches above, loose matches on Subject: below --
2001-08-13  9:54 mmitchel
2001-07-12  4:39 sirl
2001-07-11 10:50 mmitchel
2001-07-08 16:16 k_fukui

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