public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/5193] New: Compilation failure with -O0
@ 2007-10-17 18:58 kris dot van dot hees at oracle dot com
  2007-10-17 19:02 ` [Bug general/5193] " kris dot van dot hees at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: kris dot van dot hees at oracle dot com @ 2007-10-17 18:58 UTC (permalink / raw)
  To: frysk-bugzilla

Building frysk with --enable-coverage forced -O0 (instead of -O).  This triggers
a compilation failure in funit-addresses.c.

        gcc -DPACKAGE_NAME=\"frysk\" -DPACKAGE_TARNAME=\"frysk\"
-DPACKAGE_VERSION=\"0.0.1.2007.10.17\" -DPACKAGE_STRING=\"frysk\
0.0.1.2007.10.17\" -DPACKAGE_BUGREPORT=\"\" -DWITH_LIBOPCODES=1
-DPACKAGE=\"frysk\" -DVERSION=\"0.0.1.2007.10.17\"  -I.
-I/home/aedil/build_farm/frysk_gcov/frysk_config/frysk-core   
-I/home/aedil/build_farm/frysk_gcov/frysk_config/frysk-core/../frysk-imports/include
-I/home/aedil/build_farm/frysk_gcov/frysk_config/frysk-core -I. -fPIC
-fasynchronous-unwind-tables  -g  --coverage -O0 -Wall -Werror -c -o
frysk/pkglibdir/funit-addresses.o
/home/aedil/build_farm/frysk_gcov/frysk_config/frysk-core/frysk/pkglibdir/funit-addresses.c
cc1: warnings being treated as errors
/home/aedil/build_farm/frysk_gcov/frysk_config/frysk-core/frysk/pkglibdir/funit-addresses.c:
In function 'main':
/home/aedil/build_farm/frysk_gcov/frysk_config/frysk-core/frysk/pkglibdir/funit-addresses.c:74:
warning: implicit declaration of function 'malloc'
/home/aedil/build_farm/frysk_gcov/frysk_config/frysk-core/frysk/pkglibdir/funit-addresses.c:74:
warning: incompatible implicit declaration of built-in function 'malloc'
make[2]: *** [frysk/pkglibdir/funit-addresses.o] Error 1

-- 
           Summary: Compilation failure with -O0
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: kris dot van dot hees at oracle dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=5193

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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

* [Bug general/5193] Compilation failure with -O0
  2007-10-17 18:58 [Bug general/5193] New: Compilation failure with -O0 kris dot van dot hees at oracle dot com
@ 2007-10-17 19:02 ` kris dot van dot hees at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: kris dot van dot hees at oracle dot com @ 2007-10-17 19:02 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From kris dot van dot hees at oracle dot com  2007-10-17 19:02 -------
Added include for stdlib.h.  This is needed because malloc() is used in this
code.  Note that gcc didn't flag this as a problem when compiling with -O even
though -Wall -Werror was specified.  This was only flagged when compiling
using -O0.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|frysk-bugzilla at sourceware|kris dot van dot hees at
                   |dot org                     |oracle dot com
             Status|NEW                         |ASSIGNED


http://sourceware.org/bugzilla/show_bug.cgi?id=5193

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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

end of thread, other threads:[~2007-10-17 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-17 18:58 [Bug general/5193] New: Compilation failure with -O0 kris dot van dot hees at oracle dot com
2007-10-17 19:02 ` [Bug general/5193] " kris dot van dot hees at oracle dot com

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