Issue 67111 - Warnings: GNU/Linux SPARC sal
Summary: Warnings: GNU/Linux SPARC sal
Status: CLOSED WONT_FIX
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 2.2
Hardware: Sun Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 3.0
Assignee: sparcmoz
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks: 67001
  Show dependency tree
 
Reported: 2006-07-07 12:42 UTC by sparcmoz
Modified: 2007-10-07 22:41 UTC (History)
2 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
workaround - turn off optimisation (825 bytes, patch)
2006-07-07 12:53 UTC, sparcmoz
no flags Details | Diff
remove copy/paste, and add NOOPTFILES (3.53 KB, patch)
2006-11-04 13:58 UTC, sparcmoz
no flags Details | Diff
revised sal patch (3.54 KB, patch)
2006-11-06 03:02 UTC, sparcmoz
no flags Details | Diff
cleanup backtrace.c (3.42 KB, patch)
2006-11-24 09:08 UTC, sparcmoz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description sparcmoz 2006-07-07 12:42:46 UTC
On GNU/Linux SPARC m173
After a patch like issue 66807, the next problem is here:
ccache /usr/local/4.1/bin/gcc -m32 -fmessage-length=0 -c -I. 
-I../../unxlngs.pro/inc/cpposl -I../inc -I../../inc -I../../unx/inc
-I../../unxlngs.pro/inc -I.
-I/home/jim/vanilla/solver/680/unxlngs.pro/inc/dont_use_stl
-I/home/jim/vanilla/solver/680/unxlngs.pro/inc/external
-I/home/jim/vanilla/solver/680/unxlngs.pro/inc
-I/home/jim/vanilla/solenv/unxlngs/inc -I/home/jim/vanilla/solenv/inc
-I/home/jim/vanilla/res
-I/home/jim/vanilla/solver/680/unxlngs.pro/inc/dont_use_stl
-I/home/jim/vanilla/solenv/inc/Xp31 -I/usr/local/4.1/include -I/usr/include    
-I/home/jim/vanilla/solver/680/unxlngs.pro/inc/offuh -I. -I../../res -I. -Os
-fno-strict-aliasing   -DENABLE_CRASH_REPORT -pipe  -g1 -Wall -Wextra
-Wendif-labels -Werror  -DLINUX -DUNX -DVCL -DGCC -DC300 -DSPARC -DCVER=C300 
-DGLIBC=2 -D_PTHREADS -D_REENTRANT -DSPARC -DNEW_SOLAR -D_USE_NAMESPACE=1
-DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX
-DCPPU_ENV=gcc3
-DGXX_INCLUDE_PATH=/usr/local/4.1/lib/gcc/sparc-unknown-linux-gnu/4.1.2/../../../../include/c++/4.1.2
-DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE
-DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRC680=SRC680   -DMULTITHREAD   -o
../../unxlngs.pro/obj/backtrace.o backtrace.c
cc1: warnings being treated as errors
backtrace.c: In function 'backtrace':
backtrace.c:265: warning: argument 'buffer' might be clobbered by 'longjmp' or
'vfork'
dmake:  Error code 1, while making '../../unxlngs.pro/obj/backtrace.obj'
'---* tg_merge.mk *---'
jim@sun:~/vanilla/sal/osl/unx$
Comment 1 sparcmoz 2006-07-07 12:53:49 UTC
Created attachment 37560 [details]
workaround - turn off optimisation
Comment 2 Martin Hollmichel 2006-07-11 10:35:45 UTC
reassign
Comment 3 sparcmoz 2006-11-04 13:52:38 UTC
New patch to be attached will remove warnings in backtrace.c, the best way is to
remove copy/pasted code and share the existing solaris code which is already
warning-free. Years ago I did copy/paste that code because I had no idea and did
not dare touch it. This will need QA by solaris team. Perhaps this method can be
adapted to include other platforms? Also the NOOPTFILES is needed for gcc4.1.2
Comment 4 sparcmoz 2006-11-04 13:58:13 UTC
Created attachment 40319 [details]
remove copy/paste, and add NOOPTFILES
Comment 5 sparcmoz 2006-11-06 01:22:28 UTC
correction to sal.patch, should be SLO not OBJ (to be confirmed)
+NOOPTFILES=$(SLO)$/backtrace.obj
Comment 6 sparcmoz 2006-11-06 02:42:57 UTC
In sal module files are stored in both outdir/obj *and* outdir/slo. In which
case both are needed in NOOPTFILES. This will not always be obvious if the
module is already part-built. Revised patch is attached.
Comment 7 sparcmoz 2006-11-06 03:02:01 UTC
Created attachment 40347 [details]
revised sal patch
Comment 8 sparcmoz 2006-11-24 08:51:40 UTC
backtrace.c cleanup is ready for GNU/Linux SPARC. Revised patch attached. 
Comment 9 sparcmoz 2006-11-24 09:00:09 UTC
set target. planning to commit in unxlngs06
Comment 10 sparcmoz 2006-11-24 09:08:50 UTC
Created attachment 40887 [details]
cleanup backtrace.c
Comment 11 sparcmoz 2006-11-24 09:12:48 UTC
@mh: can you advise please - who should review this patch? I have removed some
copy/pasted code from GNU/Linux SPARC and instead use the solaris backtrace code
with some minor changes.
Comment 12 Martin Hollmichel 2006-11-24 09:23:06 UTC
reassign for review
Comment 13 Stephan Bergmann 2006-11-24 11:47:32 UTC
reassign for review
Comment 14 matthias.huetsch 2006-11-27 11:33:03 UTC
mhu->sparcmoz: latest patch (id 40887) reviewed; looks okay in general. Just a
minor nit: #include <malloc.h> looks somewhat strange, probably <stddef.h>
should be what is needed here (ptrdiff_t). Anyway, patch approved; please
include into a cws of your choice.
Comment 15 jjmckenzie 2007-02-20 01:22:44 UTC
@sparcmoz:

Can this issue be completed and closed?

James McKenzie
Comment 16 sparcmoz 2007-02-20 01:40:21 UTC
Not completed yet. I am working on some related patches and will commit all into
a cws soon.
Comment 17 sparcmoz 2007-07-05 08:45:31 UTC
new target
Comment 18 sparcmoz 2007-10-07 22:40:09 UTC
Investigations show the Linux/SPARC backtrace code is no longer required. This
code can be removed and use common Linux code instead. This is not urgent,
whoever likes to do it will make a new issue.
Comment 19 sparcmoz 2007-10-07 22:41:20 UTC
Change of plans - remove SPARC/Linux backtrace code and use common linux code
instead.
Comment 20 sparcmoz 2007-10-07 22:41:39 UTC
closed