public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/47733] New: psignal (int, const? char*) in libiberty/strsignal.h
@ 2011-02-14 14:56 dilyan.palauzov at aegee dot org
  2011-06-01 15:06 ` [Bug other/47733] " jan.smets@alcatel-lucent.com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dilyan.palauzov at aegee dot org @ 2011-02-14 14:56 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: psignal (int, const? char*) in libiberty/strsignal.h
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dilyan.palauzov@aegee.org


I compile gcc with:

../gcc-4.5.2/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
--enable-threads=posix --enable-languages=c,c++ --enable-targets=all
--with-newlib --with-build-time-tools=/usr/x86_64-pc-linux-gnu/bin/
--disable-shared --disable-libgomp --disable-lto --disable-libssp
--disable-libmudflap

libiberty/strsignal.c compiles differently, depending on if HAVE_PSIGNAL is
defined or not.

HAVE_PSIGNAL is nowhere defined in the whole gcc-4.5.2 tree.

In turn strsignal.c defines in all cases a function
void
psignal (int signo, char *message)

In libc-2.13 signal.h defines the function as 
void
psignal (int __sig, __const char *__s);

When I compile gcc 4.5.2 with the above configuration I get the message:
[...]
/src/gcc452-build/./gcc/xgcc -B/src/gcc452-build/./gcc/
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include   
-c -DHAVE_CONFIG_H -O3  -I. -I../../../gcc-4.5.2/libiberty/../include  -W -Wall
-Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic 
../../../gcc-4.5.2/libiberty/strsignal.c -o strsignal.o
../../../gcc-4.5.2/libiberty/strsignal.c:554:1: error: conflicting types for
'psignal'
/usr/include/signal.h:150:13: note: previous declaration of 'psignal' was here
make[2]: *** [strsignal.o] Error 1
make[2]: Leaving directory `/src/gcc452-build/i686-pc-linux-gnu/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/src/gcc452-build'
make: *** [all] Error 2

Changing in libiberty/strsignal.c
psignal (int signo, char *message)
with
psignal (int signo, const char *message)

does solve the problem.


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

* [Bug other/47733] psignal (int, const? char*) in libiberty/strsignal.h
  2011-02-14 14:56 [Bug other/47733] New: psignal (int, const? char*) in libiberty/strsignal.h dilyan.palauzov at aegee dot org
@ 2011-06-01 15:06 ` jan.smets@alcatel-lucent.com
  2011-06-22 20:20 ` hp at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jan.smets@alcatel-lucent.com @ 2011-06-01 15:06 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Smets <jan.smets@alcatel-lucent.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.smets@alcatel-lucent.co
                   |                            |m

--- Comment #1 from Jan Smets <jan.smets@alcatel-lucent.com> 2011-06-01 15:05:34 UTC ---
I've seen this on 4.6.0 too.

Solutions works.


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

* [Bug other/47733] psignal (int, const? char*) in libiberty/strsignal.h
  2011-02-14 14:56 [Bug other/47733] New: psignal (int, const? char*) in libiberty/strsignal.h dilyan.palauzov at aegee dot org
  2011-06-01 15:06 ` [Bug other/47733] " jan.smets@alcatel-lucent.com
@ 2011-06-22 20:20 ` hp at gcc dot gnu.org
  2011-06-22 21:31 ` hp at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu.org @ 2011-06-22 20:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-06-22 20:18:00 UTC ---
Author: hp
Date: Wed Jun 22 20:17:47 2011
New Revision: 175307

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175307
Log:
    PR regression/47836
    PR bootstrap/23656
    PR other/47733
    PR bootstrap/49247
    * configure.ac (target_libraries): Remove target-libiberty.
    Remove case-statement setting skipdirs=target-libiberty for
    multiple targets.  Remove checking target_configdirs and
    removing target-libiberty but keeping target-libgcc if
    otherwise empty.
    * Makefile.def (target_modules): Don't add libiberty.
    (dependencies): Remove all traces of target-libiberty.
    * configure, Makefile.in: Regenerate.
(fixing PR annotations in the ChangeLog entry)

Modified:
    trunk/ChangeLog


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

* [Bug other/47733] psignal (int, const? char*) in libiberty/strsignal.h
  2011-02-14 14:56 [Bug other/47733] New: psignal (int, const? char*) in libiberty/strsignal.h dilyan.palauzov at aegee dot org
  2011-06-01 15:06 ` [Bug other/47733] " jan.smets@alcatel-lucent.com
  2011-06-22 20:20 ` hp at gcc dot gnu.org
@ 2011-06-22 21:31 ` hp at gcc dot gnu.org
  2011-06-27 20:57 ` hp at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu.org @ 2011-06-22 21:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-06-22 21:30:25 UTC ---
Author: hp
Date: Wed Jun 22 21:30:19 2011
New Revision: 175316

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175316
Log:
    PR regression/47836
    PR bootstrap/23656
    PR other/47733
    PR bootstrap/49247
    PR c/48825
    * configure.ac (target_libraries): Remove target-libiberty.
    Remove case-statement setting skipdirs=target-libiberty for
    multiple targets.  Remove checking target_configdirs and
    removing target-libiberty but keeping target-libgcc if
    otherwise empty.
    * Makefile.def (target_modules): Don't add libiberty.
    (dependencies): Remove all traces of target-libiberty.
    * configure, Makefile.in: Regenerate.
(add missing PR annotation in the ChangeLog entry)

Modified:
    trunk/ChangeLog


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

* [Bug other/47733] psignal (int, const? char*) in libiberty/strsignal.h
  2011-02-14 14:56 [Bug other/47733] New: psignal (int, const? char*) in libiberty/strsignal.h dilyan.palauzov at aegee dot org
                   ` (2 preceding siblings ...)
  2011-06-22 21:31 ` hp at gcc dot gnu.org
@ 2011-06-27 20:57 ` hp at gcc dot gnu.org
  2011-06-27 21:06 ` hp at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu.org @ 2011-06-27 20:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-06-27 20:55:04 UTC ---
Author: hp
Date: Mon Jun 27 20:54:59 2011
New Revision: 175560

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175560
Log:
    PR regression/47836
    PR bootstrap/23656
    PR other/47733
    PR bootstrap/49247
    PR c/48825
    * configure.ac (target_libraries): Remove target-libiberty.
    Remove all target-specific settings adding target-libiberty to
    skipdirs and noconfigdirs.  Remove checking target_configdirs
    and removing target-libiberty but keeping target-libgcc if
    otherwise empty.
    * Makefile.def (target_modules): Don't add libiberty.
    (dependencies): Remove all traces of target-libiberty.
    * configure, Makefile.in: Regenerate.

Modified:
    branches/gcc-4_6-branch/ChangeLog
    branches/gcc-4_6-branch/Makefile.def
    branches/gcc-4_6-branch/Makefile.in
    branches/gcc-4_6-branch/configure
    branches/gcc-4_6-branch/configure.ac


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

* [Bug other/47733] psignal (int, const? char*) in libiberty/strsignal.h
  2011-02-14 14:56 [Bug other/47733] New: psignal (int, const? char*) in libiberty/strsignal.h dilyan.palauzov at aegee dot org
                   ` (3 preceding siblings ...)
  2011-06-27 20:57 ` hp at gcc dot gnu.org
@ 2011-06-27 21:06 ` hp at gcc dot gnu.org
  2011-12-15  1:44 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu.org @ 2011-06-27 21:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-06-27 21:03:00 UTC ---
Author: hp
Date: Mon Jun 27 21:02:53 2011
New Revision: 175564

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175564
Log:
    PR regression/47836
    PR bootstrap/23656
    PR other/47733
    PR bootstrap/49247
    PR c/48825
    * configure.ac (target_libraries): Remove target-libiberty.
    Remove all target-specific settings adding target-libiberty to
    skipdirs and noconfigdirs.  Remove checking target_configdirs
    and removing target-libiberty but keeping target-libgcc if
    otherwise empty.
    * Makefile.def (target_modules): Don't add libiberty.
    (dependencies): Remove all traces of target-libiberty.
    * configure, Makefile.in: Regenerate.

Modified:
    branches/gcc-4_5-branch/ChangeLog
    branches/gcc-4_5-branch/Makefile.def
    branches/gcc-4_5-branch/Makefile.in
    branches/gcc-4_5-branch/configure
    branches/gcc-4_5-branch/configure.ac


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

* [Bug other/47733] psignal (int, const? char*) in libiberty/strsignal.h
  2011-02-14 14:56 [Bug other/47733] New: psignal (int, const? char*) in libiberty/strsignal.h dilyan.palauzov at aegee dot org
                   ` (4 preceding siblings ...)
  2011-06-27 21:06 ` hp at gcc dot gnu.org
@ 2011-12-15  1:44 ` pinskia at gcc dot gnu.org
  2011-12-15  1:46 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-15  1:44 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.4

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-15 01:41:47 UTC ---
Fixed for 4.5.4.


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

* [Bug other/47733] psignal (int, const? char*) in libiberty/strsignal.h
  2011-02-14 14:56 [Bug other/47733] New: psignal (int, const? char*) in libiberty/strsignal.h dilyan.palauzov at aegee dot org
                   ` (5 preceding siblings ...)
  2011-12-15  1:44 ` pinskia at gcc dot gnu.org
@ 2011-12-15  1:46 ` pinskia at gcc dot gnu.org
  2011-12-15  1:52 ` pinskia at gcc dot gnu.org
  2012-01-15 19:24 ` pinskia at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-15  1:46 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janis at gcc dot gnu.org

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-15 01:42:37 UTC ---
*** Bug 49247 has been marked as a duplicate of this bug. ***


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

* [Bug other/47733] psignal (int, const? char*) in libiberty/strsignal.h
  2011-02-14 14:56 [Bug other/47733] New: psignal (int, const? char*) in libiberty/strsignal.h dilyan.palauzov at aegee dot org
                   ` (6 preceding siblings ...)
  2011-12-15  1:46 ` pinskia at gcc dot gnu.org
@ 2011-12-15  1:52 ` pinskia at gcc dot gnu.org
  2012-01-15 19:24 ` pinskia at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-15  1:52 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wkor97gy0eef1fr at i dot
                   |                            |mintemail.com

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-15 01:42:43 UTC ---
*** Bug 48825 has been marked as a duplicate of this bug. ***


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

* [Bug other/47733] psignal (int, const? char*) in libiberty/strsignal.h
  2011-02-14 14:56 [Bug other/47733] New: psignal (int, const? char*) in libiberty/strsignal.h dilyan.palauzov at aegee dot org
                   ` (7 preceding siblings ...)
  2011-12-15  1:52 ` pinskia at gcc dot gnu.org
@ 2012-01-15 19:24 ` pinskia at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-15 19:24 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kilobyte at angband dot pl

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-15 19:18:32 UTC ---
*** Bug 41916 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2012-01-15 19:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14 14:56 [Bug other/47733] New: psignal (int, const? char*) in libiberty/strsignal.h dilyan.palauzov at aegee dot org
2011-06-01 15:06 ` [Bug other/47733] " jan.smets@alcatel-lucent.com
2011-06-22 20:20 ` hp at gcc dot gnu.org
2011-06-22 21:31 ` hp at gcc dot gnu.org
2011-06-27 20:57 ` hp at gcc dot gnu.org
2011-06-27 21:06 ` hp at gcc dot gnu.org
2011-12-15  1:44 ` pinskia at gcc dot gnu.org
2011-12-15  1:46 ` pinskia at gcc dot gnu.org
2011-12-15  1:52 ` pinskia at gcc dot gnu.org
2012-01-15 19:24 ` pinskia at gcc dot gnu.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).