public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/32815]  New: crtstuff.c,warning, will always evaluate as 'true'
@ 2007-07-19  3:00 cnstar9988 at gmail dot com
  2007-07-19  3:01 ` [Bug bootstrap/32815] " cnstar9988 at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: cnstar9988 at gmail dot com @ 2007-07-19  3:00 UTC (permalink / raw)
  To: gcc-bugs

../../src/gcc/crtstuff.c: In function '__do_global_dtors_aux':
../../src/gcc/crtstuff.c:298: warning: the address of '__deregister_frame_info'
will always evaluate as 'true'
../../src/gcc/crtstuff.c: In function 'frame_dummy':
../../src/gcc/crtstuff.c:332: warning: the address of '__register_frame_info'
will always evaluate as 'true'
/home/beans/gcc-build/build/./gcc/xgcc -B/home/beans/gcc-build/build/./gcc/
-B/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/bin/
-B/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/lib/ -isystem
/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/include -isystem
/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/sys-include -O2 -O2 -g -O2  -DIN_GCC   
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -I. -I. -I../../src/gcc
-I../../src/gcc/. -I../../src/gcc/../include -I../../src/gcc/../libcpp/include 
-I../../src/gcc/../libdecnumber -I../libdecnumber  -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-toplevel-reorder   \
          -c ../../src/gcc/crtstuff.c -DCRT_END \
          -o crtend.o
/home/beans/gcc-build/build/./gcc/xgcc -B/home/beans/gcc-build/build/./gcc/
-B/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/bin/
-B/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/lib/ -isystem
/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/include -isystem
/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/sys-include -O2 -O2 -g -O2  -DIN_GCC   
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -I. -I. -I../../src/gcc
-I../../src/gcc/. -I../../src/gcc/../include -I../../src/gcc/../libcpp/include 
-I../../src/gcc/../libdecnumber -I../libdecnumber  -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-toplevel-reorder   \
          -c ../../src/gcc/crtstuff.c -DCRT_BEGIN -DCRTSTUFFS_O \
          -o crtbeginS.o
../../src/gcc/crtstuff.c: In function '__do_global_dtors_aux':
../../src/gcc/crtstuff.c:276: warning: the address of '__cxa_finalize' will
always evaluate as 'true'
../../src/gcc/crtstuff.c:298: warning: the address of '__deregister_frame_info'
will always evaluate as 'true'
../../src/gcc/crtstuff.c: In function 'frame_dummy':
../../src/gcc/crtstuff.c:332: warning: the address of '__register_frame_info'
will always evaluate as 'true'
/home/beans/gcc-build/build/./gcc/xgcc -B/home/beans/gcc-build/build/./gcc/
-B/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/bin/
-B/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/lib/ -isystem
/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/include -isystem
/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/sys-include -O2 -O2 -g -O2  -DIN_GCC   
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -I. -I. -I../../src/gcc
-I../../src/gcc/. -I../../src/gcc/../include -I../../src/gcc/../libcpp/include 
-I../../src/gcc/../libdecnumber -I../libdecnumber  -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-toplevel-reorder   \
          -c ../../src/gcc/crtstuff.c -DCRT_END -DCRTSTUFFS_O \
          -o crtendS.o
/home/beans/gcc-build/build/./gcc/xgcc -B/home/beans/gcc-build/build/./gcc/
-B/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/bin/
-B/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/lib/ -isystem
/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/include -isystem
/opt/gcc-4.1.2/lp64/hppa64-hp-hpux11.11/sys-include -O2 -O2 -g -O2  -DIN_GCC   
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -I. -I. -I../../src/gcc
-I../../src/gcc/. -I../../src/gcc/../include -I../../src/gcc/../libcpp/include 
-I../../src/gcc/../libdecnumber -I../libdecnumber  -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-toplevel-reorder   \
          -c ../../src/gcc/crtstuff.c -DCRT_BEGIN -DCRTSTUFFT_O \
          -o crtbeginT.o
../../src/gcc/crtstuff.c: In function '__do_global_dtors_aux':
../../src/gcc/crtstuff.c:298: warning: the address of '__deregister_frame_info'
will always evaluate as 'true'
../../src/gcc/crtstuff.c: In function 'frame_dummy':
../../src/gcc/crtstuff.c:332: warning: the address of '__register_frame_info'
will always evaluate as 'true'


-- 
           Summary: crtstuff.c,warning, will always evaluate as 'true'
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cnstar9988 at gmail dot com


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


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

* [Bug bootstrap/32815] crtstuff.c,warning, will always evaluate as 'true'
  2007-07-19  3:00 [Bug bootstrap/32815] New: crtstuff.c,warning, will always evaluate as 'true' cnstar9988 at gmail dot com
@ 2007-07-19  3:01 ` cnstar9988 at gmail dot com
  2007-07-19  3:02 ` cnstar9988 at gmail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cnstar9988 at gmail dot com @ 2007-07-19  3:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from cnstar9988 at gmail dot com  2007-07-19 03:01 -------
boot gcc, 3.4.6


-- 

cnstar9988 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|                            |hppa64-hp-hpux11.11
   GCC host triplet|                            |hppa64-hp-hpux11.11
 GCC target triplet|                            |hppa64-hp-hpux11.11
      Known to fail|                            |4.2.1
      Known to work|                            |3.4.6


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


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

* [Bug bootstrap/32815] crtstuff.c,warning, will always evaluate as 'true'
  2007-07-19  3:00 [Bug bootstrap/32815] New: crtstuff.c,warning, will always evaluate as 'true' cnstar9988 at gmail dot com
  2007-07-19  3:01 ` [Bug bootstrap/32815] " cnstar9988 at gmail dot com
@ 2007-07-19  3:02 ` cnstar9988 at gmail dot com
  2007-07-19  3:12 ` cnstar9988 at gmail dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cnstar9988 at gmail dot com @ 2007-07-19  3:02 UTC (permalink / raw)
  To: gcc-bugs



-- 

cnstar9988 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical


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


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

* [Bug bootstrap/32815] crtstuff.c,warning, will always evaluate as 'true'
  2007-07-19  3:00 [Bug bootstrap/32815] New: crtstuff.c,warning, will always evaluate as 'true' cnstar9988 at gmail dot com
  2007-07-19  3:01 ` [Bug bootstrap/32815] " cnstar9988 at gmail dot com
  2007-07-19  3:02 ` cnstar9988 at gmail dot com
@ 2007-07-19  3:12 ` cnstar9988 at gmail dot com
  2007-07-19  6:59 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cnstar9988 at gmail dot com @ 2007-07-19  3:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from cnstar9988 at gmail dot com  2007-07-19 03:12 -------
I think $(GCC)/Makefile.in must remove -O2 for build.
Because the boot GCC may have some bugs with -O2.
It's known that -O2 contain "-fstrict-aliasing" which has bugs since gcc 3.X.


-- 


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


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

* [Bug bootstrap/32815] crtstuff.c,warning, will always evaluate as 'true'
  2007-07-19  3:00 [Bug bootstrap/32815] New: crtstuff.c,warning, will always evaluate as 'true' cnstar9988 at gmail dot com
                   ` (2 preceding siblings ...)
  2007-07-19  3:12 ` cnstar9988 at gmail dot com
@ 2007-07-19  6:59 ` pinskia at gcc dot gnu dot org
  2007-07-19  7:03 ` cnstar9988 at gmail dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-07-19  6:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-07-19 06:59 -------
> It's known that -O2 contain "-fstrict-aliasing" which has bugs since gcc 3.X.
Huh?????


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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


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

* [Bug bootstrap/32815] crtstuff.c,warning, will always evaluate as 'true'
  2007-07-19  3:00 [Bug bootstrap/32815] New: crtstuff.c,warning, will always evaluate as 'true' cnstar9988 at gmail dot com
                   ` (3 preceding siblings ...)
  2007-07-19  6:59 ` pinskia at gcc dot gnu dot org
@ 2007-07-19  7:03 ` cnstar9988 at gmail dot com
  2007-07-19  7:05 ` cnstar9988 at gmail dot com
  2007-10-29  1:41 ` danglin at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cnstar9988 at gmail dot com @ 2007-07-19  7:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from cnstar9988 at gmail dot com  2007-07-19 07:03 -------
When I build gcc-4.2.1(prelease) on HPUX11.11, there is some warning..

why the share library build by GCC4.X on HPUX11.11 can't work..
some symbol required by the shared library could not be found.

But these works on by GCC3.4.6 or native hpcc.


-- 


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


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

* [Bug bootstrap/32815] crtstuff.c,warning, will always evaluate as 'true'
  2007-07-19  3:00 [Bug bootstrap/32815] New: crtstuff.c,warning, will always evaluate as 'true' cnstar9988 at gmail dot com
                   ` (4 preceding siblings ...)
  2007-07-19  7:03 ` cnstar9988 at gmail dot com
@ 2007-07-19  7:05 ` cnstar9988 at gmail dot com
  2007-10-29  1:41 ` danglin at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cnstar9988 at gmail dot com @ 2007-07-19  7:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from cnstar9988 at gmail dot com  2007-07-19 07:05 -------
(In reply to comment #3)
> > It's known that -O2 contain "-fstrict-aliasing" which has bugs since gcc 3.X.
> Huh?????

from 4.2.1 status report.
PR 32182 -fstrict-aliasing ...
PR 32327 Incorrect stack sharing...
PR 32328 -fstrict-aliasing ...

...


-- 


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


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

* [Bug bootstrap/32815] crtstuff.c,warning, will always evaluate as 'true'
  2007-07-19  3:00 [Bug bootstrap/32815] New: crtstuff.c,warning, will always evaluate as 'true' cnstar9988 at gmail dot com
                   ` (5 preceding siblings ...)
  2007-07-19  7:05 ` cnstar9988 at gmail dot com
@ 2007-10-29  1:41 ` danglin at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-10-29  1:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from danglin at gcc dot gnu dot org  2007-10-29 01:41 -------
The warnings are expected.  From pa64-hpux.h:

/* We don't want undefined weak references to __register_frame_info,
   __deregister_frame_info, _Jv_RegisterClasses and __cxa_finalize
   introduced by crtbegin.o.  The GNU linker only resolves weak
   references if they appear in a shared library.  Thus, it would be
   impossible to create a static executable if the symbols were weak.
   So, the best solution seems to be to make the symbols strong and
   provide an archive library of empty stub functions.  */
#define TARGET_ATTRIBUTE_WEAK

The other part of the story that is missing from the above is that
the HP dynamic linker doesn't support undefined weak symbols.  So,
the symbols are strong and there default implementations in a stub
archive library.  That's the origin of the warnings.

The warning could be avoided with a hppa64 specific implementation
of crtstuff.c, but the code wouldn't do anything different than it
does now.  The if's that cause the warnings are optimized away.

gcc-3.4.6 doesn't have the TARGET_ATTRIBUTE_WEAK define.  That's
the relevant difference.


-- 

danglin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danglin at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |enhancement
           Priority|P3                          |P5


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


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

end of thread, other threads:[~2007-10-29  1:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-19  3:00 [Bug bootstrap/32815] New: crtstuff.c,warning, will always evaluate as 'true' cnstar9988 at gmail dot com
2007-07-19  3:01 ` [Bug bootstrap/32815] " cnstar9988 at gmail dot com
2007-07-19  3:02 ` cnstar9988 at gmail dot com
2007-07-19  3:12 ` cnstar9988 at gmail dot com
2007-07-19  6:59 ` pinskia at gcc dot gnu dot org
2007-07-19  7:03 ` cnstar9988 at gmail dot com
2007-07-19  7:05 ` cnstar9988 at gmail dot com
2007-10-29  1:41 ` danglin 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).