| 1 |
2014-12-22 Eric Botcazou <[email protected]> |
| 2 |
|
| 3 |
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_{Min,Max}>: If the |
| 4 |
type is a floating-point type, implement the semantics of the C99 |
| 5 |
f{min,max} routines with regard to NaNs. |
| 6 |
(gnat_to_gnu): Call builtin_decl_implicit. |
| 7 |
* gcc-interface/utils2.c (compare_arrays): Adjust comments. |
| 8 |
|
| 9 |
2014-12-22 Eric Botcazou <[email protected]> |
| 10 |
|
| 11 |
* gcc-interface/decl.c (gnat_to_gnu_field): Post the error message |
| 12 |
for parent overlapping on the position instead of on the first bit. |
| 13 |
For a field that needs strict alignment, issue the error for the |
| 14 |
position first and, for the size, issue an error if it is too large |
| 15 |
only for the atomic and aliased cases. Issue a specific error if |
| 16 |
the size is not a multiple of a byte in the volatile and the strict |
| 17 |
alignment cases. |
| 18 |
|
| 19 |
2014-12-22 Eric Botcazou <[email protected]> |
| 20 |
|
| 21 |
* gcc-interface/decl.c (check_ok_for_atomic): Rename into... |
| 22 |
(check_ok_for_atomic_type): ...this. When checking the mode, also |
| 23 |
check that the type is sufficient aligned. Remove useless code and |
| 24 |
tidy up implementation. |
| 25 |
(gnat_to_gnu_entity): Adjust to above renaming. |
| 26 |
(gnat_to_gnu_component_type): Likewise. |
| 27 |
(gnat_to_gnu_field): Likewise. |
| 28 |
|
| 29 |
2014-12-17 Pierre-Marie de Rodat <[email protected]> |
| 30 |
|
| 31 |
* gcc-interface/misc.c (gnat_get_array_descr_info): New. Use it for |
| 32 |
the get_array_descr_info lang-hook. Use it to tune the DWARF output |
| 33 |
for array types. |
| 34 |
|
| 35 |
2014-11-24 Eric Botcazou <[email protected]> |
| 36 |
|
| 37 |
* gcc-interface/Makefile.in (Cygwin/Mingw): Fix previous change. |
| 38 |
|
| 39 |
2014-11-24 Eric Botcazou <[email protected]> |
| 40 |
|
| 41 |
* gcc-interface/trans.c (build_return_expr): Use INIT_EXPR instead of |
| 42 |
MODIFY_EXPR to assign to the return object. |
| 43 |
(finalize_nrv_r): Adjust to above change. |
| 44 |
(finalize_nrv_unc_r): Likewise. |
| 45 |
|
| 46 |
2014-11-24 Eric Botcazou <[email protected]> |
| 47 |
|
| 48 |
* gcc-interface/trans.c (push_range_check_info): Replace early test |
| 49 |
with assertion. |
| 50 |
(Raise_Error_to_gnu): Do not call push_range_check_info if the loop |
| 51 |
stack is empty. |
| 52 |
* gcc-interface/utils.c (convert_to_fat_pointer): Fix formatting. |
| 53 |
* gcc-interface/utils2.c (gnat_invariant_expr): Deal with padded types |
| 54 |
and revert latest change. |
| 55 |
|
| 56 |
2014-11-22 Eric Botcazou <[email protected]> |
| 57 |
|
| 58 |
* gcc-interface/trans.c (Call_to_gnu): Strip unchecked conversions on |
| 59 |
actuals of In parameters if the destination type is an unconstrained |
| 60 |
composite type. |
| 61 |
|
| 62 |
2014-11-22 Eric Botcazou <[email protected]> |
| 63 |
|
| 64 |
* gcc-interface/trans.c (gnat_gimplify_expr): Add 'type' variable. |
| 65 |
<case NULL_EXPR>: Deal with unconstrained array types and use 'type'. |
| 66 |
<case ADDR_EXPR>: Use 'type'. |
| 67 |
<case DECL_EXPR>: Likewise. |
| 68 |
|
| 69 |
2014-11-20 Trevor Saunders <[email protected]> |
| 70 |
|
| 71 |
* gcc-interface/decl.c (annotate_value_cache): Replace htab with |
| 72 |
hash_table. |
| 73 |
(annotate_value): Adjust. |
| 74 |
(init_gnat_decl): Likewise. |
| 75 |
(destroy_gnat_decl): Likewise. |
| 76 |
* gcc-interface/utils.c (pad_type_hash_table): Replace htab with |
| 77 |
hash_table. |
| 78 |
(init_gnat_utils): Adjust. |
| 79 |
(destroy_gnat_utils): Likewise. |
| 80 |
(lookup_and_insert_pad_type): Likewise. |
| 81 |
|
| 82 |
2014-11-20 Arnaud Charlet <[email protected]> |
| 83 |
|
| 84 |
PR ada/63931 |
| 85 |
* gnatvsn.ads (Library_Version): Switch to "5". |
| 86 |
|
| 87 |
2014-11-20 Thomas Quinot <[email protected]> |
| 88 |
|
| 89 |
* freeze.adb (Freeze_Entity): Do not reset Is_True_Constant |
| 90 |
for aliased constant objects. |
| 91 |
|
| 92 |
2014-11-20 Robert Dewar <[email protected]> |
| 93 |
|
| 94 |
* exp_util.adb (Following_Address_Clause): Use new Name_Table |
| 95 |
boolean flag set by parser to avoid the search if there is no |
| 96 |
address clause anywhere for the name. |
| 97 |
* namet.adb (Name_Enter): Initialize Boolean_Info flag |
| 98 |
(Name_Find): ditto (Reinitialize): ditto (Get_Name_Table_Boolean): |
| 99 |
New function (Set_Name_Table_Boolean): New procedure |
| 100 |
* namet.ads: Add and document new Boolean field in name table |
| 101 |
(Get_Name_Table_Boolean): New function. |
| 102 |
(Set_Name_Table_Boolean): New procedure. |
| 103 |
* par-ch13.adb (P_Representation_Clause): Set Name_Table boolean |
| 104 |
flag for an identifier name if we detect an address clause or |
| 105 |
use-at clause for the identifier. |
| 106 |
* sem_ch3.adb (Analyze_Object_Declaration): Remove comment about |
| 107 |
Following_Address_Clause since this function is now optimized |
| 108 |
and is not a performance concern. |
| 109 |
* sem_prag.adb (Analyze_Pragma, case Elaborate): In SPARK |
| 110 |
mode, pragma Elaborate is now allowed, but does not suppress |
| 111 |
elaboration checking. |
| 112 |
|
| 113 |
2014-11-20 Jerome Lambourg <[email protected]> |
| 114 |
|
| 115 |
* gcc-interface/Makefile.in: Add some support for VxWorks7. |
| 116 |
|
| 117 |
2014-11-20 Thomas Quinot <[email protected]> |
| 118 |
|
| 119 |
* sem_ch13.adb, freeze.adb: Minor reformatting. |
| 120 |
* gnat_rm.texi: Minor editing. |
| 121 |
|
| 122 |
2014-11-20 Robert Dewar <[email protected]> |
| 123 |
|
| 124 |
* sem_prag.adb (Analyze_Pragma): Minor reformatting. |
| 125 |
(Process_Suppress_Unsuppress): Ignore suppress Elaboration_Check |
| 126 |
in SPARK. |
| 127 |
|
| 128 |
2014-11-20 Bob Duff <[email protected]> |
| 129 |
|
| 130 |
* gnat_rm.texi: Correction to documentation of |
| 131 |
'Unrestricted_Access in case of access to unconstrained array. |
| 132 |
* a-cofove.adb (Capacity): Fix bug -- was always |
| 133 |
returning Capacity_Range'Last. |
| 134 |
(Is_Sorted): Fix bug -- was always returning True, because |
| 135 |
Container.Last = Last. That test isn't even needed, because the |
| 136 |
loop will go around zero times in that case, so deleted that |
| 137 |
test rather than fixing it. |
| 138 |
(Reverse_Elements): Make sure to use the correct array bounds. |
| 139 |
|
| 140 |
2014-11-20 Ed Schonberg <[email protected]> |
| 141 |
|
| 142 |
* sem_ch12.adb (Analyze_Associations): In GNATProve mode, build |
| 143 |
wrappers for functions and operators that are actuals only if |
| 144 |
expander is enabled. Wrappers play no role within a generic unit. |
| 145 |
|
| 146 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 147 |
|
| 148 |
* sem_util.adb (Policy_In_Effect): Use the |
| 149 |
configuration level assertion flag. |
| 150 |
|
| 151 |
2014-11-20 Arnaud Charlet <[email protected]> |
| 152 |
|
| 153 |
* s-parame-ae653.ads: Update comments. |
| 154 |
|
| 155 |
2014-11-20 Robert Dewar <[email protected]> |
| 156 |
|
| 157 |
* types.ads, einfo.ads: Minor reformatting. |
| 158 |
* sem_elab.adb (Check_A_Call): Add guard for reference to Alias |
| 159 |
for variable case. |
| 160 |
|
| 161 |
2014-11-20 Bob Duff <[email protected]> |
| 162 |
|
| 163 |
* a-cofove.adb (Elems,Elemsc): Use access-to-constrained arrays |
| 164 |
instead of access-to-unconstrained, because the latter doesn't |
| 165 |
work with 'Unrestricted_Access when the result is returned from |
| 166 |
a function. |
| 167 |
* a-cofove.ads (Vector): Move the discriminant-dependent array |
| 168 |
after the other components for efficiency. Otherwise the compiler |
| 169 |
will generate a lot of code to calculate the offset of the other |
| 170 |
components every time they're accessed. |
| 171 |
|
| 172 |
2014-11-20 Olivier Hainque <[email protected]> |
| 173 |
|
| 174 |
* opt.ads: Fix comment on Generate_SCO_Instance_Table wrt when |
| 175 |
it is set to true. |
| 176 |
|
| 177 |
2014-11-20 Ed Schonberg <[email protected]> |
| 178 |
|
| 179 |
* exp_ch3.adb (Expand_N_Object_Declaration): Handle properly |
| 180 |
a type invariant check on an object with default initialization |
| 181 |
and an address clause. |
| 182 |
|
| 183 |
2014-11-20 Robert Dewar <[email protected]> |
| 184 |
|
| 185 |
* sem_elab.adb (Check_A_Call): Handle variable ref case in |
| 186 |
SPARK (Check_Elab_Call): ditto (Find_Elab_Reference): ditto |
| 187 |
(Get_Referenced_Ent): ditto. |
| 188 |
* sem_elab.ads: Comment fixes to account for the fact that we |
| 189 |
now deal with variable references in SPARK mode. |
| 190 |
* sem_res.adb (Resolve_Entity_Name): In SPARK_Mode Call |
| 191 |
Check_Elab_Call for variable. |
| 192 |
|
| 193 |
2014-11-20 Yannick Moy <[email protected]> |
| 194 |
|
| 195 |
* a-cofove.ads (Copy): Fix precondition, which should allow |
| 196 |
Capacity = 0. |
| 197 |
(First_To_Previous, Current_To_Last): Add necessary preconditions. |
| 198 |
|
| 199 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 200 |
|
| 201 |
* exp_ch3.adb (Build_Initialization_Call): Reimplement the |
| 202 |
circuitry which extraacts the [underlying] full view of a |
| 203 |
private type to handle a case where the private type acts as a |
| 204 |
generic actual. |
| 205 |
* exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Inherit the |
| 206 |
loop label form the original loop regardless of whether it came |
| 207 |
from source. |
| 208 |
* sem_attr.adb (Analyze_Attribute): When taking 'Access of an |
| 209 |
expression function with a generated body that has not been |
| 210 |
analyzed yet, analyze the body to freeze the expression. |
| 211 |
* sem_util.adb (Set_Public_Status_Of): New routine. |
| 212 |
(Transfer_Entities): Handle the case where a private type with |
| 213 |
an internally generated full view is being transfered and update |
| 214 |
its full view. |
| 215 |
|
| 216 |
2014-11-20 Vincent Celier <[email protected]> |
| 217 |
|
| 218 |
* prj-nmsc.adb (Check_Object): If a unit is in a multi-source |
| 219 |
file, its object file is never the same as any other unit. |
| 220 |
|
| 221 |
2014-11-20 Bob Duff <[email protected]> |
| 222 |
|
| 223 |
* s-taskin.adb (Initialize_ATCB): Take into |
| 224 |
account the fact that the domain of the activator can be null |
| 225 |
if we're initializing a foreign task. |
| 226 |
|
| 227 |
2014-11-20 Robert Dewar <[email protected]> |
| 228 |
|
| 229 |
* sem_ch12.adb: Minor reformatting. |
| 230 |
|
| 231 |
2014-11-20 Jerome Lambourg <[email protected]> |
| 232 |
|
| 233 |
* s-osinte-vxworks.ads: Add comments. Minor reformatting. |
| 234 |
|
| 235 |
2014-11-20 Yannick Moy <[email protected]> |
| 236 |
|
| 237 |
* sem_prag.adb, sem_elab.adb: Minor rewording of error message in |
| 238 |
SPARK mode, for consistency. |
| 239 |
|
| 240 |
2014-11-20 Vasiliy Fofanov <[email protected]> |
| 241 |
|
| 242 |
* gnat_ugn.texi: New section on gnattest stubbing. Minor |
| 243 |
reformatting. |
| 244 |
|
| 245 |
2014-11-20 Jerome Lambourg <[email protected]> |
| 246 |
|
| 247 |
* s-taprop-vxworks.adb (Create_Task): Fix thread comparison. |
| 248 |
Minor reformatting. |
| 249 |
|
| 250 |
2014-11-20 Robert Dewar <[email protected]> |
| 251 |
|
| 252 |
* s-tassta.adb, exp_aggr.adb, s-taskin.adb, exp_strm.adb: Minor |
| 253 |
reformatting. |
| 254 |
* comperr.adb (Compiler_Abort): New wording for bug box. |
| 255 |
* par-ch13.adb: Minor reformatting. |
| 256 |
* par-ch3.adb (P_Identifier_Declarations): Handle aspect |
| 257 |
specifications given before initialization expression in object |
| 258 |
declaration cleanly. |
| 259 |
* gnat1drv.adb (Adjust_Global_Switches): Make sure static |
| 260 |
elaboration mode is set if we are operating in SPARK mode. |
| 261 |
* sem_ch12.adb (Analyze_Package_Instantiation): Make |
| 262 |
sure static elab mode is set if we are in SPARK mode. |
| 263 |
(Analyze_Subprogram_Instantiation): ditto. |
| 264 |
(Set_Instance_Env): ditto. |
| 265 |
* sem_elab.adb (Check_A_Call): In SPARK mode, we require |
| 266 |
Elaborate_All in the case of a call during elaboration to a |
| 267 |
subprogram in another unit. |
| 268 |
|
| 269 |
2014-11-20 Ed Schonberg <[email protected]> |
| 270 |
|
| 271 |
* inline.adb (Can_Split_Unconstrained_Function, |
| 272 |
Build_Procedure): Copy parameter type rather than creating |
| 273 |
reference to the entity, to capture class-wide reference, whose |
| 274 |
name is not retrieved by visibility. |
| 275 |
|
| 276 |
2014-11-20 Arnaud Charlet <[email protected]> |
| 277 |
|
| 278 |
* s-taspri-solaris.ads: Replace 64 by long_long_integer'size. |
| 279 |
|
| 280 |
2014-11-20 Olivier Hainque <[email protected]> |
| 281 |
|
| 282 |
* init.c (__gnat_map_signal for VxWorks): Use a common mapping |
| 283 |
scheme for VxWorks version >= 6, instead of falling back to the |
| 284 |
vx5 scheme for versions > 6. |
| 285 |
|
| 286 |
2014-11-20 Ed Schonberg <[email protected]> |
| 287 |
|
| 288 |
* exp_strm.adb (Build_Mutable_Record_Read_Procedure): Use |
| 289 |
base type when constructing subtype indication for constrained |
| 290 |
target object. |
| 291 |
|
| 292 |
2014-11-20 Jose Ruiz <[email protected]> |
| 293 |
|
| 294 |
* projects.texi: Minor spelling fix. |
| 295 |
|
| 296 |
2014-11-20 Bob Duff <[email protected]> |
| 297 |
|
| 298 |
* gnat_ugn.texi: Add doc for --split-line-before-op switch in gnatpp. |
| 299 |
|
| 300 |
2014-11-20 Vincent Celier <[email protected]> |
| 301 |
|
| 302 |
* prj-attr.adb (Register_New_Package): Allow the registration |
| 303 |
of an already unknown package and make it known. |
| 304 |
|
| 305 |
2014-11-20 Trevor Saunders <[email protected]> |
| 306 |
|
| 307 |
* gcc-interface/decl.c, gcc-interface/utils.c: replace htab with |
| 308 |
hash_table. |
| 309 |
|
| 310 |
2014-11-20 Robert Dewar <[email protected]> |
| 311 |
|
| 312 |
* sem_prag.adb (Analyze_Pragma, case Elaborate): Forbid pragma |
| 313 |
Elaborate in SPARK mode. |
| 314 |
|
| 315 |
2014-11-20 Bob Duff <[email protected]> |
| 316 |
|
| 317 |
* s-taskin.adb, s-tassta.adb (Initialize_ATCB): If Domain |
| 318 |
is null, then initialize T.Common.Domain to that of the |
| 319 |
activating task (not the parent task!), as required by RM-D.16.1. |
| 320 |
T.Common.Domain should never be null; so Assert. Remove similar |
| 321 |
code from Create_Task in s-tassta.adb. |
| 322 |
* s-mudido-affinity.adb: Remove checks for Domain = null, |
| 323 |
because it can't be null. |
| 324 |
* s-taskin.ads, s-taspri-dummy.ads, s-taspri-mingw.ads, |
| 325 |
s-taspri-posix.ads, s-taspri-posix-noaltstack.ads, |
| 326 |
s-taspri-solaris.ads, s-taspri-vxworks.ads: Mark limited types as |
| 327 |
explicitly limited for clarity. |
| 328 |
|
| 329 |
2014-11-20 Ed Schonberg <[email protected]> |
| 330 |
|
| 331 |
* exp_aggr.adb (Init_Hidden_Discriminants): Code clean up. |
| 332 |
|
| 333 |
2014-11-20 Robert Dewar <[email protected]> |
| 334 |
|
| 335 |
* errout.adb (Error_Msg): Don't suppress continuation msgs for |
| 336 |
run-time files. |
| 337 |
* sem_prag.adb (Analyze_Pragma, case Elaborate): Forbid pragma |
| 338 |
Elaborate in SPARK mode. |
| 339 |
|
| 340 |
2014-11-20 Yannick Moy <[email protected]> |
| 341 |
|
| 342 |
* gnat_rm.texi: Update GNAT RM with rule about expressions in |
| 343 |
Update attribute. |
| 344 |
|
| 345 |
2014-11-20 Thomas Quinot <[email protected]> |
| 346 |
|
| 347 |
* g-socket.adb (To_Host_Entry): Guard against case of a |
| 348 |
non-AF_INET entry. |
| 349 |
|
| 350 |
2014-11-20 Vadim Godunko <[email protected]> |
| 351 |
|
| 352 |
* a-strunb-shared.adb (To_Unbounded_String): Use shared empty |
| 353 |
object to construct return value when source string is empty or |
| 354 |
requested length is zero. |
| 355 |
* a-stwiun-shared.adb (To_Unbounded_Wide_String): Likewise. |
| 356 |
* a-stzunb-shared.adb (To_Unbounded_Wide_Wide_String): Likewise. |
| 357 |
|
| 358 |
2014-11-20 Yannick Moy <[email protected]> |
| 359 |
|
| 360 |
* a-cfhase.adb, a-cfinve.adb, a-cforma.adb, a-cfhama.adb, a-cforse.adb, |
| 361 |
a-cofove.adb: Skip CodePeer analysis on body of all formal containers. |
| 362 |
|
| 363 |
2014-11-20 Arnaud Charlet <[email protected]> |
| 364 |
|
| 365 |
* adaint.c: Fix typo. |
| 366 |
* exp_util.adb (Make_Subtype_From_Expr): Complete previous change, |
| 367 |
generate constant values. |
| 368 |
* sem_eval.adb (Decompose_Expr): Fix latent bug leading to a wrong |
| 369 |
evaluation to '0' of some unknown values. |
| 370 |
|
| 371 |
2014-11-20 Robert Dewar <[email protected]> |
| 372 |
|
| 373 |
* repinfo.adb (List_Record_Info): Do not list discriminant in |
| 374 |
unchecked union. |
| 375 |
* sem_ch13.adb (Has_Good_Profile): Minor reformatting |
| 376 |
(Analyze_Stream_TSS_Definition): Minor reformatting |
| 377 |
(Analyze_Record_Representation_Clause): Do not issue warning |
| 378 |
for missing rep clause for discriminant in unchecked union. |
| 379 |
|
| 380 |
2014-11-20 Vadim Godunko <[email protected]> |
| 381 |
|
| 382 |
* a-strunb-shared.adb, a-stwiun-shared.adb, a-stzunb-shared.adb |
| 383 |
("&") Use already computed value of data length to call allocation |
| 384 |
subprogram. |
| 385 |
|
| 386 |
2014-11-20 Ed Schonberg <[email protected]> |
| 387 |
|
| 388 |
* exp_ch6.adb (Expand_Call, Inlined_Subprogram): Do not suppress |
| 389 |
debugging information for a call to a predefined unit, if the |
| 390 |
call comes from source and the unit is in the Ada hierarchy. |
| 391 |
|
| 392 |
2014-11-20 Bob Duff <[email protected]> |
| 393 |
|
| 394 |
* s-mudido.ads: Update signature of Create and Get_Last_CPU. Add |
| 395 |
CPU_Set, another Create, and Get_CPU_Set. |
| 396 |
* s-mudido.adb: Corresponding changes to the spec. New |
| 397 |
operations just raise an exception. Also minor cleanup: use |
| 398 |
raise_expressions. |
| 399 |
* s-mudido-affinity.adb: Implementations of new operations from |
| 400 |
* s-mudido.ads, for the platforms that actually support processor |
| 401 |
affinity. The new Create (which takes a set) now does all the |
| 402 |
work; the old Create (which takes a range) now just calls the |
| 403 |
new one. Change error messages to reflect the fact that it's an |
| 404 |
arbitrary set, not just a range. |
| 405 |
|
| 406 |
2014-11-20 Robert Dewar <[email protected]> |
| 407 |
|
| 408 |
* exp_attr.adb: Minor reformatting. |
| 409 |
|
| 410 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 411 |
|
| 412 |
* exp_util.adb (Make_Subtype_From_Expr): Capture the bounds of |
| 413 |
all index constracts when the expression is of an array type. |
| 414 |
|
| 415 |
2014-11-20 Bob Duff <[email protected]> |
| 416 |
|
| 417 |
* s-taskin.ads: Minor comment improvements. |
| 418 |
|
| 419 |
2014-11-20 Bob Duff <[email protected]> |
| 420 |
|
| 421 |
* exp_ch9.adb: Minor comment fixes. |
| 422 |
* s-taskin.adb (Initialize): Small simplification: pass System_Domain |
| 423 |
to Initialize_ATCB instead of passing null and then setting the Domain |
| 424 |
to System_Domain. This requires moving the creation of System_Domain |
| 425 |
earlier. |
| 426 |
* s-taprop-linux.adb (Set_Task_Affinity): Only call CPU_SET for |
| 427 |
processors that have a True in the Domain. This is necessary if the |
| 428 |
Domain is not all-True values. |
| 429 |
|
| 430 |
2014-11-20 Ed Schonberg <[email protected]> |
| 431 |
|
| 432 |
* sem_ch13.adb (Has_Good_Profile): a) An stream attribute |
| 433 |
for the class-wide type of an interface type is not a primitive |
| 434 |
operation and is not subject to the restrictions of 13.13. (38/3). |
| 435 |
b) A stream operation for an interface type must be a null |
| 436 |
procedure, and it cannot be a function. |
| 437 |
|
| 438 |
2014-11-20 Bob Duff <[email protected]> |
| 439 |
|
| 440 |
* exp_attr.adb (Attribute_Max_Size_In_Storage_Elements): |
| 441 |
Eliminate 'Class references from the tree, because gigi crashes on |
| 442 |
'Class. Also, don't check Nkind (Attr) -- it is known to be |
| 443 |
N_Attribute_Reference. Assert that instead. |
| 444 |
|
| 445 |
2014-11-20 Bob Duff <[email protected]> |
| 446 |
|
| 447 |
* debug.adb: Minor comment fix. |
| 448 |
|
| 449 |
2014-11-20 Arnaud Charlet <[email protected]> |
| 450 |
|
| 451 |
* a-ciorma.adb: Minor update: move pragma Annotate up. |
| 452 |
* a-cfdlli.adb: Skip codepeer analysis on this body. |
| 453 |
|
| 454 |
2014-11-20 Robert Dewar <[email protected]> |
| 455 |
|
| 456 |
* sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All): |
| 457 |
Allow use of this pragma with generic unit (package or subprogram). |
| 458 |
* gnat_rm.texi: Clarify that pragma No_Elaboration_Code_All can |
| 459 |
be applied to generics. |
| 460 |
|
| 461 |
2014-11-20 Ed Schonberg <[email protected]> |
| 462 |
|
| 463 |
* sem_aggr.adb (Valid_Limited_Ancestor): Ancestor part of |
| 464 |
extension aggregate can itself be an extension aggregate, as |
| 465 |
well as a call that is rewritten as a reference. |
| 466 |
|
| 467 |
2014-11-20 Eric Botcazou <[email protected]> |
| 468 |
|
| 469 |
* inline.adb (Add_Inlined_Subprogram): Insert all programs |
| 470 |
generated as a body or whose declaration was provided along with |
| 471 |
the body. |
| 472 |
|
| 473 |
2014-11-20 Javier Miranda <[email protected]> |
| 474 |
|
| 475 |
* sem.adb (Semantics): Disable expansion if we are compiling a |
| 476 |
separate unit under configurable runtime. By default separate |
| 477 |
units are compiled with expansion disabled but under configurable |
| 478 |
runtime we enable the expansion to get error messages about |
| 479 |
missing entities. |
| 480 |
|
| 481 |
2014-11-20 Robert Dewar <[email protected]> |
| 482 |
|
| 483 |
* sem_ch13.adb: Minor reformatting. |
| 484 |
* exp_util.adb (Following_Address_Clause): Handle case of |
| 485 |
package private part. |
| 486 |
|
| 487 |
2014-11-20 Arnaud Charlet <[email protected]> |
| 488 |
|
| 489 |
* a-cdlili.adb, a-cihama.adb, a-coinve.adb, a-cusyqu.adb, a-ciorse.adb, |
| 490 |
a-coorma.adb, a-cborma.adb, a-cidlli.adb, a-cimutr.adb, a-ciormu.adb, |
| 491 |
a-cbprqu.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb, a-coboho.adb, |
| 492 |
a-cuprqu.adb, a-cbhama.adb, a-rbtgbo.adb, a-cborse.adb, a-comutr.adb, |
| 493 |
a-ciorma.adb, a-cobove.adb, a-coormu.adb, a-convec.adb, a-cohase.adb, |
| 494 |
a-coinho.adb, a-coinho-shared.adb, a-cbdlli.adb, a-cbsyqu.adb, |
| 495 |
a-cbmutr.adb, a-cbhase.adb: Add pragma Annotate to prevent codepeer |
| 496 |
from analyzing these bodies. |
| 497 |
|
| 498 |
2014-11-20 Ed Schonberg <[email protected]> |
| 499 |
|
| 500 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not apply |
| 501 |
inlining expansion if function build in place, i.e. has a limited |
| 502 |
return type. |
| 503 |
|
| 504 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 505 |
|
| 506 |
* sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Add |
| 507 |
variables Body_Id, Body_Inputs, Body_Outputs, Spec_Inputs, |
| 508 |
Spec_Outputs. Synthesize the inputs and outputs of the subprogram |
| 509 |
when pragma [Refined_]Global is missing and perform legality |
| 510 |
checks on output states with visible refinement. |
| 511 |
(Appears_In): Update the comment on usage. |
| 512 |
(Check_Output_States): New routine. |
| 513 |
(Collect_Dependency_Clause): New routine. |
| 514 |
(Collect_Global_Items): Relocated to |
| 515 |
Analyze_Refined_Global_In_Decl_Part. |
| 516 |
(Collect_Subprogram_Inputs_Outputs): Add new formal parameters |
| 517 |
Synthesize and Depends_Seen. The routine can now synthesize inputs |
| 518 |
and outputs from pragma [Refined_]Depends. |
| 519 |
(Normalize_Clause): Update the comment on usage. The routine no longer |
| 520 |
performs normalization of outputs. |
| 521 |
(Normalize_Clauses): Normalize both inputs and outputs. |
| 522 |
(Normalize_Output): Relocated to Normalize_Clauses. |
| 523 |
* sem_prag.ads (Collect_Subprogram_Inputs_Outputs): Add new |
| 524 |
formal parameters Synthesize and Depends_Seen and update the |
| 525 |
comment on usage. |
| 526 |
|
| 527 |
2014-11-20 Vincent Celier <[email protected]> |
| 528 |
|
| 529 |
PR ada/47500 |
| 530 |
* back_end.adb (Scan_Back_End_Switches): Skip switch -G and |
| 531 |
its argument. |
| 532 |
|
| 533 |
2014-11-20 Ed Schonberg <[email protected]> |
| 534 |
|
| 535 |
* sem_ch13.adb (Reset_Loop_Variable): New subsidiary procedure |
| 536 |
in Build_Predicate_Functions, to handle properly quantified |
| 537 |
expressions in dynamic predicates. |
| 538 |
|
| 539 |
2014-11-20 Robert Dewar <[email protected]> |
| 540 |
|
| 541 |
* gnatcmd.adb, sem_ch6.adb, exp_dist.adb: Minor reformatting. |
| 542 |
* sem_util.adb (Bad_Unordered_Enumeration_Reference): Suppress |
| 543 |
warning (return False) for generic type. |
| 544 |
|
| 545 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 546 |
|
| 547 |
* sem_res.adb (Appears_In_Check): Removed. |
| 548 |
(Is_OK_Volatile_Context): Rewrite the checks which verify that |
| 549 |
an effectively volatile object subject to enabled properties |
| 550 |
Async_Writers or Effective_Reads appears in a suitable context to |
| 551 |
properly recognize a procedure call. |
| 552 |
(Within_Check): New routine. |
| 553 |
(Within_Procedure_Call): New routine. |
| 554 |
|
| 555 |
2014-11-20 Ed Schonberg <[email protected]> |
| 556 |
|
| 557 |
* sem_ch6.adb: Improve better error message. |
| 558 |
|
| 559 |
2014-11-20 Thomas Quinot <[email protected]> |
| 560 |
|
| 561 |
* freeze.adb, sem_ch13.adb: Minor editing. |
| 562 |
|
| 563 |
2014-11-20 Vincent Celier <[email protected]> |
| 564 |
|
| 565 |
* gnatcmd.adb: Remove any special processing for the ASIS tools |
| 566 |
(gnatpp, gnatmetric, gnatcheck, gnatelim and gnatstup) and simply |
| 567 |
invoke the tool with the provided switches and arguments. |
| 568 |
|
| 569 |
2014-11-20 Ed Schonberg <[email protected]> |
| 570 |
|
| 571 |
* sem_ch6.adb (Analyze_Expression_Function): Reject declaration |
| 572 |
of expression function with identical profile as previous |
| 573 |
expression function. |
| 574 |
|
| 575 |
2014-11-20 Thomas Quinot <[email protected]> |
| 576 |
|
| 577 |
* sem_ch13.adb: Complete previous change. |
| 578 |
* exp_dist.adb, exp_dist.ads: Rework PolyORB/DSA arguments processing |
| 579 |
circuitry to correctly handle the case of non-private limited |
| 580 |
unconstrained formals. |
| 581 |
|
| 582 |
2014-11-20 Robert Dewar <[email protected]> |
| 583 |
|
| 584 |
* freeze.adb, exp_dbug.adb, sem_ch13.adb: Minor reformatting. |
| 585 |
|
| 586 |
2014-11-20 Thomas Quinot <[email protected]> |
| 587 |
|
| 588 |
* einfo.ads: Fix minor typo in comment. |
| 589 |
|
| 590 |
2014-11-20 Robert Dewar <[email protected]> |
| 591 |
|
| 592 |
* inline.adb, sem_util.adb: Minor reformatting. |
| 593 |
|
| 594 |
2014-11-20 Pierre-Marie Derodat <[email protected]> |
| 595 |
|
| 596 |
* uintp.h (UI_Eq): Declare. |
| 597 |
* urealp.h (Norm_Den): Declare. |
| 598 |
(Norm_Num): Declare. |
| 599 |
* exp_dbug.adb (Is_Handled_Scale_Factor): New. |
| 600 |
(Get_Encoded_Name): Do not output ___XF GNAT encodings |
| 601 |
for fixed-point types when these can be handled by GCC's DWARF |
| 602 |
back-end. |
| 603 |
|
| 604 |
2014-11-20 Thomas Quinot <[email protected]> |
| 605 |
|
| 606 |
* sem_ch13.db (Inherit_Aspects_At_Freeze_Point): Inherit parent |
| 607 |
SSO even if set through a pragma Default_Scalar_Storage_Order. |
| 608 |
* freeze.adb (Set_SSO_From_Default): For a type extension, |
| 609 |
do not let the default SSO override the parent SSO. |
| 610 |
* gnat_rm.texi: document the above |
| 611 |
|
| 612 |
2014-11-20 Robert Dewar <[email protected]> |
| 613 |
|
| 614 |
* a-stream.ads, a-reatim.ads, a-calend.ads, sinfo.ads, s-crtl.ads, |
| 615 |
interfac.ads, s-taskin.ads: Minor reformatting. |
| 616 |
|
| 617 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 618 |
|
| 619 |
* sem_prag.adb (Analyze_Pragma): Extensions_Visible can now |
| 620 |
apply to an expression function. |
| 621 |
* sem_util.adb (Extensions_Visible_Status): Add special processing |
| 622 |
for expression functions. |
| 623 |
|
| 624 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 625 |
|
| 626 |
* inline.adb (Build_Body_To_Inline): Remove meaningless aspects |
| 627 |
and pragmas. |
| 628 |
(Generate_Subprogram_Body): Remove meaningless aspects and pragmas. |
| 629 |
(Remove_Aspects_And_Pragmas): New routine. |
| 630 |
(Remove_Pragmas): Removed. |
| 631 |
* namet.ads, namet.adb (Nam_In): New versions of the routine. |
| 632 |
|
| 633 |
2014-11-20 Thomas Quinot <[email protected]> |
| 634 |
|
| 635 |
* sem_util.adb: Minor reformatting. |
| 636 |
|
| 637 |
2014-11-20 Robert Dewar <[email protected]> |
| 638 |
|
| 639 |
* sem_prag.adb (Analyze_Pragma, case Linker_Section): Detect |
| 640 |
duplicate Linker_Section. |
| 641 |
|
| 642 |
2014-11-20 Ed Schonberg <[email protected]> |
| 643 |
|
| 644 |
* exp_ch4.adb: Add guard for build-in-place boolean op. |
| 645 |
|
| 646 |
2014-11-20 Yannick Moy <[email protected]> |
| 647 |
|
| 648 |
* checks.adb (Apply_Scalar_Range_Check): In GNATprove mode, |
| 649 |
put a range check when an empty range is used, instead of an |
| 650 |
error message. |
| 651 |
* sinfo.ads Update comment on GNATprove mode. |
| 652 |
|
| 653 |
2014-11-20 Arnaud Charlet <[email protected]> |
| 654 |
|
| 655 |
* a-stream.ads, s-osinte-linux.ads, a-reatim.ads, a-calend.ads, |
| 656 |
s-crtl.ads, interfac.ads, s-taskin.ads: Replace uses of 2 ** 63 and |
| 657 |
2 ** 64 by references to Long_Long_Integer instead, to allow these |
| 658 |
units to be analyzed by codepeer or spark when using a target |
| 659 |
configuration file with long_long_size set to 32. |
| 660 |
|
| 661 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 662 |
|
| 663 |
* sem_util.adb (Extensions_Visible_Status): Modify the logic to account |
| 664 |
for non-SPARK code. |
| 665 |
(Object_Access_Level): In ASIS mode, recognize |
| 666 |
a selected component with an implicit dereference so that it |
| 667 |
yields the same value with and without expansion. |
| 668 |
|
| 669 |
2014-11-20 Ed Schonberg <[email protected]> |
| 670 |
|
| 671 |
* sem_prag.adb (Analyze_Pragma, case Implemented): In ASIS |
| 672 |
(compile-only) mode, use original type declaration to determine |
| 673 |
whether protected type implements an interface. |
| 674 |
|
| 675 |
2014-11-20 Yannick Moy <[email protected]> |
| 676 |
|
| 677 |
* a-cfdlli.adb, a-cfdlli.ads, a-cfinve.adb, a-cfinve.ads, |
| 678 |
* a-cofove.adb, a-cofove.ads: Mark spec as SPARK_Mode, and private |
| 679 |
part/body as SPARK_Mode Off. |
| 680 |
* a-cfhama.adb, a-cfhama.ads, a-cfhase.adb, a-cfhase.ads, |
| 681 |
* a-cforma.adb, a-cforma.ads, a-cforse.adb, a-cforse.ads: Use |
| 682 |
aspect instead of pragma for uniformity. |
| 683 |
|
| 684 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 685 |
|
| 686 |
* sem_util.adb (Is_EVF_Expression): Include |
| 687 |
attributes 'Loop_Entry, 'Old and 'Update to the logic. |
| 688 |
|
| 689 |
2014-11-20 Bob Duff <[email protected]> |
| 690 |
|
| 691 |
* sem_res.adb (Make_Call_Into_Operator): Don't |
| 692 |
call Left_Opnd in the case of unary operators, because they only |
| 693 |
have Right. |
| 694 |
|
| 695 |
2014-11-20 Pascal Obry <[email protected]> |
| 696 |
|
| 697 |
* initialize.c (ProcListCS): New extern variable (critical section). |
| 698 |
(ProcListEvt): New extern variable (handle). |
| 699 |
(__gnat_initialize)[Win32]: Initialize the ProcListCS critical |
| 700 |
section object and the ProcListEvt event. |
| 701 |
* final.c (__gnat_finalize)[Win32]: Properly finalize the |
| 702 |
ProcListCS critical section and the ProcListEvt event. |
| 703 |
* adaint.c (ProcListEvt): New Win32 event handle. |
| 704 |
(EnterCS): New routine to enter the critical section when dealing with |
| 705 |
child processes chain list. |
| 706 |
(LeaveCS): As above to exit from the critical section. |
| 707 |
(SignalListChanged): Routine to signal that the chain process list has |
| 708 |
been updated. |
| 709 |
(add_handle): Use EnterCS/LeaveCS, also call SignalListChanged when the |
| 710 |
handle has been added. |
| 711 |
(__gnat_win32_remove_handle): Use EnterCS/LeaveCS, |
| 712 |
also call SignalListChanged if the handle has been found and removed. |
| 713 |
(remove_handle): Routine removed, implementation merged with the above. |
| 714 |
(win32_wait): Use EnterCS/LeaveCS for the critical section. Properly |
| 715 |
copy the PID list locally to ensure that even if the list is updated |
| 716 |
the local copy remains valid. Add into the hl (handle list) the |
| 717 |
ProcListEvt handle. This handle is used to signal that a change has |
| 718 |
been made into the process chain list. This is to ensure that a waiting |
| 719 |
call can be resumed to take into account new processes. We also make |
| 720 |
sure that if the handle was not found into the list we start over |
| 721 |
the wait call. Indeed another concurrent call to win32_wait() |
| 722 |
could already have handled this process. |
| 723 |
|
| 724 |
2014-11-20 Ed Schonberg <[email protected]> |
| 725 |
|
| 726 |
* sem_res.adb (Resolve_Actuals): The legality rule concerning |
| 727 |
the use of class-wide actuals for a non-controlling formal are |
| 728 |
not rechecked in an instance. |
| 729 |
|
| 730 |
2014-11-20 Pascal Obry <[email protected]> |
| 731 |
|
| 732 |
* g-dirope.ads: Minor typo fix. |
| 733 |
|
| 734 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 735 |
|
| 736 |
* exp_attr.adb (Expand_N_Attribute_Reference, |
| 737 |
Expand_Update_Attribute): Preserve the tag of a prefix by offering |
| 738 |
a specific view of the class-wide version of the prefix. |
| 739 |
|
| 740 |
2014-11-20 Javier Miranda <[email protected]> |
| 741 |
|
| 742 |
* sem_ch6.adb (Analyze_Function_Return): For functions returning |
| 743 |
an access to an interface add an implicit conversion to the target |
| 744 |
type to force the displacement of the pointer to the object to |
| 745 |
reference the secondary dispatch table. |
| 746 |
(Check_Anonymous_Return): Skip internally built functions which handle |
| 747 |
the case of null access when locating the master of a task. |
| 748 |
* sem_res.adb (Valid_Conversion): Return true for internally |
| 749 |
generated conversions of access to interface types added to force |
| 750 |
the displacement of the pointer to reference the corresponding |
| 751 |
dispatch table. |
| 752 |
|
| 753 |
2014-11-20 Pascal Obry <[email protected]> |
| 754 |
|
| 755 |
* adaint.c (add_handle): realloc with a size of +100. |
| 756 |
|
| 757 |
2014-11-20 Ed Schonberg <[email protected]> |
| 758 |
|
| 759 |
* sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate |
| 760 |
back the resolved operands to the original call node, taking |
| 761 |
into account that the original call may have named associations. |
| 762 |
|
| 763 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 764 |
|
| 765 |
* inline.adb (Has_Some_Contract): Change the |
| 766 |
guard to test the Ekind of the entity rather than the Analyzed |
| 767 |
flag. This handles partially analyzed contexts. |
| 768 |
|
| 769 |
2014-11-20 Ed Schonberg <[email protected]> |
| 770 |
|
| 771 |
* sem_ch8.adb (Analyze_Object_Renaming): In Ada 83 mode, do |
| 772 |
not reject the renaming of a function result if the renaming |
| 773 |
does not come for source. |
| 774 |
|
| 775 |
2014-11-20 Robert Dewar <[email protected]> |
| 776 |
|
| 777 |
* exp_util.ads: Minor addition of ??? clause. |
| 778 |
|
| 779 |
2014-11-20 Ed Schonberg <[email protected]> |
| 780 |
|
| 781 |
* sem_util.adb (Is_Variable): For an Ada 2012 implicit |
| 782 |
dereference introduced for an indexing opertion, check that the |
| 783 |
type of the corresponding access discriminant is not an access |
| 784 |
to constant. |
| 785 |
|
| 786 |
2014-11-20 Hristian Kirtchev <[email protected]> |
| 787 |
|
| 788 |
* sem_ch6.adb (Find_Corresponding_Spec): Inherit |
| 789 |
the ghostness of the matching spec, the same way convention |
| 790 |
is inherited. |
| 791 |
|
| 792 |
2014-11-20 Eric Botcazou <[email protected]> |
| 793 |
|
| 794 |
* sem_ch3.adb (Analyze_Object_Declaration): Swap a couple of |
| 795 |
tests in a condition so Following_Address_Clause is invoked |
| 796 |
only if need be. |
| 797 |
* exp_util.ads (Following_Address_Clause): Add small note. |
| 798 |
|
| 799 |
2014-11-20 Pascal Obry <[email protected]> |
| 800 |
|
| 801 |
* adaint.c (remove_handle): New local routine without a lock. |
| 802 |
(win32_wait): fix the critical section to properly protect needed |
| 803 |
code, use new remove_handle. |
| 804 |
(__gnat_win32_remove_handle): refactor code with remove_handle. |
| 805 |
|
| 806 |
2014-11-20 Eric Botcazou <[email protected]> |
| 807 |
|
| 808 |
* inline.adb (Analyze_Inlined_Bodies): Iterate between loading |
| 809 |
of the inlined bodies and instantiation of the generic bodies |
| 810 |
until no more bodies need to be loaded. |
| 811 |
|
| 812 |
2014-11-20 Vincent Celier <[email protected]> |
| 813 |
|
| 814 |
* prj.adb, prj.ads, prj-conf.adb: Minor change of procedure name: |
| 815 |
Update_Ignore_Missing_With becomes Set_Ignore_Missing_With. |
| 816 |
|
| 817 |
2014-11-20 Robert Dewar <[email protected]> |
| 818 |
|
| 819 |
* exp_ch7.adb, sem_ch5.adb, sem_ch7.adb, sem_util.adb, |
| 820 |
sem_ch6.adb: Minor reformatting. |
| 821 |
|
| 822 |
2014-11-20 Javier Miranda <[email protected]> |
| 823 |
|
| 824 |
* exp_ch4.adb (Expand_N_Type_Conversion): Add missing implicit |
| 825 |
conversion to force the displacement of the pointer to the object |
| 826 |
to reference the secondary dispatch table. |
| 827 |
|
| 828 |
2014-11-11 Simon Wright <[email protected]> |
| 829 |
|
| 830 |
PR ada/42978 |
| 831 |
* mlib-utl.adb (ar): Output the options passed to ranlib. |
| 832 |
|
| 833 |
2014-11-07 Arnaud Charlet <[email protected]> |
| 834 |
|
| 835 |
* debug.adb, snames.adb-tmpl (Is_Keyword_Name): Consider 'overriding' |
| 836 |
a keyword in Ada 95 mode when -gnatd.D is used. |
| 837 |
* gnat_ugn.texi: Document -gnatd.D. |
| 838 |
|
| 839 |
2014-11-07 Vasiliy Fofanov <[email protected]> |
| 840 |
|
| 841 |
* gnatls.adb: Lower severity of the program's return value in |
| 842 |
some common cases. |
| 843 |
|
| 844 |
2014-11-07 Ed Schonberg <[email protected]> |
| 845 |
|
| 846 |
* sem_ch10.adb (Decorate_Type): The limited view of a tagged |
| 847 |
type has an empty list of primitive operations. |
| 848 |
|
| 849 |
2014-11-07 Hristian Kirtchev <[email protected]> |
| 850 |
|
| 851 |
* sem_ch3.adb (Analyze_Object_Declaration): Update references to SPARK |
| 852 |
RM. |
| 853 |
(Process_Full_View): Update references to SPARK RM. |
| 854 |
* sem_ch6.adb (Analyze_Generic_Subprogram_Body): Update references |
| 855 |
to SPARK RM. |
| 856 |
(Analyze_Subprogram_Body_Helper): Update references |
| 857 |
to SPARK RM. |
| 858 |
* sem_ch7.adb (Analyze_Package_Body_Helper): Update references |
| 859 |
to SPARK RM. |
| 860 |
* sem_prag.adb (Check_Ghost_Constituent): Update references to |
| 861 |
SPARK RM. |
| 862 |
* sem_res.adb (Check_Ghost_Policy): Update references to SPARK RM. |
| 863 |
(Resolve_Actuals): Ensure that the actual parameter of a Ghost |
| 864 |
subprogram whose formal is of mode IN OUT or OUT is Ghost. |
| 865 |
* sem_util.adb (Check_Ghost_Completion): Update references to |
| 866 |
SPARK RM. |
| 867 |
|
| 868 |
2014-11-07 Ed Schonberg <[email protected]> |
| 869 |
|
| 870 |
* exp_ch7.adb (Make_Final_Call): If type of designated object is |
| 871 |
derived from that of the formal of the Deep_Finalize procedure, |
| 872 |
add an unchecked conversion to prevent spurious type error. |
| 873 |
|
| 874 |
2014-11-07 Robert Dewar <[email protected]> |
| 875 |
|
| 876 |
* table.adb, inline.adb, einfo.adb, gnat1drv.adb, exp_ch13.adb, |
| 877 |
exp_fixd.adb, prj-conf.adb, exp_strm.adb, a-cofove.adb, exp_ch3.ads: |
| 878 |
Minor reformatting. |
| 879 |
|
| 880 |
2014-11-07 Robert Dewar <[email protected]> |
| 881 |
|
| 882 |
* sem_ch12.adb, sem_ch13.adb, prj-tree.adb: Minor reformatting. |
| 883 |
|
| 884 |
2014-11-07 Hristian Kirtchev <[email protected]> |
| 885 |
|
| 886 |
* einfo.adb (Set_Is_Checked_Ghost_Entity, |
| 887 |
Set_Is_Ignored_Ghost_Entity): Add exceptions to the assertion |
| 888 |
check. |
| 889 |
* sem_ch6.adb (Check_Conformance): Consider only |
| 890 |
source subprograms when checking for Ghost conformance. |
| 891 |
* sem_prag.adb (Analyze_Pragma): Handle the case |
| 892 |
where pragma Ghost applies to a stand alone subprogram body that |
| 893 |
acts as a compilation unit. |
| 894 |
* sem_res.adb: Minor reformatting (merge if statements). |
| 895 |
|
| 896 |
2014-11-07 Ed Schonberg <[email protected]> |
| 897 |
|
| 898 |
* exp_strm.adb (Build_Record_Or_Elementary_Input_Function): |
| 899 |
Check whether underlying type is constrained before generating |
| 900 |
the object declaration for the result object of the function. |
| 901 |
|
| 902 |
2014-11-07 Robert Dewar <[email protected]> |
| 903 |
|
| 904 |
* freeze.adb: Code clean up. |
| 905 |
|
| 906 |
2014-11-07 Yannick Moy <[email protected]> |
| 907 |
|
| 908 |
* a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cfinve.ads, |
| 909 |
* a-cforma.ads, a-cforse.ads, a-cofove.ads: Mark First_To_Previous, |
| 910 |
Current_To_Last and Strict_Equal as Ghost. |
| 911 |
|
| 912 |
2014-11-07 Ed Schonberg <[email protected]> |
| 913 |
|
| 914 |
* sem_ch3.adb: Code clean up. |
| 915 |
|
| 916 |
2014-11-07 Hristian Kirtchev <[email protected]> |
| 917 |
|
| 918 |
* freeze.adb (Freeze_Entity): Issue an error regardless of the |
| 919 |
SPARK_Mode when a ghost type is effectively volatile. |
| 920 |
* sem_ch3.adb (Analyze_Object_Contract): Decouple the checks |
| 921 |
related to Ghost from SPARK_Mode. |
| 922 |
* sem_res.adb (Check_Ghost_Policy): Issue an error regardless |
| 923 |
of the SPARK_Mode when the Ghost policies do not match. |
| 924 |
* sem_util.adb (Check_Ghost_Completion): Issue an error regardless |
| 925 |
of the SPARK_Mode when the Ghost policies do not match. |
| 926 |
|
| 927 |
2014-11-07 Ed Schonberg <[email protected]> |
| 928 |
|
| 929 |
* sem_ch5.adb (Analyze_Iterator_Specification): return if name |
| 930 |
in iterator does not have any usable aspect for iteration. |
| 931 |
|
| 932 |
2014-11-07 Ed Schonberg <[email protected]> |
| 933 |
|
| 934 |
* sem_ch6.adb (Analyze_Null_Procedure): Reject a null procedure |
| 935 |
that there is a previous null procedure in scope with a matching |
| 936 |
profile. |
| 937 |
|
| 938 |
2014-11-07 Hristian Kirtchev <[email protected]> |
| 939 |
|
| 940 |
* atree.adb (Copy_Separate_Tree): Copy the aspect specifications. |
| 941 |
* inline.adb (Has_Some_Contract): Do the check only when the |
| 942 |
related entity has been analyzed. |
| 943 |
|
| 944 |
2014-11-07 Ed Schonberg <[email protected]> |
| 945 |
|
| 946 |
* exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Integer): |
| 947 |
If the restriction No_Floating_Point is in effect, and the |
| 948 |
operands have the same type, introduce a temporary to hold |
| 949 |
the fixed point result, to prevent the use of floating-point |
| 950 |
operations at run-time. |
| 951 |
|
| 952 |
2014-11-07 Robert Dewar <[email protected]> |
| 953 |
|
| 954 |
* freeze.adb (Check_Address_Clause): Minor reformatting |
| 955 |
(Find_Constant): Minor reformatting. |
| 956 |
(Freeze_Array_Type): Modify check for packed declarations. |
| 957 |
(Freeze_Entity): Minor reformatting. |
| 958 |
|
| 959 |
2014-11-05 Eric Botcazou <[email protected]> |
| 960 |
|
| 961 |
* gnatvsn.ads (Library_Version): Bump to 5.0. |
| 962 |
|
| 963 |
2014-11-05 Eric Botcazou <[email protected]> |
| 964 |
|
| 965 |
* gcc-interface/trans.c (Subprogram_Body_to_gnu): For a function with |
| 966 |
copy-in/copy-out parameters and which returns by invisible reference, |
| 967 |
do not create the variable for the return value; instead, manually |
| 968 |
generate the indirect copy out statements on exit. |
| 969 |
(gnat_to_gnu) <N_Simple_Return_Statement>: Adjust accordingly and build |
| 970 |
a simple indirect assignment for the return value. |
| 971 |
|
| 972 |
2014-11-05 Eric Botcazou <[email protected]> |
| 973 |
|
| 974 |
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: For a |
| 975 |
derived untagged type that renames discriminants, be prepared for |
| 976 |
a type derived from a private discriminated type when changing the |
| 977 |
type of the stored discriminants. |
| 978 |
|
| 979 |
2014-11-05 Eric Botcazou <[email protected]> |
| 980 |
|
| 981 |
* gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): Set |
| 982 |
the SLOC of the node on the call to set_jmpbuf_address_soft emitted |
| 983 |
on block entry with SJLJ. |
| 984 |
|
| 985 |
2014-11-05 Eric Botcazou <[email protected]> |
| 986 |
|
| 987 |
* gcc-interface/utils.c (create_subprog_decl): Move code dealing with |
| 988 |
conflicting inlining status of nested subprograms to... |
| 989 |
* gcc-interface/trans.c (check_inlining_for_nested_subprog): ...here. |
| 990 |
(Attribute_to_gnu) <Attr_Access>: Call it. |
| 991 |
(Call_to_gnu): Likewise. |
| 992 |
(Subprogram_Body_to_gnu): Drop the body if it is an inlined external |
| 993 |
function that has been marked uninlinable. |
| 994 |
|
| 995 |
2014-10-31 Hristian Kirtchev <[email protected]> |
| 996 |
|
| 997 |
* aspects.adb Add an entry for aspect Ghost in table |
| 998 |
Canonical_Aspect. |
| 999 |
* aspects.ads Add an entry for aspect Ghost in tables |
| 1000 |
Aspect_Argument, Aspect_Delay, Aspect_Id, Aspect_Names and |
| 1001 |
Implementation_Defined_Aspect. |
| 1002 |
* einfo.adb: Flags 277 and 278 are now in use. |
| 1003 |
(Is_Checked_Ghost_Entity): New routine. |
| 1004 |
(Is_Ghost_Entity): Removed. |
| 1005 |
(Is_Ghost_Subprogram): Removed. |
| 1006 |
(Is_Ignored_Ghost_Entity): New routine. |
| 1007 |
(Set_Is_Checked_Ghost_Entity): New routine. |
| 1008 |
(Set_Is_Ignored_Ghost_Entity): New routine. |
| 1009 |
(Write_Entity_Flags): Output flags Is_Checked_Ghost_Entity and |
| 1010 |
Is_Ignored_Ghost_Entity. |
| 1011 |
* einfo.ads: Add new flags Is_Checked_Ghost_Entity |
| 1012 |
and Is_Ignored_Ghost_Entity along with usage in nodes. |
| 1013 |
(Is_Checked_Ghost_Entity): New routine and pragma Inline. |
| 1014 |
(Is_Ghost_Entity): Removed along with synthesized flag |
| 1015 |
description and usage in nodes. |
| 1016 |
(Is_Ghost_Subprogram): Removed along with synthesized flag description |
| 1017 |
and usage in nodes. |
| 1018 |
(Is_Ignored_Ghost_Entity): New routine and pragma Inline. |
| 1019 |
(Set_Is_Checked_Ghost_Entity): New routine and pragma Inline. |
| 1020 |
(Set_Is_Ignored_Ghost_Entity): New routine and pragma Inline. |
| 1021 |
* freeze.adb (Freeze_Entity): A Ghost type cannot be effectively |
| 1022 |
volatile. |
| 1023 |
* par-prag.adb Pragma Ghost does not need special handling by |
| 1024 |
the parser. |
| 1025 |
* repinfo.adb (List_Mechanisms): Remove the entry for convention Ghost. |
| 1026 |
* sem_attr.adb (Analyze_Access_Attribute): Remove obsolete check. |
| 1027 |
* sem_ch3.adb (Analyze_Full_Type_Declaration): Mark |
| 1028 |
the type as Ghost when its enclosing context is Ghost. |
| 1029 |
(Analyze_Incomplete_Type_Decl): Mark the type as Ghost when |
| 1030 |
its enclosing context is Ghost. |
| 1031 |
(Analyze_Number_Declaration): Mark the number as Ghost when its |
| 1032 |
enclosing context is Ghost. |
| 1033 |
(Analyze_Object_Declaration): Mark the object as Ghost when its |
| 1034 |
enclosing context is Ghost. Verify the Ghost policy between |
| 1035 |
initial declaration and completion of a deferred constant. |
| 1036 |
(Analyze_Object_Contract): A Ghost variable cannot be effectively |
| 1037 |
volatile, imported or exported. |
| 1038 |
(Build_Derived_Record_Type): Mark a type extension as Ghost when it |
| 1039 |
implements a Ghost interface. |
| 1040 |
(Build_Record_Type): Inherit volatility and "ghostness" from |
| 1041 |
the parent type. |
| 1042 |
(Check_Completion): A Ghost entity declared |
| 1043 |
in a non-Ghost package does not require completion in a body. |
| 1044 |
(Implements_Ghost_Interface): New routine. |
| 1045 |
(Process_Full_View): Inherit "ghostness" from the partial view. Verify |
| 1046 |
the Ghost policy between the partial and full views. Verify the |
| 1047 |
completion of a Ghost type extension. |
| 1048 |
* sem_ch4.adb (Check_Ghost_Subprogram_Call): Removed. |
| 1049 |
* sem_ch5.adb (Analyze_Assignment): Analyze the left hand side first. |
| 1050 |
* sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Mark |
| 1051 |
the subprogram as Ghost when its enclosing context is Ghost. |
| 1052 |
(Analyze_Generic_Subprogram_Body): Mark the generic body as Ghost |
| 1053 |
when its enclosing context is Ghost. Verify the Ghost policy |
| 1054 |
between the spec and body. |
| 1055 |
(Analyze_Subprogram_Body_Helper): Mark the body as Ghost when its |
| 1056 |
enclosing context is Ghost. Verify the Ghost policy between the spec |
| 1057 |
and body. |
| 1058 |
(Check_Conformance): A Ghost subprogram profile and a non-Ghost |
| 1059 |
subprogram profile are not subtype conformant. |
| 1060 |
(Convention_Of): Removed. |
| 1061 |
* sem_ch7.adb (Analyze_Package_Body_Helper): Inherit the |
| 1062 |
"ghostness" from the spec. Verify the Ghost policy between |
| 1063 |
the spec and body. |
| 1064 |
(Analyze_Private_Type_Declaration): Mark the type as Ghost when its |
| 1065 |
enclosing context is Ghost. |
| 1066 |
(Requires_Completion_In_Body): New routine. |
| 1067 |
(Unit_Requires_Body): Use Requires_Completion_In_Body. |
| 1068 |
(Unit_Requires_Body_Info): Rename formal parameter P to Pack_Id, update |
| 1069 |
comment on usage and all uses of P in the body. Use |
| 1070 |
Requires_Completion_In_Body. |
| 1071 |
* sem_ch7.ads (Unit_Requires_Body): Rename formal parameter P |
| 1072 |
to Pack_Id, update comment on usage and all uses of P in the body. |
| 1073 |
* sem_ch8.adb (Analyze_Exception_Renaming): Inherit the "ghostness" |
| 1074 |
from the renamed excention. |
| 1075 |
(Analyze_Generic_Renaming): Inherit the "ghostness" from the |
| 1076 |
renamed generic subprogram. |
| 1077 |
(Analyze_Object_Renaming): Inherit the "ghostness" from the renamed |
| 1078 |
object. |
| 1079 |
(Analyze_Package_Renaming): Inherit the "ghostness" from the |
| 1080 |
renamed package. |
| 1081 |
(Analyze_Subprogram_Renaming): Inherit the "ghostness" from the |
| 1082 |
renamed subprogram. |
| 1083 |
* sem_ch11.adb (Analyze_Exception_Declaration): Mark an exception |
| 1084 |
as Ghost when its enclosing context is Ghost. |
| 1085 |
* sem_ch12.adb (Analyze_Generic_Package_Declaration, |
| 1086 |
Analyze_Generic_Subprogram_Declaration): Mark an exception as |
| 1087 |
Ghost when its enclosing context is Ghost. |
| 1088 |
(Preanalyze_Actuals): Remove obsolete check. |
| 1089 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Add processing |
| 1090 |
for aspect Ghost. |
| 1091 |
(Check_Aspect_At_Freeze_Point): Aspects |
| 1092 |
Depends and Global do no need special checking at freeze point. |
| 1093 |
(Insert_After_SPARK_Mode): Update comment on usage. |
| 1094 |
* sem_mech.adb (Set_Mechanisms): Remove the entry for convention Ghost. |
| 1095 |
* sem_prag.adb Add an entry for pragma Ghost in table Sig_Flags. |
| 1096 |
(Analyze_Abstract_State): Update the grammar of the pragma. Add |
| 1097 |
formal parameter Pack_Id along with comment on usage. Mark an |
| 1098 |
abstract state as Ghost when its enclosing context is Ghost. Add |
| 1099 |
processing for option Ghost. |
| 1100 |
(Analyze_Constituent): Verify |
| 1101 |
that a Ghost abstract state is refined by Ghost constituents. |
| 1102 |
(Analyze_Pragma): "Ghost" is now a valid policy. Add checks |
| 1103 |
related to the use and placement of Check_Policy Ghost. Add |
| 1104 |
processing for pragma Ghost. |
| 1105 |
(Check_Ghost_Constituent): New routine. |
| 1106 |
(Is_Valid_Assertion_Kind): "Ghost" is now a valid assertion. |
| 1107 |
(Process_Convention): Remove obsolete check. |
| 1108 |
(Set_Convention_From_Pragma): Remove the processing for convention |
| 1109 |
Ghost. |
| 1110 |
* sem_res.adb (Check_Ghost_Context): New routine. |
| 1111 |
(Resolve_Call): Verify that a reference to a Ghost entity appears in a |
| 1112 |
suitable context. Verify the Ghost polity between point of declaration |
| 1113 |
and point of use. |
| 1114 |
(Resolve_Entity_Name): Verify that a reference to |
| 1115 |
a Ghost entity appears in a suitable context. Verify the Ghost |
| 1116 |
polity between point of declaration and point of use. |
| 1117 |
* sem_util.adb (Check_Ghost_Completion): New routine. |
| 1118 |
(Check_Ghost_Derivation): New routine. |
| 1119 |
(Incomplete_Or_Partial_View): New routine. |
| 1120 |
(Incomplete_Or_Private_View): Removed. |
| 1121 |
(Is_Ghost_Entity): New routine. |
| 1122 |
(Is_Ghost_Statement_Or_Pragma): New routine. |
| 1123 |
(Is_Subject_To_Ghost): New routine. |
| 1124 |
(Policy_In_Effect): New routine. |
| 1125 |
(Set_Is_Ghost_Entity): New routine. |
| 1126 |
(Within_Ghost_Scope): New routine. |
| 1127 |
* sem_util.ads (Check_Ghost_Completion): New routine. |
| 1128 |
(Check_Ghost_Derivation): New routine. |
| 1129 |
(Incomplete_Or_Partial_View): New routine. |
| 1130 |
(Incomplete_Or_Private_View): Removed. |
| 1131 |
(Is_Ghost_Entity): New routine. |
| 1132 |
(Is_Ghost_Statement_Or_Pragma): New routine. |
| 1133 |
(Is_Subject_To_Ghost): New routine. |
| 1134 |
(Policy_In_Effect): New routine. |
| 1135 |
(Set_Is_Ghost_Entity): New routine. |
| 1136 |
(Within_Ghost_Scope): New routine. |
| 1137 |
* snames.adb-tmpl (Get_Convention_Id): Remove the entry for |
| 1138 |
convention Ghost. |
| 1139 |
(Get_Convention_Name): Remove the entry for convention Ghost. |
| 1140 |
* snames.ads-tmpl Remove the convention id for Ghost. Add a |
| 1141 |
pragma id for Ghost. |
| 1142 |
|
| 1143 |
2014-10-31 Sergey Rybin <[email protected] frybin> |
| 1144 |
|
| 1145 |
* gnat_ugn.texi: Add description of --RTS option for ASIS tools. |
| 1146 |
|
| 1147 |
2014-10-31 Olivier Hainque <[email protected]> |
| 1148 |
|
| 1149 |
* gcc-interface/Makefile.in (arm-vxworks): Update target pairs. |
| 1150 |
|
| 1151 |
2014-10-31 Vincent Celier <[email protected]> |
| 1152 |
|
| 1153 |
* prj-part.adb (Parse_Single_Project): Call Set_Display_Name_Of. |
| 1154 |
* prj-proc.adb (Recursive_Process): Call Display_Name_Of to |
| 1155 |
get the project Display_Name. |
| 1156 |
* prj-tree.adb (Display_Name_Of): New function |
| 1157 |
(Set_Display_Name_Of): New procedure. |
| 1158 |
(Create_Project): Call Set_Display_Name_Of. |
| 1159 |
* prj-tree.ads (Display_Name_Of): New function. |
| 1160 |
(Set_Display_Name_Of): New procedure. |
| 1161 |
(Project_Node_Record): New component Display_Name. |
| 1162 |
(Project_Name_And_Node): Remove component Display_Name. |
| 1163 |
* prj-conf.adb (Parse_Project_And_Apply_Config): Use the full |
| 1164 |
Config_File_Path as the Config_File_Name, not just its simple |
| 1165 |
name. |
| 1166 |
|
| 1167 |
2014-10-31 Thomas Quinot <[email protected]> |
| 1168 |
|
| 1169 |
* get_scos.adb: Minor reformatting. |
| 1170 |
|
| 1171 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1172 |
|
| 1173 |
* exp_ch5.adb (Expand_Formal_Container_Loop): Create block to |
| 1174 |
capture declaration for cursor to prevent spurious errors when |
| 1175 |
several formal iterators that use the same cursoe name appear |
| 1176 |
in the same context. |
| 1177 |
|
| 1178 |
2014-10-31 Vincent Celier <[email protected]> |
| 1179 |
|
| 1180 |
* prj-proc.adb (Recursive_Process): Make sure that the project |
| 1181 |
display name is never No_Name. |
| 1182 |
|
| 1183 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1184 |
|
| 1185 |
* sem_attr.adb (Analyze_Access_Attribute): Do not emit error |
| 1186 |
message if reference does not come from source, as in the case |
| 1187 |
for the controlling argument of a dispatching call. Error is |
| 1188 |
diagnosed when call is resolved. |
| 1189 |
* sem_ch4.adb (Complete_Object_Operation); Fix incorrect RM |
| 1190 |
reference in error message. |
| 1191 |
* sem_res.adb (Check_Prefixed_Call): ditto. |
| 1192 |
|
| 1193 |
2014-10-31 Yannick Moy <[email protected]> |
| 1194 |
|
| 1195 |
* sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Do not |
| 1196 |
suppress checks when pragma Restrictions (No_Exception) is used in |
| 1197 |
CodePeer or GNATprove mode. |
| 1198 |
|
| 1199 |
2014-10-31 Yannick Moy <[email protected]> |
| 1200 |
|
| 1201 |
* gnat1drv.adb (Adjust_Global_Switches): Explicitly mark language |
| 1202 |
checks as not suppressed in GNATprove mode. |
| 1203 |
|
| 1204 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1205 |
|
| 1206 |
* sem_elab.adb (Check_Elab_Call): Nothing to check if call is |
| 1207 |
being pre-analyzed. |
| 1208 |
* sem_ch3.adb (Complete_Private_Subtype): If all rep items of full |
| 1209 |
view are those of the base, use rep_item chain of partial view, |
| 1210 |
which may include aspects. |
| 1211 |
* sem_cat.adb (Is_non_Remote_Access_Type): Use underlying type |
| 1212 |
of base type, to handle properly declared subtypes. |
| 1213 |
|
| 1214 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1215 |
|
| 1216 |
* sem_ch12.adb (Analyze_Generic_Package_Declaration): If there |
| 1217 |
is a default storage pool, add a corresponding aspect to the |
| 1218 |
generic unit, to be used at the point of instantiation. |
| 1219 |
(Analyze_Package_Instantiation): If generic unit has aspect |
| 1220 |
specifications, propagate them to instance. If instance has a |
| 1221 |
Default_Storage_Pool aspect, make sure that it overrides the |
| 1222 |
one that may be inherited from the generic. |
| 1223 |
|
| 1224 |
2014-10-31 Vincent Celier <[email protected]> |
| 1225 |
|
| 1226 |
* prj-attr.adb: Minor removal of attributes of package Linker |
| 1227 |
that have never been used and never been documented. |
| 1228 |
* projects.texi: Add documentation for attribute Runtime. |
| 1229 |
* prj-nmsc.adb (Check_Configuration): Do not report a warning |
| 1230 |
for unknown compilers when the project is externally built. |
| 1231 |
|
| 1232 |
2014-10-31 Vasiliy Fofanov <[email protected]> |
| 1233 |
|
| 1234 |
* prj-conf.adb (Do_Autoconf): Refactor the code so that empty |
| 1235 |
Normalized_Pathname doesn't inhibit the custom Selected_Target |
| 1236 |
value. |
| 1237 |
* prj-conf.adb (Parse_Project_And_Apply_Config): Make sure that |
| 1238 |
Automatically_Generated is correctly set after the first call |
| 1239 |
to Process_Project_And_Apply_Config and not modified after the |
| 1240 |
second call, if any. |
| 1241 |
|
| 1242 |
2014-10-31 Yannick Moy <[email protected]> |
| 1243 |
|
| 1244 |
* Makefile.rtl, gnat_rm.texi, impunit.adb: Add mention of new library |
| 1245 |
files. |
| 1246 |
* a-cfinve.adb, a-cfinve.ads: New unit for formal indefinite |
| 1247 |
vectors, suitable for use in client SPARK code, also more |
| 1248 |
efficient than the standard vectors. |
| 1249 |
* a-coboho.adb, a-coboho.ads New unit for bounded holders, that |
| 1250 |
are used to define formal indefinite vectors in terms of formal |
| 1251 |
definite ones. |
| 1252 |
* a-cofove.adb, a-cofove.ads: Simplification of the API of formal |
| 1253 |
definite vectors, similar to the API of the new indefinite ones. A |
| 1254 |
new formal parameter of the generic unit called Bounded allows |
| 1255 |
to define growable vectors that use dynamic allocation. |
| 1256 |
|
| 1257 |
2014-10-31 Vincent Celier <[email protected]> |
| 1258 |
|
| 1259 |
* prj-conf.adb (Look_For_Project_Paths): New procedure |
| 1260 |
(Parse_Project_And_Apply_Config): Initially, parse the project |
| 1261 |
files ignoring missing withs. If there are missing withs, extend |
| 1262 |
the project path with directories rooted at the compiler roots, |
| 1263 |
including directories rooted at the runtime roots, if there are |
| 1264 |
non default runtimes, in the PATH orser. |
| 1265 |
* prj-env.adb (Initialize_Default_Project_Path): Do not add |
| 1266 |
any directory from the prefix if the target is "-". |
| 1267 |
* prj-part.adb (Parse): Initialize the tables, as Parse may be |
| 1268 |
call several times by gprbuild. |
| 1269 |
* prj.adb (Update_Ignore_Missing_With): New procedure. |
| 1270 |
|
| 1271 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1272 |
|
| 1273 |
* sem_aux.adb (First_Stored_Discriminant, |
| 1274 |
Has_Completely_Hidden_Discriminant): When scanning the list of |
| 1275 |
discriminants to locate possibly hidden (inherited) discriminants, |
| 1276 |
ignore itypes that may appear in the entity list, when an access |
| 1277 |
discriminants is constrained by an access attribute reference. |
| 1278 |
|
| 1279 |
2014-10-31 Javier Miranda <[email protected]> |
| 1280 |
|
| 1281 |
* freeze.adb (Freeze_Record_Type): Add missing |
| 1282 |
check to verify that all the primitives of an interface type |
| 1283 |
are abstract or null procedures. |
| 1284 |
|
| 1285 |
2014-10-31 Vincent Celier <[email protected]> |
| 1286 |
|
| 1287 |
* s-os_lib.adb, s-os_lib.ads: New function Non_Blocking_Spawn that |
| 1288 |
redirects standard output and standard error to two different files. |
| 1289 |
|
| 1290 |
2014-10-31 Bob Duff <[email protected]> |
| 1291 |
|
| 1292 |
* makeutl.ads: Minor comment fix. |
| 1293 |
|
| 1294 |
2014-10-31 Arnaud Charlet <[email protected]> |
| 1295 |
|
| 1296 |
* system-linux-x86_64.ads, system-mingw-x86_64.ads (Word_Size, |
| 1297 |
Memory_Size): Use Standard'Word_Size so that the value can be changed |
| 1298 |
via a target configuration file. |
| 1299 |
|
| 1300 |
2014-10-31 Eric Botcazou <[email protected]> |
| 1301 |
|
| 1302 |
* exp_ch4.adb: Minor tweak. |
| 1303 |
|
| 1304 |
2014-10-31 Eric Botcazou <[email protected]> |
| 1305 |
|
| 1306 |
* sem_ch12.adb (Analyze_Package_Instantiation): Do not inline with |
| 1307 |
back-end inlining. |
| 1308 |
(Must_Inline_Subp): Delete. |
| 1309 |
* sem_util.ads, sem_util.adb (Must_Inline): Likewise. |
| 1310 |
|
| 1311 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1312 |
|
| 1313 |
* freeze.adb (Freeze_Entity): A default_pool does not apply to |
| 1314 |
internal access types generated for 'access references. |
| 1315 |
* sem_prag (Analyze_Pragma, case Default_Pool): If the name is |
| 1316 |
not null it must designate a variable. |
| 1317 |
|
| 1318 |
2014-10-31 Eric Botcazou <[email protected]> |
| 1319 |
|
| 1320 |
* inline.adb: Minor reformatting. |
| 1321 |
|
| 1322 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1323 |
|
| 1324 |
* sem_ch3.adb (Build_Derived_Private_Type): If the derived |
| 1325 |
type has access discriminants, create itype references for their |
| 1326 |
anonymous types, so that they are elaborated before the generated |
| 1327 |
bodies for the primitive operations of the type. |
| 1328 |
|
| 1329 |
2014-10-31 Tristan Gingold <[email protected]> |
| 1330 |
|
| 1331 |
* prj-conf.adb (Locate_Runtime): Remove procedure. |
| 1332 |
|
| 1333 |
2014-10-31 Eric Botcazou <[email protected]> |
| 1334 |
|
| 1335 |
* inline.adb (Has_Excluded_Declaration): With back-end inlining, |
| 1336 |
only return true for nested packages. |
| 1337 |
(Cannot_Inline): Issue errors/warnings whatever the optimization level |
| 1338 |
for back-end inlining and remove assertion. |
| 1339 |
|
| 1340 |
2014-10-31 Sergey Rybin <[email protected] frybin> |
| 1341 |
|
| 1342 |
* table.adb (Tree_Read, Tree_Write): Use parentheses to specify |
| 1343 |
the desired order of '*' and '/' operations to avoid overflow. |
| 1344 |
|
| 1345 |
2014-10-31 Eric Botcazou <[email protected]> |
| 1346 |
|
| 1347 |
* exp_ch6.adb (Do_Inline): Remove unreachable code. |
| 1348 |
(Do_Inline_Always): Likewise. |
| 1349 |
|
| 1350 |
2014-10-31 Vincent Celier <[email protected]> |
| 1351 |
|
| 1352 |
* prj-nmsc.adb (Check_Stand_Alone_Library): Change error message |
| 1353 |
when library has no Ada interfaces and Library_Standalone is |
| 1354 |
declared. |
| 1355 |
|
| 1356 |
2014-10-31 Arnaud Charlet <[email protected]> |
| 1357 |
|
| 1358 |
* sem_ch13.adb (Check_Constant_Address_Clause): Disable checks |
| 1359 |
on address clauses in CodePeer mode. |
| 1360 |
|
| 1361 |
2014-10-31 Javier Miranda <[email protected]> |
| 1362 |
|
| 1363 |
* inline.adb (Expand_Inlined_Call): Do not skip |
| 1364 |
inlining of calls to subprogram renamings. |
| 1365 |
|
| 1366 |
2014-10-31 Hristian Kirtchev <[email protected]> |
| 1367 |
|
| 1368 |
* sem_res.adb (Resolve_Entity_Name): Account for |
| 1369 |
the case where the immediate parent of a reference to an entity |
| 1370 |
is a parameter association. |
| 1371 |
|
| 1372 |
2014-10-31 Eric Botcazou <[email protected]> |
| 1373 |
|
| 1374 |
* inline.adb (Check_And_Split_Unconstrained_Function): Do not |
| 1375 |
test for the presence of nested subprograms. |
| 1376 |
|
| 1377 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1378 |
|
| 1379 |
* aspects.ads, aspects.adb: Add aspect Default_Storage_Pool. |
| 1380 |
* sem_ch13.adb (Analyze_One_Aspect): Generate pragma for aspect |
| 1381 |
Default_Storage_Pool. |
| 1382 |
|
| 1383 |
2014-10-31 Eric Botcazou <[email protected]> |
| 1384 |
|
| 1385 |
* sem_ch6.adb: Remove obsolete comment. |
| 1386 |
|
| 1387 |
2014-10-31 Olivier Hainque <[email protected]> |
| 1388 |
|
| 1389 |
* g-allein.ads: bind vec_sld for pixels to 8hi vsldoi instead |
| 1390 |
of 4si, as pixels are short. |
| 1391 |
|
| 1392 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1393 |
|
| 1394 |
* sem_res.adb (Resolve_Call): Do not reject a call to a protected |
| 1395 |
operation in the spec of a protected type, when the call appears |
| 1396 |
in a pre/postcondition for another protected operation. |
| 1397 |
|
| 1398 |
2014-10-31 Tristan Gingold <[email protected]> |
| 1399 |
|
| 1400 |
* prj-conf.adb: Locate_Runtime: Always search the runtime in |
| 1401 |
project path. |
| 1402 |
|
| 1403 |
2014-10-31 Eric Botcazou <[email protected]> |
| 1404 |
|
| 1405 |
* inline.adb (Check_Package_Body_For_Inlining): Adjust previous |
| 1406 |
change to use correct idiom for back-end inlining. |
| 1407 |
|
| 1408 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1409 |
|
| 1410 |
* freeze.adb (Freeze_Record_Type): Do not check component size |
| 1411 |
if its type is generic. |
| 1412 |
|
| 1413 |
2014-10-31 Bob Duff <[email protected]> |
| 1414 |
|
| 1415 |
* gnat_rm.texi: Fix documentation w.r.t -gnatw.w. |
| 1416 |
|
| 1417 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1418 |
|
| 1419 |
* sem_ch4.adb (Try_Container_Indexing): Use Check_Implicit_Dereference. |
| 1420 |
* sem_util.adb (Check_Implicit_Dereference): a) Handle generalized |
| 1421 |
indexing as well as function calls. b) If the context is a |
| 1422 |
selected component and whe are in an instance, remove entity from |
| 1423 |
selector name to force resolution of the node, so that explicit |
| 1424 |
dereferences can be generated in the instance if they were in |
| 1425 |
the generic unit. |
| 1426 |
|
| 1427 |
2014-10-31 Eric Botcazou <[email protected]> |
| 1428 |
|
| 1429 |
* inline.adb (Back_End_Cannot_Inline): Delete. |
| 1430 |
(Add_Inlined_Subprogram): Do not call it. |
| 1431 |
|
| 1432 |
2014-10-31 Ed Schonberg <[email protected]> |
| 1433 |
|
| 1434 |
* exp_ch3.ads (Make_Tag_Assignment): New function, used to |
| 1435 |
re-initialize the tag in a tagged object declaration with |
| 1436 |
initial value. |
| 1437 |
* exp_ch3.adb (Expand_N_Object_Declaration): Use |
| 1438 |
Make_Tag_Assignment to simplify code for a tagged object |
| 1439 |
declaration. |
| 1440 |
* exp_ch13.adb (Expand_Freeze_Entity): Analyze freeze actions |
| 1441 |
for the freeze node of an object. |
| 1442 |
* freeze.adb (Check_Address_Clause): Use Make_Tag_Assignment when |
| 1443 |
needed to extend Freeze_Actions for a tagged object declaration. |
| 1444 |
|
| 1445 |
2014-10-31 Eric Botcazou <[email protected]> |
| 1446 |
|
| 1447 |
* gnat_ugn.texi: Further minor improvement to -flto entry. |
| 1448 |
|
| 1449 |
2014-10-31 Gary Dismukes <[email protected]> |
| 1450 |
|
| 1451 |
* g-dynhta.adb, g-dynhta.ads: Minor typo fixes and reformatting. |
| 1452 |
|
| 1453 |
2014-10-30 Ed Schonberg <[email protected]> |
| 1454 |
|
| 1455 |
* exp_ch3.adb (Expand_N_Object_Declaration): Code cleanup. |
| 1456 |
|
| 1457 |
2014-10-30 Ed Schonberg <[email protected]> |
| 1458 |
|
| 1459 |
* sem_ch5.adb (Analyze_Iterator_Specification): If a subtype |
| 1460 |
indication is provided, check properly that it covers the element |
| 1461 |
type of of the container type. |
| 1462 |
|
| 1463 |
2014-10-30 Hristian Kirtchev <[email protected]> |
| 1464 |
|
| 1465 |
* g-dynhta.ads, g-dynhta.adb: Add the implementation of a load facto |
| 1466 |
-based hash table. |
| 1467 |
|
| 1468 |
2014-10-30 Ed Schonberg <[email protected]> |
| 1469 |
|
| 1470 |
* exp_util.ads, exp_util.adb (Following_Address_Clause): Modify |
| 1471 |
Has_Following_Address_Clause so that it returns the address |
| 1472 |
clause if present, rather than a boolean value. |
| 1473 |
* sem_ch3.adb (Analyze_Object_Declaration): use |
| 1474 |
Following_Address_Clause. |
| 1475 |
* exp_ch3.adb (Expand_N_Object_Declaration): When a tagged object |
| 1476 |
is initialized, insert tag assignment after object is frozen, |
| 1477 |
which may be after an address clause that follows the declaration. |
| 1478 |
|
| 1479 |
2014-10-30 Tristan Gingold <[email protected]> |
| 1480 |
|
| 1481 |
* system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads, |
| 1482 |
system-vxworks-arm.ads, system-freebsd-x86_64.ads, |
| 1483 |
system-linux-hppa.ads, system-linux-s390.ads, |
| 1484 |
system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads, |
| 1485 |
system-vxworks-sparcv9.ads, system-linux-ppc.ads, system-aix64.ads, |
| 1486 |
system-linux-sh4.ads, system-solaris-x86.ads, system-linux-x86_64.ads, |
| 1487 |
system-linux-x86.ads, system-vxworks-ppc.ads, system-hpux.ads, |
| 1488 |
system-linux-armel.ads, system-darwin-ppc.ads, system-solaris-sparc.ads, |
| 1489 |
system-vxworks-m68k.ads, system-hpux-ia64.ads, system.ads, |
| 1490 |
system-solaris-x86_64.ads, system-mingw-x86_64.ads, |
| 1491 |
system-vxworks-mips.ads, system-linux-sparc.ads, system-freebsd-x86.ads, |
| 1492 |
system-aix.ads, system-darwin-x86_64.ads, system-vxworks-x86.ads: Add |
| 1493 |
pragma No_Elaboration_Code_All. |
| 1494 |
|
| 1495 |
2014-10-30 Eric Botcazou <[email protected]> |
| 1496 |
|
| 1497 |
* gnat_ugn.texi: Minor improvement to -flto entry. |
| 1498 |
|
| 1499 |
2014-10-30 Hristian Kirtchev <[email protected]> |
| 1500 |
|
| 1501 |
* sem_util.adb (Inherit_Subprogram_Contract): |
| 1502 |
Add a guard to protect against enumeration literal overriding. |
| 1503 |
* sem_ch3.adb, sem_ch4.adb, sem_res.adb, sem_util.adb: |
| 1504 |
Minor reformatting (add SPARK RM references). |
| 1505 |
|
| 1506 |
2014-10-30 Robert Dewar <[email protected]> |
| 1507 |
|
| 1508 |
* exp_dbug.adb, opt.ads: Minor reformatting. |
| 1509 |
|
| 1510 |
2014-10-30 Yannick Moy <[email protected]> |
| 1511 |
|
| 1512 |
* inline.adb (Has_Single_Return_In_GNATprove_Mode): |
| 1513 |
Return False when return statement is inside one or more blocks. |
| 1514 |
|
| 1515 |
2014-10-30 Hristian Kirtchev <[email protected]> |
| 1516 |
|
| 1517 |
* exp_ch7.adb (Is_Subprogram_Call): Account for the case where an |
| 1518 |
object declaration initialized by a function call that returns |
| 1519 |
an unconstrained result may be rewritted as a renaming of the |
| 1520 |
secondary stack result. |
| 1521 |
|
| 1522 |
2014-10-30 Hristian Kirtchev <[email protected]> |
| 1523 |
|
| 1524 |
* aspects.adb: Add an entry for aspect Extensions_Visible in |
| 1525 |
table Canonical_Aspect. |
| 1526 |
* aspects.ads: Add entry for aspect Extensions_Visible in |
| 1527 |
tables Aspect_Argument, Aspect_Delay, Aspect_Id, Aspect_Names, |
| 1528 |
Implementation_Defined_Aspect. |
| 1529 |
* einfo.adb (Get_Pragma): Include pragma Extensions_Visible in |
| 1530 |
the list of contract pragmas. |
| 1531 |
* par-prag.adb Pragma Extensions_Visible does not require special |
| 1532 |
processing from the parser. |
| 1533 |
* sem_ch3.adb (Analyze_Object_Declaration): Prevent an |
| 1534 |
implicit class-wide conversion of a formal parameter |
| 1535 |
of a specific tagged type whose related subprogram is |
| 1536 |
subject to pragma Extensions_Visible with value "False". |
| 1537 |
(Check_Abstract_Overriding): Add various overriding checks |
| 1538 |
related to pragma Extensions_Visible. |
| 1539 |
(Derive_Subprogram): |
| 1540 |
A subprogram subject to pragma Extensions_Visible with value |
| 1541 |
False requires overriding if the subprogram has at least one |
| 1542 |
controlling OUT parameter. |
| 1543 |
(Is_EVF_Procedure): New routine. |
| 1544 |
* sem_ch4.adb (Analyze_Type_Conversion): A formal parameter of |
| 1545 |
a specific tagged type whose related subprogram is subject to |
| 1546 |
pragma Extensions_Visible with value "False" cannot appear in |
| 1547 |
a class-wide conversion. |
| 1548 |
* sem_ch6.adb (Analyze_Subprogram_Contract): Remove |
| 1549 |
the assertion to account for pragma Extensions_Visible. |
| 1550 |
(Check_Overriding_Indicator): An overriding subprogram |
| 1551 |
inherits the contact of the overridden subprogram. |
| 1552 |
(New_Overloaded_Entity): An overriding subprogram inherits the |
| 1553 |
contact of the overridden subprogram. |
| 1554 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Add processing |
| 1555 |
for aspect Extensions_Visible. |
| 1556 |
(Check_Aspect_At_Freeze_Point): Aspect Extensions_Visible does not |
| 1557 |
require special processing at the freeze point. |
| 1558 |
* sem_prag.adb Add an entry for pragma Extensions_Visible in |
| 1559 |
table Sig_Flags. |
| 1560 |
(Analyze_Pragma): Ensure that various SPARK |
| 1561 |
pragmas lack identifiers in their arguments. Add processing for |
| 1562 |
pragma Extensions_Visible. |
| 1563 |
(Chain_CTC): Code reformatting. |
| 1564 |
* sem_res.adb (Resolve_Actuals): A formal parameter of a |
| 1565 |
specific tagged type whose related subprogram is subject to |
| 1566 |
pragma Extensions_Visible with value "False" cannot act as an |
| 1567 |
actual in a subprogram with value "True". |
| 1568 |
* sem_util.adb (Add_Classification): New routine. |
| 1569 |
(Add_Contract_Item): Account for pragma Extensions_Visible. Code |
| 1570 |
reformatting. |
| 1571 |
(Add_Contract_Test_Case): New routine. |
| 1572 |
(Add_Pre_Post_Condition): New routine. |
| 1573 |
(Extensions_Visible_Status): New routine. |
| 1574 |
(Inherit_Subprogram_Contract): New routine. |
| 1575 |
(Is_EVF_Expression): New routine. |
| 1576 |
(Is_Specific_Tagged_Type): New routine. |
| 1577 |
* sem_util.ads Add type Extensions_Visible_Mode and document all values. |
| 1578 |
(Add_Contract_Item): Add pragma Extensions_Visible to the |
| 1579 |
comment on usage. |
| 1580 |
(Inherit_Subprogram_Contract): New routine. |
| 1581 |
(Is_EVF_Expression): New routine. |
| 1582 |
(Is_Specific_Tagged_Type): New routine. |
| 1583 |
* sinfo.adb (Is_Inherited): New routine. |
| 1584 |
(Set_Is_Inherited): New routine. |
| 1585 |
* sinfo.ads Add flag Is_Inherited along with its usage in |
| 1586 |
nodes. |
| 1587 |
(Is_Inherited): New routine along with pragma Inline. |
| 1588 |
(Set_Is_Inherited): New routine along with pragma Inline. |
| 1589 |
* snames.ads-tmpl: Add predefined name "Extensions_Visible" |
| 1590 |
and a new Pragma_Id for the pragma. |
| 1591 |
|
| 1592 |
2014-10-30 Vincent Celier <[email protected]> |
| 1593 |
|
| 1594 |
* prj-proc.adb (Process_Case_Construction): Do not look for |
| 1595 |
the ultimate extending project for a case variable. |
| 1596 |
|
| 1597 |
2014-10-30 Pierre-Marie Derodat <[email protected]> |
| 1598 |
|
| 1599 |
* exp_dbug.adb, opt.ads (GNAT_Encodings): Import from C. Define |
| 1600 |
enumerators. |
| 1601 |
(gnat_encodings): Define a dummy variable for the AAMP back-end. |
| 1602 |
(Get_Encoded_Name): When -fgnat-encodings=all|gdb, encode names |
| 1603 |
for all discrete types whose bounds do not match size and do so |
| 1604 |
only for biased types when -fgnat-encodings=minimal. |
| 1605 |
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not create ___XA |
| 1606 |
parallel types when array bounds are constant while the lower bound is |
| 1607 |
not 1. Also stop generating them because the bound type is |
| 1608 |
larger than sizetype. |
| 1609 |
* gcc-interface/misc.c (gnat_encodings): New. |
| 1610 |
|
| 1611 |
2014-10-30 Thomas Quinot <[email protected]> |
| 1612 |
|
| 1613 |
* opt.adb (Set_Opt_Config_Switches): For an internal unit, |
| 1614 |
always reset Default_SSO to ' '. |
| 1615 |
|
| 1616 |
2014-10-30 Thomas Quinot <[email protected]> |
| 1617 |
|
| 1618 |
* freeze.adb (Freeze_Record_Type): Set SSO from default before |
| 1619 |
checking SSO consistency. |
| 1620 |
|
| 1621 |
2014-10-30 Javier Miranda <[email protected]> |
| 1622 |
|
| 1623 |
* inline.adb (Check_Package_Body_For_Inlining): |
| 1624 |
Cleanup this subprogram to implement exactly the behavior |
| 1625 |
documented in the spec. |
| 1626 |
|
| 1627 |
2014-10-30 Hristian Kirtchev <[email protected]> |
| 1628 |
|
| 1629 |
* a-comutr.adb, a-cimutr.adb (Insert_Child): Add new variable First. |
| 1630 |
Update the position after all insertions have taken place. |
| 1631 |
|
| 1632 |
2014-10-30 Ed Schonberg <[email protected]> |
| 1633 |
|
| 1634 |
* sem_prag.adb (Analyze_Pragma, case License): Do not perform |
| 1635 |
analysis of pragma arguments when in CodePeer mode, pragma has |
| 1636 |
different format on other compilers. |
| 1637 |
|
| 1638 |
2014-10-30 Thomas Quinot <[email protected]> |
| 1639 |
|
| 1640 |
* s-os_lib.adb: Minor reformatting. |
| 1641 |
|
| 1642 |
2014-10-29 Richard Sandiford <[email protected]> |
| 1643 |
|
| 1644 |
* gcc-interface/decl.c, gcc-interface/gigi.h, gcc-interface/misc.c, |
| 1645 |
gcc-interface/trans.c, gcc-interface/utils.c, gcc-interface/utils2.c: |
| 1646 |
Remove redundant enum from machine_mode. |
| 1647 |
|
| 1648 |
2014-10-28 Andrew MacLeod <[email protected]> |
| 1649 |
|
| 1650 |
* gcc-interface/trans.c: Adjust include files. |
| 1651 |
* gcc-interface/utils.c: Ditto. |
| 1652 |
|
| 1653 |
2014-10-27 Eric Botcazou <[email protected]> |
| 1654 |
|
| 1655 |
* gcc-interface/utils.c (create_subprog_decl): Adjust condition. |
| 1656 |
|
| 1657 |
2014-10-27 Eric Botcazou <[email protected]> |
| 1658 |
|
| 1659 |
* gcc-interface/misc.c (gnat_init_options_struct): Parameterize errno |
| 1660 |
support here instead of... |
| 1661 |
Do not set flag_delete_dead_exceptions to 1 unconditionally. |
| 1662 |
(gnat_init_gcc_eh): Set flag_delete_dead_exceptions to 1. |
| 1663 |
(gnat_init_gcc_fp): ...here. |
| 1664 |
|
| 1665 |
2014-10-27 Eric Botcazou <[email protected]> |
| 1666 |
|
| 1667 |
* gcc-interface/trans.c (gnat_to_gnu) <N_Real_Literal>: Minor tweaks. |
| 1668 |
|
| 1669 |
2014-10-27 Eric Botcazou <[email protected]> |
| 1670 |
|
| 1671 |
* gcc-interface/utils.c (create_var_decl_1): For a variable declared |
| 1672 |
in the unit, set TREE_PUBLIC only if it has static storage duration. |
| 1673 |
|
| 1674 |
2014-10-27 Eric Botcazou <[email protected]> |
| 1675 |
|
| 1676 |
* gcc-interface/decl.c (gnat_to_gnu_entity): Apply special treatment |
| 1677 |
of derived packed array types to constrained subtypes only. |
| 1678 |
|
| 1679 |
2014-10-27 Eric Botcazou <[email protected]> |
| 1680 |
|
| 1681 |
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Remove |
| 1682 |
superfluous computation for the max size. |
| 1683 |
<E_Array_Subtype>: Likewise. Make sure that the max size calculation |
| 1684 |
does not overflow at compile time. |
| 1685 |
|
| 1686 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1687 |
|
| 1688 |
* sem_eval.adb (Check_Non_Static_Context): Do not set |
| 1689 |
Is_Machine_Number on a literal of a fixed-point type. |
| 1690 |
|
| 1691 |
2014-10-23 Robert Dewar <[email protected]> |
| 1692 |
|
| 1693 |
* mlib-prj.adb, sem_ch4.adb, exp_ch3.adb: Minor reformatting. |
| 1694 |
|
| 1695 |
2014-10-23 Pierre-Marie Derodat <[email protected]> |
| 1696 |
|
| 1697 |
* exp_dbug.ads: Update ___XA parallel type specification. |
| 1698 |
|
| 1699 |
2014-10-23 Hristian Kirtchev <[email protected]> |
| 1700 |
|
| 1701 |
* sem_ch3.adb (Copy_Array_Subtype_Attributes): Inherit the rep |
| 1702 |
chain of the source type. |
| 1703 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Minor |
| 1704 |
reformatting of an error message. |
| 1705 |
* sem_util.adb (Inherit_Rep_Item_Chain): Do not inherit a rep |
| 1706 |
chain that has been inherited already. |
| 1707 |
|
| 1708 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1709 |
|
| 1710 |
* sem_ch6.adb (Analyze_Expression_Function): Simplify analysis |
| 1711 |
in generic context, and generate body in this case as well, |
| 1712 |
to simplify ASIS traversals on the construct. |
| 1713 |
|
| 1714 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1715 |
|
| 1716 |
* sem_ch4.adb (Complete_Object_Operation): Indicate that the |
| 1717 |
scope of the operation (s) is referenced, to prevent spurious |
| 1718 |
warnings about unused units. |
| 1719 |
|
| 1720 |
2014-10-23 Johannes Kanig <[email protected]> |
| 1721 |
|
| 1722 |
* errout.adb (Error_Msg_Internal): Copy check flag, increment |
| 1723 |
check msg count. |
| 1724 |
* erroutc.adb (Delete_Msg) adjust check msg count. |
| 1725 |
(Output_Msg_Text) handle check msg case (do nothing). |
| 1726 |
(Prescan_Message) recognize check messages with severity prefixes. |
| 1727 |
* errutil.adb (Error_Msg) handle check flag, adjust counter. |
| 1728 |
|
| 1729 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1730 |
|
| 1731 |
* sem_eval.adb (Subtypes_Statically_Match): For a generic actual |
| 1732 |
type, check for the presence of discriminants in its parent type, |
| 1733 |
against the presence of discriminants in the context type. |
| 1734 |
|
| 1735 |
2014-10-23 Tristan Gingold <[email protected]> |
| 1736 |
|
| 1737 |
* adaint.c: __gnat_get_file_names_case_sensitive: Default is |
| 1738 |
true on arm-darwin. |
| 1739 |
|
| 1740 |
2014-10-23 Arnaud Charlet <[email protected]> |
| 1741 |
|
| 1742 |
* pprint.adb (Expression_Image): Add handling of quantifiers. |
| 1743 |
|
| 1744 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1745 |
|
| 1746 |
* exp_pakd.adb (Expand_Packed_Element_Reference): If the |
| 1747 |
prefix is a source entity, generate a reference to it before |
| 1748 |
transformation, because rewritten node might not generate a |
| 1749 |
proper reference, leading to spurious warnings. |
| 1750 |
|
| 1751 |
2014-10-23 Tristan Gingold <[email protected]> |
| 1752 |
|
| 1753 |
* init.c: Fix thinko in previous patch. |
| 1754 |
|
| 1755 |
2014-10-23 Hristian Kirtchev <[email protected]> |
| 1756 |
|
| 1757 |
* sem_ch3.adb (Decimal_Fixed_Point_Type_Declaration): |
| 1758 |
Inherit the rep chain of the implicit base type. |
| 1759 |
(Floating_Point_Type_Declaration): Inherit the rep chain of the |
| 1760 |
implicit base type. |
| 1761 |
(Ordinary_Fixed_Point_Type_Declaration): Inherit the rep chain of the |
| 1762 |
implicit base type. |
| 1763 |
(Signed_Integer_Type_Declaration): Inherit the rep chain of the |
| 1764 |
implicit base type. |
| 1765 |
* sem_util.ads, sem_util.adb (Inherit_Rep_Item_Chain): New routine. |
| 1766 |
|
| 1767 |
2014-10-23 Pascal Obry <[email protected]> |
| 1768 |
|
| 1769 |
* g-regist.adb, g-regist.ads: Add support for reading 32bit or 64bit |
| 1770 |
view of the registry. |
| 1771 |
|
| 1772 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1773 |
|
| 1774 |
* exp_ch3.adb (Expand_N_Object_Declaration): If type is abstract, |
| 1775 |
return without expanding expression, to prevent subsequent crash. |
| 1776 |
* freeze.adb: better error message for illegal declaration. |
| 1777 |
|
| 1778 |
2014-10-23 Hristian Kirtchev <[email protected]> |
| 1779 |
|
| 1780 |
* sysdep.c (__gnat_localtime_tzoff): Properly delimit the |
| 1781 |
substring which represents the time zone on VxWorks. |
| 1782 |
|
| 1783 |
2014-10-23 Vincent Celier <[email protected]> |
| 1784 |
|
| 1785 |
* gnatls.adb: If --RTS= was not used, check if there is a default |
| 1786 |
runtime. If there is none, in verbose mode, indicate that the |
| 1787 |
default runtime is not available and show only the current |
| 1788 |
directory in the source and the object search paths. |
| 1789 |
|
| 1790 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1791 |
|
| 1792 |
* sem_ch6.adb (Process_Formals): A thunk procedure with a |
| 1793 |
parameter of a limited view does not need a freeze node. |
| 1794 |
|
| 1795 |
2014-10-23 Hristian Kirtchev <[email protected]> |
| 1796 |
|
| 1797 |
* sem_ch7.adb (Analyze_Package_Body_Helper): |
| 1798 |
The logic which hides local entities from external |
| 1799 |
visibility is now contained in routine Hide_Public_Entities. |
| 1800 |
(Hide_Public_Entities): New routine. Object and subprogram |
| 1801 |
renamings are now hidden from external visibility the same way |
| 1802 |
objects are. |
| 1803 |
|
| 1804 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1805 |
|
| 1806 |
* sem_attr.adb (Analyze_Attribute): The prefix of attribute Elaborated |
| 1807 |
does not require freezing, in particular if it denotes a generic |
| 1808 |
function. |
| 1809 |
|
| 1810 |
2014-10-23 Yannick Moy <[email protected]> |
| 1811 |
|
| 1812 |
* sem_prag.adb (Analyze_Pragma/Pragma_Inline & Pragma_Inline_Always): |
| 1813 |
Disable analysis in GNATprove mode. |
| 1814 |
|
| 1815 |
2014-10-23 Arnaud Charlet <[email protected]> |
| 1816 |
|
| 1817 |
* mlib-prj.adb: Remove obsolete references to libdecgnat (VMS only). |
| 1818 |
|
| 1819 |
2014-10-23 Arnaud Charlet <[email protected]> |
| 1820 |
|
| 1821 |
* gnat1drv.adb (Adjust_Global_Switches): Ignore style check |
| 1822 |
pragmas in codepeer mode. |
| 1823 |
|
| 1824 |
2014-10-23 Gary Dismukes <[email protected]> |
| 1825 |
|
| 1826 |
* gnat_rm.texi: Minor syntax fix for pragma Annotate (missing ','). |
| 1827 |
|
| 1828 |
2014-10-23 Hristian Kirtchev <[email protected]> |
| 1829 |
|
| 1830 |
* sem_ch12.adb (Inline_Instance_Body): Alphabetize |
| 1831 |
local variables and constants. Add constants Save_SM and Save_SMP |
| 1832 |
to capture SPARK_Mode-related attributes. Compile the inlined |
| 1833 |
body with the SPARK_Mode of the enclosing context. |
| 1834 |
|
| 1835 |
2014-10-23 Hristian Kirtchev <[email protected]> |
| 1836 |
|
| 1837 |
* sinfo.adb (Elaboration_Boolean): Removed. |
| 1838 |
(Set_Elaboration_Boolean): Removed. |
| 1839 |
* sinfo.ads Remove attribute Elaboration_Boolean along with its |
| 1840 |
occurrence in nodes. |
| 1841 |
(Elaboration_Boolean): Removed along with pragma Inline. |
| 1842 |
(Set_Elaboration_Boolean): Removed along with pragma Inline. |
| 1843 |
|
| 1844 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1845 |
|
| 1846 |
* sem_ch3.adb (Constant_Redeclaration): Make error message more |
| 1847 |
explicit on a deferred constant whose object_definition is an |
| 1848 |
anonymous array. |
| 1849 |
|
| 1850 |
2014-10-23 Vincent Celier <[email protected]> |
| 1851 |
|
| 1852 |
* gnatls.adb: Never call Targparm.Get_Target_Parameters. |
| 1853 |
|
| 1854 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1855 |
|
| 1856 |
* sem_ch6.adb (Analyze_Expression_Function): In a generic |
| 1857 |
context do not create a body, and only pre-analyze the expression, |
| 1858 |
which may include incomplete views. |
| 1859 |
|
| 1860 |
2014-10-23 Robert Dewar <[email protected]> |
| 1861 |
|
| 1862 |
* sem_type.adb: Minor code reorganization (use Nkind_In, Ekind_In). |
| 1863 |
* sem_ch3.adb: Minor reformatting. |
| 1864 |
|
| 1865 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1866 |
|
| 1867 |
* sem_ch12.adb (Analyze_Associations): If an actual for a formal |
| 1868 |
object is a call to a parameterless expression function, add |
| 1869 |
the function to the list of actuals to freeze. |
| 1870 |
* freeze.adb (Check_Expression_Function): Create freeze nodes of |
| 1871 |
outer types that may be references in the body of the expression. |
| 1872 |
|
| 1873 |
2014-10-23 Hristian Kirtchev <[email protected]> |
| 1874 |
|
| 1875 |
* exp_util.ads, checks.ads: Minor comment reformatting. |
| 1876 |
|
| 1877 |
2014-10-23 Javier Miranda <[email protected]> |
| 1878 |
|
| 1879 |
* sem_eval (Test_In_Range): Disable removal of range_check for |
| 1880 |
VM targets. |
| 1881 |
|
| 1882 |
2014-10-23 Robert Dewar <[email protected]> |
| 1883 |
|
| 1884 |
* erroutc.adb (Validate_Specific_Warnings): Fix test for -W |
| 1885 |
messages, which got disabled when we unconditionally added an |
| 1886 |
asterisk at the start of the string. |
| 1887 |
|
| 1888 |
2014-10-23 Vincent Celier <[email protected]> |
| 1889 |
|
| 1890 |
* gnatls.adb: Ensure that "gnatls -l" works even when there is |
| 1891 |
no default runtime. |
| 1892 |
|
| 1893 |
2014-10-23 Eric Botcazou <[email protected]> |
| 1894 |
|
| 1895 |
* sem_ch3.adb (Build_Derived_Private_Type): When the parent is |
| 1896 |
untagged and has discriminants, build the implicit full view after |
| 1897 |
building the derived type. Capture original declaration and type |
| 1898 |
here instead of... |
| 1899 |
(Copy_And_Build): ...here. |
| 1900 |
* sem_type.adb (Full_View_Covers): Handle the Underlying_Full_View. |
| 1901 |
|
| 1902 |
2014-10-23 Hristian Kirtchev <[email protected]> |
| 1903 |
|
| 1904 |
* checks.adb (Ensure_Valid): Update the subprogram |
| 1905 |
profile. Propagate the contex attributes to Insert_Valid_Check. |
| 1906 |
(Insert_Valid_Check): Update the subprogram profile. Propagate |
| 1907 |
the attributes of the context to Duplicate_Subexpr_No_Checks. |
| 1908 |
(Validity_Check_Range): Update the subprogram profile. Propagate |
| 1909 |
the context attribute to Ensure_Valid. |
| 1910 |
* checks.ads (Ensure_Valid): Update the subprogram profile |
| 1911 |
along with the comment on usage. |
| 1912 |
(Insert_Valid_Check): Update the subprogram profile along with the |
| 1913 |
comment on usage. |
| 1914 |
(Validity_Check_Range): Update the subprogram profile along with |
| 1915 |
the comment on usage. |
| 1916 |
* exp_util.adb (Build_Temporary): New routine. |
| 1917 |
(Duplicate_Subexpr_No_Checks): Update the subprogram |
| 1918 |
profile. Propagate the attributes of the context to Remove_Side_Effects. |
| 1919 |
(Remove_Side_Effects): Update the subprogram profile. Update all calls |
| 1920 |
to Make_Temporary to invoke Build_Temporary. |
| 1921 |
* exp_util.ads (Duplicate_Subexpr_No_Checks): Update |
| 1922 |
the subprogram profile along with the comment on usage. |
| 1923 |
(Remove_Side_Effects): Update the subprogram profile along with |
| 1924 |
the comment on usage. |
| 1925 |
* sem_ch3.adb (Process_Range_Expr_In_Decl): Pass the subtype |
| 1926 |
to the validity check machinery. Explain the reason for this |
| 1927 |
propagation. |
| 1928 |
|
| 1929 |
2014-10-23 Robert Dewar <[email protected]> |
| 1930 |
|
| 1931 |
* a-strsea.adb: Minor reformatting. |
| 1932 |
|
| 1933 |
2014-10-23 Thomas Quinot <[email protected]> |
| 1934 |
|
| 1935 |
* bcheck.adb (Check_Consistent_SSO_Default): Exclude internal |
| 1936 |
units from consistency check. |
| 1937 |
* gnat_rm.texi (Default_Scalar_Storage_Order): Document that |
| 1938 |
consistency check excludes run-time units. |
| 1939 |
|
| 1940 |
2014-10-23 Ed Schonberg <[email protected]> |
| 1941 |
|
| 1942 |
* a-strsea.adb (Find_Token): Enable constraint checking in this |
| 1943 |
procedure, so that even when compiling with checks suppressed, as is |
| 1944 |
the case for the run-time, an exception is raised in this routine when |
| 1945 |
the input meets the conditions described in RM 2005 A.4.3 (68/1). |
| 1946 |
|
| 1947 |
2014-10-20 Eric Botcazou <[email protected]> |
| 1948 |
|
| 1949 |
* sem_ch3.adb (Build_Derived_Private_Type): When the parent |
| 1950 |
is untagged and has discriminants, build the implicit full |
| 1951 |
view even if the derived type is a completion, and make it |
| 1952 |
the Underlying_Full_View of the type. |
| 1953 |
(Copy_And_Build): Fix Is_Completion actual parameter in the calls to |
| 1954 |
Build_Derived_Type. |
| 1955 |
(Build_Derived_Record_Type): Likewise. |
| 1956 |
|
| 1957 |
2014-10-20 Ed Schonberg <[email protected]> |
| 1958 |
|
| 1959 |
* sem_ch13.adb: Add guard to convention setting. |
| 1960 |
|
| 1961 |
2014-10-20 Robert Dewar <[email protected]> |
| 1962 |
|
| 1963 |
* sem_ch3.adb, prj-proc.adb, prj-proc.ads, prj-conf.adb: Minor |
| 1964 |
reformatting. |
| 1965 |
|
| 1966 |
2014-10-20 Robert Dewar <[email protected]> |
| 1967 |
|
| 1968 |
* par-prag.adb (Add_List_Pragma_Entry): New procedure. |
| 1969 |
* par.adb (P_Pragma): Document requirement to handle multiple calls. |
| 1970 |
|
| 1971 |
2014-10-20 Robert Dewar <[email protected]> |
| 1972 |
|
| 1973 |
* sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All): |
| 1974 |
Fix error of bad inheritance of this pragma from with'ed unit. |
| 1975 |
|
| 1976 |
2014-10-20 Ed Schonberg <[email protected]> |
| 1977 |
|
| 1978 |
* sem_ch13.adb (Inherit_Aspects_At_Freeze_Point): For a subtype, |
| 1979 |
inherit convention from parent type, because the subtype may |
| 1980 |
have been declared on a partial view, prior to the pragma on |
| 1981 |
the parent. |
| 1982 |
|
| 1983 |
2014-10-20 Olivier Hainque <[email protected]> |
| 1984 |
Tristan Gingold <[email protected]> |
| 1985 |
|
| 1986 |
* gcc-interface/Makefile.in: Handle arm-darwin and VxWorks 7. |
| 1987 |
Misc clean ups. |
| 1988 |
|
| 1989 |
2014-10-20 Nicolas Roche <[email protected]> |
| 1990 |
|
| 1991 |
* gcc-interface/Make-lang.in: ensure that automatically generated |
| 1992 |
dependency are referencing generated gnatvsn rather than original |
| 1993 |
one. |
| 1994 |
|
| 1995 |
2014-10-20 Gary Dismukes <[email protected]> |
| 1996 |
|
| 1997 |
* gnat_ugn.texi: Minor reformatting. |
| 1998 |
* sem_ch3.adb: Minor reformatting. |
| 1999 |
|
| 2000 |
2014-10-20 Vincent Celier <[email protected]> |
| 2001 |
|
| 2002 |
* prj-attr.adb: New project level attribute Runtime. |
| 2003 |
* prj-conf.adb (Get_Project_Runtimes): New procedure to get |
| 2004 |
the attributes Runtime declared in the main project, to use |
| 2005 |
in auto-configuration. |
| 2006 |
(Get_Or_Create_Configuration_File): Call Get_Project_Runtimes. |
| 2007 |
* prj-proc.adb (Runtime_Defaults): New table to store |
| 2008 |
the default values of attributes Runtime (<language>). |
| 2009 |
(Set_Default_Runtime_For): New procedure to store the default |
| 2010 |
value of a Runtime (<language>) in table Runtime_Defaults. |
| 2011 |
(Expression): Use the value stored in table Runtime_Defaults as |
| 2012 |
the default for Runtime (<language>). |
| 2013 |
* prj-proc.ads (Set_Default_Runtime_For): New procedure. |
| 2014 |
* prj.ads (Attribute_Default_Value): New enumerated value |
| 2015 |
Runtime_Value. |
| 2016 |
|
| 2017 |
2014-10-20 Ed Schonberg <[email protected]> |
| 2018 |
|
| 2019 |
* sem_ch3.adb (Analyze_Object_Declaration): If the type is |
| 2020 |
an unconstrained unchecked_union type, rewrite declaration |
| 2021 |
as a renaming to prevent attempt to retrieve non- existent |
| 2022 |
discriminants from expression. |
| 2023 |
|
| 2024 |
2014-10-20 Ed Schonberg <[email protected]> |
| 2025 |
|
| 2026 |
* gnat_ugn.texi: Minor reformatting. |
| 2027 |
|
| 2028 |
2014-10-20 Tristan Gingold <[email protected]> |
| 2029 |
|
| 2030 |
* init.c (__gnat_is_stack_guard): Don't use mach_vm_region_recurse on |
| 2031 |
arm-darwin. |
| 2032 |
* raise-gcc.c: Add ATTRIBUTE_UNUSED to remove warnings for |
| 2033 |
unused arguments. |
| 2034 |
|
| 2035 |
2014-10-20 Hristian Kirtchev <[email protected]> |
| 2036 |
|
| 2037 |
* sem_attr.adb (Analyze_Attribute): Replace |
| 2038 |
variables CS and PS with Proc_Id and Subp_Id to better illustrate |
| 2039 |
their purpose. Account for the case where _Postconditions |
| 2040 |
has not been generated yet and the context is aspect/pragma |
| 2041 |
Refined_Post. In that scenario the expected prefix of attribute |
| 2042 |
'Result is the current scope. |
| 2043 |
|
| 2044 |
2014-10-20 Robert Dewar <[email protected]> |
| 2045 |
|
| 2046 |
* par-ch4.adb (P_Expression): Handle extraneous comma/semicolon |
| 2047 |
in middle of expression with logical operators. |
| 2048 |
|
| 2049 |
2014-10-20 Robert Dewar <[email protected]> |
| 2050 |
|
| 2051 |
* par-ch13.adb (Possible_Misspelled_Aspect): New function. |
| 2052 |
|
| 2053 |
2014-10-20 Steve Baird <[email protected]> |
| 2054 |
|
| 2055 |
* pprint.adb: Improve Expression_Image function. |
| 2056 |
|
| 2057 |
2014-10-20 Robert Dewar <[email protected]> |
| 2058 |
|
| 2059 |
* gnat_rm.texi: Document No_Tagged_Streams pragma and aspect. |
| 2060 |
* snames.ads-tmpl: Add entry for pragma No_Tagged_Streams. |
| 2061 |
* aspects.ads, aspects.adb: Add aspect No_Tagged_Streams. |
| 2062 |
* einfo.adb (No_Tagged_Streams_Pragma): New field. |
| 2063 |
* einfo.ads: Minor reformatting (reorder entries). |
| 2064 |
(No_Tagged_Streams_Pragma): New field. |
| 2065 |
* exp_ch3.adb: Minor comment update. |
| 2066 |
* opt.ads (No_Tagged_Streams): New variable. |
| 2067 |
* par-prag.adb: Add dummy entry for pragma No_Tagged_Streams. |
| 2068 |
* sem.ads (Save_No_Tagged_Streams): New field in scope record. |
| 2069 |
* sem_attr.adb (Check_Stream_Attribute): Check stream ops |
| 2070 |
prohibited by No_Tagged_Streams. |
| 2071 |
* sem_ch3.adb (Analyze_Full_Type_Declaration): Set |
| 2072 |
No_Tagged_Streams_Pragma. |
| 2073 |
(Analyze_Subtype_Declaration): ditto. |
| 2074 |
(Build_Derived_Record_Type): ditto. |
| 2075 |
(Record_Type_Declaration): ditto. |
| 2076 |
* sem_ch8.adb (Pop_Scope): Restore No_Tagged_Streams. |
| 2077 |
(Push_Scope): Save No_Tagged_Streams. |
| 2078 |
* sem_prag.adb (Analyze_Pragma, case No_Tagged_Streams): Implement new |
| 2079 |
pragma. |
| 2080 |
|
| 2081 |
2014-10-20 Robert Dewar <[email protected]> |
| 2082 |
|
| 2083 |
* sem_ch3.adb, prj-proc.adb, sem_ch4.adb, prj-env.adb, lib.ads, |
| 2084 |
sem_ch13.adb: Minor reformatting. |
| 2085 |
|
| 2086 |
2014-10-20 Javier Miranda <[email protected]> |
| 2087 |
|
| 2088 |
* exp_ch3.adb (Expand_N_Object_Declaration): Expand the |
| 2089 |
declaration of a class-wide limited object containing an |
| 2090 |
initializing expression into a renaming declaration. Required to |
| 2091 |
avoid passing such declaration to the backend and also to avoid |
| 2092 |
generating an extra copy. |
| 2093 |
|
| 2094 |
2014-10-20 Eric Botcazou <[email protected]> |
| 2095 |
|
| 2096 |
* inline.adb (List_Inlining_Info): Minor tweaks. |
| 2097 |
(Add_Inlined_Body): Inline the enclosing package |
| 2098 |
if it is not internally generated, even if it doesn't come |
| 2099 |
from source. |
| 2100 |
|
| 2101 |
2014-10-20 Ed Schonberg <[email protected]> |
| 2102 |
|
| 2103 |
* sem_ch4.adb (Process_Function_Call): If the first actual |
| 2104 |
denotes a discrete type, the mode must be interpreted as a slice |
| 2105 |
of an array returned by a parameterless call. |
| 2106 |
|
| 2107 |
2014-10-20 Vasiliy Fofanov <[email protected]> |
| 2108 |
|
| 2109 |
* prj-env.ads, prj-env.adb (Get_Runtime_Path): No longer inhibit |
| 2110 |
searching for runtime referenced by a simple name on a project path. |
| 2111 |
|
| 2112 |
2014-10-20 Olivier Hainque <[email protected]> |
| 2113 |
|
| 2114 |
* vxworks-x86-link.spec: New file. |
| 2115 |
* system-vxworks-x86.ads: Add pragma Linker_Options to link with |
| 2116 |
vxworks-x86-link.spec. |
| 2117 |
|
| 2118 |
2014-10-20 Vincent Celier <[email protected]> |
| 2119 |
|
| 2120 |
* opt.ads (Origin_Of_Target): New type. |
| 2121 |
(Target_Origin): New variable. |
| 2122 |
* prj-conf.adb (Parse_Project_And_Apply_Config): Record |
| 2123 |
Target_Value and Target_Origin. If target was not specified |
| 2124 |
on the command line with --target=, check if attribute Target |
| 2125 |
is declared in the main project. If it is and it is not the |
| 2126 |
native target, parse again the projects so that 'Target get |
| 2127 |
the new value. Fail if the target has changed again. Invoke |
| 2128 |
Process_Project_And_Apply_Config with Do_Phase_1 set to False |
| 2129 |
is Process_Project_Tree_Phase_1 has already been invoked. |
| 2130 |
* prj-conf.ads (Process_Project_And_Apply_Config): New Boolean |
| 2131 |
parameter Do_Phase_1, defaulted to True. |
| 2132 |
* prj-proc.adb (Expression): Check the special values and |
| 2133 |
defaults for attribute Target. |
| 2134 |
|
| 2135 |
2014-10-20 Ed Schonberg <[email protected]> |
| 2136 |
|
| 2137 |
* sem_ch3.adb (Handle_Late_Controlled_Primitive): Do not analyze |
| 2138 |
the subprogram spec of the body in full, because it will be |
| 2139 |
reanalyzed when the declaration itself is analyzed; otherwise. a |
| 2140 |
formal may end up duplicated in the list of formals leading to |
| 2141 |
spurious conformance errors with an existing declaration. |
| 2142 |
|
| 2143 |
2014-10-20 Ed Schonberg <[email protected]> |
| 2144 |
|
| 2145 |
* sem_ch13.adb: Improve error recovery on illegal aspect. |
| 2146 |
|
| 2147 |
2014-10-20 Arnaud Charlet <[email protected]> |
| 2148 |
|
| 2149 |
* set_targ.adb (Write_Target_Dependent_Values, Write_Line): |
| 2150 |
Fix calling C APIs with no trailing NUL char by calling better |
| 2151 |
wrappers instead. |
| 2152 |
|
| 2153 |
2014-10-20 Tristan Gingold <[email protected]> |
| 2154 |
|
| 2155 |
* gnat_ugn.texi: Document that gdb users must be in group |
| 2156 |
_developer on mac os. |
| 2157 |
|
| 2158 |
2014-10-20 Arnaud Charlet <[email protected]> |
| 2159 |
|
| 2160 |
* a-tgdico.ads: Fix typo. |
| 2161 |
|
| 2162 |
2014-10-20 Ed Schonberg <[email protected]> |
| 2163 |
|
| 2164 |
* exp_aggr.adb (Convert_To_Assignments): Do not create a |
| 2165 |
transient scope for a component whose type requires it, if the |
| 2166 |
context is an initialization procedure, because the target of |
| 2167 |
the assignment must be visible outside of the block. |
| 2168 |
|
| 2169 |
2014-10-20 Tristan Gingold <[email protected]> |
| 2170 |
|
| 2171 |
* tracebak.c: Define PC_ADJUST for arm-darwin. |
| 2172 |
* env.c: Remove darwin specific code. |
| 2173 |
* raise-gcc.c (__gnat_Unwind_ForcedUnwind): Error on arm-darwin. |
| 2174 |
|
| 2175 |
2014-10-20 Ed Schonberg <[email protected]> |
| 2176 |
|
| 2177 |
* sem_ch3.adb (Analyze_Full_Type_Declaration): If previous view |
| 2178 |
is incomplete rather than private, and full type declaration |
| 2179 |
has aspects, analyze aspects on the full view rather than |
| 2180 |
the incomplete view, to prevent freezing anomalies with the |
| 2181 |
class-wide type. |
| 2182 |
|
| 2183 |
2014-10-17 Robert Dewar <[email protected]> |
| 2184 |
|
| 2185 |
* exp_ch9.adb (Expand_N_Task_Body): Add defense against |
| 2186 |
previous errors. |
| 2187 |
* freeze.adb (Freeze_Entity): Add defense against checking null |
| 2188 |
scope for generic. |
| 2189 |
* restrict.adb (Tasking_Allowed): Add test for No_Run_Time mode. |
| 2190 |
* sem_ch13.adb (Freeze_Entity_Checks): Add defense against |
| 2191 |
previous errors. |
| 2192 |
* sem_ch9.adb (Analyze_Task_Type_Declaration): Give error if |
| 2193 |
in No_Run_Time mode. |
| 2194 |
|
| 2195 |
2014-10-17 Robert Dewar <[email protected]> |
| 2196 |
|
| 2197 |
* prj-makr.adb: Minor reformatting. |
| 2198 |
|
| 2199 |
2014-10-17 Robert Dewar <[email protected]> |
| 2200 |
|
| 2201 |
* gnatcmd.adb, make.adb, prj-part.adb, gnatlink.adb, prj-nmsc.adb, |
| 2202 |
prj-conf.adb, prj-env.adb: Use Is_Directory_Separator where possible. |
| 2203 |
|
| 2204 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2205 |
|
| 2206 |
* exp_prag.adb (Undo_Initialization): If Initialize_Scalars |
| 2207 |
is enabled, code will be generated for some composite types |
| 2208 |
to initialize an object after its declaration. If there is |
| 2209 |
a subsequent Import pragma for the object, that code must be |
| 2210 |
removed as specified byw the semantics of the pragma, and to |
| 2211 |
prevent out-of-order elaboration issues in the back-end. |
| 2212 |
|
| 2213 |
2014-10-17 Hristian Kirtchev <[email protected]> |
| 2214 |
|
| 2215 |
* exp_ch4.adb (Expand_N_Op_Concat): Keep concatenation operator |
| 2216 |
wrapping mechanism under debug flag -gnatd.h. |
| 2217 |
* debug.adb: Claim debug switch -gnatd.h. |
| 2218 |
|
| 2219 |
2014-10-17 Doug Rupp <[email protected]> |
| 2220 |
|
| 2221 |
* gcc-interface/Makefile.in: Enable the socket runtime bits |
| 2222 |
for Android. |
| 2223 |
|
| 2224 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2225 |
|
| 2226 |
* sem_ch13.adb (Add_Invariants, Replace_Type_References): Do |
| 2227 |
not perform the replacement on the expression for an inherited |
| 2228 |
class-wide invariant if in ASIS_Mode and the type reference is |
| 2229 |
already the prefix of a 'Class attribute reference: the expression |
| 2230 |
has already been preanalyzed and the replacement performed when |
| 2231 |
first encountered on the declaration of the parent type. |
| 2232 |
|
| 2233 |
2014-10-17 Robert Dewar <[email protected]> |
| 2234 |
|
| 2235 |
* sem_ch5.adb, sem_ch7.adb, prj-nmsc.adb, sem_ch13.adb, exp_ch3.adb: |
| 2236 |
Minor reformatting. |
| 2237 |
|
| 2238 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2239 |
|
| 2240 |
* exp_ch3.adb (Build_Component_Invariant_Call): Retrieve Invariant |
| 2241 |
subprogram from base type. |
| 2242 |
* sem_ch7.adb (Analyze_Package_Specification): Build invariant |
| 2243 |
subprogram for private type, not any of its subtypes. |
| 2244 |
* sem_ch13.adb (Build_Invariant_Procedure_Declaration): Set type |
| 2245 |
of procedure entity, because a call to it may be generated in |
| 2246 |
a client unit before the corresponding subprogram declaration |
| 2247 |
is analyzed. |
| 2248 |
|
| 2249 |
2014-10-17 Vincent Celier <[email protected]> |
| 2250 |
|
| 2251 |
* prj-nmsc.adb (Get_Directories): Do not create directories |
| 2252 |
when a project is abstract. |
| 2253 |
|
| 2254 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2255 |
|
| 2256 |
* sem_ch5.adb (Analyze_Iterator_Specification): If the domain |
| 2257 |
of iteration is given by an expression that is not an array type, |
| 2258 |
verify that its type implements an iterator iterface. |
| 2259 |
|
| 2260 |
2014-10-17 Robert Dewar <[email protected]> |
| 2261 |
|
| 2262 |
* sem_attr.adb (Eval_Attribute): Ensure that attribute |
| 2263 |
reference is not marked as being a static expression if the |
| 2264 |
prefix evaluation raises CE. |
| 2265 |
|
| 2266 |
2014-10-17 Robert Dewar <[email protected]> |
| 2267 |
|
| 2268 |
* exp_pakd.adb: Move bit packed entity tables to spec. |
| 2269 |
* exp_pakd.ads: Move bit packed entity tables here from body. |
| 2270 |
* freeze.adb (Freeze_Array_Type): Check that packed array type |
| 2271 |
is supported. |
| 2272 |
* rtsfind.adb (PRE_Id_Table): New table (Entity_Not_Defined): |
| 2273 |
Specialize messages using PRE_Id_Table. |
| 2274 |
* uintp.ads, uintp.adb (UI_Image): New functional form. |
| 2275 |
|
| 2276 |
2014-10-17 Robert Dewar <[email protected]> |
| 2277 |
|
| 2278 |
* aspects.ads, aspects.adb: Add Suppress_Initialization aspect. |
| 2279 |
* einfo.ads, einfo.adb (Suppress_Initialization): Now applies to |
| 2280 |
E_Variable. |
| 2281 |
* exp_ch3.adb (Default_Initialize_Object): Handle |
| 2282 |
Suppress_Initialization. |
| 2283 |
* exp_prag.adb (Expand_Pragma_Suppress_Initialization): New |
| 2284 |
procedure (Expand_N_Pragma): Handle Suppress_Initialization |
| 2285 |
(Expand_Pragma_Import_Or_Interface): Use Undo_Initialization |
| 2286 |
(Undo_Initialization): New procedure. |
| 2287 |
* sem_prag.adb (Analyze_Pragma, case Suppress_Initialization): |
| 2288 |
This is now allowed for E_Variable case. |
| 2289 |
* gnat_rm.texi: Document new aspect Suppress_Initialization |
| 2290 |
Suppress_Initialization aspect/pragma can apply to variable. |
| 2291 |
* einfo.ads: Minor reformatting. |
| 2292 |
|
| 2293 |
2014-10-17 Arnaud Charlet <[email protected]> |
| 2294 |
|
| 2295 |
* spark_xrefs.ads: Add documentation pointer to Flow_Computed_Globals. |
| 2296 |
|
| 2297 |
2014-10-17 Robert Dewar <[email protected]> |
| 2298 |
|
| 2299 |
* cstand.adb (Create_Standard): Mark Short_Integer as |
| 2300 |
implementation defined. |
| 2301 |
* sem_util.adb (Set_Entity_With_Checks): Avoid blow up for |
| 2302 |
compiler built with assertions for No_Implementation_Identifiers test. |
| 2303 |
|
| 2304 |
2014-10-17 Robert Dewar <[email protected]> |
| 2305 |
|
| 2306 |
* aspects.ads: Documentation fix, aspect Lock_Free does have a |
| 2307 |
corresponding pragma. |
| 2308 |
* gnat_rm.texi: Document implementation defined boolean aspects |
| 2309 |
as boolean. |
| 2310 |
|
| 2311 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2312 |
|
| 2313 |
* sem_ch13.adb (Add_Invariants): For a class-wide type invariant, |
| 2314 |
preserve semantic information on the invariant expression |
| 2315 |
(typically a function call) because it may be inherited by a |
| 2316 |
type extension in a different unit, and it cannot be resolved |
| 2317 |
by visibility elsewhere because it may refer to local entities. |
| 2318 |
|
| 2319 |
2014-10-17 Robert Dewar <[email protected]> |
| 2320 |
|
| 2321 |
* gnat_rm.texi: Document that string literal can be used for |
| 2322 |
pragma Warnings when operating in Ada 83 mode. |
| 2323 |
|
| 2324 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2325 |
|
| 2326 |
* freeze.adb (Find_Aggregate_Component_Desig_Type): New |
| 2327 |
subsidiary function to Freeze_ Expression, used to determine |
| 2328 |
whether an aggregate for an array of access types also freezes the |
| 2329 |
designated type, when some aggregate components are allocators. |
| 2330 |
|
| 2331 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2332 |
|
| 2333 |
* a-strsea.adb (Find_Token): AI05-031 indicates that the |
| 2334 |
procedure must raise Index_Error when Source is not empty and |
| 2335 |
the From parameter is not within the range of the Source string. |
| 2336 |
|
| 2337 |
2014-10-17 Robert Dewar <[email protected]> |
| 2338 |
|
| 2339 |
* sem_prag.adb (Is_Static_String_Expression): Allow string |
| 2340 |
literal in Ada 83 mode. |
| 2341 |
|
| 2342 |
2014-10-17 Vincent Celier <[email protected]> |
| 2343 |
|
| 2344 |
* prj-conf.adb (Get_Config_Switches): In CodePeer mode, do |
| 2345 |
not take into account any compiler command from package IDE. |
| 2346 |
|
| 2347 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2348 |
|
| 2349 |
* sem_ch12.adb (Build_Function_Wrapper): The formals of the |
| 2350 |
wrapper must have the same identifiers as those of the formal |
| 2351 |
subprogram, because calls within the generic may use named |
| 2352 |
associations. |
| 2353 |
|
| 2354 |
2014-10-17 Robert Dewar <[email protected]> |
| 2355 |
|
| 2356 |
* sem_ch3.adb, a-strsea.adb: Minor reformatting. |
| 2357 |
* par-ch6.adb (P_Subprogram): Fix bad handling of null procedures. |
| 2358 |
|
| 2359 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2360 |
|
| 2361 |
* sem_ch3.adb (Build_Derived_Enumeration_Type): Propagate aspect |
| 2362 |
specfications from original type declaration to declaration of |
| 2363 |
implicit base, because original node is rewritten as a subtype |
| 2364 |
declaration on which type aspects do not belong. |
| 2365 |
|
| 2366 |
2014-10-17 Hristian Kirtchev <[email protected]> |
| 2367 |
|
| 2368 |
* sem_ch3.adb (Propagate_Default_Init_Cond_Attributes): A derived type |
| 2369 |
inherits the attributes related to pragma Default_Initial_Condition |
| 2370 |
from its parent type. |
| 2371 |
|
| 2372 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2373 |
|
| 2374 |
* a-strsea.adb (Index - versions with a From parameter): |
| 2375 |
According to AI05-056, the Index functions with a From parameter |
| 2376 |
return 0 if the source is an empty string. |
| 2377 |
|
| 2378 |
2014-10-17 Hristian Kirtchev <[email protected]> |
| 2379 |
|
| 2380 |
* sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Disable |
| 2381 |
the consistency checks in ASIS mode. |
| 2382 |
|
| 2383 |
2014-10-17 Arnaud Charlet <[email protected]> |
| 2384 |
|
| 2385 |
* s-expmod.ads: Minor typo fix. |
| 2386 |
|
| 2387 |
2014-10-17 Robert Dewar <[email protected]> |
| 2388 |
|
| 2389 |
* sem_util.adb: Minor reformatting. |
| 2390 |
|
| 2391 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2392 |
|
| 2393 |
* sem_ch12.adb (Build_Function_Wrapper): Build wrappers for |
| 2394 |
actuals that are defaulted subprograms of the formal subprogram |
| 2395 |
declaration. |
| 2396 |
|
| 2397 |
2014-10-17 Robert Dewar <[email protected]> |
| 2398 |
|
| 2399 |
* exp_ch4.adb (Expand_N_Op_Eq): Make sure we deal with the |
| 2400 |
implementation base type. |
| 2401 |
* sinfo.ads: Add a note for N_Op_Eq and N_Op_Ne that record |
| 2402 |
operands are always expanded out into component comparisons. |
| 2403 |
|
| 2404 |
2014-10-17 Robert Dewar <[email protected]> |
| 2405 |
|
| 2406 |
* s-vallli.adb: Minor comment correction. |
| 2407 |
* s-valuti.ads: Minor comment reformatting. |
| 2408 |
|
| 2409 |
2014-10-17 Robert Dewar <[email protected]> |
| 2410 |
|
| 2411 |
* gnat_rm.texi: Document System.Atomic_Counters. |
| 2412 |
* impunit.adb: Add System.Atomic_Counters (s-atocou.ads) to the |
| 2413 |
list of user- accessible units added as children of System. |
| 2414 |
* s-atocou.ads: Update comment. |
| 2415 |
|
| 2416 |
2014-10-17 Arnaud Charlet <[email protected]> |
| 2417 |
|
| 2418 |
* s-expmod.ads: Add comments. |
| 2419 |
|
| 2420 |
2014-10-17 Hristian Kirtchev <[email protected]> |
| 2421 |
|
| 2422 |
* sem_ch3.adb (Build_Derived_Record_Type): Remove the propagation |
| 2423 |
of all attributes related to pragma Default_Initial_Condition. |
| 2424 |
(Build_Derived_Type): Propagation of all attributes related |
| 2425 |
to pragma Default_Initial_Condition. |
| 2426 |
(Process_Full_View): Account for the case where the full view derives |
| 2427 |
from another private type and propagate the attributes related |
| 2428 |
to pragma Default_Initial_Condition to the private view. |
| 2429 |
(Propagate_Default_Init_Cond_Attributes): New routine. |
| 2430 |
* sem_util.adb: Alphabetize various routines. |
| 2431 |
(Build_Default_Init_Cond_Call): Use an unchecked type conversion |
| 2432 |
when calling the default initial condition procedure of a private type. |
| 2433 |
(Build_Default_Init_Cond_Procedure_Declaration): Prevent |
| 2434 |
the generation of multiple default initial condition procedures. |
| 2435 |
|
| 2436 |
2014-10-17 Robert Dewar <[email protected]> |
| 2437 |
|
| 2438 |
* prj-conf.adb: Revert previous change. |
| 2439 |
|
| 2440 |
2014-10-17 Robert Dewar <[email protected]> |
| 2441 |
|
| 2442 |
* lib-writ.ads, s-valdec.ads: Minor reformatting. |
| 2443 |
|
| 2444 |
2014-10-17 Ed Schonberg <[email protected]> |
| 2445 |
|
| 2446 |
* sem_ch12.adb: Additional work on function wrappers. |
| 2447 |
|
| 2448 |
2014-10-17 Eric Botcazou <[email protected]> |
| 2449 |
|
| 2450 |
* exp_util.adb (Possible_Bit_Aligned_Component): Also recurse |
| 2451 |
on the renamed object of renamings. |
| 2452 |
|
| 2453 |
2014-10-17 Vincent Celier <[email protected]> |
| 2454 |
|
| 2455 |
* prj-conf.adb (Parse_Project_And_Apply_Config): In CodePeer |
| 2456 |
mode, always use the native target. |
| 2457 |
|
| 2458 |
2014-10-16 Andrew MacLeod <[email protected]> |
| 2459 |
|
| 2460 |
* gcc-interface/misc.c: Adjust include files. |
| 2461 |
|
| 2462 |
2014-10-13 Eric Botcazou <[email protected]> |
| 2463 |
Alan Modra <[email protected]> |
| 2464 |
|
| 2465 |
PR ada/63225 |
| 2466 |
* uintp.adb (Vector_To_Uint): Move from here to... |
| 2467 |
* uintp.ads (UI_Vector): Make public. |
| 2468 |
(Vector_To_Uint): ...here. |
| 2469 |
|
| 2470 |
2014-10-10 Robert Dewar <[email protected]> |
| 2471 |
|
| 2472 |
* freeze.adb, sem_attr.adb: Minor reformatting. |
| 2473 |
|
| 2474 |
2014-10-10 Johannes Kanig <[email protected]> |
| 2475 |
|
| 2476 |
* a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads, |
| 2477 |
a-cforse.ads, a-cofove.ads: add "Default_Initial_Condition" |
| 2478 |
to container type. |
| 2479 |
|
| 2480 |
2014-10-10 Vincent Celier <[email protected]> |
| 2481 |
|
| 2482 |
* prj-conf.adb (Do_Autoconf): In Codepeer mode, do not try to get |
| 2483 |
any configuration switches from the project file. |
| 2484 |
|
| 2485 |
2014-10-10 Ed Schonberg <[email protected]> |
| 2486 |
|
| 2487 |
* sem_ch12.adb (Build_Wrapper): Renamed as Build_Operator_Wrapper. |
| 2488 |
(Build_Function_Wrapper): New function, to construct a wrapper |
| 2489 |
function for actuals that are functions with an arbitrary |
| 2490 |
number of parameters. Used in GNATProve mode to simplify proof |
| 2491 |
propagation in instantiations. |
| 2492 |
|
| 2493 |
2014-10-10 Robert Dewar <[email protected]> |
| 2494 |
|
| 2495 |
* freeze.adb, gnat1drv.adb, sem_ch13.adb: Minor reformatting and |
| 2496 |
code clean up. |
| 2497 |
|
| 2498 |
2014-10-10 Hristian Kirtchev <[email protected]> |
| 2499 |
|
| 2500 |
* sem_res.adb (Is_OK_Volatile_Context): Allow |
| 2501 |
a volatile object reference to appear as the expression of a |
| 2502 |
type conversion. |
| 2503 |
|
| 2504 |
2014-10-10 Ed Schonberg <[email protected]> |
| 2505 |
|
| 2506 |
* sem_ch13.adb (Analyze_Aspect_Specifications, Library_Unit_Aspects): |
| 2507 |
Aspect specification is legal on a local instantiation of a |
| 2508 |
library-level generic unit. |
| 2509 |
|
| 2510 |
2014-10-10 Gary Dismukes <[email protected]> |
| 2511 |
|
| 2512 |
* gnat1drv.adb (Adjust_Global_Switches): Set Front_End_Inlining |
| 2513 |
if inlining has been enabled via -gnatn and the target is not GCC. |
| 2514 |
|
| 2515 |
2014-10-10 Ed Schonberg <[email protected]> |
| 2516 |
|
| 2517 |
* freeze.adb (Freeze_Entity): Freezing a subprogram does |
| 2518 |
not always freeze its profile. In particular, an attribute |
| 2519 |
reference that takes the access type does not freeze the types |
| 2520 |
of the formals. |
| 2521 |
|
| 2522 |
2014-10-10 Robert Dewar <[email protected]> |
| 2523 |
|
| 2524 |
* errout.adb (Adjust_Name_Case): New procedure. |
| 2525 |
(Set_Msg_Node): Use Adjust_Name_Case. |
| 2526 |
* errout.ads (Adjust_Name_Case): New procedure. |
| 2527 |
* exp_intr.adb (Add_Source_Info): Minor code reorganization |
| 2528 |
(use Ekind_In). |
| 2529 |
(Write_Entity_Name): Use Errout.Adjust_Name_Case. |
| 2530 |
* sem_prag.adb (Is_Non_Significant_Pragma_Reference): Review |
| 2531 |
and fix up entries in Sig_Flags, and correct logical errors in |
| 2532 |
function itself. |
| 2533 |
* sprint.adb (Sprint_Node_Actual): Properly print string for |
| 2534 |
raise statement. |
| 2535 |
|
| 2536 |
2014-10-10 Ed Schonberg <[email protected]> |
| 2537 |
|
| 2538 |
* sem_ch3.adb (Analyze_Object_Declaration): For an object of an |
| 2539 |
anonymous array type with delayed aspects, defer freezing of |
| 2540 |
type until object itself is frozen. |
| 2541 |
* freeze.adb (Freeze_Entity): When freezing an object of an |
| 2542 |
anonymous array type with delayed aspects, remove freeze node of |
| 2543 |
object after freezing type, to prevent out-of-order elaboration |
| 2544 |
in the back-end. The initialization call for the object has |
| 2545 |
already been constructed when expanding the object declaration. |
| 2546 |
|
| 2547 |
2014-10-10 Robert Dewar <[email protected]> |
| 2548 |
|
| 2549 |
* exp_intr.adb (Write_Entity_Name): Moved to outer level |
| 2550 |
(Write_Entity_Name): Properly handle operator names |
| 2551 |
(Expand_Source_Info): New procedure. |
| 2552 |
* exp_intr.ads (Add_Source_Info): New procedure. |
| 2553 |
|
| 2554 |
2014-10-10 Robert Dewar <[email protected]> |
| 2555 |
|
| 2556 |
* butil.ads: Minor reformatting. |
| 2557 |
* sem_ch5.adb: Code clean up. |
| 2558 |
|
| 2559 |
2014-10-10 Robert Dewar <[email protected]> |
| 2560 |
|
| 2561 |
* exp_ch11.adb (Expand_N_Raise_Statement): Handle |
| 2562 |
Prefix_Exception_Messages. |
| 2563 |
* opt.adb: Handle new flags Prefix_Exception_Message[_Config]. |
| 2564 |
* opt.ads: New flags Prefix_Exception_Message[_Config]. |
| 2565 |
* par-prag.adb: New dummy entry for pragma Prefix_Exception_Messages. |
| 2566 |
* snames.ads-tmpl: Add entries for new pragma Prefix_Exception_Messages. |
| 2567 |
* sem_prag.adb: Implement new pragma Prefix_Exception_Messages |
| 2568 |
* gnat_rm.texi: Document pragma Prefix_Exception_Messages. |
| 2569 |
|
| 2570 |
2014-10-10 Gary Dismukes <[email protected]> |
| 2571 |
|
| 2572 |
* sinfo.ads, gnat_ugn.texi, a-except.adb, a-except-2005.adb, |
| 2573 |
raise-gcc.c Spelling changes (prolog => prologue, epilog => epilogue). |
| 2574 |
|
| 2575 |
2014-10-10 Ed Schonberg <[email protected]> |
| 2576 |
|
| 2577 |
* sem_ch5.adb (Is_Wrapped_In_Block): Handle properly blocks that |
| 2578 |
contain pragmas generated for loop invariants and type predicates. |
| 2579 |
Clarify use of this subprogram. |
| 2580 |
|
| 2581 |
2014-10-10 Yannick Moy <[email protected]> |
| 2582 |
|
| 2583 |
* sem_prag.adb (Analyze_Global_Item): Accept formal objects in Global |
| 2584 |
contracts. |
| 2585 |
* errout.adb, errout.ads (SPARK_Msg_NE): Issue error unless |
| 2586 |
SPARK_Mode is Off. |
| 2587 |
|
| 2588 |
2014-10-10 Vadim Godunko <[email protected]> |
| 2589 |
|
| 2590 |
* a-stwima.adb (To_Sequence): Compute size of result array. |
| 2591 |
|
| 2592 |
2014-10-10 Javier Miranda <[email protected]> |
| 2593 |
|
| 2594 |
* gnat_ugn.texi (Interfacing with C++ at the Class Level): Update the |
| 2595 |
sources of the example to avoid a warning when the Ada files are |
| 2596 |
automatically generated by the binding generator. |
| 2597 |
|
| 2598 |
2014-10-10 Ed Schonberg <[email protected]> |
| 2599 |
|
| 2600 |
* sem_attr.adb (Resolve_Attribute, case 'Update): Set |
| 2601 |
Do_Range_Check on the expression of a record component |
| 2602 |
association when needed, as is done for array components, when |
| 2603 |
the corresponding type is a scalar type. |
| 2604 |
|
| 2605 |
2014-10-10 Gary Dismukes <[email protected]> |
| 2606 |
|
| 2607 |
* a-coinho-shared.adb: Minor typo fix. |
| 2608 |
* prj-env.ads: Minor reformatting. |
| 2609 |
|
| 2610 |
2014-10-10 Hristian Kirtchev <[email protected]> |
| 2611 |
|
| 2612 |
* sem_res.adb (Resolve_String_Literal): Do not |
| 2613 |
generate a string literal subtype for the default expression of |
| 2614 |
a formal parameter in GNATprove mode. |
| 2615 |
|
| 2616 |
2014-10-10 Yannick Moy <[email protected]> |
| 2617 |
|
| 2618 |
* errout.adb (SPARK_Msg_N): Issue error unless SPARK_Mode is Off. |
| 2619 |
|
| 2620 |
2014-10-10 Ed Schonberg <[email protected]> |
| 2621 |
|
| 2622 |
* exp_ch5.adb (Expand_Formal_Container_Element_Loop): Analyze |
| 2623 |
declaration for loop parameter before rest of loop, and set |
| 2624 |
entity kind to prevent assignments to it in the user code. |
| 2625 |
* sem_ch3.adb (Analyze_Object_Contract): No contracts apply to the |
| 2626 |
loop parameter in an element iteration over o formal container. |
| 2627 |
|
| 2628 |
2014-10-10 Robert Dewar <[email protected]> |
| 2629 |
|
| 2630 |
* gnat_ugn.texi: Document use of user-level routines to handle |
| 2631 |
e.g. col major arrays. |
| 2632 |
|
| 2633 |
2014-10-10 Doug Rupp <[email protected]> |
| 2634 |
|
| 2635 |
* s-osinte-android.adb: Fix misspelling. |
| 2636 |
* gsocket.h: Tweak the Android quirks. |
| 2637 |
|
| 2638 |
2014-10-10 Robert Dewar <[email protected]> |
| 2639 |
|
| 2640 |
* errout.ads (SPARK_Msg_N): Fix spec to match change in body. |
| 2641 |
|
| 2642 |
2014-10-10 Robert Dewar <[email protected]> |
| 2643 |
|
| 2644 |
* sem_ch13.adb: Minor code reorganization. |
| 2645 |
|
| 2646 |
2014-10-10 Pat Rogers <[email protected]> |
| 2647 |
|
| 2648 |
* gnat_rm.texi: Text now indicates pragma No_Run_Time is not |
| 2649 |
for users. |
| 2650 |
|
| 2651 |
2014-10-10 Vadim Godunko <[email protected]> |
| 2652 |
|
| 2653 |
* a-coinho-shared.adb: Add minor comment. |
| 2654 |
* a-stzmap.adb (To_Sequence): Compute size of result array. |
| 2655 |
|
| 2656 |
2014-10-10 Javier Miranda <[email protected]> |
| 2657 |
|
| 2658 |
* exp_ch3.adb (Build_Init_Procedure): Complete the condition of an |
| 2659 |
if-stmt to match its current documentation. |
| 2660 |
|
| 2661 |
2014-10-10 Robert Dewar <[email protected]> |
| 2662 |
|
| 2663 |
* sem_ch7.adb, einfo.adb, einfo.ads, sem_prag.adb, sem_ch12.adb, |
| 2664 |
freeze.adb, sem_util.adb, sem_res.adb, exp_ch6.adb, exp_ch13.adb, |
| 2665 |
sem_ch6.adb, sem_cat.adb, sem_disp.adb |
| 2666 |
(Is_Subprogram_Or_Generic_Subprogram): New primitive. Use this primitive |
| 2667 |
throughout where appropriate. |
| 2668 |
|
| 2669 |
2014-10-10 Bob Duff <[email protected]> |
| 2670 |
|
| 2671 |
* a-coinho-shared.ads: Minor reformatting. |
| 2672 |
* s-traceb.adb: Minor clean up. |
| 2673 |
|
| 2674 |
2014-10-10 Robert Dewar <[email protected]> |
| 2675 |
|
| 2676 |
* ali.adb (Scan_ALI): Read and process new GP flag on ALI P line. |
| 2677 |
* ali.ads (GNATprove_Mode): New component in ALI table. |
| 2678 |
(GNATprove_Mode_Specified): New global. |
| 2679 |
* gnatbind.adb (Gnatbind): Give fatal error if any file compiled |
| 2680 |
in GNATProve mode. |
| 2681 |
* lib-writ.ads, lib-writ.adb (GP): New flag on P line for |
| 2682 |
GNATProve_Mode. |
| 2683 |
|
| 2684 |
2014-10-10 Javier Miranda <[email protected]> |
| 2685 |
|
| 2686 |
* exp_ch3.adb (Build_Init_Procedure): Adding assertion. |
| 2687 |
(Build_Init_Statement): Ensure that statements |
| 2688 |
associated with the parent components are located at the beginning |
| 2689 |
of the returned list of statements. |
| 2690 |
|
| 2691 |
2014-10-10 Ed Schonberg <[email protected]> |
| 2692 |
|
| 2693 |
* sem_ch13.adb (Inherit_Aspects_At_Freeze_Node): If the full |
| 2694 |
view of a private type T that has a type invariant is a scalar |
| 2695 |
or constrained array type, the base type created for the full |
| 2696 |
view has the same type invariant. |
| 2697 |
|
| 2698 |
2014-10-10 Robert Dewar <[email protected]> |
| 2699 |
|
| 2700 |
* exp_util.ads, sem_ch12.adb, exp_util.adb, i-fortra.ads: Minor code |
| 2701 |
reorganization. |
| 2702 |
|
| 2703 |
2014-09-22 Eric Botcazou <[email protected]> |
| 2704 |
|
| 2705 |
* gcc-interface/decl.c (gnat_to_gnu_entity): Adjust comment. |
| 2706 |
* gcc-interface/utils.c (gnat_write_global_declarations): Fix typo. |
| 2707 |
|
| 2708 |
2014-09-15 Jakub Jelinek <[email protected]> |
| 2709 |
|
| 2710 |
* gcc-interface/Make-lang.in (check_acats_numbers0, |
| 2711 |
check_acats_numbers1, check_acats_numbers2, check_acats_numbers3, |
| 2712 |
check_acats_numbers4, check_acats_numbers5, check_acats_numbers6, |
| 2713 |
check_acats_numbers, check_acats_subdirs): New variables. |
| 2714 |
(check_acats_targets): Use $(check_acats_subdirs). |
| 2715 |
(check-acats, check-acats%): Rewritten so that for parallelized |
| 2716 |
testing each job runs all the chapters files, with |
| 2717 |
GCC_RUNTEST_PARALLELIZE_DIR set in environment. Prepare the support |
| 2718 |
directory sequentially and share it. |
| 2719 |
(check-acats-subtargets): Always print just check-acats. |
| 2720 |
|
| 2721 |
2014-08-25 Martin Liska <[email protected]> |
| 2722 |
|
| 2723 |
* gcc-interface/utils.c (rest_of_subprog_body_compilation): Adjust to |
| 2724 |
new cgraph interface. |
| 2725 |
(gnat_write_global_declarations): Likewise. |
| 2726 |
|
| 2727 |
2014-08-13 Sylvestre Ledru <[email protected]> |
| 2728 |
|
| 2729 |
* 9drpc.adb: Fix a typo |
| 2730 |
* s-interr.ads: Likewise |
| 2731 |
* s-taskin.ads: Likewise |
| 2732 |
* s-traces.ads: Likewise |
| 2733 |
* sysdep.c: Likewise |
| 2734 |
|
| 2735 |
2014-08-12 Joel Sherrill <[email protected]> |
| 2736 |
|
| 2737 |
* socket.c: For RTEMS, use correct prototype of gethostbyname_r(). |
| 2738 |
* gsocket.h Add include of <unistd.h> on RTEMS. |
| 2739 |
|
| 2740 |
2014-08-11 Joel Sherrill <[email protected]> |
| 2741 |
|
| 2742 |
* s-osinte-rtems.adb: Correct formatting of line in license block. |
| 2743 |
|
| 2744 |
2014-08-04 Claire Dross <[email protected]> |
| 2745 |
|
| 2746 |
* exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity): |
| 2747 |
For an instance, look at the scope before the generic parent. |
| 2748 |
|
| 2749 |
2014-08-04 Yannick Moy <[email protected]> |
| 2750 |
|
| 2751 |
* lib-writ.ads: Update comments. |
| 2752 |
* sem_disp.ads, sem_disp.adb (Inherited_Subprograms): Add |
| 2753 |
parameters to filter inherited subprograms. |
| 2754 |
|
| 2755 |
2014-08-04 Robert Dewar <[email protected]> |
| 2756 |
|
| 2757 |
* gnat_rm.texi: Add section on use of address clause for memory |
| 2758 |
mapped I/O. |
| 2759 |
|
| 2760 |
2014-08-04 Ed Schonberg <[email protected]> |
| 2761 |
|
| 2762 |
* sem_ch3.adb (Analyze_Subtype_Declaration): A subtype, in |
| 2763 |
particular the subtype created for a generic actual, inherits |
| 2764 |
invariant information from the base type. |
| 2765 |
|
| 2766 |
2014-08-04 Robert Dewar <[email protected]> |
| 2767 |
|
| 2768 |
* aspects.ads, aspects.adb: Add entries for aspect Obsolescent. |
| 2769 |
* gnat_rm.texi: Add documentation for aspect Obsolescent. |
| 2770 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Implement aspect |
| 2771 |
Obsolescent. |
| 2772 |
(Check_Aspect_At_Freeze_Point): Add dummy entry for pragma Obsolescent. |
| 2773 |
* s-osprim-mingw.adb: Minor reformatting. |
| 2774 |
* sem_res.adb (Is_Atomic_Ref_With_Address): New function |
| 2775 |
(Resolve_Indexed_Component): Rework warnings for non-atomic access |
| 2776 |
(Resolve_Selected_Component): Add warnings for non-atomic access. |
| 2777 |
|
| 2778 |
2014-08-04 Doug Rupp <[email protected]> |
| 2779 |
|
| 2780 |
* g-calend.adb (timeval_to_duration, duration_to_timeval): Change sec |
| 2781 |
formal to long_long. |
| 2782 |
* g-calend.ads (timeval): Bump up size to accomodate sec type. |
| 2783 |
* s-taprop-linux.adb (timeval_to_duration): Change sec formal to |
| 2784 |
long_long |
| 2785 |
* s-osprim-posix.adb (timeval): Bump up size to accomodate |
| 2786 |
new sec type. |
| 2787 |
(timeval_to_duration): Change sec formal to Long_Long_Integer |
| 2788 |
* s-osinte-darwin.adb (timeval): Bump up |
| 2789 |
size to accomodate new sec type. |
| 2790 |
(timeval_to_duration): Change sec formal to long_long |
| 2791 |
* s-osinte-android.adb: Likewise. |
| 2792 |
* cal.c (__gnat_timeal_to_duration, __gnat_duration_to_timeval): Change |
| 2793 |
sec formal from long to long long. |
| 2794 |
|
| 2795 |
2014-08-04 Robert Dewar <[email protected]> |
| 2796 |
|
| 2797 |
* sem_res.adb (Resolve_Qualified_Expression): Make sure |
| 2798 |
Do_Range_Check flag gets set. |
| 2799 |
|
| 2800 |
2014-08-04 Robert Dewar <[email protected]> |
| 2801 |
|
| 2802 |
* einfo.ads, einfo.adb (Is_Standard_String_Type): New function. |
| 2803 |
* exp_ch3.adb (Build_Array_Init_Proc): Use |
| 2804 |
Is_Standard_String_Type. |
| 2805 |
(Expand_Freeze_Array_Type): ditto. |
| 2806 |
(Get_Simple_Init_Val): ditto. |
| 2807 |
(Needs_Simple_Initialization): ditto. |
| 2808 |
* sem_eval.adb (Eval_String_Literal): Use Is_Standard_String_Type. |
| 2809 |
* sem_warn.adb (Is_Suspicious_Type): Use Is_Standard_String_Type. |
| 2810 |
|
| 2811 |
2014-08-04 Pascal Obry <[email protected]> |
| 2812 |
|
| 2813 |
* adaint.c (__gnat_try_lock): Use _tcscpy and _tcscat instead of |
| 2814 |
_stprintf which insert garbage into the wfull_path buffer. |
| 2815 |
|
| 2816 |
2014-08-04 Arnaud Charlet <[email protected]> |
| 2817 |
|
| 2818 |
* cal.c: Remove old VMS/nucleus code. Remove obsolete vxworks |
| 2819 |
code. |
| 2820 |
* fe.h: Minor reformatting. |
| 2821 |
|
| 2822 |
2014-08-04 Rainer Orth <[email protected]> |
| 2823 |
|
| 2824 |
* cstreams.c: (_LARGEFILE_SOURCE): Guard definition. |
| 2825 |
|
| 2826 |
2014-08-04 Robert Dewar <[email protected]> |
| 2827 |
|
| 2828 |
* par-ch13.adb (Get_Aspect_Specifications): Improve error |
| 2829 |
recovery, fixing a -gnatQ bomb. |
| 2830 |
|
| 2831 |
2014-08-04 Yannick Moy <[email protected]> |
| 2832 |
|
| 2833 |
* sem_ch3.adb (Analyze_Object_Declaration): In GNATprove mode, |
| 2834 |
do not generate two Itypes with the same name for an array |
| 2835 |
definition. |
| 2836 |
* sinfo.ads: Expand doc on GNATprove mode. |
| 2837 |
|
| 2838 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 2839 |
|
| 2840 |
* exp_ch3.adb (Expand_Freeze_Record_Type): Set the finalization |
| 2841 |
master and storage pool attributes on the root type of an |
| 2842 |
anonymous access type. |
| 2843 |
* exp_ch4.adb (Expand_N_Allocator): Set the finalization master |
| 2844 |
and storage pool attributes on the root type of an anonymous |
| 2845 |
access type. |
| 2846 |
|
| 2847 |
2014-08-04 Arnaud Charlet <[email protected]> |
| 2848 |
|
| 2849 |
* exp_ch3.adb: Minor reformatting. |
| 2850 |
* tb-alvms.c, tb-alvxw.c, tb-ivms.c: Removed. |
| 2851 |
* tracebak.c: Remove use of above files. |
| 2852 |
* gcc-interface/Makefile.in: Update dependencies. |
| 2853 |
|
| 2854 |
2014-08-04 Pierre-Marie Derodat <[email protected]> |
| 2855 |
|
| 2856 |
* gcc-interface/utils.c (gnat_set_type_context): Also set the |
| 2857 |
context for parallel types' TYPE_STUB_DECL. Do not change |
| 2858 |
anything if the context is already set for them. |
| 2859 |
(gnat_pushdecl): Update the comment for calls to |
| 2860 |
gnat_set_type_context to mention parallel types. |
| 2861 |
(add_parallel_type): When adding a context-less parallel type to |
| 2862 |
a type that has a context, propagate the context from the latter |
| 2863 |
type to the former. |
| 2864 |
(process_deferred_decl_context): Call gnat_set_type_context |
| 2865 |
rather than manually setting the type context. |
| 2866 |
(build_unc_object_type): Call gnat_set_type_context on the |
| 2867 |
template type. |
| 2868 |
|
| 2869 |
2014-08-04 Ed Schonberg <[email protected]> |
| 2870 |
|
| 2871 |
* exp_ch5.adb (Expand_N_Case_Statement): If a choice is a |
| 2872 |
subtype indication and the case statement has only two choices, |
| 2873 |
replace subtype indication with its range, because the resulting |
| 2874 |
membership test cannot have a subtype indication as an operand. |
| 2875 |
|
| 2876 |
2014-08-04 Arnaud Charlet <[email protected]> |
| 2877 |
|
| 2878 |
* exp_ch3.adb: Update comments, minor reformatting. |
| 2879 |
|
| 2880 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 2881 |
|
| 2882 |
* sem_ch3.adb (Analyze_Declarations): Explain why the bodies of |
| 2883 |
the default initial condition procedures are build here. |
| 2884 |
* sem_util.adb (Build_Default_Init_Cond_Procedure): Wrap the |
| 2885 |
analyzed argument of pragma Default_Initial_Condition in some |
| 2886 |
dummy code as GNATprove mode disables assertions, but still |
| 2887 |
needs to see the argument. |
| 2888 |
|
| 2889 |
2014-08-04 Robert Dewar <[email protected]> |
| 2890 |
|
| 2891 |
* exp_ch6.adb, sem_util.adb: Minor reformatting. |
| 2892 |
|
| 2893 |
2014-08-04 Olivier Hainque <[email protected]> |
| 2894 |
|
| 2895 |
* a-comutr.ads: Set Root_Node_Type'Alignment to |
| 2896 |
Standard'Maximum_Alignment, so that it is at least as large as |
| 2897 |
the max default for Tree_Node_Type'Alignment. |
| 2898 |
|
| 2899 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 2900 |
|
| 2901 |
* exp_ch3.adb (Freeze_Type): Remove the generation and inheritance |
| 2902 |
of the default initial condition procedure [body]. |
| 2903 |
* sem_ch3.adb (Analyze_Declarations): Create the bodies of |
| 2904 |
all default initial condition procedures at the end of private |
| 2905 |
declaration analysis. |
| 2906 |
* sem_util.adb (Build_Default_Init_Cond_Procedure_Bodies): New |
| 2907 |
routine. |
| 2908 |
(Build_Default_Init_Cond_Procedure_Body): Merged in the |
| 2909 |
processing of routine Build_Default_Init_Cond_Procedure_Bodies. |
| 2910 |
* sem_util.ads (Build_Default_Init_Cond_Procedure_Bodies): |
| 2911 |
New routine. |
| 2912 |
(Build_Default_Init_Cond_Procedure_Body): Removed. |
| 2913 |
|
| 2914 |
2014-08-04 Ed Schonberg <[email protected]> |
| 2915 |
|
| 2916 |
* sem_elab.adb (Check_Elab_Call): Do not check a call to a |
| 2917 |
postcondtion. |
| 2918 |
* exp_ch6.adb (Expand_Call): Clarify handling of inserted |
| 2919 |
postcondition call. |
| 2920 |
|
| 2921 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 2922 |
|
| 2923 |
* sem_prag.adb (Analyze_Pragma): Ensure that an |
| 2924 |
internally generated spec for a stand alone body is recognized |
| 2925 |
as a proper context for pragma SPARK_Mode. |
| 2926 |
|
| 2927 |
2014-08-04 Robert Dewar <[email protected]> |
| 2928 |
|
| 2929 |
* erroutc.adb (Delete_Msg): Do not decrement Warnings_Treated_As_Errors. |
| 2930 |
|
| 2931 |
2014-08-04 Arnaud Charlet <[email protected]> |
| 2932 |
|
| 2933 |
* adabkend.adb (Scan_Back_End_Switches): Ignore extra -o |
| 2934 |
when -gnatO has already been specified, for compatibility |
| 2935 |
with gcc driver. |
| 2936 |
(Scan_Compiler_Args): Do not call Set_Output_Object_File_Name in |
| 2937 |
codepeer mode. |
| 2938 |
* g-expect.ads: Fix typo. |
| 2939 |
|
| 2940 |
2014-08-04 Thomas Quinot <[email protected]> |
| 2941 |
|
| 2942 |
* exp_ch4.adb (Insert_Dereference_Action): the actual Size |
| 2943 |
must account for the bounds template if the designated type is |
| 2944 |
an unconstrained array. |
| 2945 |
|
| 2946 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 2947 |
|
| 2948 |
* a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb Add |
| 2949 |
SPARK_Mode in the body. |
| 2950 |
* sem_ch7.adb (Analyze_Package_Body_Helper): Restore the original |
| 2951 |
way to verify the consistency of SPARK_Mode between a spec and |
| 2952 |
a body. |
| 2953 |
* sem_ch12.adb (Analyze_Package_Instantiation): Remove the call |
| 2954 |
to Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode |
| 2955 |
manually. |
| 2956 |
(Analyze_Subprogram_Instantiation): Remove the call to |
| 2957 |
Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode |
| 2958 |
manually. |
| 2959 |
* sem_prag.adb (Analyze_Pragma): Remove local variable |
| 2960 |
Inst_Id. SPARK_Mode can no longer be applied to a package or |
| 2961 |
subprogram instantiation. |
| 2962 |
* sem_util.adb, sem_util.ads (Set_Ignore_Pragma_SPARK_Mode): |
| 2963 |
Removed. |
| 2964 |
|
| 2965 |
2014-08-04 Robert Dewar <[email protected]> |
| 2966 |
|
| 2967 |
* sem_prag.adb, osint.adb, osint.ads: Minor reformatting. |
| 2968 |
|
| 2969 |
2014-08-04 Yannick Moy <[email protected]> |
| 2970 |
|
| 2971 |
* sem_ch3.adb (Derive_Type_Declaration, |
| 2972 |
Process_Discriminants): Remove SPARK-specific legality checks. |
| 2973 |
|
| 2974 |
2014-08-04 Thomas Quinot <[email protected]> |
| 2975 |
|
| 2976 |
* g-sechas.ads, g-sechas.adb (HMAC_Initial_Context): New subprogram. |
| 2977 |
* gnat_rm.texi (GNAT.MD5/SHA1/SHA224/SHA256/SHA512): Document support |
| 2978 |
for HMAC. |
| 2979 |
|
| 2980 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 2981 |
|
| 2982 |
* sem_ch7.adb (Analyze_Package_Body_Helper): When verifying the |
| 2983 |
compatibility of SPARK_Mode between a spec and a body, use the |
| 2984 |
SPARK_Mode of the public part. |
| 2985 |
* sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Use |
| 2986 |
the already available routine to exchange the aspects between |
| 2987 |
the template and its copy. Analyze the aspects of copy to |
| 2988 |
ensure that the corresponding pragmas perform their semantic |
| 2989 |
effects. The partial analysis of aspects is no longer needed. |
| 2990 |
(Analyze_Package_Instantiation): Save and restore the SPARK_Mode |
| 2991 |
of the context. |
| 2992 |
(Analyze_Subprogram_Instantiation): Save and restore the SPARK_Mode of |
| 2993 |
the context. |
| 2994 |
* sem_prag.adb (Analyze_Pragma): Do not bypass a subprogram |
| 2995 |
instantiation which does not come from source. |
| 2996 |
|
| 2997 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 2998 |
|
| 2999 |
* a-cfhama.ads, a-cfhase.ads, a-cforma.ads, a-cforse.ads Add |
| 3000 |
SPARK_Mode pragmas to the public and private part of the unit. |
| 3001 |
* sem_ch3.adb (Derive_Type_Declaration): Ensure that a derived |
| 3002 |
type cannot have discriminants if the parent type already has |
| 3003 |
discriminants. |
| 3004 |
(Process_Discriminants): Ensure that the type of a discriminant is |
| 3005 |
discrete. |
| 3006 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): The check on |
| 3007 |
SPARK_Mode compatibility between a spec and a body can now be |
| 3008 |
safely performed while processing a generic. |
| 3009 |
* sem_ch7.adb (Analyze_Package_Body_Helper): The check on |
| 3010 |
SPARK_Mode compatibility between a spec and a body can now be |
| 3011 |
safely performed while processing a generic. |
| 3012 |
* sem_prag.adb (Analyze_Pragma): Pragma SPARK_Mode can now be |
| 3013 |
safely analyzed when processing a generic. |
| 3014 |
|
| 3015 |
2014-08-04 Nicolas Roche <[email protected]> |
| 3016 |
|
| 3017 |
* g-dirope.adb: Minor reformating. |
| 3018 |
|
| 3019 |
2014-08-04 Robert Dewar <[email protected]> |
| 3020 |
|
| 3021 |
* sem_ch6.adb: Minor reformatting. |
| 3022 |
|
| 3023 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3024 |
|
| 3025 |
* sem_prag.adb (Analyze_Pragma, case Assert and related pragmas): |
| 3026 |
Before normalizing these pragmas into a pragma Check, preanalyze |
| 3027 |
the optional Message argument, (which is subsequently copied) |
| 3028 |
so that it has the proper semantic information for ASIS use. |
| 3029 |
* sem_case.adb: Initialize flag earlier. |
| 3030 |
* osint.adb, osint.ads (Find_File): Add parameter Full_Name, used when |
| 3031 |
the full source path of a configuration file is requested. |
| 3032 |
(Read_Source_File): Use Full_Name parameter.. |
| 3033 |
|
| 3034 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 3035 |
|
| 3036 |
* opt.ads Alphabetize various global flags. New flag |
| 3037 |
Ignore_Pragma_SPARK_Mode along with a comment on usage. |
| 3038 |
* sem_ch6.adb (Analyze_Generic_Subprogram_Body): |
| 3039 |
Pragma SPARK_Mode is now allowed in generic units. |
| 3040 |
(Analyze_Subprogram_Body_Helper): Do not verify the compatibility |
| 3041 |
between the SPARK_Mode of a spec and that of a body when inside |
| 3042 |
a generic. |
| 3043 |
* sem_ch7.adb (Analyze_Package_Body_Helper): Do not verify the |
| 3044 |
compatibility between the SPARK_Mode of a spec and that of a |
| 3045 |
body when inside a generic. |
| 3046 |
* sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): |
| 3047 |
Pragma SPARK_Mode is now allowed in generic units. |
| 3048 |
(Analyze_Package_Instantiation): Save and restore the value of |
| 3049 |
flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set |
| 3050 |
the governing SPARK_Mode before analyzing the instance. |
| 3051 |
(Analyze_Subprogram_Instantiation): Save and restore the value |
| 3052 |
of flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set |
| 3053 |
the governing SPARK_Mode before analyzing the instance. |
| 3054 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Emulate the |
| 3055 |
placement of a source pragma when inserting the generated pragma |
| 3056 |
for aspect SPARK_Mode. |
| 3057 |
* sem_prag.adb (Analyze_Pragma): Reimplement the handling of |
| 3058 |
pragma SPARK_Mode to allow for generics and their respective |
| 3059 |
instantiations. |
| 3060 |
* sem_util.ads, sem_util.adb (Check_SPARK_Mode_In_Generic): Removed. |
| 3061 |
(Set_Ignore_Pragma_SPARK_Mode): New routine. |
| 3062 |
|
| 3063 |
2014-08-04 Eric Botcazou <[email protected]> |
| 3064 |
|
| 3065 |
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Component>: Deal with |
| 3066 |
renaming discriminants in tagged types first. |
| 3067 |
* gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Test |
| 3068 |
the underlying type of the prefix. |
| 3069 |
(Pragma_to_gnu, case Pragma_Warning): Ignore Reason => "..." |
| 3070 |
(process_freeze_entity): Reset the nodes of all the view of a type, |
| 3071 |
if any. |
| 3072 |
|
| 3073 |
2014-08-04 Doug Rupp <[email protected]> |
| 3074 |
Olivier Hainque <[email protected]> |
| 3075 |
|
| 3076 |
* gcc-interface/Makefile.in (x86 VxWorks): Add filter-out for vxworks7 |
| 3077 |
and remove incorrect EH_MECHANISM macros. |
| 3078 |
Add sigtramp.h to EXTRA_LIBGNAT_SRCS when we add sigtramp-vxworks.o to |
| 3079 |
EXTRA_LIBGNAT_OBJS. |
| 3080 |
|
| 3081 |
2014-08-04 Robert Dewar <[email protected]> |
| 3082 |
|
| 3083 |
* exp_attr.adb (Expand_N_Attribute_Reference): Make sure prefix |
| 3084 |
of constructed 'Valid attribute in -gnatVa mode does not appear |
| 3085 |
to come from source. |
| 3086 |
* sem_attr.adb (Analyze_Access_Attribute): Don't set |
| 3087 |
Never_Set_In_Source for non-source reference. |
| 3088 |
* sem_util.adb: Minor reformatting. |
| 3089 |
* sem_warn.adb (Check_References): Don't check Address_Taken, |
| 3090 |
not necessary, see comment. |
| 3091 |
|
| 3092 |
2014-08-04 Robert Dewar <[email protected]> |
| 3093 |
|
| 3094 |
* sem_util.adb, sem_case.adb: Minor reformatting. |
| 3095 |
|
| 3096 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3097 |
|
| 3098 |
* exp_ch9.adb (Extract_Entry): If the synchronized object is a |
| 3099 |
limited view, replace with non-limited view, which is available |
| 3100 |
at the point of an entry call. |
| 3101 |
|
| 3102 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3103 |
|
| 3104 |
* exp_ch6.adb (Expand_Call): If the call is to a function in |
| 3105 |
a run-time unit that is marked Inline_Always, we must suppress |
| 3106 |
debugging information on it, so that the code that is eventually |
| 3107 |
inlined will not affect debugging of the user program. |
| 3108 |
|
| 3109 |
2014-08-04 Robert Dewar <[email protected]> |
| 3110 |
|
| 3111 |
* inline.adb, einfo.ads, s-tassta.adb, s-tarest.adb: Minor comment |
| 3112 |
fixes. |
| 3113 |
|
| 3114 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3115 |
|
| 3116 |
* sem_prag.adb (Process_Import_Or_Interface): Handle properly |
| 3117 |
an aspect Import that specifies a False value. |
| 3118 |
|
| 3119 |
2014-08-04 Robert Dewar <[email protected]> |
| 3120 |
|
| 3121 |
* gnat_rm.texi: Add section on aspect Invariant'Class. |
| 3122 |
|
| 3123 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3124 |
|
| 3125 |
* sem_case.adb (Check_Choice_Set): New flag Predicate_Error, |
| 3126 |
for better control of cascaded error messages when some choice |
| 3127 |
in a case statement over a predicated type violates the given |
| 3128 |
static predicate. |
| 3129 |
|
| 3130 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 3131 |
|
| 3132 |
* sem_ch3.adb (Build_Derived_Type): Modify the |
| 3133 |
inheritance of the rep chain to ensure that a non-tagged type's |
| 3134 |
items are not clobbered during the inheritance. |
| 3135 |
|
| 3136 |
2014-08-04 Robert Dewar <[email protected]> |
| 3137 |
|
| 3138 |
* sem_ch3.adb, einfo.ads: Minor reformatting. |
| 3139 |
|
| 3140 |
2014-08-04 Yannick Moy <[email protected]> |
| 3141 |
|
| 3142 |
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Fix |
| 3143 |
detection of subprograms that cannot be inlined in GNATprove mode. |
| 3144 |
|
| 3145 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3146 |
|
| 3147 |
* einfo.adb: Add guard to Returns_Limited_View. |
| 3148 |
|
| 3149 |
2014-08-04 Jose Ruiz <[email protected]> |
| 3150 |
|
| 3151 |
* s-tassta.adb, s-tarest.adb (Task_Wrapper): Force maximum alignment of |
| 3152 |
the secondary stack to respect the alignments of the returned objects. |
| 3153 |
|
| 3154 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3155 |
|
| 3156 |
* einfo.ads, einfo.adb (Returns_Limited_View): New flag defined |
| 3157 |
on function entities whose return type is a limited view. |
| 3158 |
* freeze.adb (Freeze_Entity): Use Returns_Limited_View to determine |
| 3159 |
where to place the freeze node for a function that returns the |
| 3160 |
limited view of a type, when the function is called and frozen |
| 3161 |
in a different unit. |
| 3162 |
|
| 3163 |
2014-08-04 Eric Botcazou <[email protected]> |
| 3164 |
|
| 3165 |
* sem_ch3.adb (Build_Derived_Private_Type): Minor code |
| 3166 |
refactoring. |
| 3167 |
|
| 3168 |
2014-08-04 Robert Dewar <[email protected]> |
| 3169 |
|
| 3170 |
* gnat_ugn.texi: Clarify documentation on assertions. |
| 3171 |
|
| 3172 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3173 |
|
| 3174 |
* sem_aggr.adb (Resolve_Record_Aggregate, Get_Value): Warn |
| 3175 |
if a component association has a box initialization when the |
| 3176 |
component type has no default initialization, either through an |
| 3177 |
initial value, an aspect, or an implicit initialization procedure. |
| 3178 |
|
| 3179 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3180 |
|
| 3181 |
* freeze.adb: Code clean up. |
| 3182 |
|
| 3183 |
2014-08-04 Thomas Quinot <[email protected]> |
| 3184 |
|
| 3185 |
* sem_ch5.adb: Minor reformatting. |
| 3186 |
|
| 3187 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3188 |
|
| 3189 |
* freeze.adb (Late_Freeze_Subprogram): Following AI05-151, |
| 3190 |
a function can return a limited view of a type declared |
| 3191 |
elsewhere. In that case the function cannot be frozen at the end |
| 3192 |
of its enclosing package. If its first use is in a different unit, |
| 3193 |
it cannot be frozen there, but if the call is legal the full view |
| 3194 |
of the return type is available and the subprogram can now be |
| 3195 |
frozen. However the freeze node cannot be inserted at the point |
| 3196 |
of call, but rather must go in the package holding the function, |
| 3197 |
so that the backend can process it in the proper context. |
| 3198 |
|
| 3199 |
2014-08-04 Robert Dewar <[email protected]> |
| 3200 |
|
| 3201 |
* exp_ch5.adb, sem_ch5.adb, einfo.ads: Minor reformatting. |
| 3202 |
|
| 3203 |
2014-08-04 Arnaud Charlet <[email protected]> |
| 3204 |
|
| 3205 |
* sem_ch4.adb (Operator_Check): Refine previous change. |
| 3206 |
|
| 3207 |
2014-08-04 Arnaud Charlet <[email protected]> |
| 3208 |
|
| 3209 |
* sem_scil.ads: Improve comments. |
| 3210 |
* sem_ch4.adb (Analyze_Equality_Op): Add support for |
| 3211 |
Allow_Integer_Address (equality between Address and Integer). |
| 3212 |
|
| 3213 |
2014-08-04 Yannick Moy <[email protected]> |
| 3214 |
|
| 3215 |
* a-cfhama.adb, a-cforse.adb: Minor fixes to avoid using prefix |
| 3216 |
notation on untagged objects. |
| 3217 |
* sem.ads: Update comment. |
| 3218 |
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do |
| 3219 |
not inline subprograms declared in the visible part of a package. |
| 3220 |
|
| 3221 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3222 |
|
| 3223 |
* exp_ch5.adb: minor reformatting. |
| 3224 |
* einfo.ads, einfo.adb (Is_Processed_Transient): Applies to loop |
| 3225 |
parameters. |
| 3226 |
|
| 3227 |
2014-08-04 Thomas Quinot <[email protected]> |
| 3228 |
|
| 3229 |
* s-fatgen.adb: Minor reformatting. |
| 3230 |
|
| 3231 |
2014-08-04 Arnaud Charlet <[email protected]> |
| 3232 |
|
| 3233 |
* exp_util.adb (Is_Possibly_Unaligned_Object): Always return |
| 3234 |
False on .NET. |
| 3235 |
|
| 3236 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3237 |
|
| 3238 |
* sem_ch5.adb (Analyze_Loop_Statement): Set properly the kind of |
| 3239 |
the loop parameter for element iterators over containers and |
| 3240 |
arrays, so that improper uses of it are detected in the loop |
| 3241 |
body when expansion is disabled. |
| 3242 |
* exp_ch5.adb (Expand_Iterator_Loop): The entity kind of the |
| 3243 |
generated cursor is that of the analyzed loop parameter. |
| 3244 |
|
| 3245 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 3246 |
|
| 3247 |
* exp_ch3.adb (Build_CPP_Init_Procedure): Remove |
| 3248 |
Flag_Decl. Do not analyze the declaration of the flag as it is |
| 3249 |
not part of the tree yet, instead add it to the freeze actions |
| 3250 |
of the C++ type. |
| 3251 |
|
| 3252 |
2014-08-04 Robert Dewar <[email protected]> |
| 3253 |
|
| 3254 |
* checks.adb (Apply_Scalar_Range_Check): Make sure we handle |
| 3255 |
case of OUT and IN OUT parameter correctly (where Source_Typ is |
| 3256 |
set), we were missing one case where a check must be applied. |
| 3257 |
|
| 3258 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 3259 |
|
| 3260 |
* sem_ch8.adb (Build_Class_Wide_Wrapper): Update the comment on |
| 3261 |
the generated code. Instead of hiding the renaming and using the |
| 3262 |
wrapper as the proper association, have the subprogram renaming |
| 3263 |
alias the wrapper. |
| 3264 |
(Build_Spec): The entity of the wrapper is |
| 3265 |
now derived from the entity of the related primitive. |
| 3266 |
|
| 3267 |
2014-08-04 Emmanuel Briot <[email protected]> |
| 3268 |
|
| 3269 |
* s-regpat.adb: s-regpat.adb (Parse): fix incorrect link when |
| 3270 |
using non-capturing groups. |
| 3271 |
|
| 3272 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3273 |
|
| 3274 |
* inline.adb (Build_Body_To_Inline): Remove Unmodified and |
| 3275 |
related pragmas before copying the original body, to prevent |
| 3276 |
spurious errors when the pragmas apply to formals that will not |
| 3277 |
appear in the inlined body. |
| 3278 |
|
| 3279 |
2014-08-04 Robert Dewar <[email protected]> |
| 3280 |
|
| 3281 |
* exp_prag.adb, sem_ch7.adb, einfo.adb, sem_prag.adb, sem_util.adb, |
| 3282 |
exp_ch3.adb: Minor reformatting. |
| 3283 |
|
| 3284 |
2014-08-04 Robert Dewar <[email protected]> |
| 3285 |
|
| 3286 |
* prj-strt.adb, prj-strt.ads, sem_attr.adb: Minor reformatting. |
| 3287 |
|
| 3288 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 3289 |
|
| 3290 |
* aspects.adb Add an entry in table Canonical_Aspect for |
| 3291 |
Default_Initial_Condition. |
| 3292 |
* aspects.ads Add an entry in tables Aspect_Id, Aspect_Argument, |
| 3293 |
Aspect_Names and Aspect_Delay for Default_Initial_Condition. |
| 3294 |
* einfo.adb Flag3 is now Has_Default_Init_Cond. Flag132 |
| 3295 |
is now Is_Default_Init_Cond_ Procedure. Flag133 is now |
| 3296 |
Has_Inherited_Default_Init_Cond. |
| 3297 |
(Default_Init_Cond_Procedure): New routine. |
| 3298 |
(Has_Default_Init_Cond): New routine. |
| 3299 |
(Has_Inherited_Default_Init_Cond): New routine. |
| 3300 |
(Is_Default_Init_Cond_Procedure): New routine. |
| 3301 |
(Set_Default_Init_Cond_Procedure): New routine. |
| 3302 |
(Set_Has_Default_Init_Cond): New routine. |
| 3303 |
(Set_Has_Inherited_Default_Init_Cond): New routine. |
| 3304 |
(Set_Is_Default_Init_Cond_Procedure): New routine. |
| 3305 |
(Write_Entity_Flags): Output all the new flags. |
| 3306 |
* einfo.ads New attributes Default_Init_Cond_Procedure, |
| 3307 |
Has_Inherited_Default_Init_Cond and Is_Default_Init_Cond_Procedure |
| 3308 |
along with usage in nodes. |
| 3309 |
(Default_Init_Cond_Procedure): New routine. |
| 3310 |
(Has_Default_Init_Cond): New routine and pragma Inline. |
| 3311 |
(Has_Inherited_Default_Init_Cond): New routine and |
| 3312 |
pragma Inline. |
| 3313 |
(Is_Default_Init_Cond_Procedure): New routine and |
| 3314 |
pragma Inline. |
| 3315 |
(Set_Default_Init_Cond_Procedure): New routine. |
| 3316 |
(Set_Has_Default_Init_Cond): New routine and pragma Inline. |
| 3317 |
(Set_Has_Inherited_Default_Init_Cond): New routine and pragma Inline. |
| 3318 |
(Set_Is_Default_Init_Cond_Procedure): New routine and pragma Inline. |
| 3319 |
* exp_ch3.adb (Expand_N_Object_Declaration): New constant |
| 3320 |
Next_N. Generate a call to the default initial condition procedure |
| 3321 |
if the object's type is subject to the pragma. (Freeze_Type): |
| 3322 |
Generate the body of the default initial condition procedure or |
| 3323 |
inherit the spec from a parent type. |
| 3324 |
* exp_ch7.adb Add with and use clause for Exp_Prag. |
| 3325 |
(Expand_Pragma_Initial_Condition): Removed. |
| 3326 |
* exp_prag.ads, exp_prag.adb (Expand_Pragma_Initial_Condition): New |
| 3327 |
routine. |
| 3328 |
* par-prag.adb (Prag): Pragma Default_Initial_Condition does |
| 3329 |
not need special treatment by the parser. |
| 3330 |
* sem_ch3.adb (Build_Derived_Record_Type): Propagate the |
| 3331 |
attributes related to pragma Default_Initial_Condition to the |
| 3332 |
derived type. |
| 3333 |
(Process_Full_View): Propagate the attributes |
| 3334 |
related to pragma Default_Initial_Condition to the full view. |
| 3335 |
* sem_ch7.adb (Analyze_Package_Specification): Build the |
| 3336 |
declaration of the default initial condition procedure for all |
| 3337 |
types that qualify or inherit the one from the parent type. |
| 3338 |
* sem_ch13.adb (Analyze_Aspect_Specifications): |
| 3339 |
Add processing for aspect Default_Initial_Condition. |
| 3340 |
(Check_Aspect_At_Freeze_Point): Aspect |
| 3341 |
Default_Initial_Condition does not require delayed analysis. |
| 3342 |
(Replace_Type_References_Generic): Moved to spec. |
| 3343 |
* sem_ch13.ads (Replace_Type_References_Generic): Moved from body. |
| 3344 |
* sem_prag.adb Add an entry in table Sif_Glags for |
| 3345 |
Default_Initial_Condition. |
| 3346 |
(Analyze_Pragma): Pragma |
| 3347 |
Default_Initial_Condition is now part of assertion |
| 3348 |
policy. Add processing for pragma Default_Initial_Condition. |
| 3349 |
(Is_Valid_Assertion_Kind): Pragma Default_Initial_Condition is |
| 3350 |
now recognized as a proper assertion policy. |
| 3351 |
* sem_util.ads, sem_util.adb (Build_Default_Init_Cond_Call): New |
| 3352 |
routine. |
| 3353 |
(Build_Default_Init_Cond_Procedure_Body): New routine. |
| 3354 |
(Build_Default_Init_Cond_Procedure_Declaration): New routine. |
| 3355 |
(Inherit_Default_Init_Cond_Procedure): New routine. |
| 3356 |
* snames.ads-tmpl Add new predefined name and pragma id for |
| 3357 |
Default_Initial_Condition. |
| 3358 |
|
| 3359 |
2014-08-04 Vincent Celier <[email protected]> |
| 3360 |
|
| 3361 |
* prj-dect.adb (Parse_Case_Construction): It is no longer |
| 3362 |
an error if the variable for a case construction is not |
| 3363 |
typed, only if the variable value is not a single string. Call |
| 3364 |
Parse_Choice_List and End_Case_Construction with the new parameter |
| 3365 |
to indicate that the variable is typed. |
| 3366 |
* prj-strt.adb (End_Case_Construction): Only check the labels |
| 3367 |
if the variable is typed. If the variable is not typed, |
| 3368 |
issue a warning when there is no "when others" allternative. |
| 3369 |
(Parse_Choice_List): Manage the labels only if the variable |
| 3370 |
is typed. |
| 3371 |
* prj-strt.ads (End_Case_Construction): New Boolean parameter |
| 3372 |
String_Type. |
| 3373 |
(Parse_Choice_List): Ditto. |
| 3374 |
|
| 3375 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3376 |
|
| 3377 |
* sem_ch5.adb: Additional fix to Check_Predicate_Use. |
| 3378 |
|
| 3379 |
2014-08-04 Vincent Celier <[email protected]> |
| 3380 |
|
| 3381 |
* projects.texi: Update documentation of case constructions with |
| 3382 |
variables that are not typed. |
| 3383 |
|
| 3384 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3385 |
|
| 3386 |
* sem_ch8.adb (Build_Class_Wide_Wrapper): If the operator carries |
| 3387 |
an Eliminated pragma, indicate that the wrapper is also to be |
| 3388 |
eliminated, to prevent spurious errors when using gnatelim on |
| 3389 |
programs that include box-initialization of equality operators |
| 3390 |
(consequence of AI05-071).. |
| 3391 |
|
| 3392 |
2014-08-04 Robert Dewar <[email protected]> |
| 3393 |
|
| 3394 |
* checks.adb (Activate_Overflow_Check): Handle floating-point |
| 3395 |
case correctly. |
| 3396 |
* checks.ads (Activate_Overflow_Check): Clarify handling of |
| 3397 |
floating-point cases. |
| 3398 |
* exp_util.adb (Check_Float_Op_Overflow): Reset Do_Overflow_Check |
| 3399 |
flag if we generate an explicit overflow check (for |
| 3400 |
Check_Float_Overflow mode). |
| 3401 |
|
| 3402 |
2014-08-04 Robert Dewar <[email protected]> |
| 3403 |
|
| 3404 |
* prj-proc.adb, prj-part.adb, prj-strt.adb, prj.adb, prj.ads, |
| 3405 |
prj-attr.adb, prj-attr.ads: Minor reformatting. |
| 3406 |
|
| 3407 |
2014-08-04 Yannick Moy <[email protected]> |
| 3408 |
|
| 3409 |
* expander.adb (Expand): Always perform special |
| 3410 |
expansion in GNATprove mode, even when doing pre-analysis. |
| 3411 |
|
| 3412 |
2014-08-04 Thomas Quinot <[email protected]> |
| 3413 |
|
| 3414 |
* repinfo.adb (List_Scalar_Storage_Order): List bit order if |
| 3415 |
not default. Also list bit order if SSO is specified. Do not |
| 3416 |
assume that bit order is always equal to scalar storage order. |
| 3417 |
|
| 3418 |
2014-08-04 Thomas Quinot <[email protected]> |
| 3419 |
|
| 3420 |
* freeze.adb (Set_SSO_From_Default): Do not set scalar storage |
| 3421 |
order to reverse SSO for a type that has an explicit native |
| 3422 |
Bit_Order. |
| 3423 |
|
| 3424 |
2014-08-04 Doug Rupp <[email protected]> |
| 3425 |
|
| 3426 |
* cal.c: Macro check for VxWorks7. |
| 3427 |
* init.c (getpid): Likewise. |
| 3428 |
* mkdir.c (__gnat_mkdir): Likewise. |
| 3429 |
* sysdep.c (__gnat_is_file_not_found_error): Likewise. |
| 3430 |
|
| 3431 |
2014-08-04 Gary Dismukes <[email protected]> |
| 3432 |
|
| 3433 |
* exp_ch3.adb (Expand_N_Object_Declaration): Inhibit generation |
| 3434 |
of an invariant check in the case where No_Initialization is set, |
| 3435 |
since the object is uninitialized. |
| 3436 |
|
| 3437 |
2014-08-04 Thomas Quinot <[email protected]> |
| 3438 |
|
| 3439 |
* snames.ads-tmpl (Default_Scalar_Storage_Order): Now an attribute |
| 3440 |
name, in addition to a pragma name. |
| 3441 |
* snames.adb-tmpl (Get_Pragma_Id, Is_Configuration_Pragma_Name, |
| 3442 |
Is_Pragma_Name): Adjust accordingly. |
| 3443 |
* sem_attr.ads, sem_attr.adb, exp_attr.adb |
| 3444 |
(Attribute_Default_Scalar_Storage_Order): Add handling of new |
| 3445 |
attribute. |
| 3446 |
* gnat_rm.texi: Document the above. |
| 3447 |
|
| 3448 |
2014-08-04 Arnaud Charlet <[email protected]> |
| 3449 |
|
| 3450 |
* exp_util.adb (Check_Float_Op_Overflow): No-op in codepeer |
| 3451 |
mode for now, to revert to previous behavior. |
| 3452 |
* checks.adb: Revert previous change, no longer needed. |
| 3453 |
|
| 3454 |
2014-08-04 Robert Dewar <[email protected]> |
| 3455 |
|
| 3456 |
* gnat1drv.adb (Adjust_Global_Switches): Don't set |
| 3457 |
Check_Float_Overflow if Machine_Oveflows_On_Target is True. |
| 3458 |
* sem_prag.adb (Analyze_Pragma, case Check_Float_Overflow): Don't |
| 3459 |
set Check_Float_Overflow if Machine_Oveflows_On_Target is True. |
| 3460 |
* switch-c.adb (Scan_Front_End_Switches): Don't set |
| 3461 |
Check_Float_Overflow if Machine_Oveflows_On_Target is True. |
| 3462 |
|
| 3463 |
2014-08-04 Vincent Celier <[email protected]> |
| 3464 |
|
| 3465 |
* prj-attr.adb: Add new default indications for |
| 3466 |
attributes Object_Dir, Exec_Dir, Source_Dirs and Target. |
| 3467 |
(Attribute_Default_Of): New function (Initialize): Set the |
| 3468 |
default for those attributes that have one specified. |
| 3469 |
* prj-attr.ads (Attribute_Data): New component Default. |
| 3470 |
* prj-proc.adb (Expression): Take into account the new defaults |
| 3471 |
for attributes Object_Dir, Exec_Dir and Source_Dirs. |
| 3472 |
* prj-strt.adb (Attribute_Reference): Set the default for |
| 3473 |
the attribute. |
| 3474 |
* prj-tree.ads, prj-tree.adb (Default_Of): New function. |
| 3475 |
(Set_Default_Of): New procedure. |
| 3476 |
* prj.adb (The_Dot_String): New global Name_Id variable, |
| 3477 |
initialized in procedure Initialize. |
| 3478 |
(Dot_String): New function |
| 3479 |
(Initialize): Initialize The_Dot_String. |
| 3480 |
(Reset): Create the string list Shared.Dot_String_List. |
| 3481 |
* prj.ads (Attribute_Default_Value): New enumeration type. |
| 3482 |
(Project_Qualifier): Change enumeration value Dry to Abstract_Project. |
| 3483 |
(Dot_String): New function. |
| 3484 |
(Shared_Project_Tree_Data): New string list component Dot_String_List. |
| 3485 |
* projects.texi: Document new defaults for attribute Object_Dir, |
| 3486 |
Exec_Dir and Source_Dirs. |
| 3487 |
|
| 3488 |
2014-08-04 Robert Dewar <[email protected]> |
| 3489 |
|
| 3490 |
* sem_ch12.adb: Minor reformatting. |
| 3491 |
|
| 3492 |
2014-08-04 Arnaud Charlet <[email protected]> |
| 3493 |
|
| 3494 |
* exp_util.adb, checks.adb (Check_Float_Op_Overflow): Add special |
| 3495 |
expansion in CodePeer_Mode. |
| 3496 |
(Selected_Range_Checks): Add handling of overflow checks in |
| 3497 |
CodePeer_Mode. |
| 3498 |
|
| 3499 |
2014-08-04 Robert Dewar <[email protected]> |
| 3500 |
|
| 3501 |
* exp_attr.adb (Expand_N_Attribute_Reference, case Pred): |
| 3502 |
Remove special test for Float'First, no longer required. |
| 3503 |
(Expand_N_Attribute_Reference, case Succ): Remove special test |
| 3504 |
for Float'First, no longer required. |
| 3505 |
* s-fatgen.adb (Pred): return infinity unchanged. |
| 3506 |
(Succ): ditto. |
| 3507 |
|
| 3508 |
2014-08-04 Claire Dross <[email protected]> |
| 3509 |
|
| 3510 |
* sem_ch12.adb (Analyze_Associations): Defaults should only be |
| 3511 |
used if there is no explicit match. |
| 3512 |
* exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity): |
| 3513 |
Also check for pragma external_axiomatization on generic units. |
| 3514 |
|
| 3515 |
2014-08-04 Robert Dewar <[email protected]> |
| 3516 |
|
| 3517 |
* checks.adb (Activate_Overflow_Check): Remove |
| 3518 |
Check_Float_Overflow processing. |
| 3519 |
(Apply_Scalar_Range_Check): Ditto. |
| 3520 |
(Generate_Range_Check): Ditto. |
| 3521 |
* exp_ch4.adb (Expand_N_Op_Add): Add call to |
| 3522 |
Check_Float_Op_Overflow. |
| 3523 |
(Expand_N_Op_Divide): ditto. |
| 3524 |
(Expand_N_Op_Multiply): ditto. |
| 3525 |
(Expand_N_Op_Subtract): ditto. |
| 3526 |
* exp_util.ads, exp_util.adb (Check_Float_Op_Overflow): New procedure. |
| 3527 |
* sem_attr.adb (Analyze_Attribute, case Pred): Make sure |
| 3528 |
Do_Range_Check is set for floating-point case in -gnatc or |
| 3529 |
GNATprove mode. |
| 3530 |
(Analyze_Attribute, case Succ): Make sure |
| 3531 |
Do_Range_Check is set for floating-point case in -gnatc or |
| 3532 |
GNATprove mode. |
| 3533 |
* sem_res.adb (Resolve_Type_Conversion): Make sure Do_Range_Check |
| 3534 |
flag is set for real to integer conversion in GNATprove or |
| 3535 |
-gnatc mode. |
| 3536 |
|
| 3537 |
2014-08-04 Gary Dismukes <[email protected]> |
| 3538 |
|
| 3539 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Resolve |
| 3540 |
the expression of an Import or Export aspect as type Boolean |
| 3541 |
and require it to be static. Add ??? comment. Also, set the |
| 3542 |
Is_Exported flag when appropriate. |
| 3543 |
|
| 3544 |
2014-08-04 Robert Dewar <[email protected]> |
| 3545 |
|
| 3546 |
* exp_ch4.adb: Minor reformatting. |
| 3547 |
* exp_attr.adb: Minor reformatting. |
| 3548 |
|
| 3549 |
2014-08-04 Thomas Quinot <[email protected]> |
| 3550 |
|
| 3551 |
* s-fatgen.ads, s-fatgen.adb (S, P): New visible type declarations |
| 3552 |
(Unaligned_Valid): Remove now unused subprogram. |
| 3553 |
* exp_attr.adb (Expand_N_Attribute_Reference, case |
| 3554 |
Attribute_Valid): If the prefix is in reverse SSO or potentially |
| 3555 |
unaligned, copy it using a byte copy operation to a temporary |
| 3556 |
variable. |
| 3557 |
* einfo.adb: Minor comment fix. |
| 3558 |
|
| 3559 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 3560 |
|
| 3561 |
* freeze.adb (Freeze_Entity): Do not freeze formal subprograms. |
| 3562 |
|
| 3563 |
2014-08-04 Robert Dewar <[email protected]> |
| 3564 |
|
| 3565 |
* s-imgrea.adb (Image_Floating_Point): Don't add space before +Inf. |
| 3566 |
* s-fatgen.adb (Pred): Handle Float'First. |
| 3567 |
(Succ): Handle Float'Last. |
| 3568 |
|
| 3569 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3570 |
|
| 3571 |
* sem_util.adb (Is_Potentially_Unevaluated): If the original |
| 3572 |
node of a parent node in the tree is a short-circuit operation, |
| 3573 |
the node is potentially unevaluated. |
| 3574 |
|
| 3575 |
2014-08-04 Robert Dewar <[email protected]> |
| 3576 |
|
| 3577 |
* sem_res.adb (Resolve_Type_Conversion): Set Do_Range_Check on |
| 3578 |
conversion from a real type to an integer type. |
| 3579 |
|
| 3580 |
2014-08-04 Yannick Moy <[email protected]> |
| 3581 |
|
| 3582 |
* sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_ch7.adb, sem_ch9.adb, |
| 3583 |
sem_ch12.adb, sem_util.adb, sem_util.ads, sem_res.adb, sem_attr.adb, |
| 3584 |
exp_ch6.adb, sem_ch4.adb, restrict.adb, restrict.ads, sem_ch6.adb, |
| 3585 |
sem_ch8.adb, sem_ch11.adb: Update some subprogram names to refer to |
| 3586 |
SPARK_05 instead of SPARK. |
| 3587 |
|
| 3588 |
2014-08-04 Robert Dewar <[email protected]> |
| 3589 |
|
| 3590 |
* sem.ads: Minor reformatting. |
| 3591 |
* sem_ch13.adb (Analyze_Aspect_External_Or_Link_Name): Minor |
| 3592 |
reformatting. |
| 3593 |
(Analyze_Aspect_Specifications, case Convention): Put External_Name |
| 3594 |
before Link_Name when constructing pragma. |
| 3595 |
|
| 3596 |
2014-08-04 Yannick Moy <[email protected]> |
| 3597 |
|
| 3598 |
* sem.adb, sem.ads (In_Default_Expr): Global flag that is set |
| 3599 |
to True during analysis of a default component expression. |
| 3600 |
(Semantics): Save and restore In_Default_Expr around analysis. |
| 3601 |
* sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration): |
| 3602 |
Call new wrapper Preanalyze_Default_Expression. |
| 3603 |
(Preanalyze_Default_Expression): New wrapper on |
| 3604 |
Preanalyze_Spec_Expression which sets and restores In_Default_Expr. |
| 3605 |
* sem_res.adb (Resolve_Call): Mark calls inside default |
| 3606 |
expressions as not inlined in GNATprove mode. |
| 3607 |
|
| 3608 |
2014-08-04 Robert Dewar <[email protected]> |
| 3609 |
|
| 3610 |
* exp_ch4.adb: Minor reformatting. |
| 3611 |
|
| 3612 |
2014-08-04 Olivier Hainque <[email protected]> |
| 3613 |
|
| 3614 |
* link.c: remove const on __gnat_objlist_file_supported for AIX |
| 3615 |
|
| 3616 |
2014-08-04 Robert Dewar <[email protected]> |
| 3617 |
|
| 3618 |
* sem_util.ads: Minor addition of comment. |
| 3619 |
|
| 3620 |
2014-08-04 Vincent Celier <[email protected]> |
| 3621 |
|
| 3622 |
* prj-dect.adb (Check_Package_Allowed): Allow package IDE in |
| 3623 |
all projects, including aggregate and aggregate library projects. |
| 3624 |
|
| 3625 |
2014-08-04 Yannick Moy <[email protected]> |
| 3626 |
|
| 3627 |
* back_end.adb (Call_Back_End): Do not call gigi in GNATprove mode. |
| 3628 |
|
| 3629 |
2014-08-04 Robert Dewar <[email protected]> |
| 3630 |
|
| 3631 |
* sem_eval.adb (Test_In_Range): Always in range for |
| 3632 |
Is_Known_Valid target type, where input type has smaller or |
| 3633 |
equal size and does not have biased rep. |
| 3634 |
|
| 3635 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3636 |
|
| 3637 |
* sem_attr.adb (Eval_Attribute): Constrained is not treated as |
| 3638 |
a static attribute, and the Static flag must not be set on it |
| 3639 |
during resolution. It may be constant-folded during expansion, |
| 3640 |
but if expansion is disabled it is not a static expression. |
| 3641 |
|
| 3642 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 3643 |
|
| 3644 |
* sem_ch8.adb (Build_Class_Wide_Wrapper): Mark the primitive as |
| 3645 |
referenced once resolution has taken place. |
| 3646 |
|
| 3647 |
2014-08-04 Gary Dismukes <[email protected]> |
| 3648 |
|
| 3649 |
* exp_ch4.adb (Expand_N_Type_Conversion): Don't |
| 3650 |
compare access levels in the case where the target type is the |
| 3651 |
anonymous type of an access discriminant, since the level of |
| 3652 |
such types is defined based on context. Add comment. |
| 3653 |
|
| 3654 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 3655 |
|
| 3656 |
* sem_ch8.adb (Build_Class_Wide_Wrapper): Handle various special |
| 3657 |
cases related to equality. Remove the special processing |
| 3658 |
for dispatching abstract subprograms as it is not needed. |
| 3659 |
(Interpretation_Error): Add a specialized error message for |
| 3660 |
predefined operators. |
| 3661 |
(Is_Intrinsic_Equality): New routine. |
| 3662 |
(Is_Suitable_Candidate): New routine. |
| 3663 |
|
| 3664 |
2014-08-04 Gary Dismukes <[email protected]> |
| 3665 |
|
| 3666 |
* checks.adb: Minor comment reformatting. |
| 3667 |
|
| 3668 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3669 |
|
| 3670 |
* restrict.adb (Check_Restriction): For checked max_parameter |
| 3671 |
restrictions reset Violated flag, so that subsequent violations |
| 3672 |
are properly detected. |
| 3673 |
|
| 3674 |
2014-08-04 Robert Dewar <[email protected]> |
| 3675 |
|
| 3676 |
* sem_ch3.adb (Check_Initialization): Fix bad test of GNATprove |
| 3677 |
mode. |
| 3678 |
(Process_Discriminants): Fix bad test of GNATprove mode |
| 3679 |
|
| 3680 |
2014-08-04 Hristian Kirtchev <[email protected]> |
| 3681 |
|
| 3682 |
* sem_ch12.adb (Instantiate_Formal_Subprogram): |
| 3683 |
Move variable to their own section. Propagate the source |
| 3684 |
location of a formal parameter to the corresponding formal of |
| 3685 |
the subprogram renaming declaration. Code reformatting. |
| 3686 |
|
| 3687 |
2014-08-04 Arnaud Charlet <[email protected]> |
| 3688 |
|
| 3689 |
* g-trasym-vms-ia64.adb, g-trasym-vms-alpha.adb: Removed. |
| 3690 |
|
| 3691 |
2014-08-04 Ed Schonberg <[email protected]> |
| 3692 |
|
| 3693 |
* exp_aggr.adb (Expand_Array_Aggregate): Do not attempt expansion |
| 3694 |
if error already detected. We may reach this point in spite of |
| 3695 |
previous errors when compiling with -gnatq, to force all possible |
| 3696 |
errors (this is the usual ACATS mode). |
| 3697 |
|
| 3698 |
2014-08-04 Gary Dismukes <[email protected]> |
| 3699 |
|
| 3700 |
* checks.adb (Generate_Range_Check): For the case of converting |
| 3701 |
a base type with a larger range to a smaller target subtype, only |
| 3702 |
use unchecked conversions of bounds in the range check followed |
| 3703 |
by conversion in the case where both types are discrete. In other |
| 3704 |
cases, convert to the target base type and save in a temporary |
| 3705 |
followed by the range check. |
| 3706 |
(Convert_And_Check_Range): New procedure factoring code to save |
| 3707 |
conversion to a temporary followed by a range check (called two |
| 3708 |
places in Generate_Range_Check). |
| 3709 |
* exp_ch4.adb (Expand_N_Type_Conversion): Relax previous |
| 3710 |
check-in, to generate range checks for conversions between |
| 3711 |
any floating-point types rather than limiting it to matching |
| 3712 |
base types. |
| 3713 |
|
| 3714 |
2014-08-02 Trevor Saunders <[email protected]> |
| 3715 |
|
| 3716 |
* gcc-interface/trans.c: Use hash_set instead of pointer_set. |
| 3717 |
|
| 3718 |
2014-08-01 Ed Schonberg <[email protected]> |
| 3719 |
|
| 3720 |
* restrict.adb (Update_Restrictions): For restrictions with a |
| 3721 |
maximum parameter (e.g. number of protected entries in Ravenscar) |
| 3722 |
do not compute the maximum of the violation over several objects, |
| 3723 |
because the restriction is per-object. |
| 3724 |
(Check_Restriction): After possible message, reset the value |
| 3725 |
of of a checked max_parameter restriction to zero, to prevent |
| 3726 |
cascaded errors. |
| 3727 |
* sem_ch3.adb (Build_Derived_Private_Type): Use base of parent |
| 3728 |
(sub)type to determine whether derived type should be on the |
| 3729 |
list of private dependents of a type whose full view may become |
| 3730 |
visible subsequently. |
| 3731 |
|
| 3732 |
2014-08-01 Olivier Hainque <[email protected]> |
| 3733 |
|
| 3734 |
* gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS, native): use |
| 3735 |
$(CXX) instead of ../../xg++ to feed CXX. |
| 3736 |
(CXX_LFLAGS): Remove. Now unused as the proper flags |
| 3737 |
are expected to be included in the CXX variable. |
| 3738 |
|
| 3739 |
2014-08-01 Pierre-Marie Derodat <[email protected]> |
| 3740 |
|
| 3741 |
* gcc-interface/decl.c (elaborate_expression_1): Return the new |
| 3742 |
variable when debug info is needed and the expression is not |
| 3743 |
constant. Tag as external only new variables that are global. |
| 3744 |
(gnat_to_gnu_entity): Call it after the GNU declaration is saved. |
| 3745 |
* gcc-interface/trans.c (Attribute_to_gnu): Do not cache |
| 3746 |
attributes for IN array parameters when their actual subtype |
| 3747 |
needs debug info. |
| 3748 |
(Compilation_Unit_to_gnu): Call it to process all remaining nodes. |
| 3749 |
* gcc-interface/gigi.h (process_deferred_decl_context): New. |
| 3750 |
* gcc-interface/utils.c (gnat_write_global_declarations): Do not |
| 3751 |
emit debug info for ignored global declarations. |
| 3752 |
(struct deferred_decl_context_node, |
| 3753 |
add_deferred_decl_context, add_deferred_type_context, |
| 3754 |
compute_deferred_decl_context, defer_or_set_type_context, |
| 3755 |
deferred_decl_context_queue, get_debug_scope, |
| 3756 |
get_global_context, process_deferred_decl_context): New. |
| 3757 |
(gnat_pushdecl): Re-implement the DECL_CONTEXT and TYPE_CONTEXT |
| 3758 |
computation machinery to rely on the GNAT Scope attribute. |
| 3759 |
|
| 3760 |
2014-08-01 Eric Botcazou <[email protected]> |
| 3761 |
|
| 3762 |
* gcc-interface/utils2.c (build_simple_component_ref): Add guard. |
| 3763 |
|
| 3764 |
2014-08-01 Robert Dewar <[email protected]> |
| 3765 |
|
| 3766 |
* sem_ch8.adb, opt.ads Minor comment updates. |
| 3767 |
|
| 3768 |
2014-08-01 Hristian Kirtchev <[email protected]> |
| 3769 |
|
| 3770 |
* exp_intr.adb (Expand_Unc_Deallocation): Request a renaming |
| 3771 |
from the side effects removal machinery. |
| 3772 |
* exp_util.adb (Duplicate_Subexpr): Add formal parameter |
| 3773 |
Renaming_Req. Update the nested call to Remove_Side_Effects. |
| 3774 |
(Duplicate_Subexpr_No_Checks): Add formal parameter |
| 3775 |
Renaming_Req. Update the nested call to Remove_Side_Effects. |
| 3776 |
(Duplicate_Subexpr_Move_Checks): Add formal parameter |
| 3777 |
Renaming_Req. Update the nested call to Remove_Side_Effects. |
| 3778 |
(Remove_Side_Effects): Add formal parameter Renaming_Req. Generate |
| 3779 |
an object renaming declaration when the caller requests it. |
| 3780 |
* exp_util.ads (Duplicate_Subexpr): Add formal |
| 3781 |
parameter Renaming_Req. Update comment on usage. |
| 3782 |
(Duplicate_Subexpr_No_Checks): Add formal parameter Renaming_Req. |
| 3783 |
(Duplicate_Subexpr_Move_Checks): Add formal parameter |
| 3784 |
Renaming_Req. |
| 3785 |
|
| 3786 |
2014-08-01 Bob Duff <[email protected]> |
| 3787 |
|
| 3788 |
* gnat_ugn.texi: Minor updates. |
| 3789 |
|
| 3790 |
2014-08-01 Robert Dewar <[email protected]> |
| 3791 |
|
| 3792 |
* atree.adb: Minor reformatting. |
| 3793 |
|
| 3794 |
2014-08-01 Ed Schonberg <[email protected]> |
| 3795 |
|
| 3796 |
* exp_aggr.adb (Init_Hidden_Discriminants): If some ancestor is a |
| 3797 |
private extension, get stored constraint, if any, from full view. |
| 3798 |
|
| 3799 |
2014-08-01 Robert Dewar <[email protected]> |
| 3800 |
|
| 3801 |
* opt.ads (No_Elab_Code_All_Pragma): New global variable. |
| 3802 |
* sem_ch10.adb (Check_No_Elab_Code_All): New procedure |
| 3803 |
(Analyze_Compilation_Unit): Call Check_No_Elab_Code_All |
| 3804 |
(Analyze_Subunit_Context): Call Check_No_Elab_Code_All. |
| 3805 |
* sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All): |
| 3806 |
Remove code for checking with's, now in sem_ch10.adb, set |
| 3807 |
Opt.No_Elab_Code_All_Pragma. |
| 3808 |
|
| 3809 |
2014-08-01 Eric Botcazou <[email protected]> |
| 3810 |
|
| 3811 |
* sem_ch3.adb (Copy_And_Build): Copy the declaration for |
| 3812 |
access types as well and adjust the subtype mark if there are |
| 3813 |
no constraints. |
| 3814 |
|
| 3815 |
2014-08-01 Robert Dewar <[email protected]> |
| 3816 |
|
| 3817 |
* sem_eval.adb (Test_In_Range): Return Unknown if error posted. |
| 3818 |
|
| 3819 |
2014-08-01 Robert Dewar <[email protected]> |
| 3820 |
|
| 3821 |
* sem_ch3.adb, einfo.ads, exp_ch4.adb: Code clean ups. |
| 3822 |
|
| 3823 |
2014-08-01 Eric Botcazou <[email protected]> |
| 3824 |
|
| 3825 |
* einfo.ads (Has_Private_Ancestor): Remove obsolete usage. |
| 3826 |
* exp_ch4.adb (Expand_Composite_Equality): Add conversion |
| 3827 |
of the actuals in the case of untagged record types too. |
| 3828 |
* sem_ch3.adb (Build_Full_Derivation): New procedure to create the |
| 3829 |
full derivation of a derived private type, extracted from... |
| 3830 |
(Copy_And_Build): In the case of record types and most |
| 3831 |
enumeration types, copy the original declaration. Build the |
| 3832 |
full derivation according to the approach extracted from... |
| 3833 |
(Build_Derived_Private_Type): ...here. Call Build_Full_Derivation |
| 3834 |
to create the full derivation in all existing cases and also |
| 3835 |
create it in the no-discriminants/discriminants case instead of |
| 3836 |
deriving directly from the full view. |
| 3837 |
(Is_Visible_Component): Remove obsolete code. |
| 3838 |
* sem_aggr.adb (Resolve_Record_Aggregate): Likewise. |
| 3839 |
|
| 3840 |
2014-08-01 Arnaud Charlet <[email protected]> |
| 3841 |
|
| 3842 |
* fe.h (GNAT_Mode): New. |
| 3843 |
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not error out on |
| 3844 |
reverse SSO in GNAT mode. |
| 3845 |
|
| 3846 |
2014-08-01 Thomas Quinot <[email protected]> |
| 3847 |
|
| 3848 |
* freeze.adb: Minor reformatting. |
| 3849 |
|
| 3850 |
2014-08-01 Thomas Quinot <[email protected]> |
| 3851 |
|
| 3852 |
* exp_ch3.adb (Default_Initialize_Object): Do not generate |
| 3853 |
default initialization for an imported object. |
| 3854 |
|
| 3855 |
2014-08-01 Olivier Hainque <[email protected]> |
| 3856 |
|
| 3857 |
* seh_init.c (__gnat_map_SEH): Cast argument of IsBadCodePtr |
| 3858 |
to the expected FARPROC type instead of void *. |
| 3859 |
* adaint.c (f2t): Expect __time64_t * as second argument, in line with |
| 3860 |
other datastructures. |
| 3861 |
(__gnat_file_time_name_attr): Adjust accordingly. |
| 3862 |
(__gnat_check_OWNER_ACL): Declare pSD as PSECURITY_DESCRIPTOR, |
| 3863 |
in line with uses. |
| 3864 |
(__gnat_check_OWNER_ACL): Declare AccessMode |
| 3865 |
parameter as ACCESS_MODE instead of DWORD, in line with callers |
| 3866 |
and uses. |
| 3867 |
(__gnat_set_executable): Add ATTRIBUTE_UNUSED on mode, |
| 3868 |
unused on win32. Correct cast of "args" on call to spawnvp. |
| 3869 |
(add_handle): Cast realloc calls into their destination types. |
| 3870 |
(win32_wait): Remove declaration and initialization of unused variable. |
| 3871 |
(__gnat_locate_exec_on_path): Cast alloca calls |
| 3872 |
into their destination types. |
| 3873 |
* initialize.c (append_arg, __gnat_initialize): Cast xmalloc calls into |
| 3874 |
their destination types. |
| 3875 |
|
| 3876 |
2014-08-01 Gary Dismukes <[email protected]> |
| 3877 |
|
| 3878 |
* exp_ch4.adb (Expand_N_Type_Conversion): Expand |
| 3879 |
range checks for conversions between floating-point subtypes |
| 3880 |
when the target and source types are the same. |
| 3881 |
|
| 3882 |
2014-08-01 Robert Dewar <[email protected]> |
| 3883 |
|
| 3884 |
* exp_aggr.adb: Minor reformatting. |
| 3885 |
|
| 3886 |
2014-08-01 Eric Botcazou <[email protected]> |
| 3887 |
|
| 3888 |
* sem_ch13.adb (Check_Indexing_Functions): Initialize |
| 3889 |
Indexing_Found. |
| 3890 |
|
| 3891 |
2014-08-01 Arnaud Charlet <[email protected]> |
| 3892 |
|
| 3893 |
* gnat1drv.adb (Gnat1drv): In gnatprove mode, we now write the |
| 3894 |
ALI file before we call the backend (so that gnat2why can append |
| 3895 |
to it). |
| 3896 |
|
| 3897 |
2014-08-01 Thomas Quinot <[email protected]> |
| 3898 |
|
| 3899 |
* exp_pakd.adb (Expand_Bit_Packed_Element_Set, |
| 3900 |
Expand_Packed_Element_Reference): Pass additional Rev_SSO |
| 3901 |
parameter indicating whether the packed array type has reverse |
| 3902 |
scalar storage order to the s-pack* Set/Get routines. |
| 3903 |
* s-pack*.ad* (Get, Set, GetU, SetU): New formal Rev_SSO |
| 3904 |
indicating reverse scalar storage order. |
| 3905 |
|
| 3906 |
2014-08-01 Robert Dewar <[email protected]> |
| 3907 |
|
| 3908 |
* sem_ch3.adb (Check_Initialization): Set Do_Range_Check |
| 3909 |
for initial component value in -gnatc or GNATprove mode. |
| 3910 |
(Process_Discriminants): Same fix for default discriminant values. |
| 3911 |
* sem_eval.adb (Test_In_Range): Improve accuracy of results by |
| 3912 |
checking subtypes. |
| 3913 |
|
| 3914 |
2014-08-01 Robert Dewar <[email protected]> |
| 3915 |
|
| 3916 |
* sinfo.ads: Minor comment clarification. |
| 3917 |
|
| 3918 |
2014-08-01 Hristian Kirtchev <[email protected]> |
| 3919 |
|
| 3920 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Code |
| 3921 |
reformatting. Store the generated pragma Import in the related |
| 3922 |
subprogram as routine Wrap_Imported_Subprogram will need it later. |
| 3923 |
* sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): An item of |
| 3924 |
a private type with discriminants is considered to fall in the |
| 3925 |
category of unconstrained or tagged items. |
| 3926 |
|
| 3927 |
2014-08-01 Arnaud charlet <[email protected]> |
| 3928 |
|
| 3929 |
* s-os_lib.adb (Open_Append): New functions to open a file for |
| 3930 |
appending. This binds to the already existing (but not used) |
| 3931 |
__gnat_open_append. |
| 3932 |
* osint.ads, osint.adb (Open_File_To_Append_And_Check): New procedure |
| 3933 |
to open a file for appending. |
| 3934 |
* osint-c.ads, osint-c.adb (Open_Output_Library_Info): New procedure |
| 3935 |
to open the ALI file for appending. |
| 3936 |
|
| 3937 |
2014-08-01 Robert Dewar <[email protected]> |
| 3938 |
|
| 3939 |
* sem_ch8.adb: Minor reformatting. |
| 3940 |
|
| 3941 |
2014-08-01 Yannick Moy <[email protected]> |
| 3942 |
|
| 3943 |
* sem_ch13.adb (Insert_Pragma): Add special case for precondition |
| 3944 |
pragmas from aspects, which need to be inserted in proper order. |
| 3945 |
|
| 3946 |
2014-08-01 Ed Schonberg <[email protected]> |
| 3947 |
|
| 3948 |
* exp_aggr.adb (Expand_Record_Aggregate, Init_Hidden_Discriminants): |
| 3949 |
Handle properly a type extension that constrains a discriminated |
| 3950 |
derived type that renames other discriminants of an ancestor. |
| 3951 |
|
| 3952 |
2014-08-01 Thomas Quinot <[email protected]> |
| 3953 |
|
| 3954 |
* s-pack06.adb, s-pack10.adb, s-pack03.ads, s-pack12.adb, s-pack14.ads, |
| 3955 |
s-pack25.adb: Fix minor inconsistencies and typos. |
| 3956 |
|
| 3957 |
2014-08-01 Hristian Kirtchev <[email protected]> |
| 3958 |
|
| 3959 |
* sem_ch8.adb (Analyze_Subprogram_Renaming): Alphabetize |
| 3960 |
globals and move certain variables to the "local |
| 3961 |
variable" section. Call Build_Class_Wide_Wrapper when |
| 3962 |
renaming a default actual subprogram with a class-wide actual. |
| 3963 |
(Build_Class_Wide_Wrapper): New routine. |
| 3964 |
(Check_Class_Wide_Actual): Removed. |
| 3965 |
(Find_Renamed_Entity): Code reformatting. |
| 3966 |
(Has_Class_Wide_Actual): Alphabetize. Change the |
| 3967 |
logic of the predicate as the renamed name may not necessarely |
| 3968 |
denote the correct subprogram. |
| 3969 |
|
| 3970 |
2014-08-01 Eric Botcazou <[email protected]> |
| 3971 |
|
| 3972 |
* sem_ch7.adb: Fix minor oversight in condition. |
| 3973 |
|
| 3974 |
2014-08-01 Bob Duff <[email protected]> |
| 3975 |
|
| 3976 |
* projects.texi: Minor documentation improvements. |
| 3977 |
|
| 3978 |
2014-08-01 Robert Dewar <[email protected]> |
| 3979 |
|
| 3980 |
* aspects.ads, aspects.adb: Add aspect No_Elaboration_Code_All. |
| 3981 |
* gnat_rm.texi: Document No_Elaboration_Code_All pragma and aspect. |
| 3982 |
* lib-load.adb: Initialize No_Elab_Code_All field. |
| 3983 |
* lib-writ.adb: Initialize No_Elab_Code_All. |
| 3984 |
* lib.ads, lib.adb: New field No_Elab_Code_All. |
| 3985 |
* par-prag.adb: Add dummy entry for pragma No_Elaboration_Code_All. |
| 3986 |
* restrict.ads, restrict.adb: Restriction No_Elaboration_Code_All no |
| 3987 |
longer exists. |
| 3988 |
* sem_ch10.adb (Analyze_Context): Processing for |
| 3989 |
No_Elaboration_Code_All removed. |
| 3990 |
(Generate_Parent_References): Moved to Sem_Util. |
| 3991 |
* sem_prag.adb: Add processing for pragma No_Elaboration_Code_All. |
| 3992 |
* sem_util.ads, sem_util.adb (Get_Parent_Entity): Moved here from |
| 3993 |
Sem_Ch10. |
| 3994 |
* snames.ads-tmpl: Add entry for pragma No_Elaboration_Code_All. |
| 3995 |
* targparm.adb: Minor comment updates Add comments on ignoring |
| 3996 |
pragma No_Elaboration_Code_All. |
| 3997 |
|
| 3998 |
2014-08-01 Nicolas Roche <[email protected]> |
| 3999 |
|
| 4000 |
* adaint.c (__gnat_set_close_on_exec): Ensure that |
| 4001 |
we can unset "close_on_exec" flag. |
| 4002 |
|
| 4003 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4004 |
|
| 4005 |
* exp_ch9.adb (Build_Wrapper_Spec, Replicate_Formals): When building |
| 4006 |
the parameter specs of the wrapper program for a primitive operation |
| 4007 |
of a synchronized type that implements an interface, copy the |
| 4008 |
null_exclusion indicator as well. |
| 4009 |
|
| 4010 |
2014-08-01 Robert Dewar <[email protected]> |
| 4011 |
|
| 4012 |
* sem_eval.ads: Minor reformatting. |
| 4013 |
|
| 4014 |
2014-08-01 Eric Botcazou <[email protected]> |
| 4015 |
|
| 4016 |
* exp_ch3.adb (Build_Initialization_Call): Call Underlying_Type |
| 4017 |
to go down the chain of private derivations. |
| 4018 |
* freeze.adb (Freeze_Entity): Fix typo in comment. |
| 4019 |
|
| 4020 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4021 |
|
| 4022 |
* sem_ch3.adb (Access_Type_Declaration): If designated type is |
| 4023 |
a limited view, create a master entity (as is already done for |
| 4024 |
class-wide types) in case the full view designates a type that |
| 4025 |
contains tasks. |
| 4026 |
* sem_ch8.adb (Find_Selected_Component): If prefix is a dereference |
| 4027 |
and the designated type is a limited view, use the non-limited |
| 4028 |
view if available. |
| 4029 |
|
| 4030 |
2014-08-01 Eric Botcazou <[email protected]> |
| 4031 |
|
| 4032 |
* gcc-interface/ada-tree.h (DECL_BY_DESCRIPTOR_P): Delete. |
| 4033 |
(DECL_FUNCTION_STUB): Likewise. |
| 4034 |
(SET_DECL_FUNCTION_STUB): Likewise. |
| 4035 |
(DECL_PARM_ALT_TYPE): Likewise. |
| 4036 |
(SET_DECL_PARM_ALT_TYPE): Likewise. |
| 4037 |
(TYPE_VAX_FLOATING_POINT_P): Delete. |
| 4038 |
(TYPE_DIGITS_VALUE): Likewise. |
| 4039 |
(SET_TYPE_DIGITS_VALUE): Likewise. |
| 4040 |
* gcc-interface/gigi.h (standard_datatypes): Remove ADT_malloc32_decl. |
| 4041 |
(malloc32_decl): Delete. |
| 4042 |
(build_vms_descriptor): Likewise. |
| 4043 |
(build_vms_descriptor32): Likewise. |
| 4044 |
(fill_vms_descriptor): Likewise. |
| 4045 |
(convert_vms_descriptor): Likewise. |
| 4046 |
(TARGET_ABI_OPEN_VMS): Likewise. |
| 4047 |
(TARGET_MALLOC64): Likewise. |
| 4048 |
* gcc-interface/decl.c (add_parallel_type_for_packed_array): New. |
| 4049 |
(gnat_to_gnu_entity): Call it to add the original type as a parallel |
| 4050 |
type to the implementation type of a packed array type. |
| 4051 |
<E_Procedure>: Remove now obsolete kludge. |
| 4052 |
<E_Exception>: Delete obsolete comment. |
| 4053 |
<object>: Small tweak. |
| 4054 |
<E_Subprogram_Type>: Remove support for stub subprograms, as well as |
| 4055 |
for the descriptor passing mechanism. |
| 4056 |
(gnat_to_gnu_param): Likewise. |
| 4057 |
* gcc-interface/misc.c (gnat_init_gcc_fp): Remove special case. |
| 4058 |
(gnat_print_type): Adjust. |
| 4059 |
* gcc-interface/trans.c (gigi): Remove obsolete initializations. |
| 4060 |
(vms_builtin_establish_handler_decl): Delete. |
| 4061 |
(gnat_vms_condition_handler_decl): Likewise. |
| 4062 |
(establish_gnat_vms_condition_handler): Likewise. |
| 4063 |
(build_function_stub): Likewise. |
| 4064 |
(Subprogram_Body_to_gnu): Do not call above functions. |
| 4065 |
(Call_to_gnu): Remove support for the descriptor passing mechanism. |
| 4066 |
* gcc-interface/utils.c (make_descriptor_field): Delete. |
| 4067 |
(build_vms_descriptor32): Likewise. |
| 4068 |
(build_vms_descriptor): Likewise. |
| 4069 |
(fill_vms_descriptor): Likewise. |
| 4070 |
(convert_vms_descriptor64): Likewise. |
| 4071 |
(convert_vms_descriptor32): Likewise. |
| 4072 |
(convert_vms_descriptor): Likewise. |
| 4073 |
* gcc-interface/utils.c (unchecked_convert): Likewise. |
| 4074 |
* gcc-interface/utils2.c (maybe_wrap_malloc): Remove obsolete stuff. |
| 4075 |
|
| 4076 |
2014-08-01 Eric Botcazou <[email protected]> |
| 4077 |
|
| 4078 |
* gcc-interface/trans.c (gigi): Use gnat_to_gnu_type for the exception |
| 4079 |
type and get_unpadded_type for the longest FP type. |
| 4080 |
(Attribute_to_gnu) <Machine>: Compare the precision of the types. |
| 4081 |
(convert_with_check): Adjust formatting and remove FIXME. |
| 4082 |
|
| 4083 |
2014-08-01 Eric Botcazou <[email protected]> |
| 4084 |
|
| 4085 |
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: |
| 4086 |
Do not convert the RM bounds to the base type. |
| 4087 |
(E_Floating_Point_Subtype): Likewise. |
| 4088 |
(E_Array_Subtype): Convert the bounds to the base type. |
| 4089 |
* gcc-interface/trans.c (get_type_length): New function. |
| 4090 |
(Attribute_to_gnu) <Range_Length>: Call it. |
| 4091 |
<Length>: Likewise. |
| 4092 |
(Loop_Statement_to_gnu): Convert the bounds to the base type. |
| 4093 |
(gnat_to_gnu) <N_In>: Likewise. |
| 4094 |
* gcc-interface/utils.c (make_type_from_size): Do not convert the RM |
| 4095 |
bounds to the base type. |
| 4096 |
(create_range_type): Likewise. |
| 4097 |
(convert): Convert the bounds to the base type for biased types. |
| 4098 |
* gcc-interface/utils2.c (compare_arrays): Convert the bounds to the |
| 4099 |
base type. |
| 4100 |
|
| 4101 |
2014-08-01 Eric Botcazou <[email protected]> |
| 4102 |
|
| 4103 |
* gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Remove |
| 4104 |
incorrect implicit type derivation. |
| 4105 |
* gcc-interface/utils.c (max_size) <tcc_reference>: Convert the bounds |
| 4106 |
to the base type. |
| 4107 |
|
| 4108 |
2014-08-01 Hristian Kirtchev <[email protected]> |
| 4109 |
|
| 4110 |
* sem_attr.adb (Analyze_Attribute): Preanalyze and resolve the |
| 4111 |
prefix of attribute Loop_Entry. |
| 4112 |
* sem_prag.adb (Analyze_Pragma): Verify the placement of pragma |
| 4113 |
Loop_Variant with respect to an enclosing loop (if any). |
| 4114 |
(Contains_Loop_Entry): Update the parameter profile and all |
| 4115 |
calls to this routine. |
| 4116 |
* sem_res.adb (Resolve_Call): Code reformatting. Do not ask |
| 4117 |
for the corresponding body before determining the nature of the |
| 4118 |
ultimate alias's declarative node. |
| 4119 |
|
| 4120 |
2014-08-01 Robert Dewar <[email protected]> |
| 4121 |
|
| 4122 |
* gnat1drv.adb, sem_ch4.adb: Minor reformatting. |
| 4123 |
|
| 4124 |
2014-08-01 Robert Dewar <[email protected]> |
| 4125 |
|
| 4126 |
* sem_eval.adb (Rewrite_In_Raise_CE): Don't try to reuse inner |
| 4127 |
constraint error node since it is a list member. |
| 4128 |
|
| 4129 |
2014-08-01 Robert Dewar <[email protected]> |
| 4130 |
|
| 4131 |
* sem_warn.adb: Minor reformatting. |
| 4132 |
|
| 4133 |
2014-08-01 Eric Botcazou <[email protected]> |
| 4134 |
|
| 4135 |
* einfo.adb (Underlying_Type): Return the underlying full view |
| 4136 |
of a private type if present. |
| 4137 |
* freeze.adb (Freeze_Entity): |
| 4138 |
Build a single freeze node for partial, full and underlying full |
| 4139 |
views, if any. |
| 4140 |
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Private_Type>: Add a |
| 4141 |
missing guard before the access to the Underlying_Full_View. |
| 4142 |
* gcc-interface/trans.c (process_freeze_entity): Deal with underlying |
| 4143 |
full view if present. |
| 4144 |
* gcc-interface/utils.c (make_dummy_type): Avoid superfluous work. |
| 4145 |
|
| 4146 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4147 |
|
| 4148 |
* sem_res.adb (Resolve_Entry_Call): When an entry has |
| 4149 |
preconditions, the entry call is wrapped in a procedure call |
| 4150 |
that incorporates the precondition checks. To prevent a double |
| 4151 |
expansion, with possible duplication of extra formals, that |
| 4152 |
procedure call must only be pre-analyzed and resolved. Expansion |
| 4153 |
takes place upon return to the caller Resolve_Call. |
| 4154 |
|
| 4155 |
2014-08-01 Hristian Kirtchev <[email protected]> |
| 4156 |
|
| 4157 |
* sem_res.adb (Resolve_Call): Do not perform |
| 4158 |
GNATprove-specific inlining while within a generic. |
| 4159 |
|
| 4160 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4161 |
|
| 4162 |
* sem_ch4.adb (Analyze_Case_Expression): Handle properly a |
| 4163 |
case expression with incompatible alternatives, when the first |
| 4164 |
alternative is overloaded. |
| 4165 |
|
| 4166 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4167 |
|
| 4168 |
* sem_res.adb (Check_Parameterless_Call): Use Relocate_Node |
| 4169 |
to create the name of the parameterless call, rather than |
| 4170 |
New_Copy, to preserve the tree structure when the name is a |
| 4171 |
complex expression, e.g. a selected component that denotes a |
| 4172 |
protected operation, whose prefix is itself a selected component. |
| 4173 |
|
| 4174 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4175 |
|
| 4176 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use |
| 4177 |
Unit_Declaration_Node to retrieve body when inlining, to handle |
| 4178 |
properly subprogram child units. |
| 4179 |
|
| 4180 |
2014-08-01 Robert Dewar <[email protected]> |
| 4181 |
|
| 4182 |
* sem_attr.adb: Minor reformatting. |
| 4183 |
|
| 4184 |
2014-08-01 Vincent Celier <[email protected]> |
| 4185 |
|
| 4186 |
* debug.adb: Minor documentation addition for -dn switch. |
| 4187 |
|
| 4188 |
2014-08-01 Robert Dewar <[email protected]> |
| 4189 |
|
| 4190 |
* sem_aggr.adb, exp_ch9.adb, sem_prag.adb, sem_util.adb, |
| 4191 |
sem_attr.adb, sem_eval.ads, sem_cat.adb, sem_ch13.adb: Improve |
| 4192 |
documentation of Is_Static_Expression vs Is_OK_Static_Expression. |
| 4193 |
In several places, use the Is_OK version as suggested by the spec. |
| 4194 |
|
| 4195 |
2014-08-01 Vincent Celier <[email protected]> |
| 4196 |
|
| 4197 |
* gnatcmd.adb: Revert last change which was not correct. |
| 4198 |
|
| 4199 |
2014-08-01 Hristian Kirtchev <[email protected]> |
| 4200 |
|
| 4201 |
* freeze.adb (Find_Constant): Ensure that the constant being |
| 4202 |
inspected is still an object declaration (i.e. not a renaming). |
| 4203 |
|
| 4204 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4205 |
|
| 4206 |
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): a) |
| 4207 |
An attribute_reference to Loop_Entry denotes an iterator |
| 4208 |
specification: its prefix is an object, as is the case for 'Old. |
| 4209 |
b) If the domain of iteration is an expression whose type has |
| 4210 |
the Iterable aspect defined, this is an iterator specification. |
| 4211 |
|
| 4212 |
2014-08-01 Robert Dewar <[email protected]> |
| 4213 |
|
| 4214 |
* gnatcmd.adb: Minor reformatting. |
| 4215 |
|
| 4216 |
2014-08-01 Robert Dewar <[email protected]> |
| 4217 |
|
| 4218 |
* atree.ads (Info_Messages): New counter. |
| 4219 |
* err_vars.ads: Minor comment update. |
| 4220 |
* errout.adb (Delete_Warning_And_Continuations): Deal |
| 4221 |
with new Info_Messages counter. |
| 4222 |
(Error_Msg_Internal): ditto. |
| 4223 |
(Delete_Warning): ditto. |
| 4224 |
(Initialize): ditto. |
| 4225 |
(Write_Error_Summary): ditto. |
| 4226 |
(Output_Messages): ditto. |
| 4227 |
(To_Be_Removed): ditto. |
| 4228 |
* erroutc.adb (Delete_Msg): Deal with Info_Messages counter. |
| 4229 |
(Compilation_Errors): ditto. |
| 4230 |
* errutil.adb (Error_Msg): Deal with Info_Messages counter. |
| 4231 |
(Finalize): ditto. |
| 4232 |
(Initialize): ditto. |
| 4233 |
* sem_prag.adb (Analyze_Pragma): Minor comment addition. |
| 4234 |
* gnat_ugn.texi: Document that -gnatwe does not affect info |
| 4235 |
messages. |
| 4236 |
|
| 4237 |
2014-08-01 Robert Dewar <[email protected]> |
| 4238 |
|
| 4239 |
* debug.adb: Document debug switch -gnatd.Z. |
| 4240 |
* sem.adb (Semantics): Force expansion on in no or configurable |
| 4241 |
run time mode. |
| 4242 |
|
| 4243 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4244 |
|
| 4245 |
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): An |
| 4246 |
unchecked conversion denotes an iterator specification. Such a |
| 4247 |
conversion will be inserted in the context of an inlined call |
| 4248 |
when needed, and its argument is always an object. |
| 4249 |
|
| 4250 |
2014-08-01 Robert Dewar <[email protected]> |
| 4251 |
|
| 4252 |
* make.adb, makeutl.ads: Minor reformatting. |
| 4253 |
* debug.adb, opt.ads: Clarify documentation of Front_End_Inlining and |
| 4254 |
Back_End_Inlining. |
| 4255 |
|
| 4256 |
2014-08-01 Tristan Gingold <[email protected]> |
| 4257 |
|
| 4258 |
* gnatcmd.adb (GNATCmd): Set AAMP_On_Target using command name. |
| 4259 |
|
| 4260 |
2014-08-01 Javier Miranda <[email protected]> |
| 4261 |
|
| 4262 |
* gnat1drv.adb (Adjust_Global_Switches): Reverse meaning of |
| 4263 |
-gnatd.z. |
| 4264 |
* debug.adb: Updating documentation. |
| 4265 |
* exp_ch6.adb (Expand_Call): Remove assertion. |
| 4266 |
|
| 4267 |
2014-08-01 Robert Dewar <[email protected]> |
| 4268 |
|
| 4269 |
* sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_util.adb, |
| 4270 |
sem_res.adb: Minor reformatting. |
| 4271 |
|
| 4272 |
2014-08-01 Vincent Celier <[email protected]> |
| 4273 |
|
| 4274 |
* make.adb (Initialize): Set Keep_Temporary_Files to True when |
| 4275 |
-dn is specified. |
| 4276 |
* makeusg.adb: Add line for new switch --keep-temp-files. |
| 4277 |
* makeutl.ads (Keep_Temp_Files_Option): New constant String. |
| 4278 |
* opt.ads (Keep_Temporary_Files): Document that it is also used |
| 4279 |
by gnatmake and gprbuild. |
| 4280 |
* switch-m.adb: Recognize new switch --keep-temp-files. |
| 4281 |
|
| 4282 |
2014-08-01 Tristan Gingold <[email protected]> |
| 4283 |
|
| 4284 |
* sem_ch9.adb (Analyze_Task_Type_Declaration): Move code from ... |
| 4285 |
* exp_ch9.adb (Make_Task_Create_Call): ... here. |
| 4286 |
|
| 4287 |
2014-08-01 Vincent Celier <[email protected]> |
| 4288 |
|
| 4289 |
* gnat1drv.adb: Do not try to get the target parameters when |
| 4290 |
invoked with -gnats. |
| 4291 |
|
| 4292 |
2014-08-01 Hristian Kirtchev <[email protected]> |
| 4293 |
|
| 4294 |
* exp_ch7.adb (Find_Last_Init): Nothing to do for an object |
| 4295 |
declaration subject to No_Initialization. |
| 4296 |
|
| 4297 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4298 |
|
| 4299 |
* sem_aggr.adb (Resolve_Array_Aggregate): Reject choice that |
| 4300 |
is a subtype with dynamic predicates, or a non-static subtype |
| 4301 |
with predicates. |
| 4302 |
* sem_ch3.adb (Analyze_Number_Declaration): Reject qualified |
| 4303 |
expression if subtype has a dynamic predicate. |
| 4304 |
(Constrain_Index): Reject subtype indication if subtype mark |
| 4305 |
has predicates. |
| 4306 |
(Inerit_Predicate_Flags): Inherit Has_Predicates as well. |
| 4307 |
(Make_Index): If index is a subtype indication, itype inhereits |
| 4308 |
predicate flags for subsequent testing. |
| 4309 |
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): New |
| 4310 |
procedure Check_Predicate_Use, to reject illegal uses of domains |
| 4311 |
of iteration that have dynamic predicates. |
| 4312 |
* sem_res.adb (Resolve_Slice): Reject slices given by a subtype |
| 4313 |
indication to which a predicate applies. |
| 4314 |
* sem_util.adb (Bad_Predicated_Subtype_Use): Add guard to |
| 4315 |
prevent cascaded errors when subtype is invalid. |
| 4316 |
|
| 4317 |
2014-08-01 Robert Dewar <[email protected]> |
| 4318 |
|
| 4319 |
* sem_ch10.adb: Minor reformatting. |
| 4320 |
|
| 4321 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4322 |
|
| 4323 |
* sem_ch6.adb (Same_Generic_Actual): Make function symmetric, |
| 4324 |
because either type may be a subtype of the other. |
| 4325 |
|
| 4326 |
2014-08-01 Vincent Celier <[email protected]> |
| 4327 |
|
| 4328 |
* makeusg.adb: Add documentation for debug switch -dn. |
| 4329 |
|
| 4330 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4331 |
|
| 4332 |
* sem_dim.adb (Process_Minus, Process_Divide): Label dimension |
| 4333 |
expression with standard operator and type, for pretty-printing |
| 4334 |
use, when in ASIS_Mode. When generating code dimensional analysis |
| 4335 |
is not involved and dimension expressions are handled statically, |
| 4336 |
and other operators are resolved in the usual way. |
| 4337 |
|
| 4338 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4339 |
|
| 4340 |
* sem_ch3.adb (Build_Derived_Record_Type): Remove setting of |
| 4341 |
Parent_Subtype in ASIS mode, leads to several failures. |
| 4342 |
* sem_ch4.adb (Analyze_Selected_Component): In an instance, |
| 4343 |
if the prefix is a type extension, check whether component is |
| 4344 |
declared in the parent type, possibly in a parent unit. Needed |
| 4345 |
in ASIS mode when Parent_Subtype is not set. |
| 4346 |
|
| 4347 |
2014-08-01 Robert Dewar <[email protected]> |
| 4348 |
|
| 4349 |
* sem_prag.adb: Minor reformatting. |
| 4350 |
* s-regpat.adb: Minor reformatting. |
| 4351 |
* sem_ch3.adb (Analyze_Object_Declaration): Do not set |
| 4352 |
Treat_As_Volatile on constants. |
| 4353 |
|
| 4354 |
2014-08-01 Tristan Gingold <[email protected]> |
| 4355 |
|
| 4356 |
* exp_ch9.adb (Make_Task_Create_Call): Improve error message. |
| 4357 |
|
| 4358 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4359 |
|
| 4360 |
* sem_ch10.adb (Analyze_Compilation_Unit): Do not place a |
| 4361 |
warning on a with_clause created for the renaming of a parent |
| 4362 |
unit in an explicit with_clause. |
| 4363 |
|
| 4364 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4365 |
|
| 4366 |
* sem_ch13.adb (Analyze_Aspect_Specifications, case Aspect_Import): |
| 4367 |
Set Is_Imported flag at once, to simplify subsequent legality |
| 4368 |
checks. Reject the aspect on an object whose declaration has an |
| 4369 |
explicit initial value. |
| 4370 |
* sem_prag.adb (Process_Import_Or_Interface): Use original node |
| 4371 |
to check legality of an initial value for an imported entity. |
| 4372 |
Set Is_Imported flag in case of error to prevent cascaded errors. |
| 4373 |
Do not set the Is_Imported flag if the pragma comes from an |
| 4374 |
aspect, because it is already done when analyzing the aspect. |
| 4375 |
|
| 4376 |
2014-08-01 Emmanuel Briot <[email protected]> |
| 4377 |
|
| 4378 |
* g-regpat.adb (Parse): Add support for non-capturing parenthesis. |
| 4379 |
|
| 4380 |
2014-08-01 Robert Dewar <[email protected]> |
| 4381 |
|
| 4382 |
* sem_ch7.adb, einfo.adb, einfo.ads, sem_ch13.adb: Minor change of |
| 4383 |
identifier name. |
| 4384 |
|
| 4385 |
2014-08-01 Hristian Kirtchev <[email protected]> |
| 4386 |
|
| 4387 |
* sem_ch3.adb (Analyze_Object_Contract): Enable the volatility |
| 4388 |
checks when the related variable comes from source. |
| 4389 |
* sem_res.adb (Resolve_Actuals): Enable the volatility checks |
| 4390 |
when the related actual parameter comes from source. Update comment. |
| 4391 |
* freeze.adb (Freeze_Record_Type): Do not freeze the designated |
| 4392 |
type of an array of pointers when the designated type is |
| 4393 |
class-wide and its root type is the record being currently frozen. |
| 4394 |
|
| 4395 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4396 |
|
| 4397 |
* sem_ch5.adb (Analyze_Iterator_Specification): Preserve Ekind |
| 4398 |
of renaming declaration created for domain of iteration. |
| 4399 |
* sem_aggr.adb (Resolve_Array_Aggregate): Better placement |
| 4400 |
for error messages on aggregates whose index subtypes have |
| 4401 |
predicates. The new placement avoids posting messages on previous |
| 4402 |
subtype declarations rather than on the aggregate itself. |
| 4403 |
* sem_disp.adb (Is_Inherited_Public_Operation): New predicate for |
| 4404 |
Add_Dispatching_Operation, to handle properly the overriding of |
| 4405 |
the predefined operations on controlled types, when the partial |
| 4406 |
view of a type is not visibly controlled. |
| 4407 |
|
| 4408 |
2014-08-01 Ben Brosgol <[email protected]> |
| 4409 |
|
| 4410 |
* gnat_ugn.texi: Add tutorial on portable fixed-point types as an |
| 4411 |
appendix. |
| 4412 |
|
| 4413 |
2014-08-01 Hristian Kirtchev <[email protected]> |
| 4414 |
|
| 4415 |
* einfo.adb (Is_Hidden_Non_Overridden_Subprogram): Remove the |
| 4416 |
assertion check as the attribute is defined for all entities. |
| 4417 |
(Set_Is_Hidden_Non_Overridden_Subprogram): Remove the assertion |
| 4418 |
check as the attribute is defined for all entities. |
| 4419 |
* einfo.ads Update the documentation of attribute |
| 4420 |
Is_Hidden_Non_Overridden_Subprogram. |
| 4421 |
* sem_ch7.adb (Install_Package_Entity): No need to check the |
| 4422 |
entity kind of the Id. |
| 4423 |
* sem_ch13.adb (Hide_Matching_Homograph): Update the comment on |
| 4424 |
usage. Ensure that the homographs are of the same entity kind |
| 4425 |
and not fully conformant. |
| 4426 |
(Hide_Non_Overridden_Subprograms): Update the comment on usage. |
| 4427 |
|
| 4428 |
2014-08-01 Robert Dewar <[email protected]> |
| 4429 |
|
| 4430 |
* inline.adb: Minor code reorganization. |
| 4431 |
* sem_ch12.adb, s-tasdeb.ads: Minor reformatting. |
| 4432 |
|
| 4433 |
2014-08-01 Robert Dewar <[email protected]> |
| 4434 |
|
| 4435 |
* inline.adb, s-os_lib.ads: Minor reformatting. |
| 4436 |
|
| 4437 |
2014-08-01 Arnaud Charlet <[email protected]> |
| 4438 |
|
| 4439 |
* s-tasdeb.ads, s-tasdeb.adb (Master_Hook, Master_Completed_Hook): New. |
| 4440 |
* s-tassta.adb (Task_Wrapper, Vulnerable_Complete_Master): Call new |
| 4441 |
hooks. |
| 4442 |
|
| 4443 |
2014-08-01 Yannick Moy <[email protected]> |
| 4444 |
|
| 4445 |
* inline.adb (Cannot_Inline): Issue info message instead of |
| 4446 |
warning for subprograms not inlined in GNATprove mode. |
| 4447 |
* sem_res.adb (Resolve_Call): Take body into account for deciding |
| 4448 |
whether subprogram can be inlined in GNATprove mode or not. |
| 4449 |
|
| 4450 |
2014-08-01 Claire Dross <[email protected]> |
| 4451 |
|
| 4452 |
* exp_util.ads (Get_First_Parent_With_Ext_Axioms_For_Entity): Renaming |
| 4453 |
of Get_First_Parent_With_External_Axiomatization_For_Entity for |
| 4454 |
shorter. |
| 4455 |
* sem_ch12.adb (Analyze_Associations): Only call Build_Wrapper |
| 4456 |
for parameters of packages with external axiomatization. |
| 4457 |
|
| 4458 |
2014-08-01 Robert Dewar <[email protected]> |
| 4459 |
|
| 4460 |
* sem_res.adb: Minor comment addition. |
| 4461 |
|
| 4462 |
2014-08-01 Arnaud Charlet <[email protected]> |
| 4463 |
|
| 4464 |
* s-crtl.ads, i-cstrea.ads, adaint.c, adaint.h, osint.adb, |
| 4465 |
s-fileio.adb (__gnat_fopen, __gnat_freopen): Remove vms_form parameter, |
| 4466 |
no longer used. |
| 4467 |
* s-os_lib.ads: Minor reformatting. |
| 4468 |
|
| 4469 |
2014-08-01 Arnaud Charlet <[email protected]> |
| 4470 |
|
| 4471 |
* exp_attr.adb (Is_Inline_Floating_Point_Attribute): Restore more |
| 4472 |
completely previous code since only GCC back-ends are prepared |
| 4473 |
to handle e.g. 'Machine attribute. |
| 4474 |
* targparm.adb, targparm.ads: Remove remaining refs and |
| 4475 |
handling of OpenVMS_On_Target, VAX_Float_On_Target and |
| 4476 |
RTX_RTSS_Kernel_Module_On_Target. |
| 4477 |
* hostparm.ads (OpenVMS, Max_Debug_Name_Length): Removed, |
| 4478 |
no longer used. |
| 4479 |
|
| 4480 |
2014-08-01 Robert Dewar <[email protected]> |
| 4481 |
|
| 4482 |
* exp_dist.adb, exp_attr.adb: Minor reformatting. |
| 4483 |
* sem_ch3.adb, mlib-tgt-specific-hpux.adb, a-direct.ads, |
| 4484 |
a-synbar-posix.adb, exp_ch9.adb, sem_ch10.adb, sem_prag.adb, |
| 4485 |
sem_ch12.adb, sem.ads, sem_res.adb, s-exctra.adb, s-soflin.ads, |
| 4486 |
g-alveop.ads, sem_ch8.adb, vxaddr2line.adb, sem_cat.ads: Remove |
| 4487 |
improper use of shall. |
| 4488 |
|
| 4489 |
2014-08-01 Robert Dewar <[email protected]> |
| 4490 |
|
| 4491 |
* sem_aggr.adb, exp_atag.adb, layout.adb, nlists.adb, nlists.ads, |
| 4492 |
exp_attr.adb, exp_ch9.adb, par-ch12.adb, exp_aggr.adb, |
| 4493 |
exp_ch3.adb: Minor reformatting & code reorganization. |
| 4494 |
|
| 4495 |
2014-08-01 Robert Dewar <[email protected]> |
| 4496 |
|
| 4497 |
* gnat_rm.texi: Remove VMS specific rules for pragma Ident. |
| 4498 |
* Makefile.rtl, adaint.c, gnat_rm.texi, s-asthan.adb, s-asthan.ads, |
| 4499 |
s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads, |
| 4500 |
s-po32gl.adb, s-po32gl.ads, s-vaflop.adb, s-vaflop.ads, s-vmexta.adb, |
| 4501 |
s-vmexta.ads, sem_vfpt.adb, sem_vfpt.ads, socket.c: Remove VMS specific |
| 4502 |
code. |
| 4503 |
* gcc-interface/decl.c, gcc-interface/Makefile.in, |
| 4504 |
gcc-interface/Make-lang.in: Ditto. Also remove refs to rTX. |
| 4505 |
|
| 4506 |
2014-08-01 Pascal Obry <[email protected]> |
| 4507 |
|
| 4508 |
* s-os_lib.ads: Rename File_Size to Large_File_Size. |
| 4509 |
|
| 4510 |
2014-08-01 Robert Dewar <[email protected]> |
| 4511 |
|
| 4512 |
* a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads, |
| 4513 |
a-numaux-darwin.adb, a-numaux-darwin.ads, a-numaux.ads, |
| 4514 |
a-numaux-libc-x86.ads: Fix bad package header comments. |
| 4515 |
* elists.ads, elists.adb (Append_New_Elmt): New procedure. |
| 4516 |
* gnat_rm.texi, a-calend.adb, gnatcmd.adb, einfo.adb, einfo.ads, |
| 4517 |
checks.adb, sem_prag.adb, sem_prag.ads, rtsfind.ads, freeze.adb, |
| 4518 |
sem_util.adb, sem_attr.adb, exp_dbug.adb, exp_dbug.ads, gnat1drv.adb, |
| 4519 |
targparm.adb, targparm.ads, exp_ch6.adb, switch-b.adb, s-shasto.ads, |
| 4520 |
stand.ads, s-auxdec.ads, opt.adb, opt.ads, mlib-tgt.ads, s-fatgen.adb, |
| 4521 |
s-fatgen.ads, system.ads, snames.ads-tmpl, s-stalib.ads, |
| 4522 |
s-os_lib.adb: Remove VMS-specific code. |
| 4523 |
|
| 4524 |
2014-08-01 Arnaud Charlet <[email protected]> |
| 4525 |
|
| 4526 |
* exp_attr.adb (Is_Inline_Floating_Point_Attribute): Revert to |
| 4527 |
previous state in CodePeer_Mode. |
| 4528 |
|
| 4529 |
2014-08-01 Robert Dewar <[email protected]> |
| 4530 |
|
| 4531 |
* hostparm.ads: Put back definition of OpenVMS as False to aid |
| 4532 |
the transition process. |
| 4533 |
* sem_ch7.adb: Minor reformatting. |
| 4534 |
* prj-env.adb: Minor code fix. |
| 4535 |
* gnat_rm.texi: Complete previous change. |
| 4536 |
* sem_ch3.adb: Minor reformatting. |
| 4537 |
* sem_ch6.adb: Minor reformatting. |
| 4538 |
* sem_elab.adb: Minor reformatting. |
| 4539 |
* exp_strm.adb: Complete previous change. |
| 4540 |
|
| 4541 |
2014-08-01 Vincent Celier <[email protected]> |
| 4542 |
|
| 4543 |
* sem_warn.adb (Warn_On_Unreferenced_Entity): Do not issue a |
| 4544 |
warning when a constant is unreferenced and its type has pragma |
| 4545 |
Unreferenced_Objects. |
| 4546 |
|
| 4547 |
2014-08-01 Hristian Kirtchev <[email protected]> |
| 4548 |
|
| 4549 |
* einfo.adb: Flag2 is now known as |
| 4550 |
Is_Hidden_Non_Overridden_Subprogram. |
| 4551 |
(Is_Hidden_Non_Overridden_Subprogram): New routine. |
| 4552 |
(Set_Is_Hidden_Non_Overridden_Subprogram): New routine. |
| 4553 |
(Write_Entity_Fields): Output Flag2. |
| 4554 |
* einfo.ads: New attribute Is_Hidden_Non_Overridden_Subprogram |
| 4555 |
along with occurrences in entities. |
| 4556 |
(Is_Hidden_Non_Overridden_Subprogram): New routine and pragma Inline. |
| 4557 |
(Set_Is_Hidden_Non_Overridden_Subprogram): New routine |
| 4558 |
and pragma Inline. |
| 4559 |
* sem_ch7.adb (Install_Package_Entity): Do not enter implicitly |
| 4560 |
declared non-overriden homographs into visibility. |
| 4561 |
* sem_ch13.adb (Freeze_Entity_Checks): Hide all |
| 4562 |
implicitly declared non-overriden homographs. |
| 4563 |
(Hide_Non_Overridden_Subprograms): New routine. |
| 4564 |
|
| 4565 |
2014-08-01 Robert Dewar <[email protected]> |
| 4566 |
|
| 4567 |
* snames.ads-tmpl, s-os_lib.adb, s-os_lib.ads, s-fileio.adb: Remove |
| 4568 |
VMS-specific code. |
| 4569 |
* prj-conf.adb: Minor reformatting. |
| 4570 |
* xr_tabls.adb (Read_File): Restore code which was enabled on |
| 4571 |
non VMS platforms before. |
| 4572 |
* prj-env.adb (Initialize_Default_Project_Path): Ditto. |
| 4573 |
* sem_ch5.adb: Minor reformatting. |
| 4574 |
* lib-writ.adb, lib-writ.ads, bindgen.adb, sem_vfpt.adb, |
| 4575 |
sem_vfpt.ads, ali.adb, ali.ads, opt.ads, bcheck.adb, exp_strm.adb: |
| 4576 |
Remove VMS-specific code. |
| 4577 |
|
| 4578 |
2014-08-01 Vincent Celier <[email protected]> |
| 4579 |
|
| 4580 |
* make.adb (Await_Compile): Remove loop that was only needed |
| 4581 |
for VMS. |
| 4582 |
|
| 4583 |
2014-08-01 Robert Dewar <[email protected]> |
| 4584 |
|
| 4585 |
* a-calcon.ads, a-direct.adb, a-dirval-mingw.adb, a-dirval.adb, |
| 4586 |
a-dirval.ads, a-except-2005.adb, a-excpol-abort.adb, |
| 4587 |
a-numaux-darwin.ads, a-numaux.ads, bindgen.adb, bindusg.adb, |
| 4588 |
einfo.adb, einfo.ads, err_vars.ads, errout.ads, errutil.adb, |
| 4589 |
exp_ch3.adb, exp_ch4.adb, exp_ch7.adb, exp_ch7.ads, fname-uf.adb, |
| 4590 |
fname.adb, fname.ads, freeze.adb, g-debpoo.adb, g-dirope.ads, |
| 4591 |
g-excact.ads, g-expect.ads, g-socket.adb, g-socket.ads, g-sothco.ads, |
| 4592 |
g-traceb.ads, gnat_rm.texi, gnatlink.adb, gnatls.adb, i-cstrea.adb, |
| 4593 |
krunch.adb, krunch.ads, layout.adb, lib-util.adb, make.adb, |
| 4594 |
mlib.adb, osint-b.adb, osint-b.ads, osint-c.adb, osint.adb, |
| 4595 |
osint.ads, output.ads, par.adb, prj-conf.adb, prj-env.adb, |
| 4596 |
prj-makr.adb, prj-nmsc.adb, prj.adb, prj.ads, repinfo.adb, rtsfind.adb, |
| 4597 |
rtsfind.ads, s-excmac-gcc.ads, s-fatgen.adb, s-mastop.ads, |
| 4598 |
s-parame-ae653.ads, s-parame-hpux.ads, s-parame-vxworks.ads, |
| 4599 |
s-parame.ads, s-soflin.ads, s-stoele.adb, s-tasini.adb, |
| 4600 |
s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-mingw.ads, |
| 4601 |
s-taspri-posix-noaltstack.ads, s-taspri-posix.ads, |
| 4602 |
s-taspri-solaris.ads, s-taspri-vxworks.ads, s-trasym.ads, |
| 4603 |
sem_ch12.adb, sem_ch4.adb, sem_eval.adb, sem_intr.adb, sem_mech.adb, |
| 4604 |
sem_mech.ads, sem_prag.adb, sem_res.adb, sem_util.adb, sem_util.ads, |
| 4605 |
sinfo.adb, sinfo.ads, sinput-c.adb, symbols.ads, targparm.adb, |
| 4606 |
treepr.adb, types.ads, xr_tabls.adb, xr_tabls.ads: Remove VMS |
| 4607 |
specific code and comments. |
| 4608 |
|
| 4609 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4610 |
|
| 4611 |
* sem_ch5.adb (Analyze_Iterator_Specification): New procedure |
| 4612 |
Check_Reverse_Iteration, to verify the legality of the Reverse |
| 4613 |
indicator on various container types, and to detect illegal |
| 4614 |
reverse iterations on containers that only supoort forward |
| 4615 |
iteration. |
| 4616 |
|
| 4617 |
2014-08-01 Vincent Celier <[email protected]> |
| 4618 |
|
| 4619 |
* gnatcmd.adb: Remove the VMS specific stuff. Integrate in |
| 4620 |
procedure GNATCmd the relevant declarations from packages VMS_Cmds |
| 4621 |
and VMS_Conv. |
| 4622 |
* gnatcmd.ads: Update comments to remove any trace of VMS |
| 4623 |
|
| 4624 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4625 |
|
| 4626 |
* sem_ch12.adb: sem_ch12.adb (Build_Wrapper): Capture entity for |
| 4627 |
defaulted actual that is an operator, before building wrapper |
| 4628 |
for it in GNATprove mode. Restrict construction of wrapper to |
| 4629 |
actuals that are operators. |
| 4630 |
|
| 4631 |
2014-08-01 Vincent Celier <[email protected]> |
| 4632 |
|
| 4633 |
* vms_conv.adb, vms_conv.ads, vms_data.ads, vms_cmds.ads: Remove VMS |
| 4634 |
specific packages no longer needed. |
| 4635 |
|
| 4636 |
2014-08-01 Pascal Obry <[email protected]> |
| 4637 |
|
| 4638 |
* s-os_lib.ads (System.CRTL): Move with clause to body. |
| 4639 |
(File_Size): New type. |
| 4640 |
(File_Length64): Use it. |
| 4641 |
(File_Length): Restore previous spec returning a Long_Integer. |
| 4642 |
* s-os_lib.adb (System.CRTL): Move with clause here. |
| 4643 |
|
| 4644 |
2014-08-01 Vincent Celier <[email protected]> |
| 4645 |
|
| 4646 |
* mlib-prj.adb: Update comments to remove any mention of VMS. |
| 4647 |
|
| 4648 |
2014-08-01 Arnaud Charlet <[email protected]> |
| 4649 |
|
| 4650 |
* ug_words, xgnatugn.adb, gcc-interface/Make-lang.in: Remove |
| 4651 |
xgnatugn.adb and ug_words. |
| 4652 |
|
| 4653 |
2014-08-01 Eric Botcazou <[email protected]> |
| 4654 |
|
| 4655 |
* exp_attr.adb (Expand_N_Attribute_Reference): Check whether |
| 4656 |
expansion can be avoid for Machine, Model and Rounding. |
| 4657 |
(Is_Inline_Floating_Point_Attribute): Return true for Machine |
| 4658 |
& Model, as well as Rounding if wrapped in a conversion to an |
| 4659 |
integer type. |
| 4660 |
* sem_res.adb (Simplify_Type_Conversion): Deal with Rounding as well. |
| 4661 |
* gcc-interface/gigi.h (fp_arith_may_widen): Declare. |
| 4662 |
* gcc-interface/utils.c (fp_arith_may_widen): New global variable. |
| 4663 |
* gcc-interface/misc.c (enumerate_modes): Compute it. |
| 4664 |
* gcc-interface/trans.c (FP_ARITH_MAY_WIDEN): Delete. |
| 4665 |
(lvalue_required_for_attribute_p): Deal with Descriptor_Size, |
| 4666 |
Machine and Model. |
| 4667 |
(Attribute_to_gnu) <Attr_Model>: New case. |
| 4668 |
<Attr_Machine>): Likewise. |
| 4669 |
(convert_with_check): Test |
| 4670 |
fp_arith_may_widen variable. |
| 4671 |
|
| 4672 |
2014-08-01 Pascal Obry <[email protected]> |
| 4673 |
|
| 4674 |
* adaint.h (GNAT_FOPEN): New definition for Windows. |
| 4675 |
(GNAT_OPEN): Likewise. |
| 4676 |
(GNAT_STAT): Likewise. |
| 4677 |
(GNAT_FSTAT): Likewise. |
| 4678 |
(GNAT_LSTAT): Likewise. |
| 4679 |
(GNAT_STRUCT_STAT): Likewise. |
| 4680 |
* adaint.c (__gnat_stat): Fix computation of file size for |
| 4681 |
Windows. |
| 4682 |
|
| 4683 |
2014-08-01 Vincent Celier <[email protected]> |
| 4684 |
|
| 4685 |
* Makefile.rtl: Minor comment update. |
| 4686 |
|
| 4687 |
2014-08-01 Vincent Celier <[email protected]> |
| 4688 |
|
| 4689 |
* Make-generated.in: Remove dependencies for vms-help. |
| 4690 |
|
| 4691 |
2014-08-01 Gary Dismukes <[email protected]> |
| 4692 |
|
| 4693 |
* makeutl.ads, opt.ads: Minor grammar fixes. |
| 4694 |
* makeutl.adb: Minor code reorganization. |
| 4695 |
|
| 4696 |
2014-08-01 Arnaud Charlet <[email protected]> |
| 4697 |
|
| 4698 |
* gcc-interface/Makefile.in, gcc-interface/Make-lang.in, |
| 4699 |
gnatsym.adb: Remove gnatsym (VMS only tool). |
| 4700 |
|
| 4701 |
2014-08-01 Ben Brosgol <[email protected]> |
| 4702 |
|
| 4703 |
* gnat_ugn.texi, projects.texi, xgnatugn.adb: Removed all VMS |
| 4704 |
conditionalization from gnat_ugn.texi and projects.texi, and updated |
| 4705 |
(considerably simplified) xgnatugn.adb, to be removed soon. |
| 4706 |
|
| 4707 |
2014-08-01 Vincent Celier <[email protected]> |
| 4708 |
|
| 4709 |
* debug.adb: Remove doc for gnatmake/gprbuild switch -ds. |
| 4710 |
* make.adb (List_Bad_Compilations): Use Opt.No_Exit_Message |
| 4711 |
instead of Debug.Debug_Flag_S. |
| 4712 |
* makeutl.adb (Finish_Program, Fail_Program): Use Opt flag |
| 4713 |
No_Exit_Message instead of Debug.Debug_Flag_S to suppress exit |
| 4714 |
error messages. |
| 4715 |
* makeutl.ads (No_Exit_Message_Option): New constant string |
| 4716 |
for switch --no-exit-message. |
| 4717 |
* opt.ads (No_Exit_Message): New Boolean flag, defaulted to False. |
| 4718 |
* switch-m.adb (Scan_Make_Switches): Recognize new switch |
| 4719 |
--no-exit-message. |
| 4720 |
|
| 4721 |
2014-08-01 Arnaud Charlet <[email protected]> |
| 4722 |
|
| 4723 |
* exp_vfpt.adb, exp_vfpt.ads: Removed, no longer used. |
| 4724 |
* gcc-interface/Make-lang.in: Remove exp_vfpt.o |
| 4725 |
|
| 4726 |
2014-08-01 Javier Miranda <[email protected]> |
| 4727 |
|
| 4728 |
* inline.ads (Inlined_Calls, Backend_Calls, |
| 4729 |
Backend_Inlined_Subps, Backend_Not_Inlined_Subps): Declarations |
| 4730 |
moved to inline.adb (Cannot_Inline): Update documentation. |
| 4731 |
(Check_And_Build_Body_To_Inline): Renamed. |
| 4732 |
(List_Inlining_Info): Subprogram moved here from package exp_ch6. |
| 4733 |
* inline.adb (Check_Inlining_Restrictions): New local variable. |
| 4734 |
(Inlined_Calls, Backend_Calls, Backend_Inlined_Subps, |
| 4735 |
Backend_Not_Inlined_Subps): Declarations moved here |
| 4736 |
from inline.ads (Number_Of_Statements): Removed. |
| 4737 |
(Remove_Pragmas): Avoid duplicated version of this subprogram. |
| 4738 |
(Build_Body_To_Inline): Code cleanup. |
| 4739 |
(Build_Body_To_Inline.Has_Excluded_Statament): Removed. |
| 4740 |
(Check_And_Build_Body_To_Inline): Renamed. Code cleanup. |
| 4741 |
(Check_Body_To_Inline): Removed. |
| 4742 |
(Generate_Body_To_Inline): Renamed as Generate_Subprogram_Body. |
| 4743 |
(Has_Excluded_Declaration): No action if not |
| 4744 |
Check_Inlining_Restrictions. |
| 4745 |
(Has_Excluded_Statement): No action if not Check_Inlining_Restrictions. |
| 4746 |
(Initialize): Initialize the lists of inlined calls and subprograms. |
| 4747 |
(List_Inlining_Info): Subprogram moved here from package exp_ch6. |
| 4748 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Update call |
| 4749 |
to Check_And_Build_Body_To_Inline since it has been renamed as |
| 4750 |
Check_And_Split_Unconstrained_Function |
| 4751 |
* exp_ch6.ad[sb] (List_Inlining_Info): Subprogram moved to |
| 4752 |
package inline. |
| 4753 |
* gnat1drv.adb Update call to Inline.List_Inlining_Info. |
| 4754 |
|
| 4755 |
2014-08-01 Vincent Celier <[email protected]> |
| 4756 |
|
| 4757 |
* debug.adb: Add documentation for new debug switch -ds. |
| 4758 |
* make.adb (List_Bad_Compilations): Do not issue any message |
| 4759 |
when switch -ds is specified. |
| 4760 |
* makeutl.adb (Fail_Program): Do not issue any message when |
| 4761 |
-ds is specified. |
| 4762 |
(Finish_Program): Ditto. |
| 4763 |
|
| 4764 |
2014-08-01 Robert Dewar <[email protected]> |
| 4765 |
|
| 4766 |
* s-exnint.adb, s-exnint.ads, s-wwdwch.ads, s-carsi8.ads, |
| 4767 |
s-casi32.ads, indepsw.adb, a-timoau.ads, s-explli.adb, s-explli.ads, |
| 4768 |
s-casi16.ads, s-powtab.ads, g-wistsp.ads, a-ztmoau.adb, |
| 4769 |
indepsw-gnu.adb, s-imgllb.ads, types.adb, gnat.ads, s-proinf.adb, |
| 4770 |
indepsw-aix.adb, s-caun64.ads, s-imgllw.ads, s-traces-default.adb, |
| 4771 |
s-vxwork-x86.ads, s-expllu.adb, s-exnlli.adb, s-exnlli.ads, |
| 4772 |
s-traces.adb, widechar.ads, stand.adb, s-expint.adb, |
| 4773 |
s-tratas-default.adb, s-expint.ads, s-geveop.ads, s-caun32.ads, |
| 4774 |
s-expuns.adb, s-mantis.adb, s-mantis.ads, s-caun16.ads, s-tasinf.adb, |
| 4775 |
s-memcop.ads, s-dsaser.ads, s-imgbiu.ads, a-szmzco.ads, g-strspl.ads, |
| 4776 |
s-casi64.ads, g-zstspl.ads, indepsw-mingw.adb, tree_io.adb, |
| 4777 |
s-boarop.ads, uname.ads, s-fore.adb, s-fore.ads, g-timsta.adb, |
| 4778 |
g-timsta.ads, s-assert.adb, s-vector.ads, s-tratas.adb, |
| 4779 |
s-tratas.ads: Minor fix to copyright notices. |
| 4780 |
|
| 4781 |
2014-08-01 Eric Botcazou <[email protected]> |
| 4782 |
|
| 4783 |
* sinfo.ads: Remove long obsolete comment. |
| 4784 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4785 |
|
| 4786 |
* sem_util.adb: Add guard to setting of No_Predicate_On_Actual. |
| 4787 |
* sem_ch3.adb: Minor reformatting. |
| 4788 |
|
| 4789 |
2014-08-01 Pascal Obry <[email protected]> |
| 4790 |
|
| 4791 |
* cstreams.c: Only enable large file support on know supported |
| 4792 |
platforms. Add missing defines/includes. |
| 4793 |
|
| 4794 |
2014-08-01 Ed Schonberg <[email protected]> |
| 4795 |
|
| 4796 |
* einfo.ads, einfo.adb New flags No_Predicate_On_Actual and |
| 4797 |
No_Dynamic_Predicate_On_Actual, to enforce the generic contract |
| 4798 |
on generic units that contain constructs that forbid subtypes |
| 4799 |
with predicates. |
| 4800 |
* sem_ch3.adb (Analyze_Subtype_Declaration, Process_Subtype): |
| 4801 |
Inherit flags indicating the presence of predicates in subtype |
| 4802 |
declarations with and without constraints. |
| 4803 |
(Inherit_Predicate_Flags): Utility for the above. |
| 4804 |
* sem_util.adb (Bad_Predicated_Subtype_Use): In a generic context, |
| 4805 |
indicate that the actual cannot have predicates, and preserve |
| 4806 |
warning. In an instance, report error if actual has predicates |
| 4807 |
and the construct appears in a package declaration. |
| 4808 |
* sem_ch12.adb (Diagnose_Predicated_Actual): Report error |
| 4809 |
for an actual with predicates, if the corresponding formal |
| 4810 |
carries No_Predicate_On_Actual or (in the case of a loop) |
| 4811 |
No_Dynamic_Predicate_On_Actual. |
| 4812 |
* sem_ch13.adb (Build_Predicate_Functions); Do not build a |
| 4813 |
Static_Predicate function if the type is non-static (in the |
| 4814 |
presence of previous errors), |
| 4815 |
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Set flag |
| 4816 |
No_Dynamic_Predicate_On_Actual in a generic context, to enforce |
| 4817 |
generic contract on actuals that cannot have predicates. |
| 4818 |
|
| 4819 |
2014-08-01 Pascal Obry <[email protected]> |
| 4820 |
|
| 4821 |
* a-direct.adb (C_Size): Returns an int64. |
| 4822 |
* osint.adb (System.CRTL): New with clause. |
| 4823 |
(File_Length.Internal): Returns an int64. |
| 4824 |
* s-os_lib.ads (File_Length): Returns an int64. |
| 4825 |
|
| 4826 |
2014-08-01 Robert Dewar <[email protected]> |
| 4827 |
|
| 4828 |
* gnatchop.adb, gnatcmd.adb, make.adb, mlib-prj.adb, bindgen.adb, |
| 4829 |
mlib.ads, butil.adb, clean.adb, binde.adb, gnatls.adb, gnatname.adb, |
| 4830 |
osint.adb, krunch.adb: Minor reformatting. |
| 4831 |
|
| 4832 |
2014-08-01 Robert Dewar <[email protected]> |
| 4833 |
|
| 4834 |
* inline.adb, inline.ads, fe.h, einfo.adb, einfo.ads, sem_util.adb, |
| 4835 |
sem_util.ads, exp_ch4.adb, exp_ch11.adb, exp_ch6.adb, cstand.adb, |
| 4836 |
sem_mech.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, snames.ads-tmpl: |
| 4837 |
Remove VMS-specific code. |
| 4838 |
* gcc-interface/decl.c, gcc-interface/trans.c: Ditto. |
| 4839 |
|
| 4840 |
2014-08-01 Arnaud Charlet <[email protected]> |
| 4841 |
|
| 4842 |
* binde.adb, bindgen.adb, butil.adb, clean.adb, gnatbind.adb, |
| 4843 |
gnatchop.adb, gnatcmd.adb, gnatls.adb, gnatname.adb, krunch.adb, |
| 4844 |
make.adb, makeutl.adb, memtrack.adb, mlib-prj.adb, mlib.adb, |
| 4845 |
mlib.ads, tempdir.adb: Remove VMS handling. |
| 4846 |
|
| 4847 |
2014-08-01 Pascal Obry <[email protected]> |
| 4848 |
|
| 4849 |
* adaint.h, adaint.c (__gnat_file_length): Returns an __int64. |
| 4850 |
(__gnat_named_file_length): Likewise. |
| 4851 |
(__gnat_file_length_attr): Likewise. |
| 4852 |
* a-direct.adb (C_Size): Use size_t as returned type. |
| 4853 |
* osint.adb (File_Length): Adjust spec for Internal routine |
| 4854 |
(returns size_t). |
| 4855 |
* s-os_lib.adb (File_Length): Now returns a CRTL.size_t. |
| 4856 |
(System.CRTL): With claused moved to spec. |
| 4857 |
* s-os_lib.ads (System.CRTL): With clause moved to here. |
| 4858 |
|
| 4859 |
2014-08-01 Pascal Obry <[email protected]> |
| 4860 |
|
| 4861 |
* adaint.h, adaint.c (__gnat_open): Added. |
| 4862 |
* s-crtl.ads (open): Import __gnat_open for large file support. |
| 4863 |
|
| 4864 |
2014-08-01 Robert Dewar <[email protected]> |
| 4865 |
|
| 4866 |
* sem_case.adb (Dup_Choice): Improve message for integer constants. |
| 4867 |
|
| 4868 |
2014-08-01 Arnaud Charlet <[email protected]> |
| 4869 |
|
| 4870 |
* gnatlink.adb: Remove special handling of VMS, RTX and JVM. |
| 4871 |
|
| 4872 |
2014-08-01 Pascal Obry <[email protected]> |
| 4873 |
|
| 4874 |
* adaint.h (GNAT_OPEN): Defines as open64 where supported. |
| 4875 |
* adaint.c (GNAT_OPEN): Uses new macro where needed. |
| 4876 |
|
| 4877 |
2014-07-31 Eric Botcazou <[email protected]> |
| 4878 |
|
| 4879 |
* gcc-interface/utils.c (lookup_and_insert_pad_type): New function |
| 4880 |
extracted from... |
| 4881 |
(maybe_pad_type): ...here. Call it to canonicalize the pad type. |
| 4882 |
* gcc-interface/gigi.h: Update comment. |
| 4883 |
|
| 4884 |
2014-07-31 Javier Miranda <[email protected]> |
| 4885 |
|
| 4886 |
* debug.adb Remove documentation of -gnatd.k (no longer needed). |
| 4887 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Code cleanup. |
| 4888 |
* inline.ads (Backend_Inlined_Subps): New |
| 4889 |
Elist. (Backend_Not_Inlined_Subps): New Elist. |
| 4890 |
(Has_Excluded_Declaration): Declaration previously located in |
| 4891 |
* inline.adb (Has_Excluded_Statement): Declaration previously |
| 4892 |
located in inline.adb |
| 4893 |
* inline.adb (Has_Single_Return): Moved out of |
| 4894 |
Build_Body_To_Inline to avoid having duplicated code. |
| 4895 |
(Number_Of_Statements): New subprogram. |
| 4896 |
(Register_Backend_Inlined_Subprogram): New subprogram. |
| 4897 |
(Register_Backend_Not_Inlined_Subprogram): New subprogram. |
| 4898 |
(Add_Inlined_Subprogram): Register backend inlined subprograms and |
| 4899 |
also register subprograms that cannot be inlined by the backend. |
| 4900 |
(Has_Excluded_Declaration): Moved out of Build_Body_To_Inline |
| 4901 |
to avoid having duplicated code. Replace occurrences of |
| 4902 |
Debug_Flag_Dot_K by Back_End_Inlining. |
| 4903 |
* sem_res.adb (Resolve_Call): Code cleanup. |
| 4904 |
* exp_ch6.adb (Expand_Call): Complete previous patch. Replace |
| 4905 |
occurrence of Debug_Flag_Dot_K by Back_End_Inlining. |
| 4906 |
(List_Inlining_Info): Add listing of subprograms passed to the |
| 4907 |
backend and listing of subprograms that cannot be inlined by |
| 4908 |
the backend. |
| 4909 |
* sem_ch12.adb, sem_ch3.adb Replace occurrences of |
| 4910 |
Debug_Flag_Dot_K by Back_End_Inlining. |
| 4911 |
|
| 4912 |
2014-07-31 Robert Dewar <[email protected]> |
| 4913 |
|
| 4914 |
* nlists.ads: Minor code fix (remove unwise Inline for |
| 4915 |
List_Length). |
| 4916 |
|
| 4917 |
2014-07-31 Arnaud Charlet <[email protected]> |
| 4918 |
|
| 4919 |
* einfo.adb: Remove VMS specific code. |
| 4920 |
* exp_attr.adb: Remove VAX specific code. |
| 4921 |
* set_targ.adb: Remove handling of VAX_Float. |
| 4922 |
* sem_vfpt.adb: Remove references to Vax_Native. |
| 4923 |
* sem_attr.adb (Is_VAX_Float): Remove ref to VAX_Native. |
| 4924 |
|
| 4925 |
2014-07-31 Robert Dewar <[email protected]> |
| 4926 |
|
| 4927 |
* sem_ch4.adb: Minor reformatting. |
| 4928 |
|
| 4929 |
2014-07-31 Arnaud Charlet <[email protected]> |
| 4930 |
|
| 4931 |
* gcc-interface/trans.c, gcc-interface/misc.c: Remove references |
| 4932 |
to VMS. Misc clean ups. |
| 4933 |
* gcc-interface/Makefile.in (gnatlib-shared-vms): Remove. |
| 4934 |
|
| 4935 |
2014-07-31 Robert Dewar <[email protected]> |
| 4936 |
|
| 4937 |
* cstand.adb, einfo.adb, einfo.ads, errout.adb, exp_attr.adb, |
| 4938 |
exp_prag.adb, frontend.adb, interfac.ads, |
| 4939 |
par-prag.adb, s-auxdec.ads, s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, |
| 4940 |
s-fvaffl.ads, s-fvagfl.ads, s-vaflop.ads, sem_attr.adb, sem_attr.ads, |
| 4941 |
sem_ch13.adb, sem_ch3.adb, sem_ch8.adb, sem_prag.adb, snames.adb-tmpl, |
| 4942 |
snames.ads-tmpl: Remove obsolete VMS-specific code. |
| 4943 |
|
| 4944 |
2014-07-31 Robert Dewar <[email protected]> |
| 4945 |
|
| 4946 |
* sem_ch3.adb, sem_ch13.adb: Minor reformatting. |
| 4947 |
|
| 4948 |
2014-07-31 Arnaud Charlet <[email protected]> |
| 4949 |
|
| 4950 |
* a-intnam-linux.ads: Minor: update obsolete comments. |
| 4951 |
* s-taasde.adb: Minor: fix comment header. |
| 4952 |
|
| 4953 |
2014-07-31 Arnaud Charlet <[email protected]> |
| 4954 |
|
| 4955 |
* s-auxdec-vms-ia64.adb, s-parame-vms-alpha.ads, s-asthan-vms-alpha.adb, |
| 4956 |
s-tpopde-vms.adb, s-mastop-vms.adb, s-tpopde-vms.ads, s-taprop-vms.adb, |
| 4957 |
mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads, s-inmaop-vms.adb, |
| 4958 |
g-enblsp-vms-alpha.adb, s-ransee-vms.adb, s-osprim-vms.adb, |
| 4959 |
s-osprim-vms.ads, g-socthi-vms.adb, g-socthi-vms.ads, system-vms_64.ads, |
| 4960 |
s-osinte-vms.adb, s-osinte-vms.ads, g-eacodu-vms.adb, |
| 4961 |
s-vaflop-vms-alpha.adb, s-parame-vms-ia64.ads, a-dirval-vms.adb, |
| 4962 |
a-caldel-vms.adb, mlib-tgt-specific-vms-alpha.adb, s-tasdeb-vms.adb, |
| 4963 |
symbols-vms.adb, a-intnam-vms.ads, g-expect-vms.adb, |
| 4964 |
symbols-processing-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb, |
| 4965 |
s-traent-vms.adb, s-traent-vms.ads, i-cstrea-vms.adb, a-numaux-vms.ads, |
| 4966 |
symbols-processing-vms-ia64.adb, s-interr-vms.adb, s-memory-vms_64.adb, |
| 4967 |
s-memory-vms_64.ads, g-enblsp-vms-ia64.adb, s-taspri-vms.ads, |
| 4968 |
s-auxdec-vms_64.ads, s-intman-vms.adb, s-intman-vms.ads, |
| 4969 |
s-tpopsp-vms.adb, s-asthan-vms-ia64.adb, a-calend-vms.adb, |
| 4970 |
a-calend-vms.ads, system-vms-ia64.ads, s-auxdec-vms-alpha.adb: Removed. |
| 4971 |
* namet.h (Is_Non_Ada_Error): Remove. |
| 4972 |
|
| 4973 |
2014-07-31 Robert Dewar <[email protected]> |
| 4974 |
|
| 4975 |
* exp_util.adb, lib-writ.adb, sem_ch12.adb, s-direio.adb: Minor |
| 4976 |
reformatting. |
| 4977 |
|
| 4978 |
2014-07-31 Hristian Kirtchev <[email protected]> |
| 4979 |
|
| 4980 |
* exp_attr.adb (Expand_Loop_Entry_Attribute): Update the comment |
| 4981 |
which demonstrates the expansion of while loops subject to |
| 4982 |
attribute 'Loop_Entry. The condition of a while loop along with |
| 4983 |
related condition actions is now wrapped in a function. Instead |
| 4984 |
of repeating the condition, the expansion now calls the function. |
| 4985 |
|
| 4986 |
2014-07-31 Ed Schonberg <[email protected]> |
| 4987 |
|
| 4988 |
* sem_case.adb (Check_Against_Predicate): Correct off-by-one |
| 4989 |
error when reporting of missing values in a case statement for |
| 4990 |
a type with a static predicate. |
| 4991 |
(Check_Choices): Reject a choice given by a subtype to which a |
| 4992 |
Dynamic_Predicate applies. |
| 4993 |
* sem_ch3.adb (Analyze_Subtype_Declaration): Inherit |
| 4994 |
Has_Dynamic_Predicate_Aspect flag from parent. |
| 4995 |
|
| 4996 |
2014-07-31 Ed Schonberg <[email protected]> |
| 4997 |
|
| 4998 |
* sem_ch13.adb (Analyze_Aspect_Specifications): A predicate |
| 4999 |
cannot apply to a subtype of an incomplete type. |
| 5000 |
(Is_Static_Choice): Treat an Others_Clause as static. The |
| 5001 |
staticness of the expression and of the range are checked |
| 5002 |
elsewhere. |
| 5003 |
|
| 5004 |
2014-07-31 Pascal Obry <[email protected]> |
| 5005 |
|
| 5006 |
* adaint.h (__gnat_ftell64): Added. |
| 5007 |
(__gnat_fseek64): Added. |
| 5008 |
(__int64): Added. |
| 5009 |
* cstreams.c (__int64): Removed. |
| 5010 |
|
| 5011 |
2014-07-31 Pascal Obry <[email protected]> |
| 5012 |
|
| 5013 |
* a-stream.ads (Stream_Element_Offset): Now a signed 64bit type. |
| 5014 |
* i-cstrea.ads, s-crtl.ads (fseek64): Offset is always a 64bit value. |
| 5015 |
(ftell64): Always returns a 64bit value. |
| 5016 |
* cstreams.c (int64): New definition. |
| 5017 |
(_FILE_OFFSET_BITS): Set to 64 to enable 64bit offset support. |
| 5018 |
(__gnat_ftell64): Always returns a 64bit value. The implemenation now |
| 5019 |
uses ftello() on UNIX. |
| 5020 |
(__gnat_fseek64): Offset is always a 64bit value. The |
| 5021 |
implementation now uses fseeko() on UNIX. |
| 5022 |
* a-ststio.adb, s-direio.adb (Set_Position): Simplify code, |
| 5023 |
always use fseek64 to set the offset. |
| 5024 |
(Size): Simplify code, always use fseek64/ftell64. |
| 5025 |
* s-direio.ads (Count): Now an int64. |
| 5026 |
* g-socket.ads (Vector_Element): Adjust definition for Length |
| 5027 |
to be a size_t. This matches the C definition and avoid using |
| 5028 |
a 64bit integer on 32bit platforms now that Count is always 64bit. |
| 5029 |
* g-socthi-mingw.adb (Ada.Streams): Removed as not used anymore. |
| 5030 |
(C_Recvmsg): Change some conversion to account for change in |
| 5031 |
Vector_Element. |
| 5032 |
(C_Sendmsg): Likewise. |
| 5033 |
|
| 5034 |
2014-07-31 Robert Dewar <[email protected]> |
| 5035 |
|
| 5036 |
* cstand.adb (Create_Standard): Remove handling of -gnatdm flag. |
| 5037 |
* debug.adb: Remove documentation of -gnatdm flag. |
| 5038 |
* gnat1drv.adb (Adjust_Global_Switches): Remove handling of |
| 5039 |
-gnatdm flag. |
| 5040 |
|
| 5041 |
2014-07-31 Arnaud Charlet <[email protected]> |
| 5042 |
|
| 5043 |
* lib-writ.adb (Write_Unit_Information): Fix case where U = |
| 5044 |
No_Unit. |
| 5045 |
|
| 5046 |
2014-07-31 Claire Dross <[email protected]> |
| 5047 |
|
| 5048 |
* exp_util.adb, exp_util.ads |
| 5049 |
(Get_First_Parent_With_External_Axiomatization_For_Entity): |
| 5050 |
New routine to find the first parent of an entity with |
| 5051 |
a pragma Annotate (GNATprove, External_Axiomatization). |
| 5052 |
(Has_Annotate_Pragma_For_External_Axiomatization): New function |
| 5053 |
to check if a package has a pragma Annotate (GNATprove, |
| 5054 |
External_Axiomatization). |
| 5055 |
* einfo.ads, einfo.adb (Is_Generic_Actual_Subprogram): New |
| 5056 |
flag on the entity for the declaration created for a formal |
| 5057 |
subprogram in an instance. This is a renaming declaration, |
| 5058 |
or in GNATprove_Mode the declaration of an expression function |
| 5059 |
that captures the axiomatization of the actual. |
| 5060 |
* sem_ch6.adb (Analyze_Expression_Function): For a |
| 5061 |
Generic_Actual_Subprogram, place body immediately after the |
| 5062 |
declaration because it may be used in a subsequent declaration |
| 5063 |
in the instance. |
| 5064 |
* sem_ch12.adb (Build_Wrapper): Add code to handle instances where |
| 5065 |
the actual is a function, not an operator. Handle functions with |
| 5066 |
one and two parameters and binary and unary operators. |
| 5067 |
|
| 5068 |
2014-07-31 Pascal Obry <[email protected]> |
| 5069 |
|
| 5070 |
* cstreams.c (__gnat_is_regular_file_fd): Removed. |
| 5071 |
* adaint.c (__gnat_is_regular_file_fd): Added. |
| 5072 |
|
| 5073 |
2014-07-31 Robert Dewar <[email protected]> |
| 5074 |
|
| 5075 |
* exp_strm.adb: Minor reformatting. |
| 5076 |
|
| 5077 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5078 |
|
| 5079 |
* sem_ch12.adb (Build_Wrapper): New procedure, subsidiary to |
| 5080 |
Analyze_Associations, to create a wrapper around operators that |
| 5081 |
are actuals to formal subprograms. This is done in GNATProve |
| 5082 |
mode in order to propagate the contracts of the operators to |
| 5083 |
the body of the instance. |
| 5084 |
|
| 5085 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5086 |
|
| 5087 |
* sem_attr.adb (Analyze_Attribute, case 'Old): The reference is |
| 5088 |
legal if within an aspect specification for a generic subprogram. |
| 5089 |
|
| 5090 |
2014-07-31 Javier Miranda <[email protected]> |
| 5091 |
|
| 5092 |
* gnat1drv.adb (Back_End_Inlining): Set to false if |
| 5093 |
Suppress_All_Inlining is set. |
| 5094 |
* debug.adb: Adding documentation for -gnatd.z. |
| 5095 |
* inline.adb (Add_Inlined_Body): Extend the -gnatn2 |
| 5096 |
processing to -gnatn1 for calls to Inline_Always routines. |
| 5097 |
(Add_Inlined_Subprogram): Remove previous patch. |
| 5098 |
|
| 5099 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5100 |
|
| 5101 |
* sem_ch13.adb (Check_One_Function): Apply properly the static |
| 5102 |
semantic rules for indexing aspects and the functions they denote. |
| 5103 |
|
| 5104 |
2014-07-31 Javier Miranda <[email protected]> |
| 5105 |
|
| 5106 |
* debug.adb: Complete documentation of -gnatd.z. |
| 5107 |
|
| 5108 |
2014-07-31 Bob Duff <[email protected]> |
| 5109 |
|
| 5110 |
* gnat_ugn.texi: Minor doc fixes. |
| 5111 |
|
| 5112 |
2014-07-31 Robert Dewar <[email protected]> |
| 5113 |
|
| 5114 |
* sem_aggr.adb (Resolve_Array_Aggregate): Fix posting of missing |
| 5115 |
index value. |
| 5116 |
|
| 5117 |
2014-07-31 Tristan Gingold <[email protected]> |
| 5118 |
|
| 5119 |
* s-unstyp.ads (Packed_Byte): Make this type universal aliasing. |
| 5120 |
(Packed_Bytes1): Make component aliased. |
| 5121 |
|
| 5122 |
2014-07-31 Robert Dewar <[email protected]> |
| 5123 |
|
| 5124 |
* s-unstyp.ads, s-fileio.adb: Minor reformatting. |
| 5125 |
|
| 5126 |
2014-07-31 Robert Dewar <[email protected]> |
| 5127 |
|
| 5128 |
* inline.adb, gnat1drv.adb, exp_ch6.adb, s-fileio.adb: Minor |
| 5129 |
reformatting. |
| 5130 |
|
| 5131 |
2014-07-31 Eric Botcazou <[email protected]> |
| 5132 |
|
| 5133 |
* gcc-interface/utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP |
| 5134 |
on array references here, now done more selectively in trans.c. |
| 5135 |
|
| 5136 |
2014-07-31 Doug Rupp <[email protected]> |
| 5137 |
|
| 5138 |
* gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0. |
| 5139 |
|
| 5140 |
2014-07-31 Hristian Kirtchev <[email protected]> |
| 5141 |
|
| 5142 |
* sem_util.adb (Is_Effectively_Volatile): New routine. |
| 5143 |
|
| 5144 |
2014-07-31 Fedor Rybin <[email protected]> |
| 5145 |
|
| 5146 |
* gnat_ugn.texi: Document --test-duration option for gnattest. |
| 5147 |
|
| 5148 |
2014-07-31 Javier Miranda <[email protected]> |
| 5149 |
Eric Botcazou <[email protected]> |
| 5150 |
|
| 5151 |
* opt.ads (Back_End_Inlining): New variable which controls |
| 5152 |
activation of inlining by back-end expansion. |
| 5153 |
* gnat1drv.adb (Adjust_Global_Switches): Initialize Back_End_Inlining |
| 5154 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build |
| 5155 |
the body to be inlined by the frontend if Back_End_Inlining |
| 5156 |
is enabled. |
| 5157 |
* exp_ch6.adb (Register_Backend_Call): Moved to inline.adb. |
| 5158 |
(Expand_Call): If backend inlining is enabled let the backend to |
| 5159 |
handle inlined subprograms. |
| 5160 |
* inline.ads (Register_Backend_Call): Moved here from exp_ch6 |
| 5161 |
* inline.adb (Register_Backend_Call): Moved here from exp_ch6. |
| 5162 |
(Add_Inlined_Subprogram): Add subprograms when Back_End_Inlining is set. |
| 5163 |
(Must_Inline): Do not return Inline_Call if Back_End_Inlining is |
| 5164 |
enabled. |
| 5165 |
* debug.adb Document -gnatd.z |
| 5166 |
* fe.h Import Back_End_Inlining variable. |
| 5167 |
* gcc-interface/utils.c (create_subprog_decl): If Back_End_Inlining is |
| 5168 |
enabled then declare attribute "always inline" |
| 5169 |
* gcc-interface/decl.c, gcc-interface/trans.c, |
| 5170 |
gcc-interface/gigi.h: Add handling of Inline_Always pragma. |
| 5171 |
|
| 5172 |
2014-07-31 Robert Dewar <[email protected]> |
| 5173 |
|
| 5174 |
* a-ngelfu.ads: Minor comment fix. |
| 5175 |
|
| 5176 |
2014-07-31 Hristian Kirtchev <[email protected]> |
| 5177 |
|
| 5178 |
* freeze.adb (Freeze_Record_Type): Replace all calls to |
| 5179 |
Is_SPARK_Volatile with Is_Effectively_Volatile and update |
| 5180 |
related comments. |
| 5181 |
* sem_ch3.adb (Analyze_Object_Contract, Process_Discriminants): |
| 5182 |
Replace all calls to Is_SPARK_Volatile with |
| 5183 |
Is_Effectively_Volatile and update related comments. |
| 5184 |
* sem_ch5.adb (Analyze_Iterator_Specification, |
| 5185 |
Analyze_Loop_Parameter_Specification): Replace all calls to |
| 5186 |
Is_SPARK_Volatile with Is_Effectively_Volatile and update |
| 5187 |
related comments. |
| 5188 |
* sem_ch6.adb (Process_Formals): Replace all calls to |
| 5189 |
Is_SPARK_Volatile with Is_Effectively_Volatile and update |
| 5190 |
related comments. |
| 5191 |
* sem_ch12.adb (Instantiate_Object): Replace the call to |
| 5192 |
Is_SPARK_Volatile_Object with Is_Effectively_Volatile_Object |
| 5193 |
and update related comment. |
| 5194 |
* sem_prag.adb (Analyze_External_Property_In_Decl_Part, |
| 5195 |
Analyze_Global_Item): Replace all calls to Is_SPARK_Volatile |
| 5196 |
with Is_Effectively_Volatile and update related comments. |
| 5197 |
* sem_res.adb (Resolve_Actuals, Resolve_Entity_Name): Replace |
| 5198 |
all calls to Is_SPARK_Volatile with Is_Effectively_Volatile and |
| 5199 |
update related comments. |
| 5200 |
* sem_util.adb (Has_Enabled_Property, |
| 5201 |
Variable_Has_Enabled_Property): Replace all calls |
| 5202 |
to Is_SPARK_Volatile with Is_Effectively_Volatile and |
| 5203 |
update related comments. |
| 5204 |
(Is_Effectively_Volatile): New routine. |
| 5205 |
(Is_Effectively_Volatile_Object): New routine. |
| 5206 |
(Is_SPARK_Volatile): Removed. |
| 5207 |
(Is_SPARK_Volatile_Object): Removed. |
| 5208 |
* sem_util.ads (Is_Effectively_Volatile): New routine. |
| 5209 |
(Is_Effectively_Volatile_Object): New routine. |
| 5210 |
(Is_SPARK_Volatile): Removed. |
| 5211 |
(Is_SPARK_Volatile_Object): Removed. |
| 5212 |
|
| 5213 |
2014-07-31 Pascal Obry <[email protected]> |
| 5214 |
|
| 5215 |
* s-fileio.adb (Open): Make sure a shared file gets inserted into |
| 5216 |
the global list atomically. This ensures that the file descriptor |
| 5217 |
won't be freed because another tasks is closing the file. |
| 5218 |
|
| 5219 |
2014-07-31 Robert Dewar <[email protected]> |
| 5220 |
|
| 5221 |
* sem_ch3.adb (Process_Range_Expr_In_Decl): Add comments on |
| 5222 |
generation of _FIRST and _LAST variables even in GNATprove_Mode. |
| 5223 |
* gnat_ugn.texi: Minor editing. |
| 5224 |
* sem_prag.adb (Ensure_Aggregate_Form): Make sure generated |
| 5225 |
aggregate is marked Comes_From_Source if argument is CFS. |
| 5226 |
|
| 5227 |
2014-07-31 Pascal Obry <[email protected]> |
| 5228 |
|
| 5229 |
* s-fileio.adb: Remove obsolete comment. |
| 5230 |
|
| 5231 |
2014-07-31 Vincent Celier <[email protected]> |
| 5232 |
|
| 5233 |
* a-strbou.ads ("=" (Bounded_String, Bounded_String): Add |
| 5234 |
overriding keyword before function to avoid error when compiler |
| 5235 |
is called with -gnatyO (check overriding indicators). |
| 5236 |
|
| 5237 |
2014-07-31 Tucker Taft <[email protected]> |
| 5238 |
|
| 5239 |
* gnat_ugn.texi: Add a paragraph pointing the reader |
| 5240 |
to the "plugins" example. |
| 5241 |
|
| 5242 |
2014-07-31 Hristian Kirtchev <[email protected]> |
| 5243 |
|
| 5244 |
* freeze.adb (Freeze_Expression): Document the |
| 5245 |
purpose of the parent chain traversal. |
| 5246 |
|
| 5247 |
2014-07-31 Robert Dewar <[email protected]> |
| 5248 |
|
| 5249 |
* checks.ads, checks.adb (Activate_Overflow_Check): Do not set flag for |
| 5250 |
unconstrained fpt ops. |
| 5251 |
|
| 5252 |
2014-07-31 Pascal Obry <[email protected]> |
| 5253 |
|
| 5254 |
* s-fileio.adb (Open): Make sure a shared file gets inserted into |
| 5255 |
the global list atomically. This ensures that the file descriptor |
| 5256 |
won't be freed because another tasks is closing the file. |
| 5257 |
|
| 5258 |
2014-07-31 Vincent Celier <[email protected]> |
| 5259 |
|
| 5260 |
* projects.texi: Minor spelling error fix. |
| 5261 |
|
| 5262 |
2014-07-31 Robert Dewar <[email protected]> |
| 5263 |
|
| 5264 |
* gnat_rm.texi: Document No_Elaboration_Code_All restriction. |
| 5265 |
* lib-writ.adb, lib-load.adb: Initialize No_Elab_Code field in unit |
| 5266 |
information. |
| 5267 |
* lib.ads, lib.adb (No_Elab_Code): New field in unit information. |
| 5268 |
* restrict.adb (Process_Restriction_Synonyms): Add handling |
| 5269 |
of No_Elaboration_Code_All. |
| 5270 |
* restrict.ads (Process_Restriction_Synonyms): Now handles |
| 5271 |
No_Elaboration_Code_All. |
| 5272 |
* sem_ch10.adb (Analyze_Context): Enforce transitive with for |
| 5273 |
No_Elaboration_Code_All. |
| 5274 |
* sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): |
| 5275 |
Handle setting of No_Elab_Code in unit information. Handle |
| 5276 |
No_Elaboration_Code_All. |
| 5277 |
* snames.ads-tmpl (Name_No_Elaboration_Code): New name for |
| 5278 |
pragma processing. |
| 5279 |
(Name_No_Elaboration_Code_All): New name for pragma processing. |
| 5280 |
|
| 5281 |
2014-07-31 Eric Botcazou <[email protected]> |
| 5282 |
|
| 5283 |
* exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array |
| 5284 |
types with a null range and use the Esize of the component |
| 5285 |
instead of its RM_Size to identify appropriate values. |
| 5286 |
|
| 5287 |
2014-07-31 Hristian Kirtchev <[email protected]> |
| 5288 |
|
| 5289 |
* freeze.adb Add with and use clause for Aspects. |
| 5290 |
(Freeze_Expression): Emit an error when a volatile constant lacks |
| 5291 |
Boolean aspect Import. |
| 5292 |
(Has_Boolean_Aspect_Import): New routine. |
| 5293 |
|
| 5294 |
2014-07-31 Gary Dismukes <[email protected]> |
| 5295 |
|
| 5296 |
* exp_util.adb: Minor reformatting. |
| 5297 |
|
| 5298 |
2014-07-31 Vincent Celier <[email protected]> |
| 5299 |
|
| 5300 |
* errutil.adb (Error_Msg): Make sure that all components of |
| 5301 |
the error message object are initialized. |
| 5302 |
|
| 5303 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5304 |
|
| 5305 |
* sem_ch4.adb (Try_Container_Indexing): If the container type is |
| 5306 |
class-wide, use specific type to locate iteration primitives. |
| 5307 |
* sem_ch13.adb (Check_Indexing_Functions): Add legality checks for |
| 5308 |
rules in RM 4.1.6 (Illegal_Indexing): New diagnostic procedure. |
| 5309 |
Minor error message reformating. |
| 5310 |
* exp_ch5.adb (Expand_Iterator_Loop): Handle properly Iterator |
| 5311 |
aspect for a derived type. |
| 5312 |
|
| 5313 |
2014-07-31 Robert Dewar <[email protected]> |
| 5314 |
|
| 5315 |
* debug.adb: Document debug flag d.X. |
| 5316 |
|
| 5317 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5318 |
|
| 5319 |
* sem_util.ads (Find_Specific_Type): Moved here from exp_disp.adb. |
| 5320 |
* sem_util.adb (Find_Specific_Type): If type is untagged private, |
| 5321 |
retrieve full view so that primitive operations can be located. |
| 5322 |
* exp_disp.adb Move Find_Specific_Type to sem_util. |
| 5323 |
* exp_ch4.adb (Expand_N_Op_Eq): If operands are class-wide, use |
| 5324 |
Find_Specific_Type to locate primitive equality. |
| 5325 |
* exp_util.adb (Make_CW_Equivalent_Type): A class_wide equivalent |
| 5326 |
type does not require initialization. |
| 5327 |
* exp_attr.adb (Compile_Stream_Body_In_Scope): Within an instance |
| 5328 |
body all visibility is established, and the enclosing package |
| 5329 |
declarations must not be installed. |
| 5330 |
|
| 5331 |
2014-07-31 Yannick Moy <[email protected]> |
| 5332 |
|
| 5333 |
* sem_parg.adb, sem_prag.ads (Collect_Subprogram_Inputs_Outputs): |
| 5334 |
Make subprogram public. |
| 5335 |
|
| 5336 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5337 |
|
| 5338 |
* exp_ch9.adb (Expand_N_Protected_Type_Declaration): New |
| 5339 |
predicate Discriminated_Size, to distinguish between private |
| 5340 |
components that depend on discriminants from those whose size |
| 5341 |
depends on some other non-static expression. |
| 5342 |
|
| 5343 |
2014-07-31 Nicolas Setton <[email protected]> |
| 5344 |
|
| 5345 |
* g-exptty.adb (Close): Fix binding to Waitpid: use the |
| 5346 |
tty version. |
| 5347 |
|
| 5348 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5349 |
|
| 5350 |
* sem_ch3.adb (Make_Index): Reject properly the use of 'Length |
| 5351 |
in a discrete range, when 'range was probably intended. |
| 5352 |
|
| 5353 |
2014-07-31 Robert Dewar <[email protected]> |
| 5354 |
|
| 5355 |
* sem_warn.adb, sem_warn.ads (Has_Junk_Name): Moved from body to spec. |
| 5356 |
|
| 5357 |
2014-07-31 Robert Dewar <[email protected]> |
| 5358 |
|
| 5359 |
* frontend.adb: Minor reformatting. |
| 5360 |
* sem.adb: Minor reformatting. |
| 5361 |
* sem_ch6.adb (Analyze_Null_Procedure): Set proper sloc for |
| 5362 |
identifiers on rewrite. |
| 5363 |
* par.adb: Minor comment updates. |
| 5364 |
* a-ngelfu.adb (Cos): Minor simplification. |
| 5365 |
* par-ch13.adb (Get_Aspect_Specifications): Improve messages |
| 5366 |
and recovery for bad aspect. |
| 5367 |
* exp_ch3.adb: Code clean up. |
| 5368 |
* sem_util.ads: Minor comment correction. |
| 5369 |
* sem_ch13.adb (Check_Array_Type): Properly handle large types. |
| 5370 |
* sem_ch3.adb: Code clean up. |
| 5371 |
* binderr.ads: Minor comment correction. |
| 5372 |
|
| 5373 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5374 |
|
| 5375 |
* exp_disp.adb (Expand_Interface_Conversion): A call whose |
| 5376 |
prefix is a static conversion to an interface type that is not |
| 5377 |
class-wide is not dispatching. |
| 5378 |
|
| 5379 |
2014-07-31 Robert Dewar <[email protected]> |
| 5380 |
|
| 5381 |
* inline.adb, s-traceb.adb, s-traceb-hpux.adb, memtrack.adb, |
| 5382 |
s-traceb-mastop.adb: Minor reformatting. |
| 5383 |
|
| 5384 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5385 |
|
| 5386 |
* exp_ch3.adb (Expand_Record_Extension): In ASIS_Mode perform |
| 5387 |
expansion, to handle properly visibility of selected components |
| 5388 |
in instance bodies. |
| 5389 |
|
| 5390 |
2014-07-31 Robert Dewar <[email protected]> |
| 5391 |
|
| 5392 |
* par-ch13.adb (Get_Aspect_Specifications): Set Inside_Depends. |
| 5393 |
* par-ch2.adb (P_Pragma): Set Inside_Depends. |
| 5394 |
* par-ch4.adb (P_Simple_Expression): Pass Inside_Depends to |
| 5395 |
Check_Unary_Plus_Or_Minus. |
| 5396 |
* scans.ads (Inside_Depends): New flag. |
| 5397 |
* scng.adb (Scan): Pass Inside_Depends to Check_Arrow. |
| 5398 |
* style.ads: Add Inside_Depends parameter to Check_Arrow Add |
| 5399 |
Inside_Depends parameter to Check_Unary_Plus_Or_Minus. |
| 5400 |
* styleg.adb (Check_Arrow): Handle Inside_Depends case. |
| 5401 |
(Check_Unary_Plus_Or_Minus): Handle Inside_Depends case. |
| 5402 |
* styleg.ads: Add Inside_Depends parameter to Check_Arrow Add. |
| 5403 |
Inside_Depends parameter to Check_Unary_Plus_Or_Minus. |
| 5404 |
|
| 5405 |
2014-07-31 Javier Miranda <[email protected]> |
| 5406 |
|
| 5407 |
* s-vaflop.adb Move the body of function T_To_G before |
| 5408 |
T_To_D. Required for frontend inlining. |
| 5409 |
* inline.adb (Has_Excluded_Contract): New subprogram used to |
| 5410 |
check if a subprogram inlined by the frontend has contracts |
| 5411 |
which cannot be inlined. |
| 5412 |
|
| 5413 |
2014-07-31 Bob Duff <[email protected]> |
| 5414 |
|
| 5415 |
* s-traceb.adb, s-traceb-hpux.adb, s-traceb-mastop.adb: |
| 5416 |
(Call_Chain): Add 1 to number of frames to skip, to account for |
| 5417 |
the fact that there's one more frame on the stack. |
| 5418 |
* gcc-interface/Makefile.in (s-traceb.o): Adjust rules. |
| 5419 |
|
| 5420 |
2014-07-31 Robert Dewar <[email protected]> |
| 5421 |
|
| 5422 |
* checks.adb (Enable_Overflow_Check): More precise setting of |
| 5423 |
Do_Overflow_Check flag for division. |
| 5424 |
|
| 5425 |
2014-07-31 Eric Botcazou <[email protected]> |
| 5426 |
|
| 5427 |
* exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject packed |
| 5428 |
array types with implementation type. |
| 5429 |
|
| 5430 |
2014-07-31 Hristian Kirtchev <[email protected]> |
| 5431 |
|
| 5432 |
* sem_ch10.adb (Process_State): Remove local variable Name. Add |
| 5433 |
local variable Decl. Partially declare an abstract state by |
| 5434 |
generating an entity and storing it in the state declaration. |
| 5435 |
* sem_prag.adb (Create_Abstract_State): Fully declare a |
| 5436 |
semi-declared abstract state. |
| 5437 |
|
| 5438 |
2014-07-31 Robert Dewar <[email protected]> |
| 5439 |
|
| 5440 |
* prj-nmsc.adb: Minor reformatting. |
| 5441 |
|
| 5442 |
2014-07-31 Bob Duff <[email protected]> |
| 5443 |
|
| 5444 |
* s-tasdeb.adb (System.Tasking.Debug): Remove |
| 5445 |
all usage of the secondary stack from this package. |
| 5446 |
|
| 5447 |
2014-07-31 Hristian Kirtchev <[email protected]> |
| 5448 |
|
| 5449 |
* freeze.adb (Freeze_Expression): Update the loop in charge |
| 5450 |
of finding a proper insertion place for freeze nodes to handle |
| 5451 |
N_Expression_With_Actions nodes. |
| 5452 |
|
| 5453 |
2014-07-31 Robert Dewar <[email protected]> |
| 5454 |
|
| 5455 |
* sem_util.adb, a-ngelfu.ads, prj-nmsc.adb, prj-conf.adb: Minor |
| 5456 |
reformatting. |
| 5457 |
|
| 5458 |
2014-07-31 Pascal Obry <[email protected]> |
| 5459 |
|
| 5460 |
* prj-nmsc.adb: Minor reformatting. |
| 5461 |
|
| 5462 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5463 |
|
| 5464 |
* sem_util.adb (Has_Preelaborable_Initialization): Check that |
| 5465 |
type is tagged before checking whether a user-defined Initialize |
| 5466 |
procedure is present. |
| 5467 |
|
| 5468 |
2014-07-31 Gary Dismukes <[email protected]> |
| 5469 |
|
| 5470 |
* a-ngelfu.ads (Sqrt): Augment postcondition. |
| 5471 |
|
| 5472 |
2014-07-31 Pascal Obry <[email protected]> |
| 5473 |
|
| 5474 |
* prj-nmsc.adb (Check_Library_Attributes): An aggegate library |
| 5475 |
directory and ALI directory must be different than all object |
| 5476 |
and library directories of aggregated projects. |
| 5477 |
|
| 5478 |
2014-07-31 Vincent Celier <[email protected]> |
| 5479 |
|
| 5480 |
* prj-pars.adb, prj-conf.ads, prj-conf.adb (Locate_Runtime): Move spec |
| 5481 |
to package body, as it is not called from outside. Remove argument |
| 5482 |
Project_Tree, no longer used. When runtime cannot be found, |
| 5483 |
call Raise_Invalid_Config instead of failing the program. |
| 5484 |
|
| 5485 |
2014-07-31 Robert Dewar <[email protected]> |
| 5486 |
|
| 5487 |
* bindgen.adb (Gen_Output_File_Ada): Generate pragma Suppress |
| 5488 |
(Overflow_Check). |
| 5489 |
* gnatlink.adb (Process_Args): Remove generation of -gnato0, |
| 5490 |
no longer needed. |
| 5491 |
|
| 5492 |
2014-07-31 Robert Dewar <[email protected]> |
| 5493 |
|
| 5494 |
* gnat_ugn.texi: Document new switch -gnato0. |
| 5495 |
* sem_ch3.ads: Minor reformatting. |
| 5496 |
* gnatlink.adb (Process_Args): Compile bind file with -gnato0 |
| 5497 |
(we do not want overflow checks when incrementing elaboration |
| 5498 |
counters). |
| 5499 |
* einfo.ads: Minor reformatting. |
| 5500 |
|
| 5501 |
2014-07-31 Robert Dewar <[email protected]> |
| 5502 |
|
| 5503 |
* exp_ch5.adb, freeze.adb, exp_ch3.adb: Minor comment correction. |
| 5504 |
* s-arit64.adb: Minor reformatting. |
| 5505 |
|
| 5506 |
2014-07-31 Robert Dewar <[email protected]> |
| 5507 |
|
| 5508 |
* gnat1drv.adb (Adjust_Global_Switches): Default for overflow |
| 5509 |
checking is enabled except in GNAT_Mode. |
| 5510 |
* switch-c.adb (Scan_Front_End_Switches): Implement -gnato0 |
| 5511 |
(suppress overflow checks). |
| 5512 |
|
| 5513 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5514 |
|
| 5515 |
* exp_ch3.adb (Expand_Freeze_Record_Type): Do not build an |
| 5516 |
invariant procedure for an internally generated subtype that is |
| 5517 |
created for an object of a class-wide type. |
| 5518 |
|
| 5519 |
2014-07-31 Vincent Celier <[email protected]> |
| 5520 |
|
| 5521 |
* prj-nmsc.adb, errutil.adb: Make code similar to Errout. |
| 5522 |
|
| 5523 |
2014-07-31 Gary Dismukes <[email protected]> |
| 5524 |
|
| 5525 |
* gnat_rm.texi, sem_aux.ads, einfo.ads, sem_util.ads, sem_ch6.adb, |
| 5526 |
exp_disp.adb: Minor reformatting. |
| 5527 |
|
| 5528 |
2014-07-31 Robert Dewar <[email protected]> |
| 5529 |
|
| 5530 |
* exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, exp_ch9.adb, |
| 5531 |
sem_ch7.adb, checks.adb, s-exctra.adb, exp_ch6.adb, exp_disp.adb, |
| 5532 |
exp_dist.adb, sem_ch13.adb, exp_strm.adb, exp_ch3.adb: Minor |
| 5533 |
reformatting. |
| 5534 |
|
| 5535 |
2014-07-31 Robert Dewar <[email protected]> |
| 5536 |
|
| 5537 |
* sem_ch13.adb: Minor reformatting. |
| 5538 |
|
| 5539 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5540 |
|
| 5541 |
* exp_ch3.adb (Build_Invariant_Checks): If the enclosing record |
| 5542 |
is an unchecked_union, warn that invariants will not be checked |
| 5543 |
on components that have them. |
| 5544 |
|
| 5545 |
2014-07-31 Robert Dewar <[email protected]> |
| 5546 |
|
| 5547 |
* freeze.adb (Freeze_Entity): Check for error of |
| 5548 |
Type_Invariant'Class applied to a untagged type. |
| 5549 |
* sem_ch6.adb (Analyze_Null_Procedure): Unconditionally rewrite |
| 5550 |
as null body, so that we perform error checks even if expansion |
| 5551 |
is off. |
| 5552 |
|
| 5553 |
2014-07-31 Ed Schonberg <[email protected]> |
| 5554 |
|
| 5555 |
* sem_ch13.adb (Build_Invariant_Procedure): If body of procedure |
| 5556 |
is already present, nothing to do. |
| 5557 |
* exp_ch3.adb (Build_Component_Invariant_Call): For an access |
| 5558 |
component, check whether the access type has an invariant before |
| 5559 |
checking the designated type. |
| 5560 |
(Build_Record_Invariant_Proc): Change suffix of generated |
| 5561 |
name to prevent ambiguity when record type has invariants |
| 5562 |
in addition to those of components, and two subprograms are |
| 5563 |
constructed. Consistent with handling of array types. |
| 5564 |
(Insert_Component_Invariant_Checks): Build invariant procedure |
| 5565 |
body when one has not been created yet, in the case of composite |
| 5566 |
types that are completions and whose full declarations carry |
| 5567 |
invariants. |
| 5568 |
|
| 5569 |
2014-07-30 Thomas Quinot <[email protected]> |
| 5570 |
|
| 5571 |
* gnat_rm.texi: Minor doc fixes. |
| 5572 |
|
| 5573 |
2014-07-30 Robert Dewar <[email protected]> |
| 5574 |
|
| 5575 |
* a-rbtgbo.adb, sem_ch13.adb: Minor reformatting. |
| 5576 |
|
| 5577 |
2014-07-30 Vincent Celier <[email protected]> |
| 5578 |
|
| 5579 |
* errutil.adb (Set_Msg_Text): Process tilde ('~'): no processing |
| 5580 |
of error message. |
| 5581 |
* prj-nmsc.adb (Locate_Directory): Use a tilde ('~') in the |
| 5582 |
message to report that a directory cannot be created, to avoid |
| 5583 |
processing of the directory path that may contains special |
| 5584 |
insertion characters. |
| 5585 |
|
| 5586 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5587 |
|
| 5588 |
* a-crdlli.ads: Place declaration of Empty_List after full type |
| 5589 |
declaration for Curosr, to prevent freezing error. |
| 5590 |
|
| 5591 |
2014-07-30 Robert Dewar <[email protected]> |
| 5592 |
|
| 5593 |
* get_targ.adb: Minor code reorganization. |
| 5594 |
* prj-proc.adb, prj-proc.ads, get_targ.ads, sem_ch6.adb: Minor |
| 5595 |
reformatting. |
| 5596 |
|
| 5597 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5598 |
|
| 5599 |
* a-cbhase.adb: a-cbhase.adb (Insert): Raise Constraint_Error, |
| 5600 |
not Program_Error, when attempting to remove an element not in |
| 5601 |
the set. This is the given semantics for all set containers. |
| 5602 |
|
| 5603 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5604 |
|
| 5605 |
* a-rbtgbo.adb (Delete_Node_Sans_Free): If |
| 5606 |
element is not present in tree return rather than violating |
| 5607 |
an assertion. Constraint_Error will be raised in the caller if |
| 5608 |
element is not in the container. |
| 5609 |
|
| 5610 |
2014-07-30 Arnaud Charlet <[email protected]> |
| 5611 |
|
| 5612 |
* set_targ.adb (Read_Target_Dependent_Values): New subprogram. |
| 5613 |
(elab body): Add provision for default target config file. |
| 5614 |
* get_targ.ads, get_targ.adb (Get_Back_End_Config_File): New subprogram. |
| 5615 |
|
| 5616 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5617 |
|
| 5618 |
* a-cbhase.adb (Delete): Raise Constraint_Error, not Program_Error, |
| 5619 |
when attempting to remove an element not in the set. This is |
| 5620 |
the given semantics for all set containers. |
| 5621 |
* a-cborse.adb (Delete): Attempt removal first, to check for |
| 5622 |
tampering, before checking whether this is an attempt to |
| 5623 |
delete a non-existing element, and in fthe latter case raise |
| 5624 |
Constraint_Error. |
| 5625 |
|
| 5626 |
2014-07-30 Vincent Celier <[email protected]> |
| 5627 |
|
| 5628 |
* prj-proc.adb (Recursive_Process): Do not create a new |
| 5629 |
Project_Id if the project is already in the list of projects of |
| 5630 |
the tree. |
| 5631 |
|
| 5632 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5633 |
|
| 5634 |
* sem_ch6.adb (Analyze_Function_Return): Reject a return expression |
| 5635 |
whose type is an incomplete formal type. |
| 5636 |
(Analyze_Return_Type): Reject a return type that is an untagged |
| 5637 |
imcomplete formal type. |
| 5638 |
(Process_Formals): Reject a formal parameter whose type is an |
| 5639 |
untagged formal incomplete type. |
| 5640 |
* sem_res.adb (Resolve_Actuals): Reject an actual whose type is |
| 5641 |
an untagged formal incomplete type. |
| 5642 |
|
| 5643 |
2014-07-30 Robert Dewar <[email protected]> |
| 5644 |
|
| 5645 |
* gnat_ugn.texi: Minor spelling correction. |
| 5646 |
* makeutl.adb: Minor code reorganization. |
| 5647 |
* exp_ch4.adb, exp_aggr.adb, exp_ch3.adb: Minor reformatting. |
| 5648 |
|
| 5649 |
2014-07-30 Robert Dewar <[email protected]> |
| 5650 |
|
| 5651 |
* einfo.ads (Has_Unchecked_Union): Document that this is used |
| 5652 |
to check for illegal Valid_Scalars attribute references. |
| 5653 |
* exp_attr.adb (Build_Record_VS_Func): New function |
| 5654 |
(Expand_N_Attribute_Reference, case Valid_Scalars): Call this |
| 5655 |
function. |
| 5656 |
* gnat_rm.texi: Document 'Valid_Scalars cannot be applied to |
| 5657 |
Unchecked_Union Add note on 'Valid_Scalars generating a lot |
| 5658 |
of code. |
| 5659 |
* sem_attr.adb (Analyze_Attribute, case Valid_Scalars): Give |
| 5660 |
error on attempt to apply Valid_Scalars to Unchecked_Union type. |
| 5661 |
|
| 5662 |
2014-07-30 Steve Baird <[email protected]> |
| 5663 |
|
| 5664 |
* exp_ch4.adb (Expand_N_Indexed_Component): Disable optimized handling |
| 5665 |
of A(I..J)(K) in CodePeer_Mode. |
| 5666 |
|
| 5667 |
2014-07-30 Ben Brosgol <[email protected]> |
| 5668 |
|
| 5669 |
* gnat_ugn.texi: Fix typo. |
| 5670 |
|
| 5671 |
2014-07-30 Thomas Quinot <[email protected]> |
| 5672 |
|
| 5673 |
* lib-writ.ads: document format change. |
| 5674 |
|
| 5675 |
2014-07-30 Pascal Obry <[email protected]> |
| 5676 |
|
| 5677 |
* prj-util.adb (For_Interface_Sources): Do not |
| 5678 |
include sources from withed externally built projects. |
| 5679 |
|
| 5680 |
2014-07-30 Robert Dewar <[email protected]> |
| 5681 |
|
| 5682 |
* lib.adb: Minor reformatting. |
| 5683 |
* prj-util.adb: Minor reformatting. |
| 5684 |
|
| 5685 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5686 |
|
| 5687 |
* exp_aggr.adb (Build_Record_Aggr_Code): For an array component |
| 5688 |
that depends on discriminants, and which is given by an others |
| 5689 |
clause, create an explicit subtype with the discriminant values |
| 5690 |
of the enclosing aggregate, because the backend cannot otherwise |
| 5691 |
retrieve the actual bounds of the array. |
| 5692 |
|
| 5693 |
2014-07-30 Fedor Rybin <[email protected]> |
| 5694 |
|
| 5695 |
* gnat_ugn.texi: Improve gnattest documentation. |
| 5696 |
|
| 5697 |
2014-07-30 Pascal Obry <[email protected]> |
| 5698 |
|
| 5699 |
* makeutl.adb (Insert_Project_Sources): Properly handle sources |
| 5700 |
that are aggregated. We want to include sources not only part |
| 5701 |
of libraries but also if part of an aggregated project from an |
| 5702 |
aggregate library. |
| 5703 |
* prj.adb (For_Project_And_Aggregated_Context): Properly check |
| 5704 |
state of root project. |
| 5705 |
|
| 5706 |
2014-07-30 Thomas Quinot <[email protected]> |
| 5707 |
|
| 5708 |
* lib-load.ads: Minor reformatting. |
| 5709 |
* sinfo.ads (Library_Unit): Update comment. |
| 5710 |
* lib.ads (Notes): Simplify. The Unit component in Notes_Entry |
| 5711 |
is redundant. Instead used the pragma Node_Id directly as the |
| 5712 |
element type. |
| 5713 |
|
| 5714 |
2014-07-30 Thomas Quinot <[email protected]> |
| 5715 |
|
| 5716 |
* lib.adb (Store_Note): Store only notes that do not come from |
| 5717 |
an instance, and that are in the extended main source unit. |
| 5718 |
* lib-writ (Write_Unit_Information): Annotations from subunits |
| 5719 |
must be emitted along with those for the main unit, and they |
| 5720 |
must carry a specific file name. |
| 5721 |
* ali.ads (Notes_Record): Use a File_Name_Type instead of a |
| 5722 |
Unit_Id for the source file containing the pragma, as in the |
| 5723 |
case of annotations from subunits we might not have a readily |
| 5724 |
available unit id. |
| 5725 |
* ali.adb (Scan_ALI): Account for above change in data structure. |
| 5726 |
|
| 5727 |
2014-07-30 Vincent Celier <[email protected]> |
| 5728 |
|
| 5729 |
* makeutl.adb (Insert_Project_Sources): When the library project |
| 5730 |
is an aggregate Stand-Alone Library, insert in the queue the |
| 5731 |
Ada interface units, with Closure set to True; |
| 5732 |
|
| 5733 |
2014-07-30 Eric Botcazou <[email protected]> |
| 5734 |
|
| 5735 |
* sem_util.adb: Fix minor typo. |
| 5736 |
* makeutl.adb: Minor reformatting. |
| 5737 |
|
| 5738 |
2014-07-30 Robert Dewar <[email protected]> |
| 5739 |
|
| 5740 |
* exp_ch7.adb, checks.adb, makeutl.adb, makeutl.ads: Minor reformatting. |
| 5741 |
|
| 5742 |
2014-07-30 Yannick Moy <[email protected]> |
| 5743 |
|
| 5744 |
* checks.ads: Fix typo in comment. |
| 5745 |
|
| 5746 |
2014-07-30 Pierre-Marie Derodat <[email protected]> |
| 5747 |
|
| 5748 |
* sem_util.adb (Set_Debug_Info_Needed): For scalar types, recurse on |
| 5749 |
entities that materialize range bounds, if any. |
| 5750 |
|
| 5751 |
2014-07-30 Vincent Celier <[email protected]> |
| 5752 |
|
| 5753 |
* projects.texi: Minor spelling fix. |
| 5754 |
|
| 5755 |
2014-07-30 Hristian Kirtchev <[email protected]> |
| 5756 |
|
| 5757 |
* checks.adb (Make_Bignum_Block): Use the new secondary stack |
| 5758 |
build routines to manage the mark. |
| 5759 |
* exp_ch7.adb (Create_Finalizer, Expand_Cleanup_Actions): |
| 5760 |
Use the new secodary stack build routines to manage the mark. |
| 5761 |
(Insert_Actions_In_Scope_Around): Add new formal parameter |
| 5762 |
Manage_SS along with comment on its usage. Code and comment |
| 5763 |
reformatting. Mark and release the secondary stack when the |
| 5764 |
context warrants it. |
| 5765 |
(Make_Transient_Block): Update the call |
| 5766 |
to Insert_Actions_In_Scope_Around to account for parameter Manage_SS. |
| 5767 |
(Wrap_Transient_Declaration): Remove local variable |
| 5768 |
Uses_SS. Ensure that the secondary stack is marked and released |
| 5769 |
when the related object declaration appears in a library level |
| 5770 |
package or package body. Code and comment reformatting. |
| 5771 |
* exp_util.ads, exp_util.adb (Build_SS_Mark_Call): New routine. |
| 5772 |
(Build_SS_Release_Call): New routine. |
| 5773 |
|
| 5774 |
2014-07-30 Steve Baird <[email protected]> |
| 5775 |
|
| 5776 |
* exp_attr.adb: Revert previous change, not needed after all. |
| 5777 |
|
| 5778 |
2014-07-30 Vincent Celier <[email protected]> |
| 5779 |
|
| 5780 |
* makeutl.adb (Queue.Insert_Project_Sources): Insert with |
| 5781 |
Closure => True for interfaces of Stand-Alone Libraries. |
| 5782 |
* makeutl.ads (Source_Info (Format => Gprbuild)): Add new |
| 5783 |
Boolean component Closure, defaulted to False. |
| 5784 |
|
| 5785 |
2014-07-30 Yannick Moy <[email protected]> |
| 5786 |
|
| 5787 |
* sem_res.adb: Fix typo in error message. |
| 5788 |
|
| 5789 |
2014-07-30 Robert Dewar <[email protected]> |
| 5790 |
|
| 5791 |
* sem_ch3.adb (Process_Range_Expr_In_Decl): Use _FIRST/_LAST |
| 5792 |
as name suffixes rather than L/H for subtype bounds. |
| 5793 |
* tbuild.ads: Minor comment improvements and fixes |
| 5794 |
(Make_External_Name): Document that suffix can start with an |
| 5795 |
underscore. |
| 5796 |
|
| 5797 |
2014-07-30 Bob Duff <[email protected]> |
| 5798 |
|
| 5799 |
* gnat_ugn.texi: Document --rep-clauses switch. |
| 5800 |
|
| 5801 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5802 |
|
| 5803 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Default_Value and |
| 5804 |
Default_Component_Value can only be specified for scalar type or |
| 5805 |
arrays of scalar types respectively. This legality check must |
| 5806 |
be performed at the point the aspect is analyzed, in order to |
| 5807 |
reject aspect specifications that apply to a partial view. |
| 5808 |
|
| 5809 |
2014-07-30 Thomas Quinot <[email protected]> |
| 5810 |
|
| 5811 |
* freeze.adb: Minor reformatting. |
| 5812 |
|
| 5813 |
2014-07-30 Robert Dewar <[email protected]> |
| 5814 |
|
| 5815 |
* exp_attr.adb (Expand_Attribute, case First/Last): Don't expand in |
| 5816 |
codepeer mode. |
| 5817 |
|
| 5818 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5819 |
|
| 5820 |
* freeze.adb (Check_Expression_Function): At the freeze point |
| 5821 |
of an expression function, verify that the expression in the |
| 5822 |
function does not contain references to any deferred constants |
| 5823 |
that have no completion yet. |
| 5824 |
(Freeze_Expression, Freeze_Before): call |
| 5825 |
Check_Expression_Function. |
| 5826 |
* a-ciorse.ads: Add Reference_Control_Type to detect tampering. |
| 5827 |
* a-ciorse.adb: Add Adjust and Finalize routines for |
| 5828 |
Reference_Control_Type. Use it in the construction of Reference |
| 5829 |
and Constant_Reference values. |
| 5830 |
|
| 5831 |
2014-07-30 Robert Dewar <[email protected]> |
| 5832 |
|
| 5833 |
* exp_aggr.adb: Update comments. |
| 5834 |
* a-chtgbo.adb, a-chtgbo.ads, a-cbhase.adb, a-cbhase.ads: Minor |
| 5835 |
reformatting. |
| 5836 |
|
| 5837 |
2014-07-30 Robert Dewar <[email protected]> |
| 5838 |
|
| 5839 |
* cstand.adb (New_Standard_Entity): New version takes name |
| 5840 |
string to call Make_Name. |
| 5841 |
(Create_Standard): Use this routine to set name before setting other |
| 5842 |
fields. |
| 5843 |
|
| 5844 |
2014-07-30 Robert Dewar <[email protected]> |
| 5845 |
|
| 5846 |
* exp_attr.adb (Expand_Attribute, case First): Rewrite simple |
| 5847 |
entity reference. |
| 5848 |
(Expand_Attribute, case Last): Ditto. |
| 5849 |
* exp_ch3.adb (Constrain_Index): New calling sequence for |
| 5850 |
Process_Range_Expr_In_Decl. |
| 5851 |
(Expand_N_Object_Declaration): Avoid setting Is_Known_Valid in one |
| 5852 |
problematical case. |
| 5853 |
* sem_ch3.adb (Constrain_Index): New calling sequence for |
| 5854 |
Process_Range_Expr_In_Decl. |
| 5855 |
(Set_Scalar_Range_For_Subtype): ditto. |
| 5856 |
(Process_Range_Expr_In_Decl): Create constants to hold bounds for |
| 5857 |
subtype. |
| 5858 |
* sem_ch3.ads (Process_Range_Expr_In_Decl): Add Subtyp parameter. |
| 5859 |
* sem_eval.adb (Compile_Time_Compare): Make sure we use base |
| 5860 |
types if we are not assuming no invalid values. |
| 5861 |
|
| 5862 |
2014-07-30 Robert Dewar <[email protected]> |
| 5863 |
|
| 5864 |
* clean.adb: Minor reformatting. |
| 5865 |
* opt.ads: Minor fix to incorrect comment. |
| 5866 |
|
| 5867 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5868 |
|
| 5869 |
* a-chtgbo.ads, a-chtgbo.adb (Delete_Node_At_Index): New |
| 5870 |
subprogram, used by bounded hashed sets, to delete a node at |
| 5871 |
a given index, whose element may have been improperly updated |
| 5872 |
through a Reference_Preserving key. |
| 5873 |
* a-cbhase.ads: Add Reference_Control_Type to package Generic_Keys. |
| 5874 |
* a-cbhase.adb: Add Adjust and Finalize routines for |
| 5875 |
Reference_Control_Type. |
| 5876 |
(Delete, Insert): Raise Program_Error, not Constraint_Error, |
| 5877 |
when operation is illegal. |
| 5878 |
(Reference_Preserving_Key): Build aggregate for Reference_Control_Type |
| 5879 |
* a-cmbutr.ads: Add Reference_Control_Type to detect tampering. Add |
| 5880 |
private with_clause for Ada.Finalization. |
| 5881 |
* a-cbmutr.adb: Add Adjust and Finalize routines for |
| 5882 |
Reference_Control_Type. Use it in the construction of Reference |
| 5883 |
and Constant_Reference values. |
| 5884 |
|
| 5885 |
2014-07-30 Robert Dewar <[email protected]> |
| 5886 |
|
| 5887 |
* sem_ch3.adb, sem_ch3.ads: Minor code reorganization. |
| 5888 |
|
| 5889 |
2014-07-30 Pascal Obry <[email protected]> |
| 5890 |
|
| 5891 |
* clean.adb (Clean_Project): Properly check for directory |
| 5892 |
existence before trying to enter it. |
| 5893 |
|
| 5894 |
2014-07-30 Robert Dewar <[email protected]> |
| 5895 |
|
| 5896 |
* sem_ch3.ads, prj.ads, prj-nmsc.adb: Minor reformatting. |
| 5897 |
|
| 5898 |
2014-07-30 Robert Dewar <[email protected]> |
| 5899 |
|
| 5900 |
* par-ch5.adb (P_Sequence_Of_Statements): Properly handle |
| 5901 |
missing semicolon after name. |
| 5902 |
|
| 5903 |
2014-07-30 Pascal Obry <[email protected]> |
| 5904 |
|
| 5905 |
* prj.ads (Gprinstall_Flags): New constant. |
| 5906 |
* prj-nmsc.adb (Check_Library_Attributes): Do not fails for |
| 5907 |
missing library dir if Directories_Must_Exist_In_Projects |
| 5908 |
is false. |
| 5909 |
|
| 5910 |
2014-07-30 Bob Duff <[email protected]> |
| 5911 |
|
| 5912 |
* a-except-2005.adb, a-except.adb: Remove obsolete comments. |
| 5913 |
* s-traceb.ads: Updagte comments. |
| 5914 |
|
| 5915 |
2014-07-30 Robert Dewar <[email protected]> |
| 5916 |
|
| 5917 |
* checks.adb, a-cihase.adb, a-cihase.ads, a-chtgop.adb, a-chtgop.ads, |
| 5918 |
a-except.adb, a-except-2005.adb, a-cborse.adb, a-cborse.ads, |
| 5919 |
a-exexda.adb, a-elchha.adb, exp_aggr.adb, a-cohase.adb: Minor |
| 5920 |
reformatting. |
| 5921 |
|
| 5922 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5923 |
|
| 5924 |
* a-chtgop.ads, a-chtgop.adb (Delete_Node_At_Index): New |
| 5925 |
subprogram, used by all versions of hashed sets, to delete a node |
| 5926 |
whose element has been improperly updated through a Reference_ |
| 5927 |
Preserving key. |
| 5928 |
* a-cohase.adb: Remove Delete_Node, use new common procedure |
| 5929 |
Delete_Node_At_Index. |
| 5930 |
* a-cihase.ads: Add Reference_Control_Type to package Generic_Keys. |
| 5931 |
* a-cihase.adb: Add Adjust and Finalize routines for |
| 5932 |
Reference_Control_Type. |
| 5933 |
(Reference_Preserving_Key): Build aggregate for |
| 5934 |
Reference_Control_Type |
| 5935 |
|
| 5936 |
2014-07-30 Yannick Moy <[email protected]> |
| 5937 |
|
| 5938 |
* checks.adb, checks.ads (Determine_Range_R): New procedure to |
| 5939 |
determine the possible range of a floating-point expression. |
| 5940 |
|
| 5941 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5942 |
|
| 5943 |
* a-cborse.ads: Add Reference_Control_Type to package Generic_Keys. |
| 5944 |
* a-cborse.adb: Add Adjust and Finalize routines for |
| 5945 |
Reference_Control_Type. |
| 5946 |
(Reference_Preserving_Key): Build aggregate for |
| 5947 |
Reference_Control_Type. |
| 5948 |
(Delete): Check for tampering, and raise Program_Error (not |
| 5949 |
Constraint_Error) when attempting to delete an element not in |
| 5950 |
the set. |
| 5951 |
(Insert): Ditto. |
| 5952 |
|
| 5953 |
2014-07-30 Bob Duff <[email protected]> |
| 5954 |
|
| 5955 |
* a-elchha.adb, a-except-2005.adb, a-except.adb, a-exexda.adb, |
| 5956 |
* a-exextr.adb, a-exstat.adb, exp_intr.ads, s-tassta.adb: |
| 5957 |
Exception_Information is used to produce useful debugging |
| 5958 |
information for the programmer. However, it was also used to |
| 5959 |
implement the stream attributes for type Exception_Occurrence. The |
| 5960 |
latter requires a stable and portable interface, which meant |
| 5961 |
that we couldn't include a symbolic traceback. A separate set of |
| 5962 |
routines was used to provide symbolic tracebacks under program |
| 5963 |
control (i.e. not automatically). The goal of this ticket is |
| 5964 |
to provide such automatic tracebacks, so the change here is to |
| 5965 |
split the two functionalities: Exception_Information gives the |
| 5966 |
maximally useful information for debugging (i.e. it now includes |
| 5967 |
a symbolic traceback when a decorator is set, and it can be |
| 5968 |
improved freely in the future without disturbing streaming). |
| 5969 |
Untailored_Exception_Information always uses hexadecimal addresses |
| 5970 |
in the traceback, has a stable and portable output, and is now |
| 5971 |
used for streaming. |
| 5972 |
|
| 5973 |
2014-07-30 Eric Botcazou <[email protected]> |
| 5974 |
|
| 5975 |
* exp_aggr.adb (Expand_Array_Aggregate): Add missing test |
| 5976 |
on the target of the assignment to find out whether it |
| 5977 |
can be directly done by the back-end. |
| 5978 |
* exp_util.adb (Is_Possibly_Unaligned_Slice): Remove obscure test. |
| 5979 |
|
| 5980 |
2014-07-30 Robert Dewar <[email protected]> |
| 5981 |
|
| 5982 |
* inline.adb, a-coorse.adb, a-coorse.ads, a-cohase.adb, a-cohase.ads, |
| 5983 |
a-tasatt.adb: Minor reformatting. |
| 5984 |
|
| 5985 |
2014-07-30 Robert Dewar <[email protected]> |
| 5986 |
|
| 5987 |
* exp_ch4.adb: Minor reformatting. |
| 5988 |
|
| 5989 |
2014-07-30 Ed Schonberg <[email protected]> |
| 5990 |
|
| 5991 |
* a-coorse.adb, a-coorse.ads (Generic_Keys): Add a |
| 5992 |
Reference_Control_Type to generic package, to keep additional |
| 5993 |
information for Reference_Types that manipulate keys. Add Adjust and |
| 5994 |
Finalize procedures for this type. |
| 5995 |
(Finalize): When finalizing a reference_preserving_key, verify |
| 5996 |
that the key of the new value is equivalent to the key of the |
| 5997 |
original element, raise Program_Error otherwise. |
| 5998 |
(Insert): Detect tampering. |
| 5999 |
(Reference_Preserving_Key): Build proper Reference_Control_Type, |
| 6000 |
and update Busy and Lock bits to detect tampering. |
| 6001 |
* a-cohase.ads: Keep with-clause private. |
| 6002 |
|
| 6003 |
2014-07-30 Hristian Kirtchev <[email protected]> |
| 6004 |
|
| 6005 |
* exp_ch4.adb (Expand_N_Op_Eq): Emit a warning when the operands |
| 6006 |
of an equality are of an Unchecked_Union type and lack inferable |
| 6007 |
discriminants. |
| 6008 |
|
| 6009 |
2014-07-30 Bob Duff <[email protected]> |
| 6010 |
|
| 6011 |
* g-exctra.adb, g-exctra.ads, s-exctra.adb, s-exctra.ads, Makefile.rtl, |
| 6012 |
g-trasym.adb, g-trasym.ads, s-trasym.adb, s-trasym.ads: Move |
| 6013 |
GNAT.Traceback.Symbolic and GNAT.Exception_Traces into the System |
| 6014 |
hierarchy (System.Traceback.Symbolic and System.Exception_Traces), so |
| 6015 |
we can call them from the runtimes. Leave renamings in place under GNAT. |
| 6016 |
|
| 6017 |
2014-07-30 Yannick Moy <[email protected]> |
| 6018 |
|
| 6019 |
* inline.adb (Check_And_Build_Body_To_Inline): Include code for |
| 6020 |
inlining in GNATprove mode. |
| 6021 |
|
| 6022 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6023 |
|
| 6024 |
* a-cohase.adb, a-cohase.ads (Generic_Keys): Add a |
| 6025 |
Reference_Control_Type to generic package, to keep additional |
| 6026 |
information for Reference_Types that manipulate keys. Add Adjust and |
| 6027 |
Finalize procedures for this type. |
| 6028 |
(Delete_Node): New procedure called when finalizing a |
| 6029 |
Reference_Control_Type, to remove a node whose element has been |
| 6030 |
improperly updated through a Reference. |
| 6031 |
(Insert): Detect tampering. |
| 6032 |
(Reference_Preserving_Key): Build proper Reference_Control_Type, |
| 6033 |
and update Busy and Lock bits to detect tampering. |
| 6034 |
|
| 6035 |
2014-07-30 Bob Duff <[email protected]> |
| 6036 |
|
| 6037 |
* exp_intr.ads: Minor comment fix. |
| 6038 |
|
| 6039 |
2014-07-30 Gary Dismukes <[email protected]> |
| 6040 |
|
| 6041 |
* exp_prag.adb, a-tags.ads: Minor typo fixes. |
| 6042 |
|
| 6043 |
2014-07-30 Bob Duff <[email protected]> |
| 6044 |
|
| 6045 |
* a-excach.adb, a-excach-cert.adb, a-except-2005.ads, |
| 6046 |
a-except.ads, g-traceb.adb, memtrack.adb, |
| 6047 |
s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb: |
| 6048 |
Cleanup: Make the three versions of System.Traceback.Call_Chain |
| 6049 |
have the same interface. Use an array for the Traceback parameter |
| 6050 |
instead of an Address. This will enable reduction in code |
| 6051 |
duplication. |
| 6052 |
|
| 6053 |
2014-07-30 Pat Rogers <[email protected]> |
| 6054 |
|
| 6055 |
* gnat_ugn.texi: Corrected minor textual error in description |
| 6056 |
of switch -gnatwl. |
| 6057 |
|
| 6058 |
2014-07-30 Bob Duff <[email protected]> |
| 6059 |
|
| 6060 |
* Makefile.rtl: Sort file names. |
| 6061 |
|
| 6062 |
2014-07-30 Arnaud Charlet <[email protected]> |
| 6063 |
|
| 6064 |
* a-tasatt.adb: Complete previous change: kill spurious warning |
| 6065 |
on e.g. sparc, and make sure we only use the fast path when the |
| 6066 |
alignment is compatible. |
| 6067 |
|
| 6068 |
2014-07-30 Yannick Moy <[email protected]> |
| 6069 |
|
| 6070 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Mark new Spec_Id as |
| 6071 |
coming from source. |
| 6072 |
|
| 6073 |
2014-07-30 Yannick Moy <[email protected]> |
| 6074 |
|
| 6075 |
* inline.adb (Build_Body_To_Inline): Issue more precise messages |
| 6076 |
for declarations that prevent inlining. |
| 6077 |
(Cannot_Inline): Change usual start of message to refer to contextual |
| 6078 |
analysis in GNATprove mode. |
| 6079 |
* sem_res.adb (Resolve_Call): Change usual start of message to |
| 6080 |
refer to contextual analysis in GNATprove mode, when inlining |
| 6081 |
not possible. |
| 6082 |
|
| 6083 |
2014-07-30 Robert Dewar <[email protected]> |
| 6084 |
|
| 6085 |
* sem_res.adb, sem_ch6.adb: Minor code reorganization. |
| 6086 |
* inline.adb: Minor reformatting. |
| 6087 |
|
| 6088 |
2014-07-30 Javier Miranda <[email protected]> |
| 6089 |
|
| 6090 |
* a-tags.ads: Add comments. |
| 6091 |
|
| 6092 |
2014-07-30 Pat Rogers <[email protected]> |
| 6093 |
|
| 6094 |
* gnat_rm.texi: Minor word error. |
| 6095 |
|
| 6096 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6097 |
|
| 6098 |
* exp_prag.adb (Expand_Old): Insert declarationss of temporaries |
| 6099 |
created to capture the value of the prefix of 'Old at the |
| 6100 |
beginning of the current declarative part, to prevent data flow |
| 6101 |
anomalies in the postcondition procedure that will follow. |
| 6102 |
|
| 6103 |
2014-07-30 Yannick Moy <[email protected]> |
| 6104 |
|
| 6105 |
* debug.adb: Retire debug flag -gnatdQ. |
| 6106 |
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Check SPARK_Mode |
| 6107 |
on decl, not on body. Ignore predicate functions. |
| 6108 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove use of |
| 6109 |
debug flag -gnatdQ. Correctly analyze SPARK_Mode on decl and |
| 6110 |
body when generating a decl for a body on which SPARK_Mode aspect |
| 6111 |
is given. |
| 6112 |
* sem_prag.adb (Analyze_Pragma|SPARK_Mode): Reorder tests for |
| 6113 |
attaching pragma to entity, to account for declaration not coming |
| 6114 |
from source. |
| 6115 |
* sem_res.adb (Resolve_Call): Issue warning and flag subprogram |
| 6116 |
as not always inlined in GNATprove mode, when called in an |
| 6117 |
assertion context. |
| 6118 |
|
| 6119 |
2014-07-30 Vincent Celier <[email protected]> |
| 6120 |
|
| 6121 |
* debug.adb: Minor comment update. |
| 6122 |
|
| 6123 |
2014-07-30 Robert Dewar <[email protected]> |
| 6124 |
|
| 6125 |
* s-tasuti.adb, s-tassta.adb: Minor reformatting. |
| 6126 |
* sprint.adb (Sprint_Node): Handle N_Contract case. |
| 6127 |
* exp_prag.adb: Minor reformatting. |
| 6128 |
* freeze.adb (Freeze_Entity): Check useless postcondition for |
| 6129 |
No_Return subprogram. |
| 6130 |
* sem_prag.adb: Minor reformatting. |
| 6131 |
|
| 6132 |
2014-07-30 Javier Miranda <[email protected]> |
| 6133 |
|
| 6134 |
* a-tags.ads: Complete comments about performance. |
| 6135 |
|
| 6136 |
2014-07-30 Fedor Rybin <[email protected]> |
| 6137 |
|
| 6138 |
* gnat_ugn.texi: Adding description for --exit-status option to |
| 6139 |
gnattest section. Fixing index entry of --passed-tests option |
| 6140 |
in gnattest section. |
| 6141 |
|
| 6142 |
2014-07-30 Javier Miranda <[email protected]> |
| 6143 |
|
| 6144 |
* Makefile.rtl, gnat_rm.texi, i-cpp.adb, i-cpp.ads, impunit.adb, |
| 6145 |
rtsfind.ads: Remove references to package Interfaces.CPP since this |
| 6146 |
package is no longer needed. |
| 6147 |
|
| 6148 |
2014-07-30 Bob Duff <[email protected]> |
| 6149 |
|
| 6150 |
* s-taasde.adb (Timer_Queue): Don't use a |
| 6151 |
build-in-place function call to initialize the Timer_Queue. |
| 6152 |
* s-traent.adb, s-traent.ads, s-traent-vms.adb, s-traent-vms.ads: |
| 6153 |
Turn off polling in these units, because otherwise we get |
| 6154 |
elaboration circularities with Ada.Exceptions when the -gnatP |
| 6155 |
switch is used. |
| 6156 |
* s-tassta.adb (Create_Task): Make sure independent tasks |
| 6157 |
are created with Parent = Environment_Task. This was not true, |
| 6158 |
for example, in s-interr.adb, when Interrupt_Manager does "new |
| 6159 |
Server_Task"; the Server_Task had Parent = Interrupt_Manager, |
| 6160 |
which is wrong because the master is determined by the access |
| 6161 |
type, which is at library level. |
| 6162 |
* s-tasuti.adb (Make_Independent): Avoid setting Parent; it is |
| 6163 |
now set correctly by Create_Task. |
| 6164 |
(Make_Passive): Remove the workaround for the race condition in |
| 6165 |
Make_Independent. |
| 6166 |
* frontend.adb (Frontend): Revert to previous method of detecting |
| 6167 |
temporary configuration pragma files, recognizing such files by |
| 6168 |
".tmp" in the name. This is more general than detecting pragmas |
| 6169 |
Source_File_Name_Project, because it allows any tool to use |
| 6170 |
this naming convention, no matter the content of the file. |
| 6171 |
* gnat_ugn.texi: Document this naming convention. |
| 6172 |
|
| 6173 |
2014-07-30 Robert Dewar <[email protected]> |
| 6174 |
|
| 6175 |
* exp_ch7.adb, s-tataat.adb, s-tataat.ads, s-parame-vms-alpha.ads, |
| 6176 |
inline.adb, s-parame-hpux.ads, exp_smem.adb, s-tasini.adb, |
| 6177 |
s-tasini.ads, s-parame-vms-ia64.ads, s-parame.ads, s-taskin.ads, |
| 6178 |
s-parame-vxworks.ads, a-tasatt.adb, a-tasatt.ads: Minor reformatting. |
| 6179 |
* a-suenco.adb (Convert): Handle overlong encodings in UTF8-UTF8 |
| 6180 |
conversion. |
| 6181 |
|
| 6182 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6183 |
|
| 6184 |
* sem_ch5.adb: Improve error recovery. |
| 6185 |
* inline.adb (Build_Body_To_Inline): Set Full_Analysis to false |
| 6186 |
before analyzing the body, so that in GNATprove mode there is |
| 6187 |
no light expansion. Whatever expansion is required by SPARK will |
| 6188 |
be performed when analysing the inlined code. |
| 6189 |
|
| 6190 |
2014-07-30 Bob Duff <[email protected]> |
| 6191 |
|
| 6192 |
* s-tataat.adb, s-tataat.ads, a-tasatt.adb: Minor comment fixes. |
| 6193 |
|
| 6194 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6195 |
|
| 6196 |
* sem_ch5.adb (Analyze_Loop_Statement): If loop has a label, |
| 6197 |
verify that it is not hidden by an inner implicit declaration. |
| 6198 |
|
| 6199 |
2014-07-30 Thomas Quinot <[email protected]> |
| 6200 |
|
| 6201 |
* sem.ads (Scope_Table_Entry): New component Locked_Shared_Objects. |
| 6202 |
* sem_ch8.adb (Push_Scope): Initialize Locked_Shared_Objects. |
| 6203 |
* exp_smem.adb (Add_Shared_Var_Lock_Procs): Handle the case where |
| 6204 |
the call returns an unconstrained type: in this case there is |
| 6205 |
already a transient scope, and we should not establish a new one. |
| 6206 |
* exp_ch7.adb (Insert_Actions_In_Scope_Around): New formal Clean. If |
| 6207 |
True, also insert cleanup actions in the tree. |
| 6208 |
(Wrap_Transient_Declaration): Call Insert_Actions_In_Scope_Around |
| 6209 |
with Clean set True. |
| 6210 |
|
| 6211 |
2014-07-30 Arnaud Charlet <[email protected]> |
| 6212 |
|
| 6213 |
* s-taskin.ads (Direct_Index, Direct_Index_Range, |
| 6214 |
Direct_Attribute_Element, Direct_Attribute_Array, |
| 6215 |
Direct_Index_Vector, Direct_Attributes, Is_Defined, |
| 6216 |
Indirect_Attributes): Removed. (Atomic_Address, |
| 6217 |
Attribute_Array, Attributes): New. |
| 6218 |
* s-tasini.ads, s-tasini.adb (Proc_T, Initialize_Attributes, |
| 6219 |
Finalize_Attributes_Link, Initialize_Attributes_Link): Removed. |
| 6220 |
(Finalize_Attributes): Reimplement. |
| 6221 |
* s-tassta.adb (Create_Task): Remove call to |
| 6222 |
Initialize_Attributes_Link (Free_Task, Vulnerable_Free_Task): |
| 6223 |
Replace Finalize_Attributes_Link by Finalize_Attributes. |
| 6224 |
* a-tasatt.ads, a-tasatt.adb, s-tataat.ads, s-tataat.adb: |
| 6225 |
Reimplement from scratch, using a simpler and more efficient |
| 6226 |
implementation. |
| 6227 |
* s-tporft.adb (Register_Foreign_Thread): Remove now obsolete comment. |
| 6228 |
* s-parame.ads, s-parame-hpux.ads, |
| 6229 |
* s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, |
| 6230 |
* s-parame-vxworks.ads (Max_Attribute_Count): New, replace |
| 6231 |
Default_Attribute_Count. |
| 6232 |
|
| 6233 |
2014-07-30 Olivier Hainque <[email protected]> |
| 6234 |
|
| 6235 |
* vxworks-ppc-link.spec: New file. Extra link |
| 6236 |
instructions for ppc-vxworks. |
| 6237 |
* vxworks-crtbe-link.spec: Likewise, for ZCX related support. |
| 6238 |
* system-vxworks-ppc.ads: Adjust linker options to use spec files. |
| 6239 |
* system-vxworks-arm.ads: Likewise. |
| 6240 |
* gcc-interface/Makefile.in: Enable .spec files. |
| 6241 |
|
| 6242 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6243 |
|
| 6244 |
* sem_aggr.adb: Minor comment reformatting. |
| 6245 |
|
| 6246 |
2014-07-30 Robert Dewar <[email protected]> |
| 6247 |
|
| 6248 |
* sem_util.ads, sem_util.adb (Is_Junk_Name): Removed. |
| 6249 |
* sem_warn.adb (Has_Junk_Name): New function |
| 6250 |
(Check_References): Use Has_Junk_Name to delete junk warnings |
| 6251 |
(Check_Unset_Reference): ditto. |
| 6252 |
(Warn_On_Unreferenced_Entity): ditto. |
| 6253 |
(Warn_On_Useless_Assignment): ditto. |
| 6254 |
|
| 6255 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6256 |
|
| 6257 |
* checks.adb (Insert_Valid_Check): Do not check for the packed |
| 6258 |
array type of a prefix that is an access type. |
| 6259 |
|
| 6260 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6261 |
|
| 6262 |
* sem_attr.adb (Eval_Attribute): Evaluate the GNAT attribute |
| 6263 |
Unconstrained_Array even if prefix is not frozen yet, as can |
| 6264 |
occur with a private subtype used as a generic actual. |
| 6265 |
|
| 6266 |
2014-07-30 Gary Dismukes <[email protected]> |
| 6267 |
|
| 6268 |
* sem_attr.adb: Minor reformatting. |
| 6269 |
|
| 6270 |
2014-07-30 Pat Rogers <[email protected]> |
| 6271 |
|
| 6272 |
* gnat_rm.texi: Corrected minor wording error in description |
| 6273 |
of No_Exception_Registration. |
| 6274 |
|
| 6275 |
2014-07-30 Yannick Moy <[email protected]> |
| 6276 |
|
| 6277 |
* einfo.ads, einfo.adb: New flag Is_Inlined_Always for use in GNATprove |
| 6278 |
mode. Realphabetize two subprograms. |
| 6279 |
* inline.adb (Cannot_Inline): Use Is_Inlined_Always in GNATprove mode. |
| 6280 |
(Can_Be_Inlined_In_GNATprove_Mode): Adapt to possible Empty Body_Id. |
| 6281 |
(Check_And_Build_Body_To_Inline): Use Is_Inlined_Always in GNATprove |
| 6282 |
mode. |
| 6283 |
(Expand_Inline_Call): Use Is_Inlined_Always in GNATprove mode. |
| 6284 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not use |
| 6285 |
Is_Inline in GNATprove mode. |
| 6286 |
(Analyze_Subprogram_Specification): |
| 6287 |
Set Is_Inlined_Always at subprogram entity creation. |
| 6288 |
* sem_res.adb (Resolve_Call): Do not deal with inlining during |
| 6289 |
pre-analysis. Issue warning on call to possibly inlined |
| 6290 |
subprogram when body not seen. |
| 6291 |
|
| 6292 |
2014-07-30 Yannick Moy <[email protected]> |
| 6293 |
|
| 6294 |
* lib-xref.adb (Generate_Reference): Add special |
| 6295 |
case for compiler-generated formals in GNATprove mode. |
| 6296 |
|
| 6297 |
2014-07-30 Yannick Moy <[email protected]> |
| 6298 |
|
| 6299 |
* sem_ch6.adb: Add comments. |
| 6300 |
|
| 6301 |
2014-07-30 Thomas Quinot <[email protected]> |
| 6302 |
|
| 6303 |
* s-os_lib.ads (GM_Time_Of): Clarify documentation. |
| 6304 |
|
| 6305 |
2014-07-30 Robert Dewar <[email protected]> |
| 6306 |
|
| 6307 |
* sem_aggr.adb, sem_res.adb: Minor reformatting. |
| 6308 |
|
| 6309 |
2014-07-30 Thomas Quinot <[email protected]> |
| 6310 |
|
| 6311 |
* sem_ch13.adb (Analyze_Attribute_Definition_Clause, case |
| 6312 |
Bit_Order): Set Reverse_Bit_Order on the base type of the |
| 6313 |
specified first subtype. |
| 6314 |
|
| 6315 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6316 |
|
| 6317 |
* inline.adb (Expand_Inlined_Call): Use a renaming declaration |
| 6318 |
to capture the value of actuals of a limited type rather than |
| 6319 |
an object declaration, to prevent spurious errors when analyzing |
| 6320 |
the inlined body. |
| 6321 |
|
| 6322 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6323 |
|
| 6324 |
* sem_ch4.adb (Analyze_Type_Conversion): Treat an inlined body |
| 6325 |
as an instance, and inhibit semantic checks on already analyzed |
| 6326 |
code to prevent spurious errors. |
| 6327 |
|
| 6328 |
2014-07-30 Arnaud Charlet <[email protected]> |
| 6329 |
|
| 6330 |
* a-exctra.ads ("="): New function, to restore compatibility. |
| 6331 |
|
| 6332 |
2014-07-30 Pascal Obry <[email protected]> |
| 6333 |
|
| 6334 |
* adaint.c (__gnat_to_os_time): Set isdst to -1 for the mktime |
| 6335 |
routine to use the OS dst setting. |
| 6336 |
|
| 6337 |
2014-07-30 Pat Rogers <[email protected]> |
| 6338 |
|
| 6339 |
* gnat_ugn.texi: Minor correction to description of -gnatw.K. |
| 6340 |
|
| 6341 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6342 |
|
| 6343 |
* sem_util.adb (Wrong_Type): Disable some checks equally within |
| 6344 |
instances and within inlined bodies, to suppress spurious type |
| 6345 |
errors on already analyzed code. |
| 6346 |
* sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Expression |
| 6347 |
is legal in an inlined body, juts as it is in an instance body. |
| 6348 |
|
| 6349 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6350 |
|
| 6351 |
* sem_res.adb (Resolve_Unchecked_Conversion): Within an inlined |
| 6352 |
body the operand of an unchecked conversion may be a literal, in |
| 6353 |
which case its type is the target type of the conversion. This |
| 6354 |
is in contrast to conversions in other contexts, where the |
| 6355 |
operand cannot be a literal and must be resolvable independent |
| 6356 |
of the context. |
| 6357 |
|
| 6358 |
2014-07-30 Pierre-Marie Derodat <[email protected]> |
| 6359 |
|
| 6360 |
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a |
| 6361 |
mere scalar constant instead of a reference for a renaming of |
| 6362 |
scalar literal. |
| 6363 |
* gcc-interface/utils.c (renaming_from_generic_instantiation_p): New. |
| 6364 |
* gcc-interface/gigi.h (renaming_from_generic_instantiation_p): New. |
| 6365 |
|
| 6366 |
2014-07-30 Robert Dewar <[email protected]> |
| 6367 |
|
| 6368 |
* s-tasuti.adb, s-tasuti.ads, einfo.ads, sem_prag.adb, s-taasde.adb, |
| 6369 |
g-socthi-vms.adb, s-taprop-mingw.adb, s-interr.adb, s-interr-hwint.adb, |
| 6370 |
g-decstr.adb, s-tasdeb-vms.adb, g-expect-vms.adb, makeutl.adb, |
| 6371 |
s-interr-vms.adb, g-socthi.adb, exp_aggr.adb, s-tasdeb.adb, |
| 6372 |
g-awk.adb, gnatls.adb, s-taspri-posix.ads, g-catiio.adb, |
| 6373 |
s-interr-sigaction.adb, s-os_lib.adb, s-fileio.adb: Minor reformatting |
| 6374 |
& code reorganization. |
| 6375 |
|
| 6376 |
2014-07-30 Bob Duff <[email protected]> |
| 6377 |
|
| 6378 |
* s-tassta.adb, sem_util.ads: Minor reformatting. |
| 6379 |
|
| 6380 |
2014-07-30 Yannick Moy <[email protected]> |
| 6381 |
|
| 6382 |
* inline.adb (Build_Body_To_Inline): Detect when |
| 6383 |
subprogram has multiple returns, or not a single last return |
| 6384 |
statement, in GNATprove mode. |
| 6385 |
(Cannot_Inline): Simplify logic to handle case of GNATprove |
| 6386 |
inlining first. |
| 6387 |
|
| 6388 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6389 |
|
| 6390 |
* sem_ch6.adb: Stubs are not subject to inlining. |
| 6391 |
|
| 6392 |
2014-07-30 Bob Duff <[email protected]> |
| 6393 |
|
| 6394 |
* s-tasuti.ads, s-tasuti.adb (Make_Independent): Change this |
| 6395 |
from a procedure to a function, so that it can more easily be |
| 6396 |
called before the "begin" of a task. |
| 6397 |
* s-taasde.ads (Delay_Block): Make this type immutably limited, |
| 6398 |
so we can use a build-in-place function call to initialize |
| 6399 |
Timer_Queue in the body. |
| 6400 |
* a-rttiev.adb, s-asthan-vms-alpha.adb, s-asthan-vms-ia64.adb, |
| 6401 |
* s-interr.adb, s-interr-hwint.adb, s-interr-sigaction.adb, |
| 6402 |
* s-interr-vms.adb, s-taasde.adb: Each independent task now calls |
| 6403 |
Make_Independent before reaching its "begin", to avoid race |
| 6404 |
conditions. This causes the activating task to wait until after |
| 6405 |
Make_Independent is complete before proceeding. In addition, |
| 6406 |
we initialize data structures used by independent tasks before |
| 6407 |
activating those tasks, to avoid possible use of uninitialized data. |
| 6408 |
* s-interr.ads, s-intman.ads, s-taspri-posix.ads, s-tasdeb.ads: |
| 6409 |
Minor comment fixes. |
| 6410 |
|
| 6411 |
2014-07-30 Bob Duff <[email protected]> |
| 6412 |
|
| 6413 |
* a-exctra.ads, s-traent-vms.ads, s-traent.ads (Tracebacks_Array): Move |
| 6414 |
the declaration of Tracebacks_Array from Ada.Exceptions.Traceback to |
| 6415 |
System.Traceback_Entries (s-traent.ads and s-traent-vms.ads). Add |
| 6416 |
subtypes renaming Tracebacks_Array in Ada.Exceptions.Traceback. |
| 6417 |
* g-debpoo.adb: Refer to Tracebacks_Array in its new home. |
| 6418 |
|
| 6419 |
2014-07-30 Arnaud Charlet <[email protected]> |
| 6420 |
|
| 6421 |
* a-tasatt.adb: Remove old comments. |
| 6422 |
|
| 6423 |
2014-07-30 Yannick Moy <[email protected]> |
| 6424 |
|
| 6425 |
* einfo.ads (Is_Inlined): Document new use in GNATprove mode. |
| 6426 |
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Add comments |
| 6427 |
to explain rationale for inlining or not in GNATprove mode. |
| 6428 |
(Expand_Inlined_Call): In GNATprove mode, set Is_Inlined flag |
| 6429 |
to False when inlining is not possible. |
| 6430 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Is_Inlined |
| 6431 |
flag to indicate that subprogram is fully inlined. To be reversed |
| 6432 |
if inlining problem is found. |
| 6433 |
* sem_res.adb (Resolve_Call): Set Is_Inlined flag to False when |
| 6434 |
call in potentially unevaluated context. |
| 6435 |
|
| 6436 |
2014-07-30 Jose Ruiz <[email protected]> |
| 6437 |
|
| 6438 |
* s-tarest.adb, s-tarest.ads: Fix comments. |
| 6439 |
|
| 6440 |
2014-07-30 Robert Dewar <[email protected]> |
| 6441 |
|
| 6442 |
* exp_attr.adb, checks.adb, sem_util.adb, sem_util.ads, sem_attr.adb: |
| 6443 |
Change No_Scalar_Parts predicate to Scalar_Part_Present and |
| 6444 |
invert sense of test. This avoids the "not No_xxx" situation |
| 6445 |
which is always ugly. |
| 6446 |
|
| 6447 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6448 |
|
| 6449 |
* inline.adb (Expand_Inlined_Call): When generating code for |
| 6450 |
an internal subprogram the expansion uses the location of the |
| 6451 |
call, so that gdb can skip over it. In GNATprove mode we want to |
| 6452 |
preserve slocs of original subprogram when expanding an inlined |
| 6453 |
call, to obtain better warnings, even though subprogram appears |
| 6454 |
not to come from source if it is the inlining of a subprogram |
| 6455 |
body without a previous spec. |
| 6456 |
|
| 6457 |
2014-07-30 Eric Botcazou <[email protected]> |
| 6458 |
|
| 6459 |
* exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array |
| 6460 |
types with atomic components. |
| 6461 |
|
| 6462 |
2014-07-30 Thomas Quinot <[email protected]> |
| 6463 |
|
| 6464 |
* Make-generated.in: Remove now unnecessary targets after s-oscons |
| 6465 |
reorg. |
| 6466 |
|
| 6467 |
2014-07-30 Yannick Moy <[email protected]> |
| 6468 |
|
| 6469 |
* sem_res.adb (Resolve_Call): Use ultimate alias |
| 6470 |
of callee when available. |
| 6471 |
|
| 6472 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6473 |
|
| 6474 |
* sem_ch6.adb (Analyze_Expression_Function): To check whether |
| 6475 |
an expression function is a completion, use the specification of |
| 6476 |
the previous declaration, not its entity, which may be internally |
| 6477 |
generated in an inlined context. |
| 6478 |
|
| 6479 |
2014-07-30 Doug Rupp <[email protected]> |
| 6480 |
|
| 6481 |
* adaint.c (__gnat_tmp_name) [__ANDROID__]: Default to putting |
| 6482 |
temp files in /cache directory unless overridden by TMPDIR. |
| 6483 |
|
| 6484 |
2014-07-30 Jose Ruiz <[email protected]> |
| 6485 |
|
| 6486 |
* s-tassta.adb, s-tarest.adb (Initialize, Create_Task, |
| 6487 |
Create_Restricted_Task): Remove redundant check. Number_Of_CPUs returns |
| 6488 |
type CPU, so it can never be greater than CPU_Range'Last. |
| 6489 |
|
| 6490 |
2014-07-30 Bob Duff <[email protected]> |
| 6491 |
|
| 6492 |
* s-taskin.ads: Minor comment fix. |
| 6493 |
|
| 6494 |
2014-07-30 Thomas Quinot <[email protected]> |
| 6495 |
|
| 6496 |
* g-socket.adb: Remove now useless WITH, USE, and USE TYPE |
| 6497 |
clauses. |
| 6498 |
|
| 6499 |
2014-07-30 Yannick Moy <[email protected]> |
| 6500 |
|
| 6501 |
* debug.adb: Free debug flag dQ used for frontend inlining in |
| 6502 |
GNATprove mode.. |
| 6503 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove test of |
| 6504 |
debug flag.. |
| 6505 |
|
| 6506 |
2014-07-30 Thomas Quinot <[email protected]> |
| 6507 |
|
| 6508 |
* Make-generated.in: Remove generation of s-oscons.ads, only |
| 6509 |
generate the xoscons utility, in runtime-agnostic rules. |
| 6510 |
* gcc-interface/Makefile.in: Clean up rules. Remove VMS parts, |
| 6511 |
no longer supported. |
| 6512 |
|
| 6513 |
2014-07-30 Bob Duff <[email protected]> |
| 6514 |
|
| 6515 |
* exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): New |
| 6516 |
parameter Chain to be used in the allocator case. |
| 6517 |
(Make_Build_In_Place_Call_In_Allocator): If the allocated object |
| 6518 |
has tasks, wrap the code in a block that will activate them, |
| 6519 |
including the usual finalization code to kill them off in case |
| 6520 |
of exception or abort. |
| 6521 |
|
| 6522 |
2014-07-30 Robert Dewar <[email protected]> |
| 6523 |
|
| 6524 |
* treepr.adb, treepr.ads; Reorganize documentation for new pp routines |
| 6525 |
Remove renamings (don't work for gdb). |
| 6526 |
(par): New synonym for p (avoid gdb ambiguities). |
| 6527 |
* inline.adb, sem_ch6.adb, sem_ch13.adb: Minor reformatting. |
| 6528 |
|
| 6529 |
2014-07-30 Bob Duff <[email protected]> |
| 6530 |
|
| 6531 |
* exp_ch9.ads, sem_prag.adb, exp_ch4.adb, sem_ch13.adb: Minor comment |
| 6532 |
fixes. |
| 6533 |
* treepr.ads, treepr.adb (ppp): Make this debugging routine |
| 6534 |
accept any type covered by Union_Id. |
| 6535 |
|
| 6536 |
2014-07-30 Robert Dewar <[email protected]> |
| 6537 |
|
| 6538 |
* sem_ch4.adb (Analyze_If_Expression): Resolve condition before |
| 6539 |
analyzing branches. |
| 6540 |
* sem_eval.adb (Out_Of_Range): Check for statically unevaluated |
| 6541 |
expression case. |
| 6542 |
|
| 6543 |
2014-07-30 Robert Dewar <[email protected]> |
| 6544 |
|
| 6545 |
* sem_ch13.adb (Analyze_Aspect, predicate cases): Diagnose use |
| 6546 |
of predicate aspect on entity other than a type. |
| 6547 |
|
| 6548 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6549 |
|
| 6550 |
* sem_ch6.adb (Body_Has_Contract): New predicate to determine |
| 6551 |
when a subprogram body without a previous spec cannot be inlined |
| 6552 |
in GNATprove mode, because it includes aspects or pragmas that |
| 6553 |
generate a SPARK contract clause. |
| 6554 |
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): A subprogram |
| 6555 |
instance cannot be inlined. |
| 6556 |
|
| 6557 |
2014-07-30 Robert Dewar <[email protected]> |
| 6558 |
|
| 6559 |
* debug.adb: Document that d7 suppresses compilation time output. |
| 6560 |
* errout.adb (Write_Header): Include compilation time in |
| 6561 |
header output. |
| 6562 |
* exp_intr.adb (Expand_Intrinsic_Call): Add |
| 6563 |
Compilation_Date/Compilation_Time (Expand_Source_Info): Expand |
| 6564 |
Compilation_Date/Compilation_Time. |
| 6565 |
* g-souinf.ads (Compilation_Date): New function |
| 6566 |
(Compilation_Time): New function. |
| 6567 |
* gnat1drv.adb (Gnat1drv): Set Opt.Compilation_Time. |
| 6568 |
* gnat_rm.texi (Compilation_Date): New function |
| 6569 |
(Compilation_Time): New function. |
| 6570 |
* opt.ads (Compilation_Time): New variable. |
| 6571 |
* s-os_lib.ads, s-os_lib.adb (Current_Time_String): New function. |
| 6572 |
* sem_intr.adb (Compilation_Date): New function. |
| 6573 |
(Compilation_Time): New function. |
| 6574 |
* snames.ads-tmpl (Name_Compilation_Date): New entry. |
| 6575 |
(Name_Compilation_Time): New entry. |
| 6576 |
|
| 6577 |
2014-07-30 Yannick Moy <[email protected]> |
| 6578 |
|
| 6579 |
* inline.adb: Add comment. |
| 6580 |
|
| 6581 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6582 |
|
| 6583 |
* par-ch4.adb (Is_Parameterless_Attribute): 'Result is a |
| 6584 |
parameterless attribute, and a postondition can mention an |
| 6585 |
indexed component or a slice whose prefix is an attribute |
| 6586 |
reference F'Result. |
| 6587 |
|
| 6588 |
2014-07-30 Robert Dewar <[email protected]> |
| 6589 |
|
| 6590 |
* sprint.adb (Sprint_Node_Actual, case Object_Declaration): |
| 6591 |
Avoid bomb when printing package Standard. |
| 6592 |
|
| 6593 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6594 |
|
| 6595 |
* sem_elab.adb (Check_Internal_Call_Continue): If an elaboration |
| 6596 |
entity is created at this point, ensure that the name of the |
| 6597 |
flag is unique, because the subprogram may be overloaded and |
| 6598 |
other homonyms may also have elaboration flags created on the fly. |
| 6599 |
|
| 6600 |
2014-07-30 Hristian Kirtchev <[email protected]> |
| 6601 |
|
| 6602 |
* sem_attr.adb (Analyze_Array_Component_Update): New routine. |
| 6603 |
(Analyze_Attribute): Major cleanup of attribute |
| 6604 |
'Update. The logic is now split into two distinct routines |
| 6605 |
depending on the type of the prefix. The use of <> is now illegal |
| 6606 |
in attribute 'Update. |
| 6607 |
(Analyze_Record_Component_Update): New routine. |
| 6608 |
(Check_Component_Reference): Removed. |
| 6609 |
(Resolve_Attribute): Remove the return statement and ??? comment |
| 6610 |
following the processing for attribute 'Update. As a result, |
| 6611 |
the attribute now freezes its prefix. |
| 6612 |
|
| 6613 |
2014-07-30 Javier Miranda <[email protected]> |
| 6614 |
|
| 6615 |
* exp_ch4.adb (Apply_Accessibility_Check): Do |
| 6616 |
not call Base_Address() in VM targets. |
| 6617 |
|
| 6618 |
2014-07-30 Yannick Moy <[email protected]> |
| 6619 |
|
| 6620 |
* gnat1drv.adb (Adjust_Global_Switches): Set |
| 6621 |
Ineffective_Inline_Warnings to True in GNATprove mode. |
| 6622 |
* inline.adb (Cannot_Inline): Prepare new semantics for GNATprove |
| 6623 |
mode of inlining. |
| 6624 |
* opt.ads (Ineffective_Inline_Warnings): Add comment that |
| 6625 |
describes use in GNATprove mode. |
| 6626 |
* sem_prag.adb (Analyze_Pragma|SPARK_Mode): Ignore |
| 6627 |
pragma when applied to the special body created for inlining. |
| 6628 |
|
| 6629 |
2014-07-30 Robert Dewar <[email protected]> |
| 6630 |
|
| 6631 |
* inline.adb, exp_ch4.adb, sinput.adb, sem_ch6.adb, sem_ch13.adb: |
| 6632 |
Minor reformatting. |
| 6633 |
|
| 6634 |
2014-07-30 Hristian Kirtchev <[email protected]> |
| 6635 |
|
| 6636 |
* aspects.ads Add a comment explaining why SPARK 2014 aspects are |
| 6637 |
not delayed. Update the delay status of most SPARK 2014 aspects. |
| 6638 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Update all calls |
| 6639 |
to Decorate_Aspect_And_Pragma and Insert_Delayed_Pragma to refert |
| 6640 |
to Decorate and Insert_Pragma. Add various comments concerning |
| 6641 |
the delay status of several SPARK 2014 aspects. The insertion |
| 6642 |
of Refined_State now uses routine Insert_After_SPARK_Mode. |
| 6643 |
(Decorate): New routine. |
| 6644 |
(Decorate_Aspect_And_Pragma): Removed. |
| 6645 |
(Insert_Delayed_Pragma): Removed. |
| 6646 |
(Insert_Pragma): New routine. |
| 6647 |
|
| 6648 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6649 |
|
| 6650 |
* inline.adb (Expand_Inlined_Call): In GNATprove mode, emit |
| 6651 |
only a warning, not an error on an attempt to inline a recursive |
| 6652 |
subprogram. |
| 6653 |
|
| 6654 |
2014-07-30 Robert Dewar <[email protected]> |
| 6655 |
|
| 6656 |
* g-forstr.adb: Minor code reorganization (use J rather than I |
| 6657 |
as a variable name). |
| 6658 |
* gnat_rm.texi, sem_prag.adb, sem_util.adb, sem_ch13.adb, |
| 6659 |
g-forstr.ads: Minor reformatting. |
| 6660 |
|
| 6661 |
2014-07-30 Eric Botcazou <[email protected]> |
| 6662 |
|
| 6663 |
* sprint.adb (Set_Debug_Sloc): Also reset the end location if |
| 6664 |
we are debugging the generated code. |
| 6665 |
|
| 6666 |
2014-07-30 Yannick Moy <[email protected]> |
| 6667 |
|
| 6668 |
* sinput.ads, sinput.adb (Comes_From_Inlined_Body): New function that |
| 6669 |
returns True for source pointer for an inlined body. |
| 6670 |
|
| 6671 |
2014-07-30 Javier Miranda <[email protected]> |
| 6672 |
|
| 6673 |
* exp_ch4.adb (Apply_Accessibility_Check): Add |
| 6674 |
missing calls to Base_Address(). |
| 6675 |
|
| 6676 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6677 |
|
| 6678 |
* sem_ch6.adb (Hanalyze_Subprogram_Body_Helper): In GNATprove |
| 6679 |
mode, subprogram bodies without a previous declaration are also |
| 6680 |
candidates for front-end inlining. |
| 6681 |
|
| 6682 |
2014-07-30 Hristian Kirtchev <[email protected]> |
| 6683 |
|
| 6684 |
* aspects.ads Aspects Async_Readers, Async_Writers, |
| 6685 |
Effective_Reads and Effective_Writes do not need to be delayed. |
| 6686 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Propagate the |
| 6687 |
optional Boolean expression when generating the corresponding |
| 6688 |
pragma for an external property aspect. |
| 6689 |
* sem_prag.adb (Analyze_External_Property_In_Decl_Part): Remove |
| 6690 |
local constant Obj. Add local constant Obj_Id. Reimplement the |
| 6691 |
check which ensures that the related variable is in fact volatile. |
| 6692 |
(Analyze_Pragma): Reimplement the analysis of external property pragmas. |
| 6693 |
* sem_util.adb (Is_Enabled): New routine. |
| 6694 |
(Variable_Has_Enabled_Property): Reimplement the detection of |
| 6695 |
an enabled external property. |
| 6696 |
|
| 6697 |
2014-07-30 Sergey Rybin <[email protected] frybin> |
| 6698 |
|
| 6699 |
* gnat_ugn.texi, vms_data.ads: gnatstub: describe generating subunits |
| 6700 |
for body stubs. |
| 6701 |
|
| 6702 |
2014-07-30 Pascal Obry <[email protected]> |
| 6703 |
|
| 6704 |
* g-forstr.adb, g-forstr.ads: New. |
| 6705 |
* gnat_rm.texi, impunit.adb Makefile.rtl: Add new unit |
| 6706 |
GNAT.Formatted_String. |
| 6707 |
|
| 6708 |
2014-07-30 Eric Botcazou <[email protected]> |
| 6709 |
|
| 6710 |
* exp_aggr.adb (Aggr_Assignment_OK_For_Backend): New predicate. |
| 6711 |
(Expand_Array_Aggregate): Also enable in-place expansion for |
| 6712 |
code generated by the compiler. For an object declaration, |
| 6713 |
set the kind of the object in addition to its type. If an |
| 6714 |
in-place assignment is to be generated and it can be directly |
| 6715 |
done by the back-end, do not expand the aggregate. |
| 6716 |
* fe.h (Is_Others_Aggregate): Declare. |
| 6717 |
* gcc-interface/trans.c |
| 6718 |
(gnat_to_gnu) <N_Assignment_Statement>: Add support for an |
| 6719 |
aggregate with a single Others choice on the RHS by means of |
| 6720 |
__builtin_memset. Tidy up. |
| 6721 |
|
| 6722 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6723 |
|
| 6724 |
* gnat_rm.texi: minor reformatting. |
| 6725 |
|
| 6726 |
2014-07-30 Yannick Moy <[email protected]> |
| 6727 |
|
| 6728 |
* sem_ch6.adb (Analyze_Subprogram_Helper_Body): Remove body to inline |
| 6729 |
in SPARK_Mode Off. |
| 6730 |
|
| 6731 |
2014-07-30 Robert Dewar <[email protected]> |
| 6732 |
|
| 6733 |
* gnat_rm.texi: Document additional implementation-defined use |
| 6734 |
of Constrained. |
| 6735 |
|
| 6736 |
2014-07-30 Robert Dewar <[email protected]> |
| 6737 |
|
| 6738 |
* prj-proc.adb, prj-strt.adb: Update comments. |
| 6739 |
|
| 6740 |
2014-07-30 Gary Dismukes <[email protected]> |
| 6741 |
|
| 6742 |
* sinfo.ads, einfo.ads, checks.ads: Minor typo fix and reformatting. |
| 6743 |
|
| 6744 |
2014-07-30 Vincent Celier <[email protected]> |
| 6745 |
|
| 6746 |
* prj-proc.adb (Imported_Or_Extended_Project_From): New Boolean |
| 6747 |
parameter No_Extending, defaulted to False. When No_Extending |
| 6748 |
is True, do not look for an extending project. |
| 6749 |
(Expression): For a variable reference that is not for the current |
| 6750 |
project, get its Id calling Imported_Or_Extended_Project_From |
| 6751 |
with No_Extending set to True. |
| 6752 |
* prj-strt.adb (Parse_Variable_Reference): If a referenced |
| 6753 |
variable is not found in the current project, check if it is |
| 6754 |
defined in one of the projects it extends. |
| 6755 |
|
| 6756 |
2014-07-30 Robert Dewar <[email protected]> |
| 6757 |
|
| 6758 |
* sem_util.adb (Predicate_Tests_On_Arguments): Omit tests for |
| 6759 |
some additional cases of internally generated routines. |
| 6760 |
|
| 6761 |
2014-07-30 Ed Schonberg <[email protected]> |
| 6762 |
|
| 6763 |
* sem_ch10.adb (Analyze_Proper_Body): When compiling for ASIS, |
| 6764 |
if the compilation unit is a subunit, extend optional processing |
| 6765 |
to all subunits of the current one. This allows gnatstub to |
| 6766 |
supress generation of spurious bodies. |
| 6767 |
|
| 6768 |
2014-07-30 Hristian Kirtchev <[email protected]> |
| 6769 |
|
| 6770 |
* a-cbmutr.adb (Insert_Child): Use local variable First to keep |
| 6771 |
track of the initial element's index within the tree. |
| 6772 |
|
| 6773 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 6774 |
|
| 6775 |
* a-cbmutr.adb (Allocate_Node): Remove the two parameter version. |
| 6776 |
(Insert_Child): Add local variable First. Capture the index of the |
| 6777 |
first node being created to ensure correct cursor construction |
| 6778 |
later on. Use the three parameter version of Allocate_Node |
| 6779 |
when creating multiple children as this method allows aspect |
| 6780 |
Default_Value to take effect (if applicable). |
| 6781 |
|
| 6782 |
2014-07-29 Eric Botcazou <[email protected]> |
| 6783 |
|
| 6784 |
* exp_aggr.adb (Safe_Slice_Assignment): Remove. |
| 6785 |
(Expand_Array_Aggregate): For a safe slice assignment, just set |
| 6786 |
the target and use the common code path. |
| 6787 |
|
| 6788 |
2014-07-29 Robert Dewar <[email protected]> |
| 6789 |
|
| 6790 |
* sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb: Invert |
| 6791 |
predicate No_Predicate_Test_On_Arguments, new name is |
| 6792 |
Predicate_Tests_On_Arguments (with the opposite sense). |
| 6793 |
|
| 6794 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 6795 |
|
| 6796 |
* sem_attr.adb (Resolve_Attribute): Clean up the code for |
| 6797 |
attribute 'Access. Do not generate an elaboration flag for a |
| 6798 |
stand alone expression function. The expression of an expression |
| 6799 |
function is now frozen when the expression function appears as |
| 6800 |
the prefix of attribute 'Access. |
| 6801 |
* sem_ch6.adb (Analyze_Expression_Function): Remove local |
| 6802 |
variable New_Decl and update all references to it after the |
| 6803 |
rewriting has taken place. Establish the linkages between the |
| 6804 |
generated spec and body. |
| 6805 |
|
| 6806 |
2014-07-29 Robert Dewar <[email protected]> |
| 6807 |
|
| 6808 |
* sem_prag.adb (ip, rv): Prevent from being optimized away. |
| 6809 |
* gnatls.adb (gnatls): Set E_Fatal exit status if ali file not found. |
| 6810 |
* s-imgllb.adb, s-imgllw.adb, s-imgwiu.adb, s-imgbiu.adb: Minor |
| 6811 |
reformatting. |
| 6812 |
|
| 6813 |
2014-07-29 Vincent Celier <[email protected]> |
| 6814 |
|
| 6815 |
* prj-pp.adb: Minor comment update. |
| 6816 |
* frontend.adb: If a target dependency info file has been read |
| 6817 |
through switch -gnateT= add it to the dependencies of the source |
| 6818 |
being compiled. |
| 6819 |
|
| 6820 |
2014-07-29 Robert Dewar <[email protected]> |
| 6821 |
|
| 6822 |
* sem_ch3.adb, prj.adb: Minor reformatting. |
| 6823 |
|
| 6824 |
2014-07-29 Vincent Celier <[email protected]> |
| 6825 |
|
| 6826 |
* prj-pp.adb (Pretty_Print.Output_Project_File): New |
| 6827 |
procedure to output project file names between quotes without |
| 6828 |
concatenation, even if the line is too long. |
| 6829 |
(Pretty_Print): Use Output_Project_File for project being extended and |
| 6830 |
project imported. |
| 6831 |
|
| 6832 |
2014-07-29 Vincent Celier <[email protected]> |
| 6833 |
|
| 6834 |
* gnat_ugn.texi: Document that configuration pragmas files are |
| 6835 |
added to the dependencies, unless they contain only pragmas |
| 6836 |
Source_File_Name_Project. |
| 6837 |
|
| 6838 |
2014-07-29 Robert Dewar <[email protected]> |
| 6839 |
|
| 6840 |
* frontend.adb: Minor reformatting. |
| 6841 |
|
| 6842 |
2014-07-29 Robert Dewar <[email protected]> |
| 6843 |
|
| 6844 |
* exp_ch6.adb (Add_Call_By_Copy_Code): Minor reformatting |
| 6845 |
(Expand_Actuals): Make sure predicate checks are properly applied |
| 6846 |
for the case of OUT or IN OUT parameters. |
| 6847 |
* sem_res.adb: Minor reformatting (Resolve_Actuals): Skip |
| 6848 |
predicate tests on arguments for Finalize |
| 6849 |
* sem_util.adb (No_Predicate_Test_On_Arguments): Returns True |
| 6850 |
if predicate tests on subprogram arguments should be skipped. |
| 6851 |
* sem_util.ads (No_Predicate_Test_On_Arguments): New function |
| 6852 |
|
| 6853 |
2014-07-29 Ed Schonberg <[email protected]> |
| 6854 |
|
| 6855 |
* sem_ch3.adb (Analyze_Object_Declaration): If there is an address |
| 6856 |
clause for the object and the expression is an aggregate, defer |
| 6857 |
resolution and expansion of the aggregate until the freeze point |
| 6858 |
of the entity. |
| 6859 |
* sem_aggr.adb (Resolve_Aggregate): An others_clause is legal if |
| 6860 |
the parent node is an N_Reference generated during expansion. |
| 6861 |
|
| 6862 |
2014-07-29 Vincent Celier <[email protected]> |
| 6863 |
|
| 6864 |
* prj.adb (Add_To_Buffer): Effectively double the size of the buffer. |
| 6865 |
|
| 6866 |
2014-07-29 Robert Dewar <[email protected]> |
| 6867 |
|
| 6868 |
* frontend.adb, inline.adb, sem_util.adb, sem_res.adb, |
| 6869 |
prepcomp.ads: Minor reformatting and code clean up. |
| 6870 |
* exp_ch6.adb (Expand_Actuals): Generate predicate test |
| 6871 |
unconditionally for case of OUT or IN OUT actual (before this |
| 6872 |
was generated only for certain subcases, which is wrong, the |
| 6873 |
test is always needed). |
| 6874 |
|
| 6875 |
2014-07-29 Ed Schonberg <[email protected]> |
| 6876 |
|
| 6877 |
* sem_ch3.adb: Move Has_Defaulted_Discriminants to sem_util. |
| 6878 |
* sem_ch4.adb (Analyze_Allocator): Defer resolution of expression |
| 6879 |
until context type is available. |
| 6880 |
* sem_res.adb (Resolve_Allocator): In the case of a qualified |
| 6881 |
expression, complete resolution of expression. |
| 6882 |
(Check_Aliased_Parameter): New procedure within Resolve_Actuals, |
| 6883 |
to apply Ada2012 checks on aliased formals, as well as |
| 6884 |
accesibility checks when the context of the call is an allocator |
| 6885 |
or a qualified expression. |
| 6886 |
* sem_util.ads, sem_util.adb (Has_Defaulted_Discriminants): |
| 6887 |
Moved here from sem_ch3. |
| 6888 |
(Object_Access_Level): Handle properly aliased formals and |
| 6889 |
aggregates. |
| 6890 |
* exp_ch6.adb (Expand_Call): Remove check on aliased parameters, |
| 6891 |
now properly performed in sem_res (Resolve_Actuals, |
| 6892 |
Check_Aliased_Parameter). |
| 6893 |
|
| 6894 |
2014-07-29 Yannick Moy <[email protected]> |
| 6895 |
|
| 6896 |
* debug.adb Enable GNATprove inlining under debug flag -gnatdQ for now. |
| 6897 |
* inline.ads, inline.adb (Can_Be_Inlined_In_GNATprove_Mode): New |
| 6898 |
function to decide when a subprogram can be inlined in GNATprove mode. |
| 6899 |
(Check_And_Build_Body_To_Inline): Include GNATprove_Mode as a |
| 6900 |
condition for possible inlining. |
| 6901 |
* sem_ch10.adb (Analyze_Compilation_Unit): Remove special case |
| 6902 |
for Inline_Always in GNATprove mode. |
| 6903 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build inlined |
| 6904 |
body for subprograms in GNATprove mode, under debug flag -gnatdQ. |
| 6905 |
* sem_prag.adb Minor change in comments. |
| 6906 |
* sem_res.adb (Resolve_Call): Only perform GNATprove inlining |
| 6907 |
inside subprograms marked as SPARK_Mode On. |
| 6908 |
* sinfo.ads: Minor typo fix. |
| 6909 |
|
| 6910 |
2014-07-29 Vincent Celier <[email protected]> |
| 6911 |
|
| 6912 |
* frontend.adb: Add dependency on gnat.adc when taken into account |
| 6913 |
and on non-temporary configuration pragmas files specified in |
| 6914 |
switches -gnatec. |
| 6915 |
* prepcomp.ads, prepcomp.adb (Add_Dependency): New procedure to add |
| 6916 |
dependencies on configuration pragmas files. |
| 6917 |
|
| 6918 |
2014-07-29 Pat Rogers <[email protected]> |
| 6919 |
|
| 6920 |
* gnat_ugn.texi: Minor clarification to the explanation for the |
| 6921 |
GNATtest -v switch. |
| 6922 |
|
| 6923 |
2014-07-29 Robert Dewar <[email protected]> |
| 6924 |
|
| 6925 |
* types.ads (Mechanism_Type): Change range back to -18 .. Int'Last with |
| 6926 |
documentation that explains the need for this extended range |
| 6927 |
(use by C_Pass_By_Copy). |
| 6928 |
|
| 6929 |
2014-07-29 Robert Dewar <[email protected]> |
| 6930 |
|
| 6931 |
* gnat_rm.texi, sem_prag.adb: Minor reformatting. |
| 6932 |
|
| 6933 |
2014-07-29 Sergey Rybin <[email protected] frybin> |
| 6934 |
|
| 6935 |
* gnat_ugn.texi: gnatmetric: clarify documentation for cyclomatic |
| 6936 |
complexity metrics. |
| 6937 |
|
| 6938 |
2014-07-29 Thomas Quinot <[email protected]> |
| 6939 |
|
| 6940 |
PR ada/60652 |
| 6941 |
* s-oscons-tmplt.c: For Linux, define _BSD_SOURCE in order for |
| 6942 |
CRTSCTS to be visible. |
| 6943 |
|
| 6944 |
2014-07-29 Bob Duff <[email protected]> |
| 6945 |
|
| 6946 |
* g-trasym.adb, g-trasym.ads: Code cleanup. |
| 6947 |
|
| 6948 |
2014-07-29 Doug Rupp <[email protected]> |
| 6949 |
|
| 6950 |
* sigtramp-vxworks.c: Minor reformatting. |
| 6951 |
|
| 6952 |
2014-07-29 Ed Schonberg <[email protected]> |
| 6953 |
|
| 6954 |
* gnat_rm.texi: No doc needed for Ada2012 aspect |
| 6955 |
Implicit_dereference. |
| 6956 |
|
| 6957 |
2014-07-29 Robert Dewar <[email protected]> |
| 6958 |
|
| 6959 |
* sem_attr.adb (Attribute_12): New array |
| 6960 |
(Analyze_Attribute): Check impl-defined Ada 2012 attributes. |
| 6961 |
(Check_Ada_2012_Attribute): Removed. |
| 6962 |
|
| 6963 |
2014-07-29 Doug Rupp <[email protected]> |
| 6964 |
|
| 6965 |
* init.c (vxworks6): Call sigtramp for RTP (as well as DKM) for ARM, |
| 6966 |
PPC, and e500. |
| 6967 |
* sigtramp-vxworks.c: New file. |
| 6968 |
* sigtramp-armvxw.c, sigtramp-ppcvxw.c: removed files. |
| 6969 |
|
| 6970 |
2014-07-29 Ed Schonberg <[email protected]> |
| 6971 |
|
| 6972 |
* lib-xref.adb (Output_Refs, Check_Type_Reference): For a |
| 6973 |
derived array type, add information about component type, which |
| 6974 |
was previously missing in ali file. |
| 6975 |
* gnat_rm.texi: Add documentation for Atomic_Always_Lock_Free. |
| 6976 |
|
| 6977 |
2014-07-29 Thomas Quinot <[email protected]> |
| 6978 |
|
| 6979 |
* sem_ch3.adb (Constrain_Corresponding_Record): For the case |
| 6980 |
of the subtype created for a record component, do not mark |
| 6981 |
the subtype as frozen. For one thing, this is anomalous (in |
| 6982 |
particular, the base type might not itself be frozen yet); |
| 6983 |
furthermore, proper freezing of the subtype must happen in any |
| 6984 |
case. So, we just mark the subtype as requiring delayed freezing |
| 6985 |
(and we'll actually freeze it when generating the init_proc of |
| 6986 |
the enclosing record). |
| 6987 |
Also change the name of the constrained record subtype (append a |
| 6988 |
'C' so that it is clearly different from the unconstrained record |
| 6989 |
type, "related_idV") to make debugging easier. |
| 6990 |
(Process_Full_View): When creating a full subtype for a pending |
| 6991 |
private subtype, re-establish the scope of the private subtype |
| 6992 |
so that we get proper visibility on outer discriminants. |
| 6993 |
* exp_ch3.adb (Build_Init_Statements): Freeze any component |
| 6994 |
subtype that is not frozen yet. |
| 6995 |
|
| 6996 |
2014-07-29 Vincent Celier <[email protected]> |
| 6997 |
|
| 6998 |
* prj-proc.adb (Recursive_Process): Always initialize the |
| 6999 |
environment when the project is an aggregate project, even when |
| 7000 |
it is not the root tree. |
| 7001 |
2014-07-29 Robert Dewar <[email protected]> |
| 7002 |
|
| 7003 |
* exp_ch5.adb, exp_ch9.adb: Minor comment additions. |
| 7004 |
* gnat_rm.texi: Complete list of implementation aspects. |
| 7005 |
* aspects.ads: Minor comment clarification. |
| 7006 |
|
| 7007 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7008 |
|
| 7009 |
* exp_ch5.adb (Expand_N_Assignment_Statement): If the target type |
| 7010 |
is a null-excluding access type, do not generate a constraint |
| 7011 |
check if Suppress_Assignment_Checks is set on assignment node. |
| 7012 |
* exp_ch9.adb (Build_Simple_Entry_Call): If actual is an out |
| 7013 |
parameter of a null-excluding access type, there is access check |
| 7014 |
on entry, so set Suppress_Assignment_Checks on generated statement |
| 7015 |
that assigns actual to parameter block. |
| 7016 |
* sinfo.ads: Document additional use of Suppress_Assignment_Checks. |
| 7017 |
|
| 7018 |
2014-07-29 Robert Dewar <[email protected]> |
| 7019 |
|
| 7020 |
* gnat_rm.texi: Change theta to @ in documentation of aspect |
| 7021 |
Dimension_System. |
| 7022 |
|
| 7023 |
2014-07-29 Robert Dewar <[email protected]> |
| 7024 |
|
| 7025 |
* sem_attr.adb (Uneval_Old_Msg): Flags Uneval_Old_Accept/Warn |
| 7026 |
are now on pragma. |
| 7027 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Remove setting |
| 7028 |
of Uneval_Old_* |
| 7029 |
* sem_prag.adb (Analyze_Pragma): Set Uneval_Old_* flags |
| 7030 |
* sinfo.ads, sinfo.adb: Move Uneval_Old_Accept/Warn to N_Pragma node. |
| 7031 |
|
| 7032 |
2014-07-29 Javier Miranda <[email protected]> |
| 7033 |
|
| 7034 |
* types.ads Update documentation on how to add new reason codes |
| 7035 |
for exceptions. |
| 7036 |
(RT_Exception_Code): Keep values ordered by their |
| 7037 |
reason code. Required by the .NET backend. |
| 7038 |
(RT_CE_Exceptions): Subtype declaration removed. |
| 7039 |
(RT_PE_Exceptions): Subtype declaration removed. |
| 7040 |
(RT_SE_Exceptions): Subtype declaration removed. |
| 7041 |
(Kind): New mapping table of RT_Exception_Codes. |
| 7042 |
* exp_ch11.adb (Get_RT_Exception_Entity): Updated to use the |
| 7043 |
new mapping table. |
| 7044 |
* tbuild.adb (Make_Raise_Storage_Error): Updated to use the new |
| 7045 |
mapping table. (Make_Raise_Program_Error): Updated to use the |
| 7046 |
new mapping table. |
| 7047 |
(Make_Raise_Storage_Error): Updated to use the new mapping table. |
| 7048 |
* a-except.adb Keep Rcheck_CE_xxx entities ordered according to |
| 7049 |
their reason code. |
| 7050 |
|
| 7051 |
2014-07-29 Thomas Quinot <[email protected]> |
| 7052 |
|
| 7053 |
* gnat_rm.texi: Document internal attributes used for PolyORB/DSA |
| 7054 |
distributed stubs generation. |
| 7055 |
* exp_ch3.adb: Minor reformatting. |
| 7056 |
|
| 7057 |
2014-07-29 Yannick Moy <[email protected]> |
| 7058 |
|
| 7059 |
* sinfo.ads: Document constraint between frontend and GNATprove. |
| 7060 |
|
| 7061 |
2014-07-29 Robert Dewar <[email protected]> |
| 7062 |
|
| 7063 |
* a-except.adb: Minor comment clarification. |
| 7064 |
|
| 7065 |
2014-07-29 Robert Dewar <[email protected]> |
| 7066 |
|
| 7067 |
* gnat_rm.texi: Complete list of implementation attributes. |
| 7068 |
* snames.ads-tmpl: Clean up list of impl-defined attributes. |
| 7069 |
|
| 7070 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 7071 |
|
| 7072 |
* freeze.adb (Freeze_Record_Type): Perform various |
| 7073 |
volatility-related checks. |
| 7074 |
|
| 7075 |
2014-07-29 Robert Dewar <[email protected]> |
| 7076 |
|
| 7077 |
* sem_ch3.adb, sem_eval.adb: Minor reformatting. |
| 7078 |
|
| 7079 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7080 |
|
| 7081 |
* sem_attr.adb: sem_attr.adb (Access_Attribute): Handle properly |
| 7082 |
the case where the attribute reference appears in a nested scope |
| 7083 |
from that of the subprogram prefix. |
| 7084 |
* sem_attr.adb: Minor reformatting. |
| 7085 |
|
| 7086 |
2014-07-29 Robert Dewar <[email protected]> |
| 7087 |
|
| 7088 |
* gnat_ugn.texi: Clarify documentation of Initialize_Scalar |
| 7089 |
initialization options. |
| 7090 |
|
| 7091 |
2014-07-29 Robert Dewar <[email protected]> |
| 7092 |
|
| 7093 |
* sinfo.ads: Minor comment addition. |
| 7094 |
|
| 7095 |
2014-07-29 Bob Duff <[email protected]> |
| 7096 |
|
| 7097 |
* sem_eval.adb, sem_ch13.adb: Minor reformatting. |
| 7098 |
|
| 7099 |
2014-07-29 Doug Rupp <[email protected]> |
| 7100 |
|
| 7101 |
* init.c: Complete previous change. |
| 7102 |
|
| 7103 |
2014-07-29 Robert Dewar <[email protected]> |
| 7104 |
|
| 7105 |
* exp_ch4.adb (Expand_N_If_Expression): Deal with unconstrained |
| 7106 |
array case. |
| 7107 |
|
| 7108 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7109 |
|
| 7110 |
* sem_attr.adb (Access_Attribute): If the prefix is a subprogram |
| 7111 |
and the completion will appear in the same declarative part, |
| 7112 |
create elaboration flag. |
| 7113 |
* exp_util.adb (Set_Elaboration_Flag): If the subprogram body |
| 7114 |
is a completion of a declaration in the same declarative part, |
| 7115 |
and the subprogram has had its address taken, add elaboration |
| 7116 |
check inside the subprogram body, to detect elaboration errors |
| 7117 |
that may occur through indirect calls. |
| 7118 |
|
| 7119 |
2014-07-29 Doug Rupp <[email protected]> |
| 7120 |
|
| 7121 |
* sigtramp-armvxw.c: Enhance to handle RTP trampolining. |
| 7122 |
* init.c: Remove guard on sigtramp for ARM VxWorks RTP. |
| 7123 |
|
| 7124 |
2014-07-29 Vincent Celier <[email protected]> |
| 7125 |
|
| 7126 |
* switch-c.adb (Scan_Front_End_Switches): Do not fail when two |
| 7127 |
runtime directorie specified with two switches --RTS= designate |
| 7128 |
the same directory, even when there are no literarily the same. |
| 7129 |
|
| 7130 |
2014-07-29 Robert Dewar <[email protected]> |
| 7131 |
|
| 7132 |
* gnat_ugn.texi: Minor documentation clarification. |
| 7133 |
* switch-c.adb: Minor reformatting. |
| 7134 |
|
| 7135 |
2014-07-29 Robert Dewar <[email protected]> |
| 7136 |
|
| 7137 |
* sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address): |
| 7138 |
Fix incorrect RTE call which caused bomb if pragma was in |
| 7139 |
configuration pragma file. |
| 7140 |
|
| 7141 |
2014-07-29 Jerome Lambourg <[email protected]> |
| 7142 |
|
| 7143 |
* expect.c (__gnat_expect_poll): Fix typo in previous change. |
| 7144 |
* g-expect.adb: Update comments. |
| 7145 |
|
| 7146 |
2014-07-29 Arnaud Charlet <[email protected]> |
| 7147 |
|
| 7148 |
* s-parame-hpux.ads, s-parame-vms-ia64.ads, s-parame.ads |
| 7149 |
(Default_Attribute_Count): Bump to 16 on native platforms. |
| 7150 |
|
| 7151 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7152 |
|
| 7153 |
* sem_res.adb: Add guard to front-end inlining for SPARK. |
| 7154 |
|
| 7155 |
2014-07-29 Robert Dewar <[email protected]> |
| 7156 |
|
| 7157 |
* sem_ch10.adb, debug.adb, sem_prag.adb, sem_res.adb, sem_ch6.adb: |
| 7158 |
Minor reformatting. |
| 7159 |
|
| 7160 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7161 |
|
| 7162 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build body to |
| 7163 |
inline in GNATprove mode when subprogran is marked Inline_Always. |
| 7164 |
* sem_res.adb (Resolve_Call): Expand call in place in GNATProve |
| 7165 |
mode if body to inline is available. |
| 7166 |
* sem_prag.adb (Analyze_Pragma, case Inline_Always): Make pragma |
| 7167 |
effective in GNATprove mode. |
| 7168 |
* sem_ch10.adb (Analyze_Compilation_Unit): Call |
| 7169 |
Check_Package_Body_For_Inlining in GNATprove mode, so that body |
| 7170 |
containing subprograms with Inline_Always can be available before |
| 7171 |
calls to them. |
| 7172 |
|
| 7173 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7174 |
|
| 7175 |
* inline.ads, inline.adb, sem_ch10.adb: Rename Check_Body_For_Inlining |
| 7176 |
to Check_Package_Body_For_Inlining, to prevent confusion with other |
| 7177 |
inlining subprograms. |
| 7178 |
|
| 7179 |
2014-07-29 Robert Dewar <[email protected]> |
| 7180 |
|
| 7181 |
* opt.ads: Minor comment update. |
| 7182 |
* sem_attr.adb (Uneval_Old_Msg): Deal with case of aspect, where |
| 7183 |
we want setting of Uneval_Old at time of encountering the aspect. |
| 7184 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Capture setting |
| 7185 |
of Opt.Uneval_Old. |
| 7186 |
* sinfo.adb (Uneval_Old_Accept): New function (Uneval_Old_Warn): |
| 7187 |
New function (Set_Uneval_Old_Accept): New procedure. |
| 7188 |
(Set_Uneval_Old_Warn): New procedure. |
| 7189 |
* sinfo.ads: Uneval_Old_Accept: New flag Uneval_Old_Warn: New flag. |
| 7190 |
|
| 7191 |
2014-07-29 Robert Dewar <[email protected]> |
| 7192 |
|
| 7193 |
* sinfo.ads, inline.adb, inline.ads, sem_ch6.adb: Minor reformatting. |
| 7194 |
* snames.ads-tmpl: Minor reformatting. |
| 7195 |
* xsnamest.adb (XSnamesT): Remove special casing of Name_Error |
| 7196 |
to give <Error>. Not clear why this was there, but the compiler |
| 7197 |
sources do not reference Name_Error, and this interfered with |
| 7198 |
the circuits for pragma Unevaluated_Use_Of_Old. |
| 7199 |
|
| 7200 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 7201 |
|
| 7202 |
* sem_prag.adb (Process_Atomic_Shared_Volatile): Allow volatile |
| 7203 |
types in SPARK 2014 (again). |
| 7204 |
* sem_res.adb (Is_OK_Volatile_Context): New routine. |
| 7205 |
(Resolve_Entity_Name): Ensure that a volatile object with |
| 7206 |
enabled properties Async_Writers or Effectire_Reads appears in |
| 7207 |
a non-interfering context. |
| 7208 |
|
| 7209 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7210 |
|
| 7211 |
* sem_ch6.adb: Move Build_Body_To_Inline, |
| 7212 |
Check_And_Buid_Body_To_Inline, and Cannot_Inline to package Inline. |
| 7213 |
* exp_ch6.adb: Mode Expand_Inlined_Body to package Inline. |
| 7214 |
* inline.ads, inline.adb: Package now contains subprograms that |
| 7215 |
implement front-end inlining. No functional changes, no test |
| 7216 |
needed. |
| 7217 |
|
| 7218 |
2014-07-29 Robert Dewar <[email protected]> |
| 7219 |
|
| 7220 |
* exp_dbug.adb, g-expect.adb, sem_elab.adb: Minor typo fix. |
| 7221 |
|
| 7222 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7223 |
|
| 7224 |
* sem_ch6.adb (Analyze_Return_Type): Reject a return type that |
| 7225 |
is a limited view when the context is a package body, because |
| 7226 |
there is no subsequent place at which the non-limited view may |
| 7227 |
become visible. |
| 7228 |
(Process_Formals): Ditto. |
| 7229 |
* sinfo.ads, par-ch3.adb: Minor reformatting. |
| 7230 |
|
| 7231 |
2014-07-29 Jerome Lambourg <[email protected]> |
| 7232 |
|
| 7233 |
* expect.c (__gnat_expect_poll): New parameter dead_process |
| 7234 |
used to return the dead process among the array of file |
| 7235 |
descriptors. The Windows, VMS and HPUX implementations now |
| 7236 |
properly report the dead process via this parameter. Other unixes |
| 7237 |
don't need it. |
| 7238 |
* g-expect.adb (Poll): Adapt to the C profile. |
| 7239 |
(Expect_Internal): Use the new parameter to properly close the |
| 7240 |
File Descriptor. This then can be properly reported by the |
| 7241 |
function First_Dead_Process as is expected. |
| 7242 |
|
| 7243 |
2014-07-29 Robert Dewar <[email protected]> |
| 7244 |
|
| 7245 |
* gnat_ugn.texi: Minor clarification of -gnatQ switch. |
| 7246 |
|
| 7247 |
2014-07-29 Robert Dewar <[email protected]> |
| 7248 |
|
| 7249 |
* einfo.adb (Derived_Type_Link): New function |
| 7250 |
(Set_Derived_Type_Link): New procedure. |
| 7251 |
(Write_Field31_Name): Output Derived_Type_Link. |
| 7252 |
* einfo.ads: New field Derived_Type_Link. |
| 7253 |
* exp_ch6.adb (Expand_Call): Warn if change of representation |
| 7254 |
needed on call. |
| 7255 |
* sem_ch13.adb: Minor addition of ??? comment. |
| 7256 |
(Rep_Item_Too_Late): Warn on case that is legal but could cause an |
| 7257 |
expensive implicit conversion. |
| 7258 |
* sem_ch3.adb (Build_Derived_Type): Set Derived_Type_Link if needed. |
| 7259 |
|
| 7260 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 7261 |
|
| 7262 |
* exp_ch3.adb (Build_Init_Procedure): Renamed Local_DF_Id |
| 7263 |
to DF_Id. Add new local variable DF_Call. Do not perform any |
| 7264 |
elaboration-related checks on the call to the partial finalization |
| 7265 |
routine within an init proc to avoid generating bogus elaboration |
| 7266 |
warnings on expansion-related code. |
| 7267 |
* sem_elab.adb (Check_A_Call): Move constant Access_Case to |
| 7268 |
the top level of the routine. Ensure that Output_Calls takes |
| 7269 |
into account flags -gnatel and -gnatwl when emitting warnings |
| 7270 |
or info messages. |
| 7271 |
(Check_Internal_Call_Continue): Update the call to Output_Calls. |
| 7272 |
(Elab_Warning): Moved to the top level of routine Check_A_Call. |
| 7273 |
(Emit): New routines. |
| 7274 |
(Output_Calls): Add new formal parameter Check_Elab_Flag along with a |
| 7275 |
comment on usage. Output all warnings or info messages only when the |
| 7276 |
caller context demands it and the proper elaboration flag is set. |
| 7277 |
|
| 7278 |
2014-07-29 Yannick Moy <[email protected]> |
| 7279 |
|
| 7280 |
* sem_attr.adb (Analyze_Attribute/Attribute_Old): |
| 7281 |
Check rule about Old appearing in potentially unevaluated |
| 7282 |
expression everywhere, not only in Post. |
| 7283 |
|
| 7284 |
2014-07-29 Arnaud Charlet <[email protected]> |
| 7285 |
|
| 7286 |
* sem_prag.adb: Update comment. |
| 7287 |
* a-except.adb, a-except-2005.adb: Minor editing. |
| 7288 |
|
| 7289 |
2014-07-29 Pierre-Marie Derodat <[email protected]> |
| 7290 |
|
| 7291 |
* exp_dbug.adb (Debug_Renaming_Declaration): |
| 7292 |
Do not create renaming entities for renamings of non-packed |
| 7293 |
objects and for exceptions. |
| 7294 |
|
| 7295 |
2014-07-29 Robert Dewar <[email protected]> |
| 7296 |
|
| 7297 |
* sem_ch3.adb, sinfo.ads, types.ads, sem_prag.adb, a-except-2005.adb, |
| 7298 |
sem_ch6.adb, par-ch3.adb: Minor reformatting. |
| 7299 |
|
| 7300 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7301 |
|
| 7302 |
* sem_ch6.adb (Check_Return_Subtype_Indication): Reject a return |
| 7303 |
subtype indication in an extended return statement when the |
| 7304 |
return value is an ancestor of the return type of the function, |
| 7305 |
and that return type is a null record extension. |
| 7306 |
|
| 7307 |
2014-07-29 Thomas Quinot <[email protected]> |
| 7308 |
|
| 7309 |
* sem_ch13.adb (Rep_Item_Too_Late): Specialize/clarify error |
| 7310 |
message produced for the case of a type-related representation |
| 7311 |
item that is made illegal by 13.10(1). |
| 7312 |
* gnat_rm.texi (Scalar_Storage_Order): Minor change in |
| 7313 |
documentation. |
| 7314 |
|
| 7315 |
2014-07-29 Robert Dewar <[email protected]> |
| 7316 |
|
| 7317 |
* gnat_ugn.texi: Add section on Wide_Wide_Character encodings. |
| 7318 |
* erroutc.adb (Output_Error_Msgs): Take wide characters into |
| 7319 |
account in computing position of error flags. |
| 7320 |
* sinput.adb (Get_Column_Number): Take wide characters into |
| 7321 |
account. |
| 7322 |
|
| 7323 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7324 |
|
| 7325 |
* par-ch3.adb (P_Access_Type_Definition): The subtype indication |
| 7326 |
in an access type definition can carry a null_exclusion indicator. |
| 7327 |
* sem_ch3.adb (Access_Type_Declaration): If the subtype indication |
| 7328 |
carries a null_exclusion indicator, verify that the subtype |
| 7329 |
indication denotes an access type, and create a null-excluding |
| 7330 |
subtype for it. |
| 7331 |
* sinfo.ads, sinfo.adb: New attribute Null_Excluding_Subtype, |
| 7332 |
defined on N_Access_To_Object_Definition to indicate that the |
| 7333 |
subtype indication carries a null_exclusion indicator. |
| 7334 |
|
| 7335 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 7336 |
|
| 7337 |
* exp_ch6.adb (Add_Extra_Actual): Do not construct |
| 7338 |
the extra actual by name, generate a reference instead. |
| 7339 |
|
| 7340 |
2014-07-29 Arnaud Charlet <[email protected]> |
| 7341 |
|
| 7342 |
* sem_prag.adb (Analyze_Pragma): Do not crash analyzing |
| 7343 |
Allow_Integer_Address if already set. |
| 7344 |
* a-except-2005.adb (Rcheck_PE_Stream_Operation_Not_Allowed): |
| 7345 |
Fix order, for consistency with Rmsg_xx declarations. |
| 7346 |
|
| 7347 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7348 |
|
| 7349 |
* sem_ch4.adb (Complete_Object_Operation): If the type of the |
| 7350 |
candidate subprogram is a limited view, use non-limited view |
| 7351 |
when available. |
| 7352 |
|
| 7353 |
2014-07-29 Robert Dewar <[email protected]> |
| 7354 |
|
| 7355 |
* sem_ch13.adb: Minor change in RM reference. |
| 7356 |
* sem_mech.ads: Minor reformatting. |
| 7357 |
* einfo.ads: Minor comment fix. |
| 7358 |
* types.ads: Minor correction to range given for Mechanism_Type. |
| 7359 |
* exp_ch6.adb (Add_Invariant_And_Predicate_Checks): Do not |
| 7360 |
check predicate on way out for OUT or IN OUT parameters. |
| 7361 |
* par-ch3.adb (P_Constraint_Opt): Handle missing RANGE keyword |
| 7362 |
better (P_Range_Constraint): Corresponding fix. |
| 7363 |
* checks.ads: Minor comment clarification. |
| 7364 |
|
| 7365 |
2014-07-29 Gary Dismukes <[email protected]> |
| 7366 |
|
| 7367 |
* sem_ch8.adb (Analyze_Object_Renaming): Set the Is_Volatile |
| 7368 |
and Treat_As_Volatile flags based on whether the renamed object |
| 7369 |
is a volatile object. |
| 7370 |
|
| 7371 |
2014-07-29 Olivier Hainque <[email protected]> |
| 7372 |
|
| 7373 |
* g-debpoo.adb |
| 7374 |
(Default_Alignment): Rename as Storage_Alignment. This is not |
| 7375 |
a "default" that can be overriden. Augment comment to clarify |
| 7376 |
intent and document why we need to manage alignment padding. |
| 7377 |
(Header_Offset): Set to Header'Object_Size instead of 'Size |
| 7378 |
rounded up to Storage_Alignment. Storage_Alignment on the |
| 7379 |
allocation header is not required by our internals so was |
| 7380 |
overkill. 'Object_Size is enough to ensure proper alignment |
| 7381 |
of the header address when substracted from a storage address |
| 7382 |
aligned on Storage_Alignment. |
| 7383 |
(Minimum_Allocation): Rename as Extra_Allocation, conveying that |
| 7384 |
this is always added on top of the incoming allocation requests. |
| 7385 |
(Align): New function, to perform alignment rounding operations. |
| 7386 |
(Allocate): Add comments on the Storage_Address computation |
| 7387 |
scheme and adjust so that the alignment padding applies to that |
| 7388 |
(Storage_Address) only. |
| 7389 |
|
| 7390 |
2014-07-29 Robert Dewar <[email protected]> |
| 7391 |
|
| 7392 |
* exp_ch3.adb (Default_Initialize_Object): Remove incorrect |
| 7393 |
pragma Unreferenced. |
| 7394 |
* cstand.adb (Create_Standard): Use E_Array_Type for standard |
| 7395 |
string types. Make sure index of Any_String/Any_Array is in a list. |
| 7396 |
* errout.adb: Minor reformatting. |
| 7397 |
|
| 7398 |
2014-07-29 Robert Dewar <[email protected]> |
| 7399 |
|
| 7400 |
* gnat_ugn.texi: Clean up and correct documentation of warnings. |
| 7401 |
* usage.adb: Minor corrections to make sure warnings are properly |
| 7402 |
documented. |
| 7403 |
* warnsw.adb (Set_Warning_Switch): Remove redundant return statement. |
| 7404 |
(WA_Warnings): Add Warn_On_Suspicious_Modulus_Value. |
| 7405 |
|
| 7406 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7407 |
|
| 7408 |
* exp_ch3.adb (Expand_N_Object_Declaration): The dummy block |
| 7409 |
created to match internal sequence numbers between compilations |
| 7410 |
with/without abort must have its type properly set. |
| 7411 |
|
| 7412 |
2014-07-29 Robert Dewar <[email protected]> |
| 7413 |
|
| 7414 |
* ali.adb (Initialize_ALI): Initialize SSO_Default_Specified |
| 7415 |
(Scan_ALI): Set SSO_Default in ALIs_Record (Scan_ALI): Set |
| 7416 |
SSO_Default_Specified. |
| 7417 |
* ali.ads (ALIs_Record): Add field SSO_Default |
| 7418 |
(SSO_Default_Specified): New global switch. |
| 7419 |
* bcheck.adb (Check_Consistent_SSO_Default): New procedure |
| 7420 |
(Check_Configuration_Consistency): Call this procedure |
| 7421 |
* einfo.adb (SSO_Set_High_By_Default): New |
| 7422 |
function (SSO_Set_Low_By_Default): New function |
| 7423 |
(Set_SSO_Set_High_By_Default): New procedure |
| 7424 |
(Set_SSO_Set_Low_By_Default): New procedure (Write_Entity_Flags): |
| 7425 |
List new flags |
| 7426 |
* einfo.ads (SSO_Set_Low_By_Default): New flag |
| 7427 |
(SSO_Set_High_By_Default): New flag |
| 7428 |
* freeze.adb (Set_SSO_From_Default): New procedure |
| 7429 |
(Freeze_Array_Type): Call Set_SSO_From_Default |
| 7430 |
(Freeze_Record_Type): Call Set_SSO_From_Default |
| 7431 |
* gnat_rm.texi: Document pragma Default_Scalar_Storage_Order |
| 7432 |
* lib-writ.adb (Write_ALI): Set OL/OH in P line as needed |
| 7433 |
* lib-writ.ads: Add OL/OH parameters to P line |
| 7434 |
* opt.adb: Set Default_SSO, Default_SSO_Config as appropriate |
| 7435 |
* opt.ads (Default_SSO): New global switch (Default_SSO_Config): |
| 7436 |
New global switch |
| 7437 |
* repinfo.adb (List_Scalar_Storage_Order): List SSO when it is |
| 7438 |
set by default using pragma Default_Scalar_Storage_Order. |
| 7439 |
* sem.ads (Scope_Stack_Entry): Add component Save_Default_SSO |
| 7440 |
* sem_ch13.adb (Inherit_Delayed_Rep_Aspects): |
| 7441 |
Clear SSO defaults when explicit SSO is inherited. |
| 7442 |
(Analyze_Attribute_Definition_Clause): Clear SSO defaults when |
| 7443 |
explicit SSO is specified. |
| 7444 |
(Inherit_Aspects_At_Freeze_Point): |
| 7445 |
Clear SSO default when inheriting SSO. |
| 7446 |
* sem_ch3.adb (Set_Default_SSO): New procedure |
| 7447 |
(Analyze_Private_Extension_Declaration): Set defualt SSO |
| 7448 |
(Array_Type_Declaration): ditto (Build_Derived_Array_Type): ditto |
| 7449 |
(Build_Derived_Private_Type): ditto (Build_Derived_Record_Type): |
| 7450 |
ditto (Build_Derived_Type): ditto (Make_Class_Wide_Type): ditto |
| 7451 |
(Record_Type_Declaration): ditto |
| 7452 |
* sem_ch8.adb (Pop_Scope): Restore Default_SSO (Push_Scope): |
| 7453 |
Save Default_SSO |
| 7454 |
* sem_prag.adb (Analyze_Pragma, case |
| 7455 |
Default_Scalar_Storage_Order): Set Default_SSO |
| 7456 |
|
| 7457 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7458 |
|
| 7459 |
* sem_ch6.adb (Valid_Operator_Definition): Verify that |
| 7460 |
all parameter have mode IN. This check must be done here for |
| 7461 |
subprogram instantiations that have operator names, because their |
| 7462 |
analysis does not follow the same path as that for subprogram |
| 7463 |
declarations. |
| 7464 |
|
| 7465 |
2014-07-29 Robert Dewar <[email protected]> |
| 7466 |
|
| 7467 |
* freeze.adb (Freeze_Entity, Concurrent_Type case): Add a guard |
| 7468 |
to make sure that the Etype of a component of the corresponding |
| 7469 |
record type is present before trying to freeze it. |
| 7470 |
* sem_ch5.adb: Minor reformatting. |
| 7471 |
|
| 7472 |
2014-07-29 Robert Dewar <[email protected]> |
| 7473 |
|
| 7474 |
* exp_attr.adb, types.ads, types.h, exp_ch11.adb, a-except.adb, |
| 7475 |
a-except-2005.adb: Add new reason code PE_Stream_Operation_Not_Allowed, |
| 7476 |
and then use it when a stream operation is used from a library generic |
| 7477 |
when the restriction (No_Streams) is active. |
| 7478 |
|
| 7479 |
2014-07-29 Thomas Quinot <[email protected]> |
| 7480 |
|
| 7481 |
* projects.texi: Fix minor typo. |
| 7482 |
|
| 7483 |
2014-07-29 Yannick Moy <[email protected]> |
| 7484 |
|
| 7485 |
* sem_attr.adb (Analyze_Attribute): Fix generation of warning. |
| 7486 |
|
| 7487 |
2014-07-29 Arnaud Charlet <[email protected]> |
| 7488 |
|
| 7489 |
* sem_ch5.adb (Check_Unreachable_Code): Do not remove code in |
| 7490 |
CodePeer mode. |
| 7491 |
|
| 7492 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 7493 |
|
| 7494 |
* exp_ch7.adb (Find_Last_Init): Add local variable |
| 7495 |
Deep_Init_Found. Check the statement immediately following the |
| 7496 |
declaration if [Deep_]Initialization was not found. |
| 7497 |
|
| 7498 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 7499 |
|
| 7500 |
* exp_util.adb (Is_Aliased): It appears that |
| 7501 |
'reference-d and renamed objects still play some role in Boolean |
| 7502 |
expression with actions and cannot be finalized immediately. |
| 7503 |
|
| 7504 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7505 |
|
| 7506 |
* exp_dbug.adb (Qualify_Needed): For debugging purposes, |
| 7507 |
Loop names are not part of the full qualification of entity names. |
| 7508 |
|
| 7509 |
2014-07-29 Robert Dewar <[email protected]> |
| 7510 |
|
| 7511 |
* einfo.adb (Has_Protected): Test base type. |
| 7512 |
* sem_ch4.adb (Analyze_Allocator): Reorganize code to make sure |
| 7513 |
that we always properly check No_Protected_Type_Allocators. |
| 7514 |
|
| 7515 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7516 |
|
| 7517 |
* sem_util.ads, sem_util.adb (Defining_Entity): Now applies to |
| 7518 |
loop declarations as well. |
| 7519 |
* exp_ch5.adb (Expand_Loop_Statement): Apply Qualify_Entity_Names |
| 7520 |
to an iterator loop, because it may contain local renaming |
| 7521 |
declarations that require debugging information. |
| 7522 |
|
| 7523 |
2014-07-29 Robert Dewar <[email protected]> |
| 7524 |
|
| 7525 |
* sem_util.ads, exp_util.adb, sem_attr.adb: Minor reformatting. |
| 7526 |
|
| 7527 |
2014-07-29 Robert Dewar <[email protected]> |
| 7528 |
|
| 7529 |
* einfo.ads, einfo.adb (Static_Real_Or_String_Predicate): New function |
| 7530 |
(Set_Static_Real_Or_String_Predicate): New procedure |
| 7531 |
* sem_ch13.adb (Build_Predicate_Functions): Accomodate static |
| 7532 |
string predicates (Is_Predicate_Static): Handle static string |
| 7533 |
predicates. |
| 7534 |
* sem_eval.adb (Real_Or_String_Static_Predicate_Matches): |
| 7535 |
New procedure (Check_Expression_Against_Static_Predicate): |
| 7536 |
Deal with static string predicates, now fully implemented |
| 7537 |
(Eval_Relational_Op): Allow string equality/inequality as static |
| 7538 |
if not comes from source. |
| 7539 |
|
| 7540 |
2014-07-29 Robert Dewar <[email protected]> |
| 7541 |
|
| 7542 |
* sem_aggr.adb, exp_ch5.adb, sem_ch5.adb, exp_util.adb, einfo.adb, |
| 7543 |
einfo.ads, sem_util.adb, sem_attr.adb, sem_case.adb, sem_eval.adb, |
| 7544 |
sem_eval.ads, sem_ch13.adb: General cleanup of static predicate |
| 7545 |
handling. Change name of Discrete_Predicate to |
| 7546 |
Discrete_Static_Predicate, and replace testing of the presence of this |
| 7547 |
field by testing the flag Has_Static_Expression. |
| 7548 |
|
| 7549 |
2014-07-29 Robert Dewar <[email protected]> |
| 7550 |
|
| 7551 |
* gnat_rm.texi: Document pragma Unevaluated_Use_Of_Old. |
| 7552 |
* opt.adb: Handle Uneval_Old. |
| 7553 |
* opt.ads (Uneval_Old, Uneval_Old_Config): New variables. |
| 7554 |
* par-prag.adb: Add dummy entry for pragma Unevaluated_Use_Of_Old. |
| 7555 |
* sem.ads (Save_Uneval_Old): New field in Scope_Stack_Entry. |
| 7556 |
* sem_attr.adb (Uneval_Old_Msg): New procedure. |
| 7557 |
* sem_ch8.adb (Push_Scope): Save Uneval_Old. |
| 7558 |
(Pop_Scope): Restore Uneval_Old. |
| 7559 |
* sem_prag.adb (Analyze_Pragma, case Unevaluated_Use_Of_Old): |
| 7560 |
Implemented. |
| 7561 |
* snames.ads-tmpl: Add entries for pragma Unevaluated_Use_Of_Old |
| 7562 |
Add entries for Name_Warn, Name_Allow. |
| 7563 |
|
| 7564 |
2014-07-29 Robert Dewar <[email protected]> |
| 7565 |
|
| 7566 |
* sem_aggr.adb (Resolve_Array_Aggregate): Change Is_Static_Range |
| 7567 |
to Is_OK_Static_Range. |
| 7568 |
* sem_attr.adb (Eval_Attribute): Make sure we properly flag |
| 7569 |
static attributes (Eval_Attribute, case Size): Handle size of |
| 7570 |
zero properly (Eval_Attribute, case Value_Size): Handle size of |
| 7571 |
zero properly. |
| 7572 |
* sem_ch13.adb: Minor reformatting. |
| 7573 |
* sem_ch3.adb (Process_Range_Expr_In_Decl): Change |
| 7574 |
Is_Static_Range to Is_OK_Static_Range. |
| 7575 |
* sem_eval.adb (Eval_Case_Expression): Total rewrite, was |
| 7576 |
wrong in several ways (Is_Static_Range): Moved here from spec |
| 7577 |
(Is_Static_Subtype): Moved here from spec Change some incorrect |
| 7578 |
Is_Static_Subtype calls to Is_OK_Static_Subtype. |
| 7579 |
* sem_eval.ads: Add comments to section on |
| 7580 |
Is_Static_Expression/Raises_Constraint_Error (Is_OK_Static_Range): |
| 7581 |
Add clarifying comments (Is_Static_Range): Moved to body |
| 7582 |
(Is_Statically_Unevaluated): New function. |
| 7583 |
* sem_util.ads, sem_util.adb (Is_Preelaborable_Expression): Change |
| 7584 |
Is_Static_Range to Is_OK_Static_Range. |
| 7585 |
* sinfo.ads: Additional commments for Is_Static_Expression noting |
| 7586 |
that clients should almost always use Is_OK_Static_Expression |
| 7587 |
instead. Many other changes throughout front end units to obey |
| 7588 |
this rule. |
| 7589 |
* tbuild.ads, tbuild.adb (New_Occurrence_Of): Set Is_Static_Expression |
| 7590 |
for enumeration literal. |
| 7591 |
* exp_ch5.adb, sem_intr.adb, sem_ch5.adb, exp_attr.adb, exp_ch9.adb, |
| 7592 |
lib-writ.adb, sem_ch9.adb, einfo.ads, checks.adb, checks.ads, |
| 7593 |
sem_prag.adb, sem_ch12.adb, freeze.adb, sem_res.adb, exp_ch4.adb, |
| 7594 |
exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, exp_aggr.adb, sem_cat.adb: |
| 7595 |
Replace all occurrences of Is_Static_Expression by |
| 7596 |
Is_OK_Static_Expression. |
| 7597 |
|
| 7598 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 7599 |
|
| 7600 |
* exp_ch4.adb (Process_Transient_Object): Remove constant |
| 7601 |
In_Cond_Expr, use its initialization expression in place. |
| 7602 |
* exp_ch7.adb (Process_Declarations): There is no need to check |
| 7603 |
that a transient object being hooked is controlled as it would |
| 7604 |
not have been hooked in the first place. |
| 7605 |
* exp_util.adb (Is_Aliased): 'Reference-d or renamed transient |
| 7606 |
objects are not considered aliased when the related context is |
| 7607 |
a Boolean expression_with_actions. |
| 7608 |
(Requires_Cleanup_Actions): There is no need to check that a transient |
| 7609 |
object being hooked is controlled as it would not have been hooked in |
| 7610 |
the first place. |
| 7611 |
|
| 7612 |
2014-07-29 Robert Dewar <[email protected]> |
| 7613 |
|
| 7614 |
* errout.adb: Minor reformatting. |
| 7615 |
|
| 7616 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 7617 |
|
| 7618 |
* exp_ch3.adb (Default_Initialize_Object): Add new variables |
| 7619 |
Abrt_Blk and Dummy. Generate a dummy temporary when aborts are |
| 7620 |
not allowed to ensure the symmetrical generation of symbols. |
| 7621 |
* exp_ch7.adb (Build_Object_Declarations): Remove variables A_Expr |
| 7622 |
and E_Decl. Add new variables Decl and Dummy. Generate a dummy |
| 7623 |
temporary when aborts are not allowed to ensure symmertrical |
| 7624 |
generation of symbols. |
| 7625 |
* exp_intr.adb (Expand_Unc_Deallocation): Add new variable |
| 7626 |
Dummy. Generate a dummy temporary when aborts are not allowed |
| 7627 |
to ensure symmertrical generation of symbols. |
| 7628 |
|
| 7629 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7630 |
|
| 7631 |
* exp_dbug.adb (Debug_Renaming_Declaration): For an object |
| 7632 |
renaming, indicate that the renamed entity itself needs debug |
| 7633 |
information. This is necessary if that entity is a temporary, |
| 7634 |
e.g. part of the expansion of an explicit dereference in an |
| 7635 |
iterator. |
| 7636 |
|
| 7637 |
2014-07-29 Thomas Quinot <[email protected]> |
| 7638 |
|
| 7639 |
* errout.adb (Set_Error_Posted): When propagating flag to |
| 7640 |
an enclosing named association, also propagate to the parent |
| 7641 |
of that node, so that named and positional associations are |
| 7642 |
treated consistently. |
| 7643 |
|
| 7644 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7645 |
|
| 7646 |
* sem_attr.adb (Resolve_Attribute, case 'Update): Set |
| 7647 |
Do_Range_Check properly on array component expressions that |
| 7648 |
have a scalar type. In GNATprove mode, only checks on scalar |
| 7649 |
components must be marked by the front-end. |
| 7650 |
|
| 7651 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7652 |
|
| 7653 |
* sem_res.adb (Resolve_Type_Conversion): If the type of the |
| 7654 |
expression is a limited view, use the non-limited view when |
| 7655 |
available. |
| 7656 |
|
| 7657 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 7658 |
|
| 7659 |
* exp_ch4.adb (Expand_N_Case_Expression): Mark the generated |
| 7660 |
case statement as coming from a conditional expression. |
| 7661 |
(Expand_N_If_Expression): Mark the generated if statement as |
| 7662 |
coming from a conditional expression. |
| 7663 |
* exp_ch5.adb (Expand_N_Case_Statement): Do not process controlled |
| 7664 |
objects found in case statement alternatives when the case |
| 7665 |
statement is actually a case expression. |
| 7666 |
(Expand_N_If_Statement): |
| 7667 |
Do not process controlled objects found in an if statement when |
| 7668 |
the if statement is actually an if expression. |
| 7669 |
* sinfo.adb (From_Conditional_Expression): New routine. |
| 7670 |
(Set_From_Conditional_Expression): New routine. |
| 7671 |
* sinfo.ads Add new semantic flag From_Conditional_Expression and |
| 7672 |
update related nodes. |
| 7673 |
(From_Conditional_Expression): New routine along with pragma Inline. |
| 7674 |
(Set_From_Conditional_Expression): New routine along with pragma Inline. |
| 7675 |
|
| 7676 |
2014-07-29 Hristian Kirtchev <[email protected]> |
| 7677 |
|
| 7678 |
* exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove |
| 7679 |
formal parameter Obj_Id and update the comment on usage. Renamed |
| 7680 |
Obj_Typ to Func_Typ and update all occurrences. |
| 7681 |
(Find_Last_Init): Remove formal parameter Decl and update the comment |
| 7682 |
on usage. |
| 7683 |
Remove local constants Obj_Id and Obj_Typ. Remove local variables |
| 7684 |
Init_Typ and Is_Conc. Remove the extraction of the initialization type. |
| 7685 |
(Find_Last_Init_In_Block): Remove formal parameter |
| 7686 |
Init_Typ and update the comment on usage. |
| 7687 |
(Is_Init_Call): Remove formal parameter Init_Typ and update the comment |
| 7688 |
on usage. Check whether the procedure call is an initialization |
| 7689 |
procedure of either the object type or the initialization type. |
| 7690 |
(Is_Init_Proc_Of): New routine. |
| 7691 |
(Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this |
| 7692 |
routine. Add new variable Init_Typ. Add circuitry to extract the object |
| 7693 |
type as well as the initialization type. |
| 7694 |
|
| 7695 |
2014-07-29 Robert Dewar <[email protected]> |
| 7696 |
|
| 7697 |
* sem_case.adb: Minor reformatting. |
| 7698 |
* sem_aux.ads: Minor reformatting. |
| 7699 |
|
| 7700 |
2014-07-29 Ed Schonberg <[email protected]> |
| 7701 |
|
| 7702 |
* sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent |
| 7703 |
pointer on these fields, even though they are semantic, because |
| 7704 |
subsequent analysis and expansion of action nades may require |
| 7705 |
exploring the tree, for example to locate a node to be wrapped |
| 7706 |
when a function with controlled result is called. |
| 7707 |
|
| 7708 |
2014-07-29 Claire Dross <[email protected]> |
| 7709 |
|
| 7710 |
* sem_aux.adb (Get_Binary_Nkind): Use case on |
| 7711 |
Name_Id instead of an intermediate string. |
| 7712 |
(Get_Unary_Nkind): Use case on Name_Id instead of an intermediate |
| 7713 |
string. |
| 7714 |
|
| 7715 |
2014-07-29 Sergey Rybin <[email protected] frybin> |
| 7716 |
|
| 7717 |
* gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note |
| 7718 |
about processing sources with preprocessor directives. |
| 7719 |
|
| 7720 |
2014-07-24 Martin Liska <[email protected]> |
| 7721 |
|
| 7722 |
* gcc-interface/trans.c (finalize_nrv): Adjust function call. |
| 7723 |
* gcc-interface/utils.c (rest_of_subprog_body_compilation): Likewise. |
| 7724 |
(gnat_write_global_declarations): Likewise. |
| 7725 |
|
| 7726 |
2014-07-19 David Wohlferd <[email protected]> |
| 7727 |
|
| 7728 |
* gnat_rm.texi: Clean up for makeinfo 5.2. |
| 7729 |
|
| 7730 |
2014-07-19 David Wohlferd <[email protected]> |
| 7731 |
|
| 7732 |
* gnat_rm.texi (Machine Code Insertions): Clean up. |
| 7733 |
|
| 7734 |
2014-07-18 Robert Dewar <[email protected]> |
| 7735 |
|
| 7736 |
* exp_ch7.adb: Minor reformatting. |
| 7737 |
|
| 7738 |
2014-07-18 Claire Dross <[email protected]> |
| 7739 |
|
| 7740 |
* sem_aux.ads (Get_Binary_Nkind): New function that returns |
| 7741 |
the Node_Kind value of an entity defining a binary operator. |
| 7742 |
(Get_Unary_Nkind): New function that returns the Node_Kind value |
| 7743 |
of an entity defining a unary operator. |
| 7744 |
|
| 7745 |
2014-07-18 Pascal Obry <[email protected]> |
| 7746 |
|
| 7747 |
* sysdep.c: comment update. |
| 7748 |
* adaint.c (__gnat_fputwc): Use wchar_t on a limited set of |
| 7749 |
platforms where it is known to be supported. |
| 7750 |
|
| 7751 |
2014-07-18 Thomas Quinot <[email protected]> |
| 7752 |
|
| 7753 |
* sem_dist.adb (Process_Remote_AST_Declaration): Need |
| 7754 |
to set Fat_Type's Ekind in order to be able to use its |
| 7755 |
Corresponding_Remote_Type attribute. |
| 7756 |
|
| 7757 |
2014-07-18 Hristian Kirtchev <[email protected]> |
| 7758 |
|
| 7759 |
* einfo.adb Last_Aggregate_Assignment is now Node 30. |
| 7760 |
(Last_Aggregate_Assignment): Include |
| 7761 |
constants in the assertion. Update the underlying node. |
| 7762 |
(Set_Last_Aggregate_Assignment): Include constants in the |
| 7763 |
assertion. Update the underlying node. (Write_Field11_Name): |
| 7764 |
Remove the entry for Last_Aggregate_Assignment. |
| 7765 |
(Write_Field30_Name): Add an entry for Last_Aggregate_Assignment. |
| 7766 |
* einfo.ads Update the node designation and usage of attribute |
| 7767 |
Last_Aggregate_Assignment. |
| 7768 |
* exp_aggr.adb (Expand_Array_Aggregate): Store the last |
| 7769 |
assignment statement used to initialize a controlled object. |
| 7770 |
(Late_Expansion): Store the last assignment statement used to |
| 7771 |
initialize a controlled record or an array of controlled objects. |
| 7772 |
* exp_ch3.adb (Expand_N_Object_Declaration): Default |
| 7773 |
initialization of objects is now performed in a separate routine. |
| 7774 |
(Default_Initialize_Object): New routine. |
| 7775 |
* exp_ch7.adb (Build_BIP_Cleanup_Stmts): Add formal parameter |
| 7776 |
Obj_Id. Update the comment on usage. |
| 7777 |
(Find_Last_Init): Remove formal parameter Typ. Update comment on usage. |
| 7778 |
Reimplement the logic. (Find_Last_Init_In_Block): New routine. |
| 7779 |
(Is_Init_Call): Add formal parameter Init_Typ. Update the |
| 7780 |
comment on usage. Account for the type init proc when trying |
| 7781 |
to determine whether a statement is an initialization call. |
| 7782 |
(Make_Adjust_Call): Rename formal parameter For_Parent to |
| 7783 |
Skip_Self. Update all occurrences of For_Parent. Account for |
| 7784 |
non-tagged types. Update the call to Make_Call. |
| 7785 |
(Make_Call): Rename formal parameter For_Parent to Skip_Self. Update |
| 7786 |
comment on usage. Update all occurrences of For_Parent. |
| 7787 |
(Make_Final_Call): Rename formal parameter For_Parent to |
| 7788 |
Skip_Self. Update all occurrences of For_Parent. Account |
| 7789 |
for non-tagged types. Update the call to Make_Call. |
| 7790 |
(Process_Object_Declaration): Most variables and constants are |
| 7791 |
now local to the routine. |
| 7792 |
* exp_ch7.ads (Make_Adjust_Call): Rename formal parameter |
| 7793 |
For_Parent to Skip_Self. Update the comment on usage. |
| 7794 |
(Make_Final_Call): Rename formal parameter For_Parent to |
| 7795 |
Skip_Self. Update the comment on usage. |
| 7796 |
|
| 7797 |
2014-07-18 Ed Schonberg <[email protected]> |
| 7798 |
|
| 7799 |
* sem_ch9.adb (Analyze_Requeue): The entry being referenced |
| 7800 |
can be a procedure that is implemented by entry, and have a |
| 7801 |
formal that is a synchronized interface. It does not have to |
| 7802 |
be declared as a protected operation. |
| 7803 |
|
| 7804 |
2014-07-18 Robert Dewar <[email protected]> |
| 7805 |
|
| 7806 |
* gnat_rm.texi: Remove mention of obsolete attributes |
| 7807 |
Max[_Interrupt]_Priority, which have never been implemented |
| 7808 |
(or at the very least were removed long ago if they ever were |
| 7809 |
implemented. Add documentation of Max[_Interrupt]_Priority |
| 7810 |
constants in package System. |
| 7811 |
* ttypes.ads: Document actual handling of package System, |
| 7812 |
rather than a historical fantasy version. Remove mention of |
| 7813 |
non-existent attributes Max[_Interrupt]_Priority. |
| 7814 |
|
| 7815 |
2014-07-18 Pascal Obry <[email protected]> |
| 7816 |
|
| 7817 |
* a-witeio.adb (Put): No 16-bit character output when text |
| 7818 |
translation is disabled. |
| 7819 |
* i-cstrea.ads: Code clean up. |
| 7820 |
|
| 7821 |
2014-07-18 Robert Dewar <[email protected]> |
| 7822 |
|
| 7823 |
* gnat_rm.texi: Document that Wchar_T_Size and Word_Size are |
| 7824 |
static attributes. |
| 7825 |
|
| 7826 |
2014-07-18 Arnaud Charlet <[email protected]> |
| 7827 |
|
| 7828 |
* a-witeio.adb, initialize.c: Update comments. Minor clean ups. |
| 7829 |
|
| 7830 |
2014-07-18 Pascal Obry <[email protected]> |
| 7831 |
|
| 7832 |
* adaint.c: Do not include wchar.h on VxWorks. |
| 7833 |
* mingw32.h: Remove obsolete definition. |
| 7834 |
|
| 7835 |
2014-07-18 Pascal Obry <[email protected]> |
| 7836 |
|
| 7837 |
* a-textio.adb, a-witeio.adb, a-ztexio.adb: Use C_Streams Default_Text. |
| 7838 |
* i-cstrea.ads (Content_Encoding): Moved here, add convention C. |
| 7839 |
* s-ficobl.ads (Content_Encoding): Moved to C_Streams. |
| 7840 |
* s-fileio.adb (Open): Adjust to use Content_Encoding from C_Streams. |
| 7841 |
|
| 7842 |
2014-07-18 Pascal Obry <[email protected]> |
| 7843 |
|
| 7844 |
* a-textio.adb: Rename Is_Text_File to Text_Encoding. |
| 7845 |
* a-ztexio.adb: Likewise. |
| 7846 |
* a-witeio.adb: Likewise. |
| 7847 |
(Open): Pass file's translation mode to set_text_mode. |
| 7848 |
* s-ficobl.ads (Content_Encoding): New type. |
| 7849 |
(Text_Content_Encoding): New subtype. |
| 7850 |
(AFCB): Rename Is_Text_File to Text_Encoding. |
| 7851 |
* s-fileio.adb (Open): Handles new text_translation |
| 7852 |
values. Remove Is_Text_File which is equivalent to Text_Encoding |
| 7853 |
in Text_Content_Encoding. |
| 7854 |
* adaint.h (__gnat_set_mode): New routine. |
| 7855 |
* sysdep.c (__gnat_set_wide_text_mode): Removed. |
| 7856 |
(__gnat_set_mode): New routine. |
| 7857 |
|
| 7858 |
2014-07-18 Arnaud Charlet <[email protected]> |
| 7859 |
|
| 7860 |
* gcc-interface/decl.c, gcc-interface/trans.c, |
| 7861 |
gcc-interface/utils.c (Is_Packed_Array_Type): Renamed |
| 7862 |
Is_Packed_Array_Impl_Type. |
| 7863 |
|
| 7864 |
2014-07-18 Gary Dismukes <[email protected]> |
| 7865 |
|
| 7866 |
* sem_util.adb: Minor typo correction. |
| 7867 |
|
| 7868 |
2014-07-18 Ben Brosgol <[email protected]> |
| 7869 |
|
| 7870 |
* gnat_rm.texi: Complete previous change. |
| 7871 |
|
| 7872 |
2014-07-18 Pascal Obry <[email protected]> |
| 7873 |
|
| 7874 |
* s-fileio.adb: Minor style fix. |
| 7875 |
|
| 7876 |
2014-07-18 Ed Schonberg <[email protected]> |
| 7877 |
|
| 7878 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Detect improper |
| 7879 |
specification of stream attributes for subtypes that are not |
| 7880 |
first subtypes, to prevent malformed rep_item chains in the case |
| 7881 |
of such illegal specifications for discriminated private subtypes. |
| 7882 |
(Check_Overloaded_Name): Verify that the name is an entity name |
| 7883 |
before other checks. |
| 7884 |
|
| 7885 |
2014-07-18 Pascal Obry <[email protected]> |
| 7886 |
|
| 7887 |
* adaint.c (__gnat_fputwc) Do not disable on cross-build. |
| 7888 |
|
| 7889 |
2014-07-18 Robert Dewar <[email protected]> |
| 7890 |
|
| 7891 |
* sem_prag.adb, sem_attr.adb, |
| 7892 |
sem_aggr.adb, sinfo.ads, sem_eval.ads: Minor reformatting. |
| 7893 |
|
| 7894 |
2014-07-18 Pascal Obry <[email protected]> |
| 7895 |
|
| 7896 |
* sysdep.c (__gnat_wide_text_translation_required): Removed from here. |
| 7897 |
* initialize.c (__gnat_wide_text_translation_required): Defined here. |
| 7898 |
|
| 7899 |
2014-07-18 Pascal Obry <[email protected]> |
| 7900 |
|
| 7901 |
* adaint.c (__gnat_fputwc): New routine. |
| 7902 |
* s-crtl.ads (fputwc): Now imported as __gnat_fputwc. |
| 7903 |
|
| 7904 |
2014-07-18 Hristian Kirtchev <[email protected]> |
| 7905 |
|
| 7906 |
* einfo.adb: Flag 270 is now used as Stores_Attribute_Old_Prefix. |
| 7907 |
(Set_Stores_Attribute_Old_Prefix): New routine. |
| 7908 |
(Stores_Attribute_Old_Prefix): New routine. |
| 7909 |
(Write_Entity_Flags): |
| 7910 |
Output flag Stores_Attribute_Old_Prefix. |
| 7911 |
* einfo.ads Add new flag Stores_Attribute_Old_Prefix along with |
| 7912 |
comment on usage. |
| 7913 |
(Set_Stores_Attribute_Old_Prefix): New routine |
| 7914 |
along with pragma Inline. |
| 7915 |
(Stores_Attribute_Old_Prefix): New |
| 7916 |
routine along with pragma Inline. |
| 7917 |
* exp_attr.adb (Expand_N_Attribute_Reference): Mark the generated |
| 7918 |
constant which captures the result of attribute 'Old's prefix. |
| 7919 |
* sem_util.adb (In_Assertion_Expression_Pragma): Recognize a |
| 7920 |
relocated expression which acted as a prefix of attribute 'Old. |
| 7921 |
|
| 7922 |
2014-07-18 Bob Duff <[email protected]> |
| 7923 |
|
| 7924 |
* s-spsufi.adb (Finalize_And_Deallocate): Set Subpool.Owner to |
| 7925 |
null before dispatching to Deallocate_Subpool. |
| 7926 |
* s-stposu.ads (Default_Subpool_For_Pool): Change mode of |
| 7927 |
parameter of Default_Subpool_For_Pool to 'in out'. |
| 7928 |
* s-stposu.adb (Set_Pool_Of_Subpool): Use raise expression. Add |
| 7929 |
a message to the raise. |
| 7930 |
* sem_util.adb: Minor reformatting. |
| 7931 |
|
| 7932 |
2014-07-18 Robert Dewar <[email protected]> |
| 7933 |
|
| 7934 |
* sem_util.adb (Check_Expression_Against_Static_Predicate): |
| 7935 |
Mark expression as non-static if it fails static predicate check, |
| 7936 |
and issue additional warning. |
| 7937 |
|
| 7938 |
2014-07-18 Pascal Obry <[email protected]> |
| 7939 |
|
| 7940 |
* a-witeio.adb (Put): Control translation based on |
| 7941 |
wide_text_translation_required. |
| 7942 |
* adaint.c (CurrentCCSEncoding): New variable. |
| 7943 |
* initialize.c (__gnat_initialize): On Windows initialize |
| 7944 |
CurrentCCSEncoding based on values in GNAT_CCS_ENCODING |
| 7945 |
environment variable. |
| 7946 |
* mingw32.h (CurrentCCSEncoding): New external. |
| 7947 |
(__gnat_wide_text_translation_required): Likewise. |
| 7948 |
* sysdep.c (wide_text_translation_required): New variable. |
| 7949 |
(__gnat_set_wide_text_mode): Set mode based on CurrentCCSEncoding. |
| 7950 |
|
| 7951 |
2014-07-18 Hristian Kirtchev <[email protected]> |
| 7952 |
|
| 7953 |
* sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global |
| 7954 |
variable Refined_States. Add global variable Matched_Items. |
| 7955 |
(Check_Dependency_Clause): Account for dependency |
| 7956 |
clauses utilizing states with visible null refinements. |
| 7957 |
(Is_Null_Refined_State): New routine. |
| 7958 |
(Match_Items): Record each successfully matched item of pragma Depends. |
| 7959 |
(Record_Item): New routine. |
| 7960 |
|
| 7961 |
2014-07-18 Ed Schonberg <[email protected]> |
| 7962 |
|
| 7963 |
* sem_attr.adb (Analyze_Attribute, case 'Update): Set |
| 7964 |
Do_Range_Check flag on a dynamic index expression used in a |
| 7965 |
component association in the argument of Update. |
| 7966 |
|
| 7967 |
2014-07-18 Gary Dismukes <[email protected]> |
| 7968 |
|
| 7969 |
* einfo.ads, sem_eval.ads, sem_ch13.adb: Minor reformatting. |
| 7970 |
|
| 7971 |
2014-07-18 Hristian Kirtchev <[email protected]> |
| 7972 |
|
| 7973 |
* exp_ch6.adb (Expand_Simple_Function_Return): Redo the marking |
| 7974 |
of enclosing blocks, loops and the enclosing function using a |
| 7975 |
parent-based traversal. |
| 7976 |
* exp_util.adb (Wrap_Statements_In_Block): Suppress the secondary |
| 7977 |
stack reclamation if the iterator loop contains a return statement |
| 7978 |
that uses the stack. |
| 7979 |
* sem_ch5.adb (Analyze_Loop_Statement): There is no need to |
| 7980 |
patch up the scope stack as the secondary stack management now |
| 7981 |
takes into account the enclosing function of the iterator loop. |
| 7982 |
|
| 7983 |
2014-07-18 Robert Dewar <[email protected]> |
| 7984 |
|
| 7985 |
* sem_ch3.adb, g-memdum.ads, i-cstrea.ads: Minor reformatting. |
| 7986 |
|
| 7987 |
2014-07-18 Robert Dewar <[email protected]> |
| 7988 |
|
| 7989 |
* einfo.adb (Has_Static_Predicate): New function. |
| 7990 |
(Set_Has_Static_Predicate): New procedure. |
| 7991 |
* einfo.ads (Has_Static_Predicate): New flag. |
| 7992 |
* sem_ch13.adb (Is_Predicate_Static): New function |
| 7993 |
(Build_Predicate_Functions): Use Is_Predicate_Static to reorganize |
| 7994 |
(Add_Call): Minor change in Sloc of generated expression |
| 7995 |
(Add_Predicates): Remove setting of Static_Pred, no longer used. |
| 7996 |
* sem_ch4.adb (Has_Static_Predicate): Removed this function, |
| 7997 |
replace by use of the entity flag Has_Static_Predicate_Aspect. |
| 7998 |
* sem_eval.adb (Eval_Static_Predicate_Check): Check real case |
| 7999 |
and issue warning that predicate is not checked for now. |
| 8000 |
* sem_eval.ads (Eval_Static_Predicate_Check): Fix comments in |
| 8001 |
spec. |
| 8002 |
* sem_util.adb (Check_Expression_Against_Static_Predicate): |
| 8003 |
Carry out check for any case where there is a static predicate, |
| 8004 |
and output appropriate message. |
| 8005 |
* sinfo.ads: Minor comment corrections. |
| 8006 |
|
| 8007 |
2014-07-18 Ed Schonberg <[email protected]> |
| 8008 |
|
| 8009 |
* exp_ch3.adb (Expand_Freeze_Record_Type): If the type is derived |
| 8010 |
from an untagged private type whose full view is tagged, the type |
| 8011 |
is marked tagged for layout reasons, but it has no dispatch table, |
| 8012 |
so Set_All_DT_Position must not be called. |
| 8013 |
* exp_ch13.adb: If the freeze node is for a type internal to a |
| 8014 |
record declaration, as is the case for a class-wide subtype |
| 8015 |
of a parent component, the relevant scope is the scope of the |
| 8016 |
enclosing record. |
| 8017 |
|
| 8018 |
2014-07-18 Thomas Quinot <[email protected]> |
| 8019 |
|
| 8020 |
* g-memdum.adb, g-memdum.ads: Code clean ups. |
| 8021 |
|
| 8022 |
2014-07-18 Hristian Kirtchev <[email protected]> |
| 8023 |
|
| 8024 |
* sem_prag.adb (Check_Dependency_Clause): |
| 8025 |
Update the comment on usage. Reimplement the mechanism which |
| 8026 |
attempts to match a single clause of Depends against one or |
| 8027 |
more clauses of Refined_Depends. |
| 8028 |
(Input_Match): Removed. |
| 8029 |
(Inputs_Match): Removed. |
| 8030 |
(Is_Self_Referential): Removed. |
| 8031 |
(Normalize_Clause): Update the call to Split_Multiple_Outputs. |
| 8032 |
(Normalize_Outputs): Rename variable Split to New_Claue and update |
| 8033 |
all its occurrences. |
| 8034 |
(Report_Extra_Clauses): Update the comment on usage. |
| 8035 |
(Split_Multiple_Outputs): Renamed to Normalize_Outputs. |
| 8036 |
|
| 8037 |
2014-07-18 Gary Dismukes <[email protected]> |
| 8038 |
|
| 8039 |
* i-cstrea.ads: Minor reformatting. |
| 8040 |
|
| 8041 |
2014-07-18 Hristian Kirtchev <[email protected]> |
| 8042 |
|
| 8043 |
* exp_util.adb (Wrap_Statements_In_Block): Propagate both |
| 8044 |
secondary stack-related flags to the generated block. |
| 8045 |
* sem_ch5.adb (Analyze_Loop_Statement): Update the scope chain |
| 8046 |
once the loop is relocated in a block. |
| 8047 |
|
| 8048 |
2014-07-18 Robert Dewar <[email protected]> |
| 8049 |
|
| 8050 |
* repinfo.ads: Add documentation on handling of back annotation |
| 8051 |
for dynamic case. |
| 8052 |
|
| 8053 |
2014-07-18 Ed Schonberg <[email protected]> |
| 8054 |
|
| 8055 |
* sinfo.ads, sinfo.adb (Incomplete_View): New semantic attribute |
| 8056 |
of full type declaration, denotes previous declaration for |
| 8057 |
incomplete view of the type. |
| 8058 |
* sem_ch3.adb (Analyze_Full_Type_Declaration): Set Incomplete_View |
| 8059 |
of declaration if one is present. |
| 8060 |
(Replace_Type): When constructing the signature of an inherited |
| 8061 |
operation, handle properly the case where the operation has a |
| 8062 |
formal whose type is an incomplete view. |
| 8063 |
* sem_util.adb (Collect_Primitive_Operations): Handle properly |
| 8064 |
the case of an operation declared after an incomplete declaration |
| 8065 |
for a type T and before the full declaration of T. |
| 8066 |
|
| 8067 |
2014-07-18 Pascal Obry <[email protected]> |
| 8068 |
|
| 8069 |
* i-cstrea.ads: Add documentation for set_wide_text_mode. |
| 8070 |
|
| 8071 |
2014-07-18 Robert Dewar <[email protected]> |
| 8072 |
|
| 8073 |
* a-witeio.adb: Minor code reorganization. |
| 8074 |
* i-cstrea.ads: Add comment. |
| 8075 |
|
| 8076 |
2014-07-18 Thomas Quinot <[email protected]> |
| 8077 |
|
| 8078 |
* s-oscons-tmplt.c (NAME_MAX): Minor cleaup and comment |
| 8079 |
clarifications. |
| 8080 |
|
| 8081 |
2014-07-18 Robert Dewar <[email protected]> |
| 8082 |
|
| 8083 |
* g-memdum.adb, g-memdum.ads, exp_strm.adb: Minor reformatting. |
| 8084 |
|
| 8085 |
2014-07-18 Pascal Obry <[email protected]> |
| 8086 |
|
| 8087 |
* s-crtl.ads, i-cstrea.ads (fputwc): New routine. |
| 8088 |
* a-witeio.adb (Put): On platforms where there is translation |
| 8089 |
done by the OS output the raw text. |
| 8090 |
(New_Line): Use Put above to properly handle the LM wide characters. |
| 8091 |
|
| 8092 |
2014-07-18 Thomas Quinot <[email protected]> |
| 8093 |
|
| 8094 |
* g-memdum.adb, g-memdum.ads (Dump): New parameter Prefix, defaulted |
| 8095 |
to Absolute_Address. |
| 8096 |
|
| 8097 |
2014-07-18 Eric Botcazou <[email protected]> |
| 8098 |
|
| 8099 |
* opt.ads (Suppress_Back_Annotation): Remove as unused. |
| 8100 |
* fe.h (Back_Annotate_Rep_Info): Likewise. |
| 8101 |
(Global_Discard_Names): Likewise. |
| 8102 |
|
| 8103 |
2014-07-18 Robert Dewar <[email protected]> |
| 8104 |
|
| 8105 |
* sem_ch13.adb (Is_Type_Ref): Check that type name is not |
| 8106 |
parenthesized. |
| 8107 |
|
| 8108 |
2014-07-18 Vincent Celier <[email protected]> |
| 8109 |
|
| 8110 |
* s-osinte-vms.ads: Fix style errors. |
| 8111 |
|
| 8112 |
2014-07-18 Thomas Quinot <[email protected]> |
| 8113 |
|
| 8114 |
* s-oscons-tmplt.c (_POSIX_SOURCE): Define in order to get |
| 8115 |
NAME_MAX and PATH_MAX. |
| 8116 |
|
| 8117 |
2014-07-18 Bob Duff <[email protected]> |
| 8118 |
|
| 8119 |
* exp_strm.adb (Build_Record_Or_Elementary_Input_Function, |
| 8120 |
Build_Record_Or_Elementary_Output_Procedure): For Input and |
| 8121 |
Output attributes, do not read/write the discriminants if they |
| 8122 |
have default values; that will be done by Read/Write. |
| 8123 |
|
| 8124 |
2014-07-18 Robert Dewar <[email protected]> |
| 8125 |
|
| 8126 |
* sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, layout.adb, sem_type.adb, |
| 8127 |
exp_util.adb, exp_attr.adb, einfo.adb, einfo.ads, exp_pakd.adb, |
| 8128 |
checks.adb, exp_pakd.ads, freeze.adb, sem_util.adb, exp_dbug.adb, |
| 8129 |
exp_dbug.ads, exp_ch4.adb, sem_ch8.adb, exp_aggr.adb, sem_eval.adb, |
| 8130 |
sem_ch13.adb: Change name Packed_Array_Type to Packed_Array_Impl_Type. |
| 8131 |
|
| 8132 |
2014-07-18 Robert Dewar <[email protected]> |
| 8133 |
|
| 8134 |
* lib-writ.adb, makeutl.adb, ali.ads: Minor reformatting. |
| 8135 |
|
| 8136 |
2014-07-18 Vincent Celier <[email protected]> |
| 8137 |
|
| 8138 |
* lib-writ.ads: Update documentation about the D lines. |
| 8139 |
|
| 8140 |
2014-07-18 Ed Schonberg <[email protected]> |
| 8141 |
|
| 8142 |
* sem_ch13.adb (Replace_Type_References_Generic): Use type entity |
| 8143 |
as a parameter, rather than its Chars field, in order to locate |
| 8144 |
freeze node of type. If the predicate or invariant has references |
| 8145 |
to types other than the one to which the contract applies, these |
| 8146 |
types must be frozen, and the corresponding predicate functions |
| 8147 |
created, before that freeze node. |
| 8148 |
|
| 8149 |
2014-07-18 Robert Dewar <[email protected]> |
| 8150 |
|
| 8151 |
* freeze.adb, einfo.ads, einfo.adb: Minor code reorganization. |
| 8152 |
* par_sco.adb: Minor reformatting. |
| 8153 |
|
| 8154 |
2014-07-18 Gary Dismukes <[email protected]> |
| 8155 |
|
| 8156 |
* exp_ch4.adb (Real_Range_Check): Turn off |
| 8157 |
the Do_Range_Check flag on the conversion's current Expression |
| 8158 |
argument rather than on the originally captured Operand node, |
| 8159 |
as Expression may reflect a rewriting (as in conversions to a |
| 8160 |
fixed-point type). |
| 8161 |
|
| 8162 |
2014-07-18 Vincent Celier <[email protected]> |
| 8163 |
|
| 8164 |
* ali.adb (Scan_ALI): Set Sdep_Record.Unit_Name, when the unit |
| 8165 |
is not a subunit. |
| 8166 |
* ali.ads (Sdep_Record): New component Unit_Name. |
| 8167 |
* lib-writ.adb (Write_ALI): Write the unit name in D lines. |
| 8168 |
* makeutl.adb (Check_Source_Info_In_ALI): Return False if a |
| 8169 |
dependent unit is in a project and the source file name is not |
| 8170 |
one of its sources. |
| 8171 |
|
| 8172 |
2014-07-18 Bob Duff <[email protected]> |
| 8173 |
|
| 8174 |
* s-addima.ads: Minor: add comment. |
| 8175 |
|
| 8176 |
2014-07-18 Thomas Quinot <[email protected]> |
| 8177 |
|
| 8178 |
* freeze.adb (Check_Component_Storage_Order): Fix enforcement |
| 8179 |
of nesting rules for composites with different SSOs. |
| 8180 |
|
| 8181 |
2014-07-18 Thomas Quinot <[email protected]> |
| 8182 |
|
| 8183 |
* par_sco.adb (Is_Logical_Operator): An If_Expression is not |
| 8184 |
a proper logical operator. |
| 8185 |
(Has_Decision): An If_Expression indicates the presence of a decision |
| 8186 |
although it is not a logical operator. |
| 8187 |
|
| 8188 |
2014-07-18 Robert Dewar <[email protected]> |
| 8189 |
|
| 8190 |
* gnat_ugn.texi: Remove note that -gnatR not allowed with -gnatc. |
| 8191 |
* switch-c.adb: Remove prohibition of -gnatR and -gnatc together. |
| 8192 |
|
| 8193 |
2014-07-18 Eric Botcazou <[email protected]> |
| 8194 |
|
| 8195 |
* sem_ch13.adb (Kill_Rep_Clause): Clear Comes_From_Source flag |
| 8196 |
on the null statement. |
| 8197 |
|
| 8198 |
2014-07-18 Thomas Quinot <[email protected]> |
| 8199 |
|
| 8200 |
* adaint.c: Minor comment rewording. |
| 8201 |
* socket.c: Define macros _REENTRANT and _THREAD_SAFE so that |
| 8202 |
use of errno in this file is thread safe. |
| 8203 |
|
| 8204 |
2014-07-18 Arnaud Charlet <[email protected]> |
| 8205 |
|
| 8206 |
* gnat_ugn.texi: Doc clarification. |
| 8207 |
* sem_ch13.adb (Kill_Rep_Clause): Use Replace not Rewrite. |
| 8208 |
* sem_ch13.ads: Minor comment update. |
| 8209 |
|
| 8210 |
2014-07-18 Robert Dewar <[email protected]> |
| 8211 |
|
| 8212 |
* repinfo.ads: Minor comment fix. |
| 8213 |
|
| 8214 |
2014-07-18 Robert Dewar <[email protected]> |
| 8215 |
|
| 8216 |
* par-prag.adb: Add dummy entry for Default_Scalar_Storage_Order. |
| 8217 |
* sem_prag.adb: Add dummy implementation of |
| 8218 |
Default_Scalar_Storage_Order. |
| 8219 |
* snames.ads-tmpl: Add dummy entry for |
| 8220 |
Default_Scalar_Storage_Order pragma. |
| 8221 |
|
| 8222 |
2014-07-18 Robert Dewar <[email protected]> |
| 8223 |
|
| 8224 |
* opt.adb (Tree_Read): Read Address_Is_Private, |
| 8225 |
Ignore_Rep_Clauses, Ignore_Style_Check_Pragmas, Multiple_Unit_Index. |
| 8226 |
(Tree_Write): Corresponding writes |
| 8227 |
* opt.ads: Minor comment reformatting and fixes. |
| 8228 |
* tree_io.ads: Increment ASIS_Version_Number. |
| 8229 |
|
| 8230 |
2014-07-18 Robert Dewar <[email protected]> |
| 8231 |
|
| 8232 |
* sem_attr.adb, s-os_lib.ads, prj-tree.adb: Minor reformatting. |
| 8233 |
* types.h: Fix typo. |
| 8234 |
|
| 8235 |
2014-07-18 Robert Dewar <[email protected]> |
| 8236 |
|
| 8237 |
* freeze.adb (Check_Address_Clause): Use Kill_Rep_Clause (no |
| 8238 |
functional change). |
| 8239 |
* gnat_ugn.texi: Document that -gnatI removes rep clauses from |
| 8240 |
ASIS trees. |
| 8241 |
* sem_ch13.adb (Kill_Rep_Clause): New procedure |
| 8242 |
(Analyze_Attribute_Definition_Clause): Use |
| 8243 |
Kill_Rep_Clause. This is just a cleanup, no functional effect. |
| 8244 |
(Analyze_Enumeration_Representation_Clause): |
| 8245 |
Use Kill_Rep_Clause. This means that enum rep |
| 8246 |
clauses are now properly removed from -gnatct trees. |
| 8247 |
(Analyze_Record_Representation_Clause): Same change. |
| 8248 |
* sem_ch13.ads (Kill_Rep_Clause): New procedure. |
| 8249 |
|
| 8250 |
2014-07-18 Pascal Obry <[email protected]> |
| 8251 |
|
| 8252 |
* s-os_lib.ads, s-os_lib.adb (GM_Time_Of): New routine to create an |
| 8253 |
OS_Time from time parts. |
| 8254 |
* adaint.h, adaint.c (__gnat_to_os_time): New routine. |
| 8255 |
|
| 8256 |
2014-07-18 Ed Schonberg <[email protected]> |
| 8257 |
|
| 8258 |
* sem_ch4.adb (Try_Container_Indexing): Refine previous patch for |
| 8259 |
indexing over containers that are derived types: check whether |
| 8260 |
signature of found operation has the correct first parameter |
| 8261 |
before retrieving directly a primitive operation. |
| 8262 |
|
| 8263 |
2014-07-18 Ed Schonberg <[email protected]> |
| 8264 |
|
| 8265 |
* sem_attr.adb (Analyze_Attribute, case 'Update): Set |
| 8266 |
Do_Range_Check flag on dynamic bounds of a range used in a |
| 8267 |
component association in the argument of Update. |
| 8268 |
|
| 8269 |
2014-07-18 Thomas Quinot <[email protected]> |
| 8270 |
|
| 8271 |
* adaint.c: #define _REENTRANT and _THREAD_SAFE in order for |
| 8272 |
accesses to errno(3) to be thread safe. |
| 8273 |
|
| 8274 |
2014-07-18 Vincent Celier <[email protected]> |
| 8275 |
|
| 8276 |
* prj-tree.adb (Imported_Or_Extended_Project_Of): For each non |
| 8277 |
limited imported project that is an extending project, return |
| 8278 |
a project being extended if it has the expected name. |
| 8279 |
|
| 8280 |
2014-07-18 Pascal Obry <[email protected]> |
| 8281 |
|
| 8282 |
* s-os_lib.ads, s-os_lib.adb (Set_File_Last_Modify_Time_Stamp): New |
| 8283 |
routine to set the last modification time stamp for the given file. |
| 8284 |
* gnatchop.adb (File_Time_Stamp): Removed. |
| 8285 |
(Write_Unit): Use |
| 8286 |
Set_File_Last_Modify_Time_Stamp instead of ad-hoc implementation. |
| 8287 |
|
| 8288 |
2014-07-18 Ed Schonberg <[email protected]> |
| 8289 |
|
| 8290 |
* sem_aggr.adb (Aggregate_Constraint_Checks): Moved to sem_util. |
| 8291 |
* sem_util.ads, sem_util.adb (Aggregate_Constraint_Checks): |
| 8292 |
Moved here, so it can be shared with the resolution of 'Update, |
| 8293 |
whose argument shares some features with aggregates. |
| 8294 |
* sem_attr.adb (Resolve_Attribute, case 'Update): Apply |
| 8295 |
Aggregate_Constraint_Checks with the expression of each |
| 8296 |
association, so that the Do_Range_Check flag is set when needed. |
| 8297 |
|
| 8298 |
2014-07-18 Ed Schonberg <[email protected]> |
| 8299 |
|
| 8300 |
* sem_ch4.adb (Try_Container_Indexing): If the container |
| 8301 |
type is a derived type, the value of the inherited aspect is |
| 8302 |
the Reference operation declared for the parent type. However, |
| 8303 |
Reference is also a primitive operation of the new type, and |
| 8304 |
the inherited operation has a different signature. We retrieve |
| 8305 |
the right one from the list of primitive operations of the |
| 8306 |
derived type. |
| 8307 |
|
| 8308 |
2014-07-18 Vincent Celier <[email protected]> |
| 8309 |
|
| 8310 |
* debug.adb: Update comment. |
| 8311 |
|
| 8312 |
2014-07-18 Hristian Kirtchev <[email protected]> |
| 8313 |
|
| 8314 |
* exp_util.adb (Needs_Finalization): There is no reason why a |
| 8315 |
C type should not benefit from finalization actions. |
| 8316 |
|
| 8317 |
2014-07-18 Thomas Quinot <[email protected]> |
| 8318 |
|
| 8319 |
* s-oscons-tmplt.c (NAME_MAX): Fix definition for Solaris |
| 8320 |
(FILENAME_MAX): Remove unneeded definition. |
| 8321 |
|
| 8322 |
2014-07-18 Robert Dewar <[email protected]> |
| 8323 |
|
| 8324 |
* exp_attr.adb, debug.adb: Update comments. |
| 8325 |
|
| 8326 |
2014-07-18 Vincent Celier <[email protected]> |
| 8327 |
|
| 8328 |
* par-ch4.adb (Simple_Expression): Add missing style check |
| 8329 |
for binary adding operators. |
| 8330 |
(Term): Add missing style check for multiplying operators. |
| 8331 |
|
| 8332 |
2014-07-18 Robert Dewar <[email protected]> |
| 8333 |
|
| 8334 |
* impunit.adb: Minor comment correction. |
| 8335 |
* widechar.adb, s-wchcon.ads: Minor comment corrections. |
| 8336 |
|
| 8337 |
2014-07-18 Robert Dewar <[email protected]> |
| 8338 |
|
| 8339 |
* sem_ch13.adb (Build_Discrete_Static_Predicate): New name |
| 8340 |
for Build_Static_Predicate (Build_Predicate_Functions): |
| 8341 |
Don't try to build discrete predicate for real type. |
| 8342 |
(Build_Predicate_Functions): Report attempt to use |
| 8343 |
Static_Predicate function on real type as unimplemented. |
| 8344 |
* sem_util.adb (Check_Expression_Against_Static_Predicate): |
| 8345 |
Add guard to prevent blow up on predicate for real type. |
| 8346 |
|
| 8347 |
2014-07-18 Ed Schonberg <[email protected]> |
| 8348 |
|
| 8349 |
* einfo.adb (Set_Static_Predicate): Simplify assertion to handle |
| 8350 |
properly static predicate on enumeration types and modular types |
| 8351 |
(not subtypes). |
| 8352 |
|
| 8353 |
2014-07-18 Pierre-Marie Derodat <[email protected]> |
| 8354 |
|
| 8355 |
* scos.ads (SCO_Unit_Table_Entry): Add a field to keep track of |
| 8356 |
the corresponding source file index. |
| 8357 |
* get_scos.ads (Get_SCOs): Add a default value for it. |
| 8358 |
* par_sco.adb (SCO_Record): Fill the corresponding value. |
| 8359 |
* scos.h: New. |
| 8360 |
|
| 8361 |
2014-07-18 Vincent Celier <[email protected]> |
| 8362 |
|
| 8363 |
* a-strunb-shared.adb, s-auxdec.ads, s-rannum.adb, atree.ads, |
| 8364 |
urealp.adb, vms_data.ads, lib.ads, s-auxdec-vms_64.ads: Minor |
| 8365 |
reformatting. |
| 8366 |
* gnat_ugn.texi: Add documentation for new gnatmem switch -t. |
| 8367 |
|
| 8368 |
2014-07-18 Thomas Quinot <[email protected]> |
| 8369 |
|
| 8370 |
* g-sercom.ads (Set): document possible data loss. |
| 8371 |
|
| 8372 |
2014-07-18 Ed Schonberg <[email protected]> |
| 8373 |
|
| 8374 |
* exp_attr.adb (Expand_N_Attribute_Reference, cases Input, |
| 8375 |
Output, Read, Write): If the restriction No_Streams is active, |
| 8376 |
replace each occurrence of a stream attribute by an explicit |
| 8377 |
Raise statement. |
| 8378 |
|
| 8379 |
2014-07-18 Robert Dewar <[email protected]> |
| 8380 |
|
| 8381 |
* par_sco.adb, a-reatim.ads, exp_attr.adb, sem_util.adb: Minor |
| 8382 |
reformatting. |
| 8383 |
|
| 8384 |
2014-07-18 Robert Dewar <[email protected]> |
| 8385 |
|
| 8386 |
* einfo.ads, einfo.adb (Has_Out_Or_In_Out_Parameter): New flag and |
| 8387 |
function. |
| 8388 |
(Set_Has_Out_Or_In_Out_Parameter): New procedure. |
| 8389 |
* sem_ch6.adb (Set_Formal_Mode): Set Has_Out_Or_In_Out_Parameter flag. |
| 8390 |
* sem_res.adb (Resolve_Call): Error if call of Ada 2012 function |
| 8391 |
with OUT or IN OUT from earlier Ada mode (e.g. Ada 2005) |
| 8392 |
|
| 8393 |
2014-07-18 Robert Dewar <[email protected]> |
| 8394 |
|
| 8395 |
* bcheck.adb (Check_Consistent_Restrictions): |
| 8396 |
Remove obsolete code checking for violation of |
| 8397 |
No_Standard_Allocators_After_Elaboration (main program) |
| 8398 |
* bindgen.adb (Gen_Adainit): Handle |
| 8399 |
No_Standard_Allocators_After_Elaboration |
| 8400 |
(Gen_Output_File_Ada): ditto. |
| 8401 |
* exp_ch4.adb (Expand_N_Allocator): Handle |
| 8402 |
No_Standard_Allocators_After_Elaboration. |
| 8403 |
* Makefile.rtl: Add entry for s-elaall |
| 8404 |
* rtsfind.ads: Add entry for Check_Standard_Allocator. |
| 8405 |
* s-elaall.ads, s-elaall.adb: New files. |
| 8406 |
* sem_ch4.adb (Analyze_Allocator): Handle |
| 8407 |
No_Standard_Allocators_After_Elaboration. |
| 8408 |
|
| 8409 |
2014-07-18 Robert Dewar <[email protected]> |
| 8410 |
|
| 8411 |
* lib.adb, lib.ads, lib-writ.adb, lib-writ.ads, ali.adb, |
| 8412 |
ali.ads, lib-load.adb: Remove Lib.Has_Allocator and all uses. |
| 8413 |
Remove AB parameter from ali files and all uses. |
| 8414 |
Remove Allocator_In_Body and all uses. |
| 8415 |
|
| 8416 |
2014-07-18 Robert Dewar <[email protected]> |
| 8417 |
|
| 8418 |
* g-expect-vms.adb: Add comment. |
| 8419 |
|
| 8420 |
2014-07-18 Thomas Quinot <[email protected]> |
| 8421 |
|
| 8422 |
* par_sco.adb (Is_Logical_Operation): return True for |
| 8423 |
N_If_Expression. |
| 8424 |
|
| 8425 |
2014-07-18 Ed Schonberg <[email protected]> |
| 8426 |
|
| 8427 |
* sem_attr.adb (Resolve_Attribute, case 'Update): Do full |
| 8428 |
analysis and resolution of each choice in the associations within |
| 8429 |
the argument of Update, because they may be variable names. |
| 8430 |
|
| 8431 |
2014-07-18 Hristian Kirtchev <[email protected]> |
| 8432 |
|
| 8433 |
* exp_attr.adb (Expand_Loop_Entry_Attribute): Insert any condition |
| 8434 |
actions before the generated if statement. |
| 8435 |
|
| 8436 |
2014-07-18 Hristian Kirtchev <[email protected]> |
| 8437 |
|
| 8438 |
* gnat_ugn.texi Enhance the documentation of |
| 8439 |
switches -gnateA and -gnateV. |
| 8440 |
|
| 8441 |
2014-07-18 Ed Schonberg <[email protected]> |
| 8442 |
|
| 8443 |
* sem_util.adb (Build_Default_Subtype): Add missing condition |
| 8444 |
so that code matches description: use the full view of the base |
| 8445 |
only if the base is private and the subtype is not. |
| 8446 |
|
| 8447 |
2014-07-17 Gary Dismukes <[email protected]> |
| 8448 |
|
| 8449 |
* exp_disp.adb: Minor reformatting. |
| 8450 |
* exp_disp.adb: Minor code reorganization. |
| 8451 |
|
| 8452 |
2014-07-17 Thomas Quinot <[email protected]> |
| 8453 |
|
| 8454 |
* gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Do not |
| 8455 |
require an explicit SSO attribute definition clause on a composite type |
| 8456 |
just because one of its components has one. |
| 8457 |
|
| 8458 |
2014-07-17 Robert Dewar <[email protected]> |
| 8459 |
|
| 8460 |
* sem_attr.adb (Analyze_Attribute, case Loop_Entry): Rewrite |
| 8461 |
attribute out of existence if the enclosing pragma is ignored. |
| 8462 |
* sem_util.adb: Minor reformatting. |
| 8463 |
|
| 8464 |
2014-07-17 Ed Schonberg <[email protected]> |
| 8465 |
|
| 8466 |
* exp_aggr.adb (Expand_Array_Aggregate): Handle properly an |
| 8467 |
array aggregate expanded into assignments when it appears as a |
| 8468 |
local declaration in an inlined body. |
| 8469 |
|
| 8470 |
2014-07-17 Doug Rupp <[email protected]> |
| 8471 |
|
| 8472 |
* init.c [__ANDROID__]: Modify for ZCX. |
| 8473 |
* exp_aggr.adb: Minor reformatting |
| 8474 |
* sigtramp-armvxw.c, sigtramp-ppcvxw.c: Update comments. |
| 8475 |
|
| 8476 |
2014-07-17 Robert Dewar <[email protected]> |
| 8477 |
|
| 8478 |
* a-strunb-shared.ads, a-stwiun-shared.ads, a-stzunb-shared.ads, |
| 8479 |
exp_ch7.adb, g-pehage.ads, g-socket.ads, gnat_ugn.texi, gnat_ugx.texi, |
| 8480 |
scng.adb: Remove incorrect usage "allow to" and "allows to". |
| 8481 |
|
| 8482 |
2014-07-17 Robert Dewar <[email protected]> |
| 8483 |
|
| 8484 |
* exp_dist.adb: Minor reformatting. |
| 8485 |
|
| 8486 |
2014-07-17 Bob Duff <[email protected]> |
| 8487 |
|
| 8488 |
* gnat_ugn.texi: Improve documentation of Unrestricted_Access. |
| 8489 |
|
| 8490 |
2014-07-17 Robert Dewar <[email protected]> |
| 8491 |
|
| 8492 |
* sem_ch13.adb (Build_Invariant_Procedure): Add variable Nam |
| 8493 |
(Add_Invariants): Set Nam to Name_Type_Invariant if from aspect. |
| 8494 |
|
| 8495 |
2014-07-17 Thomas Quinot <[email protected]> |
| 8496 |
|
| 8497 |
* exp_pakd.adb (Create_Packed_Array_Type.Install_PAT): For a |
| 8498 |
non-bit-packed array, propagate Reverse_Storage_Order to the |
| 8499 |
packed array type. |
| 8500 |
|
| 8501 |
2014-07-17 Javier Miranda <[email protected]> |
| 8502 |
|
| 8503 |
* exp_disp.adb: Fix comment. |
| 8504 |
* exp_pakd.adb: Minor reformatting. |
| 8505 |
|
| 8506 |
2014-07-17 Robert Dewar <[email protected]> |
| 8507 |
|
| 8508 |
* bindgen.adb (Gen_Elab_Calls): Skip reference to elab |
| 8509 |
entity if none exists (Gen_Elab_Calls): Complain if clash with |
| 8510 |
No_Multiple_Elaboration. |
| 8511 |
* s-rident.ads, restrict.ads: Add restriction No_Multiple_Elaboration. |
| 8512 |
* sem_util.adb (Build_Elaboration_Entity): Skip building entity |
| 8513 |
if not needed. |
| 8514 |
* gnat_rm.texi: Document restriction No_Multiple_Elaboration. |
| 8515 |
* sem_ch4.adb: Minor comment updates. |
| 8516 |
|
| 8517 |
2014-07-17 Ed Schonberg <[email protected]> |
| 8518 |
|
| 8519 |
* exp_ch9.adb (Buid_Protected_Subprogram_Call): Preserve type |
| 8520 |
of function call for later use when shared passive objects |
| 8521 |
are involved. |
| 8522 |
|
| 8523 |
2014-07-17 Hristian Kirtchev <[email protected]> |
| 8524 |
|
| 8525 |
* par-ch13.adb (Get_Aspect_Specifications): |
| 8526 |
Catch a case where the argument of SPARK aspect Refined_State |
| 8527 |
is not properly parenthesized. |
| 8528 |
|
| 8529 |
2014-07-17 Hristian Kirtchev <[email protected]> |
| 8530 |
|
| 8531 |
* exp_ch6.adb (Expand_Ctrl_Function_Call): Do not extend |
| 8532 |
the lifetime of a reference to an Ada 2012 container element. |
| 8533 |
(Is_Element_Reference): New routine. |
| 8534 |
|
| 8535 |
2014-07-17 Robert Dewar <[email protected]> |
| 8536 |
|
| 8537 |
* ali.ads: Minor comment fix. |
| 8538 |
* lib-writ.adb: Minor reformatting. |
| 8539 |
|
| 8540 |
2014-07-17 Ed Schonberg <[email protected]> |
| 8541 |
|
| 8542 |
* sem_ch10.adb (Analyze_Proper_Body): When analyzing a subunit |
| 8543 |
in ASIS mode, load another subunit only if it a subunit of the |
| 8544 |
current one, not a sibling that has been reached through the |
| 8545 |
analysis of an ancestor. This allows the construction of the |
| 8546 |
ASIS tree for the subunit even when sibling subunits have errors. |
| 8547 |
|
| 8548 |
2014-07-17 Hristian Kirtchev <[email protected]> |
| 8549 |
|
| 8550 |
* sem_ch3.adb (Analyze_Declarations): Remove the guard which |
| 8551 |
prevents the analysis of various contracts when the associated |
| 8552 |
construct is erroneous. |
| 8553 |
* sem_util.adb (Save_SPARK_Mode_And_Set): Do not query the |
| 8554 |
SPARK_Pragma of an illegal or a partially decorated construct. |
| 8555 |
|
| 8556 |
2014-07-17 Robert Dewar <[email protected]> |
| 8557 |
|
| 8558 |
* s-imguns.ads: Minor reformatting. |
| 8559 |
|
| 8560 |
2014-07-17 Hristian Kirtchev <[email protected]> |
| 8561 |
|
| 8562 |
* exp_ch7.adb (Build_Finalization_Master): Move all local |
| 8563 |
variables to the proper code section. When looking for an existing |
| 8564 |
finalization master, inspect the ultimate ancestor type of the |
| 8565 |
full view. |
| 8566 |
* sem_util.ads, sem_util.adb (Root_Type_Of_Full_View): New routine. |
| 8567 |
|
| 8568 |
2014-07-17 Robert Dewar <[email protected]> |
| 8569 |
|
| 8570 |
* aspects.ads, aspects.adb: Add entries for aspect Annotate. |
| 8571 |
* gnat_rm.texi: Document Entity argument for pragma Annotate and |
| 8572 |
Annotate aspect. |
| 8573 |
* sem_ch13.adb (Analyze_Aspect_Specification): Add processing |
| 8574 |
for Annotate aspect. |
| 8575 |
* sem_prag.adb (Analyze_Pragma, case Annotate): Allow optional |
| 8576 |
Entity argument at end. |
| 8577 |
* sinfo.ads (N_Aspect_Specification): Add note on Annotate aspect. |
| 8578 |
|
| 8579 |
2014-07-17 Tristan Gingold <[email protected]> |
| 8580 |
|
| 8581 |
* s-imguns.ads: Fix minor typo. |
| 8582 |
|
| 8583 |
2014-07-17 Thomas Quinot <[email protected]> |
| 8584 |
|
| 8585 |
* sprint.adb: Minor reformatting. |
| 8586 |
|
| 8587 |
2014-07-17 Robert Dewar <[email protected]> |
| 8588 |
|
| 8589 |
* sprint.adb (Write_Itype): Print proper header for string |
| 8590 |
literal subtype. |
| 8591 |
|
| 8592 |
2014-07-17 Steve Baird <[email protected]> |
| 8593 |
|
| 8594 |
* sinfo.ads, sem_scil.ads: Improve comments, minor reformatting. |
| 8595 |
|
| 8596 |
2014-07-17 Vincent Celier <[email protected]> |
| 8597 |
|
| 8598 |
* gnatbind.adb: Change in message "try ... for more information". |
| 8599 |
|
| 8600 |
2014-07-17 Robert Dewar <[email protected]> |
| 8601 |
|
| 8602 |
* sprint.adb: Code clean up. |
| 8603 |
|
| 8604 |
2014-07-17 Hristian Kirtchev <[email protected]> |
| 8605 |
|
| 8606 |
* exp_ch7.adb (Find_Last_Init): Relocate local variables to |
| 8607 |
the relevant code section. Add new local constant Obj_Id. When |
| 8608 |
a limited controlled object is initialized by a function call, |
| 8609 |
the build-in-place object access function call acts as the last |
| 8610 |
initialization statement. |
| 8611 |
* exp_util.adb (Is_Object_Access_BIP_Func_Call): New routine. |
| 8612 |
(Is_Secondary_Stack_BIP_Func_Call): Code reformatting. |
| 8613 |
* exp_util.ads (Is_Object_Access_BIP_Func_Call): New routine. |
| 8614 |
|
| 8615 |
2014-07-17 Ed Schonberg <[email protected]> |
| 8616 |
|
| 8617 |
* sem_ch8.adb (Analyze_Generic_Renaming): For generic subprograms, |
| 8618 |
propagate intrinsic flag to renamed entity, to allow e.g. renaming |
| 8619 |
of Unchecked_Conversion. |
| 8620 |
* sem_ch3.adb (Analyze_Declarations): Do not analyze contracts |
| 8621 |
if the declaration has errors. |
| 8622 |
|
| 8623 |
2014-07-17 Ed Schonberg <[email protected]> |
| 8624 |
|
| 8625 |
* a-rbtgbk.adb: a-rbtgbk.adb (Generic_Insert_Post): Check whether |
| 8626 |
container is busy before checking whether capacity allows for |
| 8627 |
a further insertion. Insertion in a busy container that is full |
| 8628 |
raises Program_Error rather than Capacity_Error. Previous to that |
| 8629 |
patch which exception was raised varied among container types. |
| 8630 |
|
| 8631 |
2014-07-17 Robert Dewar <[email protected]> |
| 8632 |
|
| 8633 |
* g-comlin.ads, g-comlin.adb: Minor clean up. |
| 8634 |
|
| 8635 |
2014-07-17 Bob Duff <[email protected]> |
| 8636 |
|
| 8637 |
* gnat_ugn.texi: Update gnatpp doc. |
| 8638 |
|
| 8639 |
2014-07-17 Robert Dewar <[email protected]> |
| 8640 |
|
| 8641 |
* gnat_rm.texi: Document new restriction No_Long_Long_Integers. |
| 8642 |
* exp_ch4.adb (Make_Array_Comparison_Op): Add note that we |
| 8643 |
could do this by actually expanding a real generic. |
| 8644 |
* a-tags.ads: Add comments about performance. |
| 8645 |
* sprint.adb (Sprint_Node_Actual, case N_Object_Declaration): |
| 8646 |
Print Etype of defining identifier, rather than the object |
| 8647 |
definition. More information. |
| 8648 |
|
| 8649 |
2014-07-17 Thomas Quinot <[email protected]> |
| 8650 |
|
| 8651 |
* exp_dist.adb: Minor documentation clarification. |
| 8652 |
|
| 8653 |
2014-07-17 Hristian Kirtchev <[email protected]> |
| 8654 |
|
| 8655 |
* exp_util.adb (Is_Aliased): Revert previous change. |
| 8656 |
|
| 8657 |
2014-07-17 Vincent Celier <[email protected]> |
| 8658 |
|
| 8659 |
* g-comlin.adb (Try_Help): New procedure. |
| 8660 |
(Getopt): Use new procedure Try_Help. |
| 8661 |
* g-comlin.ads (Try_Help): New procedure. |
| 8662 |
|
| 8663 |
2014-07-17 Bob Duff <[email protected]> |
| 8664 |
|
| 8665 |
* gnat_ugn.texi: Minor update. |
| 8666 |
|
| 8667 |
2014-07-17 Robert Dewar <[email protected]> |
| 8668 |
|
| 8669 |
* gnat_rm.texi: Improve documentation of Unrestricted_Access. |
| 8670 |
* sinfo.ads: Document restriction on aggregates (must expand to |
| 8671 |
assignments if one or more assignments needs expansion, e.g. for |
| 8672 |
controlled types). |
| 8673 |
* sem_ch13.adb: All warning messages regarding bit order should |
| 8674 |
be info: messages. |
| 8675 |
* gnat_ugn.texi: Minor correction of missing @ on @code |
| 8676 |
|
| 8677 |
2014-07-17 Robert Dewar <[email protected]> |
| 8678 |
|
| 8679 |
* restrict.ads (Implementation_Restriction): Add No_Long_Long_Integer. |
| 8680 |
* s-rident.ads (Partition_Boolean_Restrictions): Add |
| 8681 |
No_Long_Long_Integer. |
| 8682 |
* sem_ch3.adb (Modular_Type_Declaration): Size must be <= |
| 8683 |
Long_Integer'Size if restriction No_Long_Long_Integer is active. |
| 8684 |
(Signed_Integer_Type_Declaration): Do not allow Long_Long_Integer |
| 8685 |
as the implicit base type for a signed integer type declaration |
| 8686 |
if restriction No_Long_Long_Integer is active. |
| 8687 |
* sem_util.ads, sem_util.adb (Set_Entity_With_Checks): Include check for |
| 8688 |
No_Long_Long_Integer. |
| 8689 |
|
| 8690 |
2014-07-17 Robert Dewar <[email protected]> |
| 8691 |
|
| 8692 |
* sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads, |
| 8693 |
einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb, |
| 8694 |
repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb, |
| 8695 |
sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb, |
| 8696 |
treepr.adb, lib-xref.adb: Remove the word kludge from ada sources. |
| 8697 |
|
| 8698 |
2014-07-17 Robert Dewar <[email protected]> |
| 8699 |
|
| 8700 |
* debug.adb: Remove -gnatdQ. |
| 8701 |
* exp_disp.adb: Remove -gnatdQ. |
| 8702 |
* a-ztenio.ads, a-wtinio.ads, a-wtmoio.ads, a-ztcoau.ads, a-tiinio.ads, |
| 8703 |
a-wtfiio.ads, a-timoio.ads, sem_ch12.adb, a-tifiio.ads, a-ztinio.ads, |
| 8704 |
rtsfind.adb, rtsfind.ads, a-ztmoio.ads, a-wtdeio.ads, a-ztfiio.ads, |
| 8705 |
a-tideio.ads, a-wtflio.ads, a-ztdeio.ads, sem_ch8.adb, a-tiflio.ads, |
| 8706 |
sprint.adb, a-ztflio.ads, snames.ads-tmpl, a-wtenio.ads, |
| 8707 |
a-tienio.ads: Rename Text_IO_Kludge to Text_IO_Special_Unit. |
| 8708 |
|
| 8709 |
2014-07-17 Robert Dewar <[email protected]> |
| 8710 |
|
| 8711 |
* back_end.adb: Minor reformatting and comment additions. |
| 8712 |
* checks.ads, checks.adb (Duplicated_Tag_Checks_Suppressed): New |
| 8713 |
function. |
| 8714 |
* exp_disp.adb (Make_DT): Use Duplicated_Tag_Checks_Suppressed. |
| 8715 |
(Make_VM_TSD): Use Duplicated_Tag_Checks_Suppressed. |
| 8716 |
* gnat_rm.texi: Document new check Duplicated_Tag_Checks_Suppressed. |
| 8717 |
* gnat_ugn.texi: Additional documentation for Duplicated_Tag_Check. |
| 8718 |
* snames.ads-tmpl (Duplicated_Tag_Checks_Suppressed): New check. |
| 8719 |
* types.ads (Duplicated_Tag_Checks_Suppressed): New check. |
| 8720 |
|
| 8721 |
2014-07-17 Robert Dewar <[email protected]> |
| 8722 |
|
| 8723 |
* gnat_rm.texi: Minor comment updates. |
| 8724 |
|
| 8725 |
2014-07-17 Ed Schonberg <[email protected]> |
| 8726 |
|
| 8727 |
* sem_util.adb (Make_Explicit_Dereference): If the expression |
| 8728 |
being dereferenced is a generalized indexing, reset the overloaded |
| 8729 |
flag on the generalized indexing call, consistent with the |
| 8730 |
resetting of the flag on the original indexed component. |
| 8731 |
|
| 8732 |
2014-07-17 Robert Dewar <[email protected]> |
| 8733 |
|
| 8734 |
* gnat_ugn.texi: Document advise not to mix -gnatV? and |
| 8735 |
optimization. |
| 8736 |
|
| 8737 |
2014-07-17 Robert Dewar <[email protected]> |
| 8738 |
|
| 8739 |
* checks.adb (Insert_Valid_Check): Don't insist on a name |
| 8740 |
for the prefix when we make calls to Force_Evaluation and |
| 8741 |
Duplicate_Subexpr_No_Checks. |
| 8742 |
* exp_util.adb (Is_Volatile_Reference): Handle all cases properly |
| 8743 |
(Remove_Side_Effects): Handle all volatile references right |
| 8744 |
(Side_Effect_Free): Volatile reference is never side effect free |
| 8745 |
* sinfo.ads (N_Attribute_Reference): Add comments explaining |
| 8746 |
that in the tree, the prefix can be a general expression. |
| 8747 |
|
| 8748 |
2014-07-17 Hristian Kirtchev <[email protected]> |
| 8749 |
|
| 8750 |
* sem_ch6.adb (Analyze_Subprogram_Body_Contract, |
| 8751 |
Analyze_Subprogram_Contract): Add comments on SPARK_Mode save/restore. |
| 8752 |
* sem_ch7.adb (Analyze_Package_Body_Contract, |
| 8753 |
Analyze_Package_Contract): Add comments on SPARK_Mode save/restore. |
| 8754 |
|
| 8755 |
2014-07-17 Robert Dewar <[email protected]> |
| 8756 |
|
| 8757 |
* exp_ch7.ads, exp_util.ads: Document Insert_Action_After, |
| 8758 |
Store_After_Actions_In_Scope. |
| 8759 |
|
| 8760 |
2014-07-17 Robert Dewar <[email protected]> |
| 8761 |
|
| 8762 |
* sem_aux.ads: Minor comment addition. |
| 8763 |
|
| 8764 |
2014-07-17 Ed Schonberg <[email protected]> |
| 8765 |
|
| 8766 |
* sem_res.adb (Make_Call_Into_Operator): If the call is already |
| 8767 |
a rewriting of an operator node, there are no actuals to be |
| 8768 |
propagated from original node to rewritten node when in ASIS mode. |
| 8769 |
|
| 8770 |
2014-07-17 Hristian Kirtchev <[email protected]> |
| 8771 |
|
| 8772 |
* sem_ch6.adb (Analyze_Subprogram_Body_Contract, |
| 8773 |
Analyze_Subprogram_Contract): Add new local variable Mode. Save |
| 8774 |
and restore the SPARK mode of the related construct in a |
| 8775 |
stack-like fashion. |
| 8776 |
* sem_ch7.adb (Analyze_Package_Body_Contract, |
| 8777 |
Analyze_Package_Contract): Add new local variable Mode. Save and |
| 8778 |
restore the SPARK mode of the related construct in a stack-like fashion. |
| 8779 |
* sem_util.adb Remove with and use clause for Opt. |
| 8780 |
(Restore_SPARK_Mode): New routine. |
| 8781 |
(Save_SPARK_Mode_And_Set): New routine. |
| 8782 |
* sem_util.ads Add with and use clause for Opt. |
| 8783 |
(Restore_SPARK_Mode): New routine. |
| 8784 |
(Save_SPARK_Mode_And_Set): New routine. |
| 8785 |
|
| 8786 |
2014-07-17 Hristian Kirtchev <[email protected]> |
| 8787 |
|
| 8788 |
* exp_util.adb (Is_Aliased): Transient objects |
| 8789 |
within an expression with actions cannot be considered aliased. |
| 8790 |
|
| 8791 |
2014-07-17 Thomas Quinot <[email protected]> |
| 8792 |
|
| 8793 |
* sem.ads (Scope_Stack_Entry): Reorganize storage of action lists; |
| 8794 |
introduce a new list (cleanup actions) for each (transient) scope. |
| 8795 |
* sinfo.ads, sinfo.adb (Cleanup_Actions): New attribute for |
| 8796 |
N_Block_Statement |
| 8797 |
* exp_ch7.ads (Store_Cleanup_Actions_In_Scope): New subprogram. |
| 8798 |
* exp_ch7.adb (Store_Actions_In_Scope): New subprogram, common |
| 8799 |
processing for Store_xxx_Actions_In_Scope. |
| 8800 |
(Build_Cleanup_Statements): Allow for a list of additional |
| 8801 |
cleanup statements to be passed by the caller. |
| 8802 |
(Expand_Cleanup_Actions): Take custom cleanup actions associated |
| 8803 |
with an N_Block_Statement into account. |
| 8804 |
(Insert_Actions_In_Scope_Around): Account for Scope_Stack_Entry |
| 8805 |
reorganization (refactoring only, no behaviour change). |
| 8806 |
(Make_Transient_Block): Add assertion to ensure that the current |
| 8807 |
scope is indeed a block (namely, the entity for the transient |
| 8808 |
block being constructed syntactically, which has already been |
| 8809 |
established as a scope). If cleanup actions are present in the |
| 8810 |
transient scope, transfer them now to the transient block. |
| 8811 |
* exp_ch6.adb (Expand_Protected_Subprogram_Call): Freeze the |
| 8812 |
called function while it is still present as the name in a call |
| 8813 |
in the tree. This may not be the case later on if the call is |
| 8814 |
rewritten into a transient block. |
| 8815 |
* exp_smem.adb (Add_Shared_Var_Lock_Procs): The post-actions |
| 8816 |
inserted after calling a protected operation on a shared passive |
| 8817 |
protected must be performed in a block finalizer, not just |
| 8818 |
inserted in the tree, so that they are executed even in case of |
| 8819 |
a normal (RETURN) or abnormal (exception) transfer of control |
| 8820 |
outside of the current scope. |
| 8821 |
* exp_smem.ads (Add_Shared_Var_Lock_Procs): Update documentation |
| 8822 |
* sem_ch8.adb, expander.adb, exp_ch11.adb: Adjust for |
| 8823 |
Scope_Stack_Entry reorganization. |
| 8824 |
|
| 8825 |
2014-07-17 Thomas Quinot <[email protected]> |
| 8826 |
|
| 8827 |
* exp_disp.adb (Make_DT, Make_VM_TSD): Do not omit Check_TSD |
| 8828 |
call for types that do not have an explicit attribute definition |
| 8829 |
clause for External_Tag, as their default tag may clash with an |
| 8830 |
explicit tag defined for some other type. |
| 8831 |
|
| 8832 |
2014-07-17 Hristian Kirtchev <[email protected]> |
| 8833 |
|
| 8834 |
* exp_util.adb (Is_Controlled_Function_Call): Recognize a |
| 8835 |
controlled function call with multiple actual parameters that |
| 8836 |
appears in Object.Operation form. |
| 8837 |
|
| 8838 |
2014-07-17 Thomas Quinot <[email protected]> |
| 8839 |
|
| 8840 |
* einfo.ads, einfo.adb (Has_External_Tag_Rep_Clause): Remove |
| 8841 |
entity flag. |
| 8842 |
* sem_ch13.adb (Analyze_Attribute_Definition_Clause, case |
| 8843 |
External_Tag): No need to set entity flag. |
| 8844 |
* sem_aux.ads, sem_aux.adb (Has_External_Tag_Rep_Clause): |
| 8845 |
Reimplement correctly in terms of Has_Rep_Item. |
| 8846 |
|
| 8847 |
2014-07-17 Thomas Quinot <[email protected]> |
| 8848 |
|
| 8849 |
* exp_ch7.adb (Establish_Transient_Scope.Find_Node_To_Be_Wrapped): |
| 8850 |
Start examining the tree at the node passed to |
| 8851 |
Establish_Transient_Scope (not its parent). |
| 8852 |
* exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): |
| 8853 |
The access type for the variable storing the reference to |
| 8854 |
the call must be declared and frozen prior to establishing a |
| 8855 |
transient scope. |
| 8856 |
* exp_ch9.adb: Minor reformatting. |
| 8857 |
|
| 8858 |
2014-07-17 Pascal Obry <[email protected]> |
| 8859 |
|
| 8860 |
* s-os_lib.ads: Minor comment update. |
| 8861 |
|
| 8862 |
2014-07-17 Tristan Gingold <[email protected]> |
| 8863 |
|
| 8864 |
* sysdep.c: Add ATTRIBUTE_UNUSED to avoid warnings. Fix some |
| 8865 |
indentation. |
| 8866 |
* socket.c: Remove #warning to avoid warning. |
| 8867 |
* expect.c: Indent some preprocessor directives to clarify |
| 8868 |
nested if. Do not use wait.h on PikeOS. Add ATTRIBUTE_UNUSED |
| 8869 |
to remove warnings. |
| 8870 |
* env.c: Fix indentation. Port to PikeOS. |
| 8871 |
* gsocket.h: Port to PikeOS. Remove #warning. |
| 8872 |
* terminals.c: Port to PikeOS. Fix indentation of the stubs. |
| 8873 |
Add ATTRIBUTE_UNUSED to stubs arguments. Fix return statement |
| 8874 |
of stubbed __gnat_setup_parent_communication. |
| 8875 |
* adaint.c: Port to PikeOS. Reindent some preprocessor |
| 8876 |
directives to clarify nested if. Fix indentation. Add missing |
| 8877 |
ATTRIBUTE_UNUSED. |
| 8878 |
|
| 8879 |
2014-07-17 Robert Dewar <[email protected]> |
| 8880 |
|
| 8881 |
* sem_attr.adb: Minor reformatting. |
| 8882 |
|
| 8883 |
2014-07-17 Robert Dewar <[email protected]> |
| 8884 |
|
| 8885 |
* exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting. |
| 8886 |
|
| 8887 |
2014-07-17 Ed Schonberg <[email protected]> |
| 8888 |
|
| 8889 |
* sem_case.adb (Check_Choice_Set): If the case expression is the |
| 8890 |
expression in a predicate, do not recheck coverage against itself, |
| 8891 |
to prevent spurious errors. |
| 8892 |
* sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that |
| 8893 |
expression comes from an aspect specification, to prevent spurious |
| 8894 |
errors when expression is a case expression in a predicate. |
| 8895 |
|
| 8896 |
2014-07-17 Pascal Obry <[email protected]> |
| 8897 |
|
| 8898 |
* adaint.c, adaint.h (__gnat_set_executable): Add mode parameter. |
| 8899 |
* s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter. |
| 8900 |
|
| 8901 |
2014-07-17 Vincent Celier <[email protected]> |
| 8902 |
|
| 8903 |
* gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb, |
| 8904 |
gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output |
| 8905 |
the usage for an erroneous invocation of a gnat tool. |
| 8906 |
|
| 8907 |
2014-07-16 Vincent Celier <[email protected]> |
| 8908 |
|
| 8909 |
* gnatls.adb: Get the target parameters only if -nostdinc was |
| 8910 |
not specified. |
| 8911 |
|
| 8912 |
2014-07-16 Ed Schonberg <[email protected]> |
| 8913 |
|
| 8914 |
* checks.adb (Insert_Valid_Check): If the expression is a packed |
| 8915 |
component of a modular type of the right size the data is always |
| 8916 |
valid. This os particularly useful if the component is part of |
| 8917 |
a volatile variable. |
| 8918 |
|
| 8919 |
2014-07-16 Robert Dewar <[email protected]> |
| 8920 |
|
| 8921 |
* gnat_rm.texi, sinfo.ads, freeze.adb, exp_aggr.adb: Minor reformatting |
| 8922 |
|
| 8923 |
2014-07-16 Thomas Quinot <[email protected]> |
| 8924 |
|
| 8925 |
* exp_ch7.ads: Minor documentation fix. |
| 8926 |
|
| 8927 |
2014-07-16 Ed Schonberg <[email protected]> |
| 8928 |
|
| 8929 |
* sem_ch3.adb (Find_Type_Name): Diagnose properly |
| 8930 |
a private extension completion that is an interface definition |
| 8931 |
with an interface list. |
| 8932 |
|
| 8933 |
2014-07-16 Arnaud Charlet <[email protected]> |
| 8934 |
|
| 8935 |
* gnatls.adb (Gnatls): Code clean ups. |
| 8936 |
|
| 8937 |
2014-07-16 Thomas Quinot <[email protected]> |
| 8938 |
|
| 8939 |
* sinfo.ads, sinfo.adb (N_Compound_Statement): New node kind. |
| 8940 |
* sem.adb (Analyze): Handle N_Compound_Statement. |
| 8941 |
* sprint.adb (Sprint_Node_Actual): Ditto. |
| 8942 |
* sem_ch5.ads, sem_ch5.adb (Analyze_Compound_Statement): New |
| 8943 |
procedure to handle N_Compound_Statement. |
| 8944 |
* exp_aggr.adb (Collect_Initialization_Statements): |
| 8945 |
Use a proper compound statement node, instead of a bogus |
| 8946 |
expression-with-actions with a NULL statement as its expression, |
| 8947 |
to wrap collected initialization statements. |
| 8948 |
* freeze.ads, freeze.adb |
| 8949 |
(Explode_Initialization_Compound_Statement): New public procedure, |
| 8950 |
lifted from Freeze_Entity. |
| 8951 |
(Freeze_Entity): When freezing |
| 8952 |
an object with captured initialization statements and without |
| 8953 |
delayed freezing, explode compount statement. |
| 8954 |
* sem_ch4.adb (Analyze_Expression_With_Actions): Remove special |
| 8955 |
case that used to handle bogus EWAs with NULL statement as |
| 8956 |
the expression. |
| 8957 |
* exp_ch13.adb (Expand_N_Freeze_Entity): For an object with |
| 8958 |
delayed freezing and captured initialization statements, explode |
| 8959 |
compound statement. |
| 8960 |
|
| 8961 |
2014-07-16 Gary Dismukes <[email protected]> |
| 8962 |
|
| 8963 |
* g-rewdat.adb, g-rewdat.ads: Minor reformatting. |
| 8964 |
|
| 8965 |
2014-07-16 Doug Rupp <[email protected]> |
| 8966 |
|
| 8967 |
* s-interr-hwint.adb: Casing error on parameter. |
| 8968 |
|
| 8969 |
2014-07-16 Pascal Obry <[email protected]> |
| 8970 |
|
| 8971 |
* Makefile.rtl: Add g-rewdat.o dependencies in |
| 8972 |
GNATRTL_NONTASKING_OBJS. |
| 8973 |
|
| 8974 |
2014-07-16 Ed Schonberg <[email protected]> |
| 8975 |
|
| 8976 |
* sem_case.adb: Code clean up. |
| 8977 |
|
| 8978 |
2014-07-16 Vincent Celier <[email protected]> |
| 8979 |
|
| 8980 |
* make.adb: Do not read gnat.adc when gnatmake is invoked |
| 8981 |
with -gnatA. |
| 8982 |
|
| 8983 |
2014-07-16 Pascal Obry <[email protected]> |
| 8984 |
|
| 8985 |
* gnat_rm.texi, impunit.adb, g-rewdat.adb, g-rewdat.ads: Initial |
| 8986 |
implementation of GNAT.Rewrite_Data. |
| 8987 |
|
| 8988 |
2014-07-16 Vincent Celier <[email protected]> |
| 8989 |
|
| 8990 |
* gnatls.adb (Normalize): New function. |
| 8991 |
(Gnatls): Get the target parameters. On targets other than VMS, |
| 8992 |
normalize the path names in the source search path, the object search |
| 8993 |
path and the project search path. |
| 8994 |
|
| 8995 |
2014-07-16 Ed Schonberg <[email protected]> |
| 8996 |
|
| 8997 |
* sem_case.adb: Avoid self-checking of case expressions in |
| 8998 |
dynamic predicates. |
| 8999 |
|
| 9000 |
2014-07-16 Robert Dewar <[email protected]> |
| 9001 |
|
| 9002 |
* gnat_rm.texi: Document effect of Suppress_Initialization on tags and |
| 9003 |
discriminants. |
| 9004 |
|
| 9005 |
2014-07-16 Eric Botcazou <[email protected]> |
| 9006 |
|
| 9007 |
* switch-b.adb (Scan_Binder_Switches): Add missing guard. |
| 9008 |
|
| 9009 |
2014-07-16 Ben Brosgol <[email protected]> |
| 9010 |
|
| 9011 |
* gnat_ugn.texi: Fix typo. |
| 9012 |
|
| 9013 |
2014-07-16 Ed Schonberg <[email protected]> |
| 9014 |
|
| 9015 |
* exp_ch4.adb (Expand_N_Case_Expression): Do not expand case |
| 9016 |
expression if it is the specification of a subtype predicate: |
| 9017 |
it will be expanded when the return statement is analyzed, or |
| 9018 |
when a static predicate is transformed into a static expression |
| 9019 |
for evaluation by the front-end. |
| 9020 |
* sem_ch13.adb (Get_RList): If the expression for a static |
| 9021 |
predicate is a case expression, extract the alternatives of the |
| 9022 |
branches with a True value to create the required statically |
| 9023 |
evaluable expression. |
| 9024 |
|
| 9025 |
2014-07-16 Thomas Quinot <[email protected]> |
| 9026 |
|
| 9027 |
* exp_prag.adb (Expand_Pragma_Check): Use the location of the |
| 9028 |
expression, not the location of the aspect, for all generated |
| 9029 |
code, so that in particular the call to raise_assert_failure |
| 9030 |
gets the sloc of the associated condition. |
| 9031 |
* exp_ch6.adb |
| 9032 |
(Expand_Subprogram_Contract.Build_Postconditions_Procedure): |
| 9033 |
Set an explicit End_Label on the handled sequence of statements |
| 9034 |
for the _Postconditions procedure so that the implicit return |
| 9035 |
statement does not erroneously get associated with code generated |
| 9036 |
for the last condition in postconditions. |
| 9037 |
|
| 9038 |
2014-07-16 Thomas Quinot <[email protected]> |
| 9039 |
|
| 9040 |
* ug_words: Fix name of VMS synonym for -gnatw.z (SIZE_ALIGNMENT, |
| 9041 |
not SIZE_ALIGN) and -gnatw.Z (NOSIZE_ALIGNMENT, not NOSIZE_ALIGN). |
| 9042 |
* vms_data.ads: Add missing spaces in VMS synonyms for -gnatw.z / |
| 9043 |
-gnatw.Z. |
| 9044 |
|
| 9045 |
2014-07-16 Robert Dewar <[email protected]> |
| 9046 |
|
| 9047 |
* sem_ch3.adb, sem_prag.adb, sem_util.adb, sem_res.adb, sem_ch13.adb: |
| 9048 |
Minor code reorganization (use Is_Access_Type, not in Access_Kind). |
| 9049 |
* exp_ch3.adb: Minor code reorganization, use Is_Access_Type, |
| 9050 |
not in Access_Kind. |
| 9051 |
* par-ch4.adb (At_Start_Of_Attribute): New function |
| 9052 |
(P_Simple_Expression): Better msg for bad attribute prefix. |
| 9053 |
* scans.ads: Minor reformatting. |
| 9054 |
|
| 9055 |
2014-07-16 Ed Schonberg <[email protected]> |
| 9056 |
|
| 9057 |
* sem_attr.adb (Resolve_Attribute, case 'Update): If choice is a |
| 9058 |
static constant, check that in belongs to the corresponding index |
| 9059 |
subtype, to produce the proer warning when expansion is disabled. |
| 9060 |
|
| 9061 |
2014-07-16 Robert Dewar <[email protected]> |
| 9062 |
|
| 9063 |
* freeze.adb (Freeze_Entity): Warn on incompatible size/alignment. |
| 9064 |
* gnat_ugn.texi: Document -gnatw.z and -gnatw.Z. |
| 9065 |
* ug_words: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for -gnatw.z/-gnatw.Z |
| 9066 |
* usage.adb: Add lines for -gnatw.z/-gnatw.Z. |
| 9067 |
* vms_data.ads: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for |
| 9068 |
-gnatw.z/-gnatw.Z |
| 9069 |
* warnsw.adb: Set Warn_On_Size_Alignment appropriately. |
| 9070 |
* warnsw.ads (Warn_On_Size_Alignment): New flag Minor |
| 9071 |
reformatting. |
| 9072 |
|
| 9073 |
2014-07-16 Hristian Kirtchev <[email protected]> |
| 9074 |
|
| 9075 |
* exp_ch7.adb (Process_Declarations): Reinstate the check on |
| 9076 |
a hook object to ensure that the related transient declaration |
| 9077 |
is finalizable. |
| 9078 |
* exp_util.adb (Is_Aliased): Do not consider expresison with |
| 9079 |
actions as a special context. |
| 9080 |
(Requires_Cleanup_Actions): Reinstate the check on a hook object to |
| 9081 |
ensure that the related transient declaration is finalizable. |
| 9082 |
|
| 9083 |
2014-07-16 Robert Dewar <[email protected]> |
| 9084 |
|
| 9085 |
* checks.ads, checks.adb (Allocation_Checks_Suppressed): New function. |
| 9086 |
* snames.ads-tmpl: Add Allocation_Check to list of check names. |
| 9087 |
* types.ads: Add Allocation_Check to list of check names. |
| 9088 |
|
| 9089 |
2014-07-16 Thomas Quinot <[email protected]> |
| 9090 |
|
| 9091 |
* sem_util.adb (Enter_Name): replace bogus test for presence of |
| 9092 |
Corresponding_Remote_Type with correct test on Ekind. |
| 9093 |
* sem_res.adb (Valid_Conversion): ditto; also clarify validity |
| 9094 |
of calls to Corresponding_ Remote_Type (documentation fix). |
| 9095 |
|
| 9096 |
2014-07-16 Robert Dewar <[email protected]> |
| 9097 |
|
| 9098 |
* gnat_rm.texi: Document illegal case of Unrestricted_Access. |
| 9099 |
* sem_attr.adb (Analyze_Access_Attribute): Set_Non_Aliased_Prefix |
| 9100 |
where it applies. |
| 9101 |
(Resolve_Attribute, case Access): Flag illegal Unrestricted_Access use. |
| 9102 |
* sinfo.ads, sinfo.adb (Non_Aliased_Prefix): New flag. |
| 9103 |
|
| 9104 |
2014-07-16 Robert Dewar <[email protected]> |
| 9105 |
|
| 9106 |
* gnat_ugn.texi: Document binder switch -Ra. |
| 9107 |
* gnatbind.adb (List_Closure_Display): Implement -Ra switch |
| 9108 |
(List_Closure_All). |
| 9109 |
* opt.ads (List_Closure_All): New switch. |
| 9110 |
* switch-b.adb (Scan_Binder_Switches): Recognize -Ra to set |
| 9111 |
List_Closure_All. |
| 9112 |
|
| 9113 |
2014-07-16 Ben Brosgol <[email protected]> |
| 9114 |
|
| 9115 |
* gnat_rm.texi: Minor edits, to make case consistent in names |
| 9116 |
of types and fields. |
| 9117 |
|
| 9118 |
2014-07-16 Robert Dewar <[email protected]> |
| 9119 |
|
| 9120 |
* gnat_rm.texi: Document erroneous mixing of thin pointers and |
| 9121 |
unrestricted access |
| 9122 |
* gnat_ugn.texi: Add note on size of access types about thin |
| 9123 |
pointers and the use of attribute Unrestricted_Access. |
| 9124 |
|
| 9125 |
2014-07-16 Ed Schonberg <[email protected]> |
| 9126 |
|
| 9127 |
* a-cbdlli.ads, a-cbdlli.adb, a-cbhama.ads, a-cbhama.adb, |
| 9128 |
* a-cbhase.ads, a-cbhase.adb, a-cborma.ads, a-cborma.adb, |
| 9129 |
* a-cborse.ads, a-cborse.adb, a-cobove.ads a-cobove.adb: Add Control |
| 9130 |
machinery to detect tampering on bounded vectors. |
| 9131 |
|
| 9132 |
2014-07-16 Robert Dewar <[email protected]> |
| 9133 |
|
| 9134 |
* gnat_rm.texi: Document that leading/trailing asterisks are |
| 9135 |
now implied for the pattern match string for pragma Warnings |
| 9136 |
and Warning_As_Error. |
| 9137 |
* sem_prag.adb (Acquire_Warning_Match_String): New procedure. |
| 9138 |
(Analyze_Pragma, case Warning_As_Error): Call |
| 9139 |
Acquire_Warning_Match_String. |
| 9140 |
(Analyze_Pragma, case Warnings): Call Acquire_Warning_Match_String. |
| 9141 |
|
| 9142 |
2014-07-16 Bob Duff <[email protected]> |
| 9143 |
|
| 9144 |
* gnat_ugn.texi: Document need for project file |
| 9145 |
for --incremental switch for gnat2xml. |
| 9146 |
|
| 9147 |
2014-07-16 Robert Dewar <[email protected]> |
| 9148 |
|
| 9149 |
* gnat_rm.texi: Fix example of non-packable components in packed |
| 9150 |
records section. |
| 9151 |
|
| 9152 |
2014-07-16 Robert Dewar <[email protected]> |
| 9153 |
|
| 9154 |
* s-tpoben.adb, s-tasren.adb, s-interr.adb, s-interr-hwint.adb, |
| 9155 |
s-shasto.adb, s-interr-vms.adb, s-interr-sigaction.adb: Avoid use of |
| 9156 |
upper case in exception messages. |
| 9157 |
|
| 9158 |
2014-07-16 Robert Dewar <[email protected]> |
| 9159 |
|
| 9160 |
* snames.ads-tmpl, sem_attr.adb, exp_attr.adb: Same_Storage attribute |
| 9161 |
is renamed Has_Same_Storage. |
| 9162 |
* gnat_rm.texi: Document missing SPARK pragmas and attributes. |
| 9163 |
* sem_prag.adb: Minor comment fix (use LOCAL_NAME in syntax |
| 9164 |
descriptions). |
| 9165 |
|
| 9166 |
2014-07-16 Robert Dewar <[email protected]> |
| 9167 |
|
| 9168 |
* exp_util.adb, sem_attr.adb, exp_ch4.adb, a-cohase.ads, |
| 9169 |
a-coinho-shared.adb, a-coinho-shared.ads: Minor reformatting. |
| 9170 |
|
| 9171 |
2014-07-16 Robert Dewar <[email protected]> |
| 9172 |
|
| 9173 |
* gnat_ugn.texi: Add note that integrated |
| 9174 |
preprocessing cannot be applied to configuration pragma files. |
| 9175 |
|
| 9176 |
2014-07-16 Yannick Moy <[email protected]> |
| 9177 |
|
| 9178 |
* sem_attr.adb (Analyze_Attribute/cases Pred |
| 9179 |
and Succ): Always enable range check on fixed-point types if |
| 9180 |
not suppressed for the type. |
| 9181 |
|
| 9182 |
2014-07-16 Hristian Kirtchev <[email protected]> |
| 9183 |
|
| 9184 |
* sem_util.adb (State_Has_Enabled_Property): |
| 9185 |
Account for an external property denoted by an others choice. |
| 9186 |
|
| 9187 |
2014-07-16 Hristian Kirtchev <[email protected]> |
| 9188 |
|
| 9189 |
* exp_ch4.ads, exp_ch4.adb (Find_Hook_Context): Relocated to Exp_Util. |
| 9190 |
* exp_ch7.adb (Process_Declarations): There is no need to check |
| 9191 |
that a transient object being hooked is controlled as it would |
| 9192 |
not have been hooked in the first place. |
| 9193 |
* exp_ch9.adb Remove with and use clause for Exp_Ch4. |
| 9194 |
* exp_util.adb (Find_Hook_Context): Relocated from Exp_Ch4. |
| 9195 |
(Is_Aliased): A renaming of a transient controlled object is |
| 9196 |
not considered aliasing when it occurs within an expression |
| 9197 |
with actions. |
| 9198 |
(Requires_Cleanup_Actions): There is no need to |
| 9199 |
check that a transient object being hooked is controlled as it |
| 9200 |
would not have been hooked in the first place. |
| 9201 |
* exp_util.ads (Find_Hook_Context): Relocated from Exp_Ch4. |
| 9202 |
|
| 9203 |
2014-07-16 Hristian Kirtchev <[email protected]> |
| 9204 |
|
| 9205 |
* sem_ch13.adb (Insert_After_SPARK_Mode): Moved to |
| 9206 |
the outer level of routine Analyze_Aspect_Specifications. Ensure |
| 9207 |
that the corresponding pragmas of aspects Initial_Condition and |
| 9208 |
Initializes are inserted after pragma SPARK_Mode. |
| 9209 |
|
| 9210 |
2014-07-16 Ed Schonberg <[email protected]> |
| 9211 |
|
| 9212 |
* sem_attr.adb (Analyze_Attribute, case 'Update): Handle |
| 9213 |
properly a choice list with more than one choice, where each |
| 9214 |
is an aggregate denoting a sequence of array indices for a |
| 9215 |
multidimentional array. For SPARK use. |
| 9216 |
|
| 9217 |
2014-07-16 Vadim Godunko <[email protected]> |
| 9218 |
|
| 9219 |
* a-coinho-shared.adb (Adjust): Create |
| 9220 |
copy of internal shared object and element when source container |
| 9221 |
is locked. |
| 9222 |
(Copy): Likewise. |
| 9223 |
(Query_Element): Likewise. |
| 9224 |
(Update_Element): Likewise. |
| 9225 |
(Constant_Reference): Likewise. Raise Constraint_Error on attempt |
| 9226 |
to get reference for empty holder. |
| 9227 |
(Reference): Likewise. |
| 9228 |
|
| 9229 |
2014-07-16 Thomas Quinot <[email protected]> |
| 9230 |
|
| 9231 |
* exp_ch4.adb (Find_Hook_Context): New subprogram, extracted |
| 9232 |
from Process_Transient_Oject. |
| 9233 |
* exp_ch4.ads: Ditto. |
| 9234 |
* exp_ch9.adb (Build_Class_Wide_Master): Insert the _master |
| 9235 |
declaration as an action on the topmost enclosing expression, |
| 9236 |
not on a possibly conditional subexpreession. |
| 9237 |
|
| 9238 |
2014-07-16 Vadim Godunko <[email protected]> |
| 9239 |
|
| 9240 |
* a-coinho.adb, a-coinho-shared.adb, a-coinho.ads, a-coinho-shared.ads: |
| 9241 |
Fix parameter mode of Update_Element. |
| 9242 |
|
| 9243 |
2014-07-16 Robert Dewar <[email protected]> |
| 9244 |
|
| 9245 |
* a-coinho.adb, a-coinho-shared.adb, a-coinho-shared.ads: Minor |
| 9246 |
reformatting. |
| 9247 |
|
| 9248 |
2014-07-16 Ed Schonberg <[email protected]> |
| 9249 |
|
| 9250 |
* a-cohase.ads: Type Iterator must be controlled, so that the |
| 9251 |
tampering bit is properly set through an iteration. |
| 9252 |
* a-cohase.adb: Add Finalize operation for type Iterator. |
| 9253 |
|
| 9254 |
2014-07-16 Ed Schonberg <[email protected]> |
| 9255 |
|
| 9256 |
* a-coinho-shared.adb, a-coinho-shared.ads: Proper structures for |
| 9257 |
tampering checks. |
| 9258 |
|
| 9259 |
2014-07-16 Ed Schonberg <[email protected]> |
| 9260 |
|
| 9261 |
* a-coinho-shared.adb: Fix spurious accessibility check. |
| 9262 |
|
| 9263 |
2014-06-15 Jan Hubicka <[email protected]> |
| 9264 |
|
| 9265 |
* gcc-interface/utils.c (process_attributes): Use set_decl_tls_model. |
| 9266 |
|
| 9267 |
2014-06-14 Bernd Edlinger <[email protected]> |
| 9268 |
|
| 9269 |
PR ada/61505 |
| 9270 |
* gnat_rm.texi: Fix errors with makeinfo 5.1. |
| 9271 |
|
| 9272 |
2014-06-14 Arnaud Charlet <[email protected]> |
| 9273 |
|
| 9274 |
PR ada/61505 |
| 9275 |
* gnat_rm.texi: Attempt to fix error with makeinfo 5.1. |
| 9276 |
|
| 9277 |
2014-06-13 Yannick Moy <[email protected]> |
| 9278 |
|
| 9279 |
* exp_attr.adb: Fix typo in comment. |
| 9280 |
* gnat1drv.adb (Adjust_Global_Switches): Force float overflow |
| 9281 |
checking in GNATprove_Mode. |
| 9282 |
|
| 9283 |
2014-06-13 Ed Schonberg <[email protected]> |
| 9284 |
|
| 9285 |
* a-coinho-shared.adb, a-coinho-shared.ads: Update shared version. |
| 9286 |
|
| 9287 |
2014-06-13 Robert Dewar <[email protected]> |
| 9288 |
|
| 9289 |
* sem_ch3.adb, sem_ch9.adb, a-coinho.adb, a-coinho.ads: Minor |
| 9290 |
reformatting. |
| 9291 |
|
| 9292 |
2014-06-13 Hristian Kirtchev <[email protected]> |
| 9293 |
|
| 9294 |
* sem_prag.adb (Analyze_Pragma): Add local |
| 9295 |
variable Missing_Parentheses. Emit an error when a state |
| 9296 |
declaration with options appears without parentheses. Add a |
| 9297 |
guard to prevent a bogus error when a state declaration may be |
| 9298 |
interpreted as an option if a previous declaration with options |
| 9299 |
was not parenthesized. |
| 9300 |
|
| 9301 |
2014-06-13 Robert Dewar <[email protected]> |
| 9302 |
|
| 9303 |
* checks.adb: Validate_Alignment_Check_Warnings: New procedure |
| 9304 |
(Apply_Address_Clause_Check): Make Aligment_Warnings table entry. |
| 9305 |
* checks.ads (Alignment_Warnings_Record): New type. |
| 9306 |
(Alignment_Warnings): New table |
| 9307 |
(Validate_Alignment_Check_Warnings): New procedure. |
| 9308 |
* errout.adb (Delete_Warning_And_Continuations): New procedure |
| 9309 |
(Error_Msg_Internal): Set Warning_Msg (Delete_Warning): Handle |
| 9310 |
Warnings_Treated_As_Errors (Finalize): Minor reformatting |
| 9311 |
* errout.ads (Warning_Msg): New variable |
| 9312 |
(Delete_Warning_And_Continuations): New procedure |
| 9313 |
* erroutc.adb (Delete_Msg): Handle Warnings_Treated_As_Errors count. |
| 9314 |
* gnat1drv.adb (Post_Compilation_Validation_Checks): New procedure. |
| 9315 |
|
| 9316 |
2014-06-13 Ed Schonberg <[email protected]> |
| 9317 |
|
| 9318 |
* a-coinho.adb, a-coinho.ads: Add Reference machinery. |
| 9319 |
|
| 9320 |
2014-06-13 Hristian Kirtchev <[email protected]> |
| 9321 |
|
| 9322 |
* errout.adb (SPARK_Msg_N): New routine. |
| 9323 |
(SPARK_Msg_NE): New routine. |
| 9324 |
* errout.ads Add a section on SPARK-related error routines. |
| 9325 |
(SPARK_Msg_N): New routine. |
| 9326 |
(SPARK_Msg_NE): New routine. |
| 9327 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Ensure that |
| 9328 |
pragma Abstract_State is always inserted after SPARK_Mode. |
| 9329 |
(Insert_After_SPARK_Mode): New routine. |
| 9330 |
* sem_prag.adb (Analyze_Abstract_State, |
| 9331 |
Analyze_Constituent, Analyze_External_Property, |
| 9332 |
Analyze_External_Property_In_Decl_Part, Analyze_Global_Item, |
| 9333 |
Analyze_Global_List, Analyze_Initialization_Item, |
| 9334 |
Analyze_Initialization_Item_With_Inputs, Analyze_Input_Item, |
| 9335 |
Analyze_Input_List, Analyze_Input_Output, Analyze_Part_Of, |
| 9336 |
Analyze_Pragma, Analyze_Refined_Depends_In_Decl_Part, |
| 9337 |
Analyze_Refined_Global_In_Decl_Part, |
| 9338 |
Analyze_Refined_State_In_Decl_Part, Analyze_Refinement_Clause, |
| 9339 |
Check_Aspect_Specification_Order, Check_Constituent_Usage, |
| 9340 |
Check_Declaration_Order, Check_Dependency_Clause, |
| 9341 |
Check_Duplicate_Mode, Check_Duplicate_Option, |
| 9342 |
Check_Duplicate_Property, Check_External_Properties, |
| 9343 |
Check_External_Property, Check_Function_Return, |
| 9344 |
Check_Matching_Constituent, Check_Matching_State, |
| 9345 |
Check_Mode_Restriction_In_Enclosing_Context, |
| 9346 |
Check_Mode_Restriction_In_Function, Check_Refined_Global_Item, |
| 9347 |
Check_State_And_Constituent_Use, Create_Or_Modify_Clause, |
| 9348 |
Has_Extra_Parentheses, Inconsistent_Mode_Error, |
| 9349 |
Match_Error, Propagate_Part_Of, Report_Extra_Clauses, |
| 9350 |
Report_Extra_Constituents_In_List, Report_Extra_Inputs, |
| 9351 |
Report_Unrefined_States, Report_Unused_Constituents, |
| 9352 |
Report_Unused_States, Role_Error, Usage_Error): |
| 9353 |
Convert Error_Msg_XXX calls to SPARK_Msg_XXX calls |
| 9354 |
to report semantic errors only when SPARK_Mode is on. |
| 9355 |
(Analyze_Depends_In_Decl_Part): Do not check the syntax of |
| 9356 |
pragma Depends explicitly, this is now done by the analysis. |
| 9357 |
(Analyze_Global_In_Decl_List): Do not check the syntax of |
| 9358 |
pragma Global explicitly, this is now done by the analysis. |
| 9359 |
(Analyze_Initializes_In_Decl_Part): Do not check the syntax of |
| 9360 |
pragma Initializes explicitly, this is now done by the analysis. |
| 9361 |
(Analyze_Part_Of): Do not check the syntax of the encapsulating |
| 9362 |
state, this is now done by the analysis. |
| 9363 |
(Analyze_Pragma): Do |
| 9364 |
not check the syntax of a state declaration, this is now done |
| 9365 |
by the analysis. |
| 9366 |
(Analyze_Refined_Depends_In_Decl_Part): Do not |
| 9367 |
check the syntax of pragma Refined_Depends explicitly, this is now |
| 9368 |
done by the analysis. |
| 9369 |
(Analyze_Refined_Global_In_Decl_Part): Do |
| 9370 |
not check the syntax of pragma Refined_Global explicitly, this is |
| 9371 |
now done by the analysis. |
| 9372 |
(Analyze_Refined_State_In_Decl_Part): |
| 9373 |
Do not check the syntax of pragma Refined_State explicitly, this |
| 9374 |
is now done by the analysis. |
| 9375 |
(Check_Dependence_List_Syntax): Removed. |
| 9376 |
(Check_Global_List_Syntax): Removed. |
| 9377 |
(Check_Initialization_List_Syntax): Removed. |
| 9378 |
(Check_Item_Syntax): Removed. |
| 9379 |
(Check_Missing_Part_Of): Do not consider items from an instance. |
| 9380 |
(Check_Refinement_List_Syntax): Removed. |
| 9381 |
(Check_State_Declaration_Syntax): Removed. |
| 9382 |
(Collect_Global_List): Do not raise Program_Error when the input is |
| 9383 |
malformed. |
| 9384 |
(Process_Global_List): Do not raise Program_Error when the input |
| 9385 |
is malformed. |
| 9386 |
* sem_ch13.adb: Minor reformatting. |
| 9387 |
|
| 9388 |
2014-06-13 Ed Schonberg <[email protected]> |
| 9389 |
|
| 9390 |
* sem_ch3.adb (Find_Type_Name): Diagnose a private type completion |
| 9391 |
that is an interface definition with an interface list. |
| 9392 |
(Process_Full_View): Move error message on missmatched interfaces |
| 9393 |
between views to the declaration of full view, for clarity. |
| 9394 |
* sem_ch9.adb (Check_Interfaces): Move error message to full view, |
| 9395 |
for clarity. |
| 9396 |
|
| 9397 |
2014-06-13 Robert Dewar <[email protected]> |
| 9398 |
|
| 9399 |
* exp_attr.adb (Expand_N_Attribute_Reference, case Pred/Succ): Change |
| 9400 |
reason to Overflow. |
| 9401 |
|
| 9402 |
2014-06-13 Robert Dewar <[email protected]> |
| 9403 |
|
| 9404 |
* makeutl.adb: Minor reformatting. |
| 9405 |
|
| 9406 |
2014-06-13 Gail Schenker <[email protected]> |
| 9407 |
|
| 9408 |
* debug.adb, sem_eval.adb (Why_Not_Static): Remove temporary code and |
| 9409 |
associated flag (d.z), no longer needed. |
| 9410 |
|
| 9411 |
2014-06-13 Ed Schonberg <[email protected]> |
| 9412 |
|
| 9413 |
* sem_ch13.adb (Analyze_Aspect_Specifications): For Import and |
| 9414 |
Export aspects, do not check whether a corresponding Convention |
| 9415 |
aspect has been specified. Convention is optional in Ada2012, |
| 9416 |
and defaults to Convention_Ada. |
| 9417 |
|
| 9418 |
2014-06-13 Eric Botcazou <[email protected]> |
| 9419 |
|
| 9420 |
* checks.adb (Apply_Address_Clause_Check): Only issue the new |
| 9421 |
warning if the propagation warning is issued. |
| 9422 |
|
| 9423 |
2014-06-13 Thomas Quinot <[email protected]> |
| 9424 |
|
| 9425 |
* exp_ch4.adb: Minor reformatting. |
| 9426 |
|
| 9427 |
2014-06-13 Robert Dewar <[email protected]> |
| 9428 |
|
| 9429 |
* exp_attr.adb (Expand_N_Attribute_Reference, case Pred): |
| 9430 |
Handle float range check case (Expand_N_Attribute_Reference, |
| 9431 |
case Succ): Handle float range check case. |
| 9432 |
* sem_attr.adb (Analyze_Attribute, case Pred/Succ): Handle float |
| 9433 |
range check case. |
| 9434 |
|
| 9435 |
2014-06-13 Vincent Celier <[email protected]> |
| 9436 |
|
| 9437 |
* makeutl.ads (Compute_Builder_Switches): Change name of |
| 9438 |
parameter Root_Environment to Env. |
| 9439 |
* prj-conf.adb (Check_Switches): Call Locate_Runtime with the |
| 9440 |
Env parameter of procedure Get_Or_Create_Configuration_File. |
| 9441 |
(Locate_Runtime): Call Find_Rts_In_Path with the Project_Path |
| 9442 |
of new parameter Env. |
| 9443 |
* prj-conf.ads (Locate_Runtime): New parameter Env of type |
| 9444 |
Prj.Tree.Environment. |
| 9445 |
|
| 9446 |
2014-06-13 Robert Dewar <[email protected]> |
| 9447 |
|
| 9448 |
* gnat_rm.texi: Minor comment clarification for Check_Float_Overflow. |
| 9449 |
|
| 9450 |
2014-06-13 Robert Dewar <[email protected]> |
| 9451 |
|
| 9452 |
* exp_attr.adb, exp_ch9.adb, lib-writ.adb, g-comlin.adb: Minor |
| 9453 |
reformatting. |
| 9454 |
* sem_attr.adb: Minor code reformatting and simplification. |
| 9455 |
* checks.adb: Fix minor typo. |
| 9456 |
|
| 9457 |
2014-06-13 Emmanuel Briot <[email protected]> |
| 9458 |
|
| 9459 |
* g-comlin.adb (Get_Argument): fix expansion |
| 9460 |
of command line arguments (e.g. "*.adb") when using a custom |
| 9461 |
parser. The parser was not passed to the recursive call, and |
| 9462 |
thus we were trying to do the expansion on the default command |
| 9463 |
line parser. |
| 9464 |
|
| 9465 |
2014-06-13 Thomas Quinot <[email protected]> |
| 9466 |
|
| 9467 |
* exp_ch9.adb: Minor reformatting. |
| 9468 |
|
| 9469 |
2014-06-13 Ed Schonberg <[email protected]> |
| 9470 |
|
| 9471 |
* exp_attr.adb (Expand_N_Attribute_Reference, case 'Old): |
| 9472 |
To determine whether the attribute should be expanded, examine |
| 9473 |
whether the enclosing postcondition pragma is to be checked, |
| 9474 |
rather than using the internal flag Assertions_Enabled. |
| 9475 |
|
| 9476 |
2014-06-13 Ben Brosgol <[email protected]> |
| 9477 |
|
| 9478 |
* gnat_rm.texi: Minor fixes. |
| 9479 |
* gnat_ugn.texi: Added a missing "@itemize". |
| 9480 |
|
| 9481 |
2014-06-13 Robert Dewar <[email protected]> |
| 9482 |
|
| 9483 |
* debug.adb: Remove -gnatd.1 flag documentation. |
| 9484 |
* layout.adb (Layout_Type): Remove special handling of size |
| 9485 |
for anonymous access type. |
| 9486 |
* sem_ch3.adb (Replace_Type): Remove special handling of size |
| 9487 |
for anonymous access type. |
| 9488 |
|
| 9489 |
2014-06-13 Robert Dewar <[email protected]> |
| 9490 |
|
| 9491 |
* debug.adb: Document debug flag -gnatd.1. |
| 9492 |
* layout.adb (Layout_Type): Size change for anonymous access |
| 9493 |
types under -gnatd.1. |
| 9494 |
* sem_ch3.adb (Replace_Type): Size change for anonymous access |
| 9495 |
types under -gnatd.1. |
| 9496 |
|
| 9497 |
2014-06-13 Robert Dewar <[email protected]> |
| 9498 |
|
| 9499 |
* layout.adb (Layout_Type): Anonymous access types designating |
| 9500 |
unconstrained arrays are always thin pointers. |
| 9501 |
* sem_ch3.adb (Replace_Type): Anonymous access types designating |
| 9502 |
unconstrained arrays are always thin pointers. |
| 9503 |
|
| 9504 |
2014-06-13 Ed Schonberg <[email protected]> |
| 9505 |
|
| 9506 |
* sem_attr.adb (Analyze_Attribute): Use Check_Parameterless_Call |
| 9507 |
to resolve the prefix of an attribute that is an entity name |
| 9508 |
and may be a parameterless call. Minor code reorganization. |
| 9509 |
|
| 9510 |
2014-06-13 Robert Dewar <[email protected]> |
| 9511 |
|
| 9512 |
* lib.ads, lib.adb, lib-writ.adb, lib-load.adb (Is_Compiler_Unit): |
| 9513 |
Removed. |
| 9514 |
* opt.ads (Compiler_Unit): New flag. |
| 9515 |
* par-ch5.adb (Test_Statement_Required): Call Check_Compiler_Unit |
| 9516 |
for null statement sequence (not allowed in compiler unit). |
| 9517 |
* par-prag.adb (Prag): Handle Compiler_Unit[_Warning] during |
| 9518 |
parsing. |
| 9519 |
* restrict.ads, restrict.adb (Check_Compiler_Unit): New version and new |
| 9520 |
calling sequence. |
| 9521 |
* sem_ch11.adb, sem_ch3.adb, sem_ch4.adb: New calling sequence for |
| 9522 |
Check_Compiler_Unit. |
| 9523 |
* sem_ch6.adb (Analyze_Extended_Return_Statement): Call |
| 9524 |
Check_Compiler_Unit (this construct is not allowed in compiler |
| 9525 |
units). |
| 9526 |
* sem_prag.adb (Analyze_Pragma, case Compiler_Unit[_Warning]): |
| 9527 |
Set Opt.Compiler_Unit. |
| 9528 |
|
| 9529 |
2014-06-13 Geert Bosch <[email protected]> |
| 9530 |
|
| 9531 |
* gnat_rm.texi, s-tasinf-solaris.ads, sem_prag.adb, gnat_ugn.texi, |
| 9532 |
s-tasinf-mingw.ads, s-tasinf.ads, s-tasinf-linux.ads, |
| 9533 |
s-tasinf-vxworks.ads: Make Task_Info pragma and package obsolescent. |
| 9534 |
|
| 9535 |
2014-06-13 Robert Dewar <[email protected]> |
| 9536 |
|
| 9537 |
* s-tasini.adb, s-tarest.adb, s-taprob.adb: Minor reformatting. |
| 9538 |
|
| 9539 |
2014-06-13 Hristian Kirtchev <[email protected]> |
| 9540 |
|
| 9541 |
* freeze.adb (Freeze_Entity): Remove the check concerning volatile |
| 9542 |
types in SPARK as it is poorly placed and poorly formulated. The |
| 9543 |
check was flagging ALL volatile entities as illegal in SPARK. |
| 9544 |
* sem_prag.adb (Process_Atomic_Shared_Volatile): Flag volatile |
| 9545 |
types as illegal in SPARK. |
| 9546 |
|
| 9547 |
2014-06-13 Robert Dewar <[email protected]> |
| 9548 |
|
| 9549 |
* sem_cat.adb: Minor reformatting. |
| 9550 |
|
| 9551 |
2014-06-13 Yannick Moy <[email protected]> |
| 9552 |
|
| 9553 |
* sem_prag.adb (Analyze_Pragma/Post_Class): Fix typo. |
| 9554 |
|
| 9555 |
2014-06-13 Arnaud Charlet <[email protected]> |
| 9556 |
|
| 9557 |
* gnat_rm.texi: Add detail on SPARK_05 restriction. |
| 9558 |
|
| 9559 |
2014-06-13 Bob Duff <[email protected]> |
| 9560 |
|
| 9561 |
* s-solita.adb (Get_Sec_Stack_Addr, Init_Tasking_Soft_Links): |
| 9562 |
Add assertions requiring the secondary stack to be initialized. |
| 9563 |
* s-solita.ads (Init_Tasking_Soft_Links): Comment. |
| 9564 |
* s-taprob.adb, s-tarest.adb, s-tasini.adb (elab code): Make sure the |
| 9565 |
secondary stack is initialized before calling Init_Tasking_Soft_Links, |
| 9566 |
by adding pragmas Elaborate_Body. |
| 9567 |
|
| 9568 |
2014-06-13 Thomas Quinot <[email protected]> |
| 9569 |
|
| 9570 |
* sem_ch13.adb (Analyze_Stream_TSS_Definition): Remove temporary |
| 9571 |
kludge disabling new legality check. |
| 9572 |
|
| 9573 |
2014-06-13 Hristian Kirtchev <[email protected]> |
| 9574 |
|
| 9575 |
* freeze.adb (Freeze_Record_Type): Remove checks related to SPARK |
| 9576 |
volatile types. |
| 9577 |
(Freeze_Type): Volatile types are now illegal in SPARK. |
| 9578 |
|
| 9579 |
2014-06-13 Robert Dewar <[email protected]> |
| 9580 |
|
| 9581 |
* aspects.ads, aspects.adb: Add aspect Thread_Local_Storage. |
| 9582 |
* gnat_rm.texi: Document aspect Thread_Local_Storage. |
| 9583 |
|
| 9584 |
2014-06-13 Ed Schonberg <[email protected]> |
| 9585 |
|
| 9586 |
* sem_cat.adb (Validate_Static_Object_Name): A constant whose |
| 9587 |
value is a temporary that renames an aggregate is legal in a |
| 9588 |
preelaborated unit. Illegalities, if any will be detected in |
| 9589 |
the aggregate components. |
| 9590 |
|
| 9591 |
2014-06-13 Ed Schonberg <[email protected]> |
| 9592 |
|
| 9593 |
* einfo.ads: Minor reformatting an comment expansion. |
| 9594 |
|
| 9595 |
2014-06-13 Robert Dewar <[email protected]> |
| 9596 |
|
| 9597 |
* back_end.ads, back_end.adb: Make_Id, Make_SC, Set_RND are moved to |
| 9598 |
Tbuild. |
| 9599 |
* tbuild.ads, tbuild.adb: Make_Id, Make_SC, Set_RND are moved here from |
| 9600 |
Back_End. |
| 9601 |
* gnat1drv.adb: Make_Id, Make_SC, Set_RND are moved to Tbuild |
| 9602 |
* sem_warn.adb: Minor reformatting. |
| 9603 |
|
| 9604 |
2014-06-13 Doug Rupp <[email protected]> |
| 9605 |
|
| 9606 |
* adaint.c (__gnat_open_new_temp) [VMS]: Open binary |
| 9607 |
files with rfm=udf. |
| 9608 |
|
| 9609 |
2014-06-13 Yannick Moy <[email protected]> |
| 9610 |
|
| 9611 |
* sem_warn.adb (Check_Unset_References): Take |
| 9612 |
case of Refined_Post into account in Within_Postcondition check. |
| 9613 |
|
| 9614 |
2014-06-13 Hristian Kirtchev <[email protected]> |
| 9615 |
|
| 9616 |
* freeze.adb (Freeze_Record_Type): Volatile types are not allowed in |
| 9617 |
SPARK. |
| 9618 |
|
| 9619 |
2014-06-13 Yannick Moy <[email protected]> |
| 9620 |
|
| 9621 |
* sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Import, |
| 9622 |
Aspect_Export): Consider that variables may be set outside the program. |
| 9623 |
|
| 9624 |
2014-06-13 Robert Dewar <[email protected]> |
| 9625 |
|
| 9626 |
* back_end.adb (Make_Id): New function. |
| 9627 |
(Make_SC): New function. |
| 9628 |
(Set_RND): New procedure. |
| 9629 |
* back_end.ads (Make_Id): New function. |
| 9630 |
(Make_SC): New function. |
| 9631 |
(Set_RND): New procedure. |
| 9632 |
* einfo.ads: Minor comment updates. |
| 9633 |
* frontend.adb: Move Atree.Initialize call to Gnat1drv. |
| 9634 |
* gnat1drv.adb (Gnat1drv): New calling sequence for |
| 9635 |
Get_Target_Parameters. |
| 9636 |
(Gnat1drv): Move Atree.Initialize here from Frontend. |
| 9637 |
* targparm.adb (Get_Target_Parameters): New calling |
| 9638 |
sequence (Get_Target_Parameters): Handle pragma Restriction |
| 9639 |
(No_Dependence,..) |
| 9640 |
* targparm.ads (Get_Target_Parameters): New calling sequence. |
| 9641 |
|
| 9642 |
2014-06-13 Gary Dismukes <[email protected]> |
| 9643 |
|
| 9644 |
* sem_prag.adb (Process_Import_Or_Interface): Exit the homonym |
| 9645 |
loop if the pragma does not come from source, so that an implicit |
| 9646 |
pragma Import only applies to the first declaration, avoiding |
| 9647 |
possible conflicts with earlier explicit and implicit declarations |
| 9648 |
due to multiple Provide_Shift_Operators pragmas. |
| 9649 |
(Set_Imported): Remove previous fix that bypassed pragma duplication |
| 9650 |
error. |
| 9651 |
* gnat_rm.texi: Change 'equivalent' to 'similar' in description |
| 9652 |
of Provide_Shift_Operators. |
| 9653 |
|
| 9654 |
2014-06-12 Jan Hubicka <[email protected]> |
| 9655 |
|
| 9656 |
* gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass |
| 9657 |
string pointer directly to set_decl_section_name. |
| 9658 |
|
| 9659 |
2014-06-11 Robert Dewar <[email protected]> |
| 9660 |
|
| 9661 |
* sem_ch13.adb: Minor reformatting. |
| 9662 |
|
| 9663 |
2014-06-11 Hristian Kirtchev <[email protected]> |
| 9664 |
|
| 9665 |
* sem_prag.adb (Check_Clause_Syntax): Add new |
| 9666 |
local variable Outputs. Account for the case where multiple |
| 9667 |
output items appear as an aggregate. |
| 9668 |
|
| 9669 |
2014-06-11 Robert Dewar <[email protected]> |
| 9670 |
|
| 9671 |
* sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning |
| 9672 |
with ?j? not ??. |
| 9673 |
|
| 9674 |
2014-06-11 Ed Schonberg <[email protected]> |
| 9675 |
|
| 9676 |
* einfo.ads: Minor reformatting. |
| 9677 |
|
| 9678 |
2014-06-11 Hristian Kirtchev <[email protected]> |
| 9679 |
|
| 9680 |
* a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add |
| 9681 |
new variable First_Node. Update the position after all insertions have |
| 9682 |
taken place to First_Node. |
| 9683 |
|
| 9684 |
2014-06-11 Robert Dewar <[email protected]> |
| 9685 |
|
| 9686 |
* debug.adb: Remove debug flag -gnatd.1, no longer needed. |
| 9687 |
* layout.adb (Layout_Type): Remove test of -gnatd.1. |
| 9688 |
|
| 9689 |
2014-06-11 Robert Dewar <[email protected]> |
| 9690 |
|
| 9691 |
* sem_ch13.adb: Minor reformatting. |
| 9692 |
|
| 9693 |
2014-06-11 Hristian Kirtchev <[email protected]> |
| 9694 |
|
| 9695 |
* sem_prag.adb (Check_Clause_Syntax): Add new |
| 9696 |
local variable Outputs. Account for the case where multiple |
| 9697 |
output items appear as an aggregate. |
| 9698 |
|
| 9699 |
2014-06-11 Robert Dewar <[email protected]> |
| 9700 |
|
| 9701 |
* sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning |
| 9702 |
with ?j? not ??. |
| 9703 |
|
| 9704 |
2014-06-11 Ed Schonberg <[email protected]> |
| 9705 |
|
| 9706 |
* einfo.ads: Minor reformatting. |
| 9707 |
|
| 9708 |
2014-06-11 Hristian Kirtchev <[email protected]> |
| 9709 |
|
| 9710 |
* a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add |
| 9711 |
new variable First_Node. Update the position after all insertions have |
| 9712 |
taken place to First_Node. |
| 9713 |
|
| 9714 |
2014-06-11 Robert Dewar <[email protected]> |
| 9715 |
|
| 9716 |
* debug.adb: Remove debug flag -gnatd.1, no longer needed. |
| 9717 |
* layout.adb (Layout_Type): Remove test of -gnatd.1. |
| 9718 |
|
| 9719 |
2014-06-11 Thomas Quinot <[email protected]> |
| 9720 |
|
| 9721 |
* freeze.ads: Minor reformatting. |
| 9722 |
* checks.adb (Determine_Range): Do not attempt to determine |
| 9723 |
the range of a deferred constant whose full view has not been |
| 9724 |
seen yet. |
| 9725 |
* sem_res.adb (Resolve): Remove undesirable guard against |
| 9726 |
resolving expressions from expression functions. |
| 9727 |
|
| 9728 |
2014-06-11 Robert Dewar <[email protected]> |
| 9729 |
|
| 9730 |
* debug.adb (Debug_Flag_Dot_1): Set to enable fix for anonymous |
| 9731 |
access types. |
| 9732 |
* layout.adb (Layout_Type): Make anonymous access types for |
| 9733 |
subprogram formal types and return types always thin. For now |
| 9734 |
only enabled if -gnatd.1 set. |
| 9735 |
|
| 9736 |
2014-06-11 Ed Schonberg <[email protected]> |
| 9737 |
|
| 9738 |
* sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality |
| 9739 |
rule for stream attributes of interface types (RM 13.13.2 (38/3)): |
| 9740 |
subprogram must be a null procedure. |
| 9741 |
|
| 9742 |
2014-06-11 Hristian Kirtchev <[email protected]> |
| 9743 |
|
| 9744 |
* sem_prag.adb (Analyze_Input_Item): Allow formal |
| 9745 |
parameters to appear as input_items in an initialization_list |
| 9746 |
of pragma Initializes. Encapsulation now applies to states and |
| 9747 |
variables only (as it should). Add RM references to key errors. |
| 9748 |
* sem_prag.adb (Set_Imported): Suppress errors |
| 9749 |
about preceding Imports when the pragma does not come from source, |
| 9750 |
which can happen through use of pragma Provide_Shift_Operators. |
| 9751 |
|
| 9752 |
2014-06-11 Thomas Quinot <[email protected]> |
| 9753 |
|
| 9754 |
* sem_ch3.adb: Minor reformatting. |
| 9755 |
* einfo.ads (Full_View): Minor comment update. |
| 9756 |
|
| 9757 |
2014-06-11 Robert Dewar <[email protected]> |
| 9758 |
|
| 9759 |
* einfo.adb (Is_Independent): New flag. |
| 9760 |
* einfo.ads (Is_Independent): New flag. |
| 9761 |
(Has_Independent_Components): Clean up and fix comments. |
| 9762 |
* sem_prag.adb (Fix_Error): Deal with changing argument |
| 9763 |
[of] to entity [for]. |
| 9764 |
(Analyze_Pragma, case Independent): Set Is_Independent flag |
| 9765 |
(Analyze_Pragma, case Independent_Components): Set Is_Independent flag |
| 9766 |
in all components of specified record. |
| 9767 |
|
| 9768 |
2014-06-11 Thomas Quinot <[email protected]> |
| 9769 |
|
| 9770 |
* sem_ch12.adb (Analyze_Formal_Decimal_Fixed_Point_Type): |
| 9771 |
Set proper Etype on bounds of dummy type created for analysis |
| 9772 |
of the generic. |
| 9773 |
|
| 9774 |
2014-06-11 Robert Dewar <[email protected]> |
| 9775 |
|
| 9776 |
* debug.adb: Minor comment fix (add missing section of dot |
| 9777 |
numeric flags). |
| 9778 |
|
| 9779 |
2014-06-11 Robert Dewar <[email protected]> |
| 9780 |
|
| 9781 |
* gnat_rm.texi, switch-c.adb, sem_prag.adb, a-tgdico.ads, par-prag.adb, |
| 9782 |
opt.ads, a-finali.ads, snames.ads-tmpl: Remove all traces of |
| 9783 |
pragma/aspects Pure_05 Pure_12 Preelaborate_05. |
| 9784 |
* errout.adb (Output_Messages): Avoid duplicate output for |
| 9785 |
library level instance. |
| 9786 |
* sem_elab.adb (Is_Call_Of_Generic_Formal): Moved to outer level |
| 9787 |
(Check_Elab_Call): Add call to Is_Call_Of_Generic_Formal |
| 9788 |
* exp_ch4.adb (Expand_N_Op_Expon): New interface for Exp_Modular. |
| 9789 |
* s-expmod.ads, s-expmod.adb (Exp_Modular): Change interface to |
| 9790 |
accomodate largest modulus value. |
| 9791 |
* gnat_ugn.texi: Minor updates. |
| 9792 |
|
| 9793 |
2014-06-11 Ed Schonberg <[email protected]> |
| 9794 |
|
| 9795 |
* sem_ch12.adb (Instantiate_Package_Body): Do not attempt to |
| 9796 |
load body of generic package or its parent, if body is optional |
| 9797 |
and the unit does not require a body. |
| 9798 |
|
| 9799 |
2014-06-11 Robert Dewar <[email protected]> |
| 9800 |
|
| 9801 |
* gnat_rm.texi: Document System.Unsigned_Types. |
| 9802 |
* impunit.adb: System.Unsigned_Types (s-unstyp.ads) is user accessible. |
| 9803 |
* s-unstyp.ads: Update comments (this is now user available unit). |
| 9804 |
|
| 9805 |
2014-06-11 Robert Dewar <[email protected]> |
| 9806 |
|
| 9807 |
* make.adb, sem_res.adb: Minor reformatting. |
| 9808 |
|
| 9809 |
2014-06-11 Thomas Quinot <[email protected]> |
| 9810 |
|
| 9811 |
* a-astaco.ads, a-tags.ads, s-excdeb.ads, a-tgdico.ads, a-stmaco.ads, |
| 9812 |
a-except-2005.ads, s-except.ads, a-taside.ads, a-dynpri.ads, |
| 9813 |
a-chahan.ads, a-sytaco.ads, s-stalib.ads, a-strmap.ads: Change pragmas |
| 9814 |
Preelaborate_05 to just Preelaborate in runtime units, and similarly |
| 9815 |
change Pure_05 to just Pure. |
| 9816 |
|
| 9817 |
2014-06-11 Ed Schonberg <[email protected]> |
| 9818 |
|
| 9819 |
* sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not attempt |
| 9820 |
analysis if error has been posted on subprogram body. |
| 9821 |
|
| 9822 |
2014-06-11 Ed Schonberg <[email protected]> |
| 9823 |
|
| 9824 |
* sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality |
| 9825 |
rule given in RM 13.1 (8/1) for operational attributes to stream |
| 9826 |
attributes: the attribute must apply to a first subtype. Fixes |
| 9827 |
missing errors in ACATS test bdd2004. |
| 9828 |
|
| 9829 |
2014-06-11 Robert Dewar <[email protected]> |
| 9830 |
|
| 9831 |
* exp_ch3.adb (Build_Record_Init_Proc): Don't build for variant |
| 9832 |
record type if restriction No_Implicit_Conditionals is active. |
| 9833 |
(Expand_N_Object_Declaration): Don't allow default initialization |
| 9834 |
for variant record type if restriction No_Implicit_Condition is active. |
| 9835 |
(Build_Variant_Record_Equality): Don't build for variant |
| 9836 |
record type if restriction No_Implicit_Conditionals is active. |
| 9837 |
* exp_ch4.adb (Expand_N_Op_Eq): Error if variant records with |
| 9838 |
No_Implicit_Conditionals. |
| 9839 |
* sem_aux.ads, sem_aux.adb (Has_Variant_Part): New function. |
| 9840 |
|
| 9841 |
2014-06-11 Ramon Fernandez <[email protected]> |
| 9842 |
|
| 9843 |
* i-cstrin.ads: Update comments. |
| 9844 |
|
| 9845 |
2014-06-11 Ed Schonberg <[email protected]> |
| 9846 |
|
| 9847 |
* sem_res.adb (Resolve_Selected_Component): Handle properly a |
| 9848 |
selected component whose prefix is overloaded, when none of the |
| 9849 |
interpretations matches the expected type. |
| 9850 |
|
| 9851 |
2014-06-11 Bob Duff <[email protected]> |
| 9852 |
|
| 9853 |
* make.adb (Wait_For_Available_Slot): Give a more |
| 9854 |
informative error message; if the ALI file is not found, print |
| 9855 |
the full path of what it's looking for. |
| 9856 |
|
| 9857 |
2014-06-11 Sergey Rybin <[email protected] frybin> |
| 9858 |
|
| 9859 |
* gnat_ugn.texi, vms_data.ads: add description of gnatstub -W<par> |
| 9860 |
option to specify the result file encoding. |
| 9861 |
|
| 9862 |
2014-06-11 Robert Dewar <[email protected]> |
| 9863 |
|
| 9864 |
* errout.ads, sem_ch12.adb: Minor reformatting. |
| 9865 |
* debug.adb, erroutc.adb: Remove -gnatd.q debug switch. |
| 9866 |
* lib-xref.adb: Minor reformatting. |
| 9867 |
* restrict.adb: Minor code reorganization (put routines in |
| 9868 |
alpha order). |
| 9869 |
|
| 9870 |
2014-06-11 Yannick Moy <[email protected]> |
| 9871 |
|
| 9872 |
* einfo.ads: Minor typo in comment |
| 9873 |
|
| 9874 |
2014-06-11 Ed Schonberg <[email protected]> |
| 9875 |
|
| 9876 |
* sinfo.ads, sinfo.adb: New attribute Uninitialized_Variable, for |
| 9877 |
formal private types and private type extensions, to indicate |
| 9878 |
variable in a generic unit whose uninitialized use suggest that |
| 9879 |
actual type should be fully initialized. |
| 9880 |
Needs_Initialized_Actual: removed, functionaity replaced by |
| 9881 |
the above. |
| 9882 |
* lib-xref.adb (Generate_Reference): Generate a reference for |
| 9883 |
variables of a formal type when the unit is not the main unit, |
| 9884 |
to enable appropriate warnings in an instance. |
| 9885 |
* sem_ch12.adb (Check_Ininialized_Type): Improve warning on use |
| 9886 |
of variable in a generic unit that suggests that actual type |
| 9887 |
should be full initialized. |
| 9888 |
* sem_warn.adb; (May_Need_Initialized_Actual): Make into procedure |
| 9889 |
and do not emot warning, which now only appears in an instance. |
| 9890 |
|
| 9891 |
2014-06-11 Eric Botcazou <[email protected]> |
| 9892 |
|
| 9893 |
* gnat_ugn.texi: Fix minor typo. |
| 9894 |
|
| 9895 |
2014-06-11 Hristian Kirtchev <[email protected]> |
| 9896 |
|
| 9897 |
* sem_ch3.adb Add with and use clause for Sem_Ch10. |
| 9898 |
(Analyze_Declarations): Code reformatting. Analyze the contract |
| 9899 |
of a subprogram body stub at the end of the declarative region. |
| 9900 |
* sem_ch6.adb (Analyze_Subprogram_Body_Contract): Spec_Id is |
| 9901 |
now a variable. Do not process the body if its contract is not |
| 9902 |
available. Account for subprogram body stubs when extracting |
| 9903 |
the corresponding spec. |
| 9904 |
* sem_ch6.ads (Analyze_Subprogram_Contract): Update the comment |
| 9905 |
on usage. |
| 9906 |
* sem_ch10.ads, sem_ch10.adb (Analyze_Subprogram_Body_Stub_Contract): |
| 9907 |
New routine. |
| 9908 |
* sem_prag.adb (Analyze_Depends_In_Decl_Part): |
| 9909 |
Account for subprogram body stubs when extracting the |
| 9910 |
corresponding spec. |
| 9911 |
(Analyze_Global_In_Decl_List): |
| 9912 |
Account for subprogram body stubs when extracting the |
| 9913 |
corresponding spec. |
| 9914 |
(Analyze_Refined_Depends_In_Decl_Part): |
| 9915 |
Use Find_Related_Subprogram_Or_Body to retrieve the declaration |
| 9916 |
of the related body. Spec_Is now a variable. Account for |
| 9917 |
subprogram body stubs when extracting the corresponding spec. |
| 9918 |
(Analyze_Refined_Global_In_Decl_Part): Use |
| 9919 |
Find_Related_Subprogram_Or_Body to retrieve the declaration |
| 9920 |
of the related body. Spec_Is now a variable. Account for |
| 9921 |
subprogram body stubs when extracting the corresponding spec. |
| 9922 |
(Collect_Subprogram_Inputs_Output): Account for subprogram body |
| 9923 |
stubs when extracting the corresponding spec. |
| 9924 |
|
| 9925 |
2014-06-11 Vincent Celier <[email protected]> |
| 9926 |
|
| 9927 |
* gnatcmd.adb (Process_Link): Do not invoke gnatlink with |
| 9928 |
-lgnarl or -lgnat. |
| 9929 |
|
| 9930 |
2014-06-11 Robert Dewar <[email protected]> |
| 9931 |
|
| 9932 |
* debug.adb: Add debug flag -gnatd.q. |
| 9933 |
* erroutc.adb (Prescan_Message): Bomb if untagged warning with |
| 9934 |
-gnatd.q set. |
| 9935 |
* styleg.adb (Check_Xtra_Parens): Message should be a style |
| 9936 |
message. |
| 9937 |
* sem_aggr.adb, sem_ch3.adb, exp_ch9.adb, checks.adb, sem_prag.adb, |
| 9938 |
par-endh.adb, eval_fat.adb, freeze.adb, sem_util.adb, sem_attr.adb, |
| 9939 |
sem_elab.adb, sem_ch6.adb, sem_warn.adb, sem_cat.adb, |
| 9940 |
sem_ch13.adb, lib-xref.adb: Add remaining warning tags. |
| 9941 |
|
| 9942 |
2014-06-11 Ben Brosgol <[email protected]> |
| 9943 |
|
| 9944 |
* gnat_rm.texi: Revised chapter on Implementation Defined |
| 9945 |
Characteristics. |
| 9946 |
|
| 9947 |
2014-06-11 Geert Bosch <[email protected]> |
| 9948 |
|
| 9949 |
* s-exctab.adb: avoid race conditions in exception registration. |
| 9950 |
|
| 9951 |
2014-06-11 Robert Dewar <[email protected]> |
| 9952 |
|
| 9953 |
* errout.adb (Warn_Insertion): New function. |
| 9954 |
(Error_Msg): Use Warn_Insertion and Prescan_Message. |
| 9955 |
(Error_Msg_Internal): Set Info field of error object. |
| 9956 |
(Error_Msg_NEL): Use Prescan_Message. |
| 9957 |
(Set_Msg_Text): Don't store info: at start of message. |
| 9958 |
(Skip_Msg_Insertion_Warning): New name for Set_Msg_Insertion_Warning. |
| 9959 |
(Skip_Msg_Insertion_Warning): Now just skips warning insertion. |
| 9960 |
* errout.ads: Document new ?$? and >$> insertion sequences |
| 9961 |
Document use of "(style)" and "info: " |
| 9962 |
* erroutc.adb (dmsg): Print several missing fields |
| 9963 |
(Get_Warning_Tag): Handle -gnatel case (?$?) (Output_Msg_Text): |
| 9964 |
Deal with new tagging of info messages |
| 9965 |
* erroutc.ads: Is_Info_Msg: New global (Error_Msg_Object): |
| 9966 |
Add field Info (Prescan_Message): New procedure, this procedure |
| 9967 |
replaces the old Test_Style_Warning_Serious_Unconditional_Msg |
| 9968 |
* errutil.adb, exp_util.adb, par-ch7.adb, sem_ch13.adb, sem_ch7.adb, |
| 9969 |
sem_elab.adb: Follow new rules for info message (info belongs |
| 9970 |
only at the start of a message, and only in the first message, |
| 9971 |
not in any of the continuations). |
| 9972 |
* gnat_ugn.texi: Document full set of warning tags. |
| 9973 |
|
| 9974 |
2014-06-11 Gary Dismukes <[email protected]> |
| 9975 |
|
| 9976 |
* sem_util.adb: Minor typo fix. |
| 9977 |
|
| 9978 |
2014-06-11 Ed Schonberg <[email protected]> |
| 9979 |
|
| 9980 |
* sem_warn.adb (Check_References): Do not emit spurious warnings |
| 9981 |
on uninitialzed variable of a formal private type if variable |
| 9982 |
is not read. |
| 9983 |
|
| 9984 |
2014-06-09 Jan Hubicka <[email protected]> |
| 9985 |
|
| 9986 |
* gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use |
| 9987 |
set_decl_section_name accessor. |
| 9988 |
|
| 9989 |
2014-05-22 Thomas Schwinge <[email protected]> |
| 9990 |
|
| 9991 |
* gcc-interface/utils.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6) |
| 9992 |
(DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8) |
| 9993 |
(DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes. |
| 9994 |
|
| 9995 |
2014-05-21 Robert Dewar <[email protected]> |
| 9996 |
|
| 9997 |
* layout.adb: Minor reformatting. |
| 9998 |
* sem_prag.adb (Analyze_Pragma, case Inspection_Point): Call |
| 9999 |
dummy procedure ip. |
| 10000 |
|
| 10001 |
2014-05-21 Robert Dewar <[email protected]> |
| 10002 |
|
| 10003 |
* restrict.ads (Implementation_Restriction): Add entry for |
| 10004 |
No_Fixed_IO. |
| 10005 |
* rtsfind.ads: Add entries for Fixed_IO and Decimal_IO in |
| 10006 |
Ada.[Wide_[Wide_]Text_IO. |
| 10007 |
* s-rident.ads (Restriction_Id): Add entry for No_Fixed_IO. |
| 10008 |
* sem_attr.adb (Analyze_Attribute): Disallow fixed point types |
| 10009 |
for Img, Image, Value, Wide_Image, Wide_Value, Wide_Wide_Image, |
| 10010 |
Wide_Wide_Value if restriction No_Fixed_IO is set. |
| 10011 |
* sem_util.adb (Set_Entity_Checks): Check restriction No_Fixed_IO. |
| 10012 |
|
| 10013 |
2014-05-21 Robert Dewar <[email protected]> |
| 10014 |
|
| 10015 |
* gnatcmd.adb: Minor error msg changes (no upper case letter |
| 10016 |
at start). |
| 10017 |
* sem_ch12.adb, sem_ch5.adb, sem_res.adb, sem_util.adb: Minor |
| 10018 |
reformatting. |
| 10019 |
|
| 10020 |
2014-05-21 Robert Dewar <[email protected]> |
| 10021 |
|
| 10022 |
* debug.adb: Debug flag -gnatd.G inhibits static elab tracing |
| 10023 |
via generic formals. |
| 10024 |
* sem_elab.adb (Is_Call_Of_Generic_Formal): Return False if |
| 10025 |
-gnatd.G is set. |
| 10026 |
|
| 10027 |
2014-05-21 Thomas Quinot <[email protected]> |
| 10028 |
|
| 10029 |
* exp_pakd.adb (Revert_Storage_Order): Renamed from Byte_Swap to |
| 10030 |
more accurately describe that this subprogram needs to come into |
| 10031 |
play also in cases where no byte swapping is involved, because |
| 10032 |
it also takes care of some required shifts (left-justification |
| 10033 |
of values). |
| 10034 |
|
| 10035 |
2014-05-21 Thomas Quinot <[email protected]> |
| 10036 |
|
| 10037 |
* freeze.adb (Check_Component_Storage_Order): Indicate whether |
| 10038 |
a Scalar_Storage_Order attribute definition is present for the |
| 10039 |
component's type. |
| 10040 |
(Freeze_Record_Type): Suppress junk warnings |
| 10041 |
about purportedly junk Bit_Order / Scalar_Storage_Order attribute |
| 10042 |
definitions. |
| 10043 |
|
| 10044 |
2014-05-21 Robert Dewar <[email protected]> |
| 10045 |
|
| 10046 |
* sem_ch8.adb (Analyze_Subprogram_Renaming): Put back call |
| 10047 |
to Kill_Elaboration_Checks. |
| 10048 |
|
| 10049 |
2014-05-21 Gary Dismukes <[email protected]> |
| 10050 |
|
| 10051 |
* layout.adb (Assoc_Add): Suppress the optimization of the (E |
| 10052 |
- C1) + C2 case, when the expression type is unsigned and C1 < |
| 10053 |
C2, to avoid creating a negative literal when folding. |
| 10054 |
|
| 10055 |
2014-05-21 Hristian Kirtchev <[email protected]> |
| 10056 |
|
| 10057 |
* freeze.adb (Freeze_Record_Type): Update the use of |
| 10058 |
Is_SPARK_Volatile. |
| 10059 |
* sem_ch3.adb (Analyze_Object_Contract): Update the use of |
| 10060 |
Is_SPARK_Volatile. |
| 10061 |
(Process_Discriminants): Update the use of Is_SPARK_Volatile. |
| 10062 |
* sem_ch5.adb (Analyze_Iterator_Specification): Update the use |
| 10063 |
of Is_SPARK_Volatile. |
| 10064 |
(Analyze_Loop_Parameter_Specification): |
| 10065 |
Update the use of Is_SPARK_Volatile. |
| 10066 |
* sem_ch6.adb (Process_Formals): Catch an illegal use of an IN |
| 10067 |
formal parameter when its type is volatile. |
| 10068 |
* sem_prag.adb (Analyze_Global_Item): Update the use of |
| 10069 |
Is_SPARK_Volatile. |
| 10070 |
* sem_res.adb (Resolve_Entity_Name): Correct the guard which |
| 10071 |
determines whether an entity is a volatile source SPARK object. |
| 10072 |
* sem_util.adb (Has_Enabled_Property): Accout for external |
| 10073 |
properties being set on objects other than abstract states |
| 10074 |
and variables. An example would be a formal parameter. |
| 10075 |
(Is_SPARK_Volatile): New routine. |
| 10076 |
(Is_SPARK_Volatile_Object): |
| 10077 |
Remove the entity-specific tests. Call routine Is_SPARK_Volatile |
| 10078 |
when checking entities and/or types. |
| 10079 |
* sem_util.ads (Is_SPARK_Volatile): New routine. |
| 10080 |
|
| 10081 |
2014-05-21 Robert Dewar <[email protected]> |
| 10082 |
|
| 10083 |
* sem_warn.adb: Minor fix to warning messages (use ?? instead |
| 10084 |
of ?). |
| 10085 |
|
| 10086 |
2014-05-21 Vincent Celier <[email protected]> |
| 10087 |
|
| 10088 |
* gnatcmd.adb (GNATCmd): For platforms other than VMS, recognize |
| 10089 |
switch --version and --help. |
| 10090 |
|
| 10091 |
2014-05-21 Robert Dewar <[email protected]> |
| 10092 |
|
| 10093 |
* sem_elab.adb (Is_Call_Of_Generic_Formal): New function. |
| 10094 |
|
| 10095 |
2014-05-21 Ed Schonberg <[email protected]> |
| 10096 |
|
| 10097 |
* sem_ch5.adb (Analyze_Iterator_Specification): Set type of |
| 10098 |
iterator variable when the domain of iteration is a formal |
| 10099 |
container and this is an element iterator. |
| 10100 |
|
| 10101 |
2014-05-21 Bob Duff <[email protected]> |
| 10102 |
|
| 10103 |
* sem_ch12.adb: Minor reformatting. |
| 10104 |
|
| 10105 |
2014-05-21 Robert Dewar <[email protected]> |
| 10106 |
|
| 10107 |
* sinfo.ads, sem_ch12.adb, sem_warn.adb: Minor reformatting. |
| 10108 |
|
| 10109 |
2014-05-21 Robert Dewar <[email protected]> |
| 10110 |
|
| 10111 |
* sem_elab.adb: Minor reformatting. |
| 10112 |
* s-taprop.ads: Minor comment fix. |
| 10113 |
* sem_ch8.adb (Analyze_Subprogram_Renaming): Remove call to |
| 10114 |
Kill_Elaboration_Checks. |
| 10115 |
* errout.adb, erroutc.adb: Minor reformatting. |
| 10116 |
|
| 10117 |
2014-05-21 Thomas Quinot <[email protected]> |
| 10118 |
|
| 10119 |
* exp_pakd.adb (Byte_Swap): Handle the case of a sub-byte |
| 10120 |
component. No byte swapping occurs, but this procedure also takes |
| 10121 |
care of appropriately justifying the argument. |
| 10122 |
|
| 10123 |
2014-05-21 Hristian Kirtchev <[email protected]> |
| 10124 |
|
| 10125 |
* sem_ch6.adb: sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub): |
| 10126 |
New routine. |
| 10127 |
(Analyze_Subprogram_Body_Helper): Move the |
| 10128 |
analysis of aspect specifications and the processing of the |
| 10129 |
subprogram body contract after inlining has taken place. |
| 10130 |
(Diagnose_Misplaced_Aspect_Specifications): Removed. |
| 10131 |
|
| 10132 |
2014-05-21 Javier Miranda <[email protected]> |
| 10133 |
|
| 10134 |
* sem_ch3.adb (Build_Derived_Record_Type): Revert previous change. |
| 10135 |
|
| 10136 |
2014-05-21 Robert Dewar <[email protected]> |
| 10137 |
|
| 10138 |
* sem_eval.ads, sem_eval.adb (Why_Not_Static): Messages are not |
| 10139 |
continuations any more. |
| 10140 |
|
| 10141 |
2014-05-21 Ed Schonberg <[email protected]> |
| 10142 |
|
| 10143 |
* sinfo.ads, sinfo.adb: New flag Needs_Initialized_Actual, |
| 10144 |
present in formal_Private_Definitions and on private extension |
| 10145 |
declarations of a formal derived type. Set when the use of the |
| 10146 |
formal type in a generic suggests that the actual should be a |
| 10147 |
fully initialized type. |
| 10148 |
* sem_warn.adb (May_Need_Initialized_Actual): new subprogram |
| 10149 |
to indicate that an entity of a generic type has default |
| 10150 |
initialization, and that the corresponing actual type in any |
| 10151 |
subsequent instantiation should be fully initialized. |
| 10152 |
* sem_ch12.adb (Check_Initialized_Type): new subprogram, |
| 10153 |
to emit a warning if the actual for a generic type on which |
| 10154 |
Needs_Initialized_Actual is set is not a fully initialized type. |
| 10155 |
|
| 10156 |
2014-05-21 Robert Dewar <[email protected]> |
| 10157 |
|
| 10158 |
* sem_elab.adb, prj-dect.adb: Minor reformatting. |
| 10159 |
|
| 10160 |
2014-05-21 Robert Dewar <[email protected]> |
| 10161 |
|
| 10162 |
* erroutc.ads: Minor comment addition. |
| 10163 |
|
| 10164 |
2014-05-21 Robert Dewar <[email protected]> |
| 10165 |
|
| 10166 |
* errout.ads: Add documentation for use of >*> tag. |
| 10167 |
* restrict.adb: Make sure we use >*> tag for restriction warnings. |
| 10168 |
|
| 10169 |
2014-05-21 Gary Dismukes <[email protected]> |
| 10170 |
|
| 10171 |
* debug.adb: Add case of illegal overriding_indicator for a |
| 10172 |
protected subprogram body to description of -gnatd.E switch. |
| 10173 |
* sem_ch6.adb (Verify_Overriding_Indicator): Issue error message |
| 10174 |
for cases of giving overriding_indicators on protected subprogram |
| 10175 |
bodies, but change this to a warning if -gnatd.E is enabled. No |
| 10176 |
longer give a style warning about missing indicators on protected |
| 10177 |
subprogram bodies. |
| 10178 |
|
| 10179 |
2014-05-21 Robert Dewar <[email protected]> |
| 10180 |
|
| 10181 |
* prj.ads, sem_ch12.adb, prj.adb, exp_pakd.adb, |
| 10182 |
sem_elab.ads: Minor reformatting. |
| 10183 |
* erroutc.adb, erroutc.ads (Warning_Specifically_Suppressed): Make Tag |
| 10184 |
parameter optional. |
| 10185 |
|
| 10186 |
2014-05-21 Pascal Obry <[email protected]> |
| 10187 |
|
| 10188 |
* prj-dect.adb: Allow package Install in aggregate project. |
| 10189 |
|
| 10190 |
2014-05-21 Robert Dewar <[email protected]> |
| 10191 |
|
| 10192 |
* sem_ch13.adb (Analyze_Aspect_Specifications): |
| 10193 |
Insert_Delayed_Pragma is now used for the case of Attach_Handler. |
| 10194 |
* sem_prag.adb: Minor comment improvements. |
| 10195 |
|
| 10196 |
2014-05-21 Ed Schonberg <[email protected]> |
| 10197 |
|
| 10198 |
* sem_ch12.adb (Install_Body): When checking whether freezing of |
| 10199 |
instantiation must be delayed, verify that the common enclosing |
| 10200 |
subprogram to generic and instance is in fact an overloadable |
| 10201 |
entity. |
| 10202 |
|
| 10203 |
2014-05-21 Vincent Celier <[email protected]> |
| 10204 |
|
| 10205 |
* makeutl.adb (Mains.Complete_Mains.Do_Complete): Look for all |
| 10206 |
mains with the same name and fail if there is more than one. |
| 10207 |
* prj.ads, prj.adb (Find_All_Sources): New function |
| 10208 |
|
| 10209 |
2014-05-21 Robert Dewar <[email protected]> |
| 10210 |
|
| 10211 |
* sem_ch13.adb: Minor reformatting. |
| 10212 |
* lib-xref-spark_specific.adb, sem_util.adb: Minor reformatting. |
| 10213 |
* sem_prag.adb: Minor error message improvement. |
| 10214 |
|
| 10215 |
2014-05-21 Yannick Moy <[email protected]> |
| 10216 |
|
| 10217 |
* lib-xref-spark_specific.adb, lib-xref.ads, lib-xref.adb |
| 10218 |
(Enclosing_Subprogram_Or_Package): Only return a library-level |
| 10219 |
package. |
| 10220 |
|
| 10221 |
2014-05-21 Javier Miranda <[email protected]> |
| 10222 |
|
| 10223 |
* sem_ch3.adb (Build_Derived_Record_Type): Initialize Parent_Base |
| 10224 |
to the full view of the parent type when processing a derived type |
| 10225 |
which is the full view of a private type not defined in a generic |
| 10226 |
unit which is derived from a private type with discriminants |
| 10227 |
whose full view is a non-tagged record type. |
| 10228 |
|
| 10229 |
2014-05-21 Javier Miranda <[email protected]> |
| 10230 |
|
| 10231 |
* exp_ch4.adb (Expand_Allocator_Expression.Apply_Accessibility_Check): |
| 10232 |
Complete previous patch. |
| 10233 |
|
| 10234 |
2014-05-21 Thomas Quinot <[email protected]> |
| 10235 |
|
| 10236 |
PR ada/9535 |
| 10237 |
* g-socket.adb (Read and Write for Datagram_Socket_Stream_Type): |
| 10238 |
Provide a behaviour more consistent with underlying datagram |
| 10239 |
socket: do not attempt to loop over Send_Socket/Receive_Socket |
| 10240 |
iterating along the buffer. |
| 10241 |
|
| 10242 |
2014-05-21 Hristian Kirtchev <[email protected]> |
| 10243 |
|
| 10244 |
* freeze.adb (Freeze_Record_Type): Ensure that a discriminated |
| 10245 |
or a tagged type is not labelled as volatile. Ensure that a |
| 10246 |
non-volatile type has no volatile components. |
| 10247 |
* sem_ch3.adb (Analyze_Object_Contract): Add local constant |
| 10248 |
Obj_Typ. Code reformatting. Ensure that a discriminated or |
| 10249 |
tagged object is not labelled as volatile. |
| 10250 |
* sem_prag.adb (Process_Atomic_Shared_Volatile): Ensure that |
| 10251 |
pragma Volatile applies to a full type declaration or an object |
| 10252 |
declaration when SPARK mode is on. |
| 10253 |
|
| 10254 |
2014-05-21 Sergey Rybin <[email protected] frybin> |
| 10255 |
|
| 10256 |
* gnat_ugn.texi: For ASIS tools, reword the paragraph about |
| 10257 |
providing options needed for compiling the argument source for |
| 10258 |
the situation when a project file can be used as a tool parameter. |
| 10259 |
|
| 10260 |
2014-05-21 Gary Dismukes <[email protected]> |
| 10261 |
|
| 10262 |
* gnat_rm.texi: Minor typo fix. |
| 10263 |
|
| 10264 |
2014-05-21 Robert Dewar <[email protected]> |
| 10265 |
|
| 10266 |
* stand.adb (Tree_Read): Read missing entities. |
| 10267 |
(Tree_Write): Write missing entities. |
| 10268 |
|
| 10269 |
2014-05-21 Ben Brosgol <[email protected]> |
| 10270 |
|
| 10271 |
* gnat_ugn.texi: Wordsmithing edits to Coupling Metrics Control |
| 10272 |
section in gnatmetric chapter. |
| 10273 |
|
| 10274 |
2014-05-21 Robert Dewar <[email protected]> |
| 10275 |
|
| 10276 |
* exp_ch6.adb (Expand_Actuals): Spec moved here, since not used |
| 10277 |
outside Exp_Ch6 (Expand_Actuals): Deal with proper insertion of |
| 10278 |
post-call copy write back (see detailed comment in code). |
| 10279 |
* exp_ch6.ads (Expand_Actuals): Moved to body, not used outside |
| 10280 |
Exp_Ch6. |
| 10281 |
* tbuild.ads: Minor reformatting. |
| 10282 |
|
| 10283 |
2014-05-21 Robert Dewar <[email protected]> |
| 10284 |
|
| 10285 |
* stand.ads: Add warning about adding new entities and |
| 10286 |
Tree_Read/Tree_Write. |
| 10287 |
|
| 10288 |
2014-05-21 Robert Dewar <[email protected]> |
| 10289 |
|
| 10290 |
* sem_util.adb (Set_Entity_With_Checks): Don't complain about |
| 10291 |
references to restricted entities within the units in which they |
| 10292 |
are declared. |
| 10293 |
|
| 10294 |
2014-05-21 Robert Dewar <[email protected]> |
| 10295 |
|
| 10296 |
* gnat1drv.adb (Check_Bad_Body): Use Source_File_Is_Body to |
| 10297 |
simplify the needed test, and also deal with failure to catch |
| 10298 |
situations with non-standard names. |
| 10299 |
* sinput-l.ads, sinput-l.adb (Source_File_Is_No_Body): New function |
| 10300 |
(Source_File_Is_Subunit): Removed, no longer used. |
| 10301 |
|
| 10302 |
2014-05-21 Javier Miranda <[email protected]> |
| 10303 |
|
| 10304 |
* exp_ch4.adb |
| 10305 |
(Expand_Allocator_Expression.Apply_Accessibility_Check): for a |
| 10306 |
renaming of an access to interface object there is no need to |
| 10307 |
generate extra code to reference the tag. |
| 10308 |
|
| 10309 |
2014-05-21 Robert Dewar <[email protected]> |
| 10310 |
|
| 10311 |
* errout.adb, erroutc.adb, erroutc.ads: Allow warning tag in pragma |
| 10312 |
Warnings (Off, string). |
| 10313 |
|
| 10314 |
2014-05-21 Robert Dewar <[email protected]> |
| 10315 |
|
| 10316 |
* osint.adb: Fix three error messages to say invalid instead |
| 10317 |
of erroneous. |
| 10318 |
* par-ch4.adb, exp_aggr.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb, |
| 10319 |
sem_ch5.adb, sem_ch6.adb, sem_ch7.adb, sem_dim.adb, sem_res.adb, |
| 10320 |
sem_util.adb, sem_util.ads: Fix incorrect use of erroneous in comments. |
| 10321 |
|
| 10322 |
2014-05-21 Ed Schonberg <[email protected]> |
| 10323 |
|
| 10324 |
* freeze.adb, sem_ch13.adb, sem_ch13.ads, sem_ch9.adb, |
| 10325 |
sem_ch9.ads: Move discriminant manipulation routines for analysis of |
| 10326 |
aspect specifications from sem_ch9 to sem_ch13, where they belong. |
| 10327 |
|
| 10328 |
2014-05-21 Robert Dewar <[email protected]> |
| 10329 |
|
| 10330 |
* gnat_ugn.texi: Clearly document -gnatw.g (GNAT warnings). |
| 10331 |
Clearly document -gnatyg (GNAT style switches). |
| 10332 |
* usage.adb: Add line line for -gnatw.g (GNAT warnings) More |
| 10333 |
detail for line for -gnatyg (GNAT style switches) -gnatw.d/D is |
| 10334 |
available for VMS after all. |
| 10335 |
* warnsw.adb: Reorganize to eliminate duplicated code |
| 10336 |
(Restore_Warnings): Add a couple of missing entries |
| 10337 |
(Save_Warnings): Add a couple of missing entries. |
| 10338 |
* warnsw.ads: Add missing entries to Warning_Record (not clear |
| 10339 |
what the impact is). |
| 10340 |
|
| 10341 |
2014-05-21 Robert Dewar <[email protected]> |
| 10342 |
|
| 10343 |
* errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction |
| 10344 |
warning) case. |
| 10345 |
* errout.ads: Document ?*? (restriction warning) insertion. |
| 10346 |
* erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction |
| 10347 |
warning) case. |
| 10348 |
* erroutc.ads: Document use of * for restriction warning tag. |
| 10349 |
* restrict.adb (Restriction_Msg): Tag with ?*? instead of ??. |
| 10350 |
|
| 10351 |
2014-05-21 Ed Schonberg <[email protected]> |
| 10352 |
|
| 10353 |
* sem_ch9.adb (Push_Scope_And_Install_Discriminants): Do not |
| 10354 |
make discriminants immediately visible when analyzing an aspect |
| 10355 |
of a subtype declaration. |
| 10356 |
(Uninstall_Discriminants): Do not apply to the entity in a |
| 10357 |
subtype declaration. |
| 10358 |
|
| 10359 |
2014-05-21 Ed Schonberg <[email protected]> |
| 10360 |
|
| 10361 |
* sem_util.adb: Code clean up. |
| 10362 |
|
| 10363 |
2014-05-21 Eric Botcazou <[email protected]> |
| 10364 |
|
| 10365 |
* gnat_ugn.texi: Document -Werror. |
| 10366 |
|
| 10367 |
2014-05-21 Bob Duff <[email protected]> |
| 10368 |
|
| 10369 |
* sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): |
| 10370 |
This was returning False if the Object is a constant view. Fix |
| 10371 |
it to return True in that case, because it might be a view of |
| 10372 |
a variable. |
| 10373 |
(Has_Discriminant_Dependent_Constraint): Fix latent |
| 10374 |
bug; this function was crashing when passed a discriminant. |
| 10375 |
|
| 10376 |
2014-05-21 Robert Dewar <[email protected]> |
| 10377 |
|
| 10378 |
* gnat_ugn.texi: Remove misplaced section that is now obsolete. |
| 10379 |
* s-arit64.adb: Minor code reorganization. |
| 10380 |
* sem_prag.adb: Minor comment fix (remove erroneous use of the |
| 10381 |
term erroneous). |
| 10382 |
|
| 10383 |
2014-05-21 Robert Dewar <[email protected]> |
| 10384 |
|
| 10385 |
* g-table.adb, g-dyntab.adb (Reallocate): Fix possible overflow in |
| 10386 |
computing new table size. |
| 10387 |
|
| 10388 |
2014-05-21 Robert Dewar <[email protected]> |
| 10389 |
|
| 10390 |
* einfo.ads: Minor reformatting. |
| 10391 |
* ceinfo.adb: Deal with slight format change of einfo.ads. |
| 10392 |
|
| 10393 |
2014-05-21 Ed Schonberg <[email protected]> |
| 10394 |
|
| 10395 |
* sem_prag.adb (Analyze_Part_Of): Further work on the proper |
| 10396 |
implementation of the SPARK 2014 rule concerning private child |
| 10397 |
units (LRM 7.2.6). |
| 10398 |
|
| 10399 |
2014-05-21 Vincent Celier <[email protected]> |
| 10400 |
|
| 10401 |
* makeusg.adb: Add switch -d to usage. |
| 10402 |
|
| 10403 |
2014-05-21 Ed Schonberg <[email protected]> |
| 10404 |
|
| 10405 |
* sem_util.adb (Find_Actual): If an actual that is the prefix |
| 10406 |
of an enclosing prefixed call has been rewritten, use Nkind |
| 10407 |
and Sloc to identify the corresponding formal, when handling |
| 10408 |
deferred references. |
| 10409 |
|
| 10410 |
2014-05-21 Robert Dewar <[email protected]> |
| 10411 |
|
| 10412 |
* debug.adb: Document -gnatd.z switch. |
| 10413 |
* sem_eval.adb (Why_Non_Static): Test -gnatd.z switch. |
| 10414 |
|
| 10415 |
2014-05-21 Robert Dewar <[email protected]> |
| 10416 |
|
| 10417 |
* einfo.ads (Can_Never_Be_Null): Minor comment update. |
| 10418 |
* sem_prag.adb (Check_Arg_Is_Task_Dispatching_Policy): Minor |
| 10419 |
error message change. |
| 10420 |
* s-arit64.adb ("abs"): New function. Use expression functions |
| 10421 |
for the simple conversions and arithmetic. |
| 10422 |
|
| 10423 |
2014-05-18 Eric Botcazou <[email protected]> |
| 10424 |
|
| 10425 |
* gcc-interface/trans.c (Subprogram_Body_to_gnu): Rework comment and |
| 10426 |
set function_start_locus. |
| 10427 |
|
| 10428 |
2014-05-18 Eric Botcazou <[email protected]> |
| 10429 |
|
| 10430 |
* utils.c (gnat_write_global_declarations): Adjust the flags put on |
| 10431 |
dummy_global. |
| 10432 |
|
| 10433 |
2014-05-18 Eric Botcazou <[email protected]> |
| 10434 |
|
| 10435 |
* gcc-interface/decl.c (change_qualified_type): New static function. |
| 10436 |
(gnat_to_gnu_entity): Use it throughout to add qualifiers on types. |
| 10437 |
<E_Array_Type>: Set TYPE_VOLATILE on the array type directly. |
| 10438 |
<E_Array_Subtype>: Likewise. |
| 10439 |
Do not set flags on an UNCONSTRAINED_ARRAY_TYPE directly. |
| 10440 |
(gnat_to_gnu_component_type): Likewise. |
| 10441 |
(gnat_to_gnu_param): Likewise. |
| 10442 |
|
| 10443 |
2014-05-18 Eric Botcazou <[email protected]> |
| 10444 |
|
| 10445 |
* fe.h (Set_Present_Expr): Move around. |
| 10446 |
(End_Location): New macro. |
| 10447 |
* gcc-interface/trans.c (Case_Statement_to_gnu): Use End_Location. |
| 10448 |
|
| 10449 |
2014-05-18 Eric Botcazou <[email protected]> |
| 10450 |
|
| 10451 |
* gcc-interface/decl.c (gnat_to_gnu_entity): Use Underlying_Type in |
| 10452 |
lieu of more verbose construct. |
| 10453 |
* gcc-interface/trans.c (Call_to_gnu): Likewise. |
| 10454 |
(gnat_to_gnu): Likewise. Remove obsolete code. |
| 10455 |
|
| 10456 |
2014-05-18 Eric Botcazou <[email protected]> |
| 10457 |
|
| 10458 |
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Do not |
| 10459 |
consider that regular packed arrays can never be superflat. |
| 10460 |
|
| 10461 |
2014-05-17 Trevor Saunders <[email protected]> |
| 10462 |
|
| 10463 |
* gcc-interface/ada-tree.h: Remove usage of variable_size gty |
| 10464 |
annotation. |
| 10465 |
* gcc-interface/decl.c (annotate_value): Adjust. |
| 10466 |
* gcc-interface/trans.c (Attribute_to_gnu): Likewise. |
| 10467 |
(push_range_check_info): Likewise. |
| 10468 |
(Loop_Statement_to_gnu): Likewise. |
| 10469 |
(Subprogram_Body_to_gnu): Likewise. |
| 10470 |
(Compilation_Unit_to_gnu): Likewise. |
| 10471 |
(start_stmt_group): Likewise. |
| 10472 |
* gcc-interface/utils.c (init_gnat_utils): Likewise. |
| 10473 |
(gnat_pushlevel): Likewise. |
| 10474 |
(maybe_pad_type): Likewise. |
| 10475 |
|
| 10476 |
2014-05-14 Eric Botcazou <[email protected]> |
| 10477 |
|
| 10478 |
* seh_init.c: Fix copyright year. |
| 10479 |
|
| 10480 |
2014-05-14 Bernd Edlinger <[email protected]> |
| 10481 |
|
| 10482 |
* seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__ |
| 10483 |
are defined. Move include windows.h before system.h. |
| 10484 |
* s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile |
| 10485 |
also when __CYGWIN__ is defined. Include windef.h before winbase.h. |
| 10486 |
|
| 10487 |
2014-05-14 Richard Sandiford <[email protected]> |
| 10488 |
|
| 10489 |
* gcc-interface/decl.c (gnat_to_gnu_entity): Convert integer_one_node |
| 10490 |
to the appropriate type. |
| 10491 |
* gcc-interface/trans.c (gnat_to_gnu): Likewise. |
| 10492 |
(pos_to_constructor): Likewise. |
| 10493 |
|
| 10494 |
2014-05-13 Eric Botcazou <[email protected]> |
| 10495 |
|
| 10496 |
* gcc-interface/decl.c (annotate_value): Fix thinko in latest change. |
| 10497 |
|
| 10498 |
2014-05-06 Kenneth Zadeck <[email protected]> |
| 10499 |
Mike Stump <[email protected]> |
| 10500 |
Richard Sandiford <[email protected]> |
| 10501 |
|
| 10502 |
* gcc-interface/cuintp.c (UI_From_gnu): Use wide-int interfaces. |
| 10503 |
* gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_SIGN. |
| 10504 |
(annotate_value): Use wide-int interfaces. |
| 10505 |
* gcc-interface/utils.c (get_nonnull_operand): Use tree_fits_uhwi_p. |
| 10506 |
|
| 10507 |
2014-04-28 Richard Henderson <[email protected]> |
| 10508 |
|
| 10509 |
* gcc-interface/Makefile.in: Support aarch64-linux. |
| 10510 |
|
| 10511 |
2014-04-28 Eric Botcazou <[email protected]> |
| 10512 |
|
| 10513 |
* exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix, |
| 10514 |
add 'Suffix' parameter and adjust comment. |
| 10515 |
(Get_External_Name_With_Suffix): Delete. |
| 10516 |
* exp_dbug.adb (Get_External_Name_With_Suffix): Merge into... |
| 10517 |
(Get_External_Name): ...here. Add 'False' default to Has_Suffix, add |
| 10518 |
'Suffix' parameter. |
| 10519 |
(Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name. |
| 10520 |
Call Get_External_Name instead of Get_External_Name_With_Suffix. |
| 10521 |
(Get_Secondary_DT_External_Name): Likewise. |
| 10522 |
* exp_cg.adb (Write_Call_Info): Likewise. |
| 10523 |
* exp_disp.adb (Export_DT): Likewise. |
| 10524 |
(Import_DT): Likewise. |
| 10525 |
* comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC |
| 10526 |
parameter with False default. |
| 10527 |
* comperr.adb (Compiler_Abort): Likewise. Adjust accordingly. |
| 10528 |
* types.h (Fat_Pointer): Rename into... |
| 10529 |
(String_Pointer): ...this. Add comment on interfacing rules. |
| 10530 |
* fe.h (Compiler_Abort): Adjust for above renaming. |
| 10531 |
(Error_Msg_N): Likewise. |
| 10532 |
(Error_Msg_NE): Likewise. |
| 10533 |
(Get_External_Name): Likewise. Add third parameter. |
| 10534 |
(Get_External_Name_With_Suffix): Delete. |
| 10535 |
* gcc-interface/decl.c (STDCALL_PREFIX): Define. |
| 10536 |
(create_concat_name): Adjust call to Get_External_Name, remove call to |
| 10537 |
Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming. |
| 10538 |
* gcc-interface/trans.c (post_error): Likewise. |
| 10539 |
(post_error_ne): Likewise. |
| 10540 |
* gcc-interface/misc.c (internal_error_function): Likewise. |
| 10541 |
|
| 10542 |
2014-04-28 Richard Biener <[email protected]> |
| 10543 |
|
| 10544 |
PR middle-end/60092 |
| 10545 |
* gcc-interface/utils.c: Define flag_isoc11. |
| 10546 |
|
| 10547 |
2014-04-26 Eric Botcazou <[email protected]> |
| 10548 |
|
| 10549 |
* gnatvsn.ads (Library_Version): Bump to 4.10. |
| 10550 |
|
| 10551 |
2014-04-23 Eric Botcazou <[email protected]> |
| 10552 |
|
| 10553 |
Revert |
| 10554 |
2014-04-22 Richard Henderson <[email protected]> |
| 10555 |
|
| 10556 |
* gcc-interface/Makefile.in: Support aarch64-linux. |
| 10557 |
|
| 10558 |
2014-04-22 Eric Botcazou <[email protected]> |
| 10559 |
|
| 10560 |
* fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer. |
| 10561 |
(Error_Msg_N): Likewise. |
| 10562 |
(Error_Msg_NE): Likewise. |
| 10563 |
(Get_External_Name_With_Suffix): Likewise. |
| 10564 |
* types.h (Fat_Pointer): Delete. |
| 10565 |
(String_Pointer): New type. |
| 10566 |
(DECLARE_STRING_POINTER): New macro. |
| 10567 |
* gcc-interface/decl.c (create_concat_name): Adjust. |
| 10568 |
* gcc-interface/trans.c (post_error): Likewise. |
| 10569 |
(post_error_ne): Likewise. |
| 10570 |
* gcc-interface/misc.c (internal_error_function): Likewise. |
| 10571 |
|
| 10572 |
2014-04-22 Richard Henderson <[email protected]> |
| 10573 |
|
| 10574 |
* gcc-interface/Makefile.in: Support aarch64-linux. |
| 10575 |
|
| 10576 |
* init.c [__linux__] (HAVE_GNAT_ALTERNATE_STACK): New define. |
| 10577 |
(__gnat_alternate_stack): Enable for all linux except ia64. |
| 10578 |
|
| 10579 |
2014-04-22 Eric Botcazou <[email protected]> |
| 10580 |
|
| 10581 |
* fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer. |
| 10582 |
(Error_Msg_N): Likewise. |
| 10583 |
(Error_Msg_NE): Likewise. |
| 10584 |
(Get_External_Name_With_Suffix): Likewise. |
| 10585 |
* types.h (Fat_Pointer): Delete. |
| 10586 |
(String_Pointer): New type. |
| 10587 |
(DECLARE_STRING_POINTER): New macro. |
| 10588 |
* gcc-interface/decl.c (create_concat_name): Adjust. |
| 10589 |
* gcc-interface/trans.c (post_error): Likewise. |
| 10590 |
(post_error_ne): Likewise. |
| 10591 |
* gcc-interface/misc.c (internal_error_function): Likewise. |
| 10592 |
|
| 10593 |
2014-04-15 Eric Botcazou <[email protected]> |
| 10594 |
Pierre-Marie de Rodat <[email protected]> |
| 10595 |
|
| 10596 |
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a mere |
| 10597 |
scalar constant instead of a reference for renaming of scalar literal. |
| 10598 |
Do not create a new object for constant renaming except for a function |
| 10599 |
call. Make sure a VAR_DECL is created for the renaming pointer. |
| 10600 |
* gcc-interface/trans.c (constant_decl_with_initializer_p): New. |
| 10601 |
(fold_constant_decl_in_expr): New function. |
| 10602 |
(Identifier_to_gnu): Use constant_decl_with_initializer_p. |
| 10603 |
For a constant renaming, try to fold a constant DECL in the result. |
| 10604 |
(lvalue_required_p) <N_Object_Renaming_Declaration>: Always return 1. |
| 10605 |
(Identifier_to_gnu): Reference the renamed object of constant renaming |
| 10606 |
pointers directly. |
| 10607 |
* gcc-interface/utils.c (invalidate_global_renaming_pointers): Do not |
| 10608 |
invalidate constant renaming pointers. |
| 10609 |
|
| 10610 |
2014-04-15 Eric Botcazou <[email protected]> |
| 10611 |
|
| 10612 |
* gcc-interface/utils.c (type_for_vector_element_p): New predicate. |
| 10613 |
(build_vector_type_for_size): New function. |
| 10614 |
(build_vector_type_for_array): Likewise. |
| 10615 |
(unchecked_convert): Build an intermediate vector type to convert |
| 10616 |
from a generic array type to a vector type. |
| 10617 |
(handle_vector_size_attribute): Reimplement. |
| 10618 |
(handle_vector_type_attribute): Likewise. |
| 10619 |
|
| 10620 |
2014-04-15 Eric Botcazou <[email protected]> |
| 10621 |
|
| 10622 |
* gcc-interface/decl.c (prepend_one_attribute_pragma): Call |
| 10623 |
Is_OK_Static_Expression in lieu of Is_Static_Expression to |
| 10624 |
detect valid arguments. |
| 10625 |
|
| 10626 |
2014-04-15 Eric Botcazou <[email protected]> |
| 10627 |
|
| 10628 |
* gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints. |
| 10629 |
|
| 10630 |
2014-04-14 Paolo Carlini <[email protected]> |
| 10631 |
|
| 10632 |
* gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_IDENTIFIER. |
| 10633 |
(components_to_record): Likewise. |
| 10634 |
* gcc-interface/utils.c (make_aligning_type): Likewise. |
| 10635 |
(maybe_pad_type): Likewise. |
| 10636 |
(finish_record_type): Likewise. |
| 10637 |
(rest_of_record_type_compilation): Likewise. |
| 10638 |
|
| 10639 |
2014-04-14 Eric Botcazou <[email protected]> |
| 10640 |
|
| 10641 |
* snames.ads-tmpl (Name_Ivdep): New pragma-related name. |
| 10642 |
* sem_prag.adb (Analyze_Pragma) <Pragma_Loop_Optimize>: Add support |
| 10643 |
for Ivdep hint. |
| 10644 |
* gnat_rm.texi (Implementation Defined Pragmas): Document new Ivdep |
| 10645 |
hint for Loop_Optimize. |
| 10646 |
* gnat_ugn.texi (Vectorization of loops): Mention new Ivdep hint. |
| 10647 |
* gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal |
| 10648 |
with new Ivdep hint. |
| 10649 |
* gcc-interface/ada-tree.h (LOOP_STMT_IVDEP): New macro. |
| 10650 |
* gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal |
| 10651 |
with new Ivdep hint. |
| 10652 |
(gnat_gimplify_stmt) <LOOP_STMT>: Propagate loop hints. |
| 10653 |
|
| 10654 |
2014-04-14 Eric Botcazou <[email protected]> |
| 10655 |
Robert Dewar <[email protected]> |
| 10656 |
|
| 10657 |
* opt.ads (Suppress_Back_Annotation): Remove as unused. |
| 10658 |
* fe.h (Back_Annotate_Rep_Info): Likewise. |
| 10659 |
(Global_Discard_Names): Likewise. |
| 10660 |
(List_Representation_Info): Declare. |
| 10661 |
* types.h (Uint_Minus_1): Likewise. |
| 10662 |
* repinfo.ads: Document back-annotation change. |
| 10663 |
* gcc-interface/gigi.h (init_gnat_decl): Declare. |
| 10664 |
(destroy_gnat_decl): Likewise. |
| 10665 |
* gcc-interface/decl.c (annotate_value): Do not create the cache of |
| 10666 |
annotated values here but... |
| 10667 |
<CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are |
| 10668 |
in ASIS mode. |
| 10669 |
(init_gnat_decl): ...here instead. New function. |
| 10670 |
(destroy_gnat_decl): Likewise. |
| 10671 |
* gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl. |
| 10672 |
* gcc-interface/utils.c (init_gnat_utils): Minor reformatting. |
| 10673 |
|
| 10674 |
2014-04-14 Eric Botcazou <[email protected]> |
| 10675 |
|
| 10676 |
* gcc-interface/decl.c (create_field_decl_from): Finalize non-constant |
| 10677 |
offset for the field, if any. |
| 10678 |
|
| 10679 |
2014-04-09 Eric Botcazou <[email protected]> |
| 10680 |
Svante Signell <[email protected]> |
| 10681 |
|
| 10682 |
PR ada/54040 |
| 10683 |
PR ada/59346 |
| 10684 |
* s-osinte-x32.adb: New file. |
| 10685 |
* s-linux.ads (Time): New section. |
| 10686 |
* s-linux-alpha.ads (Time): Likewise. |
| 10687 |
* s-linux-android.ads (Time: Likewise. |
| 10688 |
* s-linux-hppa.ads (Time): Likewise. |
| 10689 |
* s-linux-mipsel.ads (Time): Likewise. |
| 10690 |
* s-linux-sparc.ads (Time): Likewise. |
| 10691 |
* s-linux-x32.ads (Time): Likewise. |
| 10692 |
* s-osprim-x32.ads (timespec): Adjust. |
| 10693 |
(Clock): Likewise. |
| 10694 |
(To_Timespec): Likewise. |
| 10695 |
* s-osinte-linux.ads (Time): Define local subtypes for those defined |
| 10696 |
in System.Linux. |
| 10697 |
* s-taprop-linux.adb (Monotonic_Clock): Do not define timeval. |
| 10698 |
* s-osinte-hpux.ads (timespec): Revert POSIX breakage. |
| 10699 |
* s-osinte-kfreebsd-gnu.ads (timespec): Likewise. |
| 10700 |
* s-osinte-solaris-posix.ads (timespec): Likewise. |
| 10701 |
* s-osinte-posix.adb (To_Timespec): Likewise. |
| 10702 |
* gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb. |
| 10703 |
|
| 10704 |
2014-04-08 Eric Botcazou <[email protected]> |
| 10705 |
|
| 10706 |
PR ada/60411 |
| 10707 |
* gcc-interface/Makefile.in (arm% linux-android): Switch to EHABI. |
| 10708 |
* s-linux-android.ads: New file. |
| 10709 |
* s-intman-android.adb: Likewise. |
| 10710 |
* s-osinte-android.ads: Adjust. |
| 10711 |
* sigtramp-armdroid.c: Likewise. |
| 10712 |
* sigtramp.h: Add Android support. |
| 10713 |
|
| 10714 |
2014-04-07 Eric Botcazou <[email protected]> |
| 10715 |
|
| 10716 |
* gcc-interface/Makefile.in (alpha-vms): Add missing line. |
| 10717 |
|
| 10718 |
2014-03-30 Eric Botcazou <[email protected]> |
| 10719 |
|
| 10720 |
PR ada/60703 |
| 10721 |
* system-linux-alpha.ads: Adjust for Ada 2005. |
| 10722 |
* system-linux-mips.ads: Likewise. |
| 10723 |
* system-linux-mips64el.ads: Likewise. |
| 10724 |
* system-linux-mipsel.ads: Likewise. |
| 10725 |
* system-linux-s390.ads: Likewise. |
| 10726 |
* system-linux-s390x.ads: Likewise. |
| 10727 |
* system-linux-sparc.ads: Likewise. |
| 10728 |
* system-linux-sparcv9.ads: Likewise. |
| 10729 |
* system-rtems.ads: Likewise. |
| 10730 |
* system-vxworks-arm.ads: Likewise. |
| 10731 |
|
| 10732 |
2014-03-16 Andreas Schwab <[email protected]> |
| 10733 |
|
| 10734 |
PR ada/39172 |
| 10735 |
* gcc-interface/Makefile.in (target_cpu_default): Revert |
| 10736 |
2013-10-11 change. |
| 10737 |
|
| 10738 |
2014-03-13 Eric Botcazou <[email protected]> |
| 10739 |
|
| 10740 |
PR ada/51483 |
| 10741 |
* cstand.adb (Register_Float_Type): Add 'precision' parameter and use |
| 10742 |
it to set the RM size. Use directly 'size' for the Esize. |
| 10743 |
(Create_Back_End_Float_Types): Adjust call to above. |
| 10744 |
* get_targ.ads (Register_Type_Proc): Add 'precision' parameter. |
| 10745 |
* set_targ.ads (FPT_Mode_Entry): Add 'precision' component. |
| 10746 |
(Write_Target_Dependent_Values): Adjust comment. |
| 10747 |
* set_targ.adb (Register_Float_Type): Add 'precision' parameter and |
| 10748 |
deal with it. |
| 10749 |
(Write_Target_Dependent_Values): Write the precision in lieu of size. |
| 10750 |
(Initialization): Read the precision in lieu of size and compute the |
| 10751 |
size from the precision and the alignment. |
| 10752 |
* gcc-interface/gigi.h (enumerate_modes): Add integer parameter. |
| 10753 |
* gcc-interface/misc.c (enumerate_modes): Likewise. Do not register |
| 10754 |
types for vector modes, pass the size in addition to the precision. |
| 10755 |
|
| 10756 |
2014-03-10 Eric Botcazou <[email protected]> |
| 10757 |
|
| 10758 |
* gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo. |
| 10759 |
|
| 10760 |
2014-03-07 Doug Rupp <[email protected]> |
| 10761 |
|
| 10762 |
PR ada/60411 |
| 10763 |
* system-linux-armel.ads (Backend_Overflow_Checks): Set to True. |
| 10764 |
(Support_64_Bit_Divides): Removed, no longer used. |
| 10765 |
(ZCX_By_Default): Enabled. |
| 10766 |
|
| 10767 |
2014-02-25 Doug Rupp <[email protected]> |
| 10768 |
|
| 10769 |
* gcc-interface/Makefile.in (arm-linux): |
| 10770 |
(EH_MECHANISM): Use ARM unwinder (-arm) |
| 10771 |
(LIBGNAT_TARGET_PAIRS: Override defaults with a-exexpr-gcc.adb and |
| 10772 |
s-excmac-arm.ads. |
| 10773 |
(EXTRA_LIBGNAT_OBJS): Add raise-gcc.o |
| 10774 |
(EXTRA_GNATRTL_NONTASKING_OBJS): Add g-cppexc.o s-excmac.o. |
| 10775 |
(arm-wrs-vxworks): Add EH_MECHANISM=-gcc for kernel mode. |
| 10776 |
(EXTRA_LIBGNAT_OBJS): Add sigtramp-armvxw.o |
| 10777 |
Add dependencies for sigtramp-armvxw.o. |
| 10778 |
|
| 10779 |
2014-02-25 Eric Botcazou <[email protected]> |
| 10780 |
|
| 10781 |
* gcc-interface/trans.c (Pragma_to_gnu): Deal with Warning_As_Error. |
| 10782 |
|
| 10783 |
2014-02-25 Robert Dewar <[email protected]> |
| 10784 |
|
| 10785 |
* rtsfind.adb (Is_RTE): Protect against entity with no scope |
| 10786 |
field (previously this call blew up on the Standard entity). |
| 10787 |
* sem_attr.adb (Analyze_Attribute, case Access): Remove |
| 10788 |
test for No_Abort_Statements, this is now handled in |
| 10789 |
Set_Entity_With_Checks. |
| 10790 |
* exp_ch6.adb, sem_ch10.adb, sem_ch4.adb, sem_ch8.adb, sem_res.adb: |
| 10791 |
Change name Set_Entity_With_Style_Check => Set_Entity_With_Checks. |
| 10792 |
* sem_util.ads, sem_util.adb: Change name Set_Entity_With_Style_Check => |
| 10793 |
Set_Entity_With_Checks. |
| 10794 |
(Set_Entity_With_Checks): Add checks for No_Dynamic_Attachment, |
| 10795 |
Add checks for No_Abort_Statements. |
| 10796 |
|
| 10797 |
2014-02-25 Robert Dewar <[email protected]> |
| 10798 |
|
| 10799 |
* exp_ch9.adb (Expand_Entry_Barrier): Add comment that call to |
| 10800 |
Check_Restriction is OK. |
| 10801 |
|
| 10802 |
2014-02-25 Ed Schonberg <[email protected]> |
| 10803 |
|
| 10804 |
* sem_ch3.adb (Process_Full_View): Better error message when |
| 10805 |
the full view of a private type without discriminants is an |
| 10806 |
unconstrained type. |
| 10807 |
* sem_ch7.adb (Uninstall_Declarations): Ditto. |
| 10808 |
|
| 10809 |
2014-02-25 Eric Botcazou <[email protected]> |
| 10810 |
|
| 10811 |
* sigtramp-armvxw.c: Also restore r0. |
| 10812 |
|
| 10813 |
2014-02-25 Robert Dewar <[email protected]> |
| 10814 |
|
| 10815 |
* errout.adb (Error_Msg_Internal): Warning_Msg_Char set |
| 10816 |
unconditionally (Set_Msg_Insertion_Warning): Warning_Msg_Char |
| 10817 |
set unconditionally. |
| 10818 |
* erroutc.adb (Get_Warning_Tag): Does not give a leading space |
| 10819 |
any more (Output_Msg_Text): Rewritten with new convention on |
| 10820 |
output of warnings that are treated as errors. |
| 10821 |
* erroutc.ads (Error_Msg_Object): Warn_Chr is always set even |
| 10822 |
if Warn is False. |
| 10823 |
* gnat_rm.texi: Updates to documentation on pragma |
| 10824 |
Warning_As_Error. |
| 10825 |
* warnsw.adb (Set_Dot_Warning_Switch): -gnatw.e should not |
| 10826 |
set Warning_Doc_Switch. |
| 10827 |
* lib-writ.ads: Add documentation note on ALI file generation |
| 10828 |
for C. |
| 10829 |
* exp_ch6.adb (Expand_Call): Remove check for No_Abort_Statements |
| 10830 |
(belongs in Sem). |
| 10831 |
* sem_attr.adb (Resolve_Attribute, case Access): |
| 10832 |
Abort_Task'Access violates the No_Abort_Statements restriction. |
| 10833 |
* sem_res.adb (Resolve_Call): Check restriction |
| 10834 |
No_Abort_Statements for call to Abort_Task or a renaming of it. |
| 10835 |
|
| 10836 |
2014-02-25 Robert Dewar <[email protected]> |
| 10837 |
|
| 10838 |
* sem_ch3.adb (Array_Type_Declaration): Check for case of using |
| 10839 |
type name as index. |
| 10840 |
* lib.ads: Minor reformatting. |
| 10841 |
* einfo.ads: Minor reformatting. |
| 10842 |
|
| 10843 |
2014-02-25 Doug Rupp <[email protected]> |
| 10844 |
|
| 10845 |
* sem_mech.adb (Set_Mechanisms): For convention Fortran on VMS |
| 10846 |
use Short_Descriptor(S) as the argument passing mechanism. |
| 10847 |
|
| 10848 |
2014-02-25 Eric Botcazou <[email protected]> |
| 10849 |
|
| 10850 |
* sigtramp-ppcvxw.c (CFI_COMMON_REGS): Also include r0. |
| 10851 |
|
| 10852 |
2014-02-25 Robert Dewar <[email protected]> |
| 10853 |
|
| 10854 |
* atree.ads (Warnings_Treated_As_Errors): New variable. |
| 10855 |
* errout.adb (Error_Msg_Internal): Set Warn_Err flag in |
| 10856 |
error object (Initialize): Initialize Warnings_As_Errors_Count |
| 10857 |
(Write_Error_Summary): Include count of warnings treated as errors. |
| 10858 |
* erroutc.adb (Warning_Treated_As_Error): New function. |
| 10859 |
(Matches): Function moved to outer level of package. |
| 10860 |
* erroutc.ads (Error_Msg_Object): Add Warn_Err flag. |
| 10861 |
(Warning_Treated_As_Error): New function. |
| 10862 |
* gnat_rm.texi: Document pragma Treat_Warning_As_Error. |
| 10863 |
* opt.adb: Add handling of Warnings_As_Errors_Count[_Config]. |
| 10864 |
* opt.ads (Config_Switches_Type): Add entry for |
| 10865 |
Warnings_As_Errors_Count. |
| 10866 |
(Warnings_As_Errors_Count): New variable. |
| 10867 |
(Warnings_As_Errors): New array. |
| 10868 |
* par-prag.adb: Add dummy entry for Warning_As_Error. |
| 10869 |
* sem_prag.adb (Analyze_Pragma): Implement new pragma |
| 10870 |
Warning_As_Error. |
| 10871 |
* snames.ads-tmpl: Add entries for Warning_As_Error pragma. |
| 10872 |
|
| 10873 |
2014-02-25 Eric Botcazou <[email protected]> |
| 10874 |
|
| 10875 |
* sigtramp.h: Fix minor inaccuracy. |
| 10876 |
|
| 10877 |
2014-02-25 Ben Brosgol <[email protected]> |
| 10878 |
|
| 10879 |
* gnat_ugn.texi: Added description of kill command. |
| 10880 |
|
| 10881 |
2014-02-25 Robert Dewar <[email protected]> |
| 10882 |
|
| 10883 |
* gnat_rm.texi (Address_Clauses): Add a section discussing the |
| 10884 |
problem of address clauses causing unexpected initialization, |
| 10885 |
including the effect of Initialize_Scalars. |
| 10886 |
|
| 10887 |
2014-02-25 Robert Dewar <[email protected]> |
| 10888 |
|
| 10889 |
* errout.adb: Various changes for better msgs for anonmous access |
| 10890 |
subprogram types. |
| 10891 |
* erroutc.ads, erroutc.adb (Buffer_Ends_With): Version with character |
| 10892 |
argument. |
| 10893 |
(Buffer_Remove): Version with character argument. |
| 10894 |
* sem_attr.adb (Resolve_Attribute, case Access): Better handling |
| 10895 |
of mismatching conventions for access-to-subprogram case. |
| 10896 |
* sem_prag.adb (Set_Convention_From_Pragma): Deal with anonymous |
| 10897 |
access types in record. |
| 10898 |
* sem_util.ads, sem_util.adb (Set_Convention): Handle anonymous access |
| 10899 |
types, including in records. |
| 10900 |
|
| 10901 |
2014-02-25 Doug Rupp <[email protected]> |
| 10902 |
|
| 10903 |
* sigtramp-ppcvxw.c, sigtramp.h, sigtramp-armvxw.c: Comment |
| 10904 |
enhancements and corrections. |
| 10905 |
|
| 10906 |
2014-02-25 Robert Dewar <[email protected]> |
| 10907 |
|
| 10908 |
* gnat_rm.texi: New section "Conventions and Anonymous Access Types" |
| 10909 |
|
| 10910 |
2014-02-25 Robert Dewar <[email protected]> |
| 10911 |
|
| 10912 |
* gnat_rm.texi: First set of documentation additions for |
| 10913 |
predefined RM units. |
| 10914 |
* checks.adb: Minor reformatting. |
| 10915 |
* sem_elab.adb (Check_Task_Activation): Minor fix to error |
| 10916 |
message. |
| 10917 |
* sem_util.adb: Minor reformatting. |
| 10918 |
|
| 10919 |
2014-02-25 Arnaud Charlet <[email protected]> |
| 10920 |
|
| 10921 |
* usage.adb (Usage): Add help on -gnateC. |
| 10922 |
* switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateC. |
| 10923 |
* opt.ads (Generate_CodePeer_Messages): New flag. |
| 10924 |
* gnat_ugn.texi: Document new switch -gnateC. |
| 10925 |
|
| 10926 |
2014-02-25 Ben Brosgol <[email protected]> |
| 10927 |
|
| 10928 |
* gnat_rm.texi: Corrected minor typos in Implementation Defined |
| 10929 |
Aspects. |
| 10930 |
* opt.ads: Minor reformatting. |
| 10931 |
|
| 10932 |
2014-02-25 Robert Dewar <[email protected]> |
| 10933 |
|
| 10934 |
* binde.adb: Change messages to mention -gnatel instead of -gnatwl. |
| 10935 |
* gnat_ugn.texi: Update documentation of -gnatwl Add documentation |
| 10936 |
of -gnatel/-gnateL. |
| 10937 |
* opt.ads (Warn_Info_Messages): New flag. |
| 10938 |
* sem_elab.adb: Use Elab_Warnings, Elab_Info_Messages to control |
| 10939 |
messages. |
| 10940 |
* sem_prag.adb: Use Elab_Warnings, Elab_Info_Messages to control |
| 10941 |
messages. |
| 10942 |
* switch-m.ad, switch-c.adb: Recognize new -gnatel/EL switches. |
| 10943 |
* usage.adb: Add documentation of -gnatel/-gnateL Update |
| 10944 |
documentation of -gnatwl/-gnatwL. |
| 10945 |
* warnsw.adb: New handling of Elab_Warnings, Elab_Info_Messages |
| 10946 |
* warnsw.ads (Elab_Info_Messages): New field in Warning_Record |
| 10947 |
|
| 10948 |
2014-02-25 Robert Dewar <[email protected]> |
| 10949 |
|
| 10950 |
* einfo.ads, einfo.adb (Has_Shift_Operator): New flag. |
| 10951 |
* gnat_rm.texi: Document pragma Provide_Shift_Operators. |
| 10952 |
* interfac.ads: Minor code reorganization (add pragma |
| 10953 |
Compiler_Unit_Warning). |
| 10954 |
* par-prag.adb: Add dummy entry for Provide_Shift_Operators. |
| 10955 |
* sem_ch3.adb (Build_Derived_Numeric_Type): Copy |
| 10956 |
Has_Shift_Operator flag. |
| 10957 |
* sem_intr.adb (Check_Intrinsic_Subprogram): Make sure |
| 10958 |
Check_Shift is always called (Check_Shift): Set Has_Shift_Operator. |
| 10959 |
* sem_prag.adb: Implement pragma Provide_Shift_Operators. |
| 10960 |
* snames.ads-tmpl: Add entries for pragma Provide_Shift_Operators |
| 10961 |
Add entry for Name_Amount. |
| 10962 |
* checks.adb (Selected_Range_Checks): When checking for a null |
| 10963 |
range, make sure we use the base type, and not the subtype for |
| 10964 |
deciding a range is null. |
| 10965 |
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check |
| 10966 |
for suspicious loop bound which is outside the range of the |
| 10967 |
loop subtype. |
| 10968 |
* gnat_ugn.texi: Add documentation section "Determining the |
| 10969 |
Chosen Elaboration Order" |
| 10970 |
* sem_ch13.adb (UC_Entry): Add field Act_Unit |
| 10971 |
(Validate_Unchecked_Conversion): Store Act_Unit |
| 10972 |
(Validate_Unchecked_Conversions): Test Warnings_Off in Act_Unit |
| 10973 |
* treepr.adb: Minor reformatting. |
| 10974 |
|
| 10975 |
2014-02-25 Arnaud Charlet <[email protected]> |
| 10976 |
|
| 10977 |
* usage.adb: Minor: fix typo. |
| 10978 |
|
| 10979 |
2014-02-25 Robert Dewar <[email protected]> |
| 10980 |
|
| 10981 |
* lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi, |
| 10982 |
s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads, |
| 10983 |
s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads, |
| 10984 |
s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads, |
| 10985 |
g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb, |
| 10986 |
s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads, |
| 10987 |
a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb, |
| 10988 |
s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, |
| 10989 |
a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb, |
| 10990 |
s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads, |
| 10991 |
a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb, |
| 10992 |
s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads, |
| 10993 |
s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma |
| 10994 |
Compiler_Unit_Warning, change Compiler_Unit everywhere to |
| 10995 |
Compiler_Unit_Warning. |
| 10996 |
|
| 10997 |
2014-02-25 Sergey Rybin <[email protected] frybin> |
| 10998 |
|
| 10999 |
* sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize |
| 11000 |
in ASIS mode aggregates that are used as aspect definitions. |
| 11001 |
|
| 11002 |
2014-02-25 Robert Dewar <[email protected]> |
| 11003 |
|
| 11004 |
* exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor |
| 11005 |
reformatting. |
| 11006 |
|
| 11007 |
2014-02-25 Ed Schonberg <[email protected]> |
| 11008 |
|
| 11009 |
* freeze.adb (Freeze_Entity): If the return type of a function |
| 11010 |
is a limited view, and the non-limited view has not been seen yet, |
| 11011 |
defer freezing to some later point. |
| 11012 |
|
| 11013 |
2014-02-25 Robert Dewar <[email protected]> |
| 11014 |
|
| 11015 |
* sem_ch3.adb: Minor reformatting. |
| 11016 |
|
| 11017 |
2014-02-25 Robert Dewar <[email protected]> |
| 11018 |
|
| 11019 |
* s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads, |
| 11020 |
s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb, |
| 11021 |
s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb, |
| 11022 |
s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb, |
| 11023 |
s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb, |
| 11024 |
s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb, |
| 11025 |
s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads, |
| 11026 |
s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads, |
| 11027 |
s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb, |
| 11028 |
s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb, |
| 11029 |
s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads, |
| 11030 |
s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads, |
| 11031 |
s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb, |
| 11032 |
s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb, |
| 11033 |
snames.ads-tmpl: Change Compiler_Unit everywhere to |
| 11034 |
Compiler_Unit_Warning. |
| 11035 |
|
| 11036 |
2014-02-25 Hristian Kirtchev <[email protected]> |
| 11037 |
|
| 11038 |
* exp_ch6.adb (Add_Or_Save_Precondition): New routine. |
| 11039 |
(Collect_Body_Postconditions_In_Decls): New routine. |
| 11040 |
(Collect_Body_Postconditions_Of_Kind): Factor out code. Handle |
| 11041 |
postcondition aspects or pragmas that appear on a subprogram |
| 11042 |
body stub. |
| 11043 |
(Collect_Spec_Preconditions): Factor out code. Handle |
| 11044 |
precondition aspects or pragmas that appear on a subprogram |
| 11045 |
body stub. |
| 11046 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): The analysis of |
| 11047 |
aspects that apply to a subprogram body stub is no longer delayed, |
| 11048 |
the aspects are analyzed on the spot. |
| 11049 |
(SPARK_Aspect_Error): |
| 11050 |
Aspects that apply to a subprogram declaration cannot appear in |
| 11051 |
a subunit. |
| 11052 |
* sem_ch10.adb Remove with and use clause for Sem_Ch13. |
| 11053 |
(Analyze_Proper_Body): Add local variable Comp_Unit. Unum |
| 11054 |
is now a local variable. Code cleanup. Analysis related to |
| 11055 |
the aspects of a subprogram body stub is now carried out by |
| 11056 |
Analyze_Subprogram_Body_Helper. Do not propagate the aspects |
| 11057 |
and/or pragmas of a subprogram body stub to the proper body |
| 11058 |
as this is no longer needed. Do not analyze the aspects of a |
| 11059 |
subprogram stub when the corresponding source unit is missing. |
| 11060 |
(Analyze_Protected_Body_Stub): Flag the illegal use of aspects |
| 11061 |
on a stub. |
| 11062 |
(Analyze_Task_Body_Stub): Flag the illegal use of |
| 11063 |
aspects on a stub. |
| 11064 |
(Optional_Subunit): Add local variable Unum. |
| 11065 |
* sem_ch13.adb (Insert_Delayed_Pragma): Do not analyze a generated |
| 11066 |
pragma when it applies to a subprogram body stub. |
| 11067 |
* sem_prag.adb (Analyze_Pragma): Pragmas Contract_Cases, |
| 11068 |
Depends and Global can now apply to a subprogram body stub as |
| 11069 |
long as it acts as its own spec. |
| 11070 |
(Analyze_Refined_Pragma): |
| 11071 |
Code reformatting. Refinement pragmas cannot apply to a subunit. |
| 11072 |
|
| 11073 |
2014-02-25 Hristian Kirtchev <[email protected]> |
| 11074 |
|
| 11075 |
* einfo.ads Update the usage of flag |
| 11076 |
Uses_Sec_Stack. Uses_Sec_Stack now applies to E_Loop entities. |
| 11077 |
* exp_ch5.adb (Expand_Iterator_Loop): The temporary for a cursor |
| 11078 |
now starts with the letter 'C'. This makes reading expanded |
| 11079 |
code easier. |
| 11080 |
* exp_ch7.adb (Establish_Transient_Scope): Add local variable |
| 11081 |
Iter_Loop. Signal that an Ada 2012 iterator loop requires |
| 11082 |
secondary stack management when creating a transient scope for |
| 11083 |
an element reference. |
| 11084 |
* exp_util.adb (Process_Statements_For_Controlled_Objects): |
| 11085 |
When wrapping the statements of a loop, pass the E_Loop entity |
| 11086 |
to the wrapping machinery. |
| 11087 |
(Wrap_Statements_In_Block): Add |
| 11088 |
formal parameter Scop along with comment on usage. Add local |
| 11089 |
variables Block_Id, Block_Nod and Iter_Loop. Mark the generated |
| 11090 |
block as requiring secondary stack management when the block is |
| 11091 |
created inside an Ada 2012 iterator loop. This ensures that any |
| 11092 |
reference objects are reclaimed on each iteration of the loop. |
| 11093 |
* sem_ch5.adb (Analyze_Loop_Statement): Mark the generated block |
| 11094 |
tasked with the handling of container iterators as requiring |
| 11095 |
secondary stack management. This ensures that iterators are |
| 11096 |
reclaimed when the loop terminates or is exited in any fashion. |
| 11097 |
* sem_util.adb (Add_Block_Identifier): New routine. |
| 11098 |
(Find_Enclosing_Iterator_Loop): New routine. |
| 11099 |
* sem_util.ads (Add_Block_Identifier): New routine. |
| 11100 |
(Find_Enclosing_Iterator_Loop): New routine. |
| 11101 |
|
| 11102 |
2014-02-25 Robert Dewar <[email protected]> |
| 11103 |
|
| 11104 |
* sinfo.ads: Minor reformatting. |
| 11105 |
|
| 11106 |
2014-02-25 Tristan Gingold <[email protected]> |
| 11107 |
|
| 11108 |
* s-expllu.ads, s-expuns.ads, s-expmod.ads: Minor comment fix. |
| 11109 |
|
| 11110 |
2014-02-25 Pascal Obry <[email protected]> |
| 11111 |
|
| 11112 |
* sinput-l.adb, osint.adb, osint.ads: Add Prep_Suffix to factorize code. |
| 11113 |
|
| 11114 |
2014-02-25 Tristan Gingold <[email protected]> |
| 11115 |
|
| 11116 |
* sem_ch10.adb: Minor comment fix. |
| 11117 |
|
| 11118 |
2014-02-25 Bob Duff <[email protected]> |
| 11119 |
|
| 11120 |
* s-tasdeb.adb: Misc cleanup of this package, |
| 11121 |
including printing addresses in hexadecimal. |
| 11122 |
(Write): Fix minor bug when taking 'Address of an empty string. |
| 11123 |
|
| 11124 |
2014-02-25 Ed Schonberg <[email protected]> |
| 11125 |
|
| 11126 |
* sem_prag.adb (Analyze_Part_Of): Reject state refinement in a |
| 11127 |
public child unit when it does not refer to the abstract state |
| 11128 |
of a public ancestor. |
| 11129 |
|
| 11130 |
2014-02-25 Yannick Moy <[email protected]> |
| 11131 |
|
| 11132 |
* sem_prag.adb (Analyze_Pragma/Pragma_Validity_Checks): Ignore pragma |
| 11133 |
Validity_Checks in GNATprove and CodePeer modes. |
| 11134 |
|
| 11135 |
2014-02-25 Pascal Obry <[email protected]> |
| 11136 |
|
| 11137 |
* prj-attr.adb, projects.texi, snames.ads-tmpl: Add package Install's |
| 11138 |
Artifacts attribute. |
| 11139 |
|
| 11140 |
2014-02-25 Yannick Moy <[email protected]> |
| 11141 |
|
| 11142 |
* sem_prag.adb: Minor reformatting to get consistent messages. |
| 11143 |
|
| 11144 |
2014-02-25 Robert Dewar <[email protected]> |
| 11145 |
|
| 11146 |
* checks.adb: Minor reformatting. |
| 11147 |
* sinfo.ads (Do_Range_Check): Document that this flag is never |
| 11148 |
passed to the back end. |
| 11149 |
|
| 11150 |
2014-02-25 Yannick Moy <[email protected]> |
| 11151 |
|
| 11152 |
* sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem_attr.adb, |
| 11153 |
sem_ch6.adb: Remove useless references to SPARK RM in error messages. |
| 11154 |
|
| 11155 |
2014-02-25 Hristian Kirtchev <[email protected]> |
| 11156 |
|
| 11157 |
* sem_res.adb (Appears_In_Check): New routine. |
| 11158 |
(Resolve_Entity_Name): Remove local variables Prev and |
| 11159 |
Usage_OK. Par is now a constant. Remove the parent chain traversal |
| 11160 |
as the placement of a volatile object with enabled property |
| 11161 |
Async_Writers and/or Effective_Reads must appear immediately |
| 11162 |
within a legal construct. |
| 11163 |
|
| 11164 |
2014-02-25 Hristian Kirtchev <[email protected]> |
| 11165 |
|
| 11166 |
* checks.adb (Apply_Selected_Range_Checks): |
| 11167 |
Alphabetize local constants and variables. Add comments. |
| 11168 |
Always insert a range check that requires runtime evaluation into |
| 11169 |
the tree. |
| 11170 |
|
| 11171 |
2014-02-25 Robert Dewar <[email protected]> |
| 11172 |
|
| 11173 |
* sem_attr.adb, sem_ch6.adb, par-ch3.adb: Minor reformatting. |
| 11174 |
|
| 11175 |
2014-02-25 Bob Duff <[email protected]> |
| 11176 |
|
| 11177 |
* s-tassta.adb (Finalize_Global_Tasks): Limit the number of loop |
| 11178 |
iterations while waiting for independent tasks to terminate; |
| 11179 |
if an independent task does not terminate, we do not want to |
| 11180 |
hang here. In that case, the thread will be terminated when the |
| 11181 |
process exits. |
| 11182 |
* s-taprop-linux.adb (Abort_Task): Fix Assert to allow for ESRCH. |
| 11183 |
|
| 11184 |
2014-02-25 Ed Schonberg <[email protected]> |
| 11185 |
|
| 11186 |
* sem_prag.adb (Check_SPARK_Aspect_For_ASIS): New subprogram, |
| 11187 |
used to perform pre-analysis of the expression for SPARK |
| 11188 |
aspects that have a non-standard syntax, such as GLobal and |
| 11189 |
Initializes. The procedure applies to the original expression |
| 11190 |
in an aspect specification, prior to the analysis of the |
| 11191 |
corresponding pragma, in order to provide semantic information |
| 11192 |
for ASIS navigation purposes. |
| 11193 |
(Analyze_Global_In_Decl_List, Analyze_Initializes_In_Decl_Part): |
| 11194 |
Call new subprogram. |
| 11195 |
|
| 11196 |
2014-02-25 Yannick Moy <[email protected]> |
| 11197 |
|
| 11198 |
* sem_prag.adb: Remove obsolete reference to SPARK RM in error message. |
| 11199 |
|
| 11200 |
2014-02-25 Doug Rupp <[email protected]> |
| 11201 |
|
| 11202 |
* init.c (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Enable for ARM. |
| 11203 |
(__gnat_adjust_context_for_raise): Bump the PC by 2. |
| 11204 |
|
| 11205 |
2014-02-25 Ed Schonberg <[email protected]> |
| 11206 |
|
| 11207 |
* par-ch3.adb (P_Basic_Declarative_Items): In the case of a |
| 11208 |
misplaced IS, add a statement sequence to improper body only if |
| 11209 |
one has not been parsed already. |
| 11210 |
|
| 11211 |
2014-02-25 Ed Schonberg <[email protected]> |
| 11212 |
|
| 11213 |
* sem_attr.adb (Analyze_Attribute, case 'Update): Check for |
| 11214 |
mismatch when multidimensional array is updated with a single |
| 11215 |
index. |
| 11216 |
|
| 11217 |
2014-02-25 Yannick Moy <[email protected]> |
| 11218 |
|
| 11219 |
* sem_ch3.adb, sem_ch5.adb, sem_prag.adb, sem_attr.adb, errout.ads, |
| 11220 |
sem_ch6.adb: Mark most references to SPARK RM in error messages |
| 11221 |
for removal. |
| 11222 |
|
| 11223 |
2014-02-24 Ed Schonberg <[email protected]> |
| 11224 |
|
| 11225 |
* par-ch3.adb (P_Basic_Declarative_Items): If an improper body |
| 11226 |
appears in a list of basic declarations, complete the tree with |
| 11227 |
an empty statement list, to prevent cascaded errors and crashes |
| 11228 |
if semantic analysis is attempted. |
| 11229 |
|
| 11230 |
2014-02-24 Thomas Quinot <[email protected]> |
| 11231 |
|
| 11232 |
* g-sercom-mingw.adb (Open): Fix incorrect test for error return |
| 11233 |
value. |
| 11234 |
* erroutc.adb: Minor reformatting. |
| 11235 |
|
| 11236 |
2014-02-24 Hristian Kirtchev <[email protected]> |
| 11237 |
|
| 11238 |
* sem_prag.adb (Check_Clause_Syntax): Account |
| 11239 |
for a solitary input item in a dependency list. |
| 11240 |
|
| 11241 |
2014-02-24 Yannick Moy <[email protected]> |
| 11242 |
|
| 11243 |
* gnat1drv.adb (Adjust_Global_Switches): Do not |
| 11244 |
use validity checks at all in GNATprove_Mode. |
| 11245 |
|
| 11246 |
2014-02-24 Robert Dewar <[email protected]> |
| 11247 |
|
| 11248 |
* g-sercom-mingw.adb, g-sercom-linux.adb, sem_prag.adb, freeze.adb, |
| 11249 |
atree.adb, atree.ads: Minor reformatting. |
| 11250 |
|
| 11251 |
2014-02-24 Hristian Kirtchev <[email protected]> |
| 11252 |
|
| 11253 |
* sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce |
| 11254 |
global and dependence refinement when SPARK_Mode is off. |
| 11255 |
* sem_ch7.adb (Analyze_Package_Body_Contract): Do not enforce |
| 11256 |
state refinement when SPARK_Mode is off. |
| 11257 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Add local |
| 11258 |
variable Decl. Insert the generated pragma for Refined_State |
| 11259 |
after a potential pragma SPARK_Mode. |
| 11260 |
* sem_prag.adb (Analyze_Depends_In_Decl_Part): Add local |
| 11261 |
constant Deps. Remove local variable Expr. Check the syntax |
| 11262 |
of pragma Depends when SPARK_Mode is off. Factor out the |
| 11263 |
processing for extra parenthesis around individual clauses. |
| 11264 |
(Analyze_Global_In_Decl_List): Items is now a constant. Check |
| 11265 |
the syntax of pragma Global when SPARK_Mode is off. |
| 11266 |
(Analyze_Initializes_In_Decl_Part): Check the syntax of pragma |
| 11267 |
Initializes when SPARK_Mode is off. |
| 11268 |
(Analyze_Part_Of): Check |
| 11269 |
the syntax of the encapsulating state when SPARK_Mode is off. |
| 11270 |
(Analyze_Pragma): Check the syntax of pragma Abstract_State when |
| 11271 |
SPARK_Mode is off. Move the declaration order check with respect |
| 11272 |
to pragma Initializes to the end of the processing. Do not verify |
| 11273 |
the declaration order for pragma Initial_Condition when SPARK_Mode |
| 11274 |
is off. Do not complain about a useless package refinement when |
| 11275 |
SPARK_Mode is off. |
| 11276 |
(Analyze_Refined_Depends_In_Decl_Part): Refs |
| 11277 |
is now a constant. Check the syntax of pragma Refined_Depends |
| 11278 |
when SPARK_Mode is off. |
| 11279 |
(Analyze_Refined_Global_In_Decl_Part): |
| 11280 |
Check the syntax of pragma Refined_Global when SPARK_Mode is off. |
| 11281 |
(Analyze_Refined_State_In_Decl_Part): Check the syntax of pragma |
| 11282 |
Refined_State when SPARK_Mode is off. |
| 11283 |
(Check_Dependence_List_Syntax): New routine. |
| 11284 |
(Check_Global_List_Syntax): New routine. |
| 11285 |
(Check_Initialization_List_Syntax): New routine. |
| 11286 |
(Check_Item_Syntax): New routine. |
| 11287 |
(Check_State_Declaration_Syntax): New routine. |
| 11288 |
(Check_Refinement_List_Syntax): New routine. |
| 11289 |
(Has_Extra_Parentheses): Moved to the top level of Sem_Prag. |
| 11290 |
|
| 11291 |
2014-02-24 Robert Dewar <[email protected]> |
| 11292 |
|
| 11293 |
* a-tags.adb, s-os_lib.adb: Minor reformatting. |
| 11294 |
|
| 11295 |
2014-02-24 Thomas Quinot <[email protected]> |
| 11296 |
|
| 11297 |
* g-sercom-mingw.adb, g-sercom-linux.adb (Raise_Error): Include |
| 11298 |
strerror message, not just numeric errno value. |
| 11299 |
|
| 11300 |
2014-02-24 Doug Rupp <[email protected]> |
| 11301 |
|
| 11302 |
* raise-gcc.c (exception_class_eq): Make endian neutral. |
| 11303 |
|
| 11304 |
2014-02-24 Ed Schonberg <[email protected]> |
| 11305 |
|
| 11306 |
* atree.ads, atree,adb (Copy_Separate_Tree): Remove Syntax_Only |
| 11307 |
flag, and reset Etype and Analyzed attributes unconditionally |
| 11308 |
when copying a tree that may be partly analyzed. |
| 11309 |
* freeze.adb: Change calls to Copy_Separate_Tree accordingly. |
| 11310 |
* sem_ch6.adb (Check_Inline_Pragma): If the Inline pragma appears |
| 11311 |
within a subprogram body and applies to it, remove it from the |
| 11312 |
body before making a copy of it, to prevent spurious errors when |
| 11313 |
analyzing the copied body. |
| 11314 |
|
| 11315 |
2014-02-24 Thomas Quinot <[email protected]> |
| 11316 |
|
| 11317 |
* s-os_lib.adb (Errno_Message): Do not depend on Integer'Image. |
| 11318 |
* s-oscons-tmplt.c: On VxWorks, include adaint.h only after |
| 11319 |
vxWorks.h has been included. Also ensure that file attributes |
| 11320 |
related definitions are output even in cases where socket support |
| 11321 |
is not enabled. |
| 11322 |
* a-tags.adb: Code clean up. |
| 11323 |
* Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Use -iquote |
| 11324 |
instead of -I to add the main ada source directory to the header |
| 11325 |
search path, in order to avoid conflict between our own "types.h" |
| 11326 |
and VxWork's <types.h>. |
| 11327 |
|
| 11328 |
2014-02-24 Robert Dewar <[email protected]> |
| 11329 |
|
| 11330 |
* atree.ads, atree.adb (Copy_Separate_Tree): Add Syntax_Only parameter. |
| 11331 |
* debug.adb: Remove documentation of -gnatd.X, no longer used. |
| 11332 |
* freeze.adb (Wrap_Imported_Subprogram): Fixed and activated. |
| 11333 |
|
| 11334 |
2014-02-24 Bob Duff <[email protected]> |
| 11335 |
|
| 11336 |
* gnat_ugn.texi: Improve documentation of gnatpp. |
| 11337 |
|
| 11338 |
2014-02-24 Thomas Quinot <[email protected]> |
| 11339 |
|
| 11340 |
* g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads, |
| 11341 |
g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb, |
| 11342 |
g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb, |
| 11343 |
g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not |
| 11344 |
a chars_ptr, because on Windows this is a renaming of |
| 11345 |
Socket_Error_Message. |
| 11346 |
|
| 11347 |
2014-02-24 Robert Dewar <[email protected]> |
| 11348 |
|
| 11349 |
* a-direct.adb, sem_ch5.adb, a-cfdlli.adb, a-cfhase.adb, a-tags.adb, |
| 11350 |
s-filatt.ads, a-cforma.adb, sem_ch6.adb, g-socthi-mingw.adb, |
| 11351 |
a-cfhama.adb, a-cforse.adb, a-cofove.adb: Minor reformatting and code |
| 11352 |
reorganization. |
| 11353 |
|
| 11354 |
2014-02-24 Thomas Quinot <[email protected]> |
| 11355 |
|
| 11356 |
* Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Make sure |
| 11357 |
that the source directory containing s-oscons-tmplt.c is on the |
| 11358 |
include path, so that all internal header files are available. |
| 11359 |
|
| 11360 |
2014-02-24 Ed Schonberg <[email protected]> |
| 11361 |
|
| 11362 |
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the |
| 11363 |
domain of iteration is an attribute reference 'Old, this is an |
| 11364 |
Ada 2012 iterator and the loop must be rewritten as such. |
| 11365 |
|
| 11366 |
2014-02-24 Thomas Quinot <[email protected]> |
| 11367 |
|
| 11368 |
* s-fileio.adb (Errno_Message): Remove, use shared version from |
| 11369 |
s-os_lib instead. |
| 11370 |
* s-crtrun.ads, Makefile.rtl: Remove now unused unit. |
| 11371 |
* g-stseme (Socket_Error_Message): Reimplement in terms of new |
| 11372 |
s-os_lib function. |
| 11373 |
* g-socthi.ads, g-socthi.adb: Change profile of |
| 11374 |
Socket_Error_Message to return String to allow the above. |
| 11375 |
* g-socket.adb, g-socthi-mingw.adb, g-socthi-mingw.ads, |
| 11376 |
* g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb, |
| 11377 |
* g-socthi-vxworks.ads: Update to account for the above profile |
| 11378 |
change. |
| 11379 |
* a-tags.adb: Use strlen builtin binding provided by s-crtl. |
| 11380 |
* s-crtl.ads (strncpy): New procedure. |
| 11381 |
* s-os_lib.adb (Copy_Attributes): Import just once (strncpy): |
| 11382 |
Use import from s-crtl. |
| 11383 |
* a-envvar.adb, osint.adb: Use imports of C runtime functions |
| 11384 |
from s-crtl instead of re-importing locally. |
| 11385 |
|
| 11386 |
2014-02-24 Hristian Kirtchev <[email protected]> |
| 11387 |
|
| 11388 |
* sem_prag.adb (Analyze_Global_Item): Emit the |
| 11389 |
variable related checks concerning volatile objects only when |
| 11390 |
SPARK_Mode is on. |
| 11391 |
|
| 11392 |
2014-02-24 Robert Dewar <[email protected]> |
| 11393 |
|
| 11394 |
* sem_ch5.adb (Analyze_Iterator_Specification): use |
| 11395 |
Error_Msg_Ada_2012_Feature. |
| 11396 |
|
| 11397 |
2014-02-24 Jose Ruiz <[email protected]> |
| 11398 |
|
| 11399 |
* s-rident.ads (Profile_Info): For Ravenscar, the restrictions |
| 11400 |
No_Local_Timing_Events and No_Specific_Termination_Handlers |
| 11401 |
must be set, according to the Ravenscar profile definition |
| 11402 |
in D.13(6/3). |
| 11403 |
|
| 11404 |
2014-02-24 Ed Schonberg <[email protected]> |
| 11405 |
|
| 11406 |
* sem_ch6.adb (Analyze_Expression_Function): If this is a |
| 11407 |
completion, freeze return type and its designated type if needed. |
| 11408 |
|
| 11409 |
2014-02-24 Thomas Quinot <[email protected]> |
| 11410 |
|
| 11411 |
* sem_ch13.adb (Analyze_Attribute_Definition_Clause, case |
| 11412 |
'Address): When moving initialization statements to a freeze |
| 11413 |
entity, keep them under a single node (i.e. do not unwrap |
| 11414 |
expressions with actions), and set the Initialization_Statements |
| 11415 |
attribute again so that processing of a later pragma Import can |
| 11416 |
still remove them. |
| 11417 |
|
| 11418 |
2014-02-24 Claire Dross <[email protected]> |
| 11419 |
|
| 11420 |
* a-cfdlli.adb, a-cfdlli.ads, a-cfhama.adb, a-cfhama.ads, |
| 11421 |
a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads, |
| 11422 |
a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads: Rename |
| 11423 |
Left/Right to First_To_Previous/Current_To_Last. |
| 11424 |
|
| 11425 |
2014-02-24 Thomas Quinot <[email protected]> |
| 11426 |
|
| 11427 |
* adaint.h (struct file_attributes): New component "error" |
| 11428 |
(__gnat_error_attributes): Accessor for the above. |
| 11429 |
* adaint.c (__gnat_error_attributes): New subprogram |
| 11430 |
(__gnat_stat): Fix returned value (expect errno value) |
| 11431 |
(__gnat_stat_to_attr): Add management of error component (set to |
| 11432 |
stat errno value, except for missing files where it is set to 0, |
| 11433 |
and exists is set to 0). |
| 11434 |
* osint.ads (File_Attributes_Size): Update per change above, |
| 11435 |
also clarify documentation. |
| 11436 |
* s-filatt.ads: New file, binding to file attributes related |
| 11437 |
functions. |
| 11438 |
* Makefile.rtl (s-filatt): New runtime unit. |
| 11439 |
* s-crtl.ads (strlen): Expose binding to GCC builtin (falls back |
| 11440 |
to library function if not available on target). |
| 11441 |
* s-os_lib.ads, s-os_lib.adb (Errno_Message): New subprogram. |
| 11442 |
* s-oscons-tmplt.c (SIZEOF_struct_file_attributes, |
| 11443 |
SIZEOF_struct_dirent_alloc): New constants. |
| 11444 |
* Make-generated.in (s-oscons.ads): Now requires adaint.h. |
| 11445 |
* a-direct.adb (Fetch_Next_Entry): Fix incorrect buffer sizes. |
| 11446 |
Perform appropriate error checking if stat fails (do not just |
| 11447 |
ignore existing files if stat fails) |
| 11448 |
* gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Update |
| 11449 |
dependencies. |
| 11450 |
|
| 11451 |
2014-02-24 Hristian Kirtchev <[email protected]> |
| 11452 |
|
| 11453 |
* sem_prag.adb (Analyze_Global_Item): Move the check concerning |
| 11454 |
the use of volatile objects as global items in a function to |
| 11455 |
the variable related checks section. |
| 11456 |
* sem_util.adb (Async_Readers_Enabled): Directly call |
| 11457 |
Has_Enabled_Property. |
| 11458 |
(Async_Writers_Enabled): Directly call Has_Enabled_Property. |
| 11459 |
(Effective_Reads_Enabled): Directly call Has_Enabled_Property. |
| 11460 |
(Effective_Writes_Enabled): Directly call Has_Enabled_Property. |
| 11461 |
(Has_Enabled_Property): Rename formal parameter State_Id to Item_Id. |
| 11462 |
Update the comment on usage. State_Has_Enabled_Property how handles |
| 11463 |
the original logic of the routine. Add processing for variables. |
| 11464 |
(State_Has_Enabled_Property): New routine. |
| 11465 |
(Variable_Has_Enabled_Property): New routine. |
| 11466 |
|
| 11467 |
2014-02-24 Robert Dewar <[email protected]> |
| 11468 |
|
| 11469 |
* sinfo.ads, sem_ch12.adb, sem_res.adb, sem_ch4.adb, par-ch12.adb: |
| 11470 |
Minor reformatting. |
| 11471 |
* atree.ads, atree.adb (Node35): New function. |
| 11472 |
(Set_Node35): New procedure. |
| 11473 |
* debug.adb: Define new debug flag -gnatd.X. |
| 11474 |
* einfo.ads, einfo.adb (Import_Pragma): New field. |
| 11475 |
* freeze.adb (Wrap_Imported_Procedure): New procedure (not |
| 11476 |
really active yet, has to be activated with -gnatd.X. |
| 11477 |
* sem_prag.adb (Set_Imported): Set new Import_Pragma |
| 11478 |
field (Set_Imported): Don't set Is_Public (see |
| 11479 |
Freeze.Wrap_Imported_Subprogram) |
| 11480 |
* par-ch3.adb (P_Component_List): Handle unexpected null component. |
| 11481 |
|
| 11482 |
2014-02-24 Yannick Moy <[email protected]> |
| 11483 |
|
| 11484 |
* sem_ch3.adb: Correct reference to SPARK RM in error messages. |
| 11485 |
* gnat_rm.texi: Correct documentation of attribute Update. |
| 11486 |
|
| 11487 |
2014-02-24 Ed Schonberg <[email protected]> |
| 11488 |
|
| 11489 |
* sem_ch5.adb (Analyze_Iterator_Specification): Reject container |
| 11490 |
iterator in older versions of Ada. |
| 11491 |
|
| 11492 |
2014-02-24 Gary Dismukes <[email protected]> |
| 11493 |
|
| 11494 |
* sem_ch5.adb, sem_aux.ads, sem_ch12.adb, gnat_ugn.texi, par.adb, |
| 11495 |
par-ch12.adb: Change spelling 'parametrization' to 'parameterization'. |
| 11496 |
|
| 11497 |
2014-02-24 Ed Schonberg <[email protected]> |
| 11498 |
|
| 11499 |
* sinfo.ads, sinfo.adb: New attribute Generalized_Indexing, for |
| 11500 |
indexed_components that are instances of Ada 2012 container |
| 11501 |
indexing operations. Analysis and resolution of such nodes |
| 11502 |
is performed on the attribute, and the original source is |
| 11503 |
preserved for ASIS operations. If expansion is enabled, the |
| 11504 |
indexed component is replaced by the value of this attribute, |
| 11505 |
which is in a call to an Indexing aspect, in most case wrapped |
| 11506 |
in a dereference operation. |
| 11507 |
* sem_ch4.adb (Analyze_Indexed_Component): Create |
| 11508 |
Generalized_Indexing attribute when appropriate. |
| 11509 |
(Analyze_Call): If prefix is not overloadable and has an indexing |
| 11510 |
aspect, transform into an indexed component so it can be analyzed |
| 11511 |
as a potential container indexing. |
| 11512 |
(Analyze_Expression): If node is an indexed component with a |
| 11513 |
Generalized_ Indexing, do not re-analyze. |
| 11514 |
* sem_res.adb (Resolve_Generalized_Indexing): Complete resolution |
| 11515 |
of an indexed_component that has been transformed into a container |
| 11516 |
indexing operation. |
| 11517 |
(Resolve_Indexed_Component): Call the above when required. |
| 11518 |
(Resolve): Do not insert an explicit dereference operation on |
| 11519 |
an indexed_component whose type has an implicit dereference: |
| 11520 |
the operation is inserted when resolving the related |
| 11521 |
Generalized_Indexing. |
| 11522 |
|
| 11523 |
2014-02-24 Olivier Ramonat <[email protected]> |
| 11524 |
|
| 11525 |
* gnat_rm.texi, gnat_ugn.texi: Replace Ada Compiler by Ada Development |
| 11526 |
Environment. |
| 11527 |
|
| 11528 |
2014-02-24 Hristian Kirtchev <[email protected]> |
| 11529 |
|
| 11530 |
* sem_prag.adb (Check_Constituent_Usage): Remove leading spaces in |
| 11531 |
error messages. |
| 11532 |
(Inconsistent_Mode_Error): Remove leading spaces in error messages. |
| 11533 |
Merge the expected and available mode errors. |
| 11534 |
(Report_Unused_Constituents): Remove leading spaces in error messages. |
| 11535 |
(Report_Unused_States): Remove leading spaces in error messages. |
| 11536 |
|
| 11537 |
2014-02-24 Thomas Quinot <[email protected]> |
| 11538 |
|
| 11539 |
* par_sco.adb (Traverse_One): Refine categorization of statement |
| 11540 |
SCOs. |
| 11541 |
|
| 11542 |
2014-02-24 Robert Dewar <[email protected]> |
| 11543 |
|
| 11544 |
* aspects.ads, aspects.adb: Remove aspects Ada_2005 and Ada_2012, |
| 11545 |
Pure_05, Pure_12 and Preelaborate_05. |
| 11546 |
* gnat_rm.texi: Update accordingly. |
| 11547 |
* sem_prag.adb: Document one argument form of Ada_05/Ada_2005 |
| 11548 |
pragmas Document one argument form of Ada_12/Ada_2012 pragmas |
| 11549 |
Recognize one argument form of these pragmas only in GNAT mode |
| 11550 |
(-gnatg). |
| 11551 |
|
| 11552 |
2014-02-24 Ed Schonberg <[email protected]> |
| 11553 |
|
| 11554 |
* s-dimmks.ads: Replace symbol for temperature, previously the |
| 11555 |
Greek letter Theta, by the ASCII @ sign. |
| 11556 |
* s-diflio.ads: ditto. |
| 11557 |
|
| 11558 |
2014-02-24 Robert Dewar <[email protected]> |
| 11559 |
|
| 11560 |
* exp_ch4.adb: Minor code reorganization (use OR for boolean |
| 11561 |
variables). |
| 11562 |
* sem_ch3.adb, sem_prag.adb, freeze.adb: Minor reformatting. |
| 11563 |
|
| 11564 |
2014-02-24 Ben Brosgol <[email protected]> |
| 11565 |
|
| 11566 |
* gnat_ugn.texi, projects.texi: Added the necessary conditionalization |
| 11567 |
so that references to gnatmem and ASIS tools do not appear in the FSF |
| 11568 |
edition of the GNAT User's Guide. |
| 11569 |
|
| 11570 |
2014-02-24 Yannick Moy <[email protected]> |
| 11571 |
|
| 11572 |
* freeze.adb (Freeze_Entity): Do not issue warning |
| 11573 |
for pre/post being ignored on imported subprogram in GNATprove |
| 11574 |
mode. |
| 11575 |
|
| 11576 |
2014-02-24 Robert Dewar <[email protected]> |
| 11577 |
|
| 11578 |
* exp_ch5.adb, sem_ch5.adb, sem_type.adb, sem_res.adb, sem_attr.adb, |
| 11579 |
stand.ads, sem_eval.adb: Minor reformatting. |
| 11580 |
|
| 11581 |
2014-02-24 Yannick Moy <[email protected]> |
| 11582 |
|
| 11583 |
* sem_prag.adb: Minor rewording in error message. |
| 11584 |
|
| 11585 |
2014-02-24 Johannes Kanig <[email protected]> |
| 11586 |
|
| 11587 |
* exp_util.adb (Expand_Subtype_From_Expr): Do not expand subtypes in |
| 11588 |
GNATprove_mode, gnat2why doesn't need nor use these types. |
| 11589 |
|
| 11590 |
2014-02-24 Gary Dismukes <[email protected]> |
| 11591 |
|
| 11592 |
* exp_ch4.adb (Expand_N_Op_Expon): On the AAMP |
| 11593 |
target, in the case of signed integer exponentiation that uses a |
| 11594 |
run-time routine, always select the Exp_* versions, since overflow |
| 11595 |
checking is automatically done by AAMP arithmetic instructions. |
| 11596 |
|
| 11597 |
2014-02-24 Hristian Kirtchev <[email protected]> |
| 11598 |
|
| 11599 |
* sem_ch13.adb (Analyze_Aspect_Specifications): |
| 11600 |
When the related context is a package instace, insert pragma |
| 11601 |
Abstract_State after all internally-generated renamings related |
| 11602 |
to the instance "header". |
| 11603 |
|
| 11604 |
2014-02-24 Ed Schonberg <[email protected]> |
| 11605 |
|
| 11606 |
* sem_ch3.adb (Analyze_Declarations): Analyze Contract of abstract |
| 11607 |
subprograms. |
| 11608 |
* sem_disp.adb (Check_Dispatching_Context): A non-dispatching |
| 11609 |
call to an abstract subprogram is legal if it appears in a |
| 11610 |
pre/postcondition of another abstract operation. |
| 11611 |
|
| 11612 |
2014-02-24 Sergey Rybin <[email protected] frybin> |
| 11613 |
|
| 11614 |
* gnat_ugn.texi: Misc updates. |
| 11615 |
|
| 11616 |
2014-02-24 Hristian Kirtchev <[email protected]> |
| 11617 |
|
| 11618 |
* exp_prag.adb (Expand_Old): Set the type of the generated temporary. |
| 11619 |
|
| 11620 |
2014-02-24 Gary Dismukes <[email protected]> |
| 11621 |
|
| 11622 |
* layout.adb (Layout_Variant_Record): Instantiate |
| 11623 |
Generic_Check_Choices and call Check_Choices before calling |
| 11624 |
Build_Discr_Checking_Funcs, since we need Others_Discrete_Choices |
| 11625 |
set to prevent generating incorrect discriminant-checking |
| 11626 |
functions for 'others' variants (functions that unconditionally |
| 11627 |
return True rather than accounting for the values covered by the |
| 11628 |
'others' choice). |
| 11629 |
* sem_eval.ads (Subtypes_Statically_Compatible): Add formal |
| 11630 |
Formal_Derived_Matching. |
| 11631 |
(Subtypes_Statically_Match): Add formal Formal_Derived_Matching. |
| 11632 |
* sem_eval.adb (Subtypes_Statically_Compatible): Pass new |
| 11633 |
Formal_Derived_Matching formal to Subtypes_Statically_Match. |
| 11634 |
(Subtypes_Statically_Match): Suppress the Object_Size matching |
| 11635 |
test in the case where Formal_Derived_Matching is True. |
| 11636 |
* sem_ch12.adb (Validate_Derived_Type_Instance): Pass |
| 11637 |
True for Formal_Derived_Matching_Formal on the call to |
| 11638 |
Subtypes_Statically_Compatible. |
| 11639 |
|
| 11640 |
2014-02-23 Eric Botcazou <[email protected]> |
| 11641 |
|
| 11642 |
* gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS): Robustify. |
| 11643 |
|
| 11644 |
2014-02-23 Eric Botcazou <[email protected]> |
| 11645 |
|
| 11646 |
* gcc-interface/utils2.c (build_simple_component_ref): Fix formatting. |
| 11647 |
Look through a conversion between original and packable version to get |
| 11648 |
the base object. |
| 11649 |
(build_component_ref): Rework comment and fix formatting. |
| 11650 |
|
| 11651 |
2014-02-20 Sergey Rybin <[email protected] frybin> |
| 11652 |
|
| 11653 |
* gnat_ugn.texi, vms_data.ads (gnatelim): Add description of |
| 11654 |
project-specific options. |
| 11655 |
|
| 11656 |
2014-02-20 Ed Schonberg <[email protected]> |
| 11657 |
|
| 11658 |
* a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error, |
| 11659 |
not Constraint_Error. |
| 11660 |
* a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto. |
| 11661 |
* sem_ch5.adb: Code clean up. |
| 11662 |
|
| 11663 |
2014-02-20 Hristian Kirtchev <[email protected]> |
| 11664 |
|
| 11665 |
* sem_prag.adb (Usage_Error): Remove local |
| 11666 |
constant Typ. Remove the specialized diagnostics for unconstrained |
| 11667 |
or tagged items as those are not part of the explicit input set |
| 11668 |
of the related subprogram and should not be flagged. |
| 11669 |
|
| 11670 |
2014-02-20 Ed Schonberg <[email protected]> |
| 11671 |
|
| 11672 |
* sem_attr.adb: Add guard to preserve all errors. |
| 11673 |
|
| 11674 |
2014-02-20 Vincent Celier <[email protected]> |
| 11675 |
|
| 11676 |
* switch-m.adb (Normalize_Compiler_Switches): Take into account |
| 11677 |
switches that are recorded in ALI files: -gnateA, -gnateE, |
| 11678 |
-gnateF, -gnateinn, -gnateu, -gnateV and -gnateY. |
| 11679 |
|
| 11680 |
2014-02-20 Ed Schonberg <[email protected]> |
| 11681 |
|
| 11682 |
* sem_ch5.adb (Analyze_Iterator_Specification): Check legality |
| 11683 |
of an element iterator form over a formal container with an |
| 11684 |
Iterable aspect. |
| 11685 |
* exp_ch5.adb (Build_Formal_Container_Iteration): Utility |
| 11686 |
to create declaration and loop statements for both forms of |
| 11687 |
container iterators. |
| 11688 |
(Expand_Formal_Container_Element_Iterator): New procedure |
| 11689 |
to handle loops of the form "for E of C" when C is a formal |
| 11690 |
container. |
| 11691 |
(Expand_Formal_Container_Iterator): Code cleanup. |
| 11692 |
|
| 11693 |
2014-02-20 Hristian Kirtchev <[email protected]> |
| 11694 |
|
| 11695 |
* sem_prag.adb (Add_Item_To_Name_Buffer): New routine. |
| 11696 |
(Analyze_Contract_Case): Remove the use of |
| 11697 |
"may". Replace "aspect Contract_Cases" to avoid categorization |
| 11698 |
of aspect vs pragma. |
| 11699 |
(Analyze_External_Property_In_Decl_Part): Remove the use of "formal". |
| 11700 |
(Analyze_Global_Item): Remove |
| 11701 |
the use of "formal", specify the subprogram. Split the |
| 11702 |
error message about a state with visible refinement into |
| 11703 |
two. Remove the use of "global" from "volatile global item". |
| 11704 |
(Analyze_Initialization_Item): Ensure that the SPARK RM reference |
| 11705 |
is on one line. |
| 11706 |
(Analyze_Input_Output): Update the call to |
| 11707 |
Check_Mode. Specify the duplicated item. Reword the error |
| 11708 |
message concerning an input of a null output list. Use "\" |
| 11709 |
for error message continuation. |
| 11710 |
(Analyze_Part_Of): Remove |
| 11711 |
the use of "may". Use "\" for error message continuation. |
| 11712 |
(Analyze_Refined_Depends_In_Decl_Part): Update the error |
| 11713 |
message concerning a useless refinement to match the format |
| 11714 |
of Refined_Global. |
| 11715 |
(Analyze_Refined_Global_In_Decl_Part): Reword the error message |
| 11716 |
concerning a useless refinement. |
| 11717 |
(Analyze_Refinement_Clause): Use "\" for error message continuation. |
| 11718 |
(Check_Constituent_Usage): Use "\" for error message continuation. |
| 11719 |
(Check_Dependency_Clause): Use "\" for error message continuation. |
| 11720 |
(Check_Matching_Constituent): Use "\" for error message continuation. |
| 11721 |
(Check_Missing_Part_Of): Use "\" for error message continuation. |
| 11722 |
(Check_Mode): Renamed to |
| 11723 |
Check_Role. Update the comment on usage. Redo the error reporting |
| 11724 |
to use Role_Error. |
| 11725 |
(Check_Mode_Restriction_In_Enclosing_Context): Use "\" for error |
| 11726 |
message continuation. |
| 11727 |
(Find_Mode): Renamed to Find_Role. Update the parameter profile along |
| 11728 |
with comment on usage. Update all occurrences of Is_Input and Is_Output. |
| 11729 |
(Inconsistent_Mode_Error): Use "\" for error message continuation. |
| 11730 |
(Input_Match): Use "\" for error message continuation. |
| 11731 |
(Role_Error): New routine. |
| 11732 |
(Set_Convention_From_Pragma): Use "\" for error message continuation. |
| 11733 |
(Usage_Error): Add local variable Error_Msg. Build specialized error |
| 11734 |
message showcasing the offending item kind. Redo the diagnostics for |
| 11735 |
unconstrained types. |
| 11736 |
|
| 11737 |
2014-02-20 Ed Schonberg <[email protected]> |
| 11738 |
|
| 11739 |
* exp_util.adb (Is_Iterated_Container): Use high-level primitives |
| 11740 |
to determine whether a type is a container type, rather than |
| 11741 |
examining only its type declaration, so that subtypes and derived |
| 11742 |
types are handled properly. |
| 11743 |
|
| 11744 |
2014-02-20 Sergey Rybin <[email protected] frybin> |
| 11745 |
|
| 11746 |
* gnat_ugn.texi: gnatmetric: add description of project-specific |
| 11747 |
options. |
| 11748 |
|
| 11749 |
2014-02-20 Ed Schonberg <[email protected]> |
| 11750 |
|
| 11751 |
* sem_attr.adb (Analyze_Attribute, case 'Update): Verify that |
| 11752 |
all choices in an association for a record type have the same |
| 11753 |
type, as is done for record aggregates. |
| 11754 |
|
| 11755 |
2014-02-20 Robert Dewar <[email protected]> |
| 11756 |
|
| 11757 |
* a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb: Use pragma |
| 11758 |
Unmodified rather than Warnings (Off). Make comments |
| 11759 |
uniform in the four affected units. |
| 11760 |
|
| 11761 |
2014-02-20 Robert Dewar <[email protected]> |
| 11762 |
|
| 11763 |
* sem_ch13.adb (Analyze_Attribute_Definition_Clause, case |
| 11764 |
Object_Size): For non-scalar types allow any value that is a |
| 11765 |
multiple of 8. |
| 11766 |
* gnat_rm.texi: Document Object_Size for composites more clearly. |
| 11767 |
|
| 11768 |
2014-02-20 Yannick Moy <[email protected]> |
| 11769 |
|
| 11770 |
* sem_util.ads, sem_util.adb (Default_Initialization): Remove function. |
| 11771 |
|
| 11772 |
2014-02-20 Ed Schonberg <[email protected]> |
| 11773 |
|
| 11774 |
* stand.ads: Raise_Type: new predefined entity, used as the type |
| 11775 |
of a Raise_Expression prior to resolution. |
| 11776 |
* cstand.adb: Build entity for Raise_Type. |
| 11777 |
* sem_ch11.adb (Analyze_Raise_Expression): use Raise_Type as the |
| 11778 |
initial type of the node. |
| 11779 |
* sem_type.adb (Covers): Raise_Type is compatible with all |
| 11780 |
other types. |
| 11781 |
* sem_res.adb (Resolve): Remove special handling of Any_Type on |
| 11782 |
Raise_Expression nodes. |
| 11783 |
(Resolve_Raise_Expression): Signal ambiguity if the type of the |
| 11784 |
context is still Raise_Type. |
| 11785 |
|
| 11786 |
2014-02-20 Robert Dewar <[email protected]> |
| 11787 |
|
| 11788 |
* sem_ch12.adb (Validate_Access_Type_Instance): Add message if |
| 11789 |
mismatching predicates. |
| 11790 |
* sem_ch6.adb (Check_Conformance): Give better messages on |
| 11791 |
predicate mismatch. |
| 11792 |
* sem_eval.adb (Predicates_Match): Move to spec. |
| 11793 |
* sem_eval.ads (Predicates_Match): Moved here from body. |
| 11794 |
|
| 11795 |
2014-02-20 Ed Schonberg <[email protected]> |
| 11796 |
|
| 11797 |
* a-cbmutr.adb: Use default value in Insert_Child. |
| 11798 |
|
| 11799 |
2014-02-20 Vincent Celier <[email protected]> |
| 11800 |
|
| 11801 |
* gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: Call |
| 11802 |
Stringt.Initialize in all project aware tools. |
| 11803 |
|
| 11804 |
2014-02-20 Doug Rupp <[email protected]> |
| 11805 |
|
| 11806 |
* gnat_ugn.texi: Document gnatbind -X option. |
| 11807 |
* vms_data.ads: Minor warnings documentation reformatting. |
| 11808 |
|
| 11809 |
2014-02-20 Ed Schonberg <[email protected]> |
| 11810 |
|
| 11811 |
* exp_ch3.adb (Expand_Freeze_Array_Type): Only create invariant |
| 11812 |
procedure for a base type. |
| 11813 |
|
| 11814 |
2014-02-20 Robert Dewar <[email protected]> |
| 11815 |
|
| 11816 |
* sem_ch4.adb (Analyze_Case_Expression): Get type from first |
| 11817 |
expression with type info. |
| 11818 |
* sem_ch13.adb: Minor reformatting. |
| 11819 |
* sem_eval.adb (Subtypes_Statically_Match): Make sure we return |
| 11820 |
False if predicates do not match on the two types. |
| 11821 |
|
| 11822 |
2014-02-20 Arnaud Charlet <[email protected]> |
| 11823 |
|
| 11824 |
* sem_prag.adb (Analyze_Pragma [pragma Attach_Handler]): |
| 11825 |
In Relaxed_RM_Semantics mode, allow any static integer value, |
| 11826 |
for compatibility with other compilers. |
| 11827 |
|
| 11828 |
2014-02-20 Vincent Celier <[email protected]> |
| 11829 |
|
| 11830 |
* errutil.adb (Initialize): Properly initialize entry in table |
| 11831 |
Warnings when warnings are suppressed. |
| 11832 |
|
| 11833 |
2014-02-20 Robert Dewar <[email protected]> |
| 11834 |
|
| 11835 |
* s-os_lib.ads: Add warning about non-portability of Rename_File. |
| 11836 |
* sem_util.ads, sem_util.adb (Is_Junk_Name): New function. |
| 11837 |
* sem_warn.adb: Use Is_Junk_Name to suppress some warnings. |
| 11838 |
* gnat_ugn.texi: Document no warnings on junk variable names. |
| 11839 |
* layout.adb: Minor code reorganization (use Ekind_In). |
| 11840 |
* stringt.adb: Move initialization of Null_String_Id to Initialize |
| 11841 |
routine. |
| 11842 |
|
| 11843 |
2014-02-20 Ed Schonberg <[email protected]> |
| 11844 |
|
| 11845 |
* sem_ch13.adb: Initialize optional Element_Id. |
| 11846 |
|
| 11847 |
2014-02-20 Robert Dewar <[email protected]> |
| 11848 |
|
| 11849 |
* s-os_lib.ads (Rename_File): Minor commment addition. |
| 11850 |
|
| 11851 |
2014-02-20 Thomas Quinot <[email protected]> |
| 11852 |
|
| 11853 |
* einfo.ads: Minor reformatting. |
| 11854 |
|
| 11855 |
2014-02-20 Hristian Kirtchev <[email protected]> |
| 11856 |
|
| 11857 |
* aspects.adb (Exchange_Aspects): New routine. |
| 11858 |
* aspects.ads (Exchange_Aspects): New routine. |
| 11859 |
* atree.adb (Rewrite): Do not check whether the save node has |
| 11860 |
aspects as it never will, instead check the node about to be clobbered. |
| 11861 |
* einfo.adb (Write_Field25_Name): Abstract_States can appear in |
| 11862 |
entities of generic packages. |
| 11863 |
* sem_ch6.adb (Analyze_Expression_Function): Fix the parent |
| 11864 |
pointer of an aspect specification list after rewriting takes place. |
| 11865 |
* sem_ch7.adb (Analyze_Package_Body_Helper): Swap the aspect |
| 11866 |
specifications of the generic template and the copy used for analysis. |
| 11867 |
* sem_ch12.adb (Analyze_Generic_Package_Declaration): Swap |
| 11868 |
the aspect specifications of the generic template and the |
| 11869 |
copy used for analysis. |
| 11870 |
(Analyze_Package_Instantiation): Propagate the aspect specifications |
| 11871 |
from the generic template to the instantiation. |
| 11872 |
(Build_Instance_Compilation_Unit_Nodes): Propagate the aspect |
| 11873 |
specifications from the generic template to the instantiation. |
| 11874 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Handle aspects |
| 11875 |
Abstract_State, Initializes and Initial_Condition when they |
| 11876 |
apply to a package instantiation. |
| 11877 |
|
| 11878 |
2014-02-20 Robert Dewar <[email protected]> |
| 11879 |
|
| 11880 |
* stringt.adb: Add call to Initialize in package initialization. |
| 11881 |
|
| 11882 |
2014-02-20 Robert Dewar <[email protected]> |
| 11883 |
|
| 11884 |
* a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb, |
| 11885 |
a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb, |
| 11886 |
a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb, |
| 11887 |
a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor |
| 11888 |
reformatting. |
| 11889 |
|
| 11890 |
2014-02-20 Bob Duff <[email protected]> |
| 11891 |
|
| 11892 |
* s-os_lib.ads: Minor: Remove incorrect comment. |
| 11893 |
|
| 11894 |
2014-02-20 Robert Dewar <[email protected]> |
| 11895 |
|
| 11896 |
* sem_elab.adb (Check_Elab_Assign): Clearer warning message. |
| 11897 |
|
| 11898 |
2014-02-20 Ed Schonberg <[email protected]> |
| 11899 |
|
| 11900 |
* a-cborma.adb (Assign): When creating a node without a specified |
| 11901 |
element, insert an uninitialized element in the map, because |
| 11902 |
the instance may provide an element type with a default |
| 11903 |
initialization, e.g a scalar with a Default_Value aspect. |
| 11904 |
* a-cbhama.adb (Assign_Key): Remove useless Allocate procedure. |
| 11905 |
(Insert): In the version without explicit element, provide an |
| 11906 |
uninitialized element, as above. |
| 11907 |
* a-cbdlli.adb (Append): In the version without explicit element, |
| 11908 |
provide an uninitalized element, as above. |
| 11909 |
(Allocate): Remove unused version. |
| 11910 |
|
| 11911 |
2014-02-20 Robert Dewar <[email protected]> |
| 11912 |
|
| 11913 |
* sem_elab.adb: Minor code reorganization (use Nkind_In). |
| 11914 |
* stringt.adb: Remove temporary pragma Warnings (Off). |
| 11915 |
* stringt.ads: Add pragma Elaborate_Body to ensure initialization |
| 11916 |
of Null_String_Id. |
| 11917 |
|
| 11918 |
2014-02-20 Matthew Heaney <[email protected]> |
| 11919 |
|
| 11920 |
* a-chtgbk.adb (Replace): Use correct offset when calculating bucket |
| 11921 |
index. |
| 11922 |
|
| 11923 |
2014-02-20 Ed Schonberg <[email protected]> |
| 11924 |
|
| 11925 |
* sem_ch5.adb (Analyze_Iterator_Specification): Initialize |
| 11926 |
properly the cursor type for subsequent volatile testing in SPARK |
| 11927 |
mode, when domain is a formal container with an Iterabe aspect. |
| 11928 |
|
| 11929 |
2014-02-20 Robert Dewar <[email protected]> |
| 11930 |
|
| 11931 |
* errout.adb (Set_Warnings_Mode_Off): Add Reason argument. |
| 11932 |
(Set_Specific_Warning_Off): Add Reason argument. |
| 11933 |
* errout.ads (Set_Warnings_Mode_Off): Add Reason argument. |
| 11934 |
(Set_Specific_Warning_Off): Add Reason argument. |
| 11935 |
* erroutc.adb (Warnings_Entry): Add Reason field |
| 11936 |
(Specific_Warning_Entry): Add Reason field. |
| 11937 |
(Warnings_Suppressed): return String_Id for Reason. |
| 11938 |
(Warning_Specifically_Suppressed): return String_Id for Reason. |
| 11939 |
* erroutc.ads (Warnings_Entry): Add Reason field. |
| 11940 |
(Specific_Warning_Entry): Add Reason field. |
| 11941 |
(Set_Specific_Warning_Off): Add Reason argument. |
| 11942 |
(Set_Warnings_Mode_Off): Add Reason argument. |
| 11943 |
(Warnings_Suppressed): return String_Id for Reason. |
| 11944 |
(Warning_Specifically_Suppressed): return String_Id for Reason. |
| 11945 |
* errutil.adb (Warnings_Suppressed): returns String_Id for Reason |
| 11946 |
(Warning_Specifically_Suppressed): returns String_Id for Reason |
| 11947 |
* gnat_rm.texi: Document that Warning parameter is string literal |
| 11948 |
or a concatenation of string literals. |
| 11949 |
* par-prag.adb: New handling for Reason argument. |
| 11950 |
* sem_prag.adb (Analyze_Pragma, case Warning): New handling |
| 11951 |
for Reason argument. |
| 11952 |
* sem_util.ads, sem_util.adb (Get_Reason_String): New procedure. |
| 11953 |
* sem_warn.ads (Warnings_Off_Entry): Add reason field. |
| 11954 |
* stringt.adb: Set Null_String_Id. |
| 11955 |
* stringt.ads (Null_String_Id): New constant. |
| 11956 |
|
| 11957 |
2014-02-20 Robert Dewar <[email protected]> |
| 11958 |
|
| 11959 |
* einfo.ads: Minor comment addition: Etype of package is |
| 11960 |
Standard_Void_Type. |
| 11961 |
* checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb, |
| 11962 |
exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, |
| 11963 |
exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb, |
| 11964 |
exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb, |
| 11965 |
freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb, |
| 11966 |
sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, |
| 11967 |
sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb, |
| 11968 |
sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To. |
| 11969 |
Replace all calls with calls to New_Occurrence_Of. |
| 11970 |
|
| 11971 |
2014-02-20 Robert Dewar <[email protected]> |
| 11972 |
|
| 11973 |
* par-util.adb (Ignore, case of right paren): Make this a |
| 11974 |
serious error. |
| 11975 |
|
| 11976 |
2014-02-19 Robert Dewar <[email protected]> |
| 11977 |
|
| 11978 |
* sem_ch5.adb, sem_prag.adb, sem_attr.adb: Minor reformatting. |
| 11979 |
* debug.adb: Remove -gnatd.X switch, no longer used. |
| 11980 |
* styleg.adb (Check_Then): Remove check of -gnatd.X, check is |
| 11981 |
now always made. |
| 11982 |
|
| 11983 |
2014-02-19 Bob Duff <[email protected]> |
| 11984 |
|
| 11985 |
* g-socket.ads: Minor: Correct some comments. |
| 11986 |
|
| 11987 |
2014-02-19 Ed Schonberg <[email protected]> |
| 11988 |
|
| 11989 |
* sem_ch5.adb: Inhibit iterator rewriting in ASIS mode. |
| 11990 |
|
| 11991 |
2014-02-19 Arnaud Charlet <[email protected]> |
| 11992 |
|
| 11993 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Do not generate |
| 11994 |
an error on out of range priorities if Relaxed_RM_Semantics. |
| 11995 |
* sem_prag.adb (Analyze_Pragma): Ditto. |
| 11996 |
|
| 11997 |
2014-02-19 Bob Duff <[email protected]> |
| 11998 |
|
| 11999 |
* sem_attr.adb (Resolve_Attribute): Detect the case of F'Access |
| 12000 |
where F denotes the renaming of an enumeration literal, and |
| 12001 |
issue a specialized error message. |
| 12002 |
|
| 12003 |
2014-02-19 Matthew Heaney <[email protected]> |
| 12004 |
|
| 12005 |
* a-chtgop.ads (Checked_Index): New operation. |
| 12006 |
(Next): Changed mode of hash table. |
| 12007 |
* a-chtgop.adb (Adjust, Delete_Node_Sans_Free): Detect tampering |
| 12008 |
(Generic_Read, Reserve_Capacity): Ditto. |
| 12009 |
(Generic_Equal): Detect tampering. |
| 12010 |
(Next): Changed mode of hash table, detect tampering. |
| 12011 |
* a-chtgke.ads (Checked_Index, Checked_Equivalent_Keys): New |
| 12012 |
operation. |
| 12013 |
(Find): Changed mode of hash table. |
| 12014 |
* a-chtgke.adb (Checked_Equivalent_Keys): New operation |
| 12015 |
(Delete_Key_Sans_Free, Generic_Conditional_Insert): Detect |
| 12016 |
tampering. |
| 12017 |
(Find): Changed mode of hash table, check for tampering. |
| 12018 |
(Generic_Replace_Element): Check for tampering. |
| 12019 |
* a-chtgbk.ads (Checked_Index, Checked_Equivalent_Keys): New operation. |
| 12020 |
* a-chtgbk.adb (Checked_Index, Checked_Equivalent_Keys): New |
| 12021 |
operation (Delete_Key_Sans_Free, Generic_Conditional_Insert): |
| 12022 |
Detect tampering. |
| 12023 |
(Find, Generic_Replace_Element): Check for tampering. |
| 12024 |
* a-chtgbo.ads (Checked_Index): New operation. |
| 12025 |
* a-chtgbo.adb (Checked_Index): New operation |
| 12026 |
(Delete_Node_Sans_Free, Generic_Equal): Detect tampering. |
| 12027 |
(Generic_Read, Next): Ditto. |
| 12028 |
* a-cohase.adb, a-cihase.adb (Is_In): Changed mode of hash |
| 12029 |
table (Difference, Intersection): Use variable view of |
| 12030 |
source, detect tampering (Find, Is_Subset, Overlap): Use |
| 12031 |
variable view of container (Symmetric_Difference, Union): |
| 12032 |
Detect tampering (Vet): Use Checked_Index to detect tampering |
| 12033 |
(Constant_Reference, Element, Find): Use variable view of |
| 12034 |
container. |
| 12035 |
(Update_Element_Preserving_Key): Detect tampering. |
| 12036 |
* a-cbhase.adb (Difference, Find, Is_In): Use variable view |
| 12037 |
of container. |
| 12038 |
(Is_Subset): Ditto. |
| 12039 |
(Equivalent_Sets, Overlap): Use Node's Next component. |
| 12040 |
(Vet): Use Checked_Index to detect tampering. |
| 12041 |
(Constant_Reference, Element, Find): Use variable view of container. |
| 12042 |
(Update_Element_Preserving_Key): Detect tampering. |
| 12043 |
* a-cohama.adb, a-cihama.adb, a-cbhama.adb (Constant_Reference, |
| 12044 |
Element, Find): Use variable view of container. |
| 12045 |
(Reference): Rename hash table component. |
| 12046 |
(Vet): Use Checked_Index to detect tampering. |
| 12047 |
|
| 12048 |
2014-02-19 Arnaud Charlet <[email protected]> |
| 12049 |
|
| 12050 |
* adabkend.adb (Scan_Compiler_Arguments): Add missing handling |
| 12051 |
of -nostdinc. |
| 12052 |
|
| 12053 |
2014-02-19 Thomas Quinot <[email protected]> |
| 12054 |
|
| 12055 |
* tbuild.adb (New_Occurrence_Of, New_Rerefence_To): Guard |
| 12056 |
against calls without Def_Id. |
| 12057 |
|
| 12058 |
2014-02-19 Claire Dross <[email protected]> |
| 12059 |
|
| 12060 |
* a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, |
| 12061 |
a-cofove.ads: Add global annotations to subprograms. |
| 12062 |
|
| 12063 |
2014-02-19 Hristian Kirtchev <[email protected]> |
| 12064 |
|
| 12065 |
* sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Remove |
| 12066 |
constants Errors, Pack_Id and Pack_Init. Remove variable Vars. |
| 12067 |
Initial_Condition no longer requires the presence of pragma |
| 12068 |
Initialized. Do not try to diagnose whether all variables mentioned in |
| 12069 |
pragma Initializes also appear in Initial_Condition. |
| 12070 |
(Collect_Variables): Removed. |
| 12071 |
(Match_Variable): Removed. |
| 12072 |
(Match_Variables): Removed. |
| 12073 |
(Report_Unused_Variables): Removed. |
| 12074 |
|
| 12075 |
2014-02-19 Thomas Quinot <[email protected]> |
| 12076 |
|
| 12077 |
* gnat_rm.texi (pragma Stream_Convert): Minor rewording. |
| 12078 |
|
| 12079 |
2014-02-19 Robert Dewar <[email protected]> |
| 12080 |
|
| 12081 |
* sem_util.adb, sem_util.ads, prj-conf.adb, s-os_lib.adb: Minor |
| 12082 |
reformatting. |
| 12083 |
|
| 12084 |
2014-02-19 Vincent Celier <[email protected]> |
| 12085 |
|
| 12086 |
* prj-part.adb (Parse_Single_Project): Use the fully resolved |
| 12087 |
project path, with all symbolic links resolved, to check if the |
| 12088 |
same project is imported with a different unresolved path. |
| 12089 |
* prj-tree.ads (Project_Name_And_Node): Component Canonical_Path |
| 12090 |
changed to Resolved_Path to reflect that all symbolic links |
| 12091 |
are resolved. |
| 12092 |
|
| 12093 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12094 |
|
| 12095 |
* sem_util.ads, sem_util.adb (Get_Cursor_Type): Moved to sem_util |
| 12096 |
from sem_ch13, for use elsewhere. |
| 12097 |
* sem_ch13.adb (Get_Cursor_Type): Moved to sem_util. |
| 12098 |
* sem_ch5.adb (Analyze_Iterator_Specification): Set properly the |
| 12099 |
cursor type on the loop variable when the iteration is over o |
| 12100 |
formal container. |
| 12101 |
|
| 12102 |
2014-02-19 Vincent Celier <[email protected]> |
| 12103 |
|
| 12104 |
* prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Add declaration |
| 12105 |
for an empty Target (Check_Target): Never fail when an empty |
| 12106 |
target is declared in the configuration project. |
| 12107 |
|
| 12108 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12109 |
|
| 12110 |
* sem_prag.adb (Check_Arg_Is_Local_Name): Argument is local if |
| 12111 |
the pragma comes fron a predicate aspect and the context is a |
| 12112 |
record declaration within the scope that declares the type. |
| 12113 |
|
| 12114 |
2014-02-19 Robert Dewar <[email protected]> |
| 12115 |
|
| 12116 |
* gnat_rm.texi: Minor clarifications. |
| 12117 |
* expander.adb, sem_aggr.adb: Add comments. |
| 12118 |
|
| 12119 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12120 |
|
| 12121 |
* sem_prag.adb (Check_Arg_Is_Local_Name): For an aspect that |
| 12122 |
applies to a subprogram body, the name is the current scope, |
| 12123 |
rather than being declared in the current scope. |
| 12124 |
(Analyze_Pragma, case No_Return): Handle properly a No_Return |
| 12125 |
aspect applied to a subprogram body. |
| 12126 |
|
| 12127 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12128 |
|
| 12129 |
* sem_ch13.adb (Resolve_Iterable_Operation): Improve resolution |
| 12130 |
of overloaded subprograms, and fix bug in handling of primitive |
| 12131 |
operation Element. |
| 12132 |
|
| 12133 |
2014-02-19 Pascal Obry <[email protected]> |
| 12134 |
|
| 12135 |
* s-os_lib.adb: Minor reformatting. |
| 12136 |
|
| 12137 |
2014-02-19 Yannick Moy <[email protected]> |
| 12138 |
|
| 12139 |
* expander.adb (Expand): Do nothing inside generics. |
| 12140 |
* sem_aggr.adb (Aggregate_Constraint_Checks): Do nothing inside |
| 12141 |
generics. |
| 12142 |
|
| 12143 |
2014-02-19 Yannick Moy <[email protected]> |
| 12144 |
|
| 12145 |
* exp_ch2.adb: Remove useless 'with' of unit Uintp. |
| 12146 |
|
| 12147 |
2014-02-19 Robert Dewar <[email protected]> |
| 12148 |
|
| 12149 |
* sem_ch3.adb, style.adb, sem_prag.adb, sem_ch13.adb: Minor reformatting |
| 12150 |
* a-sequio.adb: Remove useless pragma Extensions_Allowed (no |
| 12151 |
longer needed). |
| 12152 |
|
| 12153 |
2014-02-19 Claire Dross <[email protected]> |
| 12154 |
|
| 12155 |
* a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, |
| 12156 |
a-cforse.ads, a-cofove.ads: Add Iterable aspect to formal containers. |
| 12157 |
|
| 12158 |
2014-02-19 Hristian Kirtchev <[email protected]> |
| 12159 |
|
| 12160 |
* sem_ch3.adb (Analyze_Declarations): Analyze |
| 12161 |
a package contract at the end of the private declarations (if |
| 12162 |
applicable), otherwise analyze it and the end of the visible |
| 12163 |
declarations. |
| 12164 |
|
| 12165 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12166 |
|
| 12167 |
* style.adb (Missing_Overriding): If subprogram is an |
| 12168 |
instantiation, place warning on the instance node itself, |
| 12169 |
without mention of the original generic. Do not emit message |
| 12170 |
if explicit Ada version is older than the introduction of the |
| 12171 |
overriding indicator. |
| 12172 |
|
| 12173 |
2014-02-19 Yannick Moy <[email protected]> |
| 12174 |
|
| 12175 |
* gnat_rm.texi: Doc clarifications. |
| 12176 |
|
| 12177 |
2014-02-19 Yannick Moy <[email protected]> |
| 12178 |
|
| 12179 |
* exp_util.adb (Remove_Side_Effects): Do not remove side-effects |
| 12180 |
inside a generic. |
| 12181 |
|
| 12182 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12183 |
|
| 12184 |
* sem_ch13.adb (Get_Cursor_Type): Obtain cursor type from |
| 12185 |
specified First primitive, rather than by name. |
| 12186 |
(Validate_Iterable_Aspect, Resolve_Iterable_Operation): Use it, |
| 12187 |
and extend error checking for missing primitives and incorrect |
| 12188 |
signatures. |
| 12189 |
|
| 12190 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12191 |
|
| 12192 |
* sem_ch3.adb (Check_Pragma_Implemented): Detect additional |
| 12193 |
errors when a Synchronization aspect on an overriding protected |
| 12194 |
operation does not match the given aspect on the overridden |
| 12195 |
operation of an ancestor interface. |
| 12196 |
|
| 12197 |
2014-02-19 Hristian Kirtchev <[email protected]> |
| 12198 |
|
| 12199 |
* sem_prag.adb (Check_Loop_Pragma_Grouping): New routine. |
| 12200 |
(Check_Loop_Pragma_Placement): Update |
| 12201 |
comment on usage. Remove local variables Orig_Stmt and |
| 12202 |
Within_Same_Sequence. Check that the current Loop_Invariant or |
| 12203 |
Loop_Variant pragma is grouped together with other such pragmas. |
| 12204 |
(Is_Loop_Pragma): New routine. |
| 12205 |
(Prev_In_Loop): Removed. |
| 12206 |
|
| 12207 |
2014-02-19 Robert Dewar <[email protected]> |
| 12208 |
|
| 12209 |
* par-ch6.adb (P_Return): For extended return, end column lines |
| 12210 |
up with RETURN. |
| 12211 |
* par.adb: Minor documentation clarification. |
| 12212 |
|
| 12213 |
2014-02-19 Yannick Moy <[email protected]> |
| 12214 |
|
| 12215 |
* sem_prag.adb (Check_Loop_Pragma_Placement): Add check |
| 12216 |
that Loop_Invariant and Loop_Variant appear consecutively. |
| 12217 |
* gnat_rm.texi Update documentation of Loop_Invariant and |
| 12218 |
Loop_Variant pragmas. |
| 12219 |
|
| 12220 |
2014-02-19 Robert Dewar <[email protected]> |
| 12221 |
|
| 12222 |
* debug.adb: Document -gnatd.X. |
| 12223 |
* par-ch5.adb (P_If_Statement): Always check THEN, even if not |
| 12224 |
first token |
| 12225 |
(Check_Then_Column): Ditto. |
| 12226 |
* styleg.adb (Check_Then): Allow THEN on line after IF. |
| 12227 |
(Check_Then): Check THEN placement under control of -gnatd.X |
| 12228 |
* styleg.ads (Check_Then): Now called even if THEN is not first |
| 12229 |
token on line. |
| 12230 |
* stylesw.ads (Style_Check_If_Then_Layout): Document new |
| 12231 |
relaxed rules. |
| 12232 |
* gnat_ugn.texi: For -gnatyi, THEN can now be on line after IF. |
| 12233 |
|
| 12234 |
2014-02-19 Robert Dewar <[email protected]> |
| 12235 |
|
| 12236 |
* a-cfhama.adb, a-cfhase.adb, a-cforse.adb, a-cofove.adb, a-ngcefu.adb, |
| 12237 |
a-teioed.adb, a-wtedit.adb, a-ztedit.adb, exp_ch5.adb, inline.adb, |
| 12238 |
prj-pp.adb, prj-tree.adb, sem_ch12.adb, sem_ch8.adb, |
| 12239 |
vms_conv.adb: Fix bad layout of IF statements |
| 12240 |
|
| 12241 |
2014-02-19 Robert Dewar <[email protected]> |
| 12242 |
|
| 12243 |
* exp_util.adb (Side_Effect_Free): Scalar if expressions can be SEF. |
| 12244 |
|
| 12245 |
2014-02-19 Robert Dewar <[email protected]> |
| 12246 |
|
| 12247 |
* exp_util.adb: Update comments. |
| 12248 |
|
| 12249 |
2014-02-19 Doug Rupp <[email protected]> |
| 12250 |
|
| 12251 |
* bindgen.adb (Gen_Adainit) [VMS] New global Float_Format. |
| 12252 |
* init.c (__gl_float_format): [VMS] New global. |
| 12253 |
(__gnat_set_features): Call FP_CONTROL to set FPSR for the float |
| 12254 |
representation in effect. |
| 12255 |
|
| 12256 |
2014-02-19 Hristian Kirtchev <[email protected]> |
| 12257 |
|
| 12258 |
* exp_ch6.adb Add with and use clause for Exp_Prag. |
| 12259 |
(Expand_Contract_Cases): Relocated to Exp_Prag. |
| 12260 |
* exp_ch6.ads (Expand_Contract_Cases): Relocated to Exp_Prag. |
| 12261 |
* exp_prag.adb Add with and use clauses for Checks and Validsw. |
| 12262 |
(Expand_Contract_Cases): Relocated from Exp_Ch6. Update the |
| 12263 |
structure of the expanded code to showcase the evaluation of |
| 12264 |
attribute 'Old prefixes. Add local variable Old_Evals. Expand |
| 12265 |
any attribute 'Old references found within a consequence. Add |
| 12266 |
circuitry to evaluate the prefixes of attribute 'Old that |
| 12267 |
belong to a selected consequence. |
| 12268 |
(Expand_Old_In_Consequence): New routine. |
| 12269 |
* exp_prag.ads (Expand_Contract_Cases): Relocated from Exp_Ch6. |
| 12270 |
* sem_attr.adb (Check_Use_In_Contract_Cases): Warn that a |
| 12271 |
potentially unevaluated prefix is always evaluated. |
| 12272 |
|
| 12273 |
2014-02-19 Robert Dewar <[email protected]> |
| 12274 |
|
| 12275 |
* exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration |
| 12276 |
(Expand_Min_Max_Attribute): Use Matching_Standard_Type. |
| 12277 |
* exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special |
| 12278 |
handling for the case of Modify_Tree_For_C, this approach did |
| 12279 |
not work. |
| 12280 |
* exp_util.adb (Matching_Standard_Type): New function |
| 12281 |
(Side_Effect_Free): New top level functions (from |
| 12282 |
Remove_Side_Effects). |
| 12283 |
* exp_util.ads (Side_Effect_Free): New top level functions |
| 12284 |
(moved from body). |
| 12285 |
* sinfo.ads: Minor comment updates. |
| 12286 |
|
| 12287 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12288 |
|
| 12289 |
* exp_ch6.adb (Expand_Simple_Function_Return): If return |
| 12290 |
type is unconstrained and uses the secondary stack, mark the |
| 12291 |
enclosing function accordingly, to ensure that the value is not |
| 12292 |
prematurely removed. |
| 12293 |
|
| 12294 |
2014-02-19 Hristian Kirtchev <[email protected]> |
| 12295 |
|
| 12296 |
* par.adb Alphabetize the routines in Par.Sync. |
| 12297 |
(Resync_Past_Malformed_Aspect): New routine. |
| 12298 |
* par-ch13.adb (Get_Aspect_Specifications): Alphabetize local |
| 12299 |
variables. Code and comment reformatting. Detect missing |
| 12300 |
parentheses on aspects [Refined_]Global and [Refined_]Depends |
| 12301 |
with a non-null definition. |
| 12302 |
* par-sync.adb: Alphabetize all routines in this separate unit. |
| 12303 |
(Resync_Past_Malformed_Aspect): New routine. |
| 12304 |
|
| 12305 |
2014-02-19 Robert Dewar <[email protected]> |
| 12306 |
|
| 12307 |
* sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False |
| 12308 |
if Esize values do not match. |
| 12309 |
|
| 12310 |
2014-02-19 Yannick Moy <[email protected]> |
| 12311 |
|
| 12312 |
* sinfo.ads: Minor comment update. |
| 12313 |
|
| 12314 |
2014-02-19 Hristian Kirtchev <[email protected]> |
| 12315 |
|
| 12316 |
* atree.ads: Minor reformatting (change Entity_Info to Einfo). |
| 12317 |
|
| 12318 |
2014-02-19 Thomas Quinot <[email protected]> |
| 12319 |
|
| 12320 |
* exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement |
| 12321 |
that has the No_Ctrl_Actions flag is a suitable node to be |
| 12322 |
wrapped if the assigned expression has no finalization actions. |
| 12323 |
* sem_eval.adb (Eval_Entity_Name): For a compile time known |
| 12324 |
boolean value, mark the corresponding condition SCO as constant. |
| 12325 |
|
| 12326 |
2014-02-19 Robert Dewar <[email protected]> |
| 12327 |
|
| 12328 |
* exp_util.adb: Minor reformatting. |
| 12329 |
* exp_util.ads (Matching_Standard_Type): New function. |
| 12330 |
* exp_ch7.adb: Minor reformatting. |
| 12331 |
|
| 12332 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12333 |
|
| 12334 |
* sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type |
| 12335 |
to find declaration for Cursor, to handle properly the case of |
| 12336 |
a discriminated iterable type. |
| 12337 |
|
| 12338 |
2014-02-19 Vincent Celier <[email protected]> |
| 12339 |
|
| 12340 |
* gnatcmd.adb (GNATCmd): Always replace the object dirs of |
| 12341 |
imported library projects with the library ALI dirs, when setting |
| 12342 |
the object paths. |
| 12343 |
* prj-env.ads (Ada_Objects_Path): Correct comments about |
| 12344 |
argument Including_Libraries. |
| 12345 |
|
| 12346 |
2014-02-19 Gary Dismukes <[email protected]> |
| 12347 |
|
| 12348 |
* gnat_rm.texi: Minor spelling fixes. |
| 12349 |
|
| 12350 |
2014-02-19 Doug Rupp <[email protected]> |
| 12351 |
|
| 12352 |
* init.c: Remove unneeded code. |
| 12353 |
* fe.h (Float_Format): New macro |
| 12354 |
* gcc-interface/trans.c (gigi): On VMS, set vms_float_format. |
| 12355 |
|
| 12356 |
2014-02-19 Hristian Kirtchev <[email protected]> |
| 12357 |
|
| 12358 |
* sem_prag.adb (Check_Refined_Global_Item): |
| 12359 |
A state or variable acts as a constituent only it is part of an |
| 12360 |
encapsulating state and the state has visible refinement. |
| 12361 |
|
| 12362 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12363 |
|
| 12364 |
* sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a |
| 12365 |
postcondition for a function when the expression does not mention |
| 12366 |
'Result but the function has in-out parameters. |
| 12367 |
|
| 12368 |
2014-02-19 Robert Dewar <[email protected]> |
| 12369 |
|
| 12370 |
* gnat_rm.texi: Add documentation on Value_Size forcing biased |
| 12371 |
representation. |
| 12372 |
|
| 12373 |
2014-02-19 Hristian Kirtchev <[email protected]> |
| 12374 |
|
| 12375 |
* lib-xref.ads Remove the small table of letter and symbol usage as we |
| 12376 |
already have one. |
| 12377 |
|
| 12378 |
2014-02-19 Hristian Kirtchev <[email protected]> |
| 12379 |
|
| 12380 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error |
| 12381 |
messages depending on the offending misplaced aspect specifications. |
| 12382 |
(Diagnose_Misplaced_Aspect_Specifications): New routine. |
| 12383 |
|
| 12384 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12385 |
|
| 12386 |
* sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type |
| 12387 |
for iterable aspect primitives. |
| 12388 |
(Resolve_Iterable_Operation): Use expected signature of iterable |
| 12389 |
aspect to resolve primitive when overloading is present. |
| 12390 |
(Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it. |
| 12391 |
(Check_Signature): Removed. |
| 12392 |
|
| 12393 |
2014-02-19 Yannick Moy <[email protected]> |
| 12394 |
|
| 12395 |
* sem_ch10.adb (Analyze_Proper_Body): Issue error on missing |
| 12396 |
subunit in GNATprove_Mode. |
| 12397 |
* sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode. |
| 12398 |
|
| 12399 |
2014-02-19 Hristian Kirtchev <[email protected]> |
| 12400 |
|
| 12401 |
* lib-xref.ads Alphabetize the contents of table |
| 12402 |
Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters |
| 12403 |
for E_Abstract_State. List all letters and symbols in use. |
| 12404 |
* sem_prag.adb (Analyze_Abstract_State): Update all calls |
| 12405 |
to Create_Abstract_State to reflect the new signature. |
| 12406 |
(Create_Abstract_State): Change subprogram profile and update |
| 12407 |
the comment on usage. Use the proper location of the state |
| 12408 |
declaration when creating a new abstract state entity. Do not |
| 12409 |
generate an external name, but simply reuse the name coming from |
| 12410 |
the state declaration. |
| 12411 |
|
| 12412 |
2014-02-19 Robert Dewar <[email protected]> |
| 12413 |
|
| 12414 |
* exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure |
| 12415 |
declarations get properly inserted in Modify_Tree_For_C mode. |
| 12416 |
* sinfo.ads: Minor comment addition. |
| 12417 |
|
| 12418 |
2014-02-19 Robert Dewar <[email protected]> |
| 12419 |
|
| 12420 |
* par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb, |
| 12421 |
sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting. |
| 12422 |
|
| 12423 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12424 |
|
| 12425 |
* style.adb (Missing_Overriding): Warning does not apply in |
| 12426 |
language versions prior to Ada 2005. |
| 12427 |
* snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable. |
| 12428 |
* sem_attr.adb: Add Attribute_Iterable where needed. |
| 12429 |
* exp_attr.adb: ditto. |
| 12430 |
* exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to |
| 12431 |
handle loops and quantified expressions over types that have an |
| 12432 |
iterable aspect. Called from Expand_Iterator_Loop. |
| 12433 |
* sem_ch5.adb (Analyze_Iterator_Specification): Recognize types |
| 12434 |
with Iterable aspect. |
| 12435 |
* sem_ch13.adb (Validate_Iterable_Aspect): Verify that the |
| 12436 |
subprograms specified in the Iterable aspect have the proper |
| 12437 |
signature involving container and cursor. |
| 12438 |
(Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect. |
| 12439 |
* sem_ch13.ads (Validate_Iterable_Aspect): New subprogram. |
| 12440 |
* sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive): |
| 12441 |
New procedure to retrieve one of the primitives First, Last, |
| 12442 |
or Has_Element, from the value of the iterable aspect of a |
| 12443 |
formal container. |
| 12444 |
(Is_Container_Element): Predicate to recognize expressions |
| 12445 |
that denote an element of one of the predefined containers, |
| 12446 |
for possible optimization. This subprogram is not currently |
| 12447 |
used, pending ARG discussions on the legality of the proposed |
| 12448 |
optimization. Worth preserving for eventual use. |
| 12449 |
(Is_Iterator): Recognize formal container types. |
| 12450 |
* aspects.ads, aspects.adb: Add Aspect_Iterable where needed. |
| 12451 |
|
| 12452 |
2014-02-19 Robert Dewar <[email protected]> |
| 12453 |
|
| 12454 |
* exp_attr.adb (Expand_Min_Max_Attribute): New procedure |
| 12455 |
(Expand_N_Attribute_Reference): Use this procedure for Min and Max. |
| 12456 |
* exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object |
| 12457 |
declarations from list of actions. |
| 12458 |
* output.ads, output.adb (Delete_Last_Char): New procedure. |
| 12459 |
* sinfo.ads: Document handling of Mod and expression with actions |
| 12460 |
in Modify_Tree_For_C mode. |
| 12461 |
|
| 12462 |
2014-02-19 Ed Schonberg <[email protected]> |
| 12463 |
|
| 12464 |
* par-ch9.adb (P_Task): Add a null statement to produce a |
| 12465 |
well-formed task body when due to a previous syntax error the |
| 12466 |
statement list is empty. |
| 12467 |
|
| 12468 |
2014-02-19 Hristian Kirtchev <[email protected]> |
| 12469 |
|
| 12470 |
* sem_prag.adb (Check_Dependency_Clause): Account |
| 12471 |
for the case where a state with a non-null refinement matches a |
| 12472 |
null output list. Comment reformatting. |
| 12473 |
(Inputs_Match): Copy a solitary input to avoid an assertion failure |
| 12474 |
when trying to match the same input in multiple clauses. |
| 12475 |
|
| 12476 |
2014-02-19 Gary Dismukes <[email protected]> |
| 12477 |
|
| 12478 |
* sem_attr.adb: Minor typo fix. |
| 12479 |
|
| 12480 |
2014-02-18 Robert Dewar <[email protected]> |
| 12481 |
|
| 12482 |
* cstand.adb (Build_Signed_Integer_Type): Minor change of formal |
| 12483 |
from Int to Nat (Build_Unsigned_Integer_Type): New procedure |
| 12484 |
(Create_Standard): Create new unsigned types. |
| 12485 |
* exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C |
| 12486 |
mode (Expand_N_Reference): Removed, problematic and not needed |
| 12487 |
for now. |
| 12488 |
* exp_ch4.ads (Expand_N_Reference): Removed, problematic and |
| 12489 |
not needed for now. |
| 12490 |
* exp_util.ads, exp_util.adb (Power_Of_Two): New function. |
| 12491 |
* expander.adb: Remove call to Expand_N_Reference (problematic, |
| 12492 |
and not needed now). |
| 12493 |
* sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function. |
| 12494 |
* stand.adb: Read and write unsigned type entities. |
| 12495 |
* stand.ads: Add new unsigned types. |
| 12496 |
|
| 12497 |
2014-02-18 Hristian Kirtchev <[email protected]> |
| 12498 |
|
| 12499 |
* sem_ch4.adb (Analyze_Call): Do not mark a function call |
| 12500 |
as being inside an assertion expression as the flag is now removed. |
| 12501 |
(Check_Ghost_Subprogram_Call): Do not query the |
| 12502 |
In_Assertion_Expression flag as it is now removed, instead use |
| 12503 |
a predicate function. |
| 12504 |
* sem_elab.adb (Check_Internal_Call_Continue): Do not query the |
| 12505 |
In_Assertion_Expression flag as it is now removed, instead use |
| 12506 |
a predicate function. |
| 12507 |
* sem_prag.ads: Add new table Assertion_Expression_Pragma. |
| 12508 |
* sem_util.adb Add with and use clause for Sem_Prag. |
| 12509 |
(In_Assertion_Expression_Pragma): New routine. |
| 12510 |
* sem_util.ads (In_Assertion_Expression_Pragma): New routine. |
| 12511 |
* sinfo.adb (In_Assertion_Expression): Removed. |
| 12512 |
(Set_In_Assertion_Expression): Removed. |
| 12513 |
* sinfo.ads Remove flag In_Assertion_Expression along with its |
| 12514 |
use in nodes. |
| 12515 |
(In_Assertion_Expression): Removed along with |
| 12516 |
pragma Inline. (Set_In_Assertion_Expression): Removed along |
| 12517 |
with pragma Inline. |
| 12518 |
|
| 12519 |
2014-02-18 Sergey Rybin <[email protected] frybin> |
| 12520 |
|
| 12521 |
* gnat_ugn.texi: gnatpp section: add note that '-j' cannot be |
| 12522 |
used together with '-r', '-rf' or '-rnb' options. |
| 12523 |
|
| 12524 |
2014-02-18 Hristian Kirtchev <[email protected]> |
| 12525 |
|
| 12526 |
* sem_attr.adb (Analyze_Attribute): Comment |
| 12527 |
and code reformatting. Use separate routines to check the |
| 12528 |
legality of attribute 'Old in certain pragmas. Verify |
| 12529 |
the use of 'Old, 'Result and locally declared entities |
| 12530 |
within the prefix of 'Old. |
| 12531 |
(Check_References_In_Prefix): New routine. |
| 12532 |
(Check_Use_In_Contract_Cases): New routine. |
| 12533 |
(Check_Use_In_Test_Case): New routine. |
| 12534 |
|
| 12535 |
2014-02-18 Vincent Celier <[email protected]> |
| 12536 |
|
| 12537 |
* sem_aux.adb (Is_By_Reference_Type): For each components of |
| 12538 |
a record type, check also if the component is volatile as it |
| 12539 |
may have an aspect that makes it volatile. If it is, then the |
| 12540 |
record type is a by reference type. |
| 12541 |
|
| 12542 |
2014-02-18 Robert Dewar <[email protected]> |
| 12543 |
|
| 12544 |
* exp_attr.adb: Minor reformatting. |
| 12545 |
* exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure. |
| 12546 |
* exp_util.adb (Remove_Side_Effects): Add conditional expressions |
| 12547 |
as another case where we don't generate N_Reference nodes for |
| 12548 |
primitive types. |
| 12549 |
* expander.adb (Expand): Add call to Expand_N_Reference. |
| 12550 |
|
| 12551 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12552 |
|
| 12553 |
* sem_prag.adb (Analyze_Refined_Pragma): Remove |
| 12554 |
local variable Pack_Spec. Refinement pragmas may now apply to |
| 12555 |
bodies of both visible and private subprograms. |
| 12556 |
|
| 12557 |
2014-02-06 Robert Dewar <[email protected]> |
| 12558 |
|
| 12559 |
* exp_attr.adb (Expand_Loop_Entry_Attribute): |
| 12560 |
Minor change (Attr => N) (Expand_Pred_Succ): New name |
| 12561 |
Expand_Pred_Succ_Attribute (Expand_N_Attribute_Reference, case |
| 12562 |
Max): Expand into if expression if Modify_Tree_For_C mode. |
| 12563 |
(Expand_N_Attribute_Reference, case Min): ditto |
| 12564 |
* sinfo.ads: Modify_Tree_For_C takes care of expanding Min and |
| 12565 |
Max attributes. |
| 12566 |
|
| 12567 |
2014-02-06 Ed Schonberg <[email protected]> |
| 12568 |
|
| 12569 |
* sem_ch3.adb (Analyze_Object_Declaration): Do not generate |
| 12570 |
predicate check if this is an internal declaration with |
| 12571 |
No_Initialization set, as for an expanded aggregate component. |
| 12572 |
|
| 12573 |
2014-02-06 Doug Rupp <[email protected]> |
| 12574 |
|
| 12575 |
* init.c (__gnat_default_resignal_p) [VMS]: Test for and resignal |
| 12576 |
conditions with severity of "SUCCESS" or "INFORMATIONAL". |
| 12577 |
|
| 12578 |
2014-02-06 Yannick Moy <[email protected]> |
| 12579 |
|
| 12580 |
* sem_prag.adb (Analyze_Pragma): Analyze pragma |
| 12581 |
Debug rewritten node before rewriting it as a null statement in |
| 12582 |
GNATprove mode. |
| 12583 |
|
| 12584 |
2014-02-06 Robert Dewar <[email protected]> |
| 12585 |
|
| 12586 |
* sem_attr.adb (Min_Max): New procedure. |
| 12587 |
(Max_Alignment_For_Allocation_Max_Size_In_Storage_Elements): New |
| 12588 |
procedure. |
| 12589 |
|
| 12590 |
2014-02-06 Sergey Rybin <[email protected] frybin> |
| 12591 |
|
| 12592 |
* gnat_ugn.texi, vms_data.ads: Add documentation of '-t' option for |
| 12593 |
gnatmetric/gnatpp. |
| 12594 |
|
| 12595 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12596 |
|
| 12597 |
* sem_prag.adb (Analyze_Abstract_State): Update |
| 12598 |
all calls to Create_Abstract_State to pass the proper state |
| 12599 |
"declaration". |
| 12600 |
(Create_Abstract_State): Add new formal parameter |
| 12601 |
State_Decl along with comment on usage. Establish a link between |
| 12602 |
the abstract state entity and the state declaration. |
| 12603 |
|
| 12604 |
2014-02-06 Robert Dewar <[email protected]> |
| 12605 |
|
| 12606 |
* sem_attr.adb (Analyze_Attribute, case Max): Check for improper |
| 12607 |
comparison of unordered enumeration type. |
| 12608 |
(Analyze_Attribute, case Max): Check for improper comparison of |
| 12609 |
unordered enumeration type. |
| 12610 |
* sem_res.adb (Bad_Unordered_Enumeration_Reference): Moved to |
| 12611 |
sem_util.adb. |
| 12612 |
* sem_util.ads, sem_util.adb (Bad_Unordered_Enumeration_Reference): |
| 12613 |
Moved here from Sem_Res. |
| 12614 |
|
| 12615 |
2014-02-06 Robert Dewar <[email protected]> |
| 12616 |
|
| 12617 |
* sem_ch3.adb, sem_prag.adb, sem_res.adb, lib-xref.adb: Minor |
| 12618 |
reformatting. |
| 12619 |
|
| 12620 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12621 |
|
| 12622 |
* sem_ch6.adb (Process_Formals): Error message reformatting. |
| 12623 |
|
| 12624 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12625 |
|
| 12626 |
* sem_ch3.adb (Handle_Late_Controlled_Primitive): Add local |
| 12627 |
variable Spec. Do not inherit the null indicator from the |
| 12628 |
subprogram body when generating the spec. |
| 12629 |
|
| 12630 |
2014-02-06 Robert Dewar <[email protected]> |
| 12631 |
|
| 12632 |
* casing.adb (Determine_Casing): Consider SPARK_Mode to be |
| 12633 |
mixed case. |
| 12634 |
|
| 12635 |
2014-02-06 Ed Schonberg <[email protected]> |
| 12636 |
|
| 12637 |
* exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false |
| 12638 |
when the function has a foreign convention, but not if only the |
| 12639 |
limited return type has such a convention. |
| 12640 |
|
| 12641 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12642 |
|
| 12643 |
* sem_ch3.adb (Handle_Late_Controlled_Primitive): Remove local |
| 12644 |
variable Spec. Comment reformatting. Use Copy_Separate_Tree |
| 12645 |
rather than New_Copy_Tree when building the corresponding |
| 12646 |
subprogram declaration. |
| 12647 |
|
| 12648 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12649 |
|
| 12650 |
* sem_prag.adb (Analyze_Global_Item): Remove |
| 12651 |
the mode-related checks on abstract states with enabled external |
| 12652 |
properties. |
| 12653 |
(Property_Error): Removed. |
| 12654 |
|
| 12655 |
2014-02-06 Javier Miranda <[email protected]> |
| 12656 |
|
| 12657 |
* lib-xref.adb (Generate_Reference): When |
| 12658 |
generating the reference to the first private entity take care |
| 12659 |
of handling swapped entities. |
| 12660 |
|
| 12661 |
2014-02-06 Sergey Rybin <[email protected] frybin> |
| 12662 |
|
| 12663 |
* gnat_ugn.texi, vms_data.ads: Add documentation of -j option for |
| 12664 |
gnatmetric. |
| 12665 |
|
| 12666 |
2014-02-06 Robert Dewar <[email protected]> |
| 12667 |
|
| 12668 |
* exp_ch4.adb (Expand_N_Shift_Left): Handle shift counts greater |
| 12669 |
than the word size when operating in Modify_Tree_For_C mode. |
| 12670 |
* sinfo.ads: Add documentation section on Modify_Tree_For_C mode. |
| 12671 |
|
| 12672 |
2014-02-06 Robert Dewar <[email protected]> |
| 12673 |
|
| 12674 |
* erroutc.adb (Warning_Specifically_Suppressed.Matches): |
| 12675 |
compare is case insensitive. |
| 12676 |
* gnat_rm.texi: Document that string compare for Warnings Off |
| 12677 |
is now case insensitive. |
| 12678 |
|
| 12679 |
2014-02-06 Eric Botcazou <[email protected]> |
| 12680 |
|
| 12681 |
* gnat_rm.texi: Small wording tweak. |
| 12682 |
|
| 12683 |
2014-02-06 Pascal Obry <[email protected]> |
| 12684 |
|
| 12685 |
* prj-attr.adb, projects.texi, snames.ads-tmpl: Add Included_Patterns |
| 12686 |
and Included_Artifact_Patterns attribute definitions. |
| 12687 |
|
| 12688 |
2014-02-06 Yannick Moy <[email protected]> |
| 12689 |
|
| 12690 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set |
| 12691 |
SPARK_Mode pragma component for all subprograms, including stubs. |
| 12692 |
|
| 12693 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12694 |
|
| 12695 |
* sem_ch10.adb (Analyze_Package_Body_Stub): Maintain |
| 12696 |
the configuration options of the enclosing context in a |
| 12697 |
stack-like fasion. |
| 12698 |
(Analyze_Subprogram_Body_Stub): Maintain the |
| 12699 |
configuration options of the enclosing context in a stack-like |
| 12700 |
fashion. |
| 12701 |
|
| 12702 |
2014-02-06 Robert Dewar <[email protected]> |
| 12703 |
|
| 12704 |
* debug.adb: -gnatd.u sets Modify_Tree_For C |
| 12705 |
* exp_ch4.adb (Expand_N_Op_Rotate_Left): Expand out |
| 12706 |
if Modify_Tree_For_C (Expand_N_Op_Rotate_Right): ditto. |
| 12707 |
(Expand_N_Op_Arithmetic_Right_Shift): ditto. |
| 12708 |
* exp_intr.adb (Expand_Shift): Call expander so we do |
| 12709 |
Modify_Tree_For_C expansions. |
| 12710 |
* gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C |
| 12711 |
if -gnatd.u set. |
| 12712 |
|
| 12713 |
2014-02-06 Fedor Rybin <[email protected]> |
| 12714 |
|
| 12715 |
* prj-proc.ads (Tree_Loaded_Callback): new type Callback used |
| 12716 |
after the phase 1 of the processing of each aggregated project |
| 12717 |
to get access to project trees of aggregated projects. |
| 12718 |
(Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded |
| 12719 |
If specified, On_New_Tree_Loaded is called after each aggregated |
| 12720 |
project has been processed succesfully. |
| 12721 |
(Process): new parameter On_New_Tree_Loaded. |
| 12722 |
* prj-proc.adb (Process_Aggregated_Projects): On_New_Tree_Loaded |
| 12723 |
callback added after processing of each aggregated project. |
| 12724 |
(Recursive_Process): new parameter On_New_Tree_Loaded. |
| 12725 |
(Process): new parameter On_New_Tree_Loaded. |
| 12726 |
(Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded. |
| 12727 |
* prj-conf.ads (Parse_Project_And_Apply_Config): new parameter |
| 12728 |
On_New_Tree_Loaded. |
| 12729 |
* prj-conf.adb (Parse_Project_And_Apply_Config): new parameter |
| 12730 |
On_New_Tree_Loaded. |
| 12731 |
|
| 12732 |
2014-02-06 Bob Duff <[email protected]> |
| 12733 |
|
| 12734 |
* gnat_ugn.texi: Implement --insert-blank-lines and |
| 12735 |
--preserve-blank-lines switches. |
| 12736 |
|
| 12737 |
2014-02-06 Sergey Rybin <[email protected] frybin> |
| 12738 |
|
| 12739 |
* gnat_ugn.texi, vms_data.ads: Add documentation of -j option for |
| 12740 |
gnatelim. |
| 12741 |
|
| 12742 |
2014-02-06 Eric Botcazou <[email protected]> |
| 12743 |
|
| 12744 |
* gnat_rm.texi (Pragma Optimize_Alignment): Document the effect |
| 12745 |
of the pragma on individual objects. |
| 12746 |
|
| 12747 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12748 |
|
| 12749 |
* einfo.adb Node29 is now used as BIP_Initialization_Call. |
| 12750 |
(BIP_Initialization_Call): New routine. |
| 12751 |
(Set_BIP_Initialization_Call): New routine. |
| 12752 |
(Write_Field29_Name): Add an entry for constants and variables. |
| 12753 |
* einfo.ads Add new attribute BIP_Initialization_Call and update |
| 12754 |
its usage in nodes. |
| 12755 |
(BIP_Initialization_Call): New routine along with pragma Inline. |
| 12756 |
(Set_BIP_Initialization_Call): New routine along with pragma Inline. |
| 12757 |
* exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): |
| 12758 |
Add local declaration Res_Decl. Capture the build-in-place |
| 12759 |
initialization call when the related object declaration has |
| 12760 |
created a transient block. |
| 12761 |
* exp_ch7.adb (Process_Transient_Objects): Add local variable |
| 12762 |
Fin_Insrt. Recognize a scenario where an object declaration acts |
| 12763 |
as a transient context and is initialized by a build-in-place |
| 12764 |
function call. |
| 12765 |
|
| 12766 |
2014-02-06 Pascal Obry <[email protected]> |
| 12767 |
|
| 12768 |
* prj-util.adb (For_Interface_Sources): Fix handling of required |
| 12769 |
bodies for aggregate libs. |
| 12770 |
|
| 12771 |
2014-02-06 Robert Dewar <[email protected]> |
| 12772 |
|
| 12773 |
* nlists.ads: Minor comment clarifications. |
| 12774 |
|
| 12775 |
2014-02-06 Robert Dewar <[email protected]> |
| 12776 |
|
| 12777 |
* gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C |
| 12778 |
if gnatd.V set. |
| 12779 |
* opt.ads (Modify_Tree_For_C): New flag. |
| 12780 |
* output.ads, output.adb (Last_Char): New function. |
| 12781 |
|
| 12782 |
2014-02-06 Pascal Obry <[email protected]> |
| 12783 |
|
| 12784 |
* projects.texi, prj-env.adb (Initialize_Default_Project_Path): Add |
| 12785 |
share/gpr for cross-builds. |
| 12786 |
|
| 12787 |
2014-02-06 Robert Dewar <[email protected]> |
| 12788 |
|
| 12789 |
* exp_util.ads, checks.adb, sem_prag.adb, prj-util.adb, sem_ch13.adb: |
| 12790 |
Minor reformatting and code clean ups. |
| 12791 |
|
| 12792 |
2014-02-06 Pascal Obry <[email protected]> |
| 12793 |
|
| 12794 |
* prj-util.adb (For_Interface_Sources): Skip non compilable languages. |
| 12795 |
* prj.ads: Minor typo fix in comment. |
| 12796 |
|
| 12797 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12798 |
|
| 12799 |
* sem_prag.adb (Analyze_Depends_In_Decl_Part): Add |
| 12800 |
local variable Expr. Flag clauses with extra parenthesis as this |
| 12801 |
is not allowed by the syntax of the pragma. Code reformatting. |
| 12802 |
|
| 12803 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12804 |
|
| 12805 |
* exp_attr.adb (Expand_N_Attribute_Reference): Alphabetize |
| 12806 |
variables. Rename variabme Tnn to Temp. Do not create a temporary |
| 12807 |
if assertions are disabled. Find enclosing routine _Postconditions |
| 12808 |
and insert the temporary that captures the value of the prefix |
| 12809 |
before the routine. |
| 12810 |
* exp_ch6.adb (Build_Postconditions_Procedure): |
| 12811 |
Insert the generated _Postconditions routine |
| 12812 |
before the first source declaration of the related |
| 12813 |
subprogram. |
| 12814 |
(Insert_After_Last_Declaration): Removed. |
| 12815 |
(Insert_Before_First_Source_Declaration): New routine. |
| 12816 |
|
| 12817 |
2014-02-06 Ed Schonberg <[email protected]> |
| 12818 |
|
| 12819 |
* exp_util.adb, exp_util.ads (Within_Internal_Subprogram): |
| 12820 |
Utility to determine whether current expansion is for the body |
| 12821 |
of a predefined primitive operation. |
| 12822 |
(Make_Predicate_Check): Use Within_Internal_Subpgram |
| 12823 |
* checks.adb (Apply_Predicate_Check): Use |
| 12824 |
Within_Internal_Subprogram |
| 12825 |
* sem_ch13.adb (Freeze_Entity_Checks): Ditto. |
| 12826 |
|
| 12827 |
2014-02-06 Pascal Obry <[email protected]> |
| 12828 |
|
| 12829 |
* prj.ads, prj-util.adb: Minor reformatting. |
| 12830 |
|
| 12831 |
2014-02-06 Ed Schonberg <[email protected]> |
| 12832 |
|
| 12833 |
* exp_ch6.adb (Expand_Subprogram_Contract, Append_Enabled_Item): |
| 12834 |
Take into account the Split_PPC flag to ensure that conjuncts |
| 12835 |
in a composite postcondition aspect are tested in source order. |
| 12836 |
|
| 12837 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12838 |
|
| 12839 |
* sem_ch6.adb (Analyze_Generic_Subprogram_Body): Flag illegal |
| 12840 |
use of SPARK_Mode. |
| 12841 |
* sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Flag |
| 12842 |
illegal use of SPARK_Mode. |
| 12843 |
(Instantiate_Subprogram_Body): Flag illegal use of SPARK_Mode. |
| 12844 |
* sem_prag.adb (Analyze_Pragma): Code reformatting. |
| 12845 |
* sem_util.adb Add with and use clause for Aspects. |
| 12846 |
(Check_SPARK_Mode_In_Generic): New routine. |
| 12847 |
* sem_util.ads (Check_SPARK_Mode_In_Generic): New routine. |
| 12848 |
|
| 12849 |
2014-02-06 Thomas Quinot <[email protected]> |
| 12850 |
|
| 12851 |
* a-calend.adb (Formatting_Operations.Split): Ensure that |
| 12852 |
Time_Error is raised for invalid time values. |
| 12853 |
|
| 12854 |
2014-02-06 Arnaud Charlet <[email protected]> |
| 12855 |
|
| 12856 |
* sem_prag.adb (Analyze_Pragma): Rewrite as a null statement |
| 12857 |
in GNATprove_Mode. |
| 12858 |
|
| 12859 |
2014-02-06 Robert Dewar <[email protected]> |
| 12860 |
|
| 12861 |
* einfo.ads, einfo.adb (Is_Discriminant_Check_Function): New flag. |
| 12862 |
* exp_ch3.adb (Build_Dcheck_Function): Set |
| 12863 |
Is_Discriminant_Check_Function. |
| 12864 |
|
| 12865 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12866 |
|
| 12867 |
* exp_ch7.adb (Is_Subprogram_Call): Inspect |
| 12868 |
the original tree in certain cases where a construct has been |
| 12869 |
factored out and replaced by a reference to a temporary. |
| 12870 |
|
| 12871 |
2014-02-06 Ed Schonberg <[email protected]> |
| 12872 |
|
| 12873 |
* sem_ch3.adb (Process_Full_View): Fix typo in the order of |
| 12874 |
parameters when propagating predicate function to full view. |
| 12875 |
(Find_Type_Of_Object): Freeze base type of object type to catch |
| 12876 |
premature use of discriminated private type without a full view. |
| 12877 |
|
| 12878 |
2014-02-06 Robert Dewar <[email protected]> |
| 12879 |
|
| 12880 |
* sprint.adb: Minor reformatting. |
| 12881 |
|
| 12882 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12883 |
|
| 12884 |
* exp_ch4.adb (Process_Transient_Object): Add local variable |
| 12885 |
Temp_Ins. When the transient object is initialized by an |
| 12886 |
aggregate, the hook must capture the object after the last |
| 12887 |
component assignment takes place. |
| 12888 |
* exp_ch7.adb (Detect_Subprogram_Call): Expose the subprogram to |
| 12889 |
routine Is_Subprogram_Call. |
| 12890 |
(Is_Subprogram_Call): Inspect an |
| 12891 |
aggregate that has been heavily expanded for subprogram calls. |
| 12892 |
(Process_Transient_Objects): Add local variables Expr, Ptr_Id |
| 12893 |
and Temp_Ins. Remove the nested declare block and adjust the |
| 12894 |
indentation. When the transient object is initialized by an |
| 12895 |
aggregate, the hook must capture the object after the last |
| 12896 |
component assignment takes place. |
| 12897 |
|
| 12898 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12899 |
|
| 12900 |
* sem_prag.adb (Analyze_Global_Item): Detect illegal uses of |
| 12901 |
external states with enabled properties that do not match the |
| 12902 |
global mode. |
| 12903 |
(Property_Error): New routine. |
| 12904 |
* sem_res.adb (Property_Error): New routine. |
| 12905 |
(Resolve_Actuals): Detect illegal uses of external variables with |
| 12906 |
enabled properties in procedure calls that do not match the mode of |
| 12907 |
the corresponding formal parameter. |
| 12908 |
|
| 12909 |
2014-02-06 Hristian Kirtchev <[email protected]> |
| 12910 |
|
| 12911 |
* sem_util.adb (Has_Enabled_Property): Rename |
| 12912 |
formal parameter Prop_Nam to Property. Update the comment on usage |
| 12913 |
and all occurrences in the body. Add local variable Prop_Nam. When |
| 12914 |
inspecting a property with an expression, the property name |
| 12915 |
appears as the first choice of the component association. |
| 12916 |
|
| 12917 |
2014-02-04 Robert Dewar <[email protected]> |
| 12918 |
|
| 12919 |
* exp_ch5.adb, einfo.ads, freeze.adb, sem_ch8.adb: Minor reformatting. |
| 12920 |
|
| 12921 |
2014-02-04 Gary Dismukes <[email protected]> |
| 12922 |
|
| 12923 |
* sem_aggr.adb: Change "runtime" to "run time" in warning message, |
| 12924 |
for consistency with other messages. |
| 12925 |
|
| 12926 |
2014-02-04 Ed Schonberg <[email protected]> |
| 12927 |
|
| 12928 |
* exp_ch5.adb (Expand_Iterator_Loop): For a container element |
| 12929 |
iterator, indicate that the element is a constant if the container |
| 12930 |
type does not have a variable indexing aspect. |
| 12931 |
* sem_ch8.adb (Analyze_Object_Renaming): If the entity is already |
| 12932 |
marked as constant, do not reset its Ekind, to ensure that |
| 12933 |
container elements in an element loop are not modified if the |
| 12934 |
container (e.g. a hashed set) only has a constant indexing aspect. |
| 12935 |
|
| 12936 |
2014-02-04 Arnaud Charlet <[email protected]> |
| 12937 |
|
| 12938 |
* g-souinf.ads: Subprograms in this unit are actually not pure. |
| 12939 |
* freeze.adb (Freeze_Subprogram): Do not reset Is_Pure for Intrinsics. |
| 12940 |
* einfo.ads (Is_Pure): Update doc to match implementation. |
| 12941 |
|
| 12942 |
2014-02-04 Gary Dismukes <[email protected]> |
| 12943 |
|
| 12944 |
* exp_ch13.adb: Minor spelling fix. |
| 12945 |
|
| 12946 |
2014-02-04 Robert Dewar <[email protected]> |
| 12947 |
|
| 12948 |
* opt.ads: Minor comment update. |
| 12949 |
|
| 12950 |
2014-02-04 Robert Dewar <[email protected]> |
| 12951 |
|
| 12952 |
* exp_ch4.adb (Expand_N_Expression_With_Actions): Use Rewrite |
| 12953 |
instead of Replace. |
| 12954 |
|
| 12955 |
2014-02-04 Ed Schonberg <[email protected]> |
| 12956 |
|
| 12957 |
* sem_aggr.adb (Resolve_Array_Aggregate): Suppress warnings |
| 12958 |
on null expressions if component type is non-null, when the |
| 12959 |
corresponding association covers an empty range of index values. |
| 12960 |
|
| 12961 |
2014-02-04 Robert Dewar <[email protected]> |
| 12962 |
|
| 12963 |
* sinfo.ads: Further comments on N_Expression_With_Actions node. |
| 12964 |
|
| 12965 |
2014-02-04 Hristian Kirtchev <[email protected]> |
| 12966 |
|
| 12967 |
* sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global |
| 12968 |
variables Out_Items and Ref_Global. Remove local constant |
| 12969 |
Body_Id along with dummy variables D1, D2, D3, D4, D5, D6, D7 |
| 12970 |
and D8. Remove the useless collection of global items as this |
| 12971 |
was a leftover from an earlier version of the routine. Move |
| 12972 |
several routines out to avoid deep nesting and indentation. |
| 12973 |
(Inputs_Match): Add formal parameter Dep_Clause. Rename formal |
| 12974 |
parameter Do_Checks to Post_Errors. Update the comment on usage. |
| 12975 |
(Is_Matching_Input): Renamed to Input_Match. Add formal parameters |
| 12976 |
Ref_Inputs and Do_Checks. Rename formal parameter Do_Checks |
| 12977 |
to Post_Errors. Update the comment on usage. Account for the |
| 12978 |
case where a self referential state may have a null input_list. |
| 12979 |
(Is_Self_Referential): New routine. |
| 12980 |
|
| 12981 |
2014-02-04 Ed Schonberg <[email protected]> |
| 12982 |
|
| 12983 |
* sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the |
| 12984 |
entity renames an expression, as in the case of an object of |
| 12985 |
an unconstrained type initialized by a function call, defer the |
| 12986 |
rewriting of the expression to the expander. |
| 12987 |
* exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case |
| 12988 |
'Alignment): If the entity renames an expression, introduce |
| 12989 |
temporary to capture value, and rewrite original declaration to |
| 12990 |
use temporary. |
| 12991 |
|
| 12992 |
2014-02-04 Gary Dismukes <[email protected]> |
| 12993 |
|
| 12994 |
* g-comlin.adb: Minor typo fix. |
| 12995 |
|
| 12996 |
2014-02-04 Ed Schonberg <[email protected]> |
| 12997 |
|
| 12998 |
* freeze.adb (Freeze_All): Types derived from a formal |
| 12999 |
access_to_classwide type do not have a finalization master. |
| 13000 |
|
| 13001 |
2014-02-04 Robert Dewar <[email protected]> |
| 13002 |
|
| 13003 |
* sprint.adb: Minor reformatting. |
| 13004 |
|
| 13005 |
2014-02-04 Robert Dewar <[email protected]> |
| 13006 |
|
| 13007 |
* exp_ch4.adb (Expand_N_Expression_With_Actions): Eliminate |
| 13008 |
cases where Actions is a null list. |
| 13009 |
* sinfo.ads (N_Expression_With_Actions): Actions can be |
| 13010 |
temporarily empty during semantic analysis, but must be non-empty |
| 13011 |
in the final expanded tree. |
| 13012 |
|
| 13013 |
2014-01-31 Robert Dewar <[email protected]> |
| 13014 |
|
| 13015 |
* exp_ch9.adb: Minor reformatting. |
| 13016 |
|
| 13017 |
2014-01-31 Emmanuel Briot <[email protected]> |
| 13018 |
|
| 13019 |
* g-comlin.adb (Set_Command_Line): Take the switches |
| 13020 |
configuration from the Command_Line_Config. |
| 13021 |
|
| 13022 |
2014-01-31 Hristian Kirtchev <[email protected]> |
| 13023 |
|
| 13024 |
* sem_prag.adb (Analyze_Refinement_Clause): Guard against a malformed |
| 13025 |
refinement clause. |
| 13026 |
|
| 13027 |
2014-01-31 Vincent Celier <[email protected]> |
| 13028 |
|
| 13029 |
* projects.texi: Add more documentation about others used as an |
| 13030 |
index in indexed attributes. |
| 13031 |
|
| 13032 |
2014-01-31 Robert Dewar <[email protected]> |
| 13033 |
|
| 13034 |
* gnat_ugn.texi: Minor update. |
| 13035 |
* gnat_rm.texi: Add example to Restriction_Warnings documentation. |
| 13036 |
* exp_util.adb: Minor reformatting. |
| 13037 |
|
| 13038 |
2014-01-31 Ed Schonberg <[email protected]> |
| 13039 |
|
| 13040 |
* exp_ch9.adb (Expand_Entry_Barrier): Warn if the barrier |
| 13041 |
depends on data that is not private to the protected object, |
| 13042 |
and potentially modifiable in unsynchronized fashion. |
| 13043 |
|
| 13044 |
2014-01-31 Yannick Moy <[email protected]> |
| 13045 |
|
| 13046 |
* erroutc.adb (Validate_Specific_Warnings): Remove special case for |
| 13047 |
GNATprove_Mode. |
| 13048 |
|
| 13049 |
2014-01-31 Robert Dewar <[email protected]> |
| 13050 |
|
| 13051 |
* prj-attr.ads (First_Attribute_Of): Returns Empty_Attribute |
| 13052 |
for Unknown_Package. |
| 13053 |
* sem_ch6.adb, sem_attr.adb: Minor comment addition. |
| 13054 |
|
| 13055 |
2014-01-31 Hristian Kirtchev <[email protected]> |
| 13056 |
|
| 13057 |
* exp_util.adb (Build_Allocate_Deallocate_Proc): Rewrite |
| 13058 |
the logic that generates a runtime check to determine the |
| 13059 |
controlled status of the object about to be allocated or |
| 13060 |
deallocated. Class-wide types now always use a runtime check |
| 13061 |
even if they appear as generic actuals. |
| 13062 |
(Find_Object): Detect |
| 13063 |
a special case that involves interface class-wide types because |
| 13064 |
the object appears as a complex expression. |
| 13065 |
|
| 13066 |
2014-01-31 Ed Schonberg <[email protected]> |
| 13067 |
|
| 13068 |
* sem_ch6.adb (Process_Formals): In Ada2012 mode, place |
| 13069 |
subprogram with an incomplete untagged formals on the list of |
| 13070 |
private dependents, to verify that the type is properly completed |
| 13071 |
in the private part. |
| 13072 |
* sem_attr.adb: Code clean up. |
| 13073 |
|
| 13074 |
2014-01-31 Robert Dewar <[email protected]> |
| 13075 |
|
| 13076 |
* exp_ch6.adb: Minor reformatting. |
| 13077 |
|
| 13078 |
2014-01-31 Vincent Celier <[email protected]> |
| 13079 |
|
| 13080 |
* prj-attr.adb (First_Attribute_Of): Return Unknown_Attribute |
| 13081 |
when Pkg is unknown. |
| 13082 |
|
| 13083 |
2014-01-31 Hristian Kirtchev <[email protected]> |
| 13084 |
|
| 13085 |
* sem_res.adb (Resolve_Entity_Name): Comment |
| 13086 |
reformatting. Allow volatile objects in various generated checks. |
| 13087 |
|
| 13088 |
2014-01-31 Ed Schonberg <[email protected]> |
| 13089 |
|
| 13090 |
* sem_attr.adb (Analyze_Attribute, case 'Update): For a record |
| 13091 |
component association, set the etype of the identifier, for |
| 13092 |
SPARK use. |
| 13093 |
|
| 13094 |
2014-01-31 Ed Schonberg <[email protected]> |
| 13095 |
|
| 13096 |
* exp_ch6.adb (Has_Visibility_Of_Subprogram): If type is not |
| 13097 |
declared in a package, not checks can apply to the subprogram. |
| 13098 |
|
| 13099 |
2014-01-31 Robert Dewar <[email protected]> |
| 13100 |
|
| 13101 |
* erroutc.adb (Validate_Specific_Warnings): Warnings are |
| 13102 |
controlled -gnatw.W. |
| 13103 |
* gnat_ugn.texi: Document new warnings controlled by -gnatw.w. |
| 13104 |
* opt.ads (Warn_On_Warnings_Off): Now controls more cases. |
| 13105 |
|
| 13106 |
2014-01-31 Arnaud Charlet <[email protected]> |
| 13107 |
|
| 13108 |
* exp_disp.adb: Update comments. |
| 13109 |
|
| 13110 |
2014-01-31 Yannick Moy <[email protected]> |
| 13111 |
|
| 13112 |
* sem_ch12.adb (Analyze_Generic_Subprogram_Declaration, |
| 13113 |
Save_Global_References): Guard access to expression in aspect. |
| 13114 |
|
| 13115 |
2014-01-31 Yannick Moy <[email protected]> |
| 13116 |
|
| 13117 |
* sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode): |
| 13118 |
Issue an error when the pragma is applied to a generic unit, |
| 13119 |
a generic declaration, or inside a generic. |
| 13120 |
|
| 13121 |
2014-01-31 Yannick Moy <[email protected]> |
| 13122 |
|
| 13123 |
* sem_ch8.adb (Analyze_Subprogram_Renaming): Set SPARK_Mode on renaming |
| 13124 |
entity. |
| 13125 |
|
| 13126 |
2014-01-31 Robert Dewar <[email protected]> |
| 13127 |
|
| 13128 |
* exp_ch9.adb, s-tassta.adb, s-tposen.adb, s-tposen.ads: Minor |
| 13129 |
reformatting. |
| 13130 |
|
| 13131 |
2014-01-31 Tristan Gingold <[email protected]> |
| 13132 |
|
| 13133 |
* exp_disp.adb: Add a historic note. |
| 13134 |
|
| 13135 |
2014-01-31 Robert Dewar <[email protected]> |
| 13136 |
|
| 13137 |
* sem_warn.adb (Warn_On_Useless_Assignments): Add call to |
| 13138 |
Process_Deferred_References. |
| 13139 |
|
| 13140 |
2014-01-31 Yannick Moy <[email protected]> |
| 13141 |
|
| 13142 |
* erroutc.adb (Validate_Specific_Warnings): Do not issue a message for |
| 13143 |
ineffective pragma Warnings(Off) in GNATprove_Mode. |
| 13144 |
|
| 13145 |
2014-01-31 Bob Duff <[email protected]> |
| 13146 |
|
| 13147 |
* s-taskin.ads: Minor comment fix. |
| 13148 |
* s-tassta.adb (Abort_Dependents): Don't abort all dependents; |
| 13149 |
just direct dependents. If this is actually an abort, each task |
| 13150 |
will take care of aborting its dependents, so all dependents will |
| 13151 |
get aborted, as before. However, when this is called the second |
| 13152 |
time from Vulnerable_Complete_Master "for convenience" (i.e. to |
| 13153 |
kill off tasks waiting at terminate alternatives), aborting |
| 13154 |
indirect dependents is wrong, because it causes some unrelated |
| 13155 |
tasks to get aborted. |
| 13156 |
|
| 13157 |
2014-01-31 Robert Dewar <[email protected]> |
| 13158 |
|
| 13159 |
* sem_ch4.adb: Minor reformatting. |
| 13160 |
|
| 13161 |
2014-01-31 Robert Dewar <[email protected]> |
| 13162 |
|
| 13163 |
* exp_ch2.adb: New calling sequence for Is_LHS. |
| 13164 |
* frontend.adb: Add call to Process_Deferred_References. |
| 13165 |
* lib-xref.ads, lib-xref.adb (Process_Deferred_References): New. |
| 13166 |
(Deferred_References): New table. |
| 13167 |
* sem_ch8.adb (Find_Direct_Name): Make deferred reference table |
| 13168 |
entries. |
| 13169 |
(Find_Expanded_Name): Ditto. |
| 13170 |
* sem_res.adb: New calling sequence for Is_LHS. |
| 13171 |
* sem_util.ads, sem_util.adb (Is_LHS): New calling sequence. |
| 13172 |
* sem_warn.adb: Call Process_Deferred_References before issuing |
| 13173 |
warnings. |
| 13174 |
|
| 13175 |
2014-01-31 Tristan Gingold <[email protected]> |
| 13176 |
|
| 13177 |
* exp_util.adb (Corresponding_Runtime_Package): Restrict the |
| 13178 |
use of System_Tasking_Protected_Objects_Single_Entry. |
| 13179 |
* exp_ch9.adb (Build_Simple_Entry_Call): Remove Mode parameter |
| 13180 |
of Protected_Single_Entry_Call. |
| 13181 |
(Expand_N_Timed_Entry_Call): Remove single_entry case. |
| 13182 |
* exp_disp.adb (Make_Disp_Asynchronous_Select_Body): Remove |
| 13183 |
single_entry case. |
| 13184 |
(Make_Disp_Timed_Select_Body): Likewise. |
| 13185 |
* rtsfind.ads (RE_Timed_Protected_Single_Entry_Call): Remove. |
| 13186 |
* s-tposen.adb (Send_Program_Error, PO_Do_Or_Queue): Remove |
| 13187 |
Self_Id parameter. |
| 13188 |
(Wakeup_Entry_Caller): Remove Self_ID and New_State parameters. |
| 13189 |
(Wait_For_Completion_With_Timeout): Remove. |
| 13190 |
(Protected_Single_Entry_Call): Remove Mode parameter |
| 13191 |
(always Simple_Call). |
| 13192 |
(Service_Entry): Remove Self_Id constant (not used anymore). |
| 13193 |
(Timed_Protected_Single_Entry_Call): Remove. |
| 13194 |
* s-tposen.ads (Timed_Protected_Single_Entry_Call): Remove. |
| 13195 |
(Protected_Single_Entry_Call): Remove Mode parameter. |
| 13196 |
|
| 13197 |
2014-01-29 Hristian Kirtchev <[email protected]> |
| 13198 |
|
| 13199 |
* einfo.adb (Get_Pragma): Handle the retrieval of pragma Refined_Post. |
| 13200 |
* einfo.ads (Get_Pragma): Update the comment on special pragmas |
| 13201 |
handled by this routine. |
| 13202 |
* sem_prag.adb (Analyze_Pragma): Add a legal pragma Refined_Post |
| 13203 |
to the contract of the related subprogram body. |
| 13204 |
* sem_util.adb (Add_Contract_Item): Handle the insertion of |
| 13205 |
pragma Refined_Post into the contract of a subprogram body. |
| 13206 |
* sinfo.ads Update the documentation of node N_Contract. |
| 13207 |
* sem_res.adb (Resolve_Entity_Name): Add a guard |
| 13208 |
to detect abstract states and variables only when checking the |
| 13209 |
SPARK 2014 rules concerning volatile object placement. |
| 13210 |
|
| 13211 |
2014-01-29 Ed Schonberg <[email protected]> |
| 13212 |
|
| 13213 |
* sem_ch4.adb (Find_Equality_Types, Try_One_Interp): within an instance, |
| 13214 |
null is compatible with any access type. |
| 13215 |
|
| 13216 |
2014-01-29 Hristian Kirtchev <[email protected]> |
| 13217 |
|
| 13218 |
* sem_util.adb (Find_Placement_In_State_Space): Assume that the default |
| 13219 |
placement is not in a package. |
| 13220 |
|
| 13221 |
2014-01-29 Hristian Kirtchev <[email protected]> |
| 13222 |
|
| 13223 |
* sem_util.adb (Has_Enabled_Property): Compare the character field of |
| 13224 |
the sole property. |
| 13225 |
|
| 13226 |
2014-01-29 Robert Dewar <[email protected]> |
| 13227 |
|
| 13228 |
* sem_intr.adb, a-ztexio.ads, sinfo.ads, sem_res.adb, gnatlink.adb, |
| 13229 |
vms_conv.adb, a-except.ads, a-except-2005.ads, a-teioed.adb, |
| 13230 |
sem_warn.ads, treepr.ads, erroutc.ads, a-excach.adb: Minor reformatting. |
| 13231 |
|
| 13232 |
2014-01-29 Robert Dewar <[email protected]> |
| 13233 |
|
| 13234 |
* sem_util.ads, sem_util.adb (In_Pragma_Expression): New function. |
| 13235 |
* sem_warn.adb (Check_References): Suppress warnings if inside |
| 13236 |
Initial_Condition pragma. |
| 13237 |
|
| 13238 |
2014-01-29 Hristian Kirtchev <[email protected]> |
| 13239 |
|
| 13240 |
* sem_prag.adb (Check_Missing_Part_Of): List all values of |
| 13241 |
State_Space_Kind for readability reasons. Do not emit an error on |
| 13242 |
a private item when the enclosing package lacks aspect/pragma |
| 13243 |
Abstract_State. Do not emit an error on a private package |
| 13244 |
instantiation when the corresponding generic template lacks |
| 13245 |
visible state. |
| 13246 |
(Has_Visible_State): New routine. |
| 13247 |
* sem_util.adb (Find_Placement_In_State_Space): The visible |
| 13248 |
declarations of any kind of child units in general act as proper |
| 13249 |
placement location. |
| 13250 |
|
| 13251 |
2014-01-29 Robert Dewar <[email protected]> |
| 13252 |
|
| 13253 |
* a-except-2005.adb, a-except.adb, a-excpol-abort.adb, a-exstat.adb, |
| 13254 |
ali.adb, a-numaux.ads, a-numaux-darwin.ads, a-numaux-libc-x86.ads, |
| 13255 |
a-numaux-vms.ads, a-numaux-vxworks.ads, a-numaux-x86.ads, aspects.ads, |
| 13256 |
a-taside.adb, a-teioed.adb, a-textio.adb, a-textio.ads, atree.adb, |
| 13257 |
atree.ads, a-witeio.adb, a-witeio.ads, a-wtedit.adb, a-ztedit.adb, |
| 13258 |
a-ztexio.adb, bcheck.adb, binde.adb, checks.adb, comperr.adb, |
| 13259 |
cstand.adb, debug_a.adb, einfo.ads, errout.adb, erroutc.adb, |
| 13260 |
eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, exp_ch3.adb, |
| 13261 |
exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, exp_dbug.adb, |
| 13262 |
exp_disp.adb, exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_util.adb, |
| 13263 |
freeze.adb, frontend.adb, g-comlin.ads, g-mbdira.adb, gnat1drv.adb, |
| 13264 |
gprep.adb, g-spipat.adb, i-cpp.ads, i-vxwork.ads, i-vxwork-x86.ads, |
| 13265 |
krunch.ads, layout.adb, lib-load.adb, lib-writ.adb, lib-writ.ads, |
| 13266 |
live.adb, namet.ads, osint.adb, osint-c.adb, output.ads, par.adb, |
| 13267 |
par-ch10.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb, |
| 13268 |
par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-prag.adb, |
| 13269 |
par-sync.adb, par-tchk.adb, par-util.adb, prj.adb, repinfo.adb, |
| 13270 |
rtsfind.adb, s-arit64.adb, s-asthan-vms-alpha.adb, |
| 13271 |
s-asthan-vms-ia64.adb, s-bignum.adb, scans.adb, scng.adb, s-dimmks.ads, |
| 13272 |
sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_cat.adb, sem_ch10.adb, |
| 13273 |
sem_ch12.adb, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb, |
| 13274 |
sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_disp.adb, sem_elab.adb, |
| 13275 |
sem_elim.adb, sem_eval.adb, sem_intr.adb, sem_prag.adb, sem_res.adb, |
| 13276 |
sem_type.adb, sem_util.adb, sem_warn.adb, set_targ.adb, s-fatgen.adb, |
| 13277 |
s-fatgen.ads, s-fileio.adb, s-imgcha.adb, s-imgrea.adb, sinfo.ads, |
| 13278 |
sinput-c.adb, snames.ads-tmpl, s-os_lib.adb, sprint.adb, |
| 13279 |
s-regpat.adb, s-secsta.adb, s-stalib.ads, |
| 13280 |
s-stchop.adb, s-stoele.ads, stand.ads, s-taprop-solaris.adb, |
| 13281 |
s-tasdeb-vms.adb, s-tasini.adb, s-tassta.adb, s-valdec.adb, |
| 13282 |
s-valuti.adb, s-wchjis.adb, s-wchwts.adb, system.ads, system-vms_64.ads, |
| 13283 |
system-vms-ia64.ads, treepr.adb, types.ads, uintp.adb, uname.adb, |
| 13284 |
urealp.adb, usage.adb, vxaddr2line.adb: Minor reformatting. |
| 13285 |
|
| 13286 |
2014-01-29 Robert Dewar <[email protected]> |
| 13287 |
|
| 13288 |
* expander.adb: Minor reformatting. |
| 13289 |
|
| 13290 |
2014-01-29 Javier Miranda <[email protected]> |
| 13291 |
|
| 13292 |
* exp_ch3.adb (Predefined_Primitive_Bodies): Adding documentation to |
| 13293 |
previous patch. |
| 13294 |
|
| 13295 |
2014-01-29 Javier Miranda <[email protected]> |
| 13296 |
|
| 13297 |
* exp_ch3.adb (Predefined_Primitive_Bodies): Complete the code |
| 13298 |
that checks if an interface types defines the predefined "=" |
| 13299 |
function because the compiler was erroneously not generating the |
| 13300 |
predefined "=" primitive as soon as the name of some interface |
| 13301 |
primitive is "=" (formals were not checked). |
| 13302 |
|
| 13303 |
2014-01-29 Ed Schonberg <[email protected]> |
| 13304 |
|
| 13305 |
* expander.adb (Expander): In GNATprove mode, do not process |
| 13306 |
transient scopes: they are in general not created in this mode, |
| 13307 |
and an attempt to examine them will lead to constraint errors when |
| 13308 |
processing configuration pragmas that have analyzable expressions. |
| 13309 |
|
| 13310 |
2014-01-29 Vincent Celier <[email protected]> |
| 13311 |
|
| 13312 |
* clean.adb (Gnatclean): Fail if main project is an aggregate |
| 13313 |
project or if there is an aggregate library project in the |
| 13314 |
project tree. |
| 13315 |
* gnatcmd.adb: Fail if the main project is an aggregate project |
| 13316 |
or if there is an aggegate library project in the project tree. |
| 13317 |
* make.adb (Initialize): : Fail if main project is an aggregate |
| 13318 |
project or if there is an aggregate library project in the |
| 13319 |
project tree. |
| 13320 |
* makeutl.ads (Aggregate_Libraries_In): New Boolean function. |
| 13321 |
* prj-makr.adb (Initialize): Fail if the main project is an |
| 13322 |
aggregate project or an aggregate library project. |
| 13323 |
|
| 13324 |
2014-01-29 Vincent Celier <[email protected]> |
| 13325 |
|
| 13326 |
* prj-part.adb (Check_Import_Aggregate): New procedure |
| 13327 |
to check if an imported project is an aggregate project. |
| 13328 |
(Parse_Single_Project): Call Check_Import_Aggregate |
| 13329 |
* projects.texi: Document that aggregate projects cannot be |
| 13330 |
extended or imported. |
| 13331 |
|
| 13332 |
2014-01-29 Robert Dewar <[email protected]> |
| 13333 |
|
| 13334 |
* exp_ch9.adb, sem_ch7.ads, s-regexp.adb, sem_ch13.adb: Minor |
| 13335 |
reformatting and code clean up. |
| 13336 |
* gnat_ugn.texi: Add documentation section on Atomic Variables |
| 13337 |
and Optimization. |
| 13338 |
|
| 13339 |
2014-01-29 Hristian Kirtchev <[email protected]> |
| 13340 |
|
| 13341 |
* einfo.adb Flag264 is now unused. |
| 13342 |
(Has_Body_References): Removed. |
| 13343 |
(Set_Has_Body_References): Removed. |
| 13344 |
(Write_Entity_Flags): Remove the output for flag Has_Body_References. |
| 13345 |
* einfo.ads Update the comment on usage of attribute |
| 13346 |
Body_References. Remove attribute Has_Body_References and its |
| 13347 |
usage in nodes. |
| 13348 |
(Has_Body_References): Removed along with pragma Inline. |
| 13349 |
(Set_Has_Body_References): Removed along with pragma Inline. |
| 13350 |
* sem_prag.adb (Analyze_Global_Item): Move the call to |
| 13351 |
Record_Possible_Body_Reference in the state related checks |
| 13352 |
section. Add a comment intended function. |
| 13353 |
(Analyze_Input_Output): Move the call to Record_Possible_Body_Reference |
| 13354 |
in the state related checks section. Add a comment intended function. |
| 13355 |
(Analyze_Refinement_Clause): Cleanup the illegal body reference |
| 13356 |
reporting. Add a comment on timing of error reporting. |
| 13357 |
(Record_Possible_Body_Reference): Reimplement the routine. |
| 13358 |
|
| 13359 |
2014-01-29 Vincent Celier <[email protected]> |
| 13360 |
|
| 13361 |
* makeutl.adb (Mains.Find_File_Add_Extension): Only look for specs for |
| 13362 |
unit-based languages. |
| 13363 |
(Mains.Complete_Mains.Do_Complete): Use the source file project |
| 13364 |
tree when calling Find_File_Add_Extension. Use the correct |
| 13365 |
project name when reporting an error. |
| 13366 |
|
| 13367 |
2014-01-29 Hristian Kirtchev <[email protected]> |
| 13368 |
|
| 13369 |
* aspects.adb Add an entry for aspect Part_Of in table |
| 13370 |
Canonical_Aspect. |
| 13371 |
* aspects.ads Add an entry for aspect Part_Of in tables Aspect_Id, |
| 13372 |
Aspect_Argument, Aspect_Names and Aspect_Delay. |
| 13373 |
* atree.h Define Elist9. |
| 13374 |
* atree.adb (Elist9): New routine. |
| 13375 |
(Set_Elist9): New routine. |
| 13376 |
* atree.ads (Elist9): New routine. |
| 13377 |
(Set_Elist9): New routine. |
| 13378 |
* einfo.adb Add Part_Of_Constituents and Encapsulating_State to |
| 13379 |
the list of node usage. Remove Refined_State from the list of |
| 13380 |
node usage. |
| 13381 |
(Encapsulating_State): New routine. |
| 13382 |
(Get_Pragma): |
| 13383 |
Handle pragma Part_Of; (Part_Of_Constituents): New routine. |
| 13384 |
(Refined_State): Removed. |
| 13385 |
(Set_Encapsulating_State): New routine. |
| 13386 |
(Set_Part_Of_Constituents): New routine. |
| 13387 |
(Set_Refined_State): Removed. |
| 13388 |
(Write_Field9_Name): Add an entry |
| 13389 |
for Part_Of_Constituents (Write_Field10_Name): Add an entry for |
| 13390 |
Encapsulating_State. Remove the entry for Refined_State. |
| 13391 |
* einfo.ads Add new attributes Encapsulating_State |
| 13392 |
and Part_Of_Constituents alond with their usage in |
| 13393 |
entities. Remove attribute Refined_State along with its |
| 13394 |
usage in entities. |
| 13395 |
(Encapsulating_State): New routine and |
| 13396 |
pragma Inline. (Get_Pragma): Update the comment on usage. |
| 13397 |
(Part_Of_Constituents): New routine and pragma Inline. |
| 13398 |
(Refined_State): Removed along with pragma Inline. |
| 13399 |
(Set_Encapsulating_State): New routine and pragma Inline. |
| 13400 |
(Set_Part_Of_Constituents): New routine and pragma Inline. |
| 13401 |
(Set_Refined_State): Removed along with pragma Inline. |
| 13402 |
* par-prag.adb Pragma Part_Of does not need any special processing |
| 13403 |
by the parser. |
| 13404 |
* sem_ch3.adb (Analyze_Declarations): Remove local variables |
| 13405 |
Body_Id and Prag. Call separate routines to analyze the |
| 13406 |
contract of a package [body]. |
| 13407 |
(Analyze_Object_Contract): |
| 13408 |
Update the comment on usage. Remove local variables |
| 13409 |
Items and Nam. Use Get_Pragma rather than traversing the |
| 13410 |
classification list. Verify whether the lack of indicator |
| 13411 |
Part_Of agrees with the placement of the variable in state space. |
| 13412 |
(Analyze_Object_Declaration): Initialize the encapsulating state |
| 13413 |
of a variable. (Requires_State_Refinement): Moved to sem_util. |
| 13414 |
* sem_ch7.adb (Analyze_Package_Body_Contract): New routine. |
| 13415 |
(Analyze_Package_Contract): New routine. |
| 13416 |
* sem_ch7.ads (Analyze_Package_Body_Contract): New routine. |
| 13417 |
(Analyze_Package_Contract): New routine. |
| 13418 |
* sem_ch10.adb (Decorate_State): Initialize the encapsulating |
| 13419 |
state and Part_Of constituents. |
| 13420 |
* sem_ch13.adb (Analyze_Aspect_Specifications): |
| 13421 |
Add processing for aspect Part_Of. Update all |
| 13422 |
calls to Decorate_Delayed_Aspect_And_Pragma. |
| 13423 |
(Check_Aspect_At_Freeze_Point): Aspect Part_Of does |
| 13424 |
not need any special processing at freeze time. |
| 13425 |
(Decorate_Delayed_Aspect_And_Pragma): Renamed to |
| 13426 |
Decorate_Aspect_And_Pragma. Add formal parameter Delayed and |
| 13427 |
update the associated comment. |
| 13428 |
* sem_prag.adb Add an entry for pragma Part_Of in table Sig_Flags. |
| 13429 |
(Analyze_Abstract_State): Add new global variable State_Id. Remove |
| 13430 |
local constants Errors and Loc. Remove local variables Is_Null |
| 13431 |
and State_Nam. Create the entity of the abstract state on the |
| 13432 |
spot, before all remaining checks are performed. Verify that a |
| 13433 |
missing Part_Of option agrees with the placement of the abstract |
| 13434 |
state within the state space. |
| 13435 |
(Analyze_Depends_In_Decl_Part): |
| 13436 |
Add new global variables Constits_Seen and States_Seen. Check |
| 13437 |
that a state and a corresponding constituent do not appear |
| 13438 |
in pragma [Refined_]Depends. |
| 13439 |
(Analyze_Global_In_Decl_Part): |
| 13440 |
Add new global variables Constits_Seen and States_Seen. Check |
| 13441 |
that a state and a corresponding constituent do not appear |
| 13442 |
in pragma [Refined_]Global. |
| 13443 |
(Analyze_Global_Item): |
| 13444 |
Remove the now obsolete code that deals with Part_Of. |
| 13445 |
Add the entity of the global item to the list of processed |
| 13446 |
items. (Analyze_Initializes_In_Decl_Part): Add new global |
| 13447 |
variables Constits_Seen and States_Seen. Check that a state |
| 13448 |
and a corresponding constituent do not appear in pragma |
| 13449 |
Initializes. |
| 13450 |
(Analyze_Initialization_Item): Add the entity |
| 13451 |
of the initialization item to the list of processed items. |
| 13452 |
(Analyze_Input_Item): Add the entity of the initialization |
| 13453 |
item to the list of processed items. |
| 13454 |
(Analyze_Input_Output): |
| 13455 |
Remove the now obsolete code that deals with Part_Of. Add the |
| 13456 |
entity of the input/output to the list of processed items. |
| 13457 |
(Analyze_Part_Of): New routine. |
| 13458 |
(Analyze_Part_Of_Option): Remove |
| 13459 |
local constant Par_State. Add local constant Encaps and local |
| 13460 |
variables Encaps_Id and Legal. Use Analyze_Part of to analyze |
| 13461 |
the option. Turn the related state into a Part_Of constituent |
| 13462 |
if the option is legal. |
| 13463 |
(Analyze_Pragma): Add processing |
| 13464 |
for pragma Part_Of. |
| 13465 |
(Analyze_Refined_State_In_Decl_Part): |
| 13466 |
Remove global constants Pack_Body and Spec_Id. Remove |
| 13467 |
global variables Abstr_States and Hidden_States. Add new |
| 13468 |
global variables Available_States, Body_Id, Body_States and |
| 13469 |
Spec_Id. Add new local constant Body_Decl. Reimplement the |
| 13470 |
logic that extracts the states available for refinement from |
| 13471 |
the related package and the body hidden states of the said |
| 13472 |
package. |
| 13473 |
(Analyze_Refinement_Clause): Add local variable Part_Of_Constits. |
| 13474 |
(Check_Applicable_Policy): Alphabetize body. |
| 13475 |
(Check_Dependency_Clause): Replace Refined_State |
| 13476 |
with Encapsulating_State. |
| 13477 |
(Check_Matching_Constituent): |
| 13478 |
Reimplement the logic that determines whether an item is a valid |
| 13479 |
/ invalid constituent of the current refined state. Return when |
| 13480 |
a construct does not denote a valid abstract state. Extract the |
| 13481 |
list of Part_Of constituents for further analysis. Check that all |
| 13482 |
Part_Of constituents of a state have been used in its refinement. |
| 13483 |
(Check_Matching_State): Update the comment on usage. Operate |
| 13484 |
on the list of available states. |
| 13485 |
(Check_Missing_Part_Of): New routine. |
| 13486 |
(Check_Refined_Global_Item): Replace Refined_State |
| 13487 |
with Encapsulating_State. |
| 13488 |
(Check_State_And_Constituent_Use): New routine. |
| 13489 |
(Create_Abstract_State): New routine. |
| 13490 |
(Is_Matching_Input): Replace Refined_State with Encapsulating_State. |
| 13491 |
(Is_Part_Of): Removed. |
| 13492 |
(Collect_Body_States): New routine. |
| 13493 |
(Collect_Constituent): Replace Refined_State with Encapsulating_State. |
| 13494 |
(Collect_Hidden_States): Removed. |
| 13495 |
(Report_Unrefined_States): Change the profile of the procedure along |
| 13496 |
with the comment on usage. |
| 13497 |
(Report_Unused_Constituents): New routine. |
| 13498 |
(Report_Unused_Hidden_States): Removed. |
| 13499 |
(Report_Unused_States): New routine. |
| 13500 |
* sem_prag.ads (Check_Missing_Part_Of): New routine. |
| 13501 |
* sem_util.adb (Add_Contract_Item): Pragma Part_Of can now |
| 13502 |
appear in the classification pragmas of a package instantiation |
| 13503 |
or a variable. |
| 13504 |
(Find_Placement_In_State_Space): New routine. |
| 13505 |
(Is_Child): Removed. |
| 13506 |
(Is_Child_Or_Sibling): Remove formal |
| 13507 |
parameter Private_Child. Remove the private child checks. |
| 13508 |
(Requires_State_Refinement): Moved from sem_ch3. |
| 13509 |
* sem_util.ads Add new type State_Space_Kind along with |
| 13510 |
comment on its usage and values. |
| 13511 |
(Add_Contract_Item): Update the comment on usage. |
| 13512 |
(Find_Body_Discriminal): Alphabetize spec. |
| 13513 |
(Find_Placement_In_State_Space): New routine. |
| 13514 |
(Is_Child_Or_Sibling): Remove formal parameter Private_Child |
| 13515 |
and update the comment on usage. |
| 13516 |
(Requires_State_Refinement): Moved from sem_ch3. |
| 13517 |
* sinfo.ads: Update the documentation of N_Contract. |
| 13518 |
* snames.ads-tmpl The predefined name for Part_Of is now used |
| 13519 |
to denote a pragma. Add Pragma_Id for Part_Of. |
| 13520 |
|
| 13521 |
2014-01-29 Emmanuel Briot <[email protected]> |
| 13522 |
|
| 13523 |
* s-regexp.adb (Create_Secondary_Table): Automatically grow the state |
| 13524 |
machine as needed. |
| 13525 |
(Dump): New subprogram. |
| 13526 |
|
| 13527 |
2014-01-29 Tristan Gingold <[email protected]> |
| 13528 |
|
| 13529 |
* exp_ch9.adb (Expand_N_Protected_Type_Declaration): Add |
| 13530 |
Expand_Entry_Declaration to factorize code. |
| 13531 |
|
| 13532 |
2014-01-29 Ed Schonberg <[email protected]> |
| 13533 |
|
| 13534 |
* checks.adb: minor clarification. |
| 13535 |
* sem_ch7.adb (Declare_Inherited_Private_Subprograms): Limit |
| 13536 |
search for primitive operations to the entities that immediately |
| 13537 |
follow the type declaration. |
| 13538 |
|
| 13539 |
2014-01-29 Tristan Gingold <[email protected]> |
| 13540 |
|
| 13541 |
* exp_ch9.adb (Build_Protected_Entry): Do not call |
| 13542 |
Complete_Entry_Body anymore. |
| 13543 |
* rtsfind.ads (RE_Complete_Single_Entry_Body): Remove. |
| 13544 |
* s-tposen.ads, s-tposen.adb (Complete_Single_Entry_Body): Remove. |
| 13545 |
|
| 13546 |
2014-01-29 Pierre-Marie Derodat <[email protected]> |
| 13547 |
|
| 13548 |
* s-os_lib.adb, s-os_lib.ads (Normalize_Pathname): Return an empty |
| 13549 |
string when the Name input bigger than allowed. Adapt the function |
| 13550 |
specification. |
| 13551 |
|
| 13552 |
2014-01-29 Ed Schonberg <[email protected]> |
| 13553 |
|
| 13554 |
* checks.adb (Install_Null_Excluding_Check): Do not emit warning |
| 13555 |
if expression is within a case_expression of if_expression. |
| 13556 |
|
| 13557 |
2014-01-29 Robert Dewar <[email protected]> |
| 13558 |
|
| 13559 |
* exp_ch9.adb, inline.ads: Minor reformatting. |
| 13560 |
|
| 13561 |
2014-01-29 Tristan Gingold <[email protected]> |
| 13562 |
|
| 13563 |
* exp_ch9.adb (Is_Exception_Safe): Return true if no exceptions. |
| 13564 |
|
| 13565 |
2014-01-29 Yannick Moy <[email protected]> |
| 13566 |
|
| 13567 |
* inline.ads (Pending_Body_Info): Add SPARK_Mode and |
| 13568 |
SPARK_Mode_Pragma components to be able to analyze generic |
| 13569 |
instance. |
| 13570 |
* sem_ch12.adb (Analyze_Package_Instantiation, |
| 13571 |
Inline_Instance_Body, Need_Subprogram_Instance_Body, |
| 13572 |
Load_Parent_Of_Generic): Pass in SPARK_Mode from instantiation |
| 13573 |
for future analysis of the instance. |
| 13574 |
(Instantiate_Package_Body, |
| 13575 |
Instantiate_Subprogram_Body, Set_Instance_Inv): Set SPARK_Mode |
| 13576 |
from instantiation to analyze the instance. |
| 13577 |
|
| 13578 |
2014-01-29 Robert Dewar <[email protected]> |
| 13579 |
|
| 13580 |
* sem_ch7.adb, sem_prag.adb, sem_ch4.adb, sem_ch6.adb: Minor code |
| 13581 |
reorganization. |
| 13582 |
|
| 13583 |
2014-01-29 Yannick Moy <[email protected]> |
| 13584 |
|
| 13585 |
* gnat_rm.texi: Update description of SPARK_Mode pragma. |
| 13586 |
|
| 13587 |
2014-01-29 Tristan Gingold <[email protected]> |
| 13588 |
|
| 13589 |
* exp_ch9.adb (Expand_N_Protected_Body): Remove Num_Entries. |
| 13590 |
|
| 13591 |
2014-01-29 Thomas Quinot <[email protected]> |
| 13592 |
|
| 13593 |
* sem_ch4.adb (Find_Component_In_Instance): Update comment. |
| 13594 |
|
| 13595 |
2014-01-29 Ed Schonberg <[email protected]> |
| 13596 |
|
| 13597 |
* exp_util.adb (Build_Task_Image_Prefix): Indicate that the |
| 13598 |
resulting string is an internal entity. and thus requires no |
| 13599 |
initialization. This is relevant when Initialize_ Scalars is |
| 13600 |
enabled, because the resultant spurious initialization may lead to |
| 13601 |
secondary stack anomalies that produce a mangled name for a task. |
| 13602 |
|
| 13603 |
2014-01-29 Yannick Moy <[email protected]> |
| 13604 |
|
| 13605 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode |
| 13606 |
not inherited from spec anymore. Check consistency |
| 13607 |
rules after processing of declarations. |
| 13608 |
* sem_ch7.adb (Analyze_Package_Body_Helper): SPARK_Mode not inherited |
| 13609 |
from spec anymore. Check consistency rules after processing of |
| 13610 |
declarations. |
| 13611 |
(Analyze_Package_Declaration): Set SPARK_Mode only for non-generic |
| 13612 |
packages. |
| 13613 |
* sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode): Implement new |
| 13614 |
consistency rules. |
| 13615 |
|
| 13616 |
2014-01-27 Robert Dewar <[email protected]> |
| 13617 |
|
| 13618 |
* sem_res.adb (Resolve_Comparison_Op): Add type name/location |
| 13619 |
to unordered msg. |
| 13620 |
(Resolve_Range): Add type name/location to unordered msg. |
| 13621 |
|
| 13622 |
2014-01-27 Claire Dross <[email protected]> |
| 13623 |
|
| 13624 |
* a-cofove.adb/s (Copy): Add precondition so that Copy (Source, |
| 13625 |
Capacity) is only called with Capacity >= Length (Source) and |
| 13626 |
Capacity in Capacity_Range. |
| 13627 |
* a-cfdlli.adb/s, a-cfhase.adb/s, a-cfhama.adb/s, a-cforse.adb/s, |
| 13628 |
a-cforma.adb/s (Copy): Add precondition so that Copy (Source, Capacity) |
| 13629 |
is only called with Capacity >= Source.Capacity. Raise Capacity_Error |
| 13630 |
in the code is this is not the case. |
| 13631 |
|
| 13632 |
2014-01-27 Thomas Quinot <[email protected]> |
| 13633 |
|
| 13634 |
* sem_ch4.adb (Analyze_Selected_Component): Fix handling of |
| 13635 |
selected component in an instance where the component of the |
| 13636 |
actual is not visibile at instantiation. |
| 13637 |
|
| 13638 |
2014-01-27 Ed Schonberg <[email protected]> |
| 13639 |
|
| 13640 |
* sem_ch6.adb: sem_ch6.adb (Set_Actual_Subtypes): If the type |
| 13641 |
has a dynamic predicate, generate freeze node for Actual_Subtype |
| 13642 |
at once, because the declaration of the corresponding predicate |
| 13643 |
function will make reference to it. |
| 13644 |
|
| 13645 |
2014-01-27 Tristan Gingold <[email protected]> |
| 13646 |
|
| 13647 |
* exp_ch7.adb, exp_ch9.adb: Adjust comments. |
| 13648 |
|
| 13649 |
2014-01-27 Robert Dewar <[email protected]> |
| 13650 |
|
| 13651 |
* exp_ch4.adb (Expand_N_Op_Expon): Remove unsigned type test |
| 13652 |
for 2**X optimization. |
| 13653 |
|
| 13654 |
2014-01-27 Ed Schonberg <[email protected]> |
| 13655 |
|
| 13656 |
* a-suenst.adb: strings.utf_encoding.strings (Decode): Check |
| 13657 |
explicitly whether value is in range of Character, because the |
| 13658 |
library is typically compiled with range checks disabled, and |
| 13659 |
we cannot rely on the implicit check on the argument of 'Val. |
| 13660 |
|
| 13661 |
2014-01-27 Vincent Celier <[email protected]> |
| 13662 |
|
| 13663 |
* a-ciorma.adb, a-cihama.adb (Assign): Copy the Source to the Target, |
| 13664 |
not the Target to itself. |
| 13665 |
|
| 13666 |
2014-01-27 Robert Dewar <[email protected]> |
| 13667 |
|
| 13668 |
* vms_conv.ads, ali.adb, sem_ch6.ads, opt.ads, vms_cmds.ads: Minor |
| 13669 |
changes to avoid incorrect use of unordered enum types. |
| 13670 |
|
| 13671 |
2014-01-27 Thomas Quinot <[email protected]> |
| 13672 |
|
| 13673 |
* sem_ch4.adb: Minor reformatting. |
| 13674 |
|
| 13675 |
2014-01-27 Robert Dewar <[email protected]> |
| 13676 |
|
| 13677 |
* scn.adb (Check_End_Of_Line): Removed. |
| 13678 |
(Error_Long_Line): Removed. |
| 13679 |
(Determine_License): Use versions of above routines from Scanner. |
| 13680 |
* scng.adb (Check_End_Of_Line): Moved to spec. |
| 13681 |
(Error_Long_Line): Removed, no longer used. |
| 13682 |
* scng.ads (Check_End_Of_Line): Moved here from body. |
| 13683 |
|
| 13684 |
2014-01-27 Tristan Gingold <[email protected]> |
| 13685 |
|
| 13686 |
* exp_ch7.adb (Build_Cleanup_Statements): Call |
| 13687 |
Build_Protected_Subprogram_Call_Cleanup to insert the cleanup |
| 13688 |
for protected body. |
| 13689 |
* exp_ch9.adb (Build_Protected_Subprogram_Body): Likewise. |
| 13690 |
Remove Service_Name variable. |
| 13691 |
(Build_Protected_SUbprogam_Call_Cleanup): New procedure that |
| 13692 |
factorize code from the above subprograms. |
| 13693 |
* exp_ch9.ads (Build_Protected_Subprogram_Call_Cleanup): New procedure. |
| 13694 |
|
| 13695 |
2014-01-27 Hristian Kirtchev <[email protected]> |
| 13696 |
|
| 13697 |
* einfo.adb (Has_Option): Reimplemented. |
| 13698 |
* sem_prag.adb (Analyze_Refinement_Clause): Add global |
| 13699 |
variables AR_Constit, AW_Constit, ER_Constit, EW_Constit, |
| 13700 |
External_Constit_Seen and State. Add local variables Body_Ref, |
| 13701 |
Body_Ref_Elmt and Extra_State. Reimplement part of the logic to |
| 13702 |
avoid a cumbersome while pool. Verify the legality of an external |
| 13703 |
state and relevant properties. |
| 13704 |
(Check_External_Property): New routine. |
| 13705 |
(Check_Matching_State): Remove parameter profile |
| 13706 |
and update comment on usage. |
| 13707 |
(Collect_Constituent): Store the |
| 13708 |
relevant external property of a constituent. |
| 13709 |
* sem_util.adb (Async_Readers_Enabled): Update the call to |
| 13710 |
Has_Enabled_Property. |
| 13711 |
(Async_Writers_Enabled): Update the call to Has_Enabled_Property. |
| 13712 |
(Effective_Reads_Enabled): Update the call to Has_Enabled_Property. |
| 13713 |
(Effective_Writes_Enabled): Update the call to Has_Enabled_Property. |
| 13714 |
(Has_Enabled_Property): Rename formal parameter Extern to State_Id. |
| 13715 |
Update comment on usage. Reimplement the logic to recognize the various |
| 13716 |
formats of properties. |
| 13717 |
|
| 13718 |
2014-01-27 Ed Schonberg <[email protected]> |
| 13719 |
|
| 13720 |
* par-ch5.adb: Minor reformatting. |
| 13721 |
|
| 13722 |
2014-01-27 Tristan Gingold <[email protected]> |
| 13723 |
|
| 13724 |
* s-tposen.ads: Harmonize style and comments. |
| 13725 |
|
| 13726 |
2014-01-27 Vincent Celier <[email protected]> |
| 13727 |
|
| 13728 |
* projects.texi: Document that shared library projects, by |
| 13729 |
default, cannot import projects that are not shared library |
| 13730 |
projects. |
| 13731 |
|
| 13732 |
2014-01-27 Robert Dewar <[email protected]> |
| 13733 |
|
| 13734 |
* sem_ch8.adb (Find_Selected_Component): Use Replace instead |
| 13735 |
of Rewrite. |
| 13736 |
|
| 13737 |
2014-01-27 Ed Schonberg <[email protected]> |
| 13738 |
|
| 13739 |
* a-suenco.adb, a-suenst.adb (Decode): Raise encoding error if |
| 13740 |
any other exception is raised. |
| 13741 |
(Convert): If both Input_Scheme and Output_Scheme are UTF_8 it is |
| 13742 |
still necessary to perform a conversion in order to remove overlong |
| 13743 |
encodings. |
| 13744 |
|
| 13745 |
2014-01-27 Robert Dewar <[email protected]> |
| 13746 |
|
| 13747 |
* exp_smem.adb: Minor reformatting. |
| 13748 |
|
| 13749 |
2014-01-27 Thomas Quinot <[email protected]> |
| 13750 |
|
| 13751 |
* a-calfor.ads: Fix incorrect reference to operator "-" in comment. |
| 13752 |
|
| 13753 |
2014-01-27 Ed Schonberg <[email protected]> |
| 13754 |
|
| 13755 |
* sem_res.adb (Make_Call_Into_Operator): In ASIS mode, relocate |
| 13756 |
nodes for operands to the original node for the call, to preserve |
| 13757 |
Original_Node pointers within the resolved operands, given that |
| 13758 |
they may have been rewritten as well. Previous approach copied |
| 13759 |
the operands into a new tree and lost those pointers. |
| 13760 |
|
| 13761 |
2014-01-27 Claire Dross <[email protected]> |
| 13762 |
|
| 13763 |
|
| 13764 |
* a-cofove.adb, a-cofove.ads: Add Strict_Equal function to the API. |
| 13765 |
|
| 13766 |
2014-01-27 Ed Schonberg <[email protected]> |
| 13767 |
|
| 13768 |
* sem_util.adb (Check_Internal_Protected_Use): A call through |
| 13769 |
an anonymous access parameter of the current protected function |
| 13770 |
is not a potential modification of the current object. |
| 13771 |
|
| 13772 |
2014-01-27 Ed Schonberg <[email protected]> |
| 13773 |
|
| 13774 |
* a-cobove.adb (Reserve_Capacity): Procedure raises |
| 13775 |
Capacity_Error, not Constraint_Error, when request cannot be |
| 13776 |
satisfied. |
| 13777 |
|
| 13778 |
2014-01-27 Vincent Celier <[email protected]> |
| 13779 |
|
| 13780 |
* a-coorma.adb, a-cohama.adb (Assign): Copy the Source to the Target, |
| 13781 |
not the Target to itself. |
| 13782 |
|
| 13783 |
2014-01-27 Ed Schonberg <[email protected]> |
| 13784 |
|
| 13785 |
* exp_ch4.adb (Expand_Concatenate): If the target of the |
| 13786 |
concatenation is a library-level entity, always use the off-line |
| 13787 |
version of concatenation, regardless of optimization level. This |
| 13788 |
is space-efficient, and prevents linking problems when some |
| 13789 |
units are compiled with different optimization levels. |
| 13790 |
|
| 13791 |
2014-01-27 Ed Schonberg <[email protected]> |
| 13792 |
|
| 13793 |
* sem_ch5.adb: Code clean up. |
| 13794 |
|
| 13795 |
2014-01-27 Ed Schonberg <[email protected]> |
| 13796 |
|
| 13797 |
* par-ch5.adb (P_Iterator_Specification): Improve error recovery |
| 13798 |
when an array or container iterator includes a subtype indication, |
| 13799 |
which is only legal in an element iterator. |
| 13800 |
|
| 13801 |
2014-01-27 Thomas Quinot <[email protected]> |
| 13802 |
|
| 13803 |
* exp_ch7.adb: Minor reformatting. |
| 13804 |
|
| 13805 |
2014-01-27 Robert Dewar <[email protected]> |
| 13806 |
|
| 13807 |
* opt.adb (SPARK_Mode): Default for library units is None rather |
| 13808 |
than Off. |
| 13809 |
* opt.ads: Remove AUTO from SPARK_Mode_Type SPARK_Mode_Type is |
| 13810 |
no longer ordered. |
| 13811 |
* sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Remove AUTO |
| 13812 |
possibility. |
| 13813 |
* snames.ads-tmpl (Name_Auto): Removed, no longer used. |
| 13814 |
|
| 13815 |
2014-01-27 Robert Dewar <[email protected]> |
| 13816 |
|
| 13817 |
* par-ch5.adb (P_Sequence_Of_Statements): Make entry in |
| 13818 |
Suspicious_Labels table if we have identifier; followed by loop |
| 13819 |
or block. |
| 13820 |
* par-endh.adb (Evaluate_End_Entry): Search Suspicious_Labels table. |
| 13821 |
* par.adb (Suspicious_Labels): New table. |
| 13822 |
|
| 13823 |
2014-01-27 Robert Dewar <[email protected]> |
| 13824 |
|
| 13825 |
* exp_aggr.adb (Check_Bounds): Reason is range check, not |
| 13826 |
length check. |
| 13827 |
|
| 13828 |
2014-01-27 Yannick Moy <[email protected]> |
| 13829 |
|
| 13830 |
* get_spark_xrefs.adb (Get_SPARK_Xrefs): Accept new type 'c' for |
| 13831 |
reference. |
| 13832 |
* lib-xref-spark_specific.adb (Is_Global_Constant): Remove useless |
| 13833 |
function now. |
| 13834 |
(Add_SPARK_Xrefs): Include references to constants. |
| 13835 |
* spark_xrefs.ads Document new character 'c' for references to |
| 13836 |
constants. |
| 13837 |
|
| 13838 |
2014-01-27 Thomas Quinot <[email protected]> |
| 13839 |
|
| 13840 |
* exp_smem.adb (Add_Write_After): For a function call, insert write as |
| 13841 |
an after action in a transient scope. |
| 13842 |
|
| 13843 |
2014-01-27 Thomas Quinot <[email protected]> |
| 13844 |
|
| 13845 |
* exp_smem.adb (Expand_Shared_Passive_Variable): For a reference |
| 13846 |
to a shared variable as an OUT formal in a call to an init proc, |
| 13847 |
the 'Read call must be emitted after, not before, the call. |
| 13848 |
|
| 13849 |
2014-01-27 Robert Dewar <[email protected]> |
| 13850 |
|
| 13851 |
* gnat_rm.texi: Remove mention of AUTO mode for SPARK_Mode pragma. |
| 13852 |
|
| 13853 |
2014-01-27 Robert Dewar <[email protected]> |
| 13854 |
|
| 13855 |
* a-wichha.adb (Character_Set_Version): Change to output proper |
| 13856 |
value. |
| 13857 |
|
| 13858 |
2014-01-27 Hristian Kirtchev <[email protected]> |
| 13859 |
|
| 13860 |
* einfo.adb (Is_Input_Only_State): Removed. |
| 13861 |
(Is_Non_Volatile_State): Removed. |
| 13862 |
(Is_Output_State): Removed. |
| 13863 |
* einfo.ads (Is_Input_Only_State): Remove attribute and |
| 13864 |
subprogram. Update related entity. |
| 13865 |
(Is_Non_Volatile_State): |
| 13866 |
Remove attribute and subprogram. Update related entity. |
| 13867 |
(Is_Output_State): Removed attribute and subprogram. Update |
| 13868 |
related entity. |
| 13869 |
* exp_ch6.adb (Expand_Subprogram_Contract): Update comment on |
| 13870 |
generated code. |
| 13871 |
* sem_ch3.adb (Analyze_Declarations): Analyze the contract of |
| 13872 |
an object, not just variables. |
| 13873 |
(Analyze_Object_Contract): New routine. |
| 13874 |
(Analyze_Variable_Contract): Removed. |
| 13875 |
(Process_Discriminants): Detect an illegal use of volatile |
| 13876 |
discriminant in SPARK mode. |
| 13877 |
* sem_ch5.adb (Analyze_Iterator_Specification): |
| 13878 |
Detect an illegal use of volatile loop variable. |
| 13879 |
(Analyze_Loop_Parameter_Specification): Detect an illegal use |
| 13880 |
of volatile loop variable. |
| 13881 |
* sem_ch6.adb (Process_Formals): Update the volatile object |
| 13882 |
detection. Detect an illegal formal of mode IN OUT or OUT in |
| 13883 |
SPARK mode. Enhance the error messages with references. |
| 13884 |
* sem_ch12.adb (Instantiate_Object): Update the volatile object |
| 13885 |
detection. Enhance the error messages with references. |
| 13886 |
* sem_prag.adb (Analyze_Abstract_State): Enhance the error |
| 13887 |
messages with references. |
| 13888 |
(Analyze_Contract_Case): Enhance the error messages with references. |
| 13889 |
(Analyze_External_Property): Call Check_Duplicate_Property to process |
| 13890 |
an external property. |
| 13891 |
(Analyze_External_Property_In_Decl_Part): New routine. |
| 13892 |
(Analyze_External_State_In_Decl_Part): Removed. |
| 13893 |
(Analyze_Global_Item): Detect an illegal |
| 13894 |
use of a volatile constant. Detect an illegal use |
| 13895 |
of a variable with enabled Effective_Reads. Enhance |
| 13896 |
the error messages with references. Remove obsolete |
| 13897 |
checks concerning Input_Only and Output_Only states. |
| 13898 |
(Analyze_Initialization_Item): Enhance the error messages |
| 13899 |
with references. |
| 13900 |
(Analyze_Initializes_In_Decl_Part): Do not |
| 13901 |
collect the states and variables when the initialization list |
| 13902 |
is null. |
| 13903 |
(Analyze_Input_Item): Enhance the error messages with references. |
| 13904 |
(Analyze_Input_Output): Enhance the error messages with references. |
| 13905 |
(Analyze_Pragma): Enhance the error messages with references. |
| 13906 |
(Analyze_Refinement_Clause): Code reformatting. |
| 13907 |
(Analyze_Refined_Depends_In_Decl_Part): |
| 13908 |
Rename global variable Global to Reg_Global and update all |
| 13909 |
occurrences. Add local variables D7 and D8. Update the error |
| 13910 |
messages with references. Update the call to Collect_Global_Items. |
| 13911 |
(Analyze_Refined_Global_In_Decl_Part): Add local variables |
| 13912 |
Has_Proof_In_State, Proof_In_Constits and Proof_In_Items. Update |
| 13913 |
the call to Collect_Global_Items. Account for a Proof_In state |
| 13914 |
in null / useless refinement checks. Verify the coverage of |
| 13915 |
Proof_In states. |
| 13916 |
(Check_Dependency_Clause): Remove local variable |
| 13917 |
Out_Constits. Remove the retrieval and removal of constituents |
| 13918 |
for an Output_Only state. Remove the reporting of unused |
| 13919 |
Output_Only state constituents. |
| 13920 |
(Check_Duplicate_Mode): Enhance |
| 13921 |
the error message with a reference. |
| 13922 |
(Check_Duplicate_Property): New routine. |
| 13923 |
(Check_Duplicate_Option): Enhance the error message with a reference. |
| 13924 |
(Check_External_Properties): Enhance the error message with a reference. |
| 13925 |
(Check_Function_Return): Enhance the error message with a reference. |
| 13926 |
(Check_In_Out_States): Update |
| 13927 |
comment on usage. Add a specialized error message for Proof_In |
| 13928 |
constituents. Enhance the error message with a reference. |
| 13929 |
(Check_Input_States): Update comment on usage. Account for |
| 13930 |
possible Proof_In constituents. Enhance the error message |
| 13931 |
with a areference. |
| 13932 |
(Check_Matching_Constituent): Enhance the error message with a |
| 13933 |
reference. |
| 13934 |
(Check_Matching_State): Enchance the error message with a reference. |
| 13935 |
(Check_Mode): Add local variable From_Global. Update the call to |
| 13936 |
Find_Mode. Emit more precise error messages concerning extra items |
| 13937 |
(Check_Mode_Restriction_In_Enclosing_Context): Consider |
| 13938 |
pragma Refined_Global. Enhance the error message with a |
| 13939 |
reference. |
| 13940 |
(Check_Mode_Restriction_In_Function): Enhance the error message with |
| 13941 |
a reference. |
| 13942 |
(Check_Output_States): Update comment on usage. Add local variable |
| 13943 |
Posted. Account for possible Proof_In constituents. Produce a detailed |
| 13944 |
list of missing constituents. |
| 13945 |
(Check_Proof_In_States): New routine. |
| 13946 |
(Check_Refined_Global_Item): Handle Proof_In |
| 13947 |
constituents. Enchance the error message with a reference. |
| 13948 |
(Collect_Global_Items): Add formal parameters Proof_In_Items |
| 13949 |
and Has_Proof_In_State. Update the comment on usage. Account |
| 13950 |
for Proof_In items. |
| 13951 |
(Create_Or_Modify_Clause): Enchance |
| 13952 |
the error message with a reference. |
| 13953 |
(Find_Mode): Add |
| 13954 |
formal parameter From_Global. Update the comment on usage. |
| 13955 |
Detect when the mode is governed by pragma [Refined_]Global. |
| 13956 |
(Output_Constituents): Removed. |
| 13957 |
(Report_Extra_Constituents): |
| 13958 |
Report extra Proof_In constituents. |
| 13959 |
(Report_Unused_Constituents): Removed. |
| 13960 |
(Usage_Error): Code reformatting. Enhance the error |
| 13961 |
messages with reference. |
| 13962 |
* sem_prag.ads (Analyze_External_Property_In_Decl_Part): New routine. |
| 13963 |
(Analyze_External_State_In_Decl_Part): Removed. |
| 13964 |
* sem_res.adb (Resolve_Actuals): Update the volatile object |
| 13965 |
detection. Enhance the error message with a reference. |
| 13966 |
(Resolve_Entity_Name): Update the volatile object |
| 13967 |
detection. Enhance the error message with a reference. |
| 13968 |
* sem_util.adb (Is_Refined_State): Add a guard to avoid a crash. |
| 13969 |
(Is_SPARK_Volatile_Object): New routine. |
| 13970 |
(Has_Volatile_Component): New routine. |
| 13971 |
* sem_util.ads (Is_Delegate): Alphabetized. |
| 13972 |
(Is_SPARK_Volatile_Object): New routine. |
| 13973 |
(Has_Volatile_Component): New routine. |
| 13974 |
* snames.ads-tmpl: Remove names Name_Input_Only and Name_Output_Only. |
| 13975 |
|
| 13976 |
2014-01-27 Ed Schonberg <[email protected]> |
| 13977 |
|
| 13978 |
* sem_attr.adb: Resolve fully prefix of 'Update. |
| 13979 |
|
| 13980 |
2014-01-27 Ben Brosgol <[email protected]> |
| 13981 |
|
| 13982 |
* gnat_rm.texi: Minor clarifications. |
| 13983 |
|
| 13984 |
2014-01-27 Robert Dewar <[email protected]> |
| 13985 |
|
| 13986 |
* sem_elab.adb (Check_Internal_Call_Continue): Avoid complaining |
| 13987 |
about call that is generated as part of an Initial_Condition |
| 13988 |
check. |
| 13989 |
* sem_prag.adb: Minor spelling correction. |
| 13990 |
|
| 13991 |
2014-01-27 Robert Dewar <[email protected]> |
| 13992 |
|
| 13993 |
* sem_prag.adb (Set_Convention_From_Pragma): Check that |
| 13994 |
convention Ghost can only apply to functions. |
| 13995 |
* einfo.ads, einfo.adb (Is_Ghost_Subprogram): Add clarifying comment. |
| 13996 |
|
| 13997 |
2014-01-27 Robert Dewar <[email protected]> |
| 13998 |
|
| 13999 |
* gnat_ugn.texi: Add Short_Enums to documentation of |
| 14000 |
-gnatet/-gnateT. |
| 14001 |
|
| 14002 |
2014-01-27 Robert Dewar <[email protected]> |
| 14003 |
|
| 14004 |
* sem_prag.adb (Analyze_Input_Item): Correct check for input |
| 14005 |
item in same package. |
| 14006 |
* sem_util.ads, sem_util.adb (Within_Scope): New function. |
| 14007 |
|
| 14008 |
2014-01-26 Arnaud Charlet <[email protected]> |
| 14009 |
|
| 14010 |
* a-intnam-lynxos.ads, mlib-tgt-specific-lynxos.adb, |
| 14011 |
s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb, |
| 14012 |
s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, |
| 14013 |
system-lynxos-ppc.ads, system-lynxos-x86.ads: Removed, no longer |
| 14014 |
maintained. |
| 14015 |
|
| 14016 |
2014-01-25 Eric Botcazou <[email protected]> |
| 14017 |
|
| 14018 |
* gcc-interface/Makefile.in: Fix oversight. |
| 14019 |
|
| 14020 |
2014-01-25 Eric Botcazou <[email protected]> |
| 14021 |
|
| 14022 |
* gcc-interface/utils.c (convert_to_fat_pointer): Un-obfuscate the |
| 14023 |
conversion from a thin pointer with a shifted value. |
| 14024 |
* gcc-interface/utils2.c (gnat_build_constructor): Propagate the |
| 14025 |
read-only flag from the values onto the result. |
| 14026 |
(gnat_invariant_expr): Accept read-only CONSTRUCTORs. |
| 14027 |
|
| 14028 |
2014-01-25 Tristan Gingold <[email protected]> |
| 14029 |
|
| 14030 |
* gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable |
| 14031 |
for E_Variable with a pragma Linker_Section. |
| 14032 |
|
| 14033 |
2014-01-25 Robert Dewar <[email protected]> |
| 14034 |
|
| 14035 |
* gcc-interface/decl.c (gnat_to_gnu_param): Make sure an Out parameter |
| 14036 |
with Default_Value aspect is passed in by copy. |
| 14037 |
|
| 14038 |
2014-01-24 Eric Botcazou <[email protected]> |
| 14039 |
|
| 14040 |
* set_targ.adb: Set Short_Enums. |
| 14041 |
* gcc-interface/lang.opt (fshort-enums): New option. |
| 14042 |
* gcc-interface/misc.c (gnat_handle_option): Handle it. |
| 14043 |
(gnat_post_options): Do not modify the global settings. |
| 14044 |
|
| 14045 |
2014-01-24 Robert Dewar <[email protected]> |
| 14046 |
|
| 14047 |
* g-rannum.ads, g-rannum.adb (Random_Ordinary_Fixed): New generic |
| 14048 |
function. |
| 14049 |
(Random_Decimal_Fixed): New generic function. |
| 14050 |
* s-rannum.ads: Minor comment clarifications. |
| 14051 |
|
| 14052 |
2014-01-24 Robert Dewar <[email protected]> |
| 14053 |
|
| 14054 |
* back_end.adb: Remove Short_Enums handling (handled in |
| 14055 |
Ttypes/Get_Targ now) Minor added comments. |
| 14056 |
* freeze.adb: Change name Short_Enums_On_Target to |
| 14057 |
Target_Short_Enums. |
| 14058 |
* get_targ.ads, get_targ.adb (Get_Short_Enums): New function. |
| 14059 |
* opt.ads: Minor comment updates. |
| 14060 |
* sem_ch13.adb: Change name Short_Enums_On_Target to |
| 14061 |
Target_Short_Enums. |
| 14062 |
* set_targ.adb: Set Short_Enums from gcc back end. |
| 14063 |
* set_targ.ads (Short_Enums): New variable. |
| 14064 |
* targparm.ads, targparm.adb: Remove Short_Enums entries (handled in |
| 14065 |
Ttypes/Get_Targ now). |
| 14066 |
* ttypes.ads (Target_Short_Enums): New constant boolean switch |
| 14067 |
|
| 14068 |
2014-01-24 Pascal Obry <[email protected]> |
| 14069 |
|
| 14070 |
* g-sercom-mingw.adb: Fix serial port name for port number > 10. |
| 14071 |
|
| 14072 |
2014-01-24 Gary Dismukes <[email protected]> |
| 14073 |
|
| 14074 |
* exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when |
| 14075 |
comparing it with Ctrl_Arg, since Ctrl_Arg may have had qualification |
| 14076 |
stripped off. |
| 14077 |
|
| 14078 |
2014-01-24 Robert Dewar <[email protected]> |
| 14079 |
|
| 14080 |
* sinfo.ads, make.adb, prj-env.adb: Minor reformatting. |
| 14081 |
|
| 14082 |
2014-01-24 Vincent Celier <[email protected]> |
| 14083 |
|
| 14084 |
* prj.adb (Add_Aggregated_Project): Do not add a project in |
| 14085 |
the list if it is already there. |
| 14086 |
|
| 14087 |
2014-01-24 Yannick Moy <[email protected]> |
| 14088 |
|
| 14089 |
* lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package): |
| 14090 |
Correct the search for a subrogram declaration to which a pragma is |
| 14091 |
attached. |
| 14092 |
|
| 14093 |
2014-01-24 Bob Duff <[email protected]> |
| 14094 |
|
| 14095 |
* gnat_ugn.texi: Document --decimal-grouping and |
| 14096 |
--based-grouping switches in gnatpp. |
| 14097 |
|
| 14098 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14099 |
|
| 14100 |
* sinfo.ads: Documentation update. |
| 14101 |
|
| 14102 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14103 |
|
| 14104 |
* sem_ch3.adb (Constant_Redeclaration): New declaration is |
| 14105 |
illegal if previous one has an initial expression that is an |
| 14106 |
aggregate expanded into assignments. |
| 14107 |
|
| 14108 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14109 |
|
| 14110 |
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Small |
| 14111 |
code reorganization to remove spurious warning on a loop with |
| 14112 |
an array element iterator that has a null range. |
| 14113 |
|
| 14114 |
2014-01-24 Vincent Celier <[email protected]> |
| 14115 |
|
| 14116 |
* make.adb (Binding_Phase): When setting the Ada paths, use |
| 14117 |
the library ALI dir, not the object dir in libraries. |
| 14118 |
|
| 14119 |
2014-01-24 Yannick Moy <[email protected]> |
| 14120 |
|
| 14121 |
* sinfo.ads: Add documentation of check flag fields. |
| 14122 |
|
| 14123 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14124 |
|
| 14125 |
* sem_res.adb (Resolve_Actuals): If an actual is a view |
| 14126 |
conversion of a discriminated object, and the formal type is |
| 14127 |
discriminated and constrained, apply a discriminant check to |
| 14128 |
the object itself. |
| 14129 |
|
| 14130 |
2014-01-24 Robert Dewar <[email protected]> |
| 14131 |
|
| 14132 |
* prj.adb, prj-env.adb, back_end.adb: Add comment, minor code clean ups. |
| 14133 |
|
| 14134 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14135 |
|
| 14136 |
* sem_ch3.adb (Analyze_Declarations): At the end of an |
| 14137 |
appropriate declarative part, call Freeze_All from the first |
| 14138 |
declaration in the scope, not from the first unfrozen one. This |
| 14139 |
is necessary to apply visibility checks to entities with delayed |
| 14140 |
aspects. Otherwise, in the presence of instantiations and cleanups |
| 14141 |
that they may generate, the delayed aspects may be analyzed too |
| 14142 |
late and produce spurious visibility errors. |
| 14143 |
* sem_attr.adb: Place etype on range. |
| 14144 |
* sem_ch6.adb: Documentation expression functions. |
| 14145 |
|
| 14146 |
2014-01-24 Robert Dewar <[email protected]> |
| 14147 |
|
| 14148 |
* exp_ch7.adb: Minor change of Indices to Indexes (preferred |
| 14149 |
terminology in compiler). |
| 14150 |
|
| 14151 |
2014-01-24 Robert Dewar <[email protected]> |
| 14152 |
|
| 14153 |
* scans.ads: Remove Tok_Raise from Sterm, Eterm, After_SM |
| 14154 |
categories, now that Ada 95 supports raise expressions. |
| 14155 |
|
| 14156 |
2014-01-24 Robert Dewar <[email protected]> |
| 14157 |
|
| 14158 |
* freeze.adb (Freeze_Enumeration_Type): Use new target parameter |
| 14159 |
Short_Enums_On_Target. |
| 14160 |
* sem_ch13.adb (Set_Enum_Esize): Take Short_Enums_On_Target |
| 14161 |
into account. |
| 14162 |
* targparm.ads, targparm.adb: Add new target parameter Short_Enums. |
| 14163 |
|
| 14164 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14165 |
|
| 14166 |
* sem_ch5.adb (Analyze_Iterator_Specification): If subtype |
| 14167 |
indication is given explicity, check that it matches the array |
| 14168 |
component type or the container element type of the domain |
| 14169 |
of iteration. |
| 14170 |
|
| 14171 |
2014-01-24 Tristan Gingold <[email protected]> |
| 14172 |
|
| 14173 |
* back_end.adb (Scan_Compiler_Arguments): Set Short_Enums_On_Target. |
| 14174 |
* gcc-interface/misc.c (flag_short_enums): Declare. |
| 14175 |
(gnat_post_options): Set it. |
| 14176 |
|
| 14177 |
2014-01-24 Vincent Celier <[email protected]> |
| 14178 |
|
| 14179 |
* prj-env.adb (Ada_Objects_Path): Use Ada_Objects_Path_No_Libs |
| 14180 |
to cache the result when Including_Libraries is False. |
| 14181 |
* prj-env.ads (Ada_Objects_Path): Update documentation |
| 14182 |
* prj.adb (Free (Project_Id)): Also free Ada_Objects_Path_No_Libs |
| 14183 |
(Get_Object_Directory): Return the Library_Ali_Dir only when |
| 14184 |
when Including_Libraries is True. |
| 14185 |
* prj.ads (Get_Object_Directory): Fix and complete documentation |
| 14186 |
(Project_Data): New component Ada_Objects_Path_No_Libs |
| 14187 |
|
| 14188 |
2014-01-24 Robert Dewar <[email protected]> |
| 14189 |
|
| 14190 |
* checks.adb (Expr_Known_Valid): Result of fpt operator never |
| 14191 |
considered valid. |
| 14192 |
|
| 14193 |
2014-01-24 Eric Botcazou <[email protected]> |
| 14194 |
|
| 14195 |
* back_end.adb: Minor fix in comment. |
| 14196 |
|
| 14197 |
2014-01-24 Javier Miranda <[email protected]> |
| 14198 |
|
| 14199 |
* sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration |
| 14200 |
required to report the error in case of task types. |
| 14201 |
|
| 14202 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14203 |
|
| 14204 |
* sem_attr.adb: Additional index checking. |
| 14205 |
|
| 14206 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14207 |
|
| 14208 |
* sem_attr.adb (Analyze_Attribute, case 'Update): Analyze |
| 14209 |
expressions in each component association, and for records note |
| 14210 |
the entity in each association choice, for subsequent resolution. |
| 14211 |
(Resolve_Attribute, case 'Update): Complete resolution of |
| 14212 |
expressions in each component association. |
| 14213 |
|
| 14214 |
2014-01-24 Robert Dewar <[email protected]> |
| 14215 |
|
| 14216 |
* sem.adb (Sem): Avoid premature reference to Current_Sem_Unit |
| 14217 |
(this was causing Is_Main_Unit_Or_Main_Unit_Spec to be set wrong, |
| 14218 |
leading to wrong handling of SPARK_Mode for library units). |
| 14219 |
|
| 14220 |
2014-01-24 Robert Dewar <[email protected]> |
| 14221 |
|
| 14222 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set SPARK_Mode |
| 14223 |
on generic instances (do not consider them to be internally |
| 14224 |
generated) |
| 14225 |
|
| 14226 |
2014-01-24 Doug Rupp <[email protected]> |
| 14227 |
|
| 14228 |
* s-osinte-android.ads (pthread_sigmask): Import sigprocmask |
| 14229 |
vice pthread_sigmask. |
| 14230 |
|
| 14231 |
2014-01-24 Vincent Celier <[email protected]> |
| 14232 |
|
| 14233 |
* prj.adb (Debug_Output (Str, Str2)): Output if verbosity is |
| 14234 |
not default. |
| 14235 |
|
| 14236 |
2014-01-24 Vincent Celier <[email protected]> |
| 14237 |
|
| 14238 |
* prj-ext.adb (Add): Do not output anything when Silent is True, |
| 14239 |
whatever the verbosity. When Source is From_External_Attribute, |
| 14240 |
set the corresponding environment variable if it is not already set. |
| 14241 |
* prj-ext.ads (Add): New Boolean parameter Silent, defaulted |
| 14242 |
to False |
| 14243 |
* prj-proc.adb (Process_Expression_For_Associative_Array): |
| 14244 |
For attribute External, call Prj.Ext.Add with Silent set to |
| 14245 |
True for the child environment, to avoid useless output in non |
| 14246 |
default verbosity. |
| 14247 |
|
| 14248 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14249 |
|
| 14250 |
* sem_res.adb (Set_Slice_Subtype): Handle properly a discrete |
| 14251 |
range given by a subtype indication, and force evaluation of |
| 14252 |
the bounds, as for a simple range. |
| 14253 |
* exp_util.adb (Evaluate_Slice_Bounds): Utility to force evaluation |
| 14254 |
of bounds of slice for various kinds of discrete ranges. |
| 14255 |
(Evaluate_Name, Evaluate_Subtype_From_Expr): use |
| 14256 |
Evaluate_Slice_Bounds. |
| 14257 |
|
| 14258 |
2014-01-24 Bob Duff <[email protected]> |
| 14259 |
|
| 14260 |
* s-taskin.ads (Activator): Make this Atomic, because |
| 14261 |
Activation_Is_Complete reads it, and that can be called |
| 14262 |
from any task. Previously, this component was only |
| 14263 |
modified by the activator before activation, and by |
| 14264 |
Self after activation. |
| 14265 |
* a-taside.ads, a-taside.adb (Environment_Task, |
| 14266 |
Activation_Is_Complete): Implement these missing functions. |
| 14267 |
|
| 14268 |
2014-01-24 Doug Rupp <[email protected]> |
| 14269 |
|
| 14270 |
* init.c: Add a handler section for Android. |
| 14271 |
|
| 14272 |
2014-01-24 Arnaud Charlet <[email protected]> |
| 14273 |
|
| 14274 |
* i-cexten.ads (Unsigned_33..64, Unsigned_33..64): New types. |
| 14275 |
|
| 14276 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14277 |
|
| 14278 |
* sem_ch4.adb (Operator_Check): If one operand is a |
| 14279 |
Raise_Expression, set its type to that of the other operand. |
| 14280 |
* sem_res.adb (Resolve_Raise_Expression): new procedure. |
| 14281 |
(Resolve_Actuals): For an actual that is a Raise_Expression, |
| 14282 |
set the type to that of the formal. |
| 14283 |
* sem_type.adb (Find_Unique_Type): If one of the operands is a |
| 14284 |
Raise_Expression, return type of the other operand. |
| 14285 |
|
| 14286 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14287 |
|
| 14288 |
* sem_aggr.adb (Resolve_Record_Aggregate): If a scalar |
| 14289 |
component of the record has a type with a default aspect, and |
| 14290 |
the corresponding aggregate component is initiaized with a box, |
| 14291 |
use the default value in the rewritten aggregate. |
| 14292 |
|
| 14293 |
2014-01-24 Tristan Gingold <[email protected]> |
| 14294 |
|
| 14295 |
* s-interr.ads, s-interr.adb, s-interr-hwint.adb, s-interr-vms.adb, |
| 14296 |
s-interr-sigaction.adb, |
| 14297 |
s-interr-dummy.adb (Install_Restricted_Handlers): Add Prio parameter. |
| 14298 |
* exp_ch9.adb (Make_Initialize_Protection): Add Prio parameter |
| 14299 |
to the call to Install_Restricted_Handlers. |
| 14300 |
|
| 14301 |
2014-01-24 Emmanuel Briot <[email protected]> |
| 14302 |
|
| 14303 |
* prj-nmsc.adb (Check_File): Add protection when the source is |
| 14304 |
not fully initialized. |
| 14305 |
|
| 14306 |
2014-01-24 Ed Schonberg <[email protected]> |
| 14307 |
|
| 14308 |
* sem_util.adb (Is_Post_State): In a postcondition, a selected |
| 14309 |
component that denotes an implicit dereference is a reference |
| 14310 |
to the post state of the subprogram. |
| 14311 |
|
| 14312 |
2014-01-24 Robert Dewar <[email protected]> |
| 14313 |
|
| 14314 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode OFF |
| 14315 |
for generated subprograms. |
| 14316 |
(Analyze_Subprogram_Specification): Ditto. |
| 14317 |
|
| 14318 |
2014-01-24 Vincent Celier <[email protected]> |
| 14319 |
|
| 14320 |
* prj-dect.adb (Check_Attribute_Allowed): Detect more forbidden |
| 14321 |
attributes in package Builder of aggregate and aggregate library |
| 14322 |
projects. |
| 14323 |
* prj-nmsc.adb (Process_Naming_Scheme.Check.Check_Aggregate): |
| 14324 |
Remove procedure (Process_Naming_Scheme.Check.Check_Aggregated): |
| 14325 |
Remove parameters. Change error message from "... externally |
| 14326 |
build library ..." to "... externally built project ...". |
| 14327 |
(Process_Naming_Scheme.Check): Do not do any check in aggregate |
| 14328 |
project, as attribute Library_Dir and Library_Name have already |
| 14329 |
been detected as forbidden. |
| 14330 |
|
| 14331 |
2014-01-24 Vincent Celier <[email protected]> |
| 14332 |
|
| 14333 |
* prj-env.adb (Find_Project): If cached project path is not in |
| 14334 |
project directory, look in current directory first and use cached |
| 14335 |
project path only if project is not found in project directory. |
| 14336 |
|
| 14337 |
2014-01-24 Robert Dewar <[email protected]> |
| 14338 |
|
| 14339 |
* sem_util.adb, lib-xref.adb: Correct false positive warnings. |
| 14340 |
|
| 14341 |
2014-01-24 Vincent Celier <[email protected]> |
| 14342 |
|
| 14343 |
* projects.texi: Document that aggregate projects are only |
| 14344 |
supported by gprbuild, but not by gnatmake. Document that the |
| 14345 |
only attribute Switches in package Binder of aggregate projects |
| 14346 |
will be ignored if its index is not others. Document that |
| 14347 |
attribute Global_Config_File is allowed in package Binder of |
| 14348 |
aggregate projects. |
| 14349 |
|
| 14350 |
2014-01-24 Robert Dewar <[email protected]> |
| 14351 |
|
| 14352 |
* sem_prag.adb: Minor code reorganization. |
| 14353 |
* sem_util.adb: Minor fix of potential latent bug in Is_LHS. |
| 14354 |
|
| 14355 |
2014-01-24 Pascal Obry <[email protected]> |
| 14356 |
|
| 14357 |
* prj-attr.adb, projects.texi, snames.ads-tmpl: Add Excluded_Patterns |
| 14358 |
attribute definition. |
| 14359 |
|
| 14360 |
2014-01-24 Vincent Celier <[email protected]> |
| 14361 |
|
| 14362 |
* makeutl.adb (Queue.Insert_No_Roots): In gprbuild, do not put |
| 14363 |
in the Queue the same source (same path, same multi-source index) |
| 14364 |
from the same project file, to avoid compiling several times |
| 14365 |
the same source. |
| 14366 |
|
| 14367 |
2014-01-24 Eric Botcazou <[email protected]> |
| 14368 |
|
| 14369 |
* einfo.ads (First_Rep_Item): Remove obsolete stuff. |
| 14370 |
(Has_Gigi_Rep_Item): Likewise. |
| 14371 |
* sem_prag.adb (Analyze_Pragma) <Pragma_Linker_Section>: Do not set |
| 14372 |
Has_Gigi_Rep_Item for objects. |
| 14373 |
* gcc-interface/decl.c (prepend_one_attribute_to): Rename into... |
| 14374 |
(prepend_one_attribute): ...this. |
| 14375 |
(prepend_one_attribute_pragma): New function extracted from... |
| 14376 |
(prepend_attributes): ...here. Swap the parameters for consistency. |
| 14377 |
(gnat_to_gnu_entity): Adjust calls to prepend_one_attribute_to and to |
| 14378 |
prepend_attributes. |
| 14379 |
<object>: Deal with a pragma Linker_Section on a constant |
| 14380 |
or variable. <E_Function>: Deal with a pragma Linker_Section |
| 14381 |
on a subprogram. |
| 14382 |
(get_minimal_subprog_decl): Adjust calls to prepend_one_attribute_to. |
| 14383 |
|
| 14384 |
2014-01-24 Vincent Celier <[email protected]> |
| 14385 |
|
| 14386 |
* opt.ads: Minor comment update. |
| 14387 |
|
| 14388 |
2014-01-24 Robert Dewar <[email protected]> |
| 14389 |
|
| 14390 |
* sem_prag.adb (Analyze_Input_Output): Add missing error check |
| 14391 |
for junk operand. |
| 14392 |
* sem_util.adb (Is_Refined_State): Add defense against junk |
| 14393 |
tree from error. |
| 14394 |
|
| 14395 |
2014-01-24 Pascal Obry <[email protected]> |
| 14396 |
|
| 14397 |
* projects.texi: Removes Build_Slaves attribute documentation. |
| 14398 |
|
| 14399 |
2014-01-23 Robert Dewar <[email protected]> |
| 14400 |
|
| 14401 |
* opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma |
| 14402 |
setting. |
| 14403 |
|
| 14404 |
2014-01-23 Ed Schonberg <[email protected]> |
| 14405 |
|
| 14406 |
* sem_util.adb (Is_Potentially_Unevaluated): Predicate only |
| 14407 |
applies to expressions that come from source. |
| 14408 |
* sem_attr.adb (Analyze_Attribute, case 'Old): Improve error |
| 14409 |
message. |
| 14410 |
(Analyze_Attribute, case 'Loop_Entry): Apply SPARK 2014 legality |
| 14411 |
rule regarding potentially unevaluated expressions, to prefix |
| 14412 |
of attribute. |
| 14413 |
|
| 14414 |
2014-01-23 Ed Schonberg <[email protected]> |
| 14415 |
|
| 14416 |
* exp_util.adb (Make_Invqriant_Call): If type of expression is |
| 14417 |
a private extension, get invariant from base type. |
| 14418 |
|
| 14419 |
2014-01-23 Robert Dewar <[email protected]> |
| 14420 |
|
| 14421 |
* sem_util.adb, sem_attr.adb: Minor reformatting. |
| 14422 |
|
| 14423 |
2014-01-23 Robert Dewar <[email protected]> |
| 14424 |
|
| 14425 |
* opt.adb (Save_Opt_Config_Switches): Save SPARK_Mode_Pragma |
| 14426 |
(Restore_Opt_Config_Switches): Restore SPARK_Mode_Pragma. |
| 14427 |
* sem.adb (Semantics): Remove save/restore of |
| 14428 |
SPARK_Mode[_Pragma]. Not needed since already done in |
| 14429 |
Save/Restore_Opt_Config_Switches. |
| 14430 |
|
| 14431 |
2014-01-23 Robert Dewar <[email protected]> |
| 14432 |
|
| 14433 |
* gnat_rm.texi, einfo.adb, einfo.ads, sem_prag.adb, gnat_ugn.texi, |
| 14434 |
freeze.adb, repinfo.adb, aspects.adb, aspects.ads, sem_ch13.adb: |
| 14435 |
Linker_Section enhancements. |
| 14436 |
|
| 14437 |
2014-01-23 Tristan Gingold <[email protected]> |
| 14438 |
|
| 14439 |
* gnat_rm.texi: Minor editing. |
| 14440 |
|
| 14441 |
2014-01-23 Robert Dewar <[email protected]> |
| 14442 |
|
| 14443 |
* opt.adb (Set_Opt_Config_Switches): Reset SPARK mode for |
| 14444 |
with'ed internal units. |
| 14445 |
* sem.adb (Semantics): Save and restore SPARK_Mode[_Pragma]. |
| 14446 |
|
| 14447 |
2014-01-23 Javier Miranda <[email protected]> |
| 14448 |
|
| 14449 |
* lib-xref.adb (Generate_Reference): As part of processing the |
| 14450 |
"end-of-spec" reference generate an extra reference to the first |
| 14451 |
private entity of the package. |
| 14452 |
* xr_tabls.adb (Add_Reference): No action needed for the extra |
| 14453 |
'E' reference associated; similar to the processing of the |
| 14454 |
'e' reference. |
| 14455 |
|
| 14456 |
2014-01-23 Bob Duff <[email protected]> |
| 14457 |
|
| 14458 |
* gnat_ugn.texi: Change "--&pp off" to "--!pp off". |
| 14459 |
|
| 14460 |
2014-01-23 Ed Schonberg <[email protected]> |
| 14461 |
|
| 14462 |
* sem_util.ads, sem_util.adb (Is_Potentially_Unevaluated): new |
| 14463 |
predicate to implement rule given in 6.1.1 (20/3). |
| 14464 |
* sem_attr.adb (Analyze_Attribute, case 'Old): Reject prefix of |
| 14465 |
'Old in a postcondition, if it is potentially unevaluated and |
| 14466 |
it is not an entity name. |
| 14467 |
|
| 14468 |
2014-01-23 Bob Duff <[email protected]> |
| 14469 |
|
| 14470 |
* gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp. |
| 14471 |
|
| 14472 |
2014-01-23 Robert Dewar <[email protected]> |
| 14473 |
|
| 14474 |
* gnatlink.adb (Gnatlink): Fix problem of generating bad name |
| 14475 |
msg on VMS. |
| 14476 |
|
| 14477 |
2014-01-23 Bob Duff <[email protected]> |
| 14478 |
|
| 14479 |
* g-dynhta.ads: Minor comment fix. |
| 14480 |
|
| 14481 |
2014-01-23 Yannick Moy <[email protected]> |
| 14482 |
|
| 14483 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Inherit SPARK_Mode |
| 14484 |
from spec on body only when not already inherited on spec. Set |
| 14485 |
SPARK_Mode from context on body without previous spec. * |
| 14486 |
* sem_prag.adb (Analyze_Pragma): Check placement of pragma on |
| 14487 |
library-level entities. Correct retrieval of entity from |
| 14488 |
declaration, for cases where the declaration is not a unit. |
| 14489 |
* sem_ch12.adb (Instantiate_Object): Avoid |
| 14490 |
calling Is_Volatile_Object on an empty node. |
| 14491 |
|
| 14492 |
2014-01-23 Robert Dewar <[email protected]> |
| 14493 |
|
| 14494 |
* gnatlink.adb (Gnatlink): Check for suspicious executable file |
| 14495 |
names on windows. |
| 14496 |
|
| 14497 |
2014-01-23 Robert Dewar <[email protected]> |
| 14498 |
|
| 14499 |
* a-ngelfu.ads: Remove bad uses of AND which should be AND THEN. |
| 14500 |
* sem_res.adb (Check_No_Direct_Boolean_Operators): Don't give |
| 14501 |
style errors in instances. |
| 14502 |
* g-dynhta.ads (Static_HTable): Comment updates. |
| 14503 |
|
| 14504 |
2014-01-23 Vincent Celier <[email protected]> |
| 14505 |
|
| 14506 |
* prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt |
| 14507 |
to find a configuration project file when Config_File_Name is |
| 14508 |
No_Configuration_File. |
| 14509 |
* prj-conf.ads (No_Configuration_File): New constant String. |
| 14510 |
* prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File |
| 14511 |
with Config_File_Name set to No_Configuration_File, so that |
| 14512 |
no existing configuration project file will be used, and the |
| 14513 |
configuration project will be only created in memory when |
| 14514 |
Add_Default_GNAT_Naming_Scheme is called. |
| 14515 |
* projects.texi: Minor reformatting. |
| 14516 |
|
| 14517 |
2014-01-23 Vincent Celier <[email protected]> |
| 14518 |
|
| 14519 |
* prj-conf.adb (Get_Or_Create_Configuration_File): Never parse |
| 14520 |
a config project file if On_Load_Config is not null. |
| 14521 |
* prj-pars.adb: Minor comment changes. |
| 14522 |
|
| 14523 |
2014-01-23 Ed Schonberg <[email protected]> |
| 14524 |
|
| 14525 |
* lib-xref.adb (Output_References): Output progenitors of |
| 14526 |
synchronized tagged types, for source navigation. |
| 14527 |
|
| 14528 |
2014-01-23 Robert Dewar <[email protected]> |
| 14529 |
|
| 14530 |
* exp_util.adb, sinfo.adb, sinfo.ads, sem.adb, sem_res.adb, |
| 14531 |
expander.adb, exp_ch11.adb, exp_ch11.ads, sem_ch11.adb, sem_ch11.ads, |
| 14532 |
sprint.adb, sprint.ads: Remove unused node N_Subprogram_Info. |
| 14533 |
|
| 14534 |
2014-01-23 Emmanuel Briot <[email protected]> |
| 14535 |
|
| 14536 |
* prj-conf.adb (Get_Or_Create_Configuration_File): call |
| 14537 |
On_Load_Config later. |
| 14538 |
|
| 14539 |
2014-01-23 Hristian Kirtchev <[email protected]> |
| 14540 |
|
| 14541 |
* sem_ch3.adb (Analyze_Declarations): Do not |
| 14542 |
generate the spec of the late primitive in ASIS mode. Add two |
| 14543 |
comments to explain the special cases when the expansion is |
| 14544 |
not performed. |
| 14545 |
|
| 14546 |
2014-01-23 Robert Dewar <[email protected]> |
| 14547 |
|
| 14548 |
* sem_util.adb (Note_Possible_Modification): Fix error of |
| 14549 |
misbehaving for implicit dereference cases in -gnatc mode. |
| 14550 |
|
| 14551 |
2014-01-23 Emmanuel Briot <[email protected]> |
| 14552 |
|
| 14553 |
* prj-pars.adb: Minor reformatting. |
| 14554 |
|
| 14555 |
2014-01-22 Ed Schonberg <[email protected]> |
| 14556 |
|
| 14557 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): A subprogram |
| 14558 |
body generated for an expression function within a protected body |
| 14559 |
needs a set of renaming declarations if the expression function |
| 14560 |
comes from source. |
| 14561 |
|
| 14562 |
2014-01-22 Ed Schonberg <[email protected]> |
| 14563 |
|
| 14564 |
* lib-xref.adb (Get_Type_Reference): In semantics-only mode, |
| 14565 |
list interface progenitor of a tagged concurrent type, for better |
| 14566 |
source navigation. |
| 14567 |
|
| 14568 |
2014-01-22 Robert Dewar <[email protected]> |
| 14569 |
|
| 14570 |
* lib.adb (In_Extended_Main_Code_Unit): Return False for |
| 14571 |
Standard_Location. |
| 14572 |
(In_Extended_Main_Source_Unit): Return False for Standard_Location. |
| 14573 |
* lib.ads (In_Extended_Main_Code_Unit): Add documentation on |
| 14574 |
treatment of Slocs No_Location and Standard_Location. |
| 14575 |
* restrict.adb (Check_Restriction_No_Dependence): Explicitly |
| 14576 |
check for entity with Standard_Location Sloc, rather than relying |
| 14577 |
on Lib routines to do that. |
| 14578 |
* sem_res.adb (Resolve_Call): Implement SPARK_05 restriction |
| 14579 |
that a call cannot occur before a later occuring body within |
| 14580 |
the same unit. |
| 14581 |
|
| 14582 |
2014-01-22 Thomas Quinot <[email protected]> |
| 14583 |
|
| 14584 |
* rtsfind.adb: Update comment. |
| 14585 |
|
| 14586 |
2014-01-22 Hristian Kirtchev <[email protected]> |
| 14587 |
|
| 14588 |
* sem_aux.ads, sem_aux.adb (Is_Body): New routine. |
| 14589 |
* sem_ch3.adb (Analyze_Declarations): Add local variable |
| 14590 |
Body_Seen. Generate the spec of a late controlled |
| 14591 |
primitive body that is about to freeze its related type. |
| 14592 |
(Handle_Late_Controlled_Primitive): New routine. |
| 14593 |
|
| 14594 |
2014-01-22 Robert Dewar <[email protected]> |
| 14595 |
|
| 14596 |
* a-stream.adb: Minor reformatting. |
| 14597 |
|
| 14598 |
2014-01-22 Ed Schonberg <[email protected]> |
| 14599 |
|
| 14600 |
* sem_ch8.adb (From_Actual_Package): Introduce a recursive |
| 14601 |
sub-procedure Declared_In_Actual to handle properly the visibility |
| 14602 |
of actuals in actual packages, that are themselves actuals to a |
| 14603 |
actual package of the current instance. This mimics properly the |
| 14604 |
visibility of formals of formal packages declared with a box, |
| 14605 |
within the corresponding generic unit. |
| 14606 |
|
| 14607 |
2014-01-22 Robert Dewar <[email protected]> |
| 14608 |
|
| 14609 |
* checks.adb: Do not assume that a volatile variable is valid. |
| 14610 |
|
| 14611 |
2014-01-22 Thomas Quinot <[email protected]> |
| 14612 |
|
| 14613 |
* g-catiio.ads (Image, Value): Clarify that these functions |
| 14614 |
operate in the local time zone. Minor documentation update. |
| 14615 |
|
| 14616 |
2014-01-22 Thomas Quinot <[email protected]> |
| 14617 |
|
| 14618 |
* csets.adb, csets.ads, opt.ads: Minor documentation fixes. |
| 14619 |
|
| 14620 |
2014-01-22 Robert Dewar <[email protected]> |
| 14621 |
|
| 14622 |
* sem_aux.adb, sem_aux.ads, sem_ch3.adb (Has_Unconstrained_Elements): |
| 14623 |
Moved to sem_aux.adb. |
| 14624 |
|
| 14625 |
2014-01-22 Robert Dewar <[email protected]> |
| 14626 |
|
| 14627 |
* vms_data.ads: Minor reformatting. |
| 14628 |
|
| 14629 |
2014-01-22 Robert Dewar <[email protected]> |
| 14630 |
|
| 14631 |
* debug.adb: Document messages affected by -gnatd.E including |
| 14632 |
the new ones that relate to late definition of equality. |
| 14633 |
* sem_ch6.adb (Check_Untagged_Equality): In Ada 2012 mode, if |
| 14634 |
debug flag -gnatd.E is set, then generate warnings rather than |
| 14635 |
errors. |
| 14636 |
(Check_Untagged_Equality): In earlier versions of Ada, |
| 14637 |
generate warnings if Warn_On_Ada_2012_Incompatibility flag is set. |
| 14638 |
|
| 14639 |
2014-01-22 Robert Dewar <[email protected]> |
| 14640 |
|
| 14641 |
* sem_prag.adb (Usage_Error): Output additional messages for |
| 14642 |
unconstrained OUT parameters lacking an input dependency. |
| 14643 |
|
| 14644 |
2014-01-22 Robert Dewar <[email protected]> |
| 14645 |
|
| 14646 |
* sem_ch4.adb: Minor reformatting. |
| 14647 |
|
| 14648 |
2014-01-22 Robert Dewar <[email protected]> |
| 14649 |
|
| 14650 |
* restrict.ads: Minor reformatting. |
| 14651 |
* sem_res.adb (Resolve_Call): Check for SPARK_05 restriction that |
| 14652 |
forbids a call from within a subprogram to the same subprogram. |
| 14653 |
|
| 14654 |
2014-01-22 Thomas Quinot <[email protected]> |
| 14655 |
|
| 14656 |
* a-stream.ads (Read_SEA, Write_SEA): New subprograms, optimized |
| 14657 |
stream attributes for Stream_Element_Array. |
| 14658 |
* a-stream.adb (Read_SEA, Write_SEA): Bodies for the above. |
| 14659 |
* rtsfind.adb (Check_CRT): Do not reject a reference to an entity |
| 14660 |
defined in the current scope. |
| 14661 |
|
| 14662 |
2014-01-22 Robert Dewar <[email protected]> |
| 14663 |
|
| 14664 |
* debug.adb, exp_ch4.adb, erroutc.adb: Minor reformatting. |
| 14665 |
|
| 14666 |
2014-01-22 Thomas Quinot <[email protected]> |
| 14667 |
|
| 14668 |
* sem_ch7.adb, sem_ch8.adb, exp_ch3.adb: Minor reformatting. |
| 14669 |
|
| 14670 |
2014-01-22 Thomas Quinot <[email protected]> |
| 14671 |
|
| 14672 |
* sem_ch3.adb (Analyze_Object_Declaration): For a constant |
| 14673 |
declaration initialized with a function call, whose type |
| 14674 |
has variable size, need to remove side effects so that the |
| 14675 |
initialization expression becomes a dereference of a temporary |
| 14676 |
reference to the function result. |
| 14677 |
|
| 14678 |
2014-01-22 Yannick Moy <[email protected]> |
| 14679 |
|
| 14680 |
* errout.adb (Initialize): Remove trick to add dummy entry |
| 14681 |
in Warnings table. |
| 14682 |
* erroutc.adb (Set_Warnings_Mode_Off, |
| 14683 |
Set_Warnings_Mode_On): Do nothing if warnings are suppressed by |
| 14684 |
command line switch. |
| 14685 |
* opt.ads (Warning_Mode): Document behavior |
| 14686 |
wrt pragma Warnings, in normal mode and in GNATprove_Mode. |
| 14687 |
|
| 14688 |
2014-01-22 Robert Dewar <[email protected]> |
| 14689 |
|
| 14690 |
* sem_ch3.adb, errout.adb, erroutc.adb: Minor reformatting. |
| 14691 |
|
| 14692 |
2014-01-22 Robert Dewar <[email protected]> |
| 14693 |
|
| 14694 |
* sem_ch13.adb (Check_Pool_Size_Clash): New procedure |
| 14695 |
(Analyze_Attribute_Definition_Clause, case Storage_Pool): call |
| 14696 |
Check_Pool_Size_Clash (Analyze_Attribute_Definition_Clause, |
| 14697 |
case Storage_Size): call Check_Pool_Size_Clash. |
| 14698 |
|
| 14699 |
2014-01-22 Robert Dewar <[email protected]> |
| 14700 |
|
| 14701 |
* sem_ch3.adb, exp_util.adb, sem_dim.adb, sem_elab.adb, sem_ch8.adb, |
| 14702 |
sem_eval.ads: Minor reformatting. |
| 14703 |
|
| 14704 |
2014-01-22 Thomas Quinot <[email protected]> |
| 14705 |
|
| 14706 |
* sem_eval.adb (Compile_Time_Known_Bounds): Return False for |
| 14707 |
Any_Composite to prevent cascaded errors. |
| 14708 |
|
| 14709 |
2014-01-22 Yannick Moy <[email protected]> |
| 14710 |
|
| 14711 |
* errout.adb (Initialize): Do not insert special entry in Warnings |
| 14712 |
table in GNATprove_Mode. |
| 14713 |
* erroutc.adb (Set_Warnings_Mode_On): Add info in Warnings table in |
| 14714 |
GNATprove_Mode. |
| 14715 |
* gnat1drv.adb (Adjust_Global_Switches): Do not suppress frontend |
| 14716 |
warnings anymore. |
| 14717 |
|
| 14718 |
2014-01-22 Robert Dewar <[email protected]> |
| 14719 |
|
| 14720 |
* sem_prag.adb (Analyze_Initializes_In_Decl_Part): Handle null |
| 14721 |
initializes case. |
| 14722 |
|
| 14723 |
2014-01-22 Robert Dewar <[email protected]> |
| 14724 |
|
| 14725 |
* snames.ads-tmpl: Update header. |
| 14726 |
|
| 14727 |
2014-01-22 Thomas Quinot <[email protected]> |
| 14728 |
|
| 14729 |
* exp_util.adb (Insert_Actions): When inserting actions on a |
| 14730 |
short circuit operator that has already been analyzed, do not park |
| 14731 |
actions in node; instead introduce an N_Expression_With_Actions |
| 14732 |
and insert actions immediately. |
| 14733 |
Add guard for unexpected case of climbing up through statement |
| 14734 |
in Actions list of an N_Expression_With_Actions. |
| 14735 |
* sem_elab.adb (Insert_Elab_Check): Remove complex |
| 14736 |
specialized circuitry for the case where the context is already |
| 14737 |
analyzed, as it is not needed and introduces irregularities in |
| 14738 |
finalization. Instead rely on the above change to Insert_Actions |
| 14739 |
to ensure that late insertion on short circuit operators works |
| 14740 |
as expected. |
| 14741 |
|
| 14742 |
2014-01-22 Ed Schonberg <[email protected]> |
| 14743 |
|
| 14744 |
* sem_ch4.adb (Operator_Check): Improve error message when an |
| 14745 |
operand of concatenation is an access type. |
| 14746 |
|
| 14747 |
2014-01-22 Thomas Quinot <[email protected]> |
| 14748 |
|
| 14749 |
* sem_dim.adb (Analyze_Dimension_Identifier): Add guard against |
| 14750 |
cascaded error. |
| 14751 |
|
| 14752 |
2014-01-22 Ed Schonberg <[email protected]> |
| 14753 |
|
| 14754 |
* sem_ch8.adb (Find_Selected_Component): Handle properly the case |
| 14755 |
of an expanded name in a proper body, whose prefix is a package |
| 14756 |
in the context of the proper body, when there is a homonym of |
| 14757 |
the package declared in the parent unit. |
| 14758 |
|
| 14759 |
2014-01-22 Robert Dewar <[email protected]> |
| 14760 |
|
| 14761 |
* sem_warn.adb (Check_Use_Clause): Don't give no entities used |
| 14762 |
msg if errors found. |
| 14763 |
(Check_One_Unit): Same change. |
| 14764 |
|
| 14765 |
2014-01-22 Robert Dewar <[email protected]> |
| 14766 |
|
| 14767 |
* ug_words: Add missing/wrong entries for VMS warning switches. |
| 14768 |
* sem_prag.adb (Check_Duplicate_Pragma): Avoid flagging parent type. |
| 14769 |
|
| 14770 |
2014-01-22 Jerome Guitton <[email protected]> |
| 14771 |
|
| 14772 |
* mlib-tgt-specific-vxworks.adb (Get_Target_Suffix): Replace xscale by |
| 14773 |
arm. |
| 14774 |
|
| 14775 |
2014-01-22 Robert Dewar <[email protected]> |
| 14776 |
|
| 14777 |
* gnat_rm.texi, gnat_ugn.texi: Document passive task optimization |
| 14778 |
|
| 14779 |
2014-01-22 Eric Botcazou <[email protected]> |
| 14780 |
|
| 14781 |
* gcc-interface/Makefile.in: Minor fixes. |
| 14782 |
|
| 14783 |
2014-01-21 Robert Dewar <[email protected]> |
| 14784 |
|
| 14785 |
* par-ch4.adb (P_If_Expression): Rewritten to improve error recovery. |
| 14786 |
* par-ch5.adb (P_Condition): New version with expression prescanned. |
| 14787 |
* par.adb (P_Condition): New version with expression prescanned. |
| 14788 |
|
| 14789 |
2014-01-21 Robert Dewar <[email protected]> |
| 14790 |
|
| 14791 |
* gnat_rm.texi: Document that Allow_Integer_Address is ignored |
| 14792 |
if Address is not a private type. |
| 14793 |
* sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address): |
| 14794 |
Ignore pragma if System.Address is not a private type. |
| 14795 |
|
| 14796 |
2014-01-21 Arnaud Charlet <[email protected]> |
| 14797 |
|
| 14798 |
* namet.ads (Name_Len): Initialize to 0 to avoid accessing an |
| 14799 |
uninitialized value. |
| 14800 |
|
| 14801 |
2014-01-21 Thomas Quinot <[email protected]> |
| 14802 |
|
| 14803 |
* gnat_rm.texi (Scalar_Storage_Order): Update documentation. |
| 14804 |
|
| 14805 |
2014-01-21 Ed Schonberg <[email protected]> |
| 14806 |
|
| 14807 |
* sem_ch12.adb (Set_Instance_Env): In Ada 2012 mode, preserve |
| 14808 |
the value of Assertions_Enabled flag when compiling an instance of |
| 14809 |
an internal unit. This facilitates the use of pre/postconditions |
| 14810 |
in generic internal units, such as the new elementary function |
| 14811 |
libraries. |
| 14812 |
|
| 14813 |
2014-01-21 Robert Dewar <[email protected]> |
| 14814 |
|
| 14815 |
* exp_aggr.adb: Minor reformatting. |
| 14816 |
* sem_attr.adb: Minor reformatting. |
| 14817 |
* sem_res.adb: Minor comment addition. |
| 14818 |
* einfo.adb: Minor comment updates. |
| 14819 |
* freeze.adb: Minor reformatting and code reorganization. |
| 14820 |
|
| 14821 |
2014-01-21 Ed Schonberg <[email protected]> |
| 14822 |
|
| 14823 |
* par-ch4.adb (P_If_Expression): Handle more gracefully an |
| 14824 |
elsif clause that does not have an else part. |
| 14825 |
|
| 14826 |
2014-01-21 Robert Dewar <[email protected]> |
| 14827 |
|
| 14828 |
* checks.adb, sem_util.ads, sem_ch4.adb: Minor reformatting. |
| 14829 |
* gcc-interface/Makefile.in: clean up target pairs. |
| 14830 |
|
| 14831 |
2014-01-21 Pascal Obry <[email protected]> |
| 14832 |
|
| 14833 |
* projects.texi: Minor typo fix. |
| 14834 |
|
| 14835 |
2014-01-21 Thomas Quinot <[email protected]> |
| 14836 |
|
| 14837 |
* freeze.adb (Check_Component_Storage_Order): If a record type |
| 14838 |
has an explicit Scalar_Storage_Order attribute definition clause, |
| 14839 |
reject any component that itself is of a composite type and does |
| 14840 |
not have one. |
| 14841 |
|
| 14842 |
2014-01-21 Ed Schonberg <[email protected]> |
| 14843 |
|
| 14844 |
* sem_ch10.adb (Generate_Parent_Reference): Make public so it |
| 14845 |
can be used to generate proper cross-reference information for |
| 14846 |
the parent units of proper bodies. |
| 14847 |
|
| 14848 |
2014-01-21 Thomas Quinot <[email protected]> |
| 14849 |
|
| 14850 |
* exp_pakd.adb (Expand_Packed_Element_Set, |
| 14851 |
Expand_Packed_Element_Reference): No byte swapping required in |
| 14852 |
the front-end for the case of a reverse storage order array, |
| 14853 |
as this is now handled uniformly in the back-end. However we |
| 14854 |
still need to swap back an extracted element if it is itself a |
| 14855 |
nested composite with reverse storage order. |
| 14856 |
|
| 14857 |
2014-01-21 Hristian Kirtchev <[email protected]> |
| 14858 |
|
| 14859 |
* sem_prag.adb (Analyze_External_Property): Add processing for "others". |
| 14860 |
(Analyze_Pragma): Update the grammar of pragma Abstract_State to |
| 14861 |
include "others". |
| 14862 |
|
| 14863 |
2014-01-21 Arnaud Charlet <[email protected]> |
| 14864 |
|
| 14865 |
* gnat_ugn.texi: Minor updates. |
| 14866 |
|
| 14867 |
2014-01-21 Thomas Quinot <[email protected]> |
| 14868 |
|
| 14869 |
* exp_pakd.adb: Update comment, minor reformatting. |
| 14870 |
|
| 14871 |
2014-01-21 Hristian Kirtchev <[email protected]> |
| 14872 |
|
| 14873 |
* sem_ch3.adb (Analyze_Variable_Contract): Trigger the volatile |
| 14874 |
object check when SPARK_Mode is on. |
| 14875 |
* sem_ch6.adb (Process_Formals): Trigger the volatile object |
| 14876 |
check when SPARK_Mode is on. |
| 14877 |
* sem_ch12.adb (Instantiate_Object): Trigger the volatile object |
| 14878 |
check when SPARK_Mode is on. |
| 14879 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Insert the |
| 14880 |
corresponding pragma of aspect SPARK_Mode in the visible |
| 14881 |
declarations of a package declaration. |
| 14882 |
* sem_prag.adb (Analyze_Pragma): Trigger the volatile object |
| 14883 |
check when SPARK_Mode is on. |
| 14884 |
* sem_res.adb (Resolve_Actuals): Trigger the volatile object |
| 14885 |
check when SPARK_Mode is on. |
| 14886 |
(Resolve_Entity_Name): Trigger |
| 14887 |
the volatile object check when SPARK_Mode is on. |
| 14888 |
|
| 14889 |
2014-01-21 Robert Dewar <[email protected]> |
| 14890 |
|
| 14891 |
* sem_ch3.adb, sem_prag.adb, sem_prag.ads, sem_ch12.adb, sem_res.adb, |
| 14892 |
sem_ch6.adb, a-except-2005.adb: Minor reformatting. |
| 14893 |
|
| 14894 |
2014-01-21 Ed Schonberg <[email protected]> |
| 14895 |
|
| 14896 |
* exp_ch3.adb (Expand_N_Object_Declaration): When a class-wide |
| 14897 |
object is declared, it is rewritten as a renaming of an dynamic |
| 14898 |
expression that wraps the initial value. The renaming declaration |
| 14899 |
is first given an internal name, to prevent collisions with the |
| 14900 |
entity already declared, and then the name is modified to reflect |
| 14901 |
the original one. the modification of the name must preserve |
| 14902 |
the source location of the original, to prevent spurious errors |
| 14903 |
when compiling with style checks if the declaration involves |
| 14904 |
more than one entity. |
| 14905 |
|
| 14906 |
2014-01-21 Hristian Kirtchev <[email protected]> |
| 14907 |
|
| 14908 |
* aspects.adb Add entries for Async_Readers, Async_Writers, |
| 14909 |
Effective_Reads and Effective_Writes in table Canonical_Aspect. |
| 14910 |
* aspects.ads Add entries for Async_Readers, Async_Writers, |
| 14911 |
Effective_Reads and Effective_Writes in tables Aspect_Id, |
| 14912 |
Aspect_Names, Aspect_Delay and Implementation_Defined_Aspect. |
| 14913 |
* atree.adb (Ekind_In): New version with 8 parameters. |
| 14914 |
(Node34): New routine. |
| 14915 |
(Set_Node34): New routine. |
| 14916 |
* atree.ads (Ekind_In): New version with 8 parameters. |
| 14917 |
(Node34): New routine. |
| 14918 |
(Set_Node34): New routine. |
| 14919 |
* einfo.adb Contract is now Node34. |
| 14920 |
(Contract): Update the assertion and node usage. |
| 14921 |
(Get_Pragma): Include pragmas Async_Readers, Async_Writers, |
| 14922 |
Effective_Reads and Effective_Writes. |
| 14923 |
(Set_Contract): Update the assertion and node usage. |
| 14924 |
(Write_Field24_Name): Remove the output for a contract. |
| 14925 |
(Write_Field34_Name): Add output for a contract. |
| 14926 |
* einfo.ads Contract is now Node34. Update the comment on |
| 14927 |
attribute usage and related node structures. |
| 14928 |
(Get_Pragma): Update the comment on usage. |
| 14929 |
* par-prag.adb (Prag): Pragmas Async_Readers, Async_Writers, |
| 14930 |
Effective_Reads and Effective_Writes do not require special |
| 14931 |
processing by the parser. |
| 14932 |
* sem_ch3.adb (Analyze_Variable_Contract): New routine. |
| 14933 |
(Analyze_Declarations): Analyze the contract of a variable at |
| 14934 |
the end of the declarative region. |
| 14935 |
(Analyze_Object_Declaration): Create a contract for a variable. |
| 14936 |
* sem_ch6.adb (Analyze_Subprogram_Contract): Update the retrieval |
| 14937 |
of classification pragmas. |
| 14938 |
(Process_Formals): Detect an illegal |
| 14939 |
use of a volatile object as a formal in a function. |
| 14940 |
* sem_ch12.adb (Instantiate_Object): Detect an illegal use of |
| 14941 |
a volatile object as an actual in generic instantiation. |
| 14942 |
* sem_prag.adb Add entries for Async_Readers, Async_Writers, |
| 14943 |
Effective_Reads and Effective_Writes in table Sig_Flags. |
| 14944 |
(Analyze_External_State_In_Decl_Part): New routine. |
| 14945 |
(Analyze_Global_Item): Detect an illegal use of a volatile object |
| 14946 |
as a global item of a function. |
| 14947 |
(Analyze_Pragma): Reimplement |
| 14948 |
pragma Abstract_State. Add support for pragmas Async_Readers, |
| 14949 |
Async_Writers, Effective_Reads and Effective_Writes. |
| 14950 |
(Check_External_Properties): New routine. |
| 14951 |
* sem_prag.ads (Analyze_External_State_In_Decl_Part): New routine. |
| 14952 |
(Check_External_Properties): New routine. |
| 14953 |
* sem_res.adb (Resolve_Actuals): Detect an illegal use of a |
| 14954 |
volatile object as an actual in a call. |
| 14955 |
(Resolve_Entity_Name): |
| 14956 |
Add local variables Par, Prev and Usage_OK. Detect illegal |
| 14957 |
contexts of volatile objects. |
| 14958 |
* sem_util.adb (Add_Contract_Item): Add support for |
| 14959 |
pragmas associated with the contract of a variable. |
| 14960 |
(Async_Readers_Enabled): New routine. |
| 14961 |
(Async_Writers_Enabled): New routine. |
| 14962 |
(Effective_Reads_Enabled): New routine. |
| 14963 |
(Effective_Writes_Enabled): New routine. |
| 14964 |
(Has_Enabled_Property): |
| 14965 |
New routine. |
| 14966 |
(Is_Unchecked_Conversion_Instance): New routine. |
| 14967 |
(Is_Volatile_Object): Add support for entities that may denote |
| 14968 |
a volatile object. |
| 14969 |
* sem_util.ads (Add_Contract_Item): Update the |
| 14970 |
comment on usage. |
| 14971 |
(Async_Readers_Enabled): New routine. |
| 14972 |
(Async_Writers_Enabled): New routine. |
| 14973 |
(Effective_Reads_Enabled): New routine. |
| 14974 |
(Effective_Writes_Enabled): New routine. |
| 14975 |
(Is_Unchecked_Conversion_Instance): New routine. |
| 14976 |
* sinfo.ads Update the comment on the structure of N_Contract. |
| 14977 |
* snames.ads-tmpl Add predefined names for Async_Readers, |
| 14978 |
Async_Writers, Effective_Reads and Effective_Writes. Add |
| 14979 |
pragma ids for Async_Readers, Async_Writers, Effective_Reads |
| 14980 |
and Effective_Writes. |
| 14981 |
|
| 14982 |
2014-01-21 Robert Dewar <[email protected]> |
| 14983 |
|
| 14984 |
* exp_ch4.adb (Eval_Op_Expon): Use CRT_Safe_Compile_Time_Known_Value |
| 14985 |
* sem_eval.adb (Compile_Time_Known_Value): Remove special |
| 14986 |
handling of CRT mode (CRT_Safe_Compile_Time_Known_Value): New |
| 14987 |
function (Eval_Op_Expon): Add CRT_Safe in call to Test_Foldable |
| 14988 |
(Test_Foldable): Add CRT_Safe parameter |
| 14989 |
* sem_eval.ads (Compile_Time_Known_Value): Remove special |
| 14990 |
handling of CRT mode. |
| 14991 |
(CRT_Safe_Compile_Time_Known_Value): New function. |
| 14992 |
|
| 14993 |
2014-01-21 Robert Dewar <[email protected]> |
| 14994 |
|
| 14995 |
* sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Fix problem |
| 14996 |
with pragma or aspect that applies to package spec or subprogram |
| 14997 |
spec. |
| 14998 |
|
| 14999 |
2014-01-21 Robert Dewar <[email protected]> |
| 15000 |
|
| 15001 |
* exp_aggr.adb: Minor reformatting. |
| 15002 |
|
| 15003 |
2014-01-21 Johannes Kanig <[email protected]> |
| 15004 |
|
| 15005 |
* gnat1drv.adb (Gnat1drv) remove obsolete reference to -gnatd.H. |
| 15006 |
|
| 15007 |
2014-01-21 Bob Duff <[email protected]> |
| 15008 |
|
| 15009 |
* gnat_ugn.texi: Document the "checks" attribute in gnat2xml. |
| 15010 |
|
| 15011 |
2014-01-21 Steve Baird <[email protected]> |
| 15012 |
|
| 15013 |
* gnat_rm.texi: Improve description of SPARK_Mode pragma. |
| 15014 |
|
| 15015 |
2014-01-21 Vincent Celier <[email protected]> |
| 15016 |
|
| 15017 |
* prj-part.adb (Parse_Single_Project): Accept to extend a project |
| 15018 |
if it has only be imported by an project being extended. When a |
| 15019 |
project that has only been imported by a project being extended |
| 15020 |
is imported by another project that is not being extended, |
| 15021 |
reset the previous indication, so that it will be an error if |
| 15022 |
this project is extended later. |
| 15023 |
* prj-tree.adb (Create_Project): Include component From_Extended |
| 15024 |
in table Projects_HT |
| 15025 |
* prj-tree.ads (Project_Name_And_Node): New Boolean component |
| 15026 |
From_Extended |
| 15027 |
|
| 15028 |
2014-01-21 Robert Dewar <[email protected]> |
| 15029 |
|
| 15030 |
* atree.ads, atree.adb: Add Node33 and Set_Node33. |
| 15031 |
* einfo.ads, einfo.adb (SPARK_Pragma): New field (SPARK_Aux_Pragma): |
| 15032 |
New field (SPARK_Pragma_Inherited): New flag |
| 15033 |
(SPARK_Aux_Pragma_Inherited): New flag (SPARK_Mode_Pragmas): |
| 15034 |
Removed. |
| 15035 |
* lib.ads, lib.adb: Remove SPARK_Mode_Pragma, no longer used. |
| 15036 |
* opt.ads (SPARK_Mode_Pragma): New global variable. |
| 15037 |
* sem.ads: Add Save_SPARK_Mode_Pragma field to Scope_Stack_Entry. |
| 15038 |
* sem_ch3.adb: Use new SPARK_Mode data structures. |
| 15039 |
* sem_ch6.adb: Set SPARK_Mode fields in subprogram specs and bodies. |
| 15040 |
* sem_ch7.adb: Set SPARK_Mode fields in package spec and body entities. |
| 15041 |
* sem_ch8.adb (Push_Scope): Save SPARK_Mode_Pragma. |
| 15042 |
(Pop_Scope): Restore SPARK_Mode_Pragma. |
| 15043 |
* sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Rewrite for |
| 15044 |
new data structures. |
| 15045 |
|
| 15046 |
2014-01-21 Arnaud Charlet <[email protected]> |
| 15047 |
|
| 15048 |
* back_end.adb: Undo previous change, not needed. Minor reformatting. |
| 15049 |
|
| 15050 |
2014-01-21 Thomas Quinot <[email protected]> |
| 15051 |
|
| 15052 |
* exp_ch5.adb: Fix comment. |
| 15053 |
* switch-c.adb: Minor comment update. |
| 15054 |
* exp_ch3.adb: Minor reformatting. |
| 15055 |
|
| 15056 |
2014-01-21 Arnaud Charlet <[email protected]> |
| 15057 |
|
| 15058 |
* back_end.adb (Scan_Compiler_Arguments): Do not store object |
| 15059 |
filename in gnatprove mode. |
| 15060 |
|
| 15061 |
2014-01-21 Thomas Quinot <[email protected]> |
| 15062 |
|
| 15063 |
* sinfo.ads (No_Ctrl_Actions): Clarify documentation (flag also |
| 15064 |
suppresses usage of primitive _assign for tagged types). |
| 15065 |
* exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Set |
| 15066 |
No_Ctrl_Actions for a tagged type that does not require |
| 15067 |
finalization, as we want to disable usage of _assign (which |
| 15068 |
may cause undesirable discriminant checks on an uninitialized, |
| 15069 |
invalid target). |
| 15070 |
|
| 15071 |
2014-01-21 Ed Schonberg <[email protected]> |
| 15072 |
|
| 15073 |
* sem_prag.adb: Reject invariant'class on completion. |
| 15074 |
|
| 15075 |
2014-01-21 Javier Miranda <[email protected]> |
| 15076 |
|
| 15077 |
* exp_ch3.adb (Build_Init_Procedure): For |
| 15078 |
derivations of interfaces, do not move the the initialization |
| 15079 |
of the _parent field since such assignment is not generated. |
| 15080 |
|
| 15081 |
2014-01-21 Ed Schonberg <[email protected]> |
| 15082 |
|
| 15083 |
* sem_res.adb (Rewrite_Renamed_Operator): Do not replace entity |
| 15084 |
with the operator it renames if we are within an expression of |
| 15085 |
a pre/postcondition, because the expression will be reanalyzed |
| 15086 |
at a later point, and the analysis of the renaming may affect |
| 15087 |
the visibility of the operator when in an instance. |
| 15088 |
|
| 15089 |
2014-01-21 Robert Dewar <[email protected]> |
| 15090 |
|
| 15091 |
* sinfo.ads, sinfo.adb: Change Do_Discriminant_Check to use new Flag1. |
| 15092 |
Add this flag to type conversion nodes and assignment nodes. |
| 15093 |
* treepr.adb: Deal properly with Flag 1,2,3. |
| 15094 |
* treeprs.adt: Minor comment update. |
| 15095 |
|
| 15096 |
2014-01-21 Robert Dewar <[email protected]> |
| 15097 |
|
| 15098 |
* sem_eval.adb (Compile_Time_Known_Value): Add Ignore_CRT |
| 15099 |
parameter. |
| 15100 |
* sem_eval.ads (Compile_Time_Known_Value): Add Ignore_CRT |
| 15101 |
parameter, completely rewrite spec. |
| 15102 |
|
| 15103 |
2014-01-21 Ed Schonberg <[email protected]> |
| 15104 |
|
| 15105 |
* sem_ch10.adb (Install_Withed_Unit): If the unit is a subprogram |
| 15106 |
instance that is inlined, it may have been rewritten as a wrapper |
| 15107 |
package. In that case the unit that must be made visible is the |
| 15108 |
related instance of the package. |
| 15109 |
|
| 15110 |
2014-01-21 Arnaud Charlet <[email protected]> |
| 15111 |
|
| 15112 |
* exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Refine |
| 15113 |
previous change in codepeer mode. |
| 15114 |
|
| 15115 |
2014-01-21 Arnaud Charlet <[email protected]> |
| 15116 |
|
| 15117 |
* exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Always add |
| 15118 |
call to Abort_Undefer, as expected by the runtime. |
| 15119 |
* s-tasren.adb (Local_Complete_Rendezvous): Replace |
| 15120 |
Defer_Abort_Nestable by Defer_Abort, since we do not expect abort to be |
| 15121 |
deferred at this point. Update comments. |
| 15122 |
|
| 15123 |
2014-01-21 Thomas Quinot <[email protected]> |
| 15124 |
|
| 15125 |
* exp_ch4.adb, exp_ch5.adb, checks.adb: Minor reformatting. |
| 15126 |
|
| 15127 |
2014-01-21 Arnaud Charlet <[email protected]> |
| 15128 |
|
| 15129 |
* switch-c.adb, usage.adb, gnat_ugn.texi: Mark -gnates as internal, |
| 15130 |
remove from doc. |
| 15131 |
|
| 15132 |
2014-01-21 Robert Dewar <[email protected]> |
| 15133 |
|
| 15134 |
* switch-c.adb, usage.adb, atree.adb, atree.ads: Minor reformatting. |
| 15135 |
|
| 15136 |
2014-01-21 Thomas Quinot <[email protected]> |
| 15137 |
|
| 15138 |
* atree.adb, atree.ads (Num_Extension_Nodes): Switch to Node_Id, since |
| 15139 |
this is value is used in Node_Id arithmetic operations. |
| 15140 |
(Copy_Node, Exchange_Entities): Use loops indexed by Num_Extension_Nodes |
| 15141 |
instead of hard-coded unrolled code. |
| 15142 |
|
| 15143 |
2014-01-21 Yannick Moy <[email protected]> |
| 15144 |
|
| 15145 |
* gnat1drv.adb: Minor code cleanup, removing useless code. |
| 15146 |
|
| 15147 |
2014-01-21 Arnaud Charlet <[email protected]> |
| 15148 |
|
| 15149 |
* opt.ads (SPARK_Switches_File_Name): New. |
| 15150 |
* switch-c.adb (Scan_Front_End_Switches): Add handling of -gnates=xxx * |
| 15151 |
* usage.adb (Usage): Document -gnates, in gnatprove mode only. |
| 15152 |
* gnat_ugn.texi: Document -gnates. |
| 15153 |
|
| 15154 |
2014-01-21 Yannick Moy <[email protected]> |
| 15155 |
|
| 15156 |
* errout.adb (Special_Msg_Delete): Update comment. Remove |
| 15157 |
special case for GNATprove which should not ignore mismatch |
| 15158 |
in sizes for representation clauses. |
| 15159 |
* sem_prag.adb (Analyze_Pragma): Remove special case for GNATprove |
| 15160 |
which should not ignore pragma Pack. |
| 15161 |
|
| 15162 |
2014-01-21 Ed Schonberg <[email protected]> |
| 15163 |
|
| 15164 |
* sem_ch4.adb: Code clean up. |
| 15165 |
|
| 15166 |
2014-01-21 Steve Baird <[email protected]> |
| 15167 |
|
| 15168 |
* gnat_rm.texi: Improve GNAT RM description of SPARK_Mode pragma. |
| 15169 |
|
| 15170 |
2014-01-21 Robert Dewar <[email protected]> |
| 15171 |
|
| 15172 |
* gcc-interface/gigi.h: Get Flags array address. |
| 15173 |
* gcc-interface/trans.c: Acquire Flags array address. |
| 15174 |
* atree.adb: Add support for Flags array and Flag0,1,2,3. |
| 15175 |
* atree.ads: Add support for Flags array and Flag0,1,2,3. |
| 15176 |
* atree.h: Add support for Flags array and Flag0,1,2,3. |
| 15177 |
* back_end.adb: Pass Flags array address to gigi. |
| 15178 |
|
| 15179 |
2014-01-21 Ed Schonberg <[email protected]> |
| 15180 |
|
| 15181 |
* sem_ch8.adb (Attribute_Renaming): Transfer original attribute |
| 15182 |
reference to generated body so that legality checks on stream |
| 15183 |
attributes are properly applied. If type is tagged and already |
| 15184 |
frozen, insert generated body at the point of the renaming |
| 15185 |
declaration. |
| 15186 |
|
| 15187 |
2014-01-21 Ed Schonberg <[email protected]> |
| 15188 |
|
| 15189 |
* sem_ch12.adb: Code clean up. |
| 15190 |
* sem_ch8.adb: Minor reformatting |
| 15191 |
|
| 15192 |
2014-01-20 Robert Dewar <[email protected]> |
| 15193 |
|
| 15194 |
* checks.adb: Check SPARK_Mode instead of GNATProve_Mode for |
| 15195 |
converting warnings on inevitable exceptions to errors. |
| 15196 |
* exp_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for |
| 15197 |
converting warnings on inevitable exceptions to errors. |
| 15198 |
* opt.adb (SPARK_Mode_Config): Handled like other config flags |
| 15199 |
* opt.ads (SPARK_Mode_Type): Moved here from types (renamed from |
| 15200 |
SPARK_Mode_Id) (SPARK_Mode_Type): Add pragma Ordered, remove |
| 15201 |
SPARK_ from names (SPARK_Mode): New flag (SPARK_Mode_Config): |
| 15202 |
New flag (Config_Switches_Type): Add SPARK_Mode field |
| 15203 |
* sem.adb: Minor code reorganization (remove unnecessary with) |
| 15204 |
* sem.ads (Scope_Stack_Entry): Add Save_SPARK_Mode field |
| 15205 |
* sem_aggr.adb: Check SPARK_Mode instead of GNATProve_Mode for |
| 15206 |
converting warnings on inevitable exceptions to errors. |
| 15207 |
* sem_attr.adb: Check SPARK_Mode instead of GNATProve_Mode for |
| 15208 |
converting warnings on inevitable exceptions to errors. |
| 15209 |
* sem_ch3.adb: Check SPARK_Mode instead of GNATProve_Mode for |
| 15210 |
converting warnings on inevitable exceptions to errors. |
| 15211 |
* sem_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for |
| 15212 |
converting warnings on inevitable exceptions to errors. |
| 15213 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Reset SPARK_Mode |
| 15214 |
from spec if needed |
| 15215 |
* sem_ch7.adb (Analyze_Package_Body_Helper): Reset SPARK_Mode |
| 15216 |
from spec if needed |
| 15217 |
* sem_ch8.adb (Push_Scope): Save SPARK_Mode (Pop_Scope): |
| 15218 |
Restore SPARK_Mode |
| 15219 |
* sem_elab.adb: Check SPARK_Mode instead of GNATProve_Mode for |
| 15220 |
converting warnings on inevitable exceptions to errors. |
| 15221 |
* sem_prag.adb (Get_SPARK_Mode_From_Pragma): New function |
| 15222 |
(Get_SPARK_Mode_Id): Removed (Get_SPARK_Mode_Type): New name |
| 15223 |
of Get_SPARK_Mode_Id |
| 15224 |
* sem_prag.ads (Get_SPARK_Mode_From_Pragma): New function |
| 15225 |
* sem_res.adb: Check SPARK_Mode instead of GNATProve_Mode for |
| 15226 |
converting warnings on inevitable exceptions to errors. |
| 15227 |
* sem_util.adb: Check SPARK_Mode instead of GNATProve_Mode for |
| 15228 |
converting warnings on inevitable exceptions to errors. |
| 15229 |
* types.ads (SPARK_Mode_Id): Moved to opt.ads and renamed |
| 15230 |
SPARK_Mode_Type |
| 15231 |
|
| 15232 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15233 |
|
| 15234 |
* sem_ch13.adb: Add semantic information to rewritten type |
| 15235 |
reference. |
| 15236 |
|
| 15237 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15238 |
|
| 15239 |
* exp_ch5.adb (Expand_N_Assignment_Statement): If both sides |
| 15240 |
are of a type with unknown discriminants, convert both to the |
| 15241 |
underlying view of the type, so that the proper constraint check |
| 15242 |
can be applied to the right-hand side. |
| 15243 |
|
| 15244 |
2014-01-20 Robert Dewar <[email protected]> |
| 15245 |
|
| 15246 |
* atree.adb (Copy_Node): Fix failure to copy last component |
| 15247 |
(Exchange_Entities): Fix failure to exchange last entity |
| 15248 |
|
| 15249 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15250 |
|
| 15251 |
* sem_ch12.adb: Code clean up. |
| 15252 |
|
| 15253 |
2014-01-20 Robert Dewar <[email protected]> |
| 15254 |
|
| 15255 |
* gnat_rm.texi, sem_ch4.adb: Minor reformatting. |
| 15256 |
|
| 15257 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15258 |
|
| 15259 |
* sem_ch4.adb (Analyze_Quantified_Expression): If after |
| 15260 |
pre-analysis the loop parameter specification has been |
| 15261 |
rewritten as a iterator specification, propagate the change to |
| 15262 |
the quantified expression, for ASIS navigtion needs. |
| 15263 |
|
| 15264 |
2014-01-20 Vincent Celier <[email protected]> |
| 15265 |
|
| 15266 |
* par-ch10.adb: Minor error message change: escape [ and ]. |
| 15267 |
|
| 15268 |
2014-01-20 Robert Dewar <[email protected]> |
| 15269 |
|
| 15270 |
* checks.adb: Make warnings on exceptions into errors in GNATprove mode. |
| 15271 |
* errout.adb: Implement [ and ] insertion characters. |
| 15272 |
* errout.ads: Document new [ and ] insertion characters. |
| 15273 |
* sem_ch12.adb, restrict.adb, frontend.adb, exp_ch7.adb: Minor |
| 15274 |
addition of ??? comment. |
| 15275 |
* lib-xref.adb, exp_util.adb, gnat1drv.adb: Minor reformatting |
| 15276 |
* exp_ch4.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_elab.adb, |
| 15277 |
sem_eval.adb, sem_res.adb, sem_util.adb, sem_attr.adb, sem_aggr.adb: |
| 15278 |
Make warnings on exceptions into errors in GNATprove mode. |
| 15279 |
* sem_dim.adb: Minor reformatting throughout Quote [ and ] |
| 15280 |
in error messages. |
| 15281 |
|
| 15282 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15283 |
|
| 15284 |
* sem_ch13.adb: Code clean up. |
| 15285 |
|
| 15286 |
2014-01-20 Robert Dewar <[email protected]> |
| 15287 |
|
| 15288 |
* errout.ads, errout.adb: Implement >? >x? >X? sequences in error |
| 15289 |
messages. |
| 15290 |
* sem_ch6.adb (Check_Statement_Sequence): Missing return is an |
| 15291 |
error in GNATprove mode. |
| 15292 |
|
| 15293 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15294 |
|
| 15295 |
* par-ch4.adb (Is_Parameterless_Attribute): The Ada2012 attribute |
| 15296 |
reference 'Old takes no parameters, and thus can appear as a |
| 15297 |
prefix of a slice. |
| 15298 |
|
| 15299 |
2014-01-20 Eric Botcazou <[email protected]> |
| 15300 |
|
| 15301 |
* exp_aggr.adb: Fix minor typos. |
| 15302 |
|
| 15303 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15304 |
|
| 15305 |
* sem_attr.adb (Analyze_Attribute, case 'Constrained): In an |
| 15306 |
instance the attribute is legal, and its value is determined |
| 15307 |
statically if the type has no discriminants. This choice is |
| 15308 |
more useful than rechecking the legality rule in the instance, |
| 15309 |
is consistent with older usage, and is also consistent with all |
| 15310 |
existing tests. |
| 15311 |
|
| 15312 |
2014-01-20 Arnaud Charlet <[email protected]> |
| 15313 |
|
| 15314 |
* sem_cat.adb (Validate_Static_Object_Name): Change error into |
| 15315 |
warning in Relaxed_Semantic_Mode. |
| 15316 |
|
| 15317 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15318 |
|
| 15319 |
* sem_attr.adb: Code and comments cleanup. |
| 15320 |
|
| 15321 |
2014-01-20 Yannick Moy <[email protected]> |
| 15322 |
|
| 15323 |
* debug.adb Free debug flags -gnatd.D, -gnatd.G and -gnatd.V * |
| 15324 |
* errout.adb (Compilation_Errors): Remove special handling in |
| 15325 |
GNATprove mode. |
| 15326 |
* gnat1drv.adb (Adjust_Global_Switches): Remove handling of the |
| 15327 |
removed debug flags. |
| 15328 |
* gnat_rm.texi: Initial documentation for Abstract_State, Depends, |
| 15329 |
Global, Initial_Condition, Initializes and Refined_State pragmas and |
| 15330 |
aspects. |
| 15331 |
* opt.ads (Frame_Condition_Mode, Formal_Extensions, |
| 15332 |
SPARK_Strict_Mode): Remove global flags. |
| 15333 |
* sem_ch3.adb (Analyze_Object_Declaration): Check of no hidden state |
| 15334 |
always performed now, on packages declaring a null state. |
| 15335 |
(Signed_Integer_Type_Declaration): Remove ill-designed attempt |
| 15336 |
at providing pedantic mode for bounds of integer types. |
| 15337 |
* sem_ch4.adb (Analyze_Quantified_Expression): Warning on suspicious |
| 15338 |
"some" quantified expression now issued under control of -gnatw.t, |
| 15339 |
like the other warning on unused bound variable. |
| 15340 |
* sem_prag.adb (Check_Precondition_Postcondition): Remove useless test |
| 15341 |
on removed flag. |
| 15342 |
(Analyze_Pragma): Remove tests for SPARK 2014 |
| 15343 |
pragmas, not officially allowed by GNAT. |
| 15344 |
|
| 15345 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15346 |
|
| 15347 |
* sem_prag.adb (Analyze_Pragma): Ensure that |
| 15348 |
the sole argument of pragmas Abstract_State, Contract_Cases, |
| 15349 |
Depends, Global and Initializes in in aggregate form. |
| 15350 |
(Analyze_Refined_Pragma): Ensure that the sole argument of |
| 15351 |
pragmas Refined_Depends, Refined_Global and Refined_State is in |
| 15352 |
aggregate form. |
| 15353 |
(Ensure_Aggregate_Form): New routine. |
| 15354 |
|
| 15355 |
2014-01-20 Doug Rupp <[email protected]> |
| 15356 |
|
| 15357 |
* sem_attr.adb (Analyze_Attribute): case |
| 15358 |
Attribute_Constrained => treat all prefixes as legal for Declib |
| 15359 |
compatibility. |
| 15360 |
|
| 15361 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15362 |
|
| 15363 |
* sem_prag.adb (Check_Mode): Reimplement the routine. |
| 15364 |
(Find_Mode): New routine. |
| 15365 |
|
| 15366 |
2014-01-20 Robert Dewar <[email protected]> |
| 15367 |
|
| 15368 |
* sem_ch4.adb (Operator_Check): Handle additional |
| 15369 |
Allow_Integer_Address cases. |
| 15370 |
|
| 15371 |
2014-01-20 Robert Dewar <[email protected]> |
| 15372 |
|
| 15373 |
* gnat_rm.texi (Allow_Integer_Address): Remove note about not |
| 15374 |
allowed if address is non-private, no longer true. |
| 15375 |
* sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address): |
| 15376 |
Remove check for address being private, causes difficulty when |
| 15377 |
pragma used in gnat.adc file and is not needed, since we guard |
| 15378 |
this in Address_Integer_Convert_OK. |
| 15379 |
* exp_ch7.adb: Minor reformatting. |
| 15380 |
* sem_ch4.adb: Handle operator operands in Allow_Integer_Address mode. |
| 15381 |
|
| 15382 |
2014-01-20 Robert Dewar <[email protected]> |
| 15383 |
|
| 15384 |
* checks.adb (Apply_Range_Check): Remove gnatprove special |
| 15385 |
casing of exponentiation. |
| 15386 |
* sem_res.adb (Resolve_Op_Expon): Apply range check to right |
| 15387 |
operand for integer case to check range against Natural. |
| 15388 |
|
| 15389 |
2014-01-20 Robert Dewar <[email protected]> |
| 15390 |
|
| 15391 |
* s-tataat.adb: Minor reformatting. |
| 15392 |
|
| 15393 |
2014-01-20 Robert Dewar <[email protected]> |
| 15394 |
|
| 15395 |
* einfo.adb (Is_Descendent_Of_Address): Now applies to all |
| 15396 |
entities, and also fix documentation to remove mention of visible |
| 15397 |
integer type, since this is not what the implementation does. |
| 15398 |
* einfo.ads (Is_Descendent_Of_Address): Now applies to all |
| 15399 |
entities, and also fix documentation to remove mention of visible |
| 15400 |
integer type, since this is not what the implementation does. |
| 15401 |
* gnat_rm.texi: Minor clarification of Allow_Integer_Address |
| 15402 |
function. |
| 15403 |
* sem_ch4.adb (Analyze_One_Call): Handle Allow_Integer_Address |
| 15404 |
case for parameter type check. |
| 15405 |
* sem_res.adb (Resolve): Use new function |
| 15406 |
Address_Integer_Convert_OK. |
| 15407 |
* sem_type.adb: Minor code reorganization (use Ekind_In) Minor |
| 15408 |
reformatting throughout. |
| 15409 |
* sem_util.adb (Address_Integer_Convert_OK): New function. |
| 15410 |
* sem_util.ads: Minor reformatting (put specs in alpha order) |
| 15411 |
(Address_Integer_Convert_OK): New function. |
| 15412 |
|
| 15413 |
2014-01-20 Thomas Quinot <[email protected]> |
| 15414 |
|
| 15415 |
* exp_ch7.adb (Wrap_Transient_Expression): |
| 15416 |
Insertion extra conditional expression only if |
| 15417 |
Opt.Suppress_Control_Flow_Optimizations is set. |
| 15418 |
|
| 15419 |
2014-01-20 Arnaud Charlet <[email protected]> |
| 15420 |
|
| 15421 |
* s-tataat.adb (Initialize_Attributes): Abort might already be |
| 15422 |
deferred in Create_Task. |
| 15423 |
|
| 15424 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15425 |
|
| 15426 |
* checks.adb (Apply_Scalar_Range_Check): Flag |
| 15427 |
the exponent as requiring a range check when the expression is |
| 15428 |
an exponentiation. |
| 15429 |
|
| 15430 |
2014-01-20 Fedor Rybin <[email protected]> |
| 15431 |
|
| 15432 |
* gnat_ugn.texi: Documenting --passed-tests option for gnattest. |
| 15433 |
|
| 15434 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15435 |
|
| 15436 |
* sem_util.adb (Default_Initialization): New routine. |
| 15437 |
* sem_util.ads: Add new type Default_Initialization_Kind. |
| 15438 |
(Default_Initialization): New routine. |
| 15439 |
|
| 15440 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15441 |
|
| 15442 |
* sem_prag.adb (Check_Mode): Correct all error |
| 15443 |
message logic dealing with in/in out parameters that may appear |
| 15444 |
as inputs or have a self reference. |
| 15445 |
|
| 15446 |
2014-01-20 Robert Dewar <[email protected]> |
| 15447 |
|
| 15448 |
* exp_ch9.adb, checks.adb, exp_intr.adb: Minor reformatting. |
| 15449 |
* sem_res.adb (Resolve): Fix error causing infinite loop for |
| 15450 |
integer used as address. Allow addresses as integers. |
| 15451 |
|
| 15452 |
2014-01-20 Arnaud Charlet <[email protected]> |
| 15453 |
|
| 15454 |
* s-osinte-linux.ads (struct_sigaction): Fix rep clause. |
| 15455 |
|
| 15456 |
2014-01-20 Bob Duff <[email protected]> |
| 15457 |
|
| 15458 |
* par-ch8.adb (P_Use_Type_Clause): Detect syntax |
| 15459 |
error when "use all" is not followed by "type". |
| 15460 |
|
| 15461 |
2014-01-20 Bob Duff <[email protected]> |
| 15462 |
|
| 15463 |
* exp_intr.adb (Expand_Unc_Deallocation): Remove warning on abort |
| 15464 |
followed by free. |
| 15465 |
|
| 15466 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15467 |
|
| 15468 |
* checks.adb (Apply_Address_Clause_Check): If there is an |
| 15469 |
alignment check on the expression in an address clause, and there |
| 15470 |
is no local exception propagation, add an additional explanatory |
| 15471 |
message to clarify the cause of previous warning. |
| 15472 |
|
| 15473 |
2014-01-20 Robert Dewar <[email protected]> |
| 15474 |
|
| 15475 |
* exp_ch7.adb: Minor reformatting. |
| 15476 |
* opt.ads: Minor comment updates. |
| 15477 |
* sem.adb: Minor name change Is_Main_Unit => |
| 15478 |
Is_Main_Unit_Or_Main_Unit_Spec. |
| 15479 |
* sem_ch6.adb: Minor reformatting and code reorganization. |
| 15480 |
|
| 15481 |
2014-01-20 Bob Duff <[email protected]> |
| 15482 |
|
| 15483 |
* gnat_ugn.texi: Update gnatpp switches. |
| 15484 |
|
| 15485 |
2014-01-20 Thomas Quinot <[email protected]> |
| 15486 |
|
| 15487 |
* exp_ch9.adb: Minor comment edit. |
| 15488 |
|
| 15489 |
2014-01-20 Robert Dewar <[email protected]> |
| 15490 |
|
| 15491 |
* gnat_rm.texi: Document that Allow_Integer_Address is permitted |
| 15492 |
only if System.Address is a private type. |
| 15493 |
* opt.ads (Allow_Integer_Address): No longer set by -gnates. |
| 15494 |
* sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address): |
| 15495 |
Allowed only if type System.Address is private, since otherwise |
| 15496 |
it makes no sense. |
| 15497 |
* sem_res.adb: Fix failure to properly Analyze unchecked |
| 15498 |
conversions that were introduced by Allow_Integer_Address. |
| 15499 |
* switch-c.adb: Remove -gnates switch. |
| 15500 |
* usage.adb: Remove -gnates switch. |
| 15501 |
* gnat_ugn.texi: Remove documentation of -gnates flag. |
| 15502 |
|
| 15503 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15504 |
|
| 15505 |
* sem_ch6.adb (Analyze_Expression_Function): Pre-analyze and |
| 15506 |
resolve expression to perform proper name capture. |
| 15507 |
|
| 15508 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15509 |
|
| 15510 |
* sem.adb (Semantics): When saving/restoring configuration |
| 15511 |
switches, the spec of a pre- defined unit that is the main unit |
| 15512 |
must be treated as a predefined unit as well. |
| 15513 |
|
| 15514 |
2014-01-20 Thomas Quinot <[email protected]> |
| 15515 |
|
| 15516 |
* exp_ch7.adb (Wrap_Transient_Expression): For a Boolean |
| 15517 |
expression, insert an extra conditional expression when saving |
| 15518 |
the value of the expression, for the benefit of control flow |
| 15519 |
graph based coverage analysis. |
| 15520 |
* exp_ch3.adb: Minor reformatting. |
| 15521 |
|
| 15522 |
2014-01-20 Robert Dewar <[email protected]> |
| 15523 |
|
| 15524 |
* gnat1drv.adb: Set Allow_Integer_Address in relaxed semantics mode. |
| 15525 |
* gnat_rm.texi: Document pragma Allow_Integer_Address. |
| 15526 |
* gnat_ugn.texi: Document pragma Allow_Integer_Address, -gnates. |
| 15527 |
* opt.ads: New flag Allow_Integer_Address. |
| 15528 |
* par-prag.adb: Dummy entry for pragma Allow_Integer_Address. |
| 15529 |
* sem_ch5.adb: Minor reformatting. |
| 15530 |
* sem_prag.adb: Implement pragma Allow_Integer_Address. |
| 15531 |
* sem_res.adb (Resolve): Allow integer address value if |
| 15532 |
switch set. |
| 15533 |
* sem_util.adb: Minor reformatting. |
| 15534 |
* snames.ads-tmpl: Add entry for pragma Allow_Integer_Address. |
| 15535 |
* switch-c.adb: Recognize flag -gnates. |
| 15536 |
* usage.adb: Document flag -gnates. |
| 15537 |
|
| 15538 |
2014-01-20 Thomas Quinot <[email protected]> |
| 15539 |
|
| 15540 |
* s-tadeca.adb: Fix minor typos in comment. |
| 15541 |
|
| 15542 |
2014-01-20 Pascal Obry <[email protected]> |
| 15543 |
|
| 15544 |
* s-win32.ads (FreeLibrary): New import. |
| 15545 |
|
| 15546 |
2014-01-20 Robert Dewar <[email protected]> |
| 15547 |
|
| 15548 |
* sem_res.adb, sem_cat.adb: Minor reformatting. |
| 15549 |
* sem_ch11.adb (Analyze_Raise_Statement): Only give warning about |
| 15550 |
assigning to OUT parameters for the current subprogram scope. |
| 15551 |
* exp_ch4.adb: Minor reformatting. |
| 15552 |
|
| 15553 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15554 |
|
| 15555 |
* exp_ch4.adb (Process_Transient_Object, |
| 15556 |
Find_Enclosing_Contexts): If the top-level if-expression that |
| 15557 |
generated the transient object is an actual in a call, the proper |
| 15558 |
Hook_Context is a construct enclosing the call. |
| 15559 |
* einfo.ads: Indicate that Related_Expression is used to link a |
| 15560 |
loop variable to the container expression over which the loop |
| 15561 |
takes place. |
| 15562 |
(Analyze_Iterator_Specification): Set the Related_Expression of |
| 15563 |
the loop variable in a container element iterator. |
| 15564 |
(Note_Possible_Modification): If the variable is the loop |
| 15565 |
variable in a container element iterator, indicate that the |
| 15566 |
enclosing container is also modified. |
| 15567 |
|
| 15568 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15569 |
|
| 15570 |
* aspects.adb (Move_Or_Merge_Aspects): Reimplemented. |
| 15571 |
|
| 15572 |
2014-01-20 Robert Dewar <[email protected]> |
| 15573 |
|
| 15574 |
* s-taasde.ads, gnat_ugn.texi, s-tadeca.adb, sem_res.adb, s-tadeca.ads: |
| 15575 |
Minor reformatting and code clean up. |
| 15576 |
|
| 15577 |
2014-01-20 Arnaud Charlet <[email protected]> |
| 15578 |
|
| 15579 |
* sem_cat.adb (Validate_Object_Declaration): Relax semantics |
| 15580 |
of objects of private type if Relaxed_RM_Semantics. |
| 15581 |
|
| 15582 |
2014-01-20 Claire Dross <[email protected]> |
| 15583 |
|
| 15584 |
* a-cofove.ads (Vector): Capacity discriminant |
| 15585 |
should be in range of the index. |
| 15586 |
|
| 15587 |
2014-01-20 Thomas Quinot <[email protected]> |
| 15588 |
|
| 15589 |
* a-caldel.ads(To_Duration), s-taasde.ads(Time_Enqueue): |
| 15590 |
Clarify specs s-tadeca.adb(Enqueue_Calendar): Compensate for |
| 15591 |
possible difference between epoch of Ada.Calendar clock and Ada |
| 15592 |
real-time/tasking clock. |
| 15593 |
* s-taprop-posix.adb: Minor comment fix. |
| 15594 |
|
| 15595 |
2014-01-20 Doug Rupp <[email protected]> |
| 15596 |
|
| 15597 |
* sysdep.c [vxworks]: Remove Vxworks version noise for RTP. |
| 15598 |
|
| 15599 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15600 |
|
| 15601 |
* exp_attr.adb (Expand_N_Attribute_Reference): Generate validity |
| 15602 |
checks on the prefix of attribute 'Old. |
| 15603 |
* sem_ch3.adb (Process_Range_Expr_In_Decl): Suppress the |
| 15604 |
generation of validity checks on a range that belongs to the |
| 15605 |
iteration scheme of a quantified expression. |
| 15606 |
* sem_ch5.adb (One_Bound): Suppress the generation of validity |
| 15607 |
checks on a bound that belongs to the iteration scheme of a |
| 15608 |
quantified expression, generate the check in all other cases. |
| 15609 |
|
| 15610 |
2014-01-20 Bob Duff <[email protected]> |
| 15611 |
|
| 15612 |
* gnat_ugn.texi: Enable --pp-new by default. Minor reorganization. |
| 15613 |
|
| 15614 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15615 |
|
| 15616 |
* sem_res.adb (Resolve): When compiling a predefined unit, ignore |
| 15617 |
interpretations that do not come from other predefined units, |
| 15618 |
to prevent spurious ambiguities in the presence of user-defined |
| 15619 |
operators in the context of (an instance of) a predefined unit. |
| 15620 |
|
| 15621 |
2014-01-20 Robert Dewar <[email protected]> |
| 15622 |
|
| 15623 |
* gnat_rm.texi: Document that Loop_Variant is included in |
| 15624 |
Statement_Assertions. |
| 15625 |
* sem_prag.adb (Check_Kind): Add Loop_Variant to |
| 15626 |
Statement_Assertions (Check_Applicable_Policy): Add Loop_Variant |
| 15627 |
to Statement_Assertions. |
| 15628 |
|
| 15629 |
2014-01-20 Doug Rupp <[email protected]> |
| 15630 |
|
| 15631 |
* sysdep.c (__gnat_is_file_not_found_error) [vxworks6]: Add case |
| 15632 |
for errno ENOENT from RTP on NFS mounted file system. |
| 15633 |
|
| 15634 |
2014-01-20 Ed Schonberg <[email protected]> |
| 15635 |
|
| 15636 |
* sem_util.adb (Check_Function_Writable_Actuals): 1) Do not |
| 15637 |
examine code that does not come from source. The check does not |
| 15638 |
apply to code generated for constraint checks, and such code may |
| 15639 |
generate spurious error messages when compiled with expansion |
| 15640 |
disabled (as in a generic unit) because side effects may not |
| 15641 |
have been removed. |
| 15642 |
2) Make error messages more explicit: indicate the component |
| 15643 |
of the construct whose value is indeterminate because of a |
| 15644 |
call to a function with in-out parameter in another component, |
| 15645 |
when there is no mandated order of execution between the two |
| 15646 |
components (actuals, aggregate components, alternatives). |
| 15647 |
|
| 15648 |
2014-01-20 Robert Dewar <[email protected]> |
| 15649 |
|
| 15650 |
* gnat_rm.texi: Minor cleanup. |
| 15651 |
|
| 15652 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15653 |
|
| 15654 |
* sem_attr.adb (Analyze_Attribute): Attributes 'Old and 'Result |
| 15655 |
can now apply to a refined postcondition. |
| 15656 |
* sem_ch6.adb (Analyze_Subprogram_Contract): Remove local |
| 15657 |
variable Result_Seen. Add variables Case_Prag, Post_Prag, |
| 15658 |
Seen_In_Case and Seen_In_Post. Update the mechanism that detects |
| 15659 |
whether postconditions and/or constract-cases mention attribute |
| 15660 |
'Result and introduce a post-state when applied to functions. |
| 15661 |
(Check_Result_And_Post_State): Removed. |
| 15662 |
* sem_prag.adb (Analyze_Pragma): Add local variable |
| 15663 |
Result_Seen. Verify that the expression of pragma Refined_Post |
| 15664 |
mentions attribute 'Result and introduces a post-state. |
| 15665 |
* sem_util.ads, sem_util.adb (Check_Result_And_Post_State): New routine. |
| 15666 |
|
| 15667 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15668 |
|
| 15669 |
* exp_ch7.adb (Is_Subprogram_Call): New routine. |
| 15670 |
(Process_Transient_Objects): Make variable Must_Hook global with |
| 15671 |
respect to all locally declared subprograms. Search the context |
| 15672 |
for at least one subprogram call. |
| 15673 |
(Requires_Hooking): Removed. |
| 15674 |
|
| 15675 |
2014-01-20 Claire Dross <[email protected]> |
| 15676 |
|
| 15677 |
* a-cfdlli.ads a-cfhama.ads a-cfhase.ads a-cforma.ads |
| 15678 |
* a-cforse.ads a-cofove.ads: Add pragma Annotate (GNATprove, |
| 15679 |
External_Axiomatization); |
| 15680 |
|
| 15681 |
2014-01-20 Robert Dewar <[email protected]> |
| 15682 |
|
| 15683 |
* sem_attr.adb (Analyze_Attribute, case Loop_Entry): Allow |
| 15684 |
Loop_Entry in Assert, Assert_And_Cut, and Assume pragmas. |
| 15685 |
* sem_prag.adb (Analyze_Pragma, case Assert[_And_Cut], Assume): |
| 15686 |
Allow Loop_Entry to be used in these pragmas if they appear in |
| 15687 |
an appropriate context. |
| 15688 |
(Placement_Error): Specialize error |
| 15689 |
message for pragma Assert[_And_Cut] or pragma Assume containing |
| 15690 |
Loop_Entry attribute. |
| 15691 |
* a-exexpr-gcc.adb, sinput.adb: Minor reformatting. |
| 15692 |
* s-excmac-arm.ads, s-except.ads, s-excmac-gcc.ads: Minor reformatting |
| 15693 |
and code clean ups. |
| 15694 |
|
| 15695 |
2014-01-20 Robert Dewar <[email protected]> |
| 15696 |
|
| 15697 |
* gnat1drv.adb: Minor comment update. |
| 15698 |
|
| 15699 |
2014-01-20 Tristan Gingold <[email protected]> |
| 15700 |
|
| 15701 |
* raise-gcc.c (PERSONALITY_FUNCTION/arm): Remove unused |
| 15702 |
variables, comment out unused code. |
| 15703 |
* a-exexpr-gcc.adb: Move declarations to s-excmac-gcc.ads |
| 15704 |
* s-excmac-gcc.ads: New file, extracted from a-exexpr-gcc.adb |
| 15705 |
* s-excmac-arm.ads: New file. |
| 15706 |
|
| 15707 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15708 |
|
| 15709 |
* exp_ch4.adb (Expand_N_Slice): Remove constant D and variables |
| 15710 |
Drange and Index_Typ. Remove the circuitry which creates a |
| 15711 |
range check to compare the index type of the array against the |
| 15712 |
discrete_range. |
| 15713 |
* sem_res.adb (Resolve_Slice): Add local variable Dexpr. Update |
| 15714 |
the circuitry which creates a range check to handle a |
| 15715 |
discrete_range denoted by a subtype indication. |
| 15716 |
|
| 15717 |
2014-01-20 Pierre-Marie Derodat <[email protected]> |
| 15718 |
|
| 15719 |
* sinput.adb, sinput.ads (Sloc_Range): Traverse the tree of original |
| 15720 |
nodes to get the original sloc range. |
| 15721 |
|
| 15722 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15723 |
|
| 15724 |
* sem_prag.adb (Analyze_Pragma): Use Defining_Entity to obtain the |
| 15725 |
entity of a [library level] package. |
| 15726 |
|
| 15727 |
2014-01-20 Tristan Gingold <[email protected]> |
| 15728 |
|
| 15729 |
* raise-gcc.c (exception_class_eq): New function. |
| 15730 |
(is_handled_by): Use it to compare exception classes. |
| 15731 |
(PERSONALITY_STORAGE): Define. (continue_unwind): New function to |
| 15732 |
be called to return URC_CONTINUE_UNWIND. |
| 15733 |
(personality_body): New function, extracted from PERSONALITY_ROUTINE. |
| 15734 |
(PERSONALITY_ROUTINE): Add an implementation for the ARM unwinder. |
| 15735 |
|
| 15736 |
2014-01-20 Robert Dewar <[email protected]> |
| 15737 |
|
| 15738 |
* opt.ads: Minor comment update. |
| 15739 |
|
| 15740 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15741 |
|
| 15742 |
* exp_ch4.adb (Expand_N_Slice): Relocate some variables and |
| 15743 |
constants to the "Local variables" area. Add new constant D. Add |
| 15744 |
new variables Drange and Index_Typ. Rename Pfx to Rep and Ptp |
| 15745 |
to Pref_Typ and update all occurrences. Add circuitry to extract |
| 15746 |
the discrete_range and the index type and build a range check. |
| 15747 |
|
| 15748 |
2014-01-20 Arnaud Charlet <[email protected]> |
| 15749 |
|
| 15750 |
* gnat1drv.adb (Adjust_Global_Switches): Enable |
| 15751 |
Treat_Categorization_Errors_As_Warnings when Relaxed_RM_Semantics |
| 15752 |
is set. |
| 15753 |
|
| 15754 |
2014-01-20 Thomas Quinot <[email protected]> |
| 15755 |
|
| 15756 |
* sem_ch5.adb, sem_ch4.adb: Minor reformatting. |
| 15757 |
|
| 15758 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15759 |
|
| 15760 |
* sem_ch13.adb (Analyze_Aspect_Specifications): |
| 15761 |
When aspect SPARK_Mode appears on a package body, insert the |
| 15762 |
generated pragma at the top of the body declarations. |
| 15763 |
|
| 15764 |
2014-01-20 Robert Dewar <[email protected]> |
| 15765 |
|
| 15766 |
* sem_aggr.adb, exp_prag.adb, sem_aux.adb, sinfo.ads, sem_ch10.adb, |
| 15767 |
checks.adb, sem_prag.adb, sem_ch12.adb, freeze.adb, g-arrspl.adb, |
| 15768 |
expander.adb, gnat1drv.adb, exp_ch4.adb, sem_ch6.adb, |
| 15769 |
sem_ch8.adb, exp_dist.adb: Minor reformatting. |
| 15770 |
|
| 15771 |
2014-01-20 Yannick Moy <[email protected]> |
| 15772 |
|
| 15773 |
* gnat1drv.adb (Gnat1drv): Call Write_ALI with Object=True in GNATprove |
| 15774 |
mode. |
| 15775 |
|
| 15776 |
2014-01-20 Pascal Obry <[email protected]> |
| 15777 |
|
| 15778 |
* g-arrspl.ads (Slice_Set): New definition (will use a copy on |
| 15779 |
write scheme). |
| 15780 |
* g-arrspl.adb: Adapt all routine to this new implementation. |
| 15781 |
(Set): Copy the Slice_Set definition before reusing it. |
| 15782 |
|
| 15783 |
2014-01-20 Arnaud Charlet <[email protected]> |
| 15784 |
|
| 15785 |
* sem_prag.adb (Process_Import_Or_Interface): In |
| 15786 |
Relaxed_RM_Semantics, support old Ada 83 style of pragma Import. |
| 15787 |
(Analyze_Pragma): Ditto for pragma Export. |
| 15788 |
* exp_prag.adb (Expand_Pragma_Import_Or_Interface): Handle old pragma |
| 15789 |
Import style. |
| 15790 |
|
| 15791 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15792 |
|
| 15793 |
* einfo.ads: E_Abstract_State is now part of the entities that |
| 15794 |
can be overloaded. Update type Overloadable_Kind to reflect the |
| 15795 |
inclusion of abstract states. |
| 15796 |
* sem_ch6.adb (New_Overloaded_Entity): A function can now |
| 15797 |
overload an abstract state. |
| 15798 |
* sem_prag.adb (Analyze_Constituent): Handle the overloading |
| 15799 |
of states by functions. Use Entity_Of to obtain the entity of |
| 15800 |
a constituent. (Analyze_Global_Item): Handle the overloading of |
| 15801 |
states by functions. |
| 15802 |
(Analyze_Initialization_Item): Handle the |
| 15803 |
overloading of states by functions. Use Entity_Of to obtain the |
| 15804 |
entity of an item. |
| 15805 |
(Analyze_Input_Item): Handle the overloading |
| 15806 |
of states by functions. Use Entity_Of to obtain the entity of an item. |
| 15807 |
(Analyze_Input_Output): Handle the overloading of states by functions. |
| 15808 |
(Analyze_Refinement_Clause): Handle the overloading |
| 15809 |
of states by functions. Use Entity_Of to obtain the entity of an item. |
| 15810 |
(Appears_In): Use Entity_Of to obtain the entity of an element. |
| 15811 |
(Check_Usage): Use Entity_Of to obtain the entity of |
| 15812 |
an item. Add a guard to prevent a crash due to a previous error. |
| 15813 |
(Resolve_State): New routine. |
| 15814 |
|
| 15815 |
2014-01-20 Yannick Moy <[email protected]> |
| 15816 |
|
| 15817 |
* spark_xrefs.ads, debug.adb, gnat1drv.adb, errout.adb, errout.ads, |
| 15818 |
opt.ads: Minor comments updates. |
| 15819 |
|
| 15820 |
2014-01-20 Hristian Kirtchev <[email protected]> |
| 15821 |
|
| 15822 |
* einfo.adb (Non_Limited_View): Applies to abstract states. |
| 15823 |
(Set_From_Limited_With): Applies to abstract states. |
| 15824 |
(Set_Non_Limited_View): Applies to abstract states. |
| 15825 |
(Write_Field17): Output the non-limited view of an abstract state. |
| 15826 |
* einfo.ads: Update the comment on usage and occurrences in |
| 15827 |
nodes for attributes From_Limited_With and Non_Limited_View. |
| 15828 |
* sem_aux.adb (Available_View): This routine can now handle |
| 15829 |
abstract states. |
| 15830 |
* sem_aux.ads (Available_View): This routine can now handle |
| 15831 |
abstract states. Update the comment on usage. |
| 15832 |
* sem_ch8.adb (Find_Expanded_Name): Handle abstract views |
| 15833 |
of states and variables. |
| 15834 |
(In_Pragmas_Depends_Or_Global): New routine. |
| 15835 |
* sem_ch10.adb (Build_Limited_Views): Implement |
| 15836 |
abstract (limited) views of variables and states. |
| 15837 |
(Build_Shadow_Entity): This routine is now a procedure. Add |
| 15838 |
formal parameter Shadow. Update the comment on usage. Add |
| 15839 |
context-specific decoration for states and variables. |
| 15840 |
(Decorate_State): New routine. (Decorate_Variable): New routine. |
| 15841 |
(Find_And_Process_States): New routine. |
| 15842 |
(Process_Declarations): Renamed to Process_Declarations_And_States. |
| 15843 |
(Process_Declarations_And_States): Add formal parameters |
| 15844 |
Pack and Create_Abstract_Views. Update the comment on usage. |
| 15845 |
(Process_States): New routine. |
| 15846 |
* sem_prag.adb (Check_Dependency_Clause): Handle abstract |
| 15847 |
views of states and variables. Match the abstract view of a state |
| 15848 |
against its corresponding non-abstract view. |
| 15849 |
(Is_Matching_Input): |
| 15850 |
Handle abstract views of states and variables. Match the abstract |
| 15851 |
view of a state against its corresponding non-abstract view. |
| 15852 |
(Process_Global_Item): Handle abstract views of states and |
| 15853 |
variables. |
| 15854 |
|
| 15855 |
2014-01-20 Bob Duff <[email protected]> |
| 15856 |
|
| 15857 |
* sem_ch10.adb (Expand_With_Clause): Don't |
| 15858 |
recurse on the prefix if the current with-ed name refers to a |
| 15859 |
package that renames its own parent, eg "package P.Q renames P;". |
| 15860 |
|
| 15861 |
2014-01-20 Yannick Moy <[email protected]> |
| 15862 |
|
| 15863 |
* exp_spark.adb (Expand_SPARK_Call): Remove procedure. |
| 15864 |
* opt.adb, opt.ads (Full_Expander_Active): Remove function. |
| 15865 |
* checks.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb, sem_aggr.adb, |
| 15866 |
* sem_ch10.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_ch9.adb, |
| 15867 |
* sem_disp.adb, sem_res.adb Replace Full_Expander_Active by |
| 15868 |
Expander_Active. |
| 15869 |
|
| 15870 |
2014-01-20 Yannick Moy <[email protected]> |
| 15871 |
|
| 15872 |
* sinfo.ads Update documentation of GNATprove mode. |
| 15873 |
|
| 15874 |
2014-01-20 Yannick Moy <[email protected]> |
| 15875 |
|
| 15876 |
* adabkend.adb, ali-util.adb, errout.adb, exp_ch7.adb, |
| 15877 |
* exp_dbug.adb, freeze.adb, lib-xref.adb, restrict.adb, |
| 15878 |
* sem_attr.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, |
| 15879 |
* sem_prag.adb, sem_res.adb, sem_util.adb Rename SPARK_Mode into |
| 15880 |
GNATprove_Mode. |
| 15881 |
* sem_ch13.adb: Remove blank. |
| 15882 |
* exp_spark.adb, exp_spark.ads (Expand_SPARK_Call): Only replace |
| 15883 |
subprograms by alias for renamings, not for inherited primitive |
| 15884 |
operations. |
| 15885 |
* exp_util.adb (Expand_Subtype_From_Expr): Apply the expansion |
| 15886 |
in GNATprove mode. |
| 15887 |
(Remove_Side_Effects): Apply the removal in |
| 15888 |
GNATprove mode, for the full analysis of expressions. |
| 15889 |
* expander.adb (Expand): Call the light SPARK expansion in GNATprove |
| 15890 |
mode. |
| 15891 |
(Expander_Mode_Restore, Expander_Mode_Save_And_Set): Ignore |
| 15892 |
save/restore actions for Expander_Active flag in GNATprove mode, |
| 15893 |
similar to what is done in ASIS mode. |
| 15894 |
* frontend.adb (Frontend): Generic bodies are instantiated in |
| 15895 |
GNATprove mode. |
| 15896 |
* gnat1drv.adb (Adjust_Global_Switches): Set operating |
| 15897 |
mode to Check_Semantics in GNATprove mode, although a light |
| 15898 |
expansion is still performed. |
| 15899 |
(Gnat1drv): Set Back_End_Mode to |
| 15900 |
Declarations_Only in GNATprove mode, and later on special case |
| 15901 |
the GNATprove mode to continue analysis anyway. |
| 15902 |
* lib-writ.adb (Write_ALI): Always generate ALI files in |
| 15903 |
GNATprove mode. |
| 15904 |
* opt.adb, opt.ads (Full_Expander_Active): Make it equivalent to |
| 15905 |
Expander_Active. |
| 15906 |
(SPARK_Mode): Renamed as GNATprove_Mode. |
| 15907 |
* sem_aggr.adb (Aggregate_Constraint_Checks): Add checks in the |
| 15908 |
tree in GNATprove_Mode. |
| 15909 |
* sem_ch12.adb (Analyze_Package_Instantiation): Always instantiate |
| 15910 |
body in GNATprove mode. |
| 15911 |
(Need_Subprogram_Instance_Body): Always instantiate body in GNATprove |
| 15912 |
mode. |
| 15913 |
* sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl): |
| 15914 |
Make sure side effects are removed in GNATprove mode. |
| 15915 |
|
| 15916 |
2014-01-20 Eric Botcazou <[email protected]> |
| 15917 |
|
| 15918 |
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Robustify tests |
| 15919 |
for aliased objects with an unconstrained nominal subtype. |
| 15920 |
* gcc-interface/trans.c (Call_to_gnu): Likewise. |
| 15921 |
(gnat_to_gnu) <case N_Op_Not>: Robustify test for private type. |
| 15922 |
<case N_Op_Minus>: Remove useless code. |
| 15923 |
(Exception_Handler_to_gnu_zcx): Minor tweaks. |
| 15924 |
|
| 15925 |
2014-01-20 Eric Botcazou <[email protected]> |
| 15926 |
|
| 15927 |
* gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Record_Subtype>: |
| 15928 |
Tidy up. For a subtype with discriminants and variant part, if a |
| 15929 |
variant is statically selected and the fields all have a constant |
| 15930 |
position, put them in order of increasing position. Likewise if |
| 15931 |
no variant part but representation clause is present. |
| 15932 |
* gcc-interface/utils.c (make_packable_type): Robustify. |
| 15933 |
(maybe_pad_type): Use local variable and tidy up condition. If no |
| 15934 |
alignment is specified, use the original one. |
| 15935 |
(create_type_stub_decl): Minor tweak. |
| 15936 |
(convert) <case VECTOR_CST>: Fix typo. |
| 15937 |
<case CONSTRUCTOR>: Deal with padding types around the same type. |
| 15938 |
Do not punt on missing fields. |
| 15939 |
(unchecked_convert): Call finish_record_type to lay out the special |
| 15940 |
record types made for conversions from/to problematic integer types. |
| 15941 |
Bump the alignment of CONSTRUCTORs before converting them to a more |
| 15942 |
aligned type. |
| 15943 |
|
| 15944 |
2014-01-20 Eric Botcazou <[email protected]> |
| 15945 |
|
| 15946 |
* gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Component>: Remove |
| 15947 |
obsolete code for type_annotate_only mode, simplify code and slightly |
| 15948 |
improve wording of comments. |
| 15949 |
|
| 15950 |
2014-01-12 Eric Botcazou <[email protected]> |
| 15951 |
|
| 15952 |
PR ada/59772 |
| 15953 |
* gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type |
| 15954 |
as intermediate type. |
| 15955 |
(UI_To_gnu): Likewise. |
| 15956 |
|
| 15957 |
2014-01-03 Eric Botcazou <[email protected]> |
| 15958 |
|
| 15959 |
* gnatvsn.ads (Current_Year): Bump to 2014. |
| 15960 |
|
| 15961 |
2014-01-02 Tobias Burnus <[email protected]> |
| 15962 |
|
| 15963 |
* gnat_ugn.texi: Bump @copying's copyright year. |
| 15964 |
|
| 15965 |
Copyright (C) 2014 Free Software Foundation, Inc. |
| 15966 |
|
| 15967 |
Copying and distribution of this file, with or without modification, |
| 15968 |
are permitted in any medium without royalty provided the copyright |
| 15969 |
notice and this notice are preserved. |