Re: How to pack small type to big type without memory load/store ?

2020-08-03 Thread Tadeus Prastowo via Gcc
On Tue, Aug 4, 2020 at 5:10 AM Jojo R wrote: > > Hi, > > Form My ABI, float register is used by function call, > I want to pack float a and b into double v without any memory load/store, > > The flowing is my demo: > > Typedef union { > float ff[2]; > double v; > } double_u; > > Do

Re: GCC 10.2: Spurious(?) stringop-overflow warning (not strlen/strcpy/etc.)

2020-08-03 Thread Paul Smith
On Mon, 2020-08-03 at 17:02 -0600, Martin Sebor wrote: > If the code is designed to treat Node sort of like a struct with > a flexible array member I would suggest to make that explicit by > adding a zero-element array member to Node and using it to access > other memory. E.g., add: > > unsi

How to pack small type to big type without memory load/store ?

2020-08-03 Thread Jojo R
Hi, Form My ABI, float register is used by function call, I want to pack float a and b into double v without any memory load/store, The flowing is my demo: Typedef union { float ff[2]; double v; } double_u; Double pack_float (float a, float b) { double_u tmp; t

Re: GCC 10.2: Spurious(?) stringop-overflow warning (not strlen/strcpy/etc.)

2020-08-03 Thread Martin Sebor via Gcc
On 8/3/20 2:18 PM, Paul Smith wrote: I'm testing upgrading from GCC 9.3 to 10.2 and I'm seeing this new warning: $ g++ --version x86_64-unknown-linux-gnu-g++ (GCC) 10.2.0 ... $ g++ -Wall -Werror -O2 -c -o stringop.o stringop.cpp In member function 'void LeafNode::markUpdate(

Re: Question regarding usage of vec.h

2020-08-03 Thread Thomas Koenig via Gcc
Hi Chung-Lin, I think you need to initialize the 'vec extrema' field with vNULL, or maybe some other constructor. Thanks, I'll give it a try. Regards Thomas

Re: Ellipsis in varadic macro definitions

2020-08-03 Thread Jonathan Wakely via Gcc
On Mon, 3 Aug 2020 at 14:53, Richard Sandiford wrote: > > Jonathan Wakely via Gcc writes: > > On Mon, 3 Aug 2020 at 11:28, Florian Weimer wrote: > >> > >> * Jonathan Wakely via Gcc: > >> > >> > On Sun, 2 Aug 2020 at 15:49, Philip R Brenan via Gcc > >> > wrote: > >> >> > >> >> Hi *GCC*: > >> >>

GCC 10.2: Spurious(?) stringop-overflow warning (not strlen/strcpy/etc.)

2020-08-03 Thread Paul Smith
I'm testing upgrading from GCC 9.3 to 10.2 and I'm seeing this new warning: $ g++ --version x86_64-unknown-linux-gnu-g++ (GCC) 10.2.0 ... $ g++ -Wall -Werror -O2 -c -o stringop.o stringop.cpp In member function 'void LeafNode::markUpdate()', inlined from 'void applyTo(LeafNod

Re: Ellipsis in varadic macro definitions

2020-08-03 Thread Joseph Myers
On Mon, 3 Aug 2020, Florian Weimer via Gcc wrote: > It was introduced with: > > commit 1c5dd43ff7c78bbdba5e89a6cb16a3e50e1abff9 > Author: Zack Weinberg > Date: Fri Jun 15 17:57:48 2001 + > > cpp.texi: Formatting corrections. > > * doc/cpp.texi: Formatting corrections. > C

[x86-64 psABI] RFC: Document Intel AMX

2020-08-03 Thread H.J. Lu via Gcc
Intel Advanced Matrix Extensions (Intel AMX) is a new programming paradigm consisting of two components: a set of 2-dimensional registers (tiles) representing sub-arrays from a larger 2-dimensional memory image, and accelerators able to operate on tiles. Capability of Intel AMX implementation is en

כל הצימרים והאטרקציות לציבור הדתי כאן - במדריך "אתרים" (פרסומת)

2020-08-03 Thread ישראמדיה- דורון via Gcc
מבצעים בלעדיים לכל השנה - מומלץ לשמור -כתובתנו: שטנר 3 ירושלים 02-6529595 [ ](http://uclicks.smail1007.com/48g1eix8nbpt-7054647471-ed1d874bb637cf1d67421b8cfbc156cc.htm) � מאות אטרקציות וצימרים במיוחד לציבור הדתי עד 40% הנחה לאטרקציות וצימרים העבירו את ההודעה לאנשים שישמחו לקבל אותה . מומלץ

Re: Ellipsis in varadic macro definitions

2020-08-03 Thread Richard Sandiford
Jonathan Wakely via Gcc writes: > On Mon, 3 Aug 2020 at 11:28, Florian Weimer wrote: >> >> * Jonathan Wakely via Gcc: >> >> > On Sun, 2 Aug 2020 at 15:49, Philip R Brenan via Gcc >> > wrote: >> >> >> >> Hi *GCC*: >> >> >> >> On page: >> >> >> >> https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros

Re: Ellipsis in varadic macro definitions

2020-08-03 Thread Jonathan Wakely via Gcc
On Mon, 3 Aug 2020 at 11:28, Florian Weimer wrote: > > * Jonathan Wakely via Gcc: > > > On Sun, 2 Aug 2020 at 15:49, Philip R Brenan via Gcc > > wrote: > >> > >> Hi *GCC*: > >> > >> On page: > >> > >> https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html#Variadic-Macros > >> > >> you say: > >>

Re: Ellipsis in varadic macro definitions

2020-08-03 Thread Florian Weimer via Gcc
* Jonathan Wakely via Gcc: > On Sun, 2 Aug 2020 at 15:49, Philip R Brenan via Gcc wrote: >> >> Hi *GCC*: >> >> On page: >> >> https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html#Variadic-Macros >> >> you say: >> >> #define eprintf(args…) fprintf (stderr, args) >> >> but do you in fact mean: >

Re: Question regarding usage of vec.h

2020-08-03 Thread Chung-Lin Tang
On 2020/8/3 12:24 AM, Thomas Koenig via Gcc wrote: Hi, in a patch I am developing, I have the following code: typedef struct {   gfc_code *c;   int branch_level;   bool seen_goto;   vec extrema; } do_t; static vec doloop_list; [...]   do_t loop;   doloop_list.safe_push (loop);   do

[Patch, committed] Fortran texi: Fix typos (was: Re: FWIW)

2020-08-03 Thread Tobias Burnus
Thanks for reporting the typo. I have now fixed it together with some other typos. Tobias On 8/2/20 10:27 PM, Jonathan Wakely via Fortran wrote: CC The gfortran list. On Sat, 1 Aug 2020 at 23:38, Nino Pereira via Gcc wrote: https://gcc.gnu.org/onlinedocs/gfortran/INT.html#INT has two occurr