https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119012

--- Comment #4 from Levi Zim <rsworktech at outlook dot com> ---
(In reply to Andrew Pinski from comment #1)
> Can you attach the preprocessed source for rust-lex.cc ?
> 
> The big difference between stage1 and stage2 is debug info.

Here are the preprocessed source (*.ii, *.s, *.o) for rust-lex.cc produced by
running the following two commands:
https://github.com/user-attachments/files/19019922/rust-lex-preprocessed.zip

env -C stage1-gcc /build/gcc/src/gcc-build/./stage1-gcc/xg++
-B/build/gcc/src/gcc-build/./stage1-gcc/ -B/usr/riscv64-unknown-linux-gnu/bin/
-nostdinc++
-B/build/gcc/src/gcc-build/stage1-riscv64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/build/gcc/src/gcc-build/stage1-riscv64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/build/gcc/src/gcc-build/stage1-riscv64-unknown-linux-gnu/libstdc++-v3/include/riscv64-unknown-linux-gnu

-I/build/gcc/src/gcc-build/stage1-riscv64-unknown-linux-gnu/libstdc++-v3/include
 -I/build/gcc/src/gcc/libstdc++-v3/libsupc++
-L/build/gcc/src/gcc-build/stage1-riscv64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/build/gcc/src/gcc-build/stage1-riscv64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c \
 -I /build/gcc/src/gcc/gcc/rust -I /build/gcc/src/gcc/gcc/rust/lex -I
/build/gcc/src/gcc/gcc/rust/parse -I /build/gcc/src/gcc/gcc/rust/ast -I
/build/gcc/src/gcc/gcc/rust/analysis -I /build/gcc/src/gcc/gcc/rust/backend -I
/build/gcc/src/gcc/gcc/rust/expand -I /build/gcc/src/gcc/gcc/rust/hir/tree -I
/build/gcc/src/gcc/gcc/rust/hir -I /build/gcc/src/gcc/gcc/rust/resolve -I
/build/gcc/src/gcc/gcc/rust/util -I /build/gcc/src/gcc/gcc/rust/typecheck -I
/build/gcc/src/gcc/gcc/rust/checks/lints -I
/build/gcc/src/gcc/gcc/rust/checks/errors -I
/build/gcc/src/gcc/gcc/rust/checks/errors/privacy -I
/build/gcc/src/gcc/gcc/rust/checks/errors/borrowck -I
/build/gcc/src/gcc/gcc/rust/util -I /build/gcc/src/gcc/gcc/rust/metadata \
 -I /build/gcc/src/gcc/gcc/../libgrust -DIN_GCC_FRONTEND -march=rv64gc
-mabi=lp64d -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3
-Wformat          -fstack-clash-protection         -fno-omit-frame-pointer -g
-ffile-prefix-map=/build/gcc/src=/usr/src/debug/gcc -fno-checking
-flto=jobserver -frandom-seed=1 -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wno-unused-parameter   -DHAVE_CONFIG_H -fno-PIE -I.
-Irust -I/build/gcc/src/gcc/gcc \
 -I/build/gcc/src/gcc/gcc/rust -I/build/gcc/src/gcc/gcc/../include 
-I/build/gcc/src/gcc/gcc/../libcpp/include -I/build/gcc/src/gcc/gcc/../libcody 
-I/build/gcc/src/gcc/gcc/../libdecnumber
-I/build/gcc/src/gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-I/build/gcc/src/gcc/gcc/../libbacktrace   -o rust-lex.2.o -MT rust-lex.2.o
-MMD -MP -MF rust-lex.2.TPo -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt
-fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat         
-fstack-clash-protection         -fno-omit-frame-pointer -g
-ffile-prefix-map=/build/gcc/src=/usr/src/debug/gcc -fno-checking
-flto=jobserver -frandom-seed=1 -I /build/gcc/src/gcc/gcc/rust -I
/build/gcc/src/gcc/gcc/rust/lex \
 -I /build/gcc/src/gcc/gcc/rust/parse -I /build/gcc/src/gcc/gcc/rust/ast -I
/build/gcc/src/gcc/gcc/rust/analysis -I /build/gcc/src/gcc/gcc/rust/backend -I
/build/gcc/src/gcc/gcc/rust/expand -I /build/gcc/src/gcc/gcc/rust/hir/tree -I
/build/gcc/src/gcc/gcc/rust/hir -I /build/gcc/src/gcc/gcc/rust/resolve -I
/build/gcc/src/gcc/gcc/rust/util -I /build/gcc/src/gcc/gcc/rust/typecheck -I
/build/gcc/src/gcc/gcc/rust/checks/lints -I
/build/gcc/src/gcc/gcc/rust/checks/errors -I
/build/gcc/src/gcc/gcc/rust/checks/errors/privacy -I
/build/gcc/src/gcc/gcc/rust/checks/errors/borrowck -I
/build/gcc/src/gcc/gcc/rust/util -I /build/gcc/src/gcc/gcc/rust/metadata -I
/build/gcc/src/gcc/gcc/../libgrust /build/gcc/src/gcc/gcc/rust/lex/rust-lex.cc
\
 -save-temps=cwd

env -C stage2-gcc /build/gcc/src/gcc-build/./stage2-gcc/xg++
-B/build/gcc/src/gcc-build/./stage2-gcc/ -B/usr/riscv64-unknown-linux-gnu/bin/
-nostdinc++ \

-B/build/gcc/src/gcc-build/stage2-riscv64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/build/gcc/src/gcc-build/stage2-riscv64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
 \

-I/build/gcc/src/gcc-build/stage2-riscv64-unknown-linux-gnu/libstdc++-v3/include/riscv64-unknown-linux-gnu

-I/build/gcc/src/gcc-build/stage2-riscv64-unknown-linux-gnu/libstdc++-v3/include
 \
 -I/build/gcc/src/gcc/libstdc++-v3/libsupc++
-L/build/gcc/src/gcc-build/stage2-riscv64-unknown-linux-gnu/libstdc++-v3/src/.libs
\

-L/build/gcc/src/gcc-build/stage2-riscv64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c  -I /build/gcc/src/gcc/gcc/rust -I /build/gcc/src/gcc/gcc/rust/lex
\
 -I /build/gcc/src/gcc/gcc/rust/parse -I /build/gcc/src/gcc/gcc/rust/ast -I
/build/gcc/src/gcc/gcc/rust/analysis -I /build/gcc/src/gcc/gcc/rust/backend -I
/build/gcc/src/gcc/gcc/rust/expand \
 -I /build/gcc/src/gcc/gcc/rust/hir/tree -I /build/gcc/src/gcc/gcc/rust/hir -I
/build/gcc/src/gcc/gcc/rust/resolve -I /build/gcc/src/gcc/gcc/rust/util -I
/build/gcc/src/gcc/gcc/rust/typecheck \
 -I /build/gcc/src/gcc/gcc/rust/checks/lints -I
/build/gcc/src/gcc/gcc/rust/checks/errors -I
/build/gcc/src/gcc/gcc/rust/checks/errors/privacy -I
/build/gcc/src/gcc/gcc/rust/checks/errors/borrowck\
 -I /build/gcc/src/gcc/gcc/rust/util -I /build/gcc/src/gcc/gcc/rust/metadata -I
/build/gcc/src/gcc/gcc/../libgrust -DIN_GCC_FRONTEND -march=rv64gc -mabi=lp64d
-O2 -pipe -fno-plt \
 -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat         
-fstack-clash-protection         -fno-omit-frame-pointer -g
-ffile-prefix-map=/build/gcc/src=/usr/src/debug/gcc -fchecking=1 \
 -flto=jobserver -frandom-seed=1 -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute \
 -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Wno-unused-parameter  
-DHAVE_CONFIG_H -fno-PIE -I. -Irust \
 -I/build/gcc/src/gcc/gcc -I/build/gcc/src/gcc/gcc/rust
-I/build/gcc/src/gcc/gcc/../include  -I/build/gcc/src/gcc/gcc/../libcpp/include
-I/build/gcc/src/gcc/gcc/../libcody  \
 -I/build/gcc/src/gcc/gcc/../libdecnumber
-I/build/gcc/src/gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-I/build/gcc/src/gcc/gcc/../libbacktrace   -o rust-lex.3.o -MT rust-lex.3.o
-MMD -MP \
 -MF rust-lex.3.TPo -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions  
      -Wp,-D_FORTIFY_SOURCE=3 -Wformat          -fstack-clash-protection       
 -fno-omit-frame-pointer -g \
 -ffile-prefix-map=/build/gcc/src=/usr/src/debug/gcc -fchecking=1
-flto=jobserver -frandom-seed=1 -I /build/gcc/src/gcc/gcc/rust -I
/build/gcc/src/gcc/gcc/rust/lex \
 -I /build/gcc/src/gcc/gcc/rust/parse -I /build/gcc/src/gcc/gcc/rust/ast -I
/build/gcc/src/gcc/gcc/rust/analysis -I /build/gcc/src/gcc/gcc/rust/backend -I
/build/gcc/src/gcc/gcc/rust/expand \
 -I /build/gcc/src/gcc/gcc/rust/hir/tree -I /build/gcc/src/gcc/gcc/rust/hir -I
/build/gcc/src/gcc/gcc/rust/resolve -I /build/gcc/src/gcc/gcc/rust/util -I
/build/gcc/src/gcc/gcc/rust/typecheck \
 -I /build/gcc/src/gcc/gcc/rust/checks/lints -I
/build/gcc/src/gcc/gcc/rust/checks/errors -I /build/gcc/src/gcc/gcc/rust/check
\
 -save-temps=cwd

Reply via email to