Displaying 20 results from an estimated 96 matches for "mstackrealign".
2015 Apr 10
3
[PATCH] configure: only use -mstackrealign for mingw32
...; index eb9b0cc..e7d68c3 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -399,9 +399,11 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then
>
> if test "x$asm_optimisation$sse_os" = "xyesyes" ; then
> XIPH_ADD_CFLAGS([-msse2])
> - XIPH_ADD_CFLAGS([-mstackrealign])
> fi
> + fi
>
> +if test "$host_os" = "mingw32" ; then
> + XIPH_ADD_CFLAGS([-mstackrealign])
> fi
>
> XIPH_ADD_CFLAGS([-Wextra])
Everyone happy with this patch?
Erik
--
----------------------------------------------------------------------...
2015 Apr 10
2
[PATCH] configure: only use -mstackrealign for mingw32
...--git a/configure.ac b/configure.ac
index eb9b0cc..4347c07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -399,9 +399,10 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then
if test "x$asm_optimisation$sse_os" = "xyesyes" ; then
XIPH_ADD_CFLAGS([-msse2])
- XIPH_ADD_CFLAGS([-mstackrealign])
+ if test "$host_os" = "mingw32" ; then
+ XIPH_ADD_CFLAGS([-mstackrealign])
+ fi
fi
-
fi
XIPH_ADD_CFLAGS([-Wextra])
--
2.1.0
2015 Apr 10
2
[PATCH] configure: only use -mstackrealign for mingw32
On Fri, Apr 10, 2015 at 1:40 PM, lvqcl <lvqcl.mail at gmail.com> wrote:
> Tristan Matthews wrote:
>
> > if test "x$asm_optimisation$sse_os" = "xyesyes" ; then
> > XIPH_ADD_CFLAGS([-msse2])
> > - XIPH_ADD_CFLAGS([-mstackrealign])
> > + if test "$host_os" = "mingw32" ; then
> > + XIPH_ADD_CFLAGS([-mstackrealign])
> > + fi
> > fi
>
> But sse_os==no doesn't prevent libFLAC from using SSE intrinsics.
> So...
2015 Apr 11
3
[PATCH] configure: only use -mstackrealign on mingw32/os2
...--git a/configure.ac b/configure.ac
index eb9b0cc..8dd5b0d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -399,11 +399,16 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then
if test "x$asm_optimisation$sse_os" = "xyesyes" ; then
XIPH_ADD_CFLAGS([-msse2])
- XIPH_ADD_CFLAGS([-mstackrealign])
fi
-
fi
+case "$host_os" in
+ "mingw32"|"os2")
+ if test "$host_cpu" = "i686"; then
+ XIPH_ADD_CFLAGS([-mstackrealign])
+ fi
+esac
+
XIPH_ADD_CFLAGS([-Wextra])
if test x$enable_werror = "xyes" ; then
--
2.1.0
2015 Apr 10
0
[PATCH] configure: only use -mstackrealign for mingw32
Tristan Matthews wrote:
> if test "x$asm_optimisation$sse_os" = "xyesyes" ; then
> XIPH_ADD_CFLAGS([-msse2])
> - XIPH_ADD_CFLAGS([-mstackrealign])
> + if test "$host_os" = "mingw32" ; then
> + XIPH_ADD_CFLAGS([-mstackrealign])
> + fi
> fi
But sse_os==no doesn't prevent libFLAC from using SSE intrinsics.
So I think that the code
if test "$host_os" = "mingw32" ; then
XIPH_AD...
2015 Mar 10
1
ensure that stack is aligned for SSE functions if using mingw32
Tristan Matthews wrote:
> > One workaround is to use -mstackrealign where ever -msse2 is used
>
> Yes, that was one of the options mentioned in the article I linked
> (http://www.peterstock.co.uk/games/mingw_sse)
Can someone confirm that -mstackrealign fixes this issue? If it works,
that seems like the sanest solution.
Erik
--
-------------------------...
2015 Mar 09
2
ensure that stack is aligned for SSE functions if using mingw32
...I wonder why misaligned stack is a problem only for the FLAC library.
> There are many other libraries inside VLC...
>
> BTW: FLAC 1.3.1 uses -msse2 option by default. Do you remove it?
> Otherwise libFLAC may crash anywhere else (if its stack is not aligned).
One workaround is to use -mstackrealign where ever -msse2 is used
Dave
2014 Jun 03
2
[LLVMdev] How much memory clang llvm needs for debug compiling?
On Tue, Jun 3, 2014 at 7:59 AM, Nancy <nancydreaming at gmail.com> wrote:
>> First, you could switch to ld.gold instead of ld.bfd. It uses much
> $ln -s `which gold` /usr/local/bin/ld
>
>> the idea. I think for autoconf you need ".../configure
>> --enable-split-dwarf" to use this.
>>
> $.../configure --enable-targets=x86 --enable-split-dwarf
>
2015 Aug 21
0
Getting SSE2 instructions to work in 32-bit builds on Windows
...re the 16-byte alignment needed for SSE2 instructions.
Unfortunately, Windows does not ensure that a 32-bit application's
stack is 16-byte aligned, so this doesn't work. (There's no problem
for 64-bit builds, however.)
A solution is to add one more option:
-m32 -msse2 -mfpmath=sse -mstackrealign
The -mstackrealign option forces gcc to generate code to align the
stack on procedure entry, rather than assuming it is already aligned.
It would probably be enough to compile only a few modules with this
option (ones that are directly called from outside R), and hence avoid
most of the extra pro...
2023 Apr 05
1
path to rtools not updated in R 4.2.3 - line 1: gcc: command not found
...le packages needing compilation when updating.
Looks like the path given in
gcc? -I"C:/PROGRA~1/R/R-42~1.3/include" -DNDEBUG -DNTIMER
-I./SuiteSparse_config -DUSE_FC_LEN_T
-I"C:/rtools42/x86_64-w64-mingw32.static.posix/include"???? -O2 -Wall?
-std=gnu99 -mfpmath=sse -msse2 -mstackrealign? -c CHMfactor.c -o CHMfactor.o
/bin/sh: line 1: gcc: command not found
points to rtools42 by defaut
I have fixed the issue changing the folder name rtools43 into rtools42,
but I wonder wether this is recommandable...
[[alternative HTML version deleted]]
2013 Oct 12
1
[LLVMdev] Fwd: unsupported gc: vmkit
...disable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4
-target-linker-version 2.21.53.20110810 -resource-dir
/home/ali/llvm-3.3.src/Release+Asserts/bin/../lib/clang/3.3
-fdebug-compilation-dir /home/ali/Code/ReyMRE/vm/tools/ReyVM -ferror-limit
19 -fmessage-length 113 -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -backend-option -vectorize-loops -o
/tmp/OutOfMemoryError-NgX1wV.o -x ir
/home/ali/Code/ReyMRE/test/bin/rey/lang/somefile.bc
1. Code generation
What should I do to resolve this issue?
--------...
2012 Aug 29
0
[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?
...m-3.1.src/build/Debug+Asserts/bin/../lib/clang/3.1/include
-internal-externc-isystem /usr/arm-linux-gnueabi/include
-internal-externc-isystem /usr/arm-linux-gnueabi/usr/include
-fno-dwarf-directory-asm -fdebug-compilation-dir
/home/jedd10-04/TOOC/clang-samples -ferror-limit 19 -fmessage-length 132
-mstackrealign -fno-signed-char -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option
-fcolor-diagnostics -o hello.i -x c hello.c
clang -cc1 version 3.1 based upon LLVM 3.1 default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/usr/arm-lin...
2015 Oct 14
2
Compiling SAFECode poolalloc in cygwin create different libraries compared to linux.
...st-qual -Wall -Wno-deprecated -Wall -Wno-long-long
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default
-pedantic -fdebug-compilation-dir
/home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse
-ferror-limit 19 -fmessage-length 271 -fvisibility-inlines-hidden
-mstackrealign -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -o
/home/kpawar/SAFECode/LLVM_SRC/llvm/projects/safecode/tools/clang/lib/Parse/Release+Asserts/Parser.o
-x c++ tools/clang/lib/Parse/Parser.cpp
*Stack dump:*
0. Program arguments: /usr/b...
2023 Aug 31
1
Problems with installing R packages from source and running C++ in R, even on fresh R installation
? Thu, 31 Aug 2023 11:57:06 +0000
Christophe Bousquet <chr_bousquet at protonmail.com> ?????:
> > tools::Rcmd('SHLIB -n hello.c')
> > tools::Rcmd('SHLIB hello.c')
> >
> > What do the commands print? Does the second command fail?
>
> I basically get no output from the two commands, apart from a new
> blank R prompt.
So starting a new
2012 Jun 28
3
[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?
Hello list
I think I really finally found a way to crossbuild a binary for ARM using
Clang/llvm.
This message would be a documentation for someone who may concern for the
same issue with me.
- Target : TOSHIBA AC100 / Ubuntu 12.04 (https://wiki.ubuntu.com/ARM/**
TEGRA/AC100 <https://wiki.ubuntu.com/ARM/TEGRA/AC100>)
- Host : i386 Desktop PC / Ubuntu 12.04
- Toolchain on host : sudo
2012 Aug 02
1
[LLVMdev] Questions about clang options
...odule-cache -internal-isystem
/usr/local/include -internal-isystem
/opt/kernelgen/bin/../lib/clang/3.2/include -internal-externc-isystem
/include -internal-externc-isystem /usr/include
-fdebug-compilation-dir
/RHM/users/work/dmikushin/forge/kernelgen/trunk/src -ferror-limit 19
-fmessage-length 173 -mstackrealign -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics-show-option -fcolor-diagnostics -o showdebug.o -x c
showdebug.c
clang -cc1 version 3.2 based upon LLVM 3.2svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#in...
2023 Aug 31
1
Problems with installing R packages from source and running C++ in R, even on fresh R installation
...ROGRA~1/R/R-43~1.1/share/make/winshlib.mk" SHLIB="hello.dll" WIN=64 TCLBIN= OBJECTS="hello.o"
make would use
gcc -I"C:/PROGRA~1/R/R-43~1.1/include" -DNDEBUG -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c hello.c -o hello.o
if test "zhello.o" != "z"; then \
if test -e "hello-win.def"; then \
echo gcc -shared -s -static-libgcc -o hello.dll hello-win.def hello.o -L"C:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64" -L"C:/rtools43/x86_64-w64-mi...
2012 Jan 04
1
[LLVMdev] How can I compile a c source file to use SSE2 Data Movement Instructions?
...e" -internal-isystem
D:/work/trunk/bin/Release/../lib/clang/3.1
include -internal-isystem "C:\\Program Files\\Microsoft Visual Studio
9.0\\VC\\
nclude" -internal-isystem "C:\\Program Files\\Microsoft
SDKs\\Windows\\v6.0A\\\
include" -O3 -ferror-limit 19 -fmessage-length 80 -mstackrealign
-fms-extension
-fms-compatibility -fmsc-version=1300 -fdelayed-template-parsing
-fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics
show-option -fcolor-diagnostics -o test.s -x c test.c
.def _f;
.scl 2;
.type 32;
.endef
.text
.globl _f
.align 16,...
2013 Nov 20
0
[LLVMdev] lld-3.4 bloats llvm build badly
Hi Jack,
Are you packaging all the static libraries that lld produces as part of
the package ?
PS : When I build on x86_64, I only get a 9M image for lld.
Thanks
Shankar Easwaran
On 11/20/2013 9:15 AM, Jack Howarth wrote:
> When lld-3.4 is added to the tools directory of the llvm source tree
> as lld, the resulting cmake build produces a huge number of static libs and
> bloats
2013 Jul 24
2
[LLVMdev] Program compiled with Clang -pg and -O crashes with SEGFAULT
...stem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.3/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir /home/vagrant/work/c++ -ferror-limit 19 -fmessage-length 204 -pg -mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o /tmp/myprog-oJBSKs.o -x c myprog.c
clang -cc1 version 3.3 based upon LLVM 3.3 default target x86_64-pc-linux-gnu
ignoring nonexistent directory "/include&qu...