-gstabs and '#warning "8 as alignment is not supported"'

Greg Turner gmturner007 at ameritech.net
Fri Sep 27 10:40:45 CDT 2002


OK, I did this:

Index: configure
===================================================================
RCS file: /home/wine/wine/configure,v
retrieving revision 1.341
diff -u -r1.341 configure
--- configure   25 Sep 2002 03:29:55 -0000      1.341
+++ configure   27 Sep 2002 15:20:40 -0000
@@ -1998,7 +1998,7 @@
   CFLAGS=$ac_save_CFLAGS
 elif test $ac_cv_prog_cc_g = yes; then
   if test "$GCC" = yes; then
-    CFLAGS="-g -O2"
+    CFLAGS="-gstabs -O2"
   else
     CFLAGS="-g"
   fi

and sure enough, debug symbols loaded for me.  The only
remaining annoyance: winedbg doesn't automagically find the
sources like gdb.  Presumably, I can fix this by issuing "dir"
commands to winedbg.  So I'm happy (although it'd be nice
to not have to issue those "dir" commands).  Thanks!

Can anyone think of a reason not to submit this as a patch?
I tried -gstabs in gcc 2.96 (the only other gcc readily available
to me) and it was happy, so presumably its pretty portable, and
it looks like the configure change above would only apply to gcc,
which seems like precisely the right thing to me.

Now one other question for y'all wine gurus out there:
I was looking for the alignment issue I mentioned before, 
and it turns out not to be an "-malign=" problem like I was 
suspecting.  Instead, I was seeing "8 as alignment is 
not supported" warnings from include/pshpack8.h:

#  if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) || defined(_MSC_VER)
#    pragma pack(8)
#    warning "8 as alignment is not supported"
#  elif !defined(RC_INVOKED)
#    error "Adjusting the alignment is not supported with this compiler"
#  endif

I don't understand, if the alignment isn't supported, why the 
#pragma pack(8) is there...?  Anyhow, since it looks like
everybody using gcc gets the same warning, it's probably not
a gcc3.2 bug... but I was wondering if anyone could clarify
what's going on, and whether this indicates a problem
in crypt32.dll.so (the affected wine dll).

Thanks for your patience and help,

-gmt

-- 
"Waiting periods are only a step. Registration is only a step.
The prohibition of private firearms is the goal." 
  -U.S. Attorney General Janet Reno, December 1993




More information about the wine-devel mailing list