I have a question about the behavior of gcc for powerpc.

I think the arguments -msdata and -msdata=default have same effect to gcc.
But gcc sent different argument to gas.
When -msdata is set, gcc sent -memb to gas.
When -msdata=default is set, gcc doesn't send -memb to gas.

I think `specs' has an error. Is it correct?

Environment:
  gcc version 4.1.1
    Configured with: ../gcc-4.1.1/configure --prefix=/work/te/tool/Linux-i686
         --target=powerpc-unknown-linux --with-gnu-as --with-gnu-ld 
         --disable-threads --enable-languages=c 
         --enable-version-specific-runtime-libs --disable-libstdcxx-pch 
         --disable-shared
  GNU assembler version 2.17 (powerpc-unknown-linux) using BFD version 2.17
  host: i686-pc-linux-gnu

Example

$ /work/te/tool/Linux-i686/bin/powerpc-unknown-linux-gcc -save-temps -v -msdata
-c -o main.o main.c
                    .
                    .
 /work/te/tool/Linux-i686/powerpc-unknown-linux/bin/as -mppc -many -V -Qy -memb
-o main.o main.s

$ /work/te/tool/Linux-i686/bin/powerpc-unknown-linux-gcc -save-temps -v
-msdata=default -c -o main.o main.c
                    .
                    .
 /work/te/tool/Linux-i686/powerpc-unknown-linux/bin/as -mppc -many -V -Qy -o
main.o main.s

Regards.


-- 
           Summary: When -msdata is set, gcc sent -memb to gas.
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tanaka at personal-media dot co dot jp
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: powerpc-unknown-linux


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

Reply via email to