public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: build/2405: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2
@ 2008-03-10 20:00 tromey
  0 siblings, 0 replies; 5+ messages in thread
From: tromey @ 2008-03-10 20:00 UTC (permalink / raw)
  To: T.Mittelstaedt, gdb-prs, nobody, tromey

Synopsis: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2

State-Changed-From-To: open->feedback
State-Changed-By: tromey
State-Changed-When: Mon Mar 10 20:00:44 2008
State-Changed-Why:
    Although the version is different, the patch looks the same
    as PR 2406.. true?  The same comments there apply here,
    but additionally, if it is the same patch, I'd rather just
    close one report.  Thanks.

http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2405


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

* Re: build/2405: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2
@ 2008-03-11 14:30 tromey
  0 siblings, 0 replies; 5+ messages in thread
From: tromey @ 2008-03-11 14:30 UTC (permalink / raw)
  To: T.Mittelstaedt, gdb-prs, nobody, tromey

Synopsis: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2

State-Changed-From-To: feedback->closed
State-Changed-By: tromey
State-Changed-When: Tue Mar 11 14:30:16 2008
State-Changed-Why:
    Duplicate.

http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2405


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

* Re: build/2405: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2
@ 2008-03-11 11:08 Thomas Mittelstaedt
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Mittelstaedt @ 2008-03-11 11:08 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR build/2405; it has been noted by GNATS.

From: Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de>
To: tromey@redhat.com,  T.Mittelstaedt@cadenas.de, 
 gdb-prs@sources.redhat.com,  nobody@sources.redhat.com, 
 tromey@redhat.com,  gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: build/2405: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2
Date: Tue, 11 Mar 2008 12:00:52 +0100

 tromey@redhat.com schrieb:
 > Synopsis: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: tromey
 > State-Changed-When: Mon Mar 10 20:00:44 2008
 > State-Changed-Why:
 >     Although the version is different, the patch looks the same
 >     as PR 2406.. true? 
 
 Yes, sorry. Entered it twice.
 
 
 thomas
 


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

* Re: build/2405: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2
@ 2008-03-10 20:08 Tom Tromey
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Tromey @ 2008-03-10 20:08 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR build/2405; it has been noted by GNATS.

From: Tom Tromey <tromey@redhat.com>
To: gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: build/2405: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2
Date: Mon, 10 Mar 2008 13:12:57 -0600

 Oops -- I mean PR 2404, not PR 2406.  Sorry about that.
 
 Tom


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

* build/2405: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2
@ 2008-01-15 14:58 T.Mittelstaedt
  0 siblings, 0 replies; 5+ messages in thread
From: T.Mittelstaedt @ 2008-01-15 14:58 UTC (permalink / raw)
  To: gdb-gnats


>Number:         2405
>Category:       build
>Synopsis:       gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 15 14:58:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     T.Mittelstaedt@cadenas.de
>Release:        gdb 6.7.1
>Organization:
>Environment:
tmstaedt@buildaix3$ gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.2.0.0
Configured with: ../gcc-4.2.2/configure --enable-version-specific-runtime-libs --enable-static --enable-shared --enable-threads --with-as=/usr/bin/as --without-gnu-ld --with-ld=/usr/bin/ld --prefix=/opt/gcc-4.2.2 --disable-nls --with-pic --disable-symvers --enable-symvers=no --enable-languages=c,c++,objc
Thread model: aix
gcc version 4.2.2
>Description:
gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2

"warning: dereferencing type-punned pointer will break strict-aliasing rules"

gdb/aix-thread.c is compiled with -Werror and calls to
ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL))

will cause above warnings to cause build failure

replaced the (int *) casts with (void*)
>How-To-Repeat:

>Fix:
diff gdb/aix-thread.c~ gdb/aix-thread.c
366c366,367
<       if (!ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL))
---
>       int *pfprs = (void *)fprs;
>       if (!ptrace32 (PTT_READ_FPRS, tid, pfprs, 0, NULL))
437c438
< 	  ptrace32 (PTT_WRITE_SPRS, tid, (int *) &context->msr, 0, NULL);
---
> 	  ptrace32 (PTT_WRITE_SPRS, tid, (void *) &context->msr, 0, NULL);
987c988
< 		     target_signal_to_host (sig), (int *) tid);
---
> 		     target_signal_to_host (sig), (void *) tid);
990c991
< 		  target_signal_to_host (sig), (int *) tid);
---
> 		  target_signal_to_host (sig), (void *) tid);
1228c1229
<       if (!ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL))
---
>       if (!ptrace32 (PTT_READ_FPRS, tid, (void *) fprs, 0, NULL))
1542c1543
<       ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL);
---
>       ptrace32 (PTT_READ_FPRS, tid, (void *) fprs, 0, NULL);
1544c1545
<       ptrace32 (PTT_WRITE_FPRS, tid, (int *) fprs, 0, NULL);
---
>       ptrace32 (PTT_WRITE_FPRS, tid, (void *) fprs, 0, NULL);
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="aix-thread.c.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="aix-thread.c.diff"


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

end of thread, other threads:[~2008-03-11 14:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-10 20:00 build/2405: gdb 6.7.1 fails to build with gcc-4.2.2 on aix 5.2 tromey
  -- strict thread matches above, loose matches on Subject: below --
2008-03-11 14:30 tromey
2008-03-11 11:08 Thomas Mittelstaedt
2008-03-10 20:08 Tom Tromey
2008-01-15 14:58 T.Mittelstaedt

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