Commit Graph

1532 Commits

Author SHA1 Message Date
Stephane Carrez
0b71a29380 Reduce the symbol hash table size from 65536 entries to 1024 to reduce
memory usage of the parser but also to speed up its initialization due
to cache issues.  During Sax parser initialization, the 2Mb hash table
is cleared which fills up the cache for nothing.  By reducing the hash
table to 1024, the hash table is reduced to 32kb hence leaving less
pressure on the cache.
See https://blog.vacs.fr/vacs/blogs/post.html?post=2013/03/02/Optimization-with-Valgrind-Massif-and-Cachegrind
2018-02-04 22:31:35 +01:00
Pascal Obry
d8fd79270a Simplify makefile installation rules by using a variable to share options.
Also properly use two --build-var as needed now.

For Q710-013.

Change-Id: Ie58f7f0cbc267f84b3d4d98996510570719f1a61
2017-11-16 18:05:57 +01:00
Pascal Obry
9d14140c6a Install project in share/gpr instead of lib/gnat.
Part of Q710-013.

Change-Id: I0dfecd27b22ac021829166e2b7ee3fc5550507be
2017-11-15 11:37:33 +01:00
Pascal Obry
0611bd30f1 Use two build variables for the installation.
One specific to the project, one generic shared with other projects.

Part of Q710-013.

Change-Id: I28ad4448d045412a9e753105ba4e8789a4966791
2017-11-15 11:37:27 +01:00
Valentine Reboul
1c7ee7d95d [PA07-083][Q831-010] cleanup of ineffective use-clauses
Change-Id: I351103d11afd53b4c8c264a2e9df9711df8d35a0
2017-09-14 12:41:38 +02:00
Joel Brobecker
de01855c92 Add support for RTS= Makefile variable
This variable can be used to build XmlAda with a given RTS,
and it also adjust the installation directory where XmlAda
gets installed afterwards.

For Q802-040.

Change-Id: I54b18f184517c7eded0409c264ce8030f33d6782
2017-08-17 18:37:43 -04:00
Joel Brobecker
b4fc5342b5 use @target_alias@ for --target option and install prefix
When trying to build XmlAda for e500v2-vx6, one calls configure
with --target=e500v2-wrs-vxworks, which results in the Makefile
containing the following definition for TARGET:

    TARGET=powerpc-wrs-vxworks

This is because the --target has been canonicalized by config.sub,
and this is expected. However, this causes problems during the build,
since we then call gprbuild with --target=powerpc-wrs-vxworks
instead of the target we specified during the configure.

This patch fixes the issue by declaring a new Makefile variable
called TARGET_ALIAS, and using that for gprbuild's --target=
option, as well as the installation prefix.

Unveiled while working on O611-016.

Change-Id: I7cf3b24c48d26af0930813b1aff304dc78561aad
2017-08-04 14:41:14 -04:00
Joel Brobecker
302aec3f3a disable style checks on README.md
That file contains some commands which are over 80 lines long.

Change-Id: I08ed015617f384dff4e2461118073ba47b648b50
2017-08-03 21:14:01 -04:00
Fedor Rybin
9dd5a102f3 Q605-023 add VxWorks-friendly tests
For the purpose of sanity checking xmlada on VxWorks (and possibly
other cross platforms), add cross-comilable examples, one per dom, sax
and schema, that have all xml/xsd sources embedded in the test's main.
Add new cross- and existing examples to the installation of xmlada.

Change-Id: I56848955171a3b1f16f38bc3ecd7cef253af6346
2017-06-09 11:29:30 +03:00
Fedor Rybin
b1be3aa7a2 Q215-048 fix xmlada examples
Fix examples to import proper project names,
fix domschemaexample to not unset the namespeces feature,
add examples to the testing.

Change-Id: Ic5ba519f9ae80f4df3931757a1fcdb9b72e4f540
2017-02-22 13:05:36 +01:00
Emmanuel Briot
55770ceb78 Fix handling of minOccurs > 1 on some elements
Q119-022

Change-Id: Id9d3e4da9c644971886a38e34d26a2cf7c4e48e7
2017-01-19 16:34:03 +01:00
Emmanuel Briot
53dc51bf5c Update copyright notices
Change-Id: Iae1283292b460ead48dedc565d6f24259e497e69
2017-01-03 10:02:38 +01:00
Vasiliy Fofanov
7cedb2ac53 Remove kp/nf files - moved to impactdb. PA05-043 2016-10-20 18:06:00 +02:00
Nicolas Setton
c0da86f097 Add the file documenting the GCC Runtime Library Exception
For P902-034.

Change-Id: I1a739695ee2d4fb9e0277c05152a8167256dd19e
2016-10-17 12:56:30 -04:00
Emmanuel Briot
bf7c34e5c1 Branched for 17 has been done
Change-Id: I0a3adde686427d533f4fb7226e9bbd4d3b4c29f2
2016-10-07 16:48:25 +02:00
Emmanuel Briot
1dba7d2453 ("<", "<="): attempt to make XML_Float comparison work on ppc-linux
Change-Id: I8401a06b41e8f88ecff1eb60bc5e3df4631547b6
2016-10-03 10:48:30 +02:00
Emmanuel Briot
8b8bfd4918 Minor adjustment
Change-Id: I1bc749cda535b51a25a5f9ad9a8bf919456c77ca
2016-08-17 14:00:08 +02:00
Emmanuel Briot
38ea3e50e2 Remove unnecessary pragma
Change-Id: I2c3b5660bc06d23a33b0c0843cfd770d1dc7d99c
2016-08-17 13:55:15 +02:00
Emmanuel Briot
bbf72ad4f4 Compare local names when overriding inherited attributes.
Second issue from P801-022

Change-Id: I73a488658f2110f6735d7531b4620d13783c82e1
2016-08-17 13:04:10 +02:00
Emmanuel Briot
a685dd2dfc Normalize XSD path to avoid duplicate parsing
When a XSD file is referenced via a relative path with symbolic links
or "." and "..", it could be parsed several times, possibly resulting
in errors like duplicate IDs.

P801-022

Change-Id: I7e12b67e3018b3fc3aeeccb5c428c9aea14dfa39
2016-08-17 12:12:44 +02:00
Emmanuel Briot
50d313e1f8 Increase internal limit for maxOccurs
We still emit a warning for large values, but do not prevent validating
documents.

P812-015

Change-Id: If61b53425f27417f0ae108c5a79b8edd7f690f8c
2016-08-16 17:30:10 +02:00
Emmanuel Briot
2802f3f3c0 Add support for passing extra switches to GPRBUILD
Needed on some platforms like Darwin for shared libs that might get
repositioned by installers.
Also useful for passing -d to monitor progress

Requested on githuba for commit 0f5b329

Change-Id: Icf78b82cd9f7bbcf81b9d3bbb11809078f4c84f1
2016-06-30 09:26:38 +02:00
Emmanuel Briot
0d89040fe6 Fix handling of <choice> with elements with maxOccurs
If a <choice> has two or more elements with a maxOccurs property,
they will allow a mix of the elements, when it should only allow a
repeat of one of the elements.

The simple fix to the state machine is in schema-schema_readers.adb.
But this change resulted in a regression in the testsuite, when one
of the elements in the <choice> is a <any>. At this point, we are
trying to replace the states in the state machine, but did not
properly chain them, and therefore some states accessible via
empty transitions were not properly accessible.

The order of suggested elements in error messages was reversed in
some cases, but the error message is still value, so adjust the
baseline.

P621-020

Change-Id: I1cfb58e2fd45cfd0fc1660fa8727ab679543ba5b
2016-06-23 13:50:48 +02:00
Emmanuel Briot
b02d093dc7 Fix handling of sequences with unbounded elements
The sequence itself was allowed to repeat itself

P616-033

Change-Id: I62f34a63b34da17da4a8c9a6afb253f88196a981
2016-06-17 11:14:32 +02:00
Emmanuel Briot
1184d97d88 Add support for unicode 8 names
Contributed by Nicolas Boulenguez (nicolas at debian.org)

Remove the old convert.pl that had been used to import the old list of
names, and replace with a full-Ada importer instead.
Import all names from the Unicode 8 standard.

Change-Id: I03bfa4d0ff769abc8a3b2e23149e1b745f3a8f10
2016-06-02 10:53:20 +02:00