public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: other/5450: __i386__ not defined on unixsware
@ 2002-01-21 23:13 rodrigc
  0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2002-01-21 23:13 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nils, nobody

Synopsis: __i386__ not defined on unixsware

State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Mon Jan 21 23:13:18 2002
State-Changed-Why:
    Does the problem go away if you patch gcc/config/i386/sysv4.h
    with the following?  It is similar to the last line
    of sysv5.h.
    
    
    
    Index: sysv4.h
    ===================================================================
    RCS file: /cvs/gcc/gcc/gcc/config/i386/sysv4.h,v
    retrieving revision 1.11.4.2
    diff -u -r1.11.4.2 sysv4.h
    --- sysv4.h     2001/05/22 17:13:48     1.11.4.2
    +++ sysv4.h     2002/01/22 07:10:06
    @@ -212,3 +212,6 @@
               "addl\t$_GLOBAL_OFFSET_TABLE_+[.-.LPR%=],%0"
      \
               : "=d"(BASE))
     #endif
    +
    +#undef CPP_SPEC
    +#define CPP_SPEC "%(cpp_cpu)"

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5450


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

* Re: other/5450: __i386__ not defined on unixsware
@ 2002-01-22 15:04 rodrigc
  0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2002-01-22 15:04 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nils, nobody

Synopsis: __i386__ not defined on unixsware

State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Tue Jan 22 15:04:35 2002
State-Changed-Why:
    Patch applied: http://gcc.gnu.org/ml/gcc-patches/2002-01/msg01506.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5450


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

* Re: other/5450: __i386__ not defined on unixsware
@ 2002-01-22  2:56 nils
  0 siblings, 0 replies; 4+ messages in thread
From: nils @ 2002-01-22  2:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR other/5450; it has been noted by GNATS.

From: nils@shkoo.com
To: rodrigc@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
        gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: other/5450: __i386__ not defined on unixsware
Date: Tue, 22 Jan 2002 03:51:20 -0700 (MST)

 yes,
 
 this fixes the problem.
 
 thanks,
 
 -nils
 
 On 22 Jan 2002 rodrigc@gcc.gnu.org wrote:
 
 > Synopsis: __i386__ not defined on unixsware
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: rodrigc
 > State-Changed-When: Mon Jan 21 23:13:18 2002
 > State-Changed-Why:
 >     Does the problem go away if you patch gcc/config/i386/sysv4.h
 >     with the following?  It is similar to the last line
 >     of sysv5.h.
 >     
 >     
 >     
 >     Index: sysv4.h
 >     ===================================================================
 >     RCS file: /cvs/gcc/gcc/gcc/config/i386/sysv4.h,v
 >     retrieving revision 1.11.4.2
 >     diff -u -r1.11.4.2 sysv4.h
 >     --- sysv4.h     2001/05/22 17:13:48     1.11.4.2
 >     +++ sysv4.h     2002/01/22 07:10:06
 >     @@ -212,3 +212,6 @@
 >                "addl\t$_GLOBAL_OFFSET_TABLE_+[.-.LPR%=],%0"
 >       \
 >                : "=d"(BASE))
 >      #endif
 >     +
 >     +#undef CPP_SPEC
 >     +#define CPP_SPEC "%(cpp_cpu)"
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5450
 > 
 


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

* other/5450: __i386__ not defined on unixsware
@ 2002-01-21 22:06 nils
  0 siblings, 0 replies; 4+ messages in thread
From: nils @ 2002-01-21 22:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5450
>Category:       other
>Synopsis:       __i386__ not defined on unixsware
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 21 22:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.0.3
>Organization:
>Environment:
System: UNIX_SV rapture 4.2MP 2.01 i386 x86at


	<machine, os, target, libraries (multiple lines)>
host: i386-pc-sysv4.2uw2.01
build: i386-pc-sysv4.2uw2.01
target: i386-pc-sysv4.2uw2.01
configured with: ./configure --with-gnu-as --with-gnu-ld
>Description:
	__i386__ not defined via specs file.

	__i386__ present in *cpp_cpu: section, but apparently this doesn't get
sent to the preprocessor command line.

	this causes problems with <sys/byteorder.h> which thinks the intel box is BIG_ENDIAN
	because __i386__ is not defined

>How-To-Repeat:

nils@rapture$ uname -a
UNIX_SV rapture 4.2MP 2.01 i386 x86at
nils@rapture$ cat testit.cc
#ifdef __i386__
i386 defined
#else
i386 undefined
#endif
nils@rapture$ gcc -v -E testit.cc
Reading specs from /usr/local/lib/gcc-lib/i386-pc-sysv4.2uw2.01/3.0.3/specs
Configured with: ./configure --with-gnu-as --with-gnu-ld
Thread model: single
gcc version 3.0.3
 /usr/local/lib/gcc-lib/i386-pc-sysv4.2uw2.01/3.0.3/cpp0 -lang-c++ -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSIO
N=100 -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=3 -Dunix -D__svr4__ -D__unix__ -D__svr4__ -D__unix -Asystem=unix -Asy
stem=svr4 -D__NO_INLINE__ -D__STDC_HOSTED__=1 testit.cc
GNU CPP version 3.0.3 (cpplib) (i386 System V Release 4)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include/g++-v3
 /usr/local/include/g++-v3/i386-pc-sysv4.2uw2.01
 /usr/local/include/g++-v3/backward
 /usr/local/include
 /usr/local/lib/gcc-lib/i386-pc-sysv4.2uw2.01/3.0.3/include
 /usr/local/i386-pc-sysv4.2uw2.01/include
 /usr/include
End of search list.
# 4 "testit.cc"
i386 undefined
nils@rapture$ cat /usr/local/lib/gcc-lib/i386-pc-sysv4.2uw2.01/3.0.3/specs
*asm:
--traditional-format %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}

*asm_final:
%|

*asm_options:
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}

*invoke_as:
%{!S:-o %{|!pipe:%g.s} |
 as %(asm_options) %{!pipe:%g.s} %A }

*cpp:


*cpp_options:
%{C:%{!E:%eGNU C does not support -C without using -E}} %{std*} %{nostdinc*} %{C} %{v} %{I*} %{P} %{$} %I %{MD:-M -MF %W{!o: %b.d}%W{o*:%.d%*}} %{MMD:-MM -MF %W{!o: %b.d}%W{o*:%.d%*}} %{M} %{MM} %W{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{M|MD|MM|MMD:%{o*:-MQ %*}} %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3} %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} %{fno-inline|O0|!O*:-D__NO_INLINE__} %{ffast-math:-D__FAST_MATH__} %{fshort-wchar:-U__WCHAR_TYPE__ -D__WCHAR_TYPE__=short\ unsigned\ int} %{ffreestanding:-D__STDC_HOSTED__=0} %{fno-hosted:-D__STDC_HOSTED__=0} %{!ffreestanding:%{!fno-hosted:-D__STDC_HOSTED__=1}} %{fshow-column} %{fno-show-column} %{fleading-underscore} %{fno-leading-underscore} %{fno-operator-names} %{ftabstop=*} %{remap} %{g3:-dD} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*&U*&A*} %{i*} %Z %i %{E:%{!M*:%W{o*}}}

*trad_capable_cpp:
%{traditional|ftraditional|traditional-cpp:trad}cpp0

*cc1:
%(cc1_cpu)

*cc1_options:
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{g*} %{O*} %{W*} %{w} %{pedantic*} %{std*} %{ansi} %{traditional} %{v:-version} %{pg:-p} %{p} %{f*} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*}

*cc1plus:


*endfile:
crtend.o%s %{pg:gcrtn.o%s}%{!pg:crtn.o%s}

*link:
%{h*} %{v:-V}              %{b} %{Wl,*:%*}                 %{static:-dn -Bstatic}                  %{shared:-G -dy -z text}                %{symbolic:-Bsymbolic -G -dy -z text}                   %{G:-G}                 %{YP,*}                 %{!YP,*:%{p:-Y P,/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib}                  %{!p:-Y P,/usr/ccs/lib:/usr/lib}}              %{Qy:} %{!Qn:-Qy}

*lib:
%{!shared:%{!symbolic:-lc}}

*libgcc:
-lgcc

*startfile:
%{!shared:                       %{!symbolic:                     %{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}}}                  %{pg:gcrti.o%s}%{!pg:crti.o%s}                  %{ansi:values-Xc.o%s}                   %{!ansi:                         %{traditional:values-Xt.o%s}                    %{!traditional:values-Xa.o%s}}                         crtbegin.o%s

*switches_need_spaces:


*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}

*predefines:
-Dunix -D__svr4__ -Asystem=unix -Asystem=svr4

*cross_compile:
0

*version:
3.0.3

*multilib:
. ;

*multilib_defaults:


*multilib_extra:


*multilib_matches:


*multilib_exclusions:


*linker:
collect2

*link_libgcc:
%D

*md_exec_prefix:
/usr/ccs/bin/

*md_startfile_prefix:
/usr/ccs/lib/

*md_startfile_prefix_1:


*cpp_cpu_default:
-D__tune_i386__

*cpp_cpu:
-Acpu=i386 -Amachine=i386 %{!ansi:%{!std=c*:%{!std=i*:-Di386}}} -D__i386 -D__i386__ %{march=i386:%{!mcpu*:-D__tune_i386__ }}%{march=i486:-D__i486 -D__i486__ %{!mcpu*:-D__tune_i486__ }}%{march=pentium|march=i586:-D__i586 -D__i586__ -D__pentium -D__pentium__   %{!mcpu*:-D__tune_i586__ -D__tune_pentium__ }}%{march=pentiumpro|march=i686:-D__i686 -D__i686__   -D__pentiumpro -D__pentiumpro__   %{!mcpu*:-D__tune_i686__ -D__tune_pentiumpro__ }}%{march=k6:-D__k6 -D__k6__ %{!mcpu*:-D__tune_k6__ }}%{march=athlon:-D__athlon -D__athlon__ %{!mcpu*:-D__tune_athlon__ }}%{m386|mcpu=i386:-D__tune_i386__ }%{m486|mcpu=i486:-D__tune_i486__ }%{mpentium|mcpu=pentium|mcpu=i586:-D__tune_i586__ -D__tune_pentium__ }%{mpentiumpro|mcpu=pentiumpro|mcpu=i686:-D__tune_i686__ -D__tune_pentiumpro__ }%{mcpu=k6:-D__tune_k6__ }%{mcpu=athlon:-D__tune_athlon__ }%{!march*:%{!mcpu*:%{!m386:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}}}

*cc1_cpu:
%{!mcpu*: %{m386:-mcpu=i386 %n`-m386' is deprecated. Use `-march=i386' or `-mcpu=i386' instead.
} %{m486:-mcpu=i486 %n`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
} %{mpentium:-mcpu=pentium %n`-mpentium' is deprecated. Use `-march=pentium' or `-mcpu=pentium' instead.
} %{mpentiumpro:-mcpu=pentiumpro %n`-mpentiumpro' is deprecated. Use `-march=pentiumpro' or `-mcpu=pentiumpro' instead.
}}

*link_command:
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:    %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t}    %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}    %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%G %L %G}}    %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}




>Fix:
	worked around by adding -D__i386__ to *predefines: section in spec file
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-01-22 23:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-21 23:13 other/5450: __i386__ not defined on unixsware rodrigc
  -- strict thread matches above, loose matches on Subject: below --
2002-01-22 15:04 rodrigc
2002-01-22  2:56 nils
2002-01-21 22:06 nils

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